Subversion Repositories SmartDukaan

Rev

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

Rev 5766 Rev 6322
Line 123... Line 123...
123
 
123
 
124
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
124
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
125
 
125
 
126
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
126
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
127
 
127
 
-
 
128
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException;
-
 
129
 
-
 
130
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException;
-
 
131
 
128
  }
132
  }
129
 
133
 
130
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
134
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
131
 
135
 
132
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
136
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 155... Line 159...
155
 
159
 
156
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
160
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
157
 
161
 
158
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
162
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
159
 
163
 
-
 
164
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
-
 
165
 
-
 
166
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
-
 
167
 
160
  }
168
  }
161
 
169
 
162
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
170
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
163
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
171
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
164
      public Factory() {}
172
      public Factory() {}
Line 533... Line 541...
533
        return result.success;
541
        return result.success;
534
      }
542
      }
535
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
543
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
536
    }
544
    }
537
 
545
 
-
 
546
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException
-
 
547
    {
-
 
548
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType);
-
 
549
      recv_addPincode();
-
 
550
    }
-
 
551
 
-
 
552
    public void send_addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException
-
 
553
    {
-
 
554
      addPincode_args args = new addPincode_args();
-
 
555
      args.setProviderId(providerId);
-
 
556
      args.setPincode(pincode);
-
 
557
      args.setDestCode(destCode);
-
 
558
      args.setExp(exp);
-
 
559
      args.setCod(cod);
-
 
560
      args.setStationType(stationType);
-
 
561
      sendBase("addPincode", args);
-
 
562
    }
-
 
563
 
-
 
564
    public void recv_addPincode() throws org.apache.thrift.TException
-
 
565
    {
-
 
566
      addPincode_result result = new addPincode_result();
-
 
567
      receiveBase(result, "addPincode");
-
 
568
      return;
-
 
569
    }
-
 
570
 
-
 
571
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException
-
 
572
    {
-
 
573
      send_updatePincode(providerId, pincode, exp, cod);
-
 
574
      recv_updatePincode();
-
 
575
    }
-
 
576
 
-
 
577
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException
-
 
578
    {
-
 
579
      updatePincode_args args = new updatePincode_args();
-
 
580
      args.setProviderId(providerId);
-
 
581
      args.setPincode(pincode);
-
 
582
      args.setExp(exp);
-
 
583
      args.setCod(cod);
-
 
584
      sendBase("updatePincode", args);
-
 
585
    }
-
 
586
 
-
 
587
    public void recv_updatePincode() throws org.apache.thrift.TException
-
 
588
    {
-
 
589
      updatePincode_result result = new updatePincode_result();
-
 
590
      receiveBase(result, "updatePincode");
-
 
591
      return;
-
 
592
    }
-
 
593
 
538
  }
594
  }
539
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
595
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
540
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
596
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
541
      private org.apache.thrift.async.TAsyncClientManager clientManager;
597
      private org.apache.thrift.async.TAsyncClientManager clientManager;
542
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
598
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1029... Line 1085...
1029
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1085
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1030
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1086
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1031
      }
1087
      }
1032
    }
1088
    }
1033
 
1089
 
-
 
1090
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler) throws org.apache.thrift.TException {
-
 
1091
      checkReady();
-
 
1092
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, resultHandler, this, ___protocolFactory, ___transport);
-
 
1093
      this.___currentMethod = method_call;
-
 
1094
      ___manager.call(method_call);
-
 
1095
    }
-
 
1096
 
-
 
1097
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1098
      private long providerId;
-
 
1099
      private String pincode;
-
 
1100
      private String destCode;
-
 
1101
      private boolean exp;
-
 
1102
      private boolean cod;
-
 
1103
      private int stationType;
-
 
1104
      public addPincode_call(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, org.apache.thrift.async.AsyncMethodCallback<addPincode_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 {
-
 
1105
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1106
        this.providerId = providerId;
-
 
1107
        this.pincode = pincode;
-
 
1108
        this.destCode = destCode;
-
 
1109
        this.exp = exp;
-
 
1110
        this.cod = cod;
-
 
1111
        this.stationType = stationType;
-
 
1112
      }
-
 
1113
 
-
 
1114
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1115
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1116
        addPincode_args args = new addPincode_args();
-
 
1117
        args.setProviderId(providerId);
-
 
1118
        args.setPincode(pincode);
-
 
1119
        args.setDestCode(destCode);
-
 
1120
        args.setExp(exp);
-
 
1121
        args.setCod(cod);
-
 
1122
        args.setStationType(stationType);
-
 
1123
        args.write(prot);
-
 
1124
        prot.writeMessageEnd();
-
 
1125
      }
-
 
1126
 
-
 
1127
      public void getResult() throws org.apache.thrift.TException {
-
 
1128
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1129
          throw new IllegalStateException("Method call not finished!");
-
 
1130
        }
-
 
1131
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1132
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1133
        (new Client(prot)).recv_addPincode();
-
 
1134
      }
-
 
1135
    }
-
 
1136
 
-
 
1137
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler) throws org.apache.thrift.TException {
-
 
1138
      checkReady();
-
 
1139
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, resultHandler, this, ___protocolFactory, ___transport);
-
 
1140
      this.___currentMethod = method_call;
-
 
1141
      ___manager.call(method_call);
-
 
1142
    }
-
 
1143
 
-
 
1144
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1145
      private long providerId;
-
 
1146
      private String pincode;
-
 
1147
      private boolean exp;
-
 
1148
      private boolean cod;
-
 
1149
      public updatePincode_call(long providerId, String pincode, boolean exp, boolean cod, org.apache.thrift.async.AsyncMethodCallback<updatePincode_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 {
-
 
1150
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1151
        this.providerId = providerId;
-
 
1152
        this.pincode = pincode;
-
 
1153
        this.exp = exp;
-
 
1154
        this.cod = cod;
-
 
1155
      }
-
 
1156
 
-
 
1157
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1158
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1159
        updatePincode_args args = new updatePincode_args();
-
 
1160
        args.setProviderId(providerId);
-
 
1161
        args.setPincode(pincode);
-
 
1162
        args.setExp(exp);
-
 
1163
        args.setCod(cod);
-
 
1164
        args.write(prot);
-
 
1165
        prot.writeMessageEnd();
-
 
1166
      }
-
 
1167
 
-
 
1168
      public void getResult() throws org.apache.thrift.TException {
-
 
1169
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1170
          throw new IllegalStateException("Method call not finished!");
-
 
1171
        }
-
 
1172
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1173
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1174
        (new Client(prot)).recv_updatePincode();
-
 
1175
      }
-
 
1176
    }
-
 
1177
 
1034
  }
1178
  }
1035
 
1179
 
1036
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1180
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1037
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1181
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1038
    public Processor(I iface) {
1182
    public Processor(I iface) {
Line 1056... Line 1200...
1056
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
1200
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
1057
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
1201
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
1058
      processMap.put("getAllPickupStores", new getAllPickupStores());
1202
      processMap.put("getAllPickupStores", new getAllPickupStores());
1059
      processMap.put("getPickupStore", new getPickupStore());
1203
      processMap.put("getPickupStore", new getPickupStore());
1060
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
1204
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
-
 
1205
      processMap.put("addPincode", new addPincode());
-
 
1206
      processMap.put("updatePincode", new updatePincode());
1061
      return processMap;
1207
      return processMap;
1062
    }
1208
    }
1063
 
1209
 
1064
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1210
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1065
      public getProvider() {
1211
      public getProvider() {
Line 1317... Line 1463...
1317
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1463
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1318
        return result;
1464
        return result;
1319
      }
1465
      }
1320
    }
1466
    }
1321
 
1467
 
-
 
1468
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
-
 
1469
      public addPincode() {
-
 
1470
        super("addPincode");
-
 
1471
      }
-
 
1472
 
-
 
1473
      protected addPincode_args getEmptyArgsInstance() {
-
 
1474
        return new addPincode_args();
-
 
1475
      }
-
 
1476
 
-
 
1477
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
-
 
1478
        addPincode_result result = new addPincode_result();
-
 
1479
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType);
-
 
1480
        return result;
-
 
1481
      }
-
 
1482
    }
-
 
1483
 
-
 
1484
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
-
 
1485
      public updatePincode() {
-
 
1486
        super("updatePincode");
-
 
1487
      }
-
 
1488
 
-
 
1489
      protected updatePincode_args getEmptyArgsInstance() {
-
 
1490
        return new updatePincode_args();
-
 
1491
      }
