Subversion Repositories SmartDukaan

Rev

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

Rev 6821 Rev 6903
Line 284... Line 284...
284
     * @param endDate
284
     * @param endDate
285
     */
285
     */
286
    public List<String> getUserEmails(long startDate, long endDate) throws org.apache.thrift.TException;
286
    public List<String> getUserEmails(long startDate, long endDate) throws org.apache.thrift.TException;
287
 
287
 
288
    /**
288
    /**
-
 
289
     * Mark a cart lineitem as insured. Returns true/false.
-
 
290
     * 
-
 
291
     * @param itemId
-
 
292
     * @param cartId
-
 
293
     * @param toInsure
-
 
294
     */
-
 
295
    public boolean insureItem(long itemId, long cartId, boolean toInsure) throws org.apache.thrift.TException;
-
 
296
 
-
 
297
    /**
-
 
298
     * Cancel insurance for all items in the cart
-
 
299
     * 
-
 
300
     * @param cartId
-
 
301
     */
-
 
302
    public boolean cancelInsurance(long cartId) throws org.apache.thrift.TException;
-
 
303
 
-
 
304
    /**
-
 
305
     * Stores insurance specific details like date of birth and guardianName
-
 
306
     * 
-
 
307
     * @param addressId
-
 
308
     * @param dob
-
 
309
     * @param guardianName
-
 
310
     */
-
 
311
    public boolean storeInsuranceSpecificDetails(long addressId, String dob, String guardianName) throws org.apache.thrift.TException;
-
 
312
 
-
 
313
    /**
-
 
314
     * Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
-
 
315
     * 
-
 
316
     * @param addressId
-
 
317
     */
-
 
318
    public boolean isInsuranceDetailPresent(long addressId) throws org.apache.thrift.TException;
-
 
319
 
-
 
320
    /**
289
     * Returns whether product is added to cart from startDate to endDate
321
     * Returns whether product is added to cart from startDate to endDate
290
     * 
322
     * 
291
     * @param itemId
323
     * @param itemId
292
     * @param startDate
324
     * @param startDate
293
     * @param endDate
325
     * @param endDate
Line 430... Line 462...
430
 
462
 
431
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
463
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
432
 
464
 
433
    public void getUserEmails(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserEmails_call> resultHandler) throws org.apache.thrift.TException;
465
    public void getUserEmails(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserEmails_call> resultHandler) throws org.apache.thrift.TException;
434
 
466
 
-
 
467
    public void insureItem(long itemId, long cartId, boolean toInsure, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insureItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
468
 
-
 
469
    public void cancelInsurance(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.cancelInsurance_call> resultHandler) throws org.apache.thrift.TException;
-
 
470
 
-
 
471
    public void storeInsuranceSpecificDetails(long addressId, String dob, String guardianName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeInsuranceSpecificDetails_call> resultHandler) throws org.apache.thrift.TException;
-
 
472
 
-
 
473
    public void isInsuranceDetailPresent(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isInsuranceDetailPresent_call> resultHandler) throws org.apache.thrift.TException;
-
 
474
 
435
    public void isProductAddedToCart(long itemId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isProductAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
475
    public void isProductAddedToCart(long itemId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isProductAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
436
 
476
 
437
  }
477
  }
438
 
478
 
439
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
479
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
Line 2182... Line 2222...
2182
        return result.success;
2222
        return result.success;
2183
      }
2223
      }
2184
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2224
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2185
    }
2225
    }
2186
 
2226
 
-
 
2227
    public boolean insureItem(long itemId, long cartId, boolean toInsure) throws org.apache.thrift.TException
-
 
2228
    {
-
 
2229
      send_insureItem(itemId, cartId, toInsure);
-
 
2230
      return recv_insureItem();
-
 
2231
    }
-
 
2232
 
-
 
2233
    public void send_insureItem(long itemId, long cartId, boolean toInsure) throws org.apache.thrift.TException
-
 
2234
    {
-
 
2235
      insureItem_args args = new insureItem_args();
-
 
2236
      args.setItemId(itemId);
-
 
2237
      args.setCartId(cartId);
-
 
2238
      args.setToInsure(toInsure);
-
 
2239
      sendBase("insureItem", args);
-
 
2240
    }
-
 
2241
 
-
 
2242
    public boolean recv_insureItem() throws org.apache.thrift.TException
-
 
2243
    {
-
 
2244
      insureItem_result result = new insureItem_result();
-
 
2245
      receiveBase(result, "insureItem");
-
 
2246
      if (result.isSetSuccess()) {
-
 
2247
        return result.success;
-
 
2248
      }
-
 
2249
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insureItem failed: unknown result");
-
 
2250
    }
-
 
2251
 
-
 
2252
    public boolean cancelInsurance(long cartId) throws org.apache.thrift.TException
-
 
2253
    {
-
 
2254
      send_cancelInsurance(cartId);
-
 
2255
      return recv_cancelInsurance();
-
 
2256
    }
-
 
2257
 
-
 
2258
    public void send_cancelInsurance(long cartId) throws org.apache.thrift.TException
-
 
2259
    {
-
 
2260
      cancelInsurance_args args = new cancelInsurance_args();
-
 
2261
      args.setCartId(cartId);
-
 
2262
      sendBase("cancelInsurance", args);
-
 
2263
    }
-
 
2264
 
-
 
2265
    public boolean recv_cancelInsurance() throws org.apache.thrift.TException
-
 
2266
    {
-
 
2267
      cancelInsurance_result result = new cancelInsurance_result();
-
 
2268
      receiveBase(result, "cancelInsurance");
-
 
2269
      if (result.isSetSuccess()) {
-
 
2270
        return result.success;
-
 
2271
      }
-
 
2272
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "cancelInsurance failed: unknown result");
-
 
2273
    }
-
 
2274
 
-
 
2275
    public boolean storeInsuranceSpecificDetails(long addressId, String dob, String guardianName) throws org.apache.thrift.TException
-
 
2276
    {
-
 
2277
      send_storeInsuranceSpecificDetails(addressId, dob, guardianName);
-
 
2278
      return recv_storeInsuranceSpecificDetails();
-
 
2279
    }
-
 
2280
 
-
 
2281
    public void send_storeInsuranceSpecificDetails(long addressId, String dob, String guardianName) throws org.apache.thrift.TException
-
 
2282
    {
-
 
2283
      storeInsuranceSpecificDetails_args args = new storeInsuranceSpecificDetails_args();
-
 
2284
      args.setAddressId(addressId);
-
 
2285
      args.setDob(dob);
-
 
2286
      args.setGuardianName(guardianName);
-
 
2287
      sendBase("storeInsuranceSpecificDetails", args);
-
 
2288
    }
-
 
2289
 
-
 
2290
    public boolean recv_storeInsuranceSpecificDetails() throws org.apache.thrift.TException
-
 
2291
    {
-
 
2292
      storeInsuranceSpecificDetails_result result = new storeInsuranceSpecificDetails_result();
-
 
2293
      receiveBase(result, "storeInsuranceSpecificDetails");
-
 
2294
      if (result.isSetSuccess()) {
-
 
2295
        return result.success;
-
 
2296
      }
-
 
2297
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "storeInsuranceSpecificDetails failed: unknown result");
-
 
2298
    }
-
 
2299
 
-
 
2300
    public boolean isInsuranceDetailPresent(long addressId) throws org.apache.thrift.TException
-
 
2301
    {
-
 
2302
      send_isInsuranceDetailPresent(addressId);
-
 
2303
      return recv_isInsuranceDetailPresent();
-
 
2304
    }
-
 
2305
 
-
 
2306
    public void send_isInsuranceDetailPresent(long addressId) throws org.apache.thrift.TException
-
 
2307
    {
-
 
2308
      isInsuranceDetailPresent_args args = new isInsuranceDetailPresent_args();
-
 
2309
      args.setAddressId(addressId);
-
 
2310
      sendBase("isInsuranceDetailPresent", args);
-
 
2311
    }
-
 
2312
 
-
 
2313
    public boolean recv_isInsuranceDetailPresent() throws org.apache.thrift.TException
-
 
2314
    {
-
 
2315
      isInsuranceDetailPresent_result result = new isInsuranceDetailPresent_result();
-
 
2316
      receiveBase(result, "isInsuranceDetailPresent");
-
 
2317
      if (result.isSetSuccess()) {
-
 
2318
        return result.success;
-
 
2319
      }
-
 
2320
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
-
 
2321
    }
-
 
2322
 
2187
    public boolean isProductAddedToCart(long itemId, long startDate, long endDate) throws org.apache.thrift.TException
2323
    public boolean isProductAddedToCart(long itemId, long startDate, long endDate) throws org.apache.thrift.TException
2188
    {
2324
    {
2189
      send_isProductAddedToCart(itemId, startDate, endDate);
2325
      send_isProductAddedToCart(itemId, startDate, endDate);
2190
      return recv_isProductAddedToCart();
2326
      return recv_isProductAddedToCart();
2191
    }
2327
    }
Line 4539... Line 4675...
4539
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4675
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4540
        return (new Client(prot)).recv_getUserEmails();
4676
        return (new Client(prot)).recv_getUserEmails();
4541
      }
4677
      }
4542
    }
4678
    }
4543
 
4679
 
-
 
4680
    public void insureItem(long itemId, long cartId, boolean toInsure, org.apache.thrift.async.AsyncMethodCallback<insureItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4681
      checkReady();
-
 
4682
      insureItem_call method_call = new insureItem_call(itemId, cartId, toInsure, resultHandler, this, ___protocolFactory, ___transport);
-
 
4683
      this.___currentMethod = method_call;
-
 
4684
      ___manager.call(method_call);
-
 
4685
    }
-
 
4686
 
-
 
4687
    public static class insureItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4688
      private long itemId;
-
 
4689
      private long cartId;
-
 
4690
      private boolean toInsure;
-
 
4691
      public insureItem_call(long itemId, long cartId, boolean toInsure, org.apache.thrift.async.AsyncMethodCallback<insureItem_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 {
-
 
4692
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4693
        this.itemId = itemId;
-
 
4694
        this.cartId = cartId;
-
 
4695
        this.toInsure = toInsure;
-
 
4696
      }
-
 
4697
 
-
 
4698
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4699
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insureItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4700
        insureItem_args args = new insureItem_args();
-
 
4701
        args.setItemId(itemId);
-
 
4702
        args.setCartId(cartId);
-
 
4703
        args.setToInsure(toInsure);
-
 
4704
        args.write(prot);
-
 
4705
        prot.writeMessageEnd();
-
 
4706
      }
-
 
4707
 
-
 
4708
      public boolean getResult() throws org.apache.thrift.TException {
-
 
4709
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4710
          throw new IllegalStateException("Method call not finished!");
-
 
4711
        }
-
 
4712
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4713
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4714
        return (new Client(prot)).recv_insureItem();
-
 
4715
      }
-
 
4716
    }
-
 
4717
 
-
 
4718
    public void cancelInsurance(long cartId, org.apache.thrift.async.AsyncMethodCallback<cancelInsurance_call> resultHandler) throws org.apache.thrift.TException {
-
 
4719
      checkReady();
-
 
4720
      cancelInsurance_call method_call = new cancelInsurance_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4721
      this.___currentMethod = method_call;
-
 
4722
      ___manager.call(method_call);
-
 
4723
    }
-
 
4724
 
-
 
4725
    public static class cancelInsurance_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4726
      private long cartId;
-
 
4727
      public cancelInsurance_call(long cartId, org.apache.thrift.async.AsyncMethodCallback<cancelInsurance_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 {
-
 
4728
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4729
        this.cartId = cartId;
-
 
4730
      }
-
 
4731
 
-
 
4732
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4733
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("cancelInsurance", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4734
        cancelInsurance_args args = new cancelInsurance_args();
-
 
4735
        args.setCartId(cartId);
-
 
4736
        args.write(prot);
-
 
4737
        prot.writeMessageEnd();
-
 
4738
      }
-
 
4739
 
-
 
4740
      public boolean getResult() throws org.apache.thrift.TException {
-
 
4741
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4742
          throw new IllegalStateException("Method call not finished!");
-
 
4743
        }
-
 
4744
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4745
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4746
        return (new Client(prot)).recv_cancelInsurance();
-
 
4747
      }
-
 
4748
    }
-
 
4749
 
-
 
4750
    public void storeInsuranceSpecificDetails(long addressId, String dob, String guardianName, org.apache.thrift.async.AsyncMethodCallback<storeInsuranceSpecificDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
4751
      checkReady();
-
 
4752
      storeInsuranceSpecificDetails_call method_call = new storeInsuranceSpecificDetails_call(addressId, dob, guardianName, resultHandler, this, ___protocolFactory, ___transport);
-
 
4753
      this.___currentMethod = method_call;
-
 
4754
      ___manager.call(method_call);
-
 
4755
    }
-
 
4756
 
-
 
4757
    public static class storeInsuranceSpecificDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4758
      private long addressId;
-
 
4759
      private String dob;
-
 
4760
      private String guardianName;
-
 
4761
      public storeInsuranceSpecificDetails_call(long addressId, String dob, String guardianName, org.apache.thrift.async.AsyncMethodCallback<storeInsuranceSpecificDetails_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 {
-
 
4762
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4763
        this.addressId = addressId;
-
 
4764
        this.dob = dob;
-
 
4765
        this.guardianName = guardianName;
-
 
4766
      }
-
 
4767
 
-
 
4768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeInsuranceSpecificDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4770
        storeInsuranceSpecificDetails_args args = new storeInsuranceSpecificDetails_args();
-
 
4771
        args.setAddressId(addressId);
-
 
4772
        args.setDob(dob);
-
 
4773
        args.setGuardianName(guardianName);
-
 
4774
        args.write(prot);
-
 
4775
        prot.writeMessageEnd();
-
 
4776
      }
-
 
4777
 
-
 
4778
      public boolean getResult() throws org.apache.thrift.TException {
-
 
4779
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4780
          throw new IllegalStateException("Method call not finished!");
-
 
4781
        }
-
 
4782
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4783
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4784
        return (new Client(prot)).recv_storeInsuranceSpecificDetails();
-
 
4785
      }
-
 
4786
    }
-
 
4787
 
-
 
4788
    public void isInsuranceDetailPresent(long addressId, org.apache.thrift.async.AsyncMethodCallback<isInsuranceDetailPresent_call> resultHandler) throws org.apache.thrift.TException {
-
 
4789
      checkReady();
-
 
4790
      isInsuranceDetailPresent_call method_call = new isInsuranceDetailPresent_call(addressId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4791
      this.___currentMethod = method_call;
-
 
4792
      ___manager.call(method_call);
-
 
4793
    }
-
 
4794
 
-
 
4795
    public static class isInsuranceDetailPresent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4796
      private long addressId;
-
 
4797
      public isInsuranceDetailPresent_call(long addressId, org.apache.thrift.async.AsyncMethodCallback<isInsuranceDetailPresent_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 {
-
 
4798
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4799
        this.addressId = addressId;
-
 
4800
      }
-
 
4801
 
-
 
4802
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4803
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isInsuranceDetailPresent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4804
        isInsuranceDetailPresent_args args = new isInsuranceDetailPresent_args();
-
 
4805
        args.setAddressId(addressId);
-
 
4806
        args.write(prot);
-
 
4807
        prot.writeMessageEnd();
-
 
4808
      }
-
 
4809
 
-
 
4810
      public boolean getResult() throws org.apache.thrift.TException {
-
 
4811
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4812
          throw new IllegalStateException("Method call not finished!");
-
 
4813
        }
-
 
4814
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4815
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4816
        return (new Client(prot)).recv_isInsuranceDetailPresent();
-
 
4817
      }
-
 
4818
    }
-
 
4819
 
4544
    public void isProductAddedToCart(long itemId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<isProductAddedToCart_call> resultHandler) throws org.apache.thrift.TException {
4820
    public void isProductAddedToCart(long itemId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<isProductAddedToCart_call> resultHandler) throws org.apache.thrift.TException {
4545
      checkReady();
4821
      checkReady();
4546
      isProductAddedToCart_call method_call = new isProductAddedToCart_call(itemId, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
4822
      isProductAddedToCart_call method_call = new isProductAddedToCart_call(itemId, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
4547
      this.___currentMethod = method_call;
4823
      this.___currentMethod = method_call;
4548
      ___manager.call(method_call);
4824
      ___manager.call(method_call);
Line 4657... Line 4933...
4657
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4933
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4658
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
4934
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
4659
      processMap.put("getTrustLevel", new getTrustLevel());
4935
      processMap.put("getTrustLevel", new getTrustLevel());
4660
      processMap.put("showCODOption", new showCODOption());
4936
      processMap.put("showCODOption", new showCODOption());
4661
      processMap.put("getUserEmails", new getUserEmails());
4937
      processMap.put("getUserEmails", new getUserEmails());
-
 
4938
      processMap.put("insureItem", new insureItem());
-
 
4939
      processMap.put("cancelInsurance", new cancelInsurance());
-
 
4940
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
-
 
4941
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
4662
      processMap.put("isProductAddedToCart", new isProductAddedToCart());
4942
      processMap.put("isProductAddedToCart", new isProductAddedToCart());
4663
      return processMap;
4943
      return processMap;
4664
    }
4944
    }
4665
 
4945
 
4666
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4946
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
Line 5983... Line 6263...
5983
        result.success = iface.getUserEmails(args.startDate, args.endDate);
6263
        result.success = iface.getUserEmails(args.startDate, args.endDate);
5984
        return result;
6264
        return result;
5985
      }
6265
      }
5986
    }
6266
    }
5987
 
6267
 
-
 
6268
    private static class insureItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insureItem_args> {
-
 
6269
      public insureItem() {
-
 
6270
        super("insureItem");
-
 
6271
      }
-
 
6272
 
-
 
6273
      protected insureItem_args getEmptyArgsInstance() {
-
 
6274
        return new insureItem_args();
-
 
6275
      }
-
 
6276
 
-
 
6277
      protected insureItem_result getResult(I iface, insureItem_args args) throws org.apache.thrift.TException {
-
 
6278
        insureItem_result result = new insureItem_result();
-
 
6279
        result.success = iface.insureItem(args.itemId, args.cartId, args.toInsure);
-
 
6280
        result.setSuccessIsSet(true);
-
 
6281
        return result;
-
 
6282
      }
-
 
6283
    }
-
 
6284
 
-
 
6285
    private static class cancelInsurance<I extends Iface> extends org.apache.thrift.ProcessFunction<I, cancelInsurance_args> {
-
 
6286
      public cancelInsurance() {
-
 
6287
        super("cancelInsurance");
-
 
6288
      }
-
 
6289
 
-
 
6290
      protected cancelInsurance_args getEmptyArgsInstance() {
-
 
6291
        return new cancelInsurance_args();
-
 
6292
      }
-
 
6293
 
-
 
6294
      protected cancelInsurance_result getResult(I iface, cancelInsurance_args args) throws org.apache.thrift.TException {
-
 
6295
        cancelInsurance_result result = new cancelInsurance_result();
-
 
6296
        result.success = iface.cancelInsurance(args.cartId);
-
 
6297
        result.setSuccessIsSet(true);
-
 
6298
        return result;
-
 
6299
      }
-
 
6300
    }
-
 
6301
 
-
 
6302
    private static class storeInsuranceSpecificDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeInsuranceSpecificDetails_args> {
-
 
6303
      public storeInsuranceSpecificDetails() {
-
 
6304
        super("storeInsuranceSpecificDetails");
-
 
6305
      }
-
 
6306
 
-
 
6307
      protected storeInsuranceSpecificDetails_args getEmptyArgsInstance() {
-
 
6308
        return new storeInsuranceSpecificDetails_args();
-
 
6309
      }
-
 
6310
 
-
 
6311
      protected storeInsuranceSpecificDetails_result getResult(I iface, storeInsuranceSpecificDetails_args args) throws org.apache.thrift.TException {
-
 
6312
        storeInsuranceSpecificDetails_result result = new storeInsuranceSpecificDetails_result();
-
 
6313
        result.success = iface.storeInsuranceSpecificDetails(args.addressId, args.dob, args.guardianName);
-
 
6314
        result.setSuccessIsSet(true);
-
 
6315
        return result;
-
 
6316
      }
-
 
6317
    }
-
 
6318
 
-
 
6319
    private static class isInsuranceDetailPresent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isInsuranceDetailPresent_args> {
-
 
6320
      public isInsuranceDetailPresent() {
-
 
6321
        super("isInsuranceDetailPresent");
-
 
6322
      }
-
 
6323
 
-
 
6324
      protected isInsuranceDetailPresent_args getEmptyArgsInstance() {
-
 
6325
        return new isInsuranceDetailPresent_args();
-
 
6326
      }
-
 
6327
 
-
 
6328
      protected isInsuranceDetailPresent_result getResult(I iface, isInsuranceDetailPresent_args args) throws org.apache.thrift.TException {
-
 
6329
        isInsuranceDetailPresent_result result = new isInsuranceDetailPresent_result();
-
 
6330
        result.success = iface.isInsuranceDetailPresent(args.addressId);
-
 
6331
        result.setSuccessIsSet(true);
-
 
6332
        return result;
-
 
6333
      }
-
 
6334
    }
-
 
6335
 
5988
    private static class isProductAddedToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isProductAddedToCart_args> {
6336
    private static class isProductAddedToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isProductAddedToCart_args> {
5989
      public isProductAddedToCart() {
6337
      public isProductAddedToCart() {
5990
        super("isProductAddedToCart");
6338
        super("isProductAddedToCart");
5991
      }
6339
      }
5992
 
6340
 
Line 54651... Line 54999...
54651
      first = false;
54999
      first = false;
54652
      sb.append(")");
55000
      sb.append(")");
54653
      return sb.toString();
55001
      return sb.toString();
54654
    }
55002
    }
54655
 
55003
 
-
 
55004
    public void validate() throws org.apache.thrift.TException {
-
 
55005
      // check for required fields
-
 
55006
    }
-
 
55007
 
-
 
55008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
55009
      try {
-
 
55010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
55011
      } catch (org.apache.thrift.TException te) {
-
 
55012
        throw new java.io.IOException(te);
-
 
55013
      }
-
 
55014
    }
-
 
55015
 
-
 
55016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
55017
      try {
-
 
55018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
55019
      } catch (org.apache.thrift.TException te) {
-
 
55020
        throw new java.io.IOException(te);
-
 
55021
      }
-
 
55022
    }
-
 
55023
 
-
 
55024
  }
-
 
55025
 
-
 
55026
  public static class insureItem_args implements org.apache.thrift.TBase<insureItem_args, insureItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
55027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insureItem_args");
-
 
55028
 
-
 
55029
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
55030
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
55031
    private static final org.apache.thrift.protocol.TField TO_INSURE_FIELD_DESC = new org.apache.thrift.protocol.TField("toInsure", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
 
55032
 
-
 
55033
    private long itemId; // required
-
 
55034
    private long cartId; // required
-
 
55035
    private boolean toInsure; // required
-
 
55036
 
-
 
55037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
55038
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
55039
      ITEM_ID((short)1, "itemId"),
-
 
55040
      CART_ID((short)2, "cartId"),
-
 
55041
      TO_INSURE((short)3, "toInsure");
-
 
55042
 
-
 
55043
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
55044
 
-
 
55045
      static {
-
 
55046
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
55047
          byName.put(field.getFieldName(), field);
-
 
55048
        }
-
 
55049
      }
-
 
55050
 
-
 
55051
      /**
-
 
55052
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
55053
       */
