Subversion Repositories SmartDukaan

Rev

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

Rev 6531 Rev 6805
Line 344... Line 344...
344
 
344
 
345
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;
345
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;
346
 
346
 
347
    public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException;
347
    public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException;
348
 
348
 
-
 
349
    /**
-
 
350
     * This method returns the insurance amount needed to insure the given item for a given quantity.
-
 
351
     * 
-
 
352
     * @param itemId
-
 
353
     * @param insurerId
-
 
354
     * @param quantity
-
 
355
     */
-
 
356
    public long getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException;
-
 
357
 
-
 
358
    public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException;
-
 
359
 
349
  }
360
  }
350
 
361
 
351
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
362
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
352
 
363
 
353
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
364
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 486... Line 497...
486
 
497
 
487
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;
498
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;
488
 
499
 
489
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;
500
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;
490
 
501
 
-
 
502
    public void getInsuranceAmount(long itemId, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException;
-
 
503
 
-
 
504
    public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsurer_call> resultHandler) throws org.apache.thrift.TException;
-
 
505
 
491
  }
506
  }
492
 
507
 
493
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
508
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
494
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
509
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
495
      public Factory() {}
510
      public Factory() {}
Line 2221... Line 2236...
2221
        return result.success;
2236
        return result.success;
2222
      }
2237
      }
2223
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2238
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
2224
    }
2239
    }
2225
 
2240
 
-
 
2241
    public long getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException
-
 
2242
    {
-
 
2243
      send_getInsuranceAmount(itemId, insurerId, quantity);
-
 
2244
      return recv_getInsuranceAmount();
-
 
2245
    }
-
 
2246
 
-
 
2247
    public void send_getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException
-
 
2248
    {
-
 
2249
      getInsuranceAmount_args args = new getInsuranceAmount_args();
-
 
2250
      args.setItemId(itemId);
-
 
2251
      args.setInsurerId(insurerId);
-
 
2252
      args.setQuantity(quantity);
-
 
2253
      sendBase("getInsuranceAmount", args);
-
 
2254
    }
-
 
2255
 
-
 
2256
    public long recv_getInsuranceAmount() throws org.apache.thrift.TException
-
 
2257
    {
-
 
2258
      getInsuranceAmount_result result = new getInsuranceAmount_result();
-
 
2259
      receiveBase(result, "getInsuranceAmount");
-
 
2260
      if (result.isSetSuccess()) {
-
 
2261
        return result.success;
-
 
2262
      }
-
 
2263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
-
 
2264
    }
-
 
2265
 
-
 
2266
    public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException
-
 
2267
    {
-
 
2268
      send_getInsurer(insurerId);
-
 
2269
      return recv_getInsurer();
-
 
2270
    }
-
 
2271
 
-
 
2272
    public void send_getInsurer(long insurerId) throws org.apache.thrift.TException
-
 
2273
    {
-
 
2274
      getInsurer_args args = new getInsurer_args();
-
 
2275
      args.setInsurerId(insurerId);
-
 
2276
      sendBase("getInsurer", args);
-
 
2277
    }
-
 
2278
 
-
 
2279
    public Insurer recv_getInsurer() throws org.apache.thrift.TException
-
 
2280
    {
-
 
2281
      getInsurer_result result = new getInsurer_result();
-
 
2282
      receiveBase(result, "getInsurer");
-
 
2283
      if (result.isSetSuccess()) {
-
 
2284
        return result.success;
-
 
2285
      }
-
 
2286
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
-
 
2287
    }
-
 
2288
 
2226
  }
2289
  }
2227
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2290
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2228
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2291
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2229
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2292
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2230
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2293
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4546... Line 4609...
4546
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4609
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4547
        return (new Client(prot)).recv_getAllIgnoredInventoryUpdateItemsList();
4610
        return (new Client(prot)).recv_getAllIgnoredInventoryUpdateItemsList();
4548
      }
4611
      }
4549
    }
4612
    }
4550
 
4613
 
-
 
4614
    public void getInsuranceAmount(long itemId, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException {
-
 
4615
      checkReady();
-
 
4616
      getInsuranceAmount_call method_call = new getInsuranceAmount_call(itemId, insurerId, quantity, resultHandler, this, ___protocolFactory, ___transport);
-
 
4617
      this.___currentMethod = method_call;
-
 
4618
      ___manager.call(method_call);
-
 
4619
    }
-
 
4620
 
-
 
4621
    public static class getInsuranceAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4622
      private long itemId;
-
 
4623
      private long insurerId;
-
 
4624
      private long quantity;
-
 
4625
      public getInsuranceAmount_call(long itemId, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_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 {
-
 
4626
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4627
        this.itemId = itemId;
-
 
4628
        this.insurerId = insurerId;
-
 
4629
        this.quantity = quantity;
-
 
4630
      }
-
 
4631
 
-
 
4632
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4633
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInsuranceAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4634
        getInsuranceAmount_args args = new getInsuranceAmount_args();
-
 
4635
        args.setItemId(itemId);
-
 
4636
        args.setInsurerId(insurerId);
-
 
4637
        args.setQuantity(quantity);
-
 
4638
        args.write(prot);
-
 
4639
        prot.writeMessageEnd();
-
 
4640
      }
-
 
4641
 
-
 
4642
      public long getResult() throws org.apache.thrift.TException {
-
 
4643
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4644
          throw new IllegalStateException("Method call not finished!");
-
 
4645
        }
-
 
4646
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4647
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4648
        return (new Client(prot)).recv_getInsuranceAmount();
-
 
4649
      }
-
 
4650
    }
-
 
4651
 
-
 
4652
    public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<getInsurer_call> resultHandler) throws org.apache.thrift.TException {
-
 
4653
      checkReady();
-
 
4654
      getInsurer_call method_call = new getInsurer_call(insurerId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4655
      this.___currentMethod = method_call;
-
 
4656
      ___manager.call(method_call);
-
 
4657
    }
-
 
4658
 
-
 
4659
    public static class getInsurer_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4660
      private long insurerId;
-
 
4661
      public getInsurer_call(long insurerId, org.apache.thrift.async.AsyncMethodCallback<getInsurer_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 {
-
 
4662
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4663
        this.insurerId = insurerId;
-
 
4664
      }
-
 
4665
 
-
 
4666
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4667
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInsurer", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4668
        getInsurer_args args = new getInsurer_args();
-
 
4669
        args.setInsurerId(insurerId);
-
 
4670
        args.write(prot);
-
 
4671
        prot.writeMessageEnd();
-
 
4672
      }
-
 
4673
 
-
 
4674
      public Insurer getResult() throws org.apache.thrift.TException {
-
 
4675
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4676
          throw new IllegalStateException("Method call not finished!");
-
 
4677
        }
-
 
4678
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4679
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4680
        return (new Client(prot)).recv_getInsurer();
-
 
4681
      }
-
 
4682
    }
-
 
4683
 
4551
  }
4684
  }
4552
 
4685
 