-
 
1492
 
-
 
1493
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
-
 
1494
        updatePincode_result result = new updatePincode_result();
-
 
1495
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod);
-
 
1496
        return result;
-
 
1497
      }
-
 
1498
    }
-
 
1499
 
1322
  }
1500
  }
1323
 
1501
 
1324
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1502
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1503
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1326
 
1504
 
Line 11322... Line 11500...
11322
      sb.append(")");
11500
      sb.append(")");
11323
      return sb.toString();
11501
      return sb.toString();
11324
    }
11502
    }
11325
 
11503
 
11326
    public void validate() throws org.apache.thrift.TException {
11504
    public void validate() throws org.apache.thrift.TException {
-
 
11505
      // check for required fields
-
 
11506
    }
-
 
11507
 
-
 
11508
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11509
      try {
-
 
11510
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11511
      } catch (org.apache.thrift.TException te) {
-
 
11512
        throw new java.io.IOException(te);
-
 
11513
      }
-
 
11514
    }
-
 
11515
 
-
 
11516
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11517
      try {
-
 
11518
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11519
      } catch (org.apache.thrift.TException te) {
-
 
11520
        throw new java.io.IOException(te);
-
 
11521
      }
-
 
11522
    }
-
 
11523
 
-
 
11524
  }
-
 
11525
 
-
 
11526
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
-
 
11527
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
-
 
11528
 
-
 
11529
    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);
-
 
11530
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
11531
    private static final org.apache.thrift.protocol.TField DEST_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destCode", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
11532
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)4);
-
 
11533
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)5);
-
 
11534
    private static final org.apache.thrift.protocol.TField STATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("stationType", org.apache.thrift.protocol.TType.I32, (short)6);
-
 
11535
 
-
 
11536
    private long providerId; // required
-
 
11537
    private String pincode; // required
-
 
11538
    private String destCode; // required
-
 
11539
    private boolean exp; // required
-
 
11540
    private boolean cod; // required
-
 
11541
    private int stationType; // required
-
 
11542
 
-
 
11543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11545
      PROVIDER_ID((short)1, "providerId"),
-
 
11546
      PINCODE((short)2, "pincode"),
-
 
11547
      DEST_CODE((short)3, "destCode"),
-
 
11548
      EXP((short)4, "exp"),
-
 
11549
      COD((short)5, "cod"),
-
 
11550
      STATION_TYPE((short)6, "stationType");
-
 
11551
 
-
 
11552
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11553
 
-
 
11554
      static {
-
 
11555
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11556
          byName.put(field.getFieldName(), field);
-
 
11557
        }
-
 
11558
      }
-
 
11559
 
-
 
11560
      /**
-
 
11561
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11562
       */
-
 
11563
      public static _Fields findByThriftId(int fieldId) {
-
 
11564
        switch(fieldId) {
-
 
11565
          case 1: // PROVIDER_ID
-
 
11566
            return PROVIDER_ID;
-
 
11567
          case 2: // PINCODE
-
 
11568
            return PINCODE;
-
 
11569
          case 3: // DEST_CODE
-
 
11570
            return DEST_CODE;
-
 
11571
          case 4: // EXP
-
 
11572
            return EXP;
-
 
11573
          case 5: // COD
-
 
11574
            return COD;
-
 
11575
          case 6: // STATION_TYPE
-
 
11576
            return STATION_TYPE;
-
 
11577
          default:
-
 
11578
            return null;
-
 
11579
        }
-
 
11580
      }
-
 
11581
 
-
 
11582
      /**
-
 
11583
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11584
       * if it is not found.
-
 
11585
       */
-
 
11586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11587
        _Fields fields = findByThriftId(fieldId);
-
 
11588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11589
        return fields;
-
 
11590
      }
-
 
11591
 
-
 
11592
      /**
-
 
11593
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11594
       */
-
 
11595
      public static _Fields findByName(String name) {
-
 
11596
        return byName.get(name);
-
 
11597
      }
-
 
11598
 
-
 
11599
      private final short _thriftId;
-
 
11600
      private final String _fieldName;
-
 
11601
 
-
 
11602
      _Fields(short thriftId, String fieldName) {
-
 
11603
        _thriftId = thriftId;
-
 
11604
        _fieldName = fieldName;
-
 
11605
      }
-
 
11606
 
-
 
11607
      public short getThriftFieldId() {
-
 
11608
        return _thriftId;
-
 
11609
      }
-
 
11610
 
-
 
11611
      public String getFieldName() {
-
 
11612
        return _fieldName;
-
 
11613
      }
-
 
11614
    }
-
 
11615
 
-
 
11616
    // isset id assignments
-
 
11617
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
11618
    private static final int __EXP_ISSET_ID = 1;
-
 
11619
    private static final int __COD_ISSET_ID = 2;
-
 
11620
    private static final int __STATIONTYPE_ISSET_ID = 3;
-
 
11621
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
11622
 
-
 
11623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11624
    static {
-
 
11625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11626
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11627
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11628
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11629
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
11630
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11631
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
11632
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
11634
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
11636
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
11638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
-
 
11640
    }
-
 
11641
 
-
 
11642
    public addPincode_args() {
-
 
11643
    }
-
 
11644
 
-
 
11645
    public addPincode_args(
-
 
11646
      long providerId,
-
 
11647
      String pincode,
-
 
11648
      String destCode,
-
 
11649
      boolean exp,
-
 
11650
      boolean cod,
-
 
11651
      int stationType)
-
 
11652
    {
-
 
11653
      this();
-
 
11654
      this.providerId = providerId;
-
 
11655
      setProviderIdIsSet(true);
-
 
11656
      this.pincode = pincode;
-
 
11657
      this.destCode = destCode;
-
 
11658
      this.exp = exp;
-
 
11659
      setExpIsSet(true);
-
 
11660
      this.cod = cod;
-
 
11661
      setCodIsSet(true);
-
 
11662
      this.stationType = stationType;
-
 
11663
      setStationTypeIsSet(true);
-
 
11664
    }
-
 
11665
 
-
 
11666
    /**
-
 
11667
     * Performs a deep copy on <i>other</i>.
-
 
11668
     */
-
 
11669
    public addPincode_args(addPincode_args other) {
-
 
11670
      __isset_bit_vector.clear();
-
 
11671
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
11672
      this.providerId = other.providerId;
-
 
11673
      if (other.isSetPincode()) {
-
 
11674
        this.pincode = other.pincode;
-
 
11675
      }
-
 
11676
      if (other.isSetDestCode()) {
-
 
11677
        this.destCode = other.destCode;
-
 
11678
      }
-
 
11679
      this.exp = other.exp;
-
 
11680
      this.cod = other.cod;
-
 
11681
      this.stationType = other.stationType;
-
 
11682
    }
-
 
11683
 
-
 
11684
    public addPincode_args deepCopy() {
-
 
11685
      return new addPincode_args(this);
-
 
11686
    }
-
 
11687
 
-
 
11688
    @Override
-
 
11689
    public void clear() {
-
 
11690
      setProviderIdIsSet(false);
-
 
11691
      this.providerId = 0;
-
 
11692
      this.pincode = null;
-
 
11693
      this.destCode = null;
-
 
11694
      setExpIsSet(false);
-
 
11695
      this.exp = false;
-
 
11696
      setCodIsSet(false);
-
 
11697
      this.cod = false;
-
 
11698
      setStationTypeIsSet(false);
-
 
11699
      this.stationType = 0;
-
 
11700
    }
-
 
11701
 
-
 
11702
    public long getProviderId() {
-
 
11703
      return this.providerId;
-
 
11704
    }
-
 
11705
 
-
 
11706
    public void setProviderId(long providerId) {
-
 
11707
      this.providerId = providerId;
-
 
11708
      setProviderIdIsSet(true);
-
 
11709
    }
-
 
11710
 
-
 
11711
    public void unsetProviderId() {
-
 
11712
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
11713
    }
-
 
11714
 
-
 
11715
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
-
 
11716
    public boolean isSetProviderId() {
-
 
11717
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
11718
    }
-
 
11719
 
-
 
11720
    public void setProviderIdIsSet(boolean value) {
-
 
11721
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
11722
    }
-
 
11723
 
-
 
11724
    public String getPincode() {
-
 
11725
      return this.pincode;
-
 
11726
    }
-
 
11727
 
-
 
11728
    public void setPincode(String pincode) {
-
 
11729
      this.pincode = pincode;
-
 
11730
    }
-
 
11731
 
-
 