-
 
55054
      public static _Fields findByThriftId(int fieldId) {
-
 
55055
        switch(fieldId) {
-
 
55056
          case 1: // ITEM_ID
-
 
55057
            return ITEM_ID;
-
 
55058
          case 2: // CART_ID
-
 
55059
            return CART_ID;
-
 
55060
          case 3: // TO_INSURE
-
 
55061
            return TO_INSURE;
-
 
55062
          default:
-
 
55063
            return null;
-
 
55064
        }
-
 
55065
      }
-
 
55066
 
-
 
55067
      /**
-
 
55068
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
55069
       * if it is not found.
-
 
55070
       */
-
 
55071
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
55072
        _Fields fields = findByThriftId(fieldId);
-
 
55073
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
55074
        return fields;
-
 
55075
      }
-
 
55076
 
-
 
55077
      /**
-
 
55078
       * Find the _Fields constant that matches name, or null if its not found.
-
 
55079
       */
-
 
55080
      public static _Fields findByName(String name) {
-
 
55081
        return byName.get(name);
-
 
55082
      }
-
 
55083
 
-
 
55084
      private final short _thriftId;
-
 
55085
      private final String _fieldName;
-
 
55086
 
-
 
55087
      _Fields(short thriftId, String fieldName) {
-
 
55088
        _thriftId = thriftId;
-
 
55089
        _fieldName = fieldName;
-
 
55090
      }
-
 
55091
 
-
 
55092
      public short getThriftFieldId() {
-
 
55093
        return _thriftId;
-
 
55094
      }
-
 
55095
 
-
 
55096
      public String getFieldName() {
-
 
55097
        return _fieldName;
-
 
55098
      }
-
 
55099
    }
-
 
55100
 
-
 
55101
    // isset id assignments
-
 
55102
    private static final int __ITEMID_ISSET_ID = 0;
-
 
55103
    private static final int __CARTID_ISSET_ID = 1;
-
 
55104
    private static final int __TOINSURE_ISSET_ID = 2;
-
 
55105
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
55106
 
-
 