4553
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4686
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4554
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4687
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4555
    public Processor(I iface) {
4688
    public Processor(I iface) {
Line 4628... Line 4761...
4628
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
4761
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
4629
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
4762
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
4630
      processMap.put("getVatPercentageForItem", new getVatPercentageForItem());
4763
      processMap.put("getVatPercentageForItem", new getVatPercentageForItem());
4631
      processMap.put("getVatAmountForItem", new getVatAmountForItem());
4764
      processMap.put("getVatAmountForItem", new getVatAmountForItem());
4632
      processMap.put("getAllIgnoredInventoryUpdateItemsList", new getAllIgnoredInventoryUpdateItemsList());
4765
      processMap.put("getAllIgnoredInventoryUpdateItemsList", new getAllIgnoredInventoryUpdateItemsList());
-
 
4766
      processMap.put("getInsuranceAmount", new getInsuranceAmount());
-
 
4767
      processMap.put("getInsurer", new getInsurer());
4633
      return processMap;
4768
      return processMap;
4634
    }
4769
    }
4635
 
4770
 
4636
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4771
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4637
      public addItem() {
4772
      public addItem() {
Line 5908... Line 6043...
5908
        result.success = iface.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit);
6043
        result.success = iface.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit);
5909
        return result;
6044
        return result;
5910
      }
6045
      }
5911
    }
6046
    }
5912
 
6047
 
-
 
6048
    private static class getInsuranceAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInsuranceAmount_args> {
-
 
6049
      public getInsuranceAmount() {
-
 
6050
        super("getInsuranceAmount");
-
 
6051
      }
-
 
6052
 
-
 
6053
      protected getInsuranceAmount_args getEmptyArgsInstance() {
-
 
6054
        return new getInsuranceAmount_args();
-
 
6055
      }
-
 
6056
 
-
 
6057
      protected getInsuranceAmount_result getResult(I iface, getInsuranceAmount_args args) throws org.apache.thrift.TException {
-
 
6058
        getInsuranceAmount_result result = new getInsuranceAmount_result();
-
 
6059
        result.success = iface.getInsuranceAmount(args.itemId, args.insurerId, args.quantity);
-
 
6060
        result.setSuccessIsSet(true);
-
 
6061
        return result;
-
 
6062
      }
-
 
6063
    }
-
 
6064
 
-
 
6065
    private static class getInsurer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInsurer_args> {
-
 
6066
      public getInsurer() {
-
 
6067
        super("getInsurer");
-
 
6068
      }
-
 
6069
 
-
 
6070
      protected getInsurer_args getEmptyArgsInstance() {
-
 
6071
        return new getInsurer_args();
-
 
6072
      }
-
 
6073
 
-
 
6074
      protected getInsurer_result getResult(I iface, getInsurer_args args) throws org.apache.thrift.TException {
-
 
6075
        getInsurer_result result = new getInsurer_result();
-
 
6076
        result.success = iface.getInsurer(args.insurerId);
-
 
6077
        return result;
-
 
6078
      }
-
 
6079
    }
-
 
6080
 
5913
  }
6081
  }
5914
 
6082
 
5915
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
6083
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
5916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
6084
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
5917
 
6085
 
Line 50767... Line 50935...
50767
      }
50935
      }
50768
    }
50936
    }
50769
 
50937
 
50770
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50938
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50771
      try {
50939
      try {
-
 
50940
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
50941
        __isset_bit_vector = new BitSet(1);
50772
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50942
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50773
      } catch (org.apache.thrift.TException te) {
50943
      } catch (org.apache.thrift.TException te) {
50774
        throw new java.io.IOException(te);
50944
        throw new java.io.IOException(te);
50775
      }
50945
      }
50776
    }
50946
    }
Line 53086... Line 53256...
53086
      boolean first = true;
53256
      boolean first = true;
53087
 
53257
 
53088
      sb.append("success:");
53258
      sb.append("success:");
53089
      if (this.success == null) {
53259
      if (this.success == null) {
53090
        sb.append("null");
53260
        sb.append("null");
-
 
53261
      } else {
-
 
53262
        sb.append(this.success);
-
 
53263
      }
-
 
53264
      first = false;
-
 
53265
      sb.append(")");
-
 
53266
      return sb.toString();
-
 
53267
    }
-
 
53268
 
-
 
53269
    public void validate() throws org.apache.thrift.TException {
-
 
53270
      // check for required fields
-
 
53271
    }
-
 
53272
 
-
 
53273
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53274
      try {
-
 
53275
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53276
      } catch (org.apache.thrift.TException te) {
-
 
53277
        throw new java.io.IOException(te);
-
 
53278
      }
-
 
53279
    }
-
 
53280
 
-
 
53281
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53282
      try {
-
 
53283
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53284
      } catch (org.apache.thrift.TException te) {
-
 
53285
        throw new java.io.IOException(te);
-
 
53286
      }
-
 
53287
    }
-
 
53288
 
-
 
53289
  }
-
 
53290
 
-
 
53291
  public static class getInsuranceAmount_args implements org.apache.thrift.TBase<getInsuranceAmount_args, getInsuranceAmount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
53292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsuranceAmount_args");
-
 
53293
 
-
 
53294
    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);
-
 
53295
    private static final org.apache.thrift.protocol.TField INSURER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
53296
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
53297
 
-
 
53298
    private long itemId; // required
-
 
53299
    private long insurerId; // required
-
 
53300
    private long quantity; // required
-
 
53301
 
-
 
53302
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53303
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53304
      ITEM_ID((short)1, "itemId"),
-
 
53305
      INSURER_ID((short)2, "insurerId"),
-
 
53306
      QUANTITY((short)3, "quantity");
-
 
53307
 
-
 
53308
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53309
 
-
 
53310
      static {
-
 
53311
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53312
          byName.put(field.getFieldName(), field);
-
 
53313
        }
-
 
53314
      }
-
 
53315
 
-
 
53316
      /**
-
 
53317
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53318
       */
-
 
53319
      public static _Fields findByThriftId(int fieldId) {
-
 
53320
        switch(fieldId) {
-
 
53321
          case 1: // ITEM_ID
-
 
53322
            return ITEM_ID;
-
 
53323
          case 2: // INSURER_ID
-
 
53324
            return INSURER_ID;
-
 
53325
          case 3: // QUANTITY
-
 
53326
            return QUANTITY;
-
 
53327
          default:
-
 
53328
            return null;
-
 
53329
        }
-
 
53330
      }
-
 
53331
 
-
 
53332
      /**
-
 
53333
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53334
       * if it is not found.
-
 
53335
       */
-
 
53336
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53337
        _Fields fields = findByThriftId(fieldId);
-
 
53338
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53339
        return fields;
-
 
53340
      }
-
 
53341
 
-
 
53342
      /**
-
 
53343
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53344
       */
-
 
53345
      public static _Fields findByName(String name) {
-
 
53346
        return byName.get(name);
-
 
53347
      }
-
 
53348
 
-
 
53349
      private final short _thriftId;
-
 
53350
      private final String _fieldName;
-
 
53351
 
-
 
53352
      _Fields(short thriftId, String fieldName) {
-
 
53353
        _thriftId = thriftId;
-
 
53354
        _fieldName = fieldName;
-
 
53355
      }
-
 
53356
 
-
 
53357
      public short getThriftFieldId() {
-
 
53358
        return _thriftId;
-
 
53359
      }
-
 
53360
 
-
 
53361
      public String getFieldName() {
-
 
53362
        return _fieldName;
-
 
53363
      }
-
 
53364
    }
-
 
53365
 
-
 
53366
    // isset id assignments
-
 
53367
    private static final int __ITEMID_ISSET_ID = 0;
-
 
53368
    private static final int __INSURERID_ISSET_ID = 1;
-
 