11732
    public void unsetPincode() {
-
 
11733
      this.pincode = null;
-
 
11734
    }
-
 
11735
 
-
 
11736
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
-
 
11737
    public boolean isSetPincode() {
-
 
11738
      return this.pincode != null;
-
 
11739
    }
-
 
11740
 
-
 
11741
    public void setPincodeIsSet(boolean value) {
-
 
11742
      if (!value) {
-
 
11743
        this.pincode = null;
-
 
11744
      }
-
 
11745
    }
-
 
11746
 
-
 
11747
    public String getDestCode() {
-
 
11748
      return this.destCode;
-
 
11749
    }
-
 
11750
 
-
 
11751
    public void setDestCode(String destCode) {
-
 
11752
      this.destCode = destCode;
-
 
11753
    }
-
 
11754
 
-
 
11755
    public void unsetDestCode() {
-
 
11756
      this.destCode = null;
-
 
11757
    }
-
 
11758
 
-
 
11759
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
-
 
11760
    public boolean isSetDestCode() {
-
 
11761
      return this.destCode != null;
-
 
11762
    }
-
 
11763
 
-
 
11764
    public void setDestCodeIsSet(boolean value) {
-
 
11765
      if (!value) {
-
 
11766
        this.destCode = null;
-
 
11767
      }
-
 
11768
    }
-
 
11769
 
-
 
11770
    public boolean isExp() {
-
 
11771
      return this.exp;
-
 
11772
    }
-
 
11773
 
-
 
11774
    public void setExp(boolean exp) {
-
 
11775
      this.exp = exp;
-
 
11776
      setExpIsSet(true);
-
 
11777
    }
-
 
11778
 
-
 
11779
    public void unsetExp() {
-
 
11780
      __isset_bit_vector.clear(__EXP_ISSET_ID);
-
 
11781
    }
-
 
11782
 
-
 
11783
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
-
 
11784
    public boolean isSetExp() {
-
 
11785
      return __isset_bit_vector.get(__EXP_ISSET_ID);
-
 
11786
    }
-
 
11787
 
-
 
11788
    public void setExpIsSet(boolean value) {
-
 
11789
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
-
 
11790
    }
-
 
11791
 
-
 
11792
    public boolean isCod() {
-
 
11793
      return this.cod;
-
 
11794
    }
-
 
11795
 
-
 
11796
    public void setCod(boolean cod) {
-
 
11797
      this.cod = cod;
-
 
11798
      setCodIsSet(true);
-
 
11799
    }
-
 
11800
 
-
 
11801
    public void unsetCod() {
-
 
11802
      __isset_bit_vector.clear(__COD_ISSET_ID);
-
 
11803
    }
-
 
11804
 
-
 
11805
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
-
 
11806
    public boolean isSetCod() {
-
 
11807
      return __isset_bit_vector.get(__COD_ISSET_ID);
-
 
11808
    }
-
 
11809
 
-
 
11810
    public void setCodIsSet(boolean value) {
-
 
11811
      __isset_bit_vector.set(__COD_ISSET_ID, value);
-
 
11812
    }
-
 
11813
 
-
 
11814
    public int getStationType() {
-
 
11815
      return this.stationType;
-
 
11816
    }
-
 
11817
 
-
 
11818
    public void setStationType(int stationType) {
-
 
11819
      this.stationType = stationType;
-
 
11820
      setStationTypeIsSet(true);
-
 
11821
    }
-
 
11822
 
-
 
11823
    public void unsetStationType() {
-
 
11824
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
-
 
11825
    }
-
 
11826
 
-
 
11827
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
-
 
11828
    public boolean isSetStationType() {
-
 
11829
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
-
 
11830
    }
-
 
11831
 
-
 
11832
    public void setStationTypeIsSet(boolean value) {
-
 
11833
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
-
 
11834
    }
-
 
11835
 
-
 
11836
    public void setFieldValue(_Fields field, Object value) {
-
 
11837
      switch (field) {
-
 
11838
      case PROVIDER_ID:
-
 
11839
        if (value == null) {
-
 
11840
          unsetProviderId();
-
 
11841
        } else {
-
 
11842
          setProviderId((Long)value);
-
 
11843
        }
-
 
11844
        break;
-
 
11845
 
-
 
11846
      case PINCODE:
-
 
11847
        if (value == null) {
-
 
11848
          unsetPincode();
-
 
11849
        } else {
-
 
11850
          setPincode((String)value);
-
 
11851
        }
-
 
11852
        break;
-
 
11853
 
-
 
11854
      case DEST_CODE:
-
 
11855
        if (value == null) {
-
 
11856
          unsetDestCode();
-
 
11857
        } else {
-
 
11858
          setDestCode((String)value);
-
 
11859
        }
-
 
11860
        break;
-
 
11861
 
-
 
11862
      case EXP:
-
 
11863
        if (value == null) {
-
 
11864
          unsetExp();
-
 
11865
        } else {
-
 
11866
          setExp((Boolean)value);
-
 
11867
        }
-
 
11868
        break;
-
 
11869
 
-
 
11870
      case COD:
-
 
11871
        if (value == null) {
-
 
11872
          unsetCod();
-
 
11873
        } else {
-
 
11874
          setCod((Boolean)value);
-
 
11875
        }
-
 
11876
        break;
-
 
11877
 
-
 
11878
      case STATION_TYPE:
-
 
11879
        if (value == null) {
-
 
11880
          unsetStationType();
-
 
11881
        } else {
-
 
11882
          setStationType((Integer)value);
-
 
11883
        }
-
 
11884
        break;
-
 
11885
 
-
 
11886
      }
-
 
11887
    }
-
 
11888
 
-
 
11889
    public Object getFieldValue(_Fields field) {
-
 
11890
      switch (field) {
-
 
11891
      case PROVIDER_ID:
-
 
11892
        return Long.valueOf(getProviderId());
-
 
11893
 
-
 
11894
      case PINCODE:
-
 
11895
        return getPincode();
-
 
11896
 
-
 
11897
      case DEST_CODE:
-
 
11898
        return getDestCode();
-
 
11899
 
-
 
11900
      case EXP:
-
 
11901
        return Boolean.valueOf(isExp());
-
 
11902
 
-
 
11903
      case COD:
-
 
11904
        return Boolean.valueOf(isCod());
-
 
11905
 
-
 
11906
      case STATION_TYPE:
-
 
11907
        return Integer.valueOf(getStationType());
-
 
11908
 
-
 
11909
      }
-
 
11910
      throw new IllegalStateException();
-
 
11911
    }
-
 
11912
 
-
 
11913
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11914
    public boolean isSet(_Fields field) {
-
 
11915
      if (field == null) {
-
 
11916
        throw new IllegalArgumentException();
-
 
11917
      }
-
 
11918
 
-
 
11919
      switch (field) {
-
 
11920
      case PROVIDER_ID:
-
 
11921
        return isSetProviderId();
-
 
11922
      case PINCODE:
-
 
11923
        return isSetPincode();
-
 
11924
      case DEST_CODE:
-
 
11925
        return isSetDestCode();
-
 
11926
      case EXP:
-
 
11927
        return isSetExp();
-
 
11928
      case COD:
-
 
11929
        return isSetCod();
-
 
11930
      case STATION_TYPE:
-
 
11931
        return isSetStationType();
-
 
11932
      }
-
 
11933
      throw new IllegalStateException();
-
 
11934
    }
-
 
11935
 
-
 
11936
    @Override
-
 
11937
    public boolean equals(Object that) {
-
 
11938
      if (that == null)
-
 
11939
        return false;
-
 
11940
      if (that instanceof addPincode_args)
-
 
11941
        return this.equals((addPincode_args)that);
-
 
11942
      return false;
-
 
11943
    }
-
 
11944
 
-
 