55107
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
55108
    static {
-
 
55109
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
55110
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55111
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
55112
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
55114
      tmpMap.put(_Fields.TO_INSURE, new org.apache.thrift.meta_data.FieldMetaData("toInsure", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
55116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
55117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insureItem_args.class, metaDataMap);
-
 
55118
    }
-
 
55119
 
-
 
55120
    public insureItem_args() {
-
 
55121
    }
-
 
55122
 
-
 
55123
    public insureItem_args(
-
 
55124
      long itemId,
-
 
55125
      long cartId,
-
 
55126
      boolean toInsure)
-
 
55127
    {
-
 
55128
      this();
-
 
55129
      this.itemId = itemId;
-
 
55130
      setItemIdIsSet(true);
-
 
55131
      this.cartId = cartId;
-
 
55132
      setCartIdIsSet(true);
-
 
55133
      this.toInsure = toInsure;
-
 
55134
      setToInsureIsSet(true);
-
 
55135
    }
-
 
55136
 
-
 
55137
    /**
-
 
55138
     * Performs a deep copy on <i>other</i>.
-
 
55139
     */
-
 
55140
    public insureItem_args(insureItem_args other) {
-
 
55141
      __isset_bit_vector.clear();
-
 
55142
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
55143
      this.itemId = other.itemId;
-
 
55144
      this.cartId = other.cartId;
-
 
55145
      this.toInsure = other.toInsure;
-
 
55146
    }
-
 
55147
 
-
 
55148
    public insureItem_args deepCopy() {
-
 
55149
      return new insureItem_args(this);
-
 
55150
    }
-
 
55151
 
-
 
55152
    @Override
-
 
55153
    public void clear() {
-
 
55154
      setItemIdIsSet(false);
-
 
55155
      this.itemId = 0;
-
 
55156
      setCartIdIsSet(false);
-
 
55157
      this.cartId = 0;
-
 
55158
      setToInsureIsSet(false);
-
 
55159
      this.toInsure = false;
-
 
55160
    }
-
 
55161
 
-
 
55162
    public long getItemId() {
-
 
55163
      return this.itemId;
-
 
55164
    }
-
 
55165
 
-
 
55166
    public void setItemId(long itemId) {
-
 
55167
      this.itemId = itemId;
-
 
55168
      setItemIdIsSet(true);
-
 
55169
    }
-
 
55170
 
-
 
55171
    public void unsetItemId() {
-
 
55172
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
55173
    }
-
 
55174
 
-
 
55175
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
55176
    public boolean isSetItemId() {
-
 
55177
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
55178
    }
-
 
55179
 
-
 
55180
    public void setItemIdIsSet(boolean value) {
-
 
55181
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
55182
    }
-
 
55183
 
-
 
55184
    public long getCartId() {
-
 
55185
      return this.cartId;
-
 
55186
    }
-
 
55187
 
-
 
55188
    public void setCartId(long cartId) {
-
 
55189
      this.cartId = cartId;
-
 
55190
      setCartIdIsSet(true);
-
 
55191
    }
-
 
55192
 
-
 
55193
    public void unsetCartId() {
-
 
55194
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
55195
    }
-
 
55196
 
-
 
55197
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
55198
    public boolean isSetCartId() {
-
 
55199
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
55200
    }
-
 
55201
 
-
 
55202
    public void setCartIdIsSet(boolean value) {
-
 
55203
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
55204
    }
-
 
55205
 
-
 
55206
    public boolean isToInsure() {
-
 
55207
      return this.toInsure;
-
 
55208
    }
-
 
55209
 
-
 
55210
    public void setToInsure(boolean toInsure) {
-
 
55211
      this.toInsure = toInsure;
-
 
55212
      setToInsureIsSet(true);
-
 
55213
    }
-
 
55214
 
-
 
55215
    public void unsetToInsure() {
-
 
55216
      __isset_bit_vector.clear(__TOINSURE_ISSET_ID);
-
 
55217
    }
-
 
55218
 
-
 
55219
    /** Returns true if field toInsure is set (has been assigned a value) and false otherwise */
-
 
55220
    public boolean isSetToInsure() {
-
 
55221
      return __isset_bit_vector.get(__TOINSURE_ISSET_ID);
-
 
55222
    }
-
 
55223
 
-
 
55224
    public void setToInsureIsSet(boolean value) {
-
 
55225
      __isset_bit_vector.set(__TOINSURE_ISSET_ID, value);
-
 
55226
    }
-
 
55227
 
-
 
55228
    public void setFieldValue(_Fields field, Object value) {
-
 
55229
      switch (field) {
-
 
55230
      case ITEM_ID:
-
 
55231
        if (value == null) {
-
 
55232
          unsetItemId();
-
 
55233
        } else {
-
 
55234
          setItemId((Long)value);
-
 
55235
        }
-
 
55236
        break;
-
 
55237
 
-
 
55238
      case CART_ID:
-
 
55239
        if (value == null) {
-
 
55240
          unsetCartId();
-
 
55241
        } else {
-
 
55242
          setCartId((Long)value);
-
 
55243
        }
-
 
55244
        break;
-
 
55245
 
-
 
55246
      case TO_INSURE:
-
 
55247
        if (value == null) {
-
 
55248
          unsetToInsure();
-
 
55249
        } else {
-
 
55250
          setToInsure((Boolean)value);
-
 
55251
        }
-
 
55252
        break;
-
 
55253
 
-
 
55254
      }
-
 
55255
    }
-
 
55256
 
-
 
55257
    public Object getFieldValue(_Fields field) {
-
 
55258
      switch (field) {
-
 
55259
      case ITEM_ID:
-
 
55260
        return Long.valueOf(getItemId());
-
 
55261
 
-
 
55262
      case CART_ID:
-
 
55263
        return Long.valueOf(getCartId());
-
 
55264
 
-
 
55265
      case TO_INSURE:
-
 
55266
        return Boolean.valueOf(isToInsure());
-
 
55267
 
-
 
55268
      }
-
 
55269
      throw new IllegalStateException();
-
 
55270
    }
-
 
55271
 
-
 
55272
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
55273
    public boolean isSet(_Fields field) {
-
 
55274
      if (field == null) {
-
 
55275
        throw new IllegalArgumentException();
-
 
55276
      }
-
 
55277
 
-
 
55278
      switch (field) {
-
 
55279
      case ITEM_ID:
-
 
55280
        return isSetItemId();
-
 
55281
      case CART_ID:
-
 
55282
        return isSetCartId();
-
 
55283
      case TO_INSURE:
-
 
55284
        return isSetToInsure();
-
 
55285
      }
-
 
55286
      throw new IllegalStateException();
-
 
55287
    }
-
 
55288
 
-
 
55289
    @Override
-
 
55290
    public boolean equals(Object that) {
-
 
55291
      if (that == null)
-
 
55292
        return false;
-
 
55293
      if (that instanceof insureItem_args)
-
 
55294
        return this.equals((insureItem_args)that);
-
 
55295
      return false;
-
 
55296
    }
-
 
55297
 
-
 
55298
    public boolean equals(insureItem_args that) {
-
 
55299
      if (that == null)
-
 
55300
        return false;
-
 
55301
 
-
 
55302
      boolean this_present_itemId = true;
-
 
55303
      boolean that_present_itemId = true;
-
 
55304
      if (this_present_itemId || that_present_itemId) {
-
 
55305
        if (!(this_present_itemId && that_present_itemId))
-
 
55306
          return false;
-
 
55307
        if (this.itemId != that.itemId)
-
 
55308
          return false;
-
 
55309
      }
-
 
55310
 
-
 
55311
      boolean this_present_cartId = true;
-
 
55312
      boolean that_present_cartId = true;
-
 
55313
      if (this_present_cartId || that_present_cartId) {
-
 
55314
        if (!(this_present_cartId && that_present_cartId))
-
 
55315
          return false;
-
 
55316
        if (this.cartId != that.cartId)
-
 
55317
          return false;
-
 
55318
      }
-
 
55319
 
-
 
55320
      boolean this_present_toInsure = true;
-
 
55321
      boolean that_present_toInsure = true;
-
 
55322
      if (this_present_toInsure || that_present_toInsure) {
-
 
55323
        if (!(this_present_toInsure && that_present_toInsure))
-
 
55324
          return false;
-
 
55325
        if (this.toInsure != that.toInsure)
-
 
55326
          return false;
-
 
55327
      }
-
 
55328
 
-
 
55329
      return true;
-
 
55330
    }
-
 
55331
 
-
 
55332
    @Override
-
 
55333
    public int hashCode() {
-
 
55334
      return 0;
-
 
55335
    }
-
 
55336
 
-
 
55337
    public int compareTo(insureItem_args other) {
-
 
55338
      if (!getClass().equals(other.getClass())) {
-
 
55339
        return getClass().getName().compareTo(other.getClass().getName());
-
 
55340
      }
-
 
55341
 
-
 
55342
      int lastComparison = 0;
-
 
55343
      insureItem_args typedOther = (insureItem_args)other;
-
 
55344
 
-
 
55345
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
55346
      if (lastComparison != 0) {
-
 
55347
        return lastComparison;
-
 
55348
      }
-
 
55349
      if (isSetItemId()) {
-
 
55350
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
55351
        if (lastComparison != 0) {
-
 
55352
          return lastComparison;
-
 
55353
        }
-
 
55354
      }
-
 
55355
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
55356
      if (lastComparison != 0) {
-
 
55357
        return lastComparison;
-
 
55358
      }
-
 
55359
      if (isSetCartId()) {
-
 
55360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
55361
        if (lastComparison != 0) {
-
 
55362
          return lastComparison;
-
 
55363
        }
-
 
55364
      }
-
 
55365
      lastComparison = Boolean.valueOf(isSetToInsure()).compareTo(typedOther.isSetToInsure());
-
 
55366
      if (lastComparison != 0) {
-
 
55367
        return lastComparison;
-
 
55368
      }
-
 
55369
      if (isSetToInsure()) {
-
 
55370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toInsure, typedOther.toInsure);
-
 
55371
        if (lastComparison != 0) {
-
 
55372
          return lastComparison;
-
 
55373
        }
-
 
55374
      }
-
 
55375
      return 0;
-
 
55376
    }
-
 
55377
 
-
 
55378
    public _Fields fieldForId(int fieldId) {
-
 
55379
      return _Fields.findByThriftId(fieldId);
-
 
55380
    }
-
 
55381
 
-
 
55382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
55383
      org.apache.thrift.protocol.TField field;
-
 
55384
      iprot.readStructBegin();
-
 
55385
      while (true)
-
 
55386
      {
-
 
55387
        field = iprot.readFieldBegin();
-
 
55388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
55389
          break;
-
 
55390
        }
-
 
55391
        switch (field.id) {
-
 
55392
          case 1: // ITEM_ID
-
 
55393
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
55394
              this.itemId = iprot.readI64();
-
 
55395
              setItemIdIsSet(true);
-
 
55396
            } else { 
-
 
55397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55398
            }
-
 
55399
            break;
-
 
55400
          case 2: // CART_ID
-
 
55401
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
55402
              this.cartId = iprot.readI64();
-
 
55403
              setCartIdIsSet(true);
-
 
55404
            } else { 
-
 
55405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55406
            }
-
 
55407
            break;
-
 
55408
          case 3: // TO_INSURE
-
 
55409
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
55410
              this.toInsure = iprot.readBool();
-
 
55411
              setToInsureIsSet(true);
-
 
55412
            } else { 
-
 
55413
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55414
            }
-
 
55415
            break;
-
 
55416
          default:
-
 
55417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55418
        }
-
 
55419
        iprot.readFieldEnd();
-
 
55420
      }
-
 
55421
      iprot.readStructEnd();
-
 
55422
      validate();
-
 
55423
    }
-
 
55424
 
-
 
55425
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
55426
      validate();
-
 
55427
 
-
 
55428
      oprot.writeStructBegin(STRUCT_DESC);
-
 
55429
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
55430
      oprot.writeI64(this.itemId);
-
 
55431
      oprot.writeFieldEnd();
-
 
55432
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
55433
      oprot.writeI64(this.cartId);
-
 
55434
      oprot.writeFieldEnd();
-
 
55435
      oprot.writeFieldBegin(TO_INSURE_FIELD_DESC);
-
 
55436
      oprot.writeBool(this.toInsure);
-
 
55437
      oprot.writeFieldEnd();
-
 
55438
      oprot.writeFieldStop();
-
 
55439
      oprot.writeStructEnd();
-
 
55440
    }
-
 
55441
 
-
 
55442
    @Override
-
 
55443
    public String toString() {
-
 
55444
      StringBuilder sb = new StringBuilder("insureItem_args(");
-
 
55445
      boolean first = true;
-
 
55446
 
-
 
55447
      sb.append("itemId:");
-
 
55448
      sb.append(this.itemId);
-
 
55449
      first = false;
-
 
55450
      if (!first) sb.append(", ");
-
 
55451
      sb.append("cartId:");
-
 
55452
      sb.append(this.cartId);
-
 
55453
      first = false;
-
 
55454
      if (!first) sb.append(", ");
-
 
55455
      sb.append("toInsure:");
-
 
55456
      sb.append(this.toInsure);
-
 
55457
      first = false;
-
 
55458
      sb.append(")");
-
 
55459
      return sb.toString();
-
 
55460
    }
-
 
55461
 
-
 
55462
    public void validate() throws org.apache.thrift.TException {
-
 
55463
      // check for required fields
-
 
55464
    }
-
 
55465
 
-
 
55466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
55467
      try {
-
 
55468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
55469
      } catch (org.apache.thrift.TException te) {
-
 
55470
        throw new java.io.IOException(te);
-
 
55471
      }
-
 
55472
    }
-
 
55473
 
-
 
55474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
55475
      try {
-
 
55476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
55477
      } catch (org.apache.thrift.TException te) {
-
 
55478
        throw new java.io.IOException(te);
-
 
55479
      }
-
 
55480
    }
-
 
55481
 
-
 
55482
  }
-
 
55483
 
-
 
55484
  public static class insureItem_result implements org.apache.thrift.TBase<insureItem_result, insureItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
55485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insureItem_result");
-
 
55486
 
-
 
55487
    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);
-
 
55488
 
-
 
55489
    private boolean success; // required
-
 
55490
 
-
 
55491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
55492
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
55493
      SUCCESS((short)0, "success");
-
 
55494
 
-
 
55495
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
55496
 
-
 
55497
      static {
-
 
55498
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
55499
          byName.put(field.getFieldName(), field);
-
 
55500
        }
-
 
55501
      }
-
 
55502
 
-
 
55503
      /**
-
 
55504
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
55505
       */
-
 
55506
      public static _Fields findByThriftId(int fieldId) {
-
 
55507
        switch(fieldId) {
-
 
55508
          case 0: // SUCCESS
-
 
55509
            return SUCCESS;
-
 
55510
          default:
-
 
55511
            return null;
-
 
55512
        }
-
 
55513
      }
-
 
55514
 
-
 
55515
      /**
-
 
55516
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
55517
       * if it is not found.
-
 
55518
       */
-
 
55519
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
55520
        _Fields fields = findByThriftId(fieldId);
-
 
55521
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
55522
        return fields;
-
 
55523
      }
-
 
55524
 
-
 
55525
      /**
-
 
55526
       * Find the _Fields constant that matches name, or null if its not found.
-
 
55527
       */
-
 
55528
      public static _Fields findByName(String name) {
-
 
55529
        return byName.get(name);
-
 
55530
      }
-
 
55531
 
-
 
55532
      private final short _thriftId;
-
 
55533
      private final String _fieldName;
-
 
55534
 
-
 
55535
      _Fields(short thriftId, String fieldName) {
-
 
55536
        _thriftId = thriftId;
-
 
55537
        _fieldName = fieldName;
-
 
55538
      }
-
 
55539
 
-
 
55540
      public short getThriftFieldId() {
-
 
55541
        return _thriftId;
-
 
55542
      }
-
 
55543
 
-
 
55544
      public String getFieldName() {
-
 
55545
        return _fieldName;
-
 
55546
      }
-
 
55547
    }
-
 
55548
 
-
 
55549
    // isset id assignments
-
 
55550
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
55551
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
55552
 
-
 
55553
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
55554
    static {
-
 
55555
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
55556
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55557
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
55558
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
55559
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insureItem_result.class, metaDataMap);
-
 
55560
    }
-
 
55561
 
-
 
55562
    public insureItem_result() {
-
 
55563
    }
-
 
55564
 
-
 
55565
    public insureItem_result(
-
 
55566
      boolean success)
-
 
55567
    {
-
 
55568
      this();
-
 
55569
      this.success = success;
-
 
55570
      setSuccessIsSet(true);
-
 
55571
    }
-
 
55572
 
-
 
55573
    /**
-
 
55574
     * Performs a deep copy on <i>other</i>.
-
 
55575
     */
-
 
55576
    public insureItem_result(insureItem_result other) {
-
 
55577
      __isset_bit_vector.clear();
-
 
55578
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
55579
      this.success = other.success;
-
 
55580
    }
-
 
55581
 
-
 
55582
    public insureItem_result deepCopy() {
-
 
55583
      return new insureItem_result(this);
-
 
55584
    }
-
 
55585
 
-
 
55586
    @Override
-
 
55587
    public void clear() {
-
 
55588
      setSuccessIsSet(false);
-
 
55589
      this.success = false;
-
 
55590
    }
-
 
55591
 
-
 
55592
    public boolean isSuccess() {
-
 
55593
      return this.success;
-
 
55594
    }
-
 
55595
 
-
 
55596
    public void setSuccess(boolean success) {
-
 
55597
      this.success = success;
-
 
55598
      setSuccessIsSet(true);
-
 
55599
    }
-
 
55600
 
-
 
55601
    public void unsetSuccess() {
-
 
55602
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
55603
    }
-
 
55604
 
-
 
55605
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
55606
    public boolean isSetSuccess() {
-
 
55607
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
55608
    }
-
 
55609
 
-
 
55610
    public void setSuccessIsSet(boolean value) {
-
 
55611
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
55612
    }
-
 
55613
 
-
 
55614
    public void setFieldValue(_Fields field, Object value) {
-
 
55615
      switch (field) {
-
 
55616
      case SUCCESS:
-
 
55617
        if (value == null) {
-
 
55618
          unsetSuccess();
-
 
55619
        } else {
-
 
55620
          setSuccess((Boolean)value);
-
 
55621
        }
-
 
55622
        break;
-
 
55623
 
-
 
55624
      }
-
 
55625
    }