53369
    private static final int __QUANTITY_ISSET_ID = 2;
-
 
53370
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
53371
 
-
 
53372
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53373
    static {
-
 
53374
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53375
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53376
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53377
      tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53378
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53379
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53380
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53381
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53382
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsuranceAmount_args.class, metaDataMap);
-
 
53383
    }
-
 
53384
 
-
 
53385
    public getInsuranceAmount_args() {
-
 
53386
    }
-
 
53387
 
-
 
53388
    public getInsuranceAmount_args(
-
 
53389
      long itemId,
-
 
53390
      long insurerId,
-
 
53391
      long quantity)
-
 
53392
    {
-
 
53393
      this();
-
 
53394
      this.itemId = itemId;
-
 
53395
      setItemIdIsSet(true);
-
 
53396
      this.insurerId = insurerId;
-
 
53397
      setInsurerIdIsSet(true);
-
 
53398
      this.quantity = quantity;
-
 
53399
      setQuantityIsSet(true);
-
 
53400
    }
-
 
53401
 
-
 
53402
    /**
-
 
53403
     * Performs a deep copy on <i>other</i>.
-
 
53404
     */
-
 
53405
    public getInsuranceAmount_args(getInsuranceAmount_args other) {
-
 
53406
      __isset_bit_vector.clear();
-
 
53407
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
53408
      this.itemId = other.itemId;
-
 
53409
      this.insurerId = other.insurerId;
-
 
53410
      this.quantity = other.quantity;
-
 
53411
    }
-
 
53412
 
-
 
53413
    public getInsuranceAmount_args deepCopy() {
-
 
53414
      return new getInsuranceAmount_args(this);
-
 
53415
    }
-
 
53416
 
-
 
53417
    @Override
-
 
53418
    public void clear() {
-
 
53419
      setItemIdIsSet(false);
-
 
53420
      this.itemId = 0;
-
 
53421
      setInsurerIdIsSet(false);
-
 
53422
      this.insurerId = 0;
-
 
53423
      setQuantityIsSet(false);
-
 
53424
      this.quantity = 0;
-
 
53425
    }
-
 
53426
 
-
 
53427
    public long getItemId() {
-
 
53428
      return this.itemId;
-
 
53429
    }
-
 
53430
 
-
 
53431
    public void setItemId(long itemId) {
-
 
53432
      this.itemId = itemId;
-
 
53433
      setItemIdIsSet(true);
-
 
53434
    }
-
 
53435
 
-
 
53436
    public void unsetItemId() {
-
 
53437
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
53438
    }
-
 
53439
 
-
 
53440
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
53441
    public boolean isSetItemId() {
-
 
53442
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
53443
    }
-
 
53444
 
-
 
53445
    public void setItemIdIsSet(boolean value) {
-
 
53446
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
53447
    }
-
 
53448
 
-
 
53449
    public long getInsurerId() {
-
 
53450
      return this.insurerId;
-
 
53451
    }
-
 
53452
 
-
 
53453
    public void setInsurerId(long insurerId) {
-
 
53454
      this.insurerId = insurerId;
-
 
53455
      setInsurerIdIsSet(true);
-
 
53456
    }
-
 
53457
 
-
 
53458
    public void unsetInsurerId() {
-
 
53459
      __isset_bit_vector.clear(__INSURERID_ISSET_ID);
-
 
53460
    }
-
 
53461
 
-
 
53462
    /** Returns true if field insurerId is set (has been assigned a value) and false otherwise */
-
 
53463
    public boolean isSetInsurerId() {
-
 
53464
      return __isset_bit_vector.get(__INSURERID_ISSET_ID);
-
 
53465
    }
-
 
53466
 
-
 
53467
    public void setInsurerIdIsSet(boolean value) {
-
 
53468
      __isset_bit_vector.set(__INSURERID_ISSET_ID, value);
-
 
53469
    }
-
 
53470
 
-
 
53471
    public long getQuantity() {
-
 
53472
      return this.quantity;
-
 
53473
    }
-
 
53474
 
-
 
53475
    public void setQuantity(long quantity) {
-
 
53476
      this.quantity = quantity;
-
 
53477
      setQuantityIsSet(true);
-
 
53478
    }
-
 
53479
 
-
 
53480
    public void unsetQuantity() {
-
 
53481
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
53482
    }
-
 
53483
 
-
 
53484
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
53485
    public boolean isSetQuantity() {
-
 
53486
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
53487
    }
-
 
53488
 
-
 
53489
    public void setQuantityIsSet(boolean value) {
-
 
53490
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
53491
    }
-
 
53492
 
-
 
53493
    public void setFieldValue(_Fields field, Object value) {
-
 
53494
      switch (field) {
-
 
53495
      case ITEM_ID:
-
 
53496
        if (value == null) {
-
 
53497
          unsetItemId();
-
 
53498
        } else {
-
 
53499
          setItemId((Long)value);
-
 
53500
        }
-
 
53501
        break;
-
 
53502
 
-
 
53503
      case INSURER_ID:
-
 
53504
        if (value == null) {
-
 
53505
          unsetInsurerId();
-
 
53506
        } else {
-
 
53507
          setInsurerId((Long)value);
-
 
53508
        }
-
 
53509
        break;
-
 
53510
 
-
 
53511
      case QUANTITY:
-
 
53512
        if (value == null) {
-
 
53513
          unsetQuantity();
-
 
53514
        } else {
-
 
53515
          setQuantity((Long)value);
-
 
53516
        }
-
 
53517
        break;
-
 
53518
 
-
 
53519
      }
-
 
53520
    }
-
 
53521
 
-
 
53522
    public Object getFieldValue(_Fields field) {
-
 
53523
      switch (field) {
-
 
53524
      case ITEM_ID:
-
 
53525
        return Long.valueOf(getItemId());
-
 
53526
 
-
 
53527
      case INSURER_ID:
-
 
53528
        return Long.valueOf(getInsurerId());
-
 
53529
 
-
 
53530
      case QUANTITY:
-
 
53531
        return Long.valueOf(getQuantity());
-
 
53532
 
-
 
53533
      }
-
 
53534
      throw new IllegalStateException();
-
 
53535
    }
-
 
53536
 
-
 
53537
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53538
    public boolean isSet(_Fields field) {
-
 
53539
      if (field == null) {
-
 
53540
        throw new IllegalArgumentException();
-
 
53541
      }
-
 
53542
 
-
 
53543
      switch (field) {
-
 
53544
      case ITEM_ID:
-
 
53545
        return isSetItemId();
-
 
53546
      case INSURER_ID:
-
 
53547
        return isSetInsurerId();
-
 
53548
      case QUANTITY:
-
 
53549
        return isSetQuantity();
-
 
53550
      }
-
 
53551
      throw new IllegalStateException();
-
 
53552
    }
-
 
53553
 
-
 
53554
    @Override
-
 
53555
    public boolean equals(Object that) {
-
 
53556
      if (that == null)
-
 
53557
        return false;
-
 
53558
      if (that instanceof getInsuranceAmount_args)
-
 
53559
        return this.equals((getInsuranceAmount_args)that);
-
 
53560
      return false;
-
 
53561
    }
-
 
53562
 
-
 