11945
    public boolean equals(addPincode_args that) {
-
 
11946
      if (that == null)
-
 
11947
        return false;
-
 
11948
 
-
 
11949
      boolean this_present_providerId = true;
-
 
11950
      boolean that_present_providerId = true;
-
 
11951
      if (this_present_providerId || that_present_providerId) {
-
 
11952
        if (!(this_present_providerId && that_present_providerId))
-
 
11953
          return false;
-
 
11954
        if (this.providerId != that.providerId)
-
 
11955
          return false;
-
 
11956
      }
-
 
11957
 
-
 
11958
      boolean this_present_pincode = true && this.isSetPincode();
-
 
11959
      boolean that_present_pincode = true && that.isSetPincode();
-
 
11960
      if (this_present_pincode || that_present_pincode) {
-
 
11961
        if (!(this_present_pincode && that_present_pincode))
-
 
11962
          return false;
-
 
11963
        if (!this.pincode.equals(that.pincode))
-
 
11964
          return false;
-
 
11965
      }
-
 
11966
 
-
 
11967
      boolean this_present_destCode = true && this.isSetDestCode();
-
 
11968
      boolean that_present_destCode = true && that.isSetDestCode();
-
 
11969
      if (this_present_destCode || that_present_destCode) {
-
 
11970
        if (!(this_present_destCode && that_present_destCode))
-
 
11971
          return false;
-
 
11972
        if (!this.destCode.equals(that.destCode))
-
 
11973
          return false;
-
 
11974
      }
-
 
11975
 
-
 
11976
      boolean this_present_exp = true;
-
 
11977
      boolean that_present_exp = true;
-
 
11978
      if (this_present_exp || that_present_exp) {
-
 
11979
        if (!(this_present_exp && that_present_exp))
-
 
11980
          return false;
-
 
11981
        if (this.exp != that.exp)
-
 
11982
          return false;
-
 
11983
      }
-
 
11984
 
-
 
11985
      boolean this_present_cod = true;
-
 
11986
      boolean that_present_cod = true;
-
 
11987
      if (this_present_cod || that_present_cod) {
-
 
11988
        if (!(this_present_cod && that_present_cod))
-
 
11989
          return false;
-
 
11990
        if (this.cod != that.cod)
-
 
11991
          return false;
-
 
11992
      }
-
 
11993
 
-
 
11994
      boolean this_present_stationType = true;
-
 
11995
      boolean that_present_stationType = true;
-
 
11996
      if (this_present_stationType || that_present_stationType) {
-
 
11997
        if (!(this_present_stationType && that_present_stationType))
-
 
11998
          return false;
-
 
11999
        if (this.stationType != that.stationType)
-
 
12000
          return false;
-
 
12001
      }
-
 
12002
 
-
 
12003
      return true;
-
 
12004
    }
-
 
12005
 
-
 
12006
    @Override
-
 
12007
    public int hashCode() {
-
 
12008
      return 0;
-
 
12009
    }
-
 
12010
 
-
 
12011
    public int compareTo(addPincode_args other) {
-
 
12012
      if (!getClass().equals(other.getClass())) {
-
 
12013
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12014
      }
-
 
12015
 
-
 
12016
      int lastComparison = 0;
-
 
12017
      addPincode_args typedOther = (addPincode_args)other;
-
 
12018
 
-
 
12019
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
-
 
12020
      if (lastComparison != 0) {
-
 
12021
        return lastComparison;
-
 
12022
      }
-
 
12023
      if (isSetProviderId()) {
-
 
12024
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
-
 
12025
        if (lastComparison != 0) {
-
 
12026
          return lastComparison;
-
 
12027
        }
-
 
12028
      }
-
 
12029
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
-
 
12030
      if (lastComparison != 0) {
-
 
12031
        return lastComparison;
-
 
12032
      }
-
 
12033
      if (isSetPincode()) {
-
 
12034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
-
 
12035
        if (lastComparison != 0) {
-
 
12036
          return lastComparison;
-
 
12037
        }
-
 
12038
      }
-
 
12039
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
-
 
12040
      if (lastComparison != 0) {
-
 
12041
        return lastComparison;
-
 
12042
      }
-
 
12043
      if (isSetDestCode()) {
-
 
12044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
-
 
12045
        if (lastComparison != 0) {
-
 
12046
          return lastComparison;
-
 
12047
        }
-
 
12048
      }
-
 
12049
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
-
 
12050
      if (lastComparison != 0) {
-
 
12051
        return lastComparison;
-
 
12052
      }
-
 
12053
      if (isSetExp()) {
-
 
12054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
-
 
12055
        if (lastComparison != 0) {
-
 
12056
          return lastComparison;
-
 
12057
        }
-
 
12058
      }
-
 
12059
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
-
 
12060
      if (lastComparison != 0) {
-
 
12061
        return lastComparison;
-
 
12062
      }
-
 
12063
      if (isSetCod()) {
-
 
12064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
-
 
12065
        if (lastComparison != 0) {
-
 
12066
          return lastComparison;
-
 
12067
        }
-
 
12068
      }
-
 
12069
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
-
 
12070
      if (lastComparison != 0) {
-
 
12071
        return lastComparison;
-
 
12072
      }
-
 
12073
      if (isSetStationType()) {
-
 
12074
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
-
 
12075
        if (lastComparison != 0) {
-
 
12076
          return lastComparison;
-
 
12077
        }
-
 
12078
      }
-
 
12079
      return 0;
-
 
12080
    }
-
 
12081
 
-
 
12082
    public _Fields fieldForId(int fieldId) {
-
 
12083
      return _Fields.findByThriftId(fieldId);
-
 
12084
    }
-
 
12085
 
-
 
12086
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12087
      org.apache.thrift.protocol.TField field;
-
 
12088
      iprot.readStructBegin();
-
 
12089
      while (true)
-
 
12090
      {
-
 
12091
        field = iprot.readFieldBegin();
-
 
12092
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12093
          break;
-
 
12094
        }
-
 
12095
        switch (field.id) {
-
 
12096
          case 1: // PROVIDER_ID
-
 
12097
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12098
              this.providerId = iprot.readI64();
-
 
12099
              setProviderIdIsSet(true);
-
 
12100
            } else { 
-
 
12101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12102
            }
-
 
12103
            break;
-
 
12104
          case 2: // PINCODE
-
 
12105
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
12106
              this.pincode = iprot.readString();
-
 
12107
            } else { 
-
 
12108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12109
            }
-
 
12110
            break;
-
 
12111
          case 3: // DEST_CODE
-
 
12112
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
12113
              this.destCode = iprot.readString();
-
 
12114
            } else { 
-
 
12115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12116
            }
-
 
12117
            break;
-
 
12118
          case 4: // EXP
-
 
12119
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
12120
              this.exp = iprot.readBool();
-
 
12121
              setExpIsSet(true);
-
 
12122
            } else { 
-
 
12123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12124
            }
-
 
12125
            break;
-
 
12126
          case 5: // COD
-
 
12127
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
12128
              this.cod = iprot.readBool();
-
 
12129
              setCodIsSet(true);
-
 
12130
            } else { 
-
 
12131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12132
            }
-
 
12133
            break;
-
 
12134
          case 6: // STATION_TYPE
-
 
12135
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
12136
              this.stationType = iprot.readI32();
-
 
12137
              setStationTypeIsSet(true);
-
 
12138
            } else { 
-
 
12139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12140
            }
-
 
12141
            break;
-
 
12142
          default:
-
 
12143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12144
        }
-
 
12145
        iprot.readFieldEnd();
-
 
12146
      }
-
 
12147
      iprot.readStructEnd();
-
 
12148
      validate();
-
 
12149
    }
-
 
12150
 
-
 
12151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12152
      validate();
-
 
12153
 
-
 
12154
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12155
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
12156
      oprot.writeI64(this.providerId);
-
 
12157
      oprot.writeFieldEnd();
-
 
12158
      if (this.pincode != null) {
-
 
12159
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
-
 
12160
        oprot.writeString(this.pincode);
-
 
12161
        oprot.writeFieldEnd();
-
 
12162
      }
-
 
12163
      if (this.destCode != null) {
-
 
12164
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
-
 
12165
        oprot.writeString(this.destCode);
-
 
12166
        oprot.writeFieldEnd();
-
 
12167
      }
-
 
12168
      oprot.writeFieldBegin(EXP_FIELD_DESC);
-
 
12169
      oprot.writeBool(this.exp);
-
 
12170
      oprot.writeFieldEnd();
-
 
12171
      oprot.writeFieldBegin(COD_FIELD_DESC);
-
 
12172
      oprot.writeBool(this.cod);
-
 
12173
      oprot.writeFieldEnd();
-
 
12174
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
-
 
12175
      oprot.writeI32(this.stationType);
-
 
12176
      oprot.writeFieldEnd();
-
 
12177
      oprot.writeFieldStop();
-
 
12178
      oprot.writeStructEnd();
-
 
12179
    }
-
 
12180
 
-
 
12181
    @Override
-
 