-
 
55626
 
-
 
55627
    public Object getFieldValue(_Fields field) {
-
 
55628
      switch (field) {
-
 
55629
      case SUCCESS:
-
 
55630
        return Boolean.valueOf(isSuccess());
-
 
55631
 
-
 
55632
      }
-
 
55633
      throw new IllegalStateException();
-
 
55634
    }
-
 
55635
 
-
 
55636
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
55637
    public boolean isSet(_Fields field) {
-
 
55638
      if (field == null) {
-
 
55639
        throw new IllegalArgumentException();
-
 
55640
      }
-
 
55641
 
-
 
55642
      switch (field) {
-
 
55643
      case SUCCESS:
-
 
55644
        return isSetSuccess();
-
 
55645
      }
-
 
55646
      throw new IllegalStateException();
-
 
55647
    }
-
 
55648
 
-
 
55649
    @Override
-
 
55650
    public boolean equals(Object that) {
-
 
55651
      if (that == null)
-
 
55652
        return false;
-
 
55653
      if (that instanceof insureItem_result)
-
 
55654
        return this.equals((insureItem_result)that);
-
 
55655
      return false;
-
 
55656
    }
-
 
55657
 
-
 
55658
    public boolean equals(insureItem_result that) {
-
 
55659
      if (that == null)
-
 
55660
        return false;
-
 
55661
 
-
 
55662
      boolean this_present_success = true;
-
 
55663
      boolean that_present_success = true;
-
 
55664
      if (this_present_success || that_present_success) {
-
 
55665
        if (!(this_present_success && that_present_success))
-
 
55666
          return false;
-
 
55667
        if (this.success != that.success)
-
 
55668
          return false;
-
 
55669
      }
-
 
55670
 
-
 
55671
      return true;
-
 
55672
    }
-
 
55673
 
-
 
55674
    @Override
-
 
55675
    public int hashCode() {
-
 
55676
      return 0;
-
 
55677
    }
-
 
55678
 
-
 
55679
    public int compareTo(insureItem_result other) {
-
 
55680
      if (!getClass().equals(other.getClass())) {
-
 
55681
        return getClass().getName().compareTo(other.getClass().getName());
-
 
55682
      }
-
 
55683
 
-
 
55684
      int lastComparison = 0;
-
 
55685
      insureItem_result typedOther = (insureItem_result)other;
-
 
55686
 
-
 
55687
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
55688
      if (lastComparison != 0) {
-
 
55689
        return lastComparison;
-
 
55690
      }
-
 
55691
      if (isSetSuccess()) {
-
 
55692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
55693
        if (lastComparison != 0) {
-
 
55694
          return lastComparison;
-
 
55695
        }
-
 
55696
      }
-
 
55697
      return 0;
-
 
55698
    }
-
 
55699
 
-
 
55700
    public _Fields fieldForId(int fieldId) {
-
 
55701
      return _Fields.findByThriftId(fieldId);
-
 
55702
    }
-
 
55703
 
-
 
55704
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
55705
      org.apache.thrift.protocol.TField field;
-
 
55706
      iprot.readStructBegin();
-
 
55707
      while (true)
-
 
55708
      {
-
 
55709
        field = iprot.readFieldBegin();
-
 
55710
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
55711
          break;
-
 
55712
        }
-
 
55713
        switch (field.id) {
-
 
55714
          case 0: // SUCCESS
-
 
55715
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
55716
              this.success = iprot.readBool();
-
 
55717
              setSuccessIsSet(true);
-
 
55718
            } else { 
-
 
55719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55720
            }
-
 
55721
            break;
-
 
55722
          default:
-
 
55723
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55724
        }
-
 
55725
        iprot.readFieldEnd();
-
 
55726
      }
-
 
55727
      iprot.readStructEnd();
-
 
55728
      validate();
-
 
55729
    }
-
 
55730
 
-
 
55731
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
55732
      oprot.writeStructBegin(STRUCT_DESC);
-
 
55733
 
-
 
55734
      if (this.isSetSuccess()) {
-
 
55735
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
55736
        oprot.writeBool(this.success);
-
 
55737
        oprot.writeFieldEnd();
-
 
55738
      }
-
 
55739
      oprot.writeFieldStop();
-
 
55740
      oprot.writeStructEnd();
-
 
55741
    }
-
 
55742
 
-
 
55743
    @Override
-
 
55744
    public String toString() {
-
 
55745
      StringBuilder sb = new StringBuilder("insureItem_result(");
-
 
55746
      boolean first = true;
-
 
55747
 
-
 
55748
      sb.append("success:");
-
 
55749
      sb.append(this.success);
-
 
55750
      first = false;
-
 
55751
      sb.append(")");
-
 
55752
      return sb.toString();
-
 
55753
    }
-
 
55754
 
-
 
55755
    public void validate() throws org.apache.thrift.TException {
-
 
55756
      // check for required fields
-
 
55757
    }
-
 
55758
 
-
 
55759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
55760
      try {
-
 
55761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
55762
      } catch (org.apache.thrift.TException te) {
-
 
55763
        throw new java.io.IOException(te);
-
 
55764
      }
-
 
55765
    }
-
 
55766
 
-
 
55767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
55768
      try {
-
 
55769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
55770
      } catch (org.apache.thrift.TException te) {
-
 
55771
        throw new java.io.IOException(te);
-
 
55772
      }
-
 
55773
    }
-
 
55774
 
-
 
55775
  }
-
 
55776
 
-
 
55777
  public static class cancelInsurance_args implements org.apache.thrift.TBase<cancelInsurance_args, cancelInsurance_args._Fields>, java.io.Serializable, Cloneable   {
-
 
55778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancelInsurance_args");
-
 
55779
 
-
 
55780
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
55781
 
-
 
55782
    private long cartId; // required
-
 
55783
 
-
 
55784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
55785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
55786
      CART_ID((short)1, "cartId");
-
 
55787
 
-
 
55788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
55789
 
-
 
55790
      static {
-
 
55791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
55792
          byName.put(field.getFieldName(), field);
-
 
55793
        }
-
 
55794
      }
-
 
55795
 
-
 
55796
      /**
-
 
55797
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
55798
       */
-
 
55799
      public static _Fields findByThriftId(int fieldId) {
-
 
55800
        switch(fieldId) {
-
 
55801
          case 1: // CART_ID
-
 
55802
            return CART_ID;
-
 
55803
          default:
-
 
55804
            return null;
-
 
55805
        }
-
 
55806
      }
-
 
55807
 
-
 
55808
      /**
-
 
55809
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
55810
       * if it is not found.
-
 
55811
       */
-
 
55812
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
55813
        _Fields fields = findByThriftId(fieldId);
-
 
55814
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
55815
        return fields;
-
 
55816
      }
-
 
55817
 
-
 
55818
      /**
-
 
55819
       * Find the _Fields constant that matches name, or null if its not found.
-
 
55820
       */
-
 
55821
      public static _Fields findByName(String name) {
-
 
55822
        return byName.get(name);
-
 
55823
      }
-
 
55824
 
-
 
55825
      private final short _thriftId;
-
 
55826
      private final String _fieldName;
-
 
55827
 
-
 
55828
      _Fields(short thriftId, String fieldName) {
-
 
55829
        _thriftId = thriftId;
-
 
55830
        _fieldName = fieldName;
-
 
55831
      }
-
 
55832
 
-
 
55833
      public short getThriftFieldId() {
-
 
55834
        return _thriftId;
-
 
55835
      }
-
 
55836
 
-
 
55837
      public String getFieldName() {
-
 
55838
        return _fieldName;
-
 
55839
      }
-
 
55840
    }
-
 
55841
 
-
 
55842
    // isset id assignments
-
 
55843
    private static final int __CARTID_ISSET_ID = 0;
-
 
55844
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
55845
 
-
 
55846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
55847
    static {
-
 
55848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
55849
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
55850
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
55851
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
55852
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelInsurance_args.class, metaDataMap);
-
 
55853
    }
-
 
55854
 
-
 
55855
    public cancelInsurance_args() {
-
 
55856
    }
-
 
55857
 
-
 
55858
    public cancelInsurance_args(
-
 
55859
      long cartId)
-
 
55860
    {
-
 
55861
      this();
-
 
55862
      this.cartId = cartId;
-
 
55863
      setCartIdIsSet(true);
-
 
55864
    }
-
 
55865
 
-
 
55866
    /**
-
 
55867
     * Performs a deep copy on <i>other</i>.
-
 
55868
     */
-
 
55869
    public cancelInsurance_args(cancelInsurance_args other) {
-
 
55870
      __isset_bit_vector.clear();
-
 
55871
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
55872
      this.cartId = other.cartId;
-
 
55873
    }
-
 
55874
 
-
 
55875
    public cancelInsurance_args deepCopy() {
-
 
55876
      return new cancelInsurance_args(this);
-
 
55877
    }
-
 
55878
 
-
 
55879
    @Override
-
 
55880
    public void clear() {
-
 
55881
      setCartIdIsSet(false);
-
 
55882
      this.cartId = 0;
-
 
55883
    }
-
 
55884
 
-
 
55885
    public long getCartId() {
-
 
55886
      return this.cartId;
-
 
55887
    }
-
 
55888
 
-
 
55889
    public void setCartId(long cartId) {
-
 
55890
      this.cartId = cartId;
-
 
55891
      setCartIdIsSet(true);
-
 
55892
    }
-
 
55893
 
-
 
55894
    public void unsetCartId() {
-
 
55895
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
55896
    }
-
 
55897
 
-
 
55898
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
55899
    public boolean isSetCartId() {
-
 
55900
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
55901
    }
-
 
55902
 
-
 
55903
    public void setCartIdIsSet(boolean value) {
-
 
55904
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
55905
    }
-
 
55906
 
-
 
55907
    public void setFieldValue(_Fields field, Object value) {
-
 
55908
      switch (field) {
-
 
55909
      case CART_ID:
-
 
55910
        if (value == null) {
-
 
55911
          unsetCartId();
-
 
55912
        } else {
-
 
55913
          setCartId((Long)value);
-
 
55914
        }
-
 
55915
        break;
-
 
55916
 
-
 
55917
      }
-
 
55918
    }
-
 
55919
 
-
 
55920
    public Object getFieldValue(_Fields field) {
-
 
55921
      switch (field) {
-
 
55922
      case CART_ID:
-
 
55923
        return Long.valueOf(getCartId());
-
 
55924
 
-
 
55925
      }
-
 
55926
      throw new IllegalStateException();
-
 
55927
    }
-
 
55928
 
-
 
55929
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
55930
    public boolean isSet(_Fields field) {
-
 
55931
      if (field == null) {
-
 
55932
        throw new IllegalArgumentException();
-
 
55933
      }
-
 
55934
 
-
 
55935
      switch (field) {
-
 
55936
      case CART_ID:
-
 
55937
        return isSetCartId();
-
 
55938
      }
-
 
55939
      throw new IllegalStateException();
-
 
55940
    }
-
 
55941
 
-
 
55942
    @Override
-
 
55943
    public boolean equals(Object that) {
-
 
55944
      if (that == null)
-
 
55945
        return false;
-
 
55946
      if (that instanceof cancelInsurance_args)
-
 
55947
        return this.equals((cancelInsurance_args)that);
-
 
55948
      return false;
-
 
55949
    }
-
 
55950
 
-
 
55951
    public boolean equals(cancelInsurance_args that) {
-
 
55952
      if (that == null)
-
 
55953
        return false;
-
 
55954
 
-
 
55955
      boolean this_present_cartId = true;
-
 
55956
      boolean that_present_cartId = true;
-
 
55957
      if (this_present_cartId || that_present_cartId) {
-
 
55958
        if (!(this_present_cartId && that_present_cartId))
-
 
55959
          return false;
-
 
55960
        if (this.cartId != that.cartId)
-
 
55961
          return false;
-
 
55962
      }
-
 
55963
 
-
 
55964
      return true;
-
 
55965
    }
-
 
55966
 
-
 
55967
    @Override
-
 
55968
    public int hashCode() {
-
 
55969
      return 0;
-
 
55970
    }
-
 
55971
 
-
 
55972
    public int compareTo(cancelInsurance_args other) {
-
 
55973
      if (!getClass().equals(other.getClass())) {
-
 
55974
        return getClass().getName().compareTo(other.getClass().getName());
-
 
55975
      }
-
 
55976
 
-
 
55977
      int lastComparison = 0;
-
 
55978
      cancelInsurance_args typedOther = (cancelInsurance_args)other;
-
 
55979
 
-
 
55980
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
55981
      if (lastComparison != 0) {
-
 
55982
        return lastComparison;
-
 
55983
      }
-
 
55984
      if (isSetCartId()) {
-
 
55985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
55986
        if (lastComparison != 0) {
-
 
55987
          return lastComparison;
-
 
55988
        }
-
 
55989
      }
-
 
55990
      return 0;
-
 
55991
    }
-
 
55992
 
-
 
55993
    public _Fields fieldForId(int fieldId) {
-
 
55994
      return _Fields.findByThriftId(fieldId);
-
 
55995
    }
-
 
55996
 
-
 
55997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
55998
      org.apache.thrift.protocol.TField field;
-
 
55999
      iprot.readStructBegin();
-
 
56000
      while (true)
-
 
56001
      {
-
 
56002
        field = iprot.readFieldBegin();
-
 
56003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56004
          break;
-
 
56005
        }
-
 
56006
        switch (field.id) {
-
 
56007
          case 1: // CART_ID
-
 
56008
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
56009
              this.cartId = iprot.readI64();
-
 
56010
              setCartIdIsSet(true);
-
 
56011
            } else { 
-
 
56012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56013
            }
-
 
56014
            break;
-
 
56015
          default:
-
 
56016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56017
        }
-
 
56018
        iprot.readFieldEnd();
-
 
56019
      }
-
 
56020
      iprot.readStructEnd();
-
 
56021
      validate();
-
 
56022
    }
-
 
56023
 
-
 
56024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56025
      validate();
-
 
56026
 
-
 
56027
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56028
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
56029
      oprot.writeI64(this.cartId);
-
 
56030
      oprot.writeFieldEnd();
-
 
56031
      oprot.writeFieldStop();
-
 
56032
      oprot.writeStructEnd();
-
 
56033
    }
-
 
56034
 
-
 
56035
    @Override
-
 
56036
    public String toString() {
-
 
56037
      StringBuilder sb = new StringBuilder("cancelInsurance_args(");
-
 
56038
      boolean first = true;
-
 
56039
 
-
 
56040
      sb.append("cartId:");
-
 
56041
      sb.append(this.cartId);
-
 
56042
      first = false;
-
 
56043
      sb.append(")");
-
 
56044
      return sb.toString();
-
 
56045
    }