53563
    public boolean equals(getInsuranceAmount_args that) {
-
 
53564
      if (that == null)
-
 
53565
        return false;
-
 
53566
 
-
 
53567
      boolean this_present_itemId = true;
-
 
53568
      boolean that_present_itemId = true;
-
 
53569
      if (this_present_itemId || that_present_itemId) {
-
 
53570
        if (!(this_present_itemId && that_present_itemId))
-
 
53571
          return false;
-
 
53572
        if (this.itemId != that.itemId)
-
 
53573
          return false;
-
 
53574
      }
-
 
53575
 
-
 
53576
      boolean this_present_insurerId = true;
-
 
53577
      boolean that_present_insurerId = true;
-
 
53578
      if (this_present_insurerId || that_present_insurerId) {
-
 
53579
        if (!(this_present_insurerId && that_present_insurerId))
-
 
53580
          return false;
-
 
53581
        if (this.insurerId != that.insurerId)
-
 
53582
          return false;
-
 
53583
      }
-
 
53584
 
-
 
53585
      boolean this_present_quantity = true;
-
 
53586
      boolean that_present_quantity = true;
-
 
53587
      if (this_present_quantity || that_present_quantity) {
-
 
53588
        if (!(this_present_quantity && that_present_quantity))
-
 
53589
          return false;
-
 
53590
        if (this.quantity != that.quantity)
-
 
53591
          return false;
-
 
53592
      }
-
 
53593
 
-
 
53594
      return true;
-
 
53595
    }
-
 
53596
 
-
 
53597
    @Override
-
 
53598
    public int hashCode() {
-
 
53599
      return 0;
-
 
53600
    }
-
 
53601
 
-
 
53602
    public int compareTo(getInsuranceAmount_args other) {
-
 
53603
      if (!getClass().equals(other.getClass())) {
-
 
53604
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53605
      }
-
 
53606
 
-
 
53607
      int lastComparison = 0;
-
 
53608
      getInsuranceAmount_args typedOther = (getInsuranceAmount_args)other;
-
 
53609
 
-
 
53610
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
53611
      if (lastComparison != 0) {
-
 
53612
        return lastComparison;
-
 
53613
      }
-
 
53614
      if (isSetItemId()) {
-
 
53615
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
53616
        if (lastComparison != 0) {
-
 
53617
          return lastComparison;
-
 
53618
        }
-
 
53619
      }
-
 
53620
      lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());
-
 
53621
      if (lastComparison != 0) {
-
 
53622
        return lastComparison;
-
 
53623
      }
-
 
53624
      if (isSetInsurerId()) {
-
 
53625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerId, typedOther.insurerId);
-
 
53626
        if (lastComparison != 0) {
-
 
53627
          return lastComparison;
-
 
53628
        }
-
 
53629
      }
-
 
53630
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
53631
      if (lastComparison != 0) {
-
 
53632
        return lastComparison;
-
 
53633
      }
-
 
53634
      if (isSetQuantity()) {
-
 
53635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
53636
        if (lastComparison != 0) {
-
 
53637
          return lastComparison;
-
 
53638
        }
-
 
53639
      }
-
 
53640
      return 0;
-
 
53641
    }
-
 
53642
 
-
 
53643
    public _Fields fieldForId(int fieldId) {
-
 
53644
      return _Fields.findByThriftId(fieldId);
-
 
53645
    }
-
 
53646
 
-
 
53647
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53648
      org.apache.thrift.protocol.TField field;
-
 
53649
      iprot.readStructBegin();
-
 
53650
      while (true)
-
 
53651
      {
-
 
53652
        field = iprot.readFieldBegin();
-
 
53653
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53654
          break;
-
 
53655
        }
-
 
53656
        switch (field.id) {
-
 
53657
          case 1: // ITEM_ID
-
 
53658
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53659
              this.itemId = iprot.readI64();
-
 
53660
              setItemIdIsSet(true);
-
 
53661
            } else { 
-
 
53662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53663
            }
-
 
53664
            break;
-
 
53665
          case 2: // INSURER_ID
-
 
53666
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53667
              this.insurerId = iprot.readI64();
-
 
53668
              setInsurerIdIsSet(true);
-
 
53669
            } else { 
-
 
53670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53671
            }
-
 
53672
            break;
-
 
53673
          case 3: // QUANTITY
-
 
53674
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53675
              this.quantity = iprot.readI64();
-
 
53676
              setQuantityIsSet(true);
-
 
53677
            } else { 
-
 
53678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53679
            }
-
 
53680
            break;
-
 
53681
          default:
-
 
53682
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53683
        }
-
 
53684
        iprot.readFieldEnd();
-
 
53685
      }
-
 
53686
      iprot.readStructEnd();
-
 
53687
      validate();
-
 
53688
    }
-
 
53689
 
-
 
53690
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53691
      validate();
-
 
53692
 
-
 
53693
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53694
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
53695
      oprot.writeI64(this.itemId);
-
 
53696
      oprot.writeFieldEnd();
-
 
53697
      oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);
-
 
53698
      oprot.writeI64(this.insurerId);
-
 
53699
      oprot.writeFieldEnd();
-
 
53700
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
53701
      oprot.writeI64(this.quantity);
-
 
53702
      oprot.writeFieldEnd();
-
 
53703
      oprot.writeFieldStop();
-
 
53704
      oprot.writeStructEnd();
-
 
53705
    }
-
 
53706
 
-
 
53707
    @Override
-
 
53708
    public String toString() {
-
 
53709
      StringBuilder sb = new StringBuilder("getInsuranceAmount_args(");
-
 
53710
      boolean first = true;
-
 
53711
 
-
 
53712
      sb.append("itemId:");
-
 
53713
      sb.append(this.itemId);
-
 
53714
      first = false;
-
 
53715
      if (!first) sb.append(", ");
-
 
53716
      sb.append("insurerId:");
-
 
53717
      sb.append(this.insurerId);
-
 
53718
      first = false;
-
 
53719
      if (!first) sb.append(", ");
-
 
53720
      sb.append("quantity:");
-
 
53721
      sb.append(this.quantity);
-
 
53722
      first = false;
-
 
53723
      sb.append(")");
-
 
53724
      return sb.toString();
-
 
53725
    }
-
 
53726
 
-
 
53727
    public void validate() throws org.apache.thrift.TException {
-
 
53728
      // check for required fields
-
 
53729
    }
-
 
53730
 
-
 
53731
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53732
      try {
-
 
53733
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53734
      } catch (org.apache.thrift.TException te) {
-
 
53735
        throw new java.io.IOException(te);
-
 
53736
      }
-
 
53737
    }
-
 
53738
 
-
 
53739
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53740
      try {
-
 
53741
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53742
      } catch (org.apache.thrift.TException te) {
-
 
53743
        throw new java.io.IOException(te);
-
 
53744
      }
-
 
53745
    }
-
 
53746
 
-
 
53747
  }
-
 
53748
 
-
 
53749
  public static class getInsuranceAmount_result implements org.apache.thrift.TBase<getInsuranceAmount_result, getInsuranceAmount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
53750
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsuranceAmount_result");
-
 
53751
 
-
 
53752
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
53753
 
-
 
53754
    private long success; // required
-
 
53755
 
-
 
53756
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53757
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53758
      SUCCESS((short)0, "success");
-
 
53759
 
-
 
53760
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53761
 
-
 
53762
      static {
-
 
53763
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53764
          byName.put(field.getFieldName(), field);
-
 
53765
        }
-
 
53766
      }
-
 
53767
 
-
 
53768
      /**
-
 
53769
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53770
       */