12182
    public String toString() {
-
 
12183
      StringBuilder sb = new StringBuilder("addPincode_args(");
-
 
12184
      boolean first = true;
-
 
12185
 
-
 
12186
      sb.append("providerId:");
-
 
12187
      sb.append(this.providerId);
-
 
12188
      first = false;
-
 
12189
      if (!first) sb.append(", ");
-
 
12190
      sb.append("pincode:");
-
 
12191
      if (this.pincode == null) {
-
 
12192
        sb.append("null");
-
 
12193
      } else {
-
 
12194
        sb.append(this.pincode);
-
 
12195
      }
-
 
12196
      first = false;
-
 
12197
      if (!first) sb.append(", ");
-
 
12198
      sb.append("destCode:");
-
 
12199
      if (this.destCode == null) {
-
 
12200
        sb.append("null");
-
 
12201
      } else {
-
 
12202
        sb.append(this.destCode);
-
 
12203
      }
-
 
12204
      first = false;
-
 
12205
      if (!first) sb.append(", ");
-
 
12206
      sb.append("exp:");
-
 
12207
      sb.append(this.exp);
-
 
12208
      first = false;
-
 
12209
      if (!first) sb.append(", ");
-
 
12210
      sb.append("cod:");
-
 
12211
      sb.append(this.cod);
-
 
12212
      first = false;
-
 
12213
      if (!first) sb.append(", ");
-
 
12214
      sb.append("stationType:");
-
 
12215
      sb.append(this.stationType);
-
 
12216
      first = false;
-
 
12217
      sb.append(")");
-
 
12218
      return sb.toString();
-
 
12219
    }
-
 
12220
 
-
 
12221
    public void validate() throws org.apache.thrift.TException {
-
 
12222
      // check for required fields
-
 
12223
    }
-
 
12224
 
-
 
12225
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12226
      try {
-
 
12227
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12228
      } catch (org.apache.thrift.TException te) {
-
 
12229
        throw new java.io.IOException(te);
-
 
12230
      }
-
 
12231
    }
-
 
12232
 
-
 
12233
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12234
      try {
-
 
12235
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
12236
        __isset_bit_vector = new BitSet(1);
-
 
12237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12238
      } catch (org.apache.thrift.TException te) {
-
 
12239
        throw new java.io.IOException(te);
-
 
12240
      }
-
 
12241
    }
-
 
12242
 
-
 
12243
  }
-
 
12244
 
-
 
12245
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
-
 
12246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
-
 
12247
 
-
 
12248
 
-
 
12249
 
-
 
12250
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12251
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12252
;
-
 
12253
 
-
 
12254
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12255
 
-
 
12256
      static {
-
 
12257
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12258
          byName.put(field.getFieldName(), field);
-
 
12259
        }
-
 
12260
      }
-
 
12261
 
-
 
12262
      /**
-
 
12263
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12264
       */
-
 
12265
      public static _Fields findByThriftId(int fieldId) {
-
 
12266
        switch(fieldId) {
-
 
12267
          default:
-
 
12268
            return null;
-
 
12269
        }
-
 
12270
      }
-
 
12271
 
-
 
12272
      /**
-
 
12273
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12274
       * if it is not found.
-
 
12275
       */
-
 
12276
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12277
        _Fields fields = findByThriftId(fieldId);
-
 
12278
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12279
        return fields;
-
 
12280
      }
-
 
12281
 
-
 
12282
      /**
-
 
12283
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12284
       */
-
 
12285
      public static _Fields findByName(String name) {
-
 
12286
        return byName.get(name);
-
 
12287
      }
-
 
12288
 
-
 
12289
      private final short _thriftId;
-
 
12290
      private final String _fieldName;
-
 
12291
 
-
 
12292
      _Fields(short thriftId, String fieldName) {
-
 
12293
        _thriftId = thriftId;
-
 
12294
        _fieldName = fieldName;
-
 
12295
      }
-
 
12296
 
-
 
12297
      public short getThriftFieldId() {
-
 
12298
        return _thriftId;
-
 
12299
      }
-
 
12300
 
-
 
12301
      public String getFieldName() {
-
 
12302
        return _fieldName;
-
 
12303
      }
-
 
12304
    }
-
 
12305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12306
    static {
-
 
12307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12308
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12309
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
-
 
12310
    }
-
 
12311
 
-
 
12312
    public addPincode_result() {
-
 
12313
    }
-
 
12314
 
-
 
12315
    /**
-
 
12316
     * Performs a deep copy on <i>other</i>.
-
 
12317
     */
-
 
12318
    public addPincode_result(addPincode_result other) {
-
 
12319
    }
-
 
12320
 
-
 
12321
    public addPincode_result deepCopy() {
-
 
12322
      return new addPincode_result(this);
-
 
12323
    }
-
 
12324
 
-
 
12325
    @Override
-
 
12326
    public void clear() {
-
 
12327
    }
-
 
12328
 
-
 
12329
    public void setFieldValue(_Fields field, Object value) {
-
 
12330
      switch (field) {
-
 
12331
      }
-
 
12332
    }
-
 
12333
 
-
 
12334
    public Object getFieldValue(_Fields field) {
-
 
12335
      switch (field) {
-
 
12336
      }
-
 
12337
      throw new IllegalStateException();
-
 
12338
    }
-
 
12339
 
-
 
12340
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12341
    public boolean isSet(_Fields field) {
-
 
12342
      if (field == null) {
-
 
12343
        throw new IllegalArgumentException();
-
 
12344
      }
-
 
12345
 
-
 
12346
      switch (field) {
-
 
12347
      }
-
 
12348
      throw new IllegalStateException();
-
 
12349
    }
-
 
12350
 
-
 
12351
    @Override
-
 
12352
    public boolean equals(Object that) {
-
 
12353
      if (that == null)
-
 
12354
        return false;
-
 
12355
      if (that instanceof addPincode_result)
-
 
12356
        return this.equals((addPincode_result)that);
-
 
12357
      return false;
-
 
12358
    }
-
 
12359
 
-
 
12360
    public boolean equals(addPincode_result that) {
-
 
12361
      if (that == null)
-
 
12362
        return false;
-
 
12363
 
-
 
12364
      return true;
-
 
12365
    }
-
 
12366
 
-
 
12367
    @Override
-
 
12368
    public int hashCode() {
-
 
12369
      return 0;
-
 
12370
    }
-
 
12371
 
-
 
12372
    public int compareTo(addPincode_result other) {
-
 
12373
      if (!getClass().equals(other.getClass())) {
-
 
12374
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12375
      }
-
 
12376
 
-
 
12377
      int lastComparison = 0;
-
 
12378
      addPincode_result typedOther = (addPincode_result)other;
-
 
12379
 
-
 
12380
      return 0;
-
 
12381
    }
-
 
12382
 
-
 
12383
    public _Fields fieldForId(int fieldId) {
-
 
12384
      return _Fields.findByThriftId(fieldId);
-
 
12385
    }
-
 
12386
 
-
 
12387
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12388
      org.apache.thrift.protocol.TField field;
-
 
12389
      iprot.readStructBegin();
-
 
12390
      while (true)
-
 
12391
      {
-
 
12392
        field = iprot.readFieldBegin();
-
 
12393
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12394
          break;
-
 
12395
        }
-
 
12396
        switch (field.id) {
-
 
12397
          default:
-
 
12398
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12399
        }
-
 
12400
        iprot.readFieldEnd();
-
 
12401
      }
-
 
12402
      iprot.readStructEnd();
-
 
12403
      validate();
-
 
12404
    }
-
 
12405
 
-
 
12406
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12407
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12408
 
-
 
12409
      oprot.writeFieldStop();
-
 
12410
      oprot.writeStructEnd();
-
 
12411
    }
-
 
12412
 
-
 
12413
    @Override
-
 
12414
    public String toString() {
-
 
12415
      StringBuilder sb = new StringBuilder("addPincode_result(");
-
 
12416
      boolean first = true;
-
 
12417
 
-
 
12418
      sb.append(")");
-
 
12419
      return sb.toString();
-
 
12420
    }
-
 
12421
 
-
 
12422
    public void validate() throws org.apache.thrift.TException {
-
 
12423
      // check for required fields
-
 
12424
    }
-
 
12425
 
-
 
12426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12427
      try {
-
 
12428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12429
      } catch (org.apache.thrift.TException te) {
-
 
12430
        throw new java.io.IOException(te);
-
 
12431
      }
-
 
12432
    }
-
 
12433
 
-
 
12434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12435
      try {
-
 
12436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12437
      } catch (org.apache.thrift.TException te) {
-
 
12438
        throw new java.io.IOException(te);
-
 
12439
      }
-
 
12440
    }
-
 
12441
 
-
 
12442
  }
-
 
12443
 
-
 
12444
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
-
 
12445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
-
 