-
 
56046
 
-
 
56047
    public void validate() throws org.apache.thrift.TException {
-
 
56048
      // check for required fields
-
 
56049
    }
-
 
56050
 
-
 
56051
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56052
      try {
-
 
56053
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56054
      } catch (org.apache.thrift.TException te) {
-
 
56055
        throw new java.io.IOException(te);
-
 
56056
      }
-
 
56057
    }
-
 
56058
 
-
 
56059
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56060
      try {
-
 
56061
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
56062
        __isset_bit_vector = new BitSet(1);
-
 
56063
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56064
      } catch (org.apache.thrift.TException te) {
-
 
56065
        throw new java.io.IOException(te);
-
 
56066
      }
-
 
56067
    }
-
 
56068
 
-
 
56069
  }
-
 
56070
 
-
 
56071
  public static class cancelInsurance_result implements org.apache.thrift.TBase<cancelInsurance_result, cancelInsurance_result._Fields>, java.io.Serializable, Cloneable   {
-
 
56072
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancelInsurance_result");
-
 
56073
 
-
 
56074
    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);
-
 
56075
 
-
 
56076
    private boolean success; // required
-
 
56077
 
-
 
56078
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56079
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56080
      SUCCESS((short)0, "success");
-
 
56081
 
-
 
56082
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56083
 
-
 
56084
      static {
-
 
56085
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56086
          byName.put(field.getFieldName(), field);
-
 
56087
        }
-
 
56088
      }
-
 
56089
 
-
 
56090
      /**
-
 
56091
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56092
       */
-
 
56093
      public static _Fields findByThriftId(int fieldId) {
-
 
56094
        switch(fieldId) {
-
 
56095
          case 0: // SUCCESS
-
 
56096
            return SUCCESS;
-
 
56097
          default:
-
 
56098
            return null;
-
 
56099
        }
-
 
56100
      }
-
 
56101
 
-
 
56102
      /**
-
 
56103
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56104
       * if it is not found.
-
 
56105
       */
-
 
56106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56107
        _Fields fields = findByThriftId(fieldId);
-
 
56108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56109
        return fields;
-
 
56110
      }
-
 
56111
 
-
 
56112
      /**
-
 
56113
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56114
       */
-
 
56115
      public static _Fields findByName(String name) {
-
 
56116
        return byName.get(name);
-
 
56117
      }
-
 
56118
 
-
 
56119
      private final short _thriftId;
-
 
56120
      private final String _fieldName;
-
 
56121
 
-
 
56122
      _Fields(short thriftId, String fieldName) {
-
 
56123
        _thriftId = thriftId;
-
 
56124
        _fieldName = fieldName;
-
 
56125
      }
-
 
56126
 
-
 
56127
      public short getThriftFieldId() {
-
 
56128
        return _thriftId;
-
 
56129
      }
-
 
56130
 
-
 
56131
      public String getFieldName() {
-
 
56132
        return _fieldName;
-
 
56133
      }
-
 
56134
    }
-
 
56135
 
-
 
56136
    // isset id assignments
-
 
56137
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
56138
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
56139
 
-
 
56140
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56141
    static {
-
 
56142
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56143
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
56145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelInsurance_result.class, metaDataMap);
-
 
56147
    }
-
 
56148
 
-
 
56149
    public cancelInsurance_result() {
-
 
56150
    }
-
 
56151
 
-
 
56152
    public cancelInsurance_result(
-
 
56153
      boolean success)
-
 
56154
    {
-
 
56155
      this();
-
 
56156
      this.success = success;
-
 
56157
      setSuccessIsSet(true);
-
 
56158
    }
-
 
56159
 
-
 
56160
    /**
-
 
56161
     * Performs a deep copy on <i>other</i>.
-
 
56162
     */
-
 
56163
    public cancelInsurance_result(cancelInsurance_result other) {
-
 
56164
      __isset_bit_vector.clear();
-
 
56165
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
56166
      this.success = other.success;
-
 
56167
    }
-
 
56168
 
-
 
56169
    public cancelInsurance_result deepCopy() {
-
 
56170
      return new cancelInsurance_result(this);
-
 
56171
    }
-
 
56172
 
-
 
56173
    @Override
-
 
56174
    public void clear() {
-
 
56175
      setSuccessIsSet(false);
-
 
56176
      this.success = false;
-
 
56177
    }
-
 
56178
 
-
 
56179
    public boolean isSuccess() {
-
 
56180
      return this.success;
-
 
56181
    }
-
 
56182
 
-
 
56183
    public void setSuccess(boolean success) {
-
 
56184
      this.success = success;
-
 
56185
      setSuccessIsSet(true);
-
 
56186
    }
-
 
56187
 
-
 
56188
    public void unsetSuccess() {
-
 
56189
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
56190
    }
-
 
56191
 
-
 
56192
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
56193
    public boolean isSetSuccess() {
-
 
56194
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
56195
    }
-
 
56196
 
-
 
56197
    public void setSuccessIsSet(boolean value) {
-
 
56198
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
56199
    }
-
 
56200
 
-
 
56201
    public void setFieldValue(_Fields field, Object value) {
-
 
56202
      switch (field) {
-
 
56203
      case SUCCESS:
-
 
56204
        if (value == null) {
-
 
56205
          unsetSuccess();
-
 
56206
        } else {
-
 
56207
          setSuccess((Boolean)value);
-
 
56208
        }
-
 
56209
        break;
-
 
56210
 
-
 
56211
      }
-
 
56212
    }
-
 
56213
 
-
 
56214
    public Object getFieldValue(_Fields field) {
-
 
56215
      switch (field) {
-
 
56216
      case SUCCESS:
-
 
56217
        return Boolean.valueOf(isSuccess());
-
 
56218
 
-
 
56219
      }
-
 
56220
      throw new IllegalStateException();
-
 
56221
    }
-
 
56222
 
-
 
56223
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56224
    public boolean isSet(_Fields field) {
-
 
56225
      if (field == null) {
-
 
56226
        throw new IllegalArgumentException();
-
 
56227
      }
-
 
56228
 
-
 
56229
      switch (field) {
-
 
56230
      case SUCCESS:
-
 
56231
        return isSetSuccess();
-
 
56232
      }
-
 
56233
      throw new IllegalStateException();
-
 
56234
    }
-
 
56235
 
-
 
56236
    @Override
-
 
56237
    public boolean equals(Object that) {
-
 
56238
      if (that == null)
-
 
56239
        return false;
-
 
56240
      if (that instanceof cancelInsurance_result)
-
 
56241
        return this.equals((cancelInsurance_result)that);
-
 
56242
      return false;
-
 
56243
    }
-
 
56244
 
-
 
56245
    public boolean equals(cancelInsurance_result that) {
-
 
56246
      if (that == null)
-
 
56247
        return false;
-
 
56248
 
-
 
56249
      boolean this_present_success = true;
-
 
56250
      boolean that_present_success = true;
-
 
56251
      if (this_present_success || that_present_success) {
-
 
56252
        if (!(this_present_success && that_present_success))
-
 
56253
          return false;
-
 
56254
        if (this.success != that.success)
-
 
56255
          return false;
-
 
56256
      }
-
 
56257
 
-
 
56258
      return true;
-
 
56259
    }
-
 
56260
 
-
 
56261
    @Override
-
 
56262
    public int hashCode() {
-
 
56263
      return 0;
-
 
56264
    }
-
 
56265
 
-
 
56266
    public int compareTo(cancelInsurance_result other) {
-
 
56267
      if (!getClass().equals(other.getClass())) {
-
 
56268
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56269
      }
-
 
56270
 
-
 
56271
      int lastComparison = 0;
-
 
56272
      cancelInsurance_result typedOther = (cancelInsurance_result)other;
-
 
56273
 
-
 
56274
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
56275
      if (lastComparison != 0) {
-
 
56276
        return lastComparison;
-
 
56277
      }
-
 
56278
      if (isSetSuccess()) {
-
 
56279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
56280
        if (lastComparison != 0) {
-
 
56281
          return lastComparison;
-
 
56282
        }
-
 
56283
      }
-
 
56284
      return 0;
-
 
56285
    }
-
 
56286
 
-
 
56287
    public _Fields fieldForId(int fieldId) {
-
 
56288
      return _Fields.findByThriftId(fieldId);
-
 
56289
    }
-
 
56290
 
-
 
56291
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56292
      org.apache.thrift.protocol.TField field;
-
 
56293
      iprot.readStructBegin();
-
 
56294
      while (true)
-
 
56295
      {
-
 
56296
        field = iprot.readFieldBegin();
-
 
56297
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56298
          break;
-
 
56299
        }
-
 
56300
        switch (field.id) {
-
 
56301
          case 0: // SUCCESS
-
 
56302
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
56303
              this.success = iprot.readBool();
-
 
56304
              setSuccessIsSet(true);
-
 
56305
            } else { 
-
 
56306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56307
            }
-
 
56308
            break;
-
 
56309
          default:
-
 
56310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56311
        }
-
 
56312
        iprot.readFieldEnd();
-
 
56313
      }
-
 
56314
      iprot.readStructEnd();
-
 
56315
      validate();
-
 
56316
    }
-
 
56317
 
-
 
56318
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56319
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56320
 
-
 
56321
      if (this.isSetSuccess()) {
-
 
56322
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
56323
        oprot.writeBool(this.success);
-
 
56324
        oprot.writeFieldEnd();
-
 
56325
      }
-
 
56326
      oprot.writeFieldStop();
-
 
56327
      oprot.writeStructEnd();
-
 
56328
    }
-
 
56329
 
-
 
56330
    @Override
-
 
56331
    public String toString() {
-
 
56332
      StringBuilder sb = new StringBuilder("cancelInsurance_result(");
-
 
56333
      boolean first = true;
-
 
56334
 
-
 
56335
      sb.append("success:");
-
 
56336
      sb.append(this.success);
-
 
56337
      first = false;
-
 
56338
      sb.append(")");
-
 
56339
      return sb.toString();
-
 
56340
    }
-
 
56341
 
-
 
56342
    public void validate() throws org.apache.thrift.TException {
-
 
56343
      // check for required fields
-
 
56344
    }
-
 
56345
 
-
 
56346
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56347
      try {
-
 
56348
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56349
      } catch (org.apache.thrift.TException te) {
-
 
56350
        throw new java.io.IOException(te);
-
 
56351
      }
-
 
56352
    }
-
 
56353
 
-
 
56354
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56355
      try {
-
 
56356
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56357
      } catch (org.apache.thrift.TException te) {
-
 
56358
        throw new java.io.IOException(te);
-
 
56359
      }
-
 
56360
    }
-
 
56361
 
-
 
56362
  }
-
 
56363
 
-
 
56364
  public static class storeInsuranceSpecificDetails_args implements org.apache.thrift.TBase<storeInsuranceSpecificDetails_args, storeInsuranceSpecificDetails_args._Fields>, java.io.Serializable, Cloneable   {
-
 
56365
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeInsuranceSpecificDetails_args");
-
 
56366
 
-
 
56367
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
56368
    private static final org.apache.thrift.protocol.TField DOB_FIELD_DESC = new org.apache.thrift.protocol.TField("dob", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
56369
    private static final org.apache.thrift.protocol.TField GUARDIAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("guardianName", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
56370
 
-
 
56371
    private long addressId; // required
-
 
56372
    private String dob; // required
-
 
56373
    private String guardianName; // required
-
 
56374
 
-
 
56375
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56376
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56377
      ADDRESS_ID((short)1, "addressId"),
-
 
56378
      DOB((short)2, "dob"),
-
 
56379
      GUARDIAN_NAME((short)3, "guardianName");
-
 
56380
 
-
 
56381
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56382
 
-
 
56383
      static {
-
 
56384
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56385
          byName.put(field.getFieldName(), field);
-
 
56386
        }
-
 
56387
      }
-
 
56388
 
-
 
56389
      /**
-
 
56390
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56391
       */
-
 
56392
      public static _Fields findByThriftId(int fieldId) {
-
 
56393
        switch(fieldId) {
-
 
56394
          case 1: // ADDRESS_ID
-
 
56395
            return ADDRESS_ID;
-
 
56396
          case 2: // DOB
-
 
56397
            return DOB;
-
 
56398
          case 3: // GUARDIAN_NAME
-
 
56399
            return GUARDIAN_NAME;
-
 
56400
          default:
-
 
56401
            return null;
-
 
56402
        }
-
 
56403
      }
-
 
56404
 
-
 
56405
      /**
-
 
56406
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56407
       * if it is not found.
-
 
56408
       */
-
 
56409
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56410
        _Fields fields = findByThriftId(fieldId);
-
 
56411
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56412
        return fields;
-
 
56413
      }
-
 
56414
 
-
 
56415
      /**
-
 
56416
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56417
       */
-
 
56418
      public static _Fields findByName(String name) {
-
 
56419
        return byName.get(name);
-
 
56420
      }
-
 
56421
 
-
 
56422
      private final short _thriftId;
-
 
56423
      private final String _fieldName;
-
 
56424
 
-
 
56425
      _Fields(short thriftId, String fieldName) {
-
 
56426
        _thriftId = thriftId;
-
 
56427
        _fieldName = fieldName;
-
 
56428
      }
-
 
56429
 
-
 
56430
      public short getThriftFieldId() {
-
 
56431
        return _thriftId;
-
 
56432
      }
-
 
56433
 
-
 
56434
      public String getFieldName() {
-
 
56435
        return _fieldName;
-
 
56436
      }
-
 
56437
    }
-
 
56438
 
-
 
56439
    // isset id assignments
-
 
56440
    private static final int __ADDRESSID_ISSET_ID = 0;
-
 
56441
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
56442
 
-
 