-
 
53771
      public static _Fields findByThriftId(int fieldId) {
-
 
53772
        switch(fieldId) {
-
 
53773
          case 0: // SUCCESS
-
 
53774
            return SUCCESS;
-
 
53775
          default:
-
 
53776
            return null;
-
 
53777
        }
-
 
53778
      }
-
 
53779
 
-
 
53780
      /**
-
 
53781
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53782
       * if it is not found.
-
 
53783
       */
-
 
53784
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53785
        _Fields fields = findByThriftId(fieldId);
-
 
53786
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53787
        return fields;
-
 
53788
      }
-
 
53789
 
-
 
53790
      /**
-
 
53791
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53792
       */
-
 
53793
      public static _Fields findByName(String name) {
-
 
53794
        return byName.get(name);
-
 
53795
      }
-
 
53796
 
-
 
53797
      private final short _thriftId;
-
 
53798
      private final String _fieldName;
-
 
53799
 
-
 
53800
      _Fields(short thriftId, String fieldName) {
-
 
53801
        _thriftId = thriftId;
-
 
53802
        _fieldName = fieldName;
-
 
53803
      }
-
 
53804
 
-
 
53805
      public short getThriftFieldId() {
-
 
53806
        return _thriftId;
-
 
53807
      }
-
 
53808
 
-
 
53809
      public String getFieldName() {
-
 
53810
        return _fieldName;
-
 
53811
      }
-
 
53812
    }
-
 
53813
 
-
 
53814
    // isset id assignments
-
 
53815
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
53816
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
53817
 
-
 
53818
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53819
    static {
-
 
53820
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53821
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53822
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53823
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53824
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsuranceAmount_result.class, metaDataMap);
-
 
53825
    }
-
 
53826
 
-
 
53827
    public getInsuranceAmount_result() {
-
 
53828
    }
-
 
53829
 
-
 
53830
    public getInsuranceAmount_result(
-
 
53831
      long success)
-
 
53832
    {
-
 
53833
      this();
-
 
53834
      this.success = success;
-
 
53835
      setSuccessIsSet(true);
-
 
53836
    }
-
 
53837
 
-
 
53838
    /**
-
 
53839
     * Performs a deep copy on <i>other</i>.
-
 
53840
     */
-
 
53841
    public getInsuranceAmount_result(getInsuranceAmount_result other) {
-
 
53842
      __isset_bit_vector.clear();
-
 
53843
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
53844
      this.success = other.success;
-
 
53845
    }
-
 
53846
 
-
 
53847
    public getInsuranceAmount_result deepCopy() {
-
 
53848
      return new getInsuranceAmount_result(this);
-
 
53849
    }
-
 
53850
 
-
 
53851
    @Override
-
 
53852
    public void clear() {
-
 
53853
      setSuccessIsSet(false);
-
 
53854
      this.success = 0;
-
 
53855
    }
-
 
53856
 
-
 
53857
    public long getSuccess() {
-
 
53858
      return this.success;
-
 
53859
    }
-
 
53860
 
-
 
53861
    public void setSuccess(long success) {
-
 
53862
      this.success = success;
-
 
53863
      setSuccessIsSet(true);
-
 
53864
    }
-
 
53865
 
-
 
53866
    public void unsetSuccess() {
-
 
53867
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
53868
    }
-
 
53869
 
-
 
53870
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
53871
    public boolean isSetSuccess() {
-
 
53872
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
53873
    }
-
 
53874
 
-
 
53875
    public void setSuccessIsSet(boolean value) {
-
 
53876
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
53877
    }
-
 
53878
 
-
 
53879
    public void setFieldValue(_Fields field, Object value) {
-
 
53880
      switch (field) {
-
 
53881
      case SUCCESS:
-
 
53882
        if (value == null) {
-
 
53883
          unsetSuccess();
-
 
53884
        } else {
-
 
53885
          setSuccess((Long)value);
-
 
53886
        }
-
 
53887
        break;
-
 
53888
 
-
 
53889
      }
-
 
53890
    }
-
 
53891
 
-
 
53892
    public Object getFieldValue(_Fields field) {
-
 
53893
      switch (field) {
-
 
53894
      case SUCCESS:
-
 
53895
        return Long.valueOf(getSuccess());
-
 
53896
 
-
 
53897
      }
-
 
53898
      throw new IllegalStateException();
-
 
53899
    }
-
 
53900
 
-
 
53901
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53902
    public boolean isSet(_Fields field) {
-
 
53903
      if (field == null) {
-
 
53904
        throw new IllegalArgumentException();
-
 
53905
      }
-
 
53906
 
-
 
53907
      switch (field) {
-
 
53908
      case SUCCESS:
-
 
53909
        return isSetSuccess();
-
 
53910
      }
-
 
53911
      throw new IllegalStateException();
-
 
53912
    }
-
 
53913
 
-
 
53914
    @Override
-
 
53915
    public boolean equals(Object that) {
-
 
53916
      if (that == null)
-
 
53917
        return false;
-
 
53918
      if (that instanceof getInsuranceAmount_result)
-
 
53919
        return this.equals((getInsuranceAmount_result)that);
-
 
53920
      return false;
-
 
53921
    }
-
 
53922
 
-
 
53923
    public boolean equals(getInsuranceAmount_result that) {
-
 
53924
      if (that == null)
-
 
53925
        return false;
-
 
53926
 
-
 
53927
      boolean this_present_success = true;
-
 
53928
      boolean that_present_success = true;
-
 
53929
      if (this_present_success || that_present_success) {
-
 
53930
        if (!(this_present_success && that_present_success))
-
 
53931
          return false;
-
 
53932
        if (this.success != that.success)
-
 
53933
          return false;
-
 
53934
      }
-
 
53935
 
-
 
53936
      return true;
-
 
53937
    }
-
 
53938
 
-
 
53939
    @Override
-
 
53940
    public int hashCode() {
-
 
53941
      return 0;
-
 
53942
    }
-
 
53943
 
-
 
53944
    public int compareTo(getInsuranceAmount_result other) {
-
 
53945
      if (!getClass().equals(other.getClass())) {
-
 
53946
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53947
      }
-
 
53948
 
-
 
53949
      int lastComparison = 0;
-
 
53950
      getInsuranceAmount_result typedOther = (getInsuranceAmount_result)other;
-
 
53951
 
-
 
53952
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
53953
      if (lastComparison != 0) {
-
 
53954
        return lastComparison;
-
 
53955
      }
-
 
53956
      if (isSetSuccess()) {
-
 
53957
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
53958
        if (lastComparison != 0) {
-
 
53959
          return lastComparison;
-
 
53960
        }
-
 
53961
      }
-
 
53962
      return 0;
-
 
53963
    }
-
 
53964
 
-
 
53965
    public _Fields fieldForId(int fieldId) {
-
 
53966
      return _Fields.findByThriftId(fieldId);
-
 
53967
    }
-
 
53968
 
-
 
53969
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53970
      org.apache.thrift.protocol.TField field;
-
 
53971
      iprot.readStructBegin();
-
 
53972
      while (true)
-
 
53973
      {
-
 
53974
        field = iprot.readFieldBegin();
-
 
53975
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53976
          break;
-
 
53977
        }
-
 
53978
        switch (field.id) {
-
 
53979
          case 0: // SUCCESS
-
 
53980
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53981
              this.success = iprot.readI64();
-
 
53982
              setSuccessIsSet(true);
-
 
53983
            } else { 
-
 
53984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53985
            }