12446
 
-
 
12447
    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);
-
 
12448
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
12449
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
 
12450
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)4);
-
 
12451
 
-
 
12452
    private long providerId; // required
-
 
12453
    private String pincode; // required
-
 
12454
    private boolean exp; // required
-
 
12455
    private boolean cod; // required
-
 
12456
 
-
 
12457
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12458
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12459
      PROVIDER_ID((short)1, "providerId"),
-
 
12460
      PINCODE((short)2, "pincode"),
-
 
12461
      EXP((short)3, "exp"),
-
 
12462
      COD((short)4, "cod");
-
 
12463
 
-
 
12464
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12465
 
-
 
12466
      static {
-
 
12467
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12468
          byName.put(field.getFieldName(), field);
-
 
12469
        }
-
 
12470
      }
-
 
12471
 
-
 
12472
      /**
-
 
12473
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12474
       */
-
 
12475
      public static _Fields findByThriftId(int fieldId) {
-
 
12476
        switch(fieldId) {
-
 
12477
          case 1: // PROVIDER_ID
-
 
12478
            return PROVIDER_ID;
-
 
12479
          case 2: // PINCODE
-
 
12480
            return PINCODE;
-
 
12481
          case 3: // EXP
-
 
12482
            return EXP;
-
 
12483
          case 4: // COD
-
 
12484
            return COD;
-
 
12485
          default:
-
 
12486
            return null;
-
 
12487
        }
-
 
12488
      }
-
 
12489
 
-
 
12490
      /**
-
 
12491
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12492
       * if it is not found.
-
 
12493
       */
-
 
12494
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12495
        _Fields fields = findByThriftId(fieldId);
-
 
12496
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12497
        return fields;
-
 
12498
      }
-
 
12499
 
-
 
12500
      /**
-
 
12501
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12502
       */
-
 
12503
      public static _Fields findByName(String name) {
-
 
12504
        return byName.get(name);
-
 
12505
      }
-
 
12506
 
-
 
12507
      private final short _thriftId;
-
 
12508
      private final String _fieldName;
-
 
12509
 
-
 
12510
      _Fields(short thriftId, String fieldName) {
-
 
12511
        _thriftId = thriftId;
-
 
12512
        _fieldName = fieldName;
-
 
12513
      }
-
 
12514
 
-
 
12515
      public short getThriftFieldId() {
-
 
12516
        return _thriftId;
-
 
12517
      }
-
 
12518
 
-
 
12519
      public String getFieldName() {
-
 
12520
        return _fieldName;
-
 
12521
      }
-
 
12522
    }
-
 
12523
 
-
 
12524
    // isset id assignments
-
 
12525
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
12526
    private static final int __EXP_ISSET_ID = 1;
-
 
12527
    private static final int __COD_ISSET_ID = 2;
-
 
12528
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
12529
 
-
 
12530
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12531
    static {
-
 
12532
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12533
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12534
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12535
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12536
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
12537
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12538
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
12539
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12540
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
12541
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12542
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
-
 
12543
    }
-
 
12544
 
-
 
12545
    public updatePincode_args() {
-
 
12546
    }
-
 
12547
 
-
 
12548
    public updatePincode_args(
-
 
12549
      long providerId,
-
 
12550
      String pincode,
-
 
12551
      boolean exp,
-
 
12552
      boolean cod)
-
 
12553
    {
-
 
12554
      this();
-
 
12555
      this.providerId = providerId;
-
 
12556
      setProviderIdIsSet(true);
-
 
12557
      this.pincode = pincode;
-
 
12558
      this.exp = exp;
-
 
12559
      setExpIsSet(true);
-
 
12560
      this.cod = cod;
-
 
12561
      setCodIsSet(true);
-
 
12562
    }
-
 
12563
 
-
 
12564
    /**
-
 
12565
     * Performs a deep copy on <i>other</i>.
-
 
12566
     */
-
 
12567
    public updatePincode_args(updatePincode_args other) {
-
 
12568
      __isset_bit_vector.clear();
-
 
12569
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
12570
      this.providerId = other.providerId;
-
 
12571
      if (other.isSetPincode()) {
-
 
12572
        this.pincode = other.pincode;
-
 
12573
      }
-
 
12574
      this.exp = other.exp;
-
 
12575
      this.cod = other.cod;
-
 
12576
    }
-
 
12577
 
-
 
12578
    public updatePincode_args deepCopy() {
-
 
12579
      return new updatePincode_args(this);
-
 
12580
    }
-
 
12581
 
-
 
12582
    @Override
-
 
12583
    public void clear() {
-
 
12584
      setProviderIdIsSet(false);
-
 
12585
      this.providerId = 0;
-
 
12586
      this.pincode = null;
-
 
12587
      setExpIsSet(false);
-
 
12588
      this.exp = false;
-
 
12589
      setCodIsSet(false);
-
 
12590
      this.cod = false;
-
 
12591
    }
-
 
12592
 
-
 
12593
    public long getProviderId() {
-
 
12594
      return this.providerId;
-
 
12595
    }
-
 
12596
 
-
 
12597
    public void setProviderId(long providerId) {
-
 
12598
      this.providerId = providerId;
-
 
12599
      setProviderIdIsSet(true);
-
 
12600
    }
-
 
12601
 
-
 
12602
    public void unsetProviderId() {
-
 
12603
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
12604
    }
-
 
12605
 
-
 
12606
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
-
 
12607
    public boolean isSetProviderId() {
-
 
12608
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
12609
    }
-
 
12610
 
-
 
12611
    public void setProviderIdIsSet(boolean value) {
-
 
12612
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
12613
    }
-
 
12614
 
-
 
12615
    public String getPincode() {
-
 
12616
      return this.pincode;
-
 
12617
    }
-
 
12618
 
-
 
12619
    public void setPincode(String pincode) {
-
 
12620
      this.pincode = pincode;
-
 
12621
    }
-
 
12622
 
-
 
12623
    public void unsetPincode() {
-
 
12624
      this.pincode = null;
-
 
12625
    }
-
 
12626
 
-
 
12627
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
-
 
12628
    public boolean isSetPincode() {
-
 
12629
      return this.pincode != null;
-
 
12630
    }
-
 
12631
 
-
 
12632
    public void setPincodeIsSet(boolean value) {
-
 
12633
      if (!value) {
-
 
12634
        this.pincode = null;
-
 
12635
      }
-
 
12636
    }
-
 
12637
 
-
 
12638
    public boolean isExp() {
-
 
12639
      return this.exp;
-
 
12640
    }
-
 
12641
 
-
 
12642
    public void setExp(boolean exp) {
-
 
12643
      this.exp = exp;
-
 
12644
      setExpIsSet(true);
-
 
12645
    }
-
 
12646
 
-
 
12647
    public void unsetExp() {
-
 
12648
      __isset_bit_vector.clear(__EXP_ISSET_ID);
-
 
12649
    }
-
 
12650
 
-
 
12651
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
-
 
12652
    public boolean isSetExp() {
-
 
12653
      return __isset_bit_vector.get(__EXP_ISSET_ID);
-
 
12654
    }
-
 
12655
 
-
 
12656
    public void setExpIsSet(boolean value) {
-
 
12657
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
-
 
12658
    }
-
 
12659
 
-
 
12660
    public boolean isCod() {
-
 
12661
      return this.cod;
-
 
12662
    }
-
 
12663
 
-
 
12664
    public void setCod(boolean cod) {
-
 
12665
      this.cod = cod;
-
 
12666
      setCodIsSet(true);
-
 
12667
    }
-
 
12668
 
-
 
12669
    public void unsetCod() {
-
 
12670
      __isset_bit_vector.clear(__COD_ISSET_ID);
-
 
12671
    }
-
 
12672
 
-
 
12673
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
-
 
12674
    public boolean isSetCod() {
-
 
12675
      return __isset_bit_vector.get(__COD_ISSET_ID);
-
 
12676
    }
-
 
12677
 
-
 
12678
    public void setCodIsSet(boolean value) {
-
 
12679
      __isset_bit_vector.set(__COD_ISSET_ID, value);
-
 
12680
    }
-
 
12681
 
-
 