56443
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56444
    static {
-
 
56445
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56446
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56447
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
56448
      tmpMap.put(_Fields.DOB, new org.apache.thrift.meta_data.FieldMetaData("dob", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56449
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
56450
      tmpMap.put(_Fields.GUARDIAN_NAME, new org.apache.thrift.meta_data.FieldMetaData("guardianName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56451
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
56452
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56453
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeInsuranceSpecificDetails_args.class, metaDataMap);
-
 
56454
    }
-
 
56455
 
-
 
56456
    public storeInsuranceSpecificDetails_args() {
-
 
56457
    }
-
 
56458
 
-
 
56459
    public storeInsuranceSpecificDetails_args(
-
 
56460
      long addressId,
-
 
56461
      String dob,
-
 
56462
      String guardianName)
-
 
56463
    {
-
 
56464
      this();
-
 
56465
      this.addressId = addressId;
-
 
56466
      setAddressIdIsSet(true);
-
 
56467
      this.dob = dob;
-
 
56468
      this.guardianName = guardianName;
-
 
56469
    }
-
 
56470
 
-
 
56471
    /**
-
 
56472
     * Performs a deep copy on <i>other</i>.
-
 
56473
     */
-
 
56474
    public storeInsuranceSpecificDetails_args(storeInsuranceSpecificDetails_args other) {
-
 
56475
      __isset_bit_vector.clear();
-
 
56476
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
56477
      this.addressId = other.addressId;
-
 
56478
      if (other.isSetDob()) {
-
 
56479
        this.dob = other.dob;
-
 
56480
      }
-
 
56481
      if (other.isSetGuardianName()) {
-
 
56482
        this.guardianName = other.guardianName;
-
 
56483
      }
-
 
56484
    }
-
 
56485
 
-
 
56486
    public storeInsuranceSpecificDetails_args deepCopy() {
-
 
56487
      return new storeInsuranceSpecificDetails_args(this);
-
 
56488
    }
-
 
56489
 
-
 
56490
    @Override
-
 
56491
    public void clear() {
-
 
56492
      setAddressIdIsSet(false);
-
 
56493
      this.addressId = 0;
-
 
56494
      this.dob = null;
-
 
56495
      this.guardianName = null;
-
 
56496
    }
-
 
56497
 
-
 
56498
    public long getAddressId() {
-
 
56499
      return this.addressId;
-
 
56500
    }
-
 
56501
 
-
 
56502
    public void setAddressId(long addressId) {
-
 
56503
      this.addressId = addressId;
-
 
56504
      setAddressIdIsSet(true);
-
 
56505
    }
-
 
56506
 
-
 
56507
    public void unsetAddressId() {
-
 
56508
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
-
 
56509
    }
-
 
56510
 
-
 
56511
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
-
 
56512
    public boolean isSetAddressId() {
-
 
56513
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
-
 
56514
    }
-
 
56515
 
-
 
56516
    public void setAddressIdIsSet(boolean value) {
-
 
56517
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
-
 
56518
    }
-
 
56519
 
-
 
56520
    public String getDob() {
-
 
56521
      return this.dob;
-
 
56522
    }
-
 
56523
 
-
 
56524
    public void setDob(String dob) {
-
 
56525
      this.dob = dob;
-
 
56526
    }
-
 
56527
 
-
 
56528
    public void unsetDob() {
-
 
56529
      this.dob = null;
-
 
56530
    }
-
 
56531
 
-
 
56532
    /** Returns true if field dob is set (has been assigned a value) and false otherwise */
-
 
56533
    public boolean isSetDob() {
-
 
56534
      return this.dob != null;
-
 
56535
    }
-
 
56536
 
-
 
56537
    public void setDobIsSet(boolean value) {
-
 
56538
      if (!value) {
-
 
56539
        this.dob = null;
-
 
56540
      }
-
 
56541
    }
-
 
56542
 
-
 
56543
    public String getGuardianName() {
-
 
56544
      return this.guardianName;
-
 
56545
    }
-
 
56546
 
-
 
56547
    public void setGuardianName(String guardianName) {
-
 
56548
      this.guardianName = guardianName;
-
 
56549
    }
-
 
56550
 
-
 
56551
    public void unsetGuardianName() {
-
 
56552
      this.guardianName = null;
-
 
56553
    }
-
 
56554
 
-
 
56555
    /** Returns true if field guardianName is set (has been assigned a value) and false otherwise */
-
 
56556
    public boolean isSetGuardianName() {
-
 
56557
      return this.guardianName != null;
-
 
56558
    }
-
 
56559
 
-
 
56560
    public void setGuardianNameIsSet(boolean value) {
-
 
56561
      if (!value) {
-
 
56562
        this.guardianName = null;
-
 
56563
      }
-
 
56564
    }
-
 
56565
 
-
 
56566
    public void setFieldValue(_Fields field, Object value) {
-
 
56567
      switch (field) {
-
 
56568
      case ADDRESS_ID:
-
 
56569
        if (value == null) {
-
 
56570
          unsetAddressId();
-
 
56571
        } else {
-
 
56572
          setAddressId((Long)value);
-
 
56573
        }
-
 
56574
        break;
-
 
56575
 
-
 
56576
      case DOB:
-
 
56577
        if (value == null) {
-
 
56578
          unsetDob();
-
 
56579
        } else {
-
 
56580
          setDob((String)value);
-
 
56581
        }
-
 
56582
        break;
-
 
56583
 
-
 
56584
      case GUARDIAN_NAME:
-
 
56585
        if (value == null) {
-
 
56586
          unsetGuardianName();
-
 
56587
        } else {
-
 
56588
          setGuardianName((String)value);
-
 
56589
        }
-
 
56590
        break;
-
 
56591
 
-
 
56592
      }
-
 
56593
    }
-
 
56594
 
-
 
56595
    public Object getFieldValue(_Fields field) {
-
 
56596
      switch (field) {
-
 
56597
      case ADDRESS_ID:
-
 
56598
        return Long.valueOf(getAddressId());
-
 
56599
 
-
 
56600
      case DOB:
-
 
56601
        return getDob();
-
 
56602
 
-
 
56603
      case GUARDIAN_NAME:
-
 
56604
        return getGuardianName();
-
 
56605
 
-
 
56606
      }
-
 
56607
      throw new IllegalStateException();
-
 
56608
    }
-
 
56609
 
-
 
56610
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56611
    public boolean isSet(_Fields field) {
-
 
56612
      if (field == null) {
-
 
56613
        throw new IllegalArgumentException();
-
 
56614
      }
-
 
56615
 
-
 
56616
      switch (field) {
-
 
56617
      case ADDRESS_ID:
-
 
56618
        return isSetAddressId();
-
 
56619
      case DOB:
-
 
56620
        return isSetDob();
-
 
56621
      case GUARDIAN_NAME:
-
 
56622
        return isSetGuardianName();
-
 
56623
      }
-
 
56624
      throw new IllegalStateException();
-
 
56625
    }
-
 
56626
 
-
 
56627
    @Override
-
 
56628
    public boolean equals(Object that) {
-
 
56629
      if (that == null)
-
 
56630
        return false;
-
 
56631
      if (that instanceof storeInsuranceSpecificDetails_args)
-
 
56632
        return this.equals((storeInsuranceSpecificDetails_args)that);
-
 
56633
      return false;
-
 
56634
    }
-
 
56635
 
-
 
56636
    public boolean equals(storeInsuranceSpecificDetails_args that) {
-
 
56637
      if (that == null)
-
 
56638
        return false;
-
 
56639
 
-
 
56640
      boolean this_present_addressId = true;
-
 
56641
      boolean that_present_addressId = true;
-
 
56642
      if (this_present_addressId || that_present_addressId) {
-
 
56643
        if (!(this_present_addressId && that_present_addressId))
-
 
56644
          return false;
-
 
56645
        if (this.addressId != that.addressId)
-
 
56646
          return false;
-
 
56647
      }
-
 
56648
 
-
 
56649
      boolean this_present_dob = true && this.isSetDob();
-
 
56650
      boolean that_present_dob = true && that.isSetDob();
-
 
56651
      if (this_present_dob || that_present_dob) {
-
 
56652
        if (!(this_present_dob && that_present_dob))
-
 
56653
          return false;
-
 
56654
        if (!this.dob.equals(that.dob))
-
 
56655
          return false;
-
 
56656
      }
-
 
56657
 
-
 
56658
      boolean this_present_guardianName = true && this.isSetGuardianName();
-
 
56659
      boolean that_present_guardianName = true && that.isSetGuardianName();
-
 
56660
      if (this_present_guardianName || that_present_guardianName) {
-
 
56661
        if (!(this_present_guardianName && that_present_guardianName))
-
 
56662
          return false;
-
 
56663
        if (!this.guardianName.equals(that.guardianName))
-
 
56664
          return false;
-
 
56665
      }
-
 
56666
 
-
 
56667
      return true;
-
 
56668
    }
-
 
56669
 
-
 
56670
    @Override
-
 
56671
    public int hashCode() {
-
 
56672
      return 0;
-
 
56673
    }
-
 
56674
 
-
 
56675
    public int compareTo(storeInsuranceSpecificDetails_args other) {
-
 
56676
      if (!getClass().equals(other.getClass())) {
-
 
56677
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56678
      }
-
 
56679
 
-
 
56680
      int lastComparison = 0;
-
 
56681
      storeInsuranceSpecificDetails_args typedOther = (storeInsuranceSpecificDetails_args)other;
-
 
56682
 
-
 
56683
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
-
 
56684
      if (lastComparison != 0) {
-
 
56685
        return lastComparison;
-
 
56686
      }
-
 
56687
      if (isSetAddressId()) {
-
 
56688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
-
 
56689
        if (lastComparison != 0) {
-
 
56690
          return lastComparison;
-
 
56691
        }
-
 
56692
      }
-
 
56693
      lastComparison = Boolean.valueOf(isSetDob()).compareTo(typedOther.isSetDob());
-
 
56694
      if (lastComparison != 0) {
-
 
56695
        return lastComparison;
-
 
56696
      }
-
 
56697
      if (isSetDob()) {
-
 
56698
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dob, typedOther.dob);
-
 
56699
        if (lastComparison != 0) {
-
 
56700
          return lastComparison;
-
 
56701
        }
-
 
56702
      }
-
 
56703
      lastComparison = Boolean.valueOf(isSetGuardianName()).compareTo(typedOther.isSetGuardianName());
-
 
56704
      if (lastComparison != 0) {
-
 
56705
        return lastComparison;
-
 
56706
      }
-
 
56707
      if (isSetGuardianName()) {
-
 
56708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guardianName, typedOther.guardianName);
-
 
56709
        if (lastComparison != 0) {
-
 
56710
          return lastComparison;
-
 
56711
        }
-
 
56712
      }
-
 
56713
      return 0;
-
 
56714
    }
-
 
56715
 
-
 
56716
    public _Fields fieldForId(int fieldId) {
-
 
56717
      return _Fields.findByThriftId(fieldId);
-
 
56718
    }
-
 
56719
 
-
 
56720
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
56721
      org.apache.thrift.protocol.TField field;
-
 
56722
      iprot.readStructBegin();
-
 
56723
      while (true)
-
 
56724
      {
-
 
56725
        field = iprot.readFieldBegin();
-
 
56726
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
56727
          break;
-
 
56728
        }
-
 
56729
        switch (field.id) {
-
 
56730
          case 1: // ADDRESS_ID
-
 
56731
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
56732
              this.addressId = iprot.readI64();
-
 
56733
              setAddressIdIsSet(true);
-
 
56734
            } else { 
-
 
56735
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56736
            }
-
 
56737
            break;
-
 
56738
          case 2: // DOB
-
 
56739
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
56740
              this.dob = iprot.readString();
-
 
56741
            } else { 
-
 
56742
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56743
            }
-
 
56744
            break;
-
 
56745
          case 3: // GUARDIAN_NAME
-
 
56746
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
56747
              this.guardianName = iprot.readString();
-
 
56748
            } else { 
-
 
56749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56750
            }
-
 
56751
            break;
-
 
56752
          default:
-
 
56753
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
56754
        }
-
 
56755
        iprot.readFieldEnd();
-
 
56756
      }
-
 
56757
      iprot.readStructEnd();
-
 
56758
      validate();
-
 
56759
    }
-
 
56760
 
-
 
56761
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
56762
      validate();
-
 
56763
 
-
 
56764
      oprot.writeStructBegin(STRUCT_DESC);
-
 
56765
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
-
 
56766
      oprot.writeI64(this.addressId);
-
 
56767
      oprot.writeFieldEnd();
-
 
56768
      if (this.dob != null) {
-
 
56769
        oprot.writeFieldBegin(DOB_FIELD_DESC);
-
 
56770
        oprot.writeString(this.dob);
-
 
56771
        oprot.writeFieldEnd();
-
 
56772
      }
-
 
56773
      if (this.guardianName != null) {
-
 
56774
        oprot.writeFieldBegin(GUARDIAN_NAME_FIELD_DESC);
-
 
56775
        oprot.writeString(this.guardianName);
-
 
56776
        oprot.writeFieldEnd();
-
 
56777
      }
-
 
56778
      oprot.writeFieldStop();
-
 
56779
      oprot.writeStructEnd();
-
 
56780
    }
-
 
56781
 
-
 
56782
    @Override
-
 
56783
    public String toString() {
-
 
56784
      StringBuilder sb = new StringBuilder("storeInsuranceSpecificDetails_args(");
-
 
56785
      boolean first = true;
-
 
56786
 
-
 
56787
      sb.append("addressId:");
-
 
56788
      sb.append(this.addressId);
-
 
56789
      first = false;
-
 
56790
      if (!first) sb.append(", ");
-
 
56791
      sb.append("dob:");
-
 
56792
      if (this.dob == null) {
-
 
56793
        sb.append("null");
-
 
56794
      } else {
-
 
56795
        sb.append(this.dob);
-
 
56796
      }
-
 
56797
      first = false;
-
 
56798
      if (!first) sb.append(", ");
-
 
56799
      sb.append("guardianName:");
-
 
56800
      if (this.guardianName == null) {
-
 
56801
        sb.append("null");
-
 
56802
      } else {
-
 
56803
        sb.append(this.guardianName);
-
 
56804
      }
-
 
56805
      first = false;
-
 
56806
      sb.append(")");
-
 
56807
      return sb.toString();
-
 
56808
    }
-
 
56809
 
-
 
56810
    public void validate() throws org.apache.thrift.TException {
-
 
56811
      // check for required fields
-
 
56812
    }
-
 
56813
 
-
 
56814
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56815
      try {
-
 
56816
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56817
      } catch (org.apache.thrift.TException te) {
-
 
56818
        throw new java.io.IOException(te);
-
 
56819
      }
-
 
56820
    }
-
 
56821
 
-
 
56822
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56823
      try {
-
 
56824
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56825
      } catch (org.apache.thrift.TException te) {
-
 
56826
        throw new java.io.IOException(te);
-
 
56827
      }
-
 
56828
    }
-
 
56829
 
-
 
56830
  }
-
 
56831
 
-
 
56832
  public static class storeInsuranceSpecificDetails_result implements org.apache.thrift.TBase<storeInsuranceSpecificDetails_result, storeInsuranceSpecificDetails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
56833
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeInsuranceSpecificDetails_result");
-
 
56834
 
-
 
56835
    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);
-
 
56836
 
-
 
56837
    private boolean success; // required
-
 
56838
 
-
 
56839
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56840
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56841
      SUCCESS((short)0, "success");
-
 
56842
 
-
 
56843
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56844
 
-
 