-
 
53986
            break;
-
 
53987
          default:
-
 
53988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53989
        }
-
 
53990
        iprot.readFieldEnd();
-
 
53991
      }
-
 
53992
      iprot.readStructEnd();
-
 
53993
      validate();
-
 
53994
    }
-
 
53995
 
-
 
53996
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53997
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53998
 
-
 
53999
      if (this.isSetSuccess()) {
-
 
54000
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
54001
        oprot.writeI64(this.success);
-
 
54002
        oprot.writeFieldEnd();
-
 
54003
      }
-
 
54004
      oprot.writeFieldStop();
-
 
54005
      oprot.writeStructEnd();
-
 
54006
    }
-
 
54007
 
-
 
54008
    @Override
-
 
54009
    public String toString() {
-
 
54010
      StringBuilder sb = new StringBuilder("getInsuranceAmount_result(");
-
 
54011
      boolean first = true;
-
 
54012
 
-
 
54013
      sb.append("success:");
-
 
54014
      sb.append(this.success);
-
 
54015
      first = false;
-
 
54016
      sb.append(")");
-
 
54017
      return sb.toString();
-
 
54018
    }
-
 
54019
 
-
 
54020
    public void validate() throws org.apache.thrift.TException {
-
 
54021
      // check for required fields
-
 
54022
    }
-
 
54023
 
-
 
54024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54025
      try {
-
 
54026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54027
      } catch (org.apache.thrift.TException te) {
-
 
54028
        throw new java.io.IOException(te);
-
 
54029
      }
-
 
54030
    }
-
 
54031
 
-
 
54032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54033
      try {
-
 
54034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54035
      } catch (org.apache.thrift.TException te) {
-
 
54036
        throw new java.io.IOException(te);
-
 
54037
      }
-
 
54038
    }
-
 
54039
 
-
 
54040
  }
-
 
54041
 
-
 
54042
  public static class getInsurer_args implements org.apache.thrift.TBase<getInsurer_args, getInsurer_args._Fields>, java.io.Serializable, Cloneable   {
-
 
54043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsurer_args");
-
 
54044
 
-
 
54045
    private static final org.apache.thrift.protocol.TField INSURER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
54046
 
-
 
54047
    private long insurerId; // required
-
 
54048
 
-
 
54049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
54050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
54051
      INSURER_ID((short)1, "insurerId");
-
 
54052
 
-
 
54053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
54054
 
-
 
54055
      static {
-
 
54056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
54057
          byName.put(field.getFieldName(), field);
-
 
54058
        }
-
 
54059
      }
-
 
54060
 
-
 
54061
      /**
-
 
54062
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
54063
       */
-
 
54064
      public static _Fields findByThriftId(int fieldId) {
-
 
54065
        switch(fieldId) {
-
 
54066
          case 1: // INSURER_ID
-
 
54067
            return INSURER_ID;
-
 
54068
          default:
-
 
54069
            return null;
-
 
54070
        }
-
 
54071
      }
-
 
54072
 
-
 
54073
      /**
-
 
54074
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
54075
       * if it is not found.
-
 
54076
       */
-
 
54077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
54078
        _Fields fields = findByThriftId(fieldId);
-
 
54079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
54080
        return fields;
-
 
54081
      }
-
 
54082
 
-
 
54083
      /**
-
 
54084
       * Find the _Fields constant that matches name, or null if its not found.
-
 
54085
       */
-
 
54086
      public static _Fields findByName(String name) {
-
 
54087
        return byName.get(name);
-
 
54088
      }
-
 
54089
 
-
 
54090
      private final short _thriftId;
-
 
54091
      private final String _fieldName;
-
 
54092
 
-
 
54093
      _Fields(short thriftId, String fieldName) {
-
 
54094
        _thriftId = thriftId;
-
 
54095
        _fieldName = fieldName;
-
 
54096
      }
-
 
54097
 
-
 
54098
      public short getThriftFieldId() {
-
 
54099
        return _thriftId;
-
 
54100
      }
-
 
54101
 
-
 
54102
      public String getFieldName() {
-
 
54103
        return _fieldName;
-
 
54104
      }
-
 
54105
    }
-
 
54106
 
-
 
54107
    // isset id assignments
-
 
54108
    private static final int __INSURERID_ISSET_ID = 0;
-
 
54109
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
54110
 
-
 
54111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54112
    static {
-
 
54113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54114
      tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
54116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsurer_args.class, metaDataMap);
-
 
54118
    }
-
 
54119
 
-
 
54120
    public getInsurer_args() {
-
 
54121
    }
-
 
54122
 
-
 
54123
    public getInsurer_args(
-
 
54124
      long insurerId)
-
 
54125
    {
-
 
54126
      this();
-
 
54127
      this.insurerId = insurerId;
-
 
54128
      setInsurerIdIsSet(true);
-
 
54129
    }
-
 
54130
 
-
 
54131
    /**
-
 
54132
     * Performs a deep copy on <i>other</i>.
-
 
54133
     */
-
 
54134
    public getInsurer_args(getInsurer_args other) {
-
 
54135
      __isset_bit_vector.clear();
-
 
54136
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
54137
      this.insurerId = other.insurerId;
-
 
54138
    }
-
 
54139
 
-
 
54140
    public getInsurer_args deepCopy() {
-
 
54141
      return new getInsurer_args(this);
-
 
54142
    }
-
 
54143
 
-
 
54144
    @Override
-
 
54145
    public void clear() {
-
 
54146
      setInsurerIdIsSet(false);
-
 
54147
      this.insurerId = 0;
-
 
54148
    }
-
 
54149
 
-
 
54150
    public long getInsurerId() {
-
 
54151
      return this.insurerId;
-
 
54152
    }
-
 
54153
 
-
 
54154
    public void setInsurerId(long insurerId) {
-
 
54155
      this.insurerId = insurerId;
-
 
54156
      setInsurerIdIsSet(true);
-
 
54157
    }
-
 
54158
 
-
 
54159
    public void unsetInsurerId() {
-
 
54160
      __isset_bit_vector.clear(__INSURERID_ISSET_ID);
-
 
54161
    }
-
 
54162
 
-
 
54163
    /** Returns true if field insurerId is set (has been assigned a value) and false otherwise */
-
 
54164
    public boolean isSetInsurerId() {
-
 
54165
      return __isset_bit_vector.get(__INSURERID_ISSET_ID);
-
 
54166
    }
-
 
54167
 
-
 
54168
    public void setInsurerIdIsSet(boolean value) {
-
 
54169
      __isset_bit_vector.set(__INSURERID_ISSET_ID, value);
-
 
54170
    }
-
 
54171
 
-
 
54172
    public void setFieldValue(_Fields field, Object value) {
-
 
54173
      switch (field) {
-
 
54174
      case INSURER_ID:
-
 
54175
        if (value == null) {
-
 
54176
          unsetInsurerId();
-
 
54177
        } else {
-
 
54178
          setInsurerId((Long)value);
-
 
54179
        }
-
 
54180
        break;
-
 
54181
 
-
 
54182
      }
-
 
54183
    }
-
 
54184
 
-
 
54185
    public Object getFieldValue(_Fields field) {
-
 
54186
      switch (field) {
-
 
54187
      case INSURER_ID:
-
 
54188
        return Long.valueOf(getInsurerId());
-
 
54189
 
-
 
54190
      }
-
 
54191
      throw new IllegalStateException();
-
 
54192
    }