12682
    public void setFieldValue(_Fields field, Object value) {
-
 
12683
      switch (field) {
-
 
12684
      case PROVIDER_ID:
-
 
12685
        if (value == null) {
-
 
12686
          unsetProviderId();
-
 
12687
        } else {
-
 
12688
          setProviderId((Long)value);
-
 
12689
        }
-
 
12690
        break;
-
 
12691
 
-
 
12692
      case PINCODE:
-
 
12693
        if (value == null) {
-
 
12694
          unsetPincode();
-
 
12695
        } else {
-
 
12696
          setPincode((String)value);
-
 
12697
        }
-
 
12698
        break;
-
 
12699
 
-
 
12700
      case EXP:
-
 
12701
        if (value == null) {
-
 
12702
          unsetExp();
-
 
12703
        } else {
-
 
12704
          setExp((Boolean)value);
-
 
12705
        }
-
 
12706
        break;
-
 
12707
 
-
 
12708
      case COD:
-
 
12709
        if (value == null) {
-
 
12710
          unsetCod();
-
 
12711
        } else {
-
 
12712
          setCod((Boolean)value);
-
 
12713
        }
-
 
12714
        break;
-
 
12715
 
-
 
12716
      }
-
 
12717
    }
-
 
12718
 
-
 
12719
    public Object getFieldValue(_Fields field) {
-
 
12720
      switch (field) {
-
 
12721
      case PROVIDER_ID:
-
 
12722
        return Long.valueOf(getProviderId());
-
 
12723
 
-
 
12724
      case PINCODE:
-
 
12725
        return getPincode();
-
 
12726
 
-
 
12727
      case EXP:
-
 
12728
        return Boolean.valueOf(isExp());
-
 
12729
 
-
 
12730
      case COD:
-
 
12731
        return Boolean.valueOf(isCod());
-
 
12732
 
-
 
12733
      }
-
 
12734
      throw new IllegalStateException();
-
 
12735
    }
-
 
12736
 
-
 
12737
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12738
    public boolean isSet(_Fields field) {
-
 
12739
      if (field == null) {
-
 
12740
        throw new IllegalArgumentException();
-
 
12741
      }
-
 
12742
 
-
 
12743
      switch (field) {
-
 
12744
      case PROVIDER_ID:
-
 
12745
        return isSetProviderId();
-
 
12746
      case PINCODE:
-
 
12747
        return isSetPincode();
-
 
12748
      case EXP:
-
 
12749
        return isSetExp();
-
 
12750
      case COD:
-
 
12751
        return isSetCod();
-
 
12752
      }
-
 
12753
      throw new IllegalStateException();
-
 
12754
    }
-
 
12755
 
-
 
12756
    @Override
-
 
12757
    public boolean equals(Object that) {
-
 
12758
      if (that == null)
-
 
12759
        return false;
-
 
12760
      if (that instanceof updatePincode_args)
-
 
12761
        return this.equals((updatePincode_args)that);
-
 
12762
      return false;
-
 
12763
    }
-
 
12764
 
-
 
12765
    public boolean equals(updatePincode_args that) {
-
 
12766
      if (that == null)
-
 
12767
        return false;
-
 
12768
 
-
 
12769
      boolean this_present_providerId = true;
-
 
12770
      boolean that_present_providerId = true;
-
 
12771
      if (this_present_providerId || that_present_providerId) {
-
 
12772
        if (!(this_present_providerId && that_present_providerId))
-
 
12773
          return false;
-
 
12774
        if (this.providerId != that.providerId)
-
 
12775
          return false;
-
 
12776
      }
-
 
12777
 
-
 
12778
      boolean this_present_pincode = true && this.isSetPincode();
-
 
12779
      boolean that_present_pincode = true && that.isSetPincode();
-
 
12780
      if (this_present_pincode || that_present_pincode) {
-
 
12781
        if (!(this_present_pincode && that_present_pincode))
-
 
12782
          return false;
-
 
12783
        if (!this.pincode.equals(that.pincode))
-
 
12784
          return false;
-
 
12785
      }
-
 
12786
 
-
 
12787
      boolean this_present_exp = true;
-
 
12788
      boolean that_present_exp = true;
-
 
12789
      if (this_present_exp || that_present_exp) {
-
 
12790
        if (!(this_present_exp && that_present_exp))
-
 
12791
          return false;
-
 
12792
        if (this.exp != that.exp)
-
 
12793
          return false;
-
 
12794
      }
-
 
12795
 
-
 
12796
      boolean this_present_cod = true;
-
 
12797
      boolean that_present_cod = true;
-
 
12798
      if (this_present_cod || that_present_cod) {
-
 
12799
        if (!(this_present_cod && that_present_cod))
-
 
12800
          return false;
-
 
12801
        if (this.cod != that.cod)
-
 
12802
          return false;
-
 
12803
      }
-
 
12804
 
-
 
12805
      return true;
-
 
12806
    }
-
 
12807
 
-
 
12808
    @Override
-
 
12809
    public int hashCode() {
-
 
12810
      return 0;
-
 
12811
    }
-
 
12812
 
-
 
12813
    public int compareTo(updatePincode_args other) {
-
 
12814
      if (!getClass().equals(other.getClass())) {
-
 
12815
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12816
      }
-
 
12817
 
-
 
12818
      int lastComparison = 0;
-
 
12819
      updatePincode_args typedOther = (updatePincode_args)other;
-
 
12820
 
-
 
12821
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
-
 
12822
      if (lastComparison != 0) {
-
 
12823
        return lastComparison;
-
 
12824
      }
-
 
12825
      if (isSetProviderId()) {
-
 
12826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
-
 
12827
        if (lastComparison != 0) {
-
 
12828
          return lastComparison;
-
 
12829
        }
-
 
12830
      }
-
 
12831
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
-
 
12832
      if (lastComparison != 0) {
-
 
12833
        return lastComparison;
-
 
12834
      }
-
 
12835
      if (isSetPincode()) {
-
 
12836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
-
 
12837
        if (lastComparison != 0) {
-
 
12838
          return lastComparison;
-
 
12839
        }
-
 
12840
      }
-
 
12841
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
-
 
12842
      if (lastComparison != 0) {
-
 
12843
        return lastComparison;
-
 
12844
      }
-
 
12845
      if (isSetExp()) {
-
 
12846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
-
 
12847
        if (lastComparison != 0) {
-
 
12848
          return lastComparison;
-
 
12849
        }
-
 
12850
      }
-
 
12851
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
-
 
12852
      if (lastComparison != 0) {
-
 
12853
        return lastComparison;
-
 
12854
      }
-
 
12855
      if (isSetCod()) {
-
 
12856
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
-
 
12857
        if (lastComparison != 0) {
-
 
12858
          return lastComparison;
-
 
12859
        }
-
 
12860
      }
-
 
12861
      return 0;
-
 
12862
    }
-
 
12863
 
-
 
12864
    public _Fields fieldForId(int fieldId) {
-
 
12865
      return _Fields.findByThriftId(fieldId);
-
 
12866
    }
-
 
12867
 
-
 
12868
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12869
      org.apache.thrift.protocol.TField field;
-
 
12870
      iprot.readStructBegin();
-
 
12871
      while (true)
-
 
12872
      {
-
 
12873
        field = iprot.readFieldBegin();
-
 
12874
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12875
          break;
-
 
12876
        }
-
 
12877
        switch (field.id) {
-
 
12878
          case 1: // PROVIDER_ID
-
 
12879
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12880
              this.providerId = iprot.readI64();
-
 
12881
              setProviderIdIsSet(true);
-
 
12882
            } else { 
-
 
12883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12884
            }
-
 
12885
            break;
-
 
12886
          case 2: // PINCODE
-
 
12887
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
12888
              this.pincode = iprot.readString();
-
 
12889
            } else { 
-
 
12890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12891
            }
-
 
12892
            break;
-
 
12893
          case 3: // EXP
-
 
12894
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
12895
              this.exp = iprot.readBool();
-
 
12896
              setExpIsSet(true);
-
 
12897
            } else { 
-
 
12898
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12899
            }
-
 
12900
            break;
-
 
12901
          case 4: // COD
-
 
12902
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
12903
              this.cod = iprot.readBool();
-
 
12904
              setCodIsSet(true);
-
 
12905
            } else { 
-
 
12906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12907
            }
-
 
12908
            break;
-
 
12909
          default:
-
 
12910
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12911
        }
-
 
12912
        iprot.readFieldEnd();
-
 
12913
      }
-
 
12914
      iprot.readStructEnd();
-
 
12915
      validate();
-
 
12916
    }
-
 
12917
 
-
 
12918
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12919
      validate();
-
 
12920
 
-
 
12921
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12922
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
12923
      oprot.writeI64(this.providerId);
-
 
12924
      oprot.writeFieldEnd();
-
 