56845
      static {
-
 
56846
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56847
          byName.put(field.getFieldName(), field);
-
 
56848
        }
-
 
56849
      }
-
 
56850
 
-
 
56851
      /**
-
 
56852
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56853
       */
-
 
56854
      public static _Fields findByThriftId(int fieldId) {
-
 
56855
        switch(fieldId) {
-
 
56856
          case 0: // SUCCESS
-
 
56857
            return SUCCESS;
-
 
56858
          default:
-
 
56859
            return null;
-
 
56860
        }
-
 
56861
      }
-
 
56862
 
-
 
56863
      /**
-
 
56864
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56865
       * if it is not found.
-
 
56866
       */
-
 
56867
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56868
        _Fields fields = findByThriftId(fieldId);
-
 
56869
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56870
        return fields;
-
 
56871
      }
-
 
56872
 
-
 
56873
      /**
-
 
56874
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56875
       */
-
 
56876
      public static _Fields findByName(String name) {
-
 
56877
        return byName.get(name);
-
 
56878
      }
-
 
56879
 
-
 
56880
      private final short _thriftId;
-
 
56881
      private final String _fieldName;
-
 
56882
 
-
 
56883
      _Fields(short thriftId, String fieldName) {
-
 
56884
        _thriftId = thriftId;
-
 
56885
        _fieldName = fieldName;
-
 
56886
      }
-
 
56887
 
-
 
56888
      public short getThriftFieldId() {
-
 
56889
        return _thriftId;
-
 
56890
      }
-
 
56891
 
-
 
56892
      public String getFieldName() {
-
 
56893
        return _fieldName;
-
 
56894
      }
-
 
56895
    }
-
 
56896
 
-
 
56897
    // isset id assignments
-
 
56898
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
56899
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
56900
 
-
 
56901
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56902
    static {
-
 
56903
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56904
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56905
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
56906
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56907
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeInsuranceSpecificDetails_result.class, metaDataMap);
-
 
56908
    }
-
 
56909
 
-
 
56910
    public storeInsuranceSpecificDetails_result() {
-
 
56911
    }
-
 
56912
 
-
 
56913
    public storeInsuranceSpecificDetails_result(
-
 
56914
      boolean success)
-
 
56915
    {
-
 
56916
      this();
-
 
56917
      this.success = success;
-
 
56918
      setSuccessIsSet(true);
-
 
56919
    }
-
 
56920
 
-
 
56921
    /**
-
 
56922
     * Performs a deep copy on <i>other</i>.
-
 
56923
     */
-
 
56924
    public storeInsuranceSpecificDetails_result(storeInsuranceSpecificDetails_result other) {
-
 
56925
      __isset_bit_vector.clear();
-
 
56926
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
56927
      this.success = other.success;
-
 
56928
    }
-
 
56929
 
-
 
56930
    public storeInsuranceSpecificDetails_result deepCopy() {
-
 
56931
      return new storeInsuranceSpecificDetails_result(this);
-
 
56932
    }
-
 
56933
 
-
 
56934
    @Override
-
 
56935
    public void clear() {
-
 
56936
      setSuccessIsSet(false);
-
 
56937
      this.success = false;
-
 
56938
    }
-
 
56939
 
-
 
56940
    public boolean isSuccess() {
-
 
56941
      return this.success;
-
 
56942
    }
-
 
56943
 
-
 
56944
    public void setSuccess(boolean success) {
-
 
56945
      this.success = success;
-
 
56946
      setSuccessIsSet(true);
-
 
56947
    }
-
 
56948
 
-
 
56949
    public void unsetSuccess() {
-
 
56950
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
56951
    }
-
 
56952
 
-
 
56953
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
56954
    public boolean isSetSuccess() {
-
 
56955
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
56956
    }
-
 
56957
 
-
 
56958
    public void setSuccessIsSet(boolean value) {
-
 
56959
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
56960
    }
-
 
56961
 
-
 
56962
    public void setFieldValue(_Fields field, Object value) {
-
 
56963
      switch (field) {
-
 
56964
      case SUCCESS:
-
 
56965
        if (value == null) {
-
 
56966
          unsetSuccess();
-
 
56967
        } else {
-
 
56968
          setSuccess((Boolean)value);
-
 
56969
        }
-
 
56970
        break;
-
 
56971
 
-
 
56972
      }
-
 
56973
    }
-
 
56974
 
-
 
56975
    public Object getFieldValue(_Fields field) {
-
 
56976
      switch (field) {
-
 
56977
      case SUCCESS:
-
 
56978
        return Boolean.valueOf(isSuccess());
-
 
56979
 
-
 
56980
      }
-
 
56981
      throw new IllegalStateException();
-
 
56982
    }
-
 
56983
 
-
 
56984
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56985
    public boolean isSet(_Fields field) {
-
 
56986
      if (field == null) {
-
 
56987
        throw new IllegalArgumentException();
-
 
56988
      }
-
 
56989
 
-
 
56990
      switch (field) {
-
 
56991
      case SUCCESS:
-
 
56992
        return isSetSuccess();
-
 
56993
      }
-
 
56994
      throw new IllegalStateException();
-
 
56995
    }
-
 
56996
 
-
 
56997
    @Override
-
 
56998
    public boolean equals(Object that) {
-
 
56999
      if (that == null)
-
 
57000
        return false;
-
 
57001
      if (that instanceof storeInsuranceSpecificDetails_result)
-
 
57002
        return this.equals((storeInsuranceSpecificDetails_result)that);
-
 
57003
      return false;
-
 
57004
    }
-
 
57005
 
-
 
57006
    public boolean equals(storeInsuranceSpecificDetails_result that) {
-
 
57007
      if (that == null)
-
 
57008
        return false;
-
 
57009
 
-
 
57010
      boolean this_present_success = true;
-
 
57011
      boolean that_present_success = true;
-
 
57012
      if (this_present_success || that_present_success) {
-
 
57013
        if (!(this_present_success && that_present_success))
-
 
57014
          return false;
-
 
57015
        if (this.success != that.success)
-
 
57016
          return false;
-
 
57017
      }
-
 
57018
 
-
 
57019
      return true;
-
 
57020
    }
-
 
57021
 
-
 
57022
    @Override
-
 
57023
    public int hashCode() {
-
 
57024
      return 0;
-
 
57025
    }
-
 
57026
 
-
 
57027
    public int compareTo(storeInsuranceSpecificDetails_result other) {
-
 
57028
      if (!getClass().equals(other.getClass())) {
-
 
57029
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57030
      }
-
 
57031
 
-
 
57032
      int lastComparison = 0;
-
 
57033
      storeInsuranceSpecificDetails_result typedOther = (storeInsuranceSpecificDetails_result)other;
-
 
57034
 
-
 
57035
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
57036
      if (lastComparison != 0) {
-
 
57037
        return lastComparison;
-
 
57038
      }
-
 
57039
      if (isSetSuccess()) {
-
 
57040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
57041
        if (lastComparison != 0) {
-
 
57042
          return lastComparison;
-
 
57043
        }
-
 
57044
      }
-
 
57045
      return 0;
-
 
57046
    }
-
 
57047
 
-
 
57048
    public _Fields fieldForId(int fieldId) {
-
 
57049
      return _Fields.findByThriftId(fieldId);
-
 
57050
    }
-
 
57051
 
-
 
57052
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57053
      org.apache.thrift.protocol.TField field;
-
 
57054
      iprot.readStructBegin();
-
 
57055
      while (true)
-
 
57056
      {
-
 
57057
        field = iprot.readFieldBegin();
-
 
57058
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57059
          break;
-
 
57060
        }
-
 
57061
        switch (field.id) {
-
 
57062
          case 0: // SUCCESS
-
 
57063
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
57064
              this.success = iprot.readBool();
-
 
57065
              setSuccessIsSet(true);
-
 
57066
            } else { 
-
 
57067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57068
            }
-
 
57069
            break;
-
 
57070
          default:
-
 
57071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57072
        }
-
 
57073
        iprot.readFieldEnd();
-
 
57074
      }
-
 
57075
      iprot.readStructEnd();
-
 
57076
      validate();
-
 
57077
    }
-
 
57078
 
-
 
57079
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57080
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57081
 
-
 
57082
      if (this.isSetSuccess()) {
-
 
57083
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
57084
        oprot.writeBool(this.success);
-
 
57085
        oprot.writeFieldEnd();
-
 
57086
      }
-
 
57087
      oprot.writeFieldStop();
-
 
57088
      oprot.writeStructEnd();
-
 
57089
    }
-
 
57090
 
-
 
57091
    @Override
-
 
57092
    public String toString() {
-
 
57093
      StringBuilder sb = new StringBuilder("storeInsuranceSpecificDetails_result(");
-
 
57094
      boolean first = true;
-
 
57095
 
-
 
57096
      sb.append("success:");
-
 
57097
      sb.append(this.success);
-
 
57098
      first = false;
-
 
57099
      sb.append(")");
-
 
57100
      return sb.toString();
-
 
57101
    }
-
 
57102
 
-
 
57103
    public void validate() throws org.apache.thrift.TException {
-
 
57104
      // check for required fields
-
 
57105
    }
-
 
57106
 
-
 
57107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57108
      try {
-
 
57109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57110
      } catch (org.apache.thrift.TException te) {
-
 
57111
        throw new java.io.IOException(te);
-
 
57112
      }
-
 
57113
    }
-
 
57114
 
-
 
57115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57116
      try {
-
 
57117
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57118
      } catch (org.apache.thrift.TException te) {
-
 
57119
        throw new java.io.IOException(te);
-
 
57120
      }
-
 
57121
    }
-
 
57122
 
-
 
57123
  }
-
 
57124
 
-
 
57125
  public static class isInsuranceDetailPresent_args implements org.apache.thrift.TBase<isInsuranceDetailPresent_args, isInsuranceDetailPresent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
57126
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isInsuranceDetailPresent_args");
-
 
57127
 
-
 
57128
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
57129
 
-
 
57130
    private long addressId; // required
-
 
57131
 
-
 
57132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57134
      ADDRESS_ID((short)1, "addressId");
-
 
57135
 
-
 
57136
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57137
 
-
 
57138
      static {
-
 
57139
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57140
          byName.put(field.getFieldName(), field);
-
 
57141
        }
-
 
57142
      }
-
 
57143
 
-
 
57144
      /**
-
 
57145
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57146
       */
-
 
57147
      public static _Fields findByThriftId(int fieldId) {
-
 
57148
        switch(fieldId) {
-
 
57149
          case 1: // ADDRESS_ID
-
 
57150
            return ADDRESS_ID;
-
 
57151
          default:
-
 
57152
            return null;
-
 
57153
        }
-
 
57154
      }
-
 
57155
 
-
 
57156
      /**
-
 
57157
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57158
       * if it is not found.
-
 
57159
       */
-
 
57160
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57161
        _Fields fields = findByThriftId(fieldId);
-
 
57162
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57163
        return fields;
-
 
57164
      }
-
 
57165
 
-
 
57166
      /**
-
 
57167
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57168
       */
-
 
57169
      public static _Fields findByName(String name) {
-
 
57170
        return byName.get(name);
-
 
57171
      }
-
 
57172
 
-
 
57173
      private final short _thriftId;
-
 
57174
      private final String _fieldName;
-
 
57175
 
-
 
57176
      _Fields(short thriftId, String fieldName) {
-
 
57177
        _thriftId = thriftId;
-
 
57178
        _fieldName = fieldName;
-
 
57179
      }
-
 
57180
 
-
 
57181
      public short getThriftFieldId() {
-
 
57182
        return _thriftId;
-
 
57183
      }
-
 
57184
 
-
 
57185
      public String getFieldName() {
-
 
57186
        return _fieldName;
-
 
57187
      }
-
 
57188
    }
-
 
57189
 
-
 
57190
    // isset id assignments
-
 
57191
    private static final int __ADDRESSID_ISSET_ID = 0;
-
 
57192
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
57193
 
-
 
57194
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57195
    static {
-
 
57196
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57197
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57198
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
57199
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57200
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isInsuranceDetailPresent_args.class, metaDataMap);
-
 
57201
    }
-
 
57202
 
-
 
57203
    public isInsuranceDetailPresent_args() {
-
 
57204
    }
-
 
57205
 
-
 
57206
    public isInsuranceDetailPresent_args(
-
 
57207
      long addressId)
-
 
57208
    {
-
 
57209
      this();
-
 
57210
      this.addressId = addressId;
-
 
57211
      setAddressIdIsSet(true);
-
 
57212
    }
-
 
57213
 
-
 
57214
    /**
-
 
57215
     * Performs a deep copy on <i>other</i>.
-
 
57216
     */
-
 
57217
    public isInsuranceDetailPresent_args(isInsuranceDetailPresent_args other) {
-
 
57218
      __isset_bit_vector.clear();
-
 
57219
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
57220
      this.addressId = other.addressId;
-
 
57221
    }
-
 
57222
 
-
 
57223
    public isInsuranceDetailPresent_args deepCopy() {
-
 
57224
      return new isInsuranceDetailPresent_args(this);
-
 
57225
    }
-
 
57226
 
-
 
57227
    @Override
-
 
57228
    public void clear() {
-
 
57229
      setAddressIdIsSet(false);
-
 
57230
      this.addressId = 0;
-
 
57231
    }
-
 
57232
 
-
 
57233
    public long getAddressId() {
-
 
57234
      return this.addressId;
-
 
57235
    }
-
 
57236
 
-
 
57237
    public void setAddressId(long addressId) {
-
 
57238
      this.addressId = addressId;
-
 
57239
      setAddressIdIsSet(true);
-
 
57240
    }
-
 
57241
 
-
 
57242
    public void unsetAddressId() {
-
 
57243
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
-
 
57244
    }
-
 
57245
 
-
 
57246
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
-
 
57247
    public boolean isSetAddressId() {
-
 
57248
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
-
 
57249
    }
-
 
57250
 
-
 
57251
    public void setAddressIdIsSet(boolean value) {
-
 
57252
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
-
 
57253
    }
-
 
57254
 
-
 
57255
    public void setFieldValue(_Fields field, Object value) {
-
 
57256
      switch (field) {
-
 
57257
      case ADDRESS_ID:
-
 
57258
        if (value == null) {
-
 
57259
          unsetAddressId();
-
 
57260
        } else {
-
 
57261
          setAddressId((Long)value);
-
 
57262
        }
-
 
57263
        break;
-
 
57264
 
-
 
57265
      }
-
 
57266
    }
-
 
57267
 
-
 
57268
    public Object getFieldValue(_Fields field) {
-
 
57269
      switch (field) {
-
 
57270
      case ADDRESS_ID:
-
 
57271
        return Long.valueOf(getAddressId());
-
 
57272
 
-
 
57273
      }
-
 
57274
      throw new IllegalStateException();
-
 
57275
    }