-
 
54193
 
-
 
54194
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54195
    public boolean isSet(_Fields field) {
-
 
54196
      if (field == null) {
-
 
54197
        throw new IllegalArgumentException();
-
 
54198
      }
-
 
54199
 
-
 
54200
      switch (field) {
-
 
54201
      case INSURER_ID:
-
 
54202
        return isSetInsurerId();
-
 
54203
      }
-
 
54204
      throw new IllegalStateException();
-
 
54205
    }
-
 
54206
 
-
 
54207
    @Override
-
 
54208
    public boolean equals(Object that) {
-
 
54209
      if (that == null)
-
 
54210
        return false;
-
 
54211
      if (that instanceof getInsurer_args)
-
 
54212
        return this.equals((getInsurer_args)that);
-
 
54213
      return false;
-
 
54214
    }
-
 
54215
 
-
 
54216
    public boolean equals(getInsurer_args that) {
-
 
54217
      if (that == null)
-
 
54218
        return false;
-
 
54219
 
-
 
54220
      boolean this_present_insurerId = true;
-
 
54221
      boolean that_present_insurerId = true;
-
 
54222
      if (this_present_insurerId || that_present_insurerId) {
-
 
54223
        if (!(this_present_insurerId && that_present_insurerId))
-
 
54224
          return false;
-
 
54225
        if (this.insurerId != that.insurerId)
-
 
54226
          return false;
-
 
54227
      }
-
 
54228
 
-
 
54229
      return true;
-
 
54230
    }
-
 
54231
 
-
 
54232
    @Override
-
 
54233
    public int hashCode() {
-
 
54234
      return 0;
-
 
54235
    }
-
 
54236
 
-
 
54237
    public int compareTo(getInsurer_args other) {
-
 
54238
      if (!getClass().equals(other.getClass())) {
-
 
54239
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54240
      }
-
 
54241
 
-
 
54242
      int lastComparison = 0;
-
 
54243
      getInsurer_args typedOther = (getInsurer_args)other;
-
 
54244
 
-
 
54245
      lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());
-
 
54246
      if (lastComparison != 0) {
-
 
54247
        return lastComparison;
-
 
54248
      }
-
 
54249
      if (isSetInsurerId()) {
-
 
54250
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerId, typedOther.insurerId);
-
 
54251
        if (lastComparison != 0) {
-
 
54252
          return lastComparison;
-
 
54253
        }
-
 
54254
      }
-
 
54255
      return 0;
-
 
54256
    }
-
 
54257
 
-
 
54258
    public _Fields fieldForId(int fieldId) {
-
 
54259
      return _Fields.findByThriftId(fieldId);
-
 
54260
    }
-
 
54261
 
-
 
54262
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54263
      org.apache.thrift.protocol.TField field;
-
 
54264
      iprot.readStructBegin();
-
 
54265
      while (true)
-
 
54266
      {
-
 
54267
        field = iprot.readFieldBegin();
-
 
54268
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54269
          break;
-
 
54270
        }
-
 
54271
        switch (field.id) {
-
 
54272
          case 1: // INSURER_ID
-
 
54273
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
54274
              this.insurerId = iprot.readI64();
-
 
54275
              setInsurerIdIsSet(true);
-
 
54276
            } else { 
-
 
54277
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54278
            }
-
 
54279
            break;
-
 
54280
          default:
-
 
54281
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54282
        }
-
 
54283
        iprot.readFieldEnd();
-
 
54284
      }
-
 
54285
      iprot.readStructEnd();
-
 
54286
      validate();
-
 
54287
    }
-
 
54288
 
-
 
54289
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54290
      validate();
-
 
54291
 
-
 
54292
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54293
      oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);
-
 
54294
      oprot.writeI64(this.insurerId);
-
 
54295
      oprot.writeFieldEnd();
-
 
54296
      oprot.writeFieldStop();
-
 
54297
      oprot.writeStructEnd();
-
 
54298
    }
-
 
54299
 
-
 
54300
    @Override
-
 
54301
    public String toString() {
-
 
54302
      StringBuilder sb = new StringBuilder("getInsurer_args(");
-
 
54303
      boolean first = true;
-
 
54304
 
-
 
54305
      sb.append("insurerId:");
-
 
54306
      sb.append(this.insurerId);
-
 
54307
      first = false;
-
 
54308
      sb.append(")");
-
 
54309
      return sb.toString();
-
 
54310
    }
-
 
54311
 
-
 
54312
    public void validate() throws org.apache.thrift.TException {
-
 
54313
      // check for required fields
-
 
54314
    }
-
 
54315
 
-
 
54316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54317
      try {
-
 
54318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54319
      } catch (org.apache.thrift.TException te) {
-
 
54320
        throw new java.io.IOException(te);
-
 
54321
      }
-
 
54322
    }
-
 
54323
 
-
 
54324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54325
      try {
-
 
54326
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
54327
        __isset_bit_vector = new BitSet(1);
-
 
54328
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54329
      } catch (org.apache.thrift.TException te) {
-
 
54330
        throw new java.io.IOException(te);
-
 
54331
      }
-
 
54332
    }
-
 
54333
 
-
 
54334
  }
-
 
54335
 
-
 
54336
  public static class getInsurer_result implements org.apache.thrift.TBase<getInsurer_result, getInsurer_result._Fields>, java.io.Serializable, Cloneable   {
-
 
54337
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsurer_result");
-
 
54338
 
-
 
54339
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
54340
 
-
 
54341
    private Insurer success; // required
-
 
54342
 
-
 
54343
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
54344
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
54345
      SUCCESS((short)0, "success");
-
 
54346
 
-
 
54347
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
54348
 
-
 
54349
      static {
-
 
54350
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
54351
          byName.put(field.getFieldName(), field);
-
 
54352
        }
-
 
54353
      }
-
 
54354
 
-
 
54355
      /**
-
 
54356
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
54357
       */
-
 
54358
      public static _Fields findByThriftId(int fieldId) {
-
 
54359
        switch(fieldId) {
-
 
54360
          case 0: // SUCCESS
-
 
54361
            return SUCCESS;
-
 
54362
          default:
-
 
54363
            return null;
-
 
54364
        }
-
 
54365
      }
-
 
54366
 
-
 
54367
      /**
-
 
54368
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
54369
       * if it is not found.
-
 
54370
       */
-
 
54371
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
54372
        _Fields fields = findByThriftId(fieldId);
-
 
54373
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
54374
        return fields;
-
 
54375
      }
-
 
54376
 
-
 
54377
      /**
-
 
54378
       * Find the _Fields constant that matches name, or null if its not found.
-
 
54379
       */
-
 
54380
      public static _Fields findByName(String name) {
-
 
54381
        return byName.get(name);
-
 
54382
      }
-
 
54383
 
-
 
54384
      private final short _thriftId;
-
 
54385
      private final String _fieldName;
-
 
54386
 
-
 
54387
      _Fields(short thriftId, String fieldName) {
-
 
54388
        _thriftId = thriftId;
-
 
54389
        _fieldName = fieldName;
-
 
54390
      }
-
 
54391
 
-
 
54392
      public short getThriftFieldId() {
-
 
54393
        return _thriftId;
-
 
54394
      }
-
 
54395
 
-
 
54396
      public String getFieldName() {
-
 
54397
        return _fieldName;
-
 
54398
      }
-
 
54399
    }
-
 
54400
 
-
 
54401
    // isset id assignments
-
 
54402
 
-
 
54403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54404
    static {
-
 
54405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54406
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54407
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Insurer.class)));
-
 
54408
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54409
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInsurer_result.class, metaDataMap);
-
 
54410
    }
-
 
54411
 
-
 
54412
    public getInsurer_result() {
-
 
54413
    }
-
 
54414
 
-
 
54415
    public getInsurer_result(
-
 
54416
      Insurer success)
-
 
54417
    {
-
 
54418
      this();
-
 
54419
      this.success = success;
-
 
54420
    }
-
 
54421
 
-
 
54422
    /**
-
 
54423
     * Performs a deep copy on <i>other</i>.
-
 
54424
     */
-
 
54425
    public getInsurer_result(getInsurer_result other) {
-
 
54426
      if (other.isSetSuccess()) {
-
 
54427
        this.success = new Insurer(other.success);
-
 
54428
      }
-
 
54429
    }
-
 
54430
 
-
 
54431
    public getInsurer_result deepCopy() {
-
 
54432
      return new getInsurer_result(this);
-
 
54433
    }
-
 
54434
 
-
 
54435
    @Override
-
 
54436
    public void clear() {
-
 
54437
      this.success = null;
-
 
54438
    }
-
 
54439
 
-
 
54440
    public Insurer getSuccess() {
-
 
54441
      return this.success;
-
 
54442
    }
-
 
54443
 
-
 
54444
    public void setSuccess(Insurer success) {
-
 
54445
      this.success = success;
-
 
54446
    }
-
 
54447
 
-
 
54448
    public void unsetSuccess() {
-
 
54449
      this.success = null;
-
 
54450
    }
-
 
54451
 
-
 
54452
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
54453
    public boolean isSetSuccess() {
-
 
54454
      return this.success != null;
-
 
54455
    }
-
 
54456
 
-
 
54457
    public void setSuccessIsSet(boolean value) {
-
 
54458
      if (!value) {
-
 
54459
        this.success = null;
-
 
54460
      }
-
 
54461
    }
-
 
54462
 
-
 
54463
    public void setFieldValue(_Fields field, Object value) {
-
 
54464
      switch (field) {
-
 
54465
      case SUCCESS:
-
 
54466
        if (value == null) {
-
 
54467
          unsetSuccess();
-
 
54468
        } else {
-
 
54469
          setSuccess((Insurer)value);
-
 
54470
        }
-
 
54471
        break;
-
 
54472
 
-
 
54473
      }
-
 
54474
    }
-
 
54475
 
-
 
54476
    public Object getFieldValue(_Fields field) {
-
 
54477
      switch (field) {
-
 
54478
      case SUCCESS:
-
 
54479
        return getSuccess();
-
 
54480
 
-
 
54481
      }
-
 
54482
      throw new IllegalStateException();
-
 
54483
    }
-
 
54484
 
-
 
54485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54486
    public boolean isSet(_Fields field) {
-
 
54487
      if (field == null) {
-
 
54488
        throw new IllegalArgumentException();
-
 
54489
      }
-
 
54490
 
-
 
54491
      switch (field) {
-
 
54492
      case SUCCESS:
-
 
54493
        return isSetSuccess();
-
 
54494
      }
-
 
54495
      throw new IllegalStateException();
-
 
54496
    }
-
 
54497
 
-
 
54498
    @Override
-
 
54499
    public boolean equals(Object that) {
-
 
54500
      if (that == null)
-
 
54501
        return false;
-
 
54502
      if (that instanceof getInsurer_result)
-
 
54503
        return this.equals((getInsurer_result)that);
-
 
54504
      return false;
-
 
54505
    }
-
 
54506
 
-
 
54507
    public boolean equals(getInsurer_result that) {
-
 
54508
      if (that == null)
-
 
54509
        return false;
-
 
54510
 
-
 
54511
      boolean this_present_success = true && this.isSetSuccess();
-
 
54512
      boolean that_present_success = true && that.isSetSuccess();
-
 
54513
      if (this_present_success || that_present_success) {
-
 
54514
        if (!(this_present_success && that_present_success))
-
 
54515
          return false;
-
 
54516
        if (!this.success.equals(that.success))
-
 
54517
          return false;
-
 
54518
      }
-
 
54519
 
-
 
54520
      return true;
-
 
54521
    }
-
 
54522
 
-
 
54523
    @Override
-
 
54524
    public int hashCode() {
-
 
54525
      return 0;
-
 
54526
    }
-
 
54527
 
-
 
54528
    public int compareTo(getInsurer_result other) {
-
 
54529
      if (!getClass().equals(other.getClass())) {
-
 
54530
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54531
      }
-
 
54532
 
-
 
54533
      int lastComparison = 0;
-
 
54534
      getInsurer_result typedOther = (getInsurer_result)other;
-
 
54535
 
-
 
54536
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
54537
      if (lastComparison != 0) {
-
 
54538
        return lastComparison;
-
 
54539
      }
-
 
54540
      if (isSetSuccess()) {
-
 
54541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
54542
        if (lastComparison != 0) {
-
 
54543
          return lastComparison;
-
 
54544
        }
-
 
54545
      }
-
 
54546
      return 0;
-
 
54547
    }
-
 
54548
 
-
 
54549
    public _Fields fieldForId(int fieldId) {
-
 
54550
      return _Fields.findByThriftId(fieldId);
-
 
54551
    }
-
 
54552
 
-
 
54553
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54554
      org.apache.thrift.protocol.TField field;
-
 
54555
      iprot.readStructBegin();
-
 
54556
      while (true)
-
 
54557
      {
-
 
54558
        field = iprot.readFieldBegin();
-
 
54559
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54560
          break;
-
 
54561
        }
-
 
54562
        switch (field.id) {
-
 
54563
          case 0: // SUCCESS
-
 
54564
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
54565
              this.success = new Insurer();
-
 
54566
              this.success.read(iprot);
-
 
54567
            } else { 
-
 
54568
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54569
            }
-
 
54570
            break;
-
 
54571
          default:
-
 
54572
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54573
        }
-
 
54574
        iprot.readFieldEnd();
-
 
54575
      }
-
 
54576
      iprot.readStructEnd();
-
 
54577
      validate();
-
 
54578
    }
-
 
54579
 
-
 
54580
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54581
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54582
 
-
 
54583
      if (this.isSetSuccess()) {
-
 
54584
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
54585
        this.success.write(oprot);
-
 
54586
        oprot.writeFieldEnd();
-
 
54587
      }
-
 
54588
      oprot.writeFieldStop();
-
 
54589
      oprot.writeStructEnd();
-
 
54590
    }
-
 
54591
 
-
 
54592
    @Override
-
 
54593
    public String toString() {
-
 
54594
      StringBuilder sb = new StringBuilder("getInsurer_result(");
-
 
54595
      boolean first = true;
-
 
54596
 
-
 
54597
      sb.append("success:");
-
 
54598
      if (this.success == null) {
-
 
54599
        sb.append("null");
53091
      } else {
54600
      } else {
53092
        sb.append(this.success);
54601
        sb.append(this.success);
53093
      }
54602
      }
53094
      first = false;
54603
      first = false;
53095
      sb.append(")");
54604
      sb.append(")");