12925
      if (this.pincode != null) {
-
 
12926
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
-
 
12927
        oprot.writeString(this.pincode);
-
 
12928
        oprot.writeFieldEnd();
-
 
12929
      }
-
 
12930
      oprot.writeFieldBegin(EXP_FIELD_DESC);
-
 
12931
      oprot.writeBool(this.exp);
-
 
12932
      oprot.writeFieldEnd();
-
 
12933
      oprot.writeFieldBegin(COD_FIELD_DESC);
-
 
12934
      oprot.writeBool(this.cod);
-
 
12935
      oprot.writeFieldEnd();
-
 
12936
      oprot.writeFieldStop();
-
 
12937
      oprot.writeStructEnd();
-
 
12938
    }
-
 
12939
 
-
 
12940
    @Override
-
 
12941
    public String toString() {
-
 
12942
      StringBuilder sb = new StringBuilder("updatePincode_args(");
-
 
12943
      boolean first = true;
-
 
12944
 
-
 
12945
      sb.append("providerId:");
-
 
12946
      sb.append(this.providerId);
-
 
12947
      first = false;
-
 
12948
      if (!first) sb.append(", ");
-
 
12949
      sb.append("pincode:");
-
 
12950
      if (this.pincode == null) {
-
 
12951
        sb.append("null");
-
 
12952
      } else {
-
 
12953
        sb.append(this.pincode);
-
 
12954
      }
-
 
12955
      first = false;
-
 
12956
      if (!first) sb.append(", ");
-
 
12957
      sb.append("exp:");
-
 
12958
      sb.append(this.exp);
-
 
12959
      first = false;
-
 
12960
      if (!first) sb.append(", ");
-
 
12961
      sb.append("cod:");
-
 
12962
      sb.append(this.cod);
-
 
12963
      first = false;
-
 
12964
      sb.append(")");
-
 
12965
      return sb.toString();
-
 
12966
    }
-
 
12967
 
-
 
12968
    public void validate() throws org.apache.thrift.TException {
-
 
12969
      // check for required fields
-
 
12970
    }
-
 
12971
 
-
 
12972
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12973
      try {
-
 
12974
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12975
      } catch (org.apache.thrift.TException te) {
-
 
12976
        throw new java.io.IOException(te);
-
 
12977
      }
-
 
12978
    }
-
 
12979
 
-
 
12980
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12981
      try {
-
 
12982
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
12983
        __isset_bit_vector = new BitSet(1);
-
 
12984
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12985
      } catch (org.apache.thrift.TException te) {
-
 
12986
        throw new java.io.IOException(te);
-
 
12987
      }
-
 
12988
    }
-
 
12989
 
-
 
12990
  }
-
 
12991
 
-
 
12992
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
-
 
12993
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
-
 
12994
 
-
 
12995
 
-
 
12996
 
-
 
12997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12999
;
-
 
13000
 
-
 
13001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
13002
 
-
 
13003
      static {
-
 
13004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13005
          byName.put(field.getFieldName(), field);
-
 
13006
        }
-
 
13007
      }
-
 
13008
 
-
 
13009
      /**
-
 
13010
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13011
       */
-
 
13012
      public static _Fields findByThriftId(int fieldId) {
-
 
13013
        switch(fieldId) {
-
 
13014
          default:
-
 
13015
            return null;
-
 
13016
        }
-
 
13017
      }
-
 
13018
 
-
 
13019
      /**
-
 
13020
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13021
       * if it is not found.
-
 
13022
       */
-
 
13023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13024
        _Fields fields = findByThriftId(fieldId);
-
 
13025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13026
        return fields;
-
 
13027
      }
-
 
13028
 
-
 
13029
      /**
-
 
13030
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13031
       */
-
 
13032
      public static _Fields findByName(String name) {
-
 
13033
        return byName.get(name);
-
 
13034
      }
-
 
13035
 
-
 
13036
      private final short _thriftId;
-
 
13037
      private final String _fieldName;
-
 
13038
 
-
 
13039
      _Fields(short thriftId, String fieldName) {
-
 
13040
        _thriftId = thriftId;
-
 
13041
        _fieldName = fieldName;
-
 
13042
      }
-
 
13043
 
-
 
13044
      public short getThriftFieldId() {
-
 
13045
        return _thriftId;
-
 
13046
      }
-
 
13047
 
-
 
13048
      public String getFieldName() {
-
 
13049
        return _fieldName;
-
 
13050
      }
-
 
13051
    }
-
 
13052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
13053
    static {
-
 
13054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13055
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
13056
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
-
 
13057
    }
-
 
13058
 
-
 
13059
    public updatePincode_result() {
-
 
13060
    }
-
 
13061
 
-
 
13062
    /**
-
 
13063
     * Performs a deep copy on <i>other</i>.
-
 
13064
     */
-
 
13065
    public updatePincode_result(updatePincode_result other) {
-
 
13066
    }
-
 
13067
 
-
 
13068
    public updatePincode_result deepCopy() {
-
 
13069
      return new updatePincode_result(this);
-
 
13070
    }
-
 
13071
 
-
 
13072
    @Override
-
 
13073
    public void clear() {
-
 
13074
    }
-
 
13075
 
-
 
13076
    public void setFieldValue(_Fields field, Object value) {
-
 
13077
      switch (field) {
-
 
13078
      }
-
 
13079
    }
-
 
13080
 
-
 
13081
    public Object getFieldValue(_Fields field) {
-
 
13082
      switch (field) {
-
 
13083
      }
-
 
13084
      throw new IllegalStateException();
-
 
13085
    }
-
 
13086
 
-
 
13087
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13088
    public boolean isSet(_Fields field) {
-
 
13089
      if (field == null) {
-
 
13090
        throw new IllegalArgumentException();
-
 
13091
      }
-
 
13092
 
-
 
13093
      switch (field) {
-
 
13094
      }
-
 
13095
      throw new IllegalStateException();
-
 
13096
    }
-
 
13097
 
-
 
13098
    @Override
-
 
13099
    public boolean equals(Object that) {
-
 
13100
      if (that == null)
-
 
13101
        return false;
-
 
13102
      if (that instanceof updatePincode_result)
-
 
13103
        return this.equals((updatePincode_result)that);
-
 
13104
      return false;
-
 
13105
    }
-
 
13106
 
-
 
13107
    public boolean equals(updatePincode_result that) {
-
 
13108
      if (that == null)
-
 
13109
        return false;
-
 
13110
 
-
 
13111
      return true;
-
 
13112
    }
-
 
13113
 
-
 
13114
    @Override
-
 
13115
    public int hashCode() {
-
 
13116
      return 0;
-
 
13117
    }
-
 
13118
 
-
 
13119
    public int compareTo(updatePincode_result other) {
-
 
13120
      if (!getClass().equals(other.getClass())) {
-
 
13121
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13122
      }
-
 
13123
 
-
 
13124
      int lastComparison = 0;
-
 
13125
      updatePincode_result typedOther = (updatePincode_result)other;
-
 
13126
 
-
 
13127
      return 0;
-
 
13128
    }
-
 
13129
 
-
 
13130
    public _Fields fieldForId(int fieldId) {
-
 
13131
      return _Fields.findByThriftId(fieldId);
-
 
13132
    }
-
 
13133
 
-
 
13134
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13135
      org.apache.thrift.protocol.TField field;
-
 
13136
      iprot.readStructBegin();
-
 
13137
      while (true)
-
 
13138
      {
-
 
13139
        field = iprot.readFieldBegin();
-
 
13140
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13141
          break;
-
 
13142
        }
-
 
13143
        switch (field.id) {
-
 
13144
          default:
-
 
13145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13146
        }
-
 
13147
        iprot.readFieldEnd();
-
 
13148
      }
-
 
13149
      iprot.readStructEnd();
-
 
13150
      validate();
-
 
13151
    }
-
 
13152
 
-
 
13153
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13154
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13155
 
-
 
13156
      oprot.writeFieldStop();
-
 
13157
      oprot.writeStructEnd();
-
 
13158
    }
-
 
13159
 
-
 
13160
    @Override
-
 
13161
    public String toString() {
-
 
13162
      StringBuilder sb = new StringBuilder("updatePincode_result(");
-
 
13163
      boolean first = true;
-
 
13164
 
-
 
13165
      sb.append(")");
-
 
13166
      return sb.toString();
-
 
13167
    }
-
 
13168
 
-
 
13169
    public void validate() throws org.apache.thrift.TException {
11327
      // check for required fields
13170
      // check for required fields
11328
    }
13171
    }
11329
 
13172
 
11330
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11331
      try {
13174
      try {