-
 
57276
 
-
 
57277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57278
    public boolean isSet(_Fields field) {
-
 
57279
      if (field == null) {
-
 
57280
        throw new IllegalArgumentException();
-
 
57281
      }
-
 
57282
 
-
 
57283
      switch (field) {
-
 
57284
      case ADDRESS_ID:
-
 
57285
        return isSetAddressId();
-
 
57286
      }
-
 
57287
      throw new IllegalStateException();
-
 
57288
    }
-
 
57289
 
-
 
57290
    @Override
-
 
57291
    public boolean equals(Object that) {
-
 
57292
      if (that == null)
-
 
57293
        return false;
-
 
57294
      if (that instanceof isInsuranceDetailPresent_args)
-
 
57295
        return this.equals((isInsuranceDetailPresent_args)that);
-
 
57296
      return false;
-
 
57297
    }
-
 
57298
 
-
 
57299
    public boolean equals(isInsuranceDetailPresent_args that) {
-
 
57300
      if (that == null)
-
 
57301
        return false;
-
 
57302
 
-
 
57303
      boolean this_present_addressId = true;
-
 
57304
      boolean that_present_addressId = true;
-
 
57305
      if (this_present_addressId || that_present_addressId) {
-
 
57306
        if (!(this_present_addressId && that_present_addressId))
-
 
57307
          return false;
-
 
57308
        if (this.addressId != that.addressId)
-
 
57309
          return false;
-
 
57310
      }
-
 
57311
 
-
 
57312
      return true;
-
 
57313
    }
-
 
57314
 
-
 
57315
    @Override
-
 
57316
    public int hashCode() {
-
 
57317
      return 0;
-
 
57318
    }
-
 
57319
 
-
 
57320
    public int compareTo(isInsuranceDetailPresent_args other) {
-
 
57321
      if (!getClass().equals(other.getClass())) {
-
 
57322
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57323
      }
-
 
57324
 
-
 
57325
      int lastComparison = 0;
-
 
57326
      isInsuranceDetailPresent_args typedOther = (isInsuranceDetailPresent_args)other;
-
 
57327
 
-
 
57328
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
-
 
57329
      if (lastComparison != 0) {
-
 
57330
        return lastComparison;
-
 
57331
      }
-
 
57332
      if (isSetAddressId()) {
-
 
57333
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
-
 
57334
        if (lastComparison != 0) {
-
 
57335
          return lastComparison;
-
 
57336
        }
-
 
57337
      }
-
 
57338
      return 0;
-
 
57339
    }
-
 
57340
 
-
 
57341
    public _Fields fieldForId(int fieldId) {
-
 
57342
      return _Fields.findByThriftId(fieldId);
-
 
57343
    }
-
 
57344
 
-
 
57345
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57346
      org.apache.thrift.protocol.TField field;
-
 
57347
      iprot.readStructBegin();
-
 
57348
      while (true)
-
 
57349
      {
-
 
57350
        field = iprot.readFieldBegin();
-
 
57351
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57352
          break;
-
 
57353
        }
-
 
57354
        switch (field.id) {
-
 
57355
          case 1: // ADDRESS_ID
-
 
57356
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
57357
              this.addressId = iprot.readI64();
-
 
57358
              setAddressIdIsSet(true);
-
 
57359
            } else { 
-
 
57360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57361
            }
-
 
57362
            break;
-
 
57363
          default:
-
 
57364
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57365
        }
-
 
57366
        iprot.readFieldEnd();
-
 
57367
      }
-
 
57368
      iprot.readStructEnd();
-
 
57369
      validate();
-
 
57370
    }
-
 
57371
 
-
 
57372
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57373
      validate();
-
 
57374
 
-
 
57375
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57376
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
-
 
57377
      oprot.writeI64(this.addressId);
-
 
57378
      oprot.writeFieldEnd();
-
 
57379
      oprot.writeFieldStop();
-
 
57380
      oprot.writeStructEnd();
-
 
57381
    }
-
 
57382
 
-
 
57383
    @Override
-
 
57384
    public String toString() {
-
 
57385
      StringBuilder sb = new StringBuilder("isInsuranceDetailPresent_args(");
-
 
57386
      boolean first = true;
-
 
57387
 
-
 
57388
      sb.append("addressId:");
-
 
57389
      sb.append(this.addressId);
-
 
57390
      first = false;
-
 
57391
      sb.append(")");
-
 
57392
      return sb.toString();
-
 
57393
    }
-
 
57394
 
-
 
57395
    public void validate() throws org.apache.thrift.TException {
-
 
57396
      // check for required fields
-
 
57397
    }
-
 
57398
 
-
 
57399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57400
      try {
-
 
57401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57402
      } catch (org.apache.thrift.TException te) {
-
 
57403
        throw new java.io.IOException(te);
-
 
57404
      }
-
 
57405
    }
-
 
57406
 
-
 
57407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57408
      try {
-
 
57409
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57410
      } catch (org.apache.thrift.TException te) {
-
 
57411
        throw new java.io.IOException(te);
-
 
57412
      }
-
 
57413
    }
-
 
57414
 
-
 
57415
  }
-
 
57416
 
-
 
57417
  public static class isInsuranceDetailPresent_result implements org.apache.thrift.TBase<isInsuranceDetailPresent_result, isInsuranceDetailPresent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
57418
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isInsuranceDetailPresent_result");
-
 
57419
 
-
 
57420
    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);
-
 
57421
 
-
 
57422
    private boolean success; // required
-
 
57423
 
-
 
57424
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57425
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57426
      SUCCESS((short)0, "success");
-
 
57427
 
-
 
57428
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57429
 
-
 
57430
      static {
-
 
57431
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57432
          byName.put(field.getFieldName(), field);
-
 
57433
        }
-
 
57434
      }
-
 
57435
 
-
 
57436
      /**
-
 
57437
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57438
       */
-
 
57439
      public static _Fields findByThriftId(int fieldId) {
-
 
57440
        switch(fieldId) {
-
 
57441
          case 0: // SUCCESS
-
 
57442
            return SUCCESS;
-
 
57443
          default:
-
 
57444
            return null;
-
 
57445
        }
-
 
57446
      }
-
 
57447
 
-
 
57448
      /**
-
 
57449
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57450
       * if it is not found.
-
 
57451
       */
-
 
57452
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57453
        _Fields fields = findByThriftId(fieldId);
-
 
57454
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57455
        return fields;
-
 
57456
      }
-
 
57457
 
-
 
57458
      /**
-
 
57459
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57460
       */
-
 
57461
      public static _Fields findByName(String name) {
-
 
57462
        return byName.get(name);
-
 
57463
      }
-
 
57464
 
-
 
57465
      private final short _thriftId;
-
 
57466
      private final String _fieldName;
-
 
57467
 
-
 
57468
      _Fields(short thriftId, String fieldName) {
-
 
57469
        _thriftId = thriftId;
-
 
57470
        _fieldName = fieldName;
-
 
57471
      }
-
 
57472
 
-
 
57473
      public short getThriftFieldId() {
-
 
57474
        return _thriftId;
-
 
57475
      }
-
 
57476
 
-
 
57477
      public String getFieldName() {
-
 
57478
        return _fieldName;
-
 
57479
      }
-
 
57480
    }
-
 
57481
 
-
 
57482
    // isset id assignments
-
 
57483
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
57484
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
57485
 
-
 
57486
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57487
    static {
-
 
57488
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57489
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57490
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
57491
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57492
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isInsuranceDetailPresent_result.class, metaDataMap);
-
 
57493
    }
-
 
57494
 
-
 
57495
    public isInsuranceDetailPresent_result() {
-
 
57496
    }
-
 
57497
 
-
 
57498
    public isInsuranceDetailPresent_result(
-
 
57499
      boolean success)
-
 
57500
    {
-
 
57501
      this();
-
 
57502
      this.success = success;
-
 
57503
      setSuccessIsSet(true);
-
 
57504
    }
-
 
57505
 
-
 
57506
    /**
-
 
57507
     * Performs a deep copy on <i>other</i>.
-
 
57508
     */
-
 
57509
    public isInsuranceDetailPresent_result(isInsuranceDetailPresent_result other) {
-
 
57510
      __isset_bit_vector.clear();
-
 
57511
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
57512
      this.success = other.success;
-
 
57513
    }
-
 
57514
 
-
 
57515
    public isInsuranceDetailPresent_result deepCopy() {
-
 
57516
      return new isInsuranceDetailPresent_result(this);
-
 
57517
    }
-
 
57518
 
-
 
57519
    @Override
-
 
57520
    public void clear() {
-
 
57521
      setSuccessIsSet(false);
-
 
57522
      this.success = false;
-
 
57523
    }
-
 
57524
 
-
 
57525
    public boolean isSuccess() {
-
 
57526
      return this.success;
-
 
57527
    }
-
 
57528
 
-
 
57529
    public void setSuccess(boolean success) {
-
 
57530
      this.success = success;
-
 
57531
      setSuccessIsSet(true);
-
 
57532
    }
-
 
57533
 
-
 
57534
    public void unsetSuccess() {
-
 
57535
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
57536
    }
-
 
57537
 
-
 
57538
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
57539
    public boolean isSetSuccess() {
-
 
57540
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
57541
    }
-
 
57542
 
-
 
57543
    public void setSuccessIsSet(boolean value) {
-
 
57544
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
57545
    }
-
 
57546
 
-
 
57547
    public void setFieldValue(_Fields field, Object value) {
-
 
57548
      switch (field) {
-
 
57549
      case SUCCESS:
-
 
57550
        if (value == null) {
-
 
57551
          unsetSuccess();
-
 
57552
        } else {
-
 
57553
          setSuccess((Boolean)value);
-
 
57554
        }
-
 
57555
        break;
-
 
57556
 
-
 
57557
      }
-
 
57558
    }
-
 
57559
 
-
 
57560
    public Object getFieldValue(_Fields field) {
-
 
57561
      switch (field) {
-
 
57562
      case SUCCESS:
-
 
57563
        return Boolean.valueOf(isSuccess());
-
 
57564
 
-
 
57565
      }
-
 
57566
      throw new IllegalStateException();
-
 
57567
    }
-
 
57568
 
-
 
57569
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57570
    public boolean isSet(_Fields field) {
-
 
57571
      if (field == null) {
-
 
57572
        throw new IllegalArgumentException();
-
 
57573
      }
-
 
57574
 
-
 
57575
      switch (field) {
-
 
57576
      case SUCCESS:
-
 
57577
        return isSetSuccess();
-
 
57578
      }
-
 
57579
      throw new IllegalStateException();
-
 
57580
    }
-
 
57581
 
-
 
57582
    @Override
-
 
57583
    public boolean equals(Object that) {
-
 
57584
      if (that == null)
-
 
57585
        return false;
-
 
57586
      if (that instanceof isInsuranceDetailPresent_result)
-
 
57587
        return this.equals((isInsuranceDetailPresent_result)that);
-
 
57588
      return false;
-
 
57589
    }
-
 
57590
 
-
 
57591
    public boolean equals(isInsuranceDetailPresent_result that) {
-
 
57592
      if (that == null)
-
 
57593
        return false;
-
 
57594
 
-
 
57595
      boolean this_present_success = true;
-
 
57596
      boolean that_present_success = true;
-
 
57597
      if (this_present_success || that_present_success) {
-
 
57598
        if (!(this_present_success && that_present_success))
-
 
57599
          return false;
-
 
57600
        if (this.success != that.success)
-
 
57601
          return false;
-
 
57602
      }
-
 
57603
 
-
 
57604
      return true;
-
 
57605
    }
-
 
57606
 
-
 
57607
    @Override
-
 
57608
    public int hashCode() {
-
 
57609
      return 0;
-
 
57610
    }
-
 
57611
 
-
 
57612
    public int compareTo(isInsuranceDetailPresent_result other) {
-
 
57613
      if (!getClass().equals(other.getClass())) {
-
 
57614
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57615
      }
-
 
57616
 
-
 
57617
      int lastComparison = 0;
-
 
57618
      isInsuranceDetailPresent_result typedOther = (isInsuranceDetailPresent_result)other;
-
 
57619
 
-
 
57620
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
57621
      if (lastComparison != 0) {
-
 
57622
        return lastComparison;
-
 
57623
      }
-
 
57624
      if (isSetSuccess()) {
-
 
57625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
57626
        if (lastComparison != 0) {
-
 
57627
          return lastComparison;
-
 
57628
        }
-
 
57629
      }
-
 
57630
      return 0;
-
 
57631
    }
-
 
57632
 
-
 
57633
    public _Fields fieldForId(int fieldId) {
-
 
57634
      return _Fields.findByThriftId(fieldId);
-
 
57635
    }
-
 
57636
 
-
 
57637
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57638
      org.apache.thrift.protocol.TField field;
-
 
57639
      iprot.readStructBegin();
-
 
57640
      while (true)
-
 
57641
      {
-
 
57642
        field = iprot.readFieldBegin();
-
 
57643
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57644
          break;
-
 
57645
        }
-
 
57646
        switch (field.id) {
-
 
57647
          case 0: // SUCCESS
-
 
57648
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
57649
              this.success = iprot.readBool();
-
 
57650
              setSuccessIsSet(true);
-
 
57651
            } else { 
-
 
57652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57653
            }
-
 
57654
            break;
-
 
57655
          default:
-
 
57656
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57657
        }
-
 
57658
        iprot.readFieldEnd();
-
 
57659
      }
-
 
57660
      iprot.readStructEnd();
-
 
57661
      validate();
-
 
57662
    }
-
 
57663
 
-
 
57664
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57665
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57666
 
-
 
57667
      if (this.isSetSuccess()) {
-
 
57668
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
57669
        oprot.writeBool(this.success);
-
 
57670
        oprot.writeFieldEnd();
-
 
57671
      }
-
 
57672
      oprot.writeFieldStop();
-
 
57673
      oprot.writeStructEnd();
-
 
57674
    }
-
 
57675
 
-
 
57676
    @Override
-
 
57677
    public String toString() {
-
 
57678
      StringBuilder sb = new StringBuilder("isInsuranceDetailPresent_result(");
-
 
57679
      boolean first = true;
-
 
57680
 
-
 
57681
      sb.append("success:");
-
 
57682
      sb.append(this.success);
-
 
57683
      first = false;
-
 
57684
      sb.append(")");
-
 
57685
      return sb.toString();
-
 
57686
    }
-
 
57687
 
54656
    public void validate() throws org.apache.thrift.TException {
57688
    public void validate() throws org.apache.thrift.TException {
54657
      // check for required fields
57689
      // check for required fields
54658
    }
57690
    }
54659
 
57691
 
54660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57692
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {