Subversion Repositories SmartDukaan

Rev

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

Rev 5342 Rev 5407
Line 73... Line 73...
73
 
73
 
74
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, org.apache.thrift.TException;
74
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, org.apache.thrift.TException;
75
 
75
 
76
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException;
76
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException;
77
 
77
 
-
 
78
    public void removeUserCommunication(long id) throws UserCommunicationException, org.apache.thrift.TException;
-
 
79
 
78
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserAffiliateException, org.apache.thrift.TException;
80
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserAffiliateException, org.apache.thrift.TException;
79
 
81
 
80
    public List<MasterAffiliate> getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException;
82
    public List<MasterAffiliate> getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException;
81
 
83
 
82
    public MasterAffiliate getMasterAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException;
84
    public MasterAffiliate getMasterAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException;
Line 259... Line 261...
259
     * @param trustLevelDelta
261
     * @param trustLevelDelta
260
     */
262
     */
261
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException;
263
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException;
262
 
264
 
263
    /**
265
    /**
-
 
266
     * Get trust level of a user
-
 
267
     * 
-
 
268
     * @param userId
-
 
269
     */
-
 
270
    public double getTrustLevel(long userId) throws org.apache.thrift.TException;
-
 
271
 
-
 
272
    /**
264
     * Returns true/false depending on wether COD is allowed for a cart or not
273
     * Returns true/false depending on wether COD is allowed for a cart or not
265
     * 
274
     * 
266
     * @param cartId
275
     * @param cartId
267
     * @param sourceId
276
     * @param sourceId
268
     * @param pincode
277
     * @param pincode
Line 319... Line 328...
319
 
328
 
320
    public void getUserCommunicationByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCommunicationByUser_call> resultHandler) throws org.apache.thrift.TException;
329
    public void getUserCommunicationByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCommunicationByUser_call> resultHandler) throws org.apache.thrift.TException;
321
 
330
 
322
    public void getAllUserCommunications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUserCommunications_call> resultHandler) throws org.apache.thrift.TException;
331
    public void getAllUserCommunications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUserCommunications_call> resultHandler) throws org.apache.thrift.TException;
323
 
332
 
-
 
333
    public void removeUserCommunication(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeUserCommunication_call> resultHandler) throws org.apache.thrift.TException;
-
 
334
 
324
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException;
335
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException;
325
 
336
 
326
    public void getAllMasterAffiliates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllMasterAffiliates_call> resultHandler) throws org.apache.thrift.TException;
337
    public void getAllMasterAffiliates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllMasterAffiliates_call> resultHandler) throws org.apache.thrift.TException;
327
 
338
 
328
    public void getMasterAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMasterAffiliateById_call> resultHandler) throws org.apache.thrift.TException;
339
    public void getMasterAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMasterAffiliateById_call> resultHandler) throws org.apache.thrift.TException;
Line 399... Line 410...
399
 
410
 
400
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
411
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
401
 
412
 
402
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
413
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
403
 
414
 
-
 
415
    public void getTrustLevel(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
-
 
416
 
404
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
417
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
405
 
418
 
406
  }
419
  }
407
 
420
 
408
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
421
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
Line 1063... Line 1076...
1063
        throw result.ucx;
1076
        throw result.ucx;
1064
      }
1077
      }
1065
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1078
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1066
    }
1079
    }
1067
 
1080
 
-
 
1081
    public void removeUserCommunication(long id) throws UserCommunicationException, org.apache.thrift.TException
-
 
1082
    {
-
 
1083
      send_removeUserCommunication(id);
-
 
1084
      recv_removeUserCommunication();
-
 
1085
    }
-
 
1086
 
-
 
1087
    public void send_removeUserCommunication(long id) throws org.apache.thrift.TException
-
 
1088
    {
-
 
1089
      removeUserCommunication_args args = new removeUserCommunication_args();
-
 
1090
      args.setId(id);
-
 
1091
      sendBase("removeUserCommunication", args);
-
 
1092
    }
-
 
1093
 
-
 
1094
    public void recv_removeUserCommunication() throws UserCommunicationException, org.apache.thrift.TException
-
 
1095
    {
-
 
1096
      removeUserCommunication_result result = new removeUserCommunication_result();
-
 
1097
      receiveBase(result, "removeUserCommunication");
-
 
1098
      if (result.ucx != null) {
-
 
1099
        throw result.ucx;
-
 
1100
      }
-
 
1101
      return;
-
 
1102
    }
-
 
1103
 
1068
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1104
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1069
    {
1105
    {
1070
      send_createMasterAffiliate(name, addedOn);
1106
      send_createMasterAffiliate(name, addedOn);
1071
      return recv_createMasterAffiliate();
1107
      return recv_createMasterAffiliate();
1072
    }
1108
    }
Line 2078... Line 2114...
2078
      args.setUserId(userId);
2114
      args.setUserId(userId);
2079
      args.setTrustLevelDelta(trustLevelDelta);
2115
      args.setTrustLevelDelta(trustLevelDelta);
2080
      sendBase("increaseTrustLevel", args);
2116
      sendBase("increaseTrustLevel", args);
2081
    }
2117
    }
2082
 
2118
 
-
 
2119
    public double getTrustLevel(long userId) throws org.apache.thrift.TException
-
 
2120
    {
-
 
2121
      send_getTrustLevel(userId);
-
 
2122
      return recv_getTrustLevel();
-
 
2123
    }
-
 
2124
 
-
 
2125
    public void send_getTrustLevel(long userId) throws org.apache.thrift.TException
-
 
2126
    {
-
 
2127
      getTrustLevel_args args = new getTrustLevel_args();
-
 
2128
      args.setUserId(userId);
-
 
2129
      sendBase("getTrustLevel", args);
-
 
2130
    }
-
 
2131
 
-
 
2132
    public double recv_getTrustLevel() throws org.apache.thrift.TException
-
 
2133
    {
-
 
2134
      getTrustLevel_result result = new getTrustLevel_result();
-
 
2135
      receiveBase(result, "getTrustLevel");
-
 
2136
      if (result.isSetSuccess()) {
-
 
2137
        return result.success;
-
 
2138
      }
-
 
2139
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
-
 
2140
    }
-
 
2141
 
2083
    public boolean showCODOption(long cartId, long sourceId, String pincode) throws org.apache.thrift.TException
2142
    public boolean showCODOption(long cartId, long sourceId, String pincode) throws org.apache.thrift.TException
2084
    {
2143
    {
2085
      send_showCODOption(cartId, sourceId, pincode);
2144
      send_showCODOption(cartId, sourceId, pincode);
2086
      return recv_showCODOption();
2145
      return recv_showCODOption();
2087
    }
2146
    }
Line 2937... Line 2996...
2937
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2996
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2938
        return (new Client(prot)).recv_getAllUserCommunications();
2997
        return (new Client(prot)).recv_getAllUserCommunications();
2939
      }
2998
      }
2940
    }
2999
    }
2941
 
3000
 
-
 
3001
    public void removeUserCommunication(long id, org.apache.thrift.async.AsyncMethodCallback<removeUserCommunication_call> resultHandler) throws org.apache.thrift.TException {
-
 
3002
      checkReady();
-
 
3003
      removeUserCommunication_call method_call = new removeUserCommunication_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
3004
      this.___currentMethod = method_call;
-
 
3005
      ___manager.call(method_call);
-
 
3006
    }
-
 
3007
 
-
 
3008
    public static class removeUserCommunication_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3009
      private long id;
-
 
3010
      public removeUserCommunication_call(long id, org.apache.thrift.async.AsyncMethodCallback<removeUserCommunication_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 {
-
 
3011
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3012
        this.id = id;
-
 
3013
      }
-
 
3014
 
-
 
3015
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3016
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeUserCommunication", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3017
        removeUserCommunication_args args = new removeUserCommunication_args();
-
 
3018
        args.setId(id);
-
 
3019
        args.write(prot);
-
 
3020
        prot.writeMessageEnd();
-
 
3021
      }
-
 
3022
 
-
 
3023
      public void getResult() throws UserCommunicationException, org.apache.thrift.TException {
-
 
3024
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3025
          throw new IllegalStateException("Method call not finished!");
-
 
3026
        }
-
 
3027
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3028
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3029
        (new Client(prot)).recv_removeUserCommunication();
-
 
3030
      }
-
 
3031
    }
-
 
3032
 
2942
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3033
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException {
2943
      checkReady();
3034
      checkReady();
2944
      createMasterAffiliate_call method_call = new createMasterAffiliate_call(name, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3035
      createMasterAffiliate_call method_call = new createMasterAffiliate_call(name, addedOn, resultHandler, this, ___protocolFactory, ___transport);
2945
      this.___currentMethod = method_call;
3036
      this.___currentMethod = method_call;
2946
      ___manager.call(method_call);
3037
      ___manager.call(method_call);
Line 4336... Line 4427...
4336
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4427
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4337
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4428
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4338
      }
4429
      }
4339
    }
4430
    }
4340
 
4431
 
-
 
4432
    public void getTrustLevel(long userId, org.apache.thrift.async.AsyncMethodCallback<getTrustLevel_call> resultHandler) throws org.apache.thrift.TException {
-
 
4433
      checkReady();
-
 
4434
      getTrustLevel_call method_call = new getTrustLevel_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4435
      this.___currentMethod = method_call;
-
 
4436
      ___manager.call(method_call);
-
 
4437
    }
-
 
4438
 
-
 
4439
    public static class getTrustLevel_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4440
      private long userId;
-
 
4441
      public getTrustLevel_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getTrustLevel_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 {
-
 
4442
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4443
        this.userId = userId;
-
 
4444
      }
-
 
4445
 
-
 
4446
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4447
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrustLevel", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4448
        getTrustLevel_args args = new getTrustLevel_args();
-
 
4449
        args.setUserId(userId);
-
 
4450
        args.write(prot);
-
 
4451
        prot.writeMessageEnd();
-
 
4452
      }
-
 
4453
 
-
 
4454
      public double getResult() throws org.apache.thrift.TException {
-
 
4455
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4456
          throw new IllegalStateException("Method call not finished!");
-
 
4457
        }
-
 
4458
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4459
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4460
        return (new Client(prot)).recv_getTrustLevel();
-
 
4461
      }
-
 
4462
    }
-
 
4463
 
4341
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<showCODOption_call> resultHandler) throws org.apache.thrift.TException {
4464
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<showCODOption_call> resultHandler) throws org.apache.thrift.TException {
4342
      checkReady();
4465
      checkReady();
4343
      showCODOption_call method_call = new showCODOption_call(cartId, sourceId, pincode, resultHandler, this, ___protocolFactory, ___transport);
4466
      showCODOption_call method_call = new showCODOption_call(cartId, sourceId, pincode, resultHandler, this, ___protocolFactory, ___transport);
4344
      this.___currentMethod = method_call;
4467
      this.___currentMethod = method_call;
4345
      ___manager.call(method_call);
4468
      ___manager.call(method_call);
Line 4411... Line 4534...
4411
      processMap.put("getDefaultPincode", new getDefaultPincode());
4534
      processMap.put("getDefaultPincode", new getDefaultPincode());
4412
      processMap.put("saveUserCommunication", new saveUserCommunication());
4535
      processMap.put("saveUserCommunication", new saveUserCommunication());
4413
      processMap.put("getUserCommunicationById", new getUserCommunicationById());
4536
      processMap.put("getUserCommunicationById", new getUserCommunicationById());
4414
      processMap.put("getUserCommunicationByUser", new getUserCommunicationByUser());
4537
      processMap.put("getUserCommunicationByUser", new getUserCommunicationByUser());
4415
      processMap.put("getAllUserCommunications", new getAllUserCommunications());
4538
      processMap.put("getAllUserCommunications", new getAllUserCommunications());
-
 
4539
      processMap.put("removeUserCommunication", new removeUserCommunication());
4416
      processMap.put("createMasterAffiliate", new createMasterAffiliate());
4540
      processMap.put("createMasterAffiliate", new createMasterAffiliate());
4417
      processMap.put("getAllMasterAffiliates", new getAllMasterAffiliates());
4541
      processMap.put("getAllMasterAffiliates", new getAllMasterAffiliates());
4418
      processMap.put("getMasterAffiliateById", new getMasterAffiliateById());
4542
      processMap.put("getMasterAffiliateById", new getMasterAffiliateById());
4419
      processMap.put("getMasterAffiliateByName", new getMasterAffiliateByName());
4543
      processMap.put("getMasterAffiliateByName", new getMasterAffiliateByName());
4420
      processMap.put("createAffiliate", new createAffiliate());
4544
      processMap.put("createAffiliate", new createAffiliate());
Line 4451... Line 4575...
4451
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4575
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4452
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4576
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4453
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4577
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4454
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4578
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4455
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
4579
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
-
 
4580
      processMap.put("getTrustLevel", new getTrustLevel());
4456
      processMap.put("showCODOption", new showCODOption());
4581
      processMap.put("showCODOption", new showCODOption());
4457
      return processMap;
4582
      return processMap;
4458
    }
4583
    }
4459
 
4584
 
4460
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4585
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
Line 4945... Line 5070...
4945
        }
5070
        }
4946
        return result;
5071
        return result;
4947
      }
5072
      }
4948
    }
5073
    }
4949
 
5074
 
-
 
5075
    private static class removeUserCommunication<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeUserCommunication_args> {
-
 
5076
      public removeUserCommunication() {
-
 
5077
        super("removeUserCommunication");
-
 
5078
      }
-
 
5079
 
-
 
5080
      protected removeUserCommunication_args getEmptyArgsInstance() {
-
 
5081
        return new removeUserCommunication_args();
-
 
5082
      }
-
 
5083
 
-
 
5084
      protected removeUserCommunication_result getResult(I iface, removeUserCommunication_args args) throws org.apache.thrift.TException {
-
 
5085
        removeUserCommunication_result result = new removeUserCommunication_result();
-
 
5086
        try {
-
 
5087
          iface.removeUserCommunication(args.id);
-
 
5088
        } catch (UserCommunicationException ucx) {
-
 
5089
          result.ucx = ucx;
-
 
5090
        }
-
 
5091
        return result;
-
 
5092
      }
-
 
5093
    }
-
 
5094
 
4950
    private static class createMasterAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createMasterAffiliate_args> {
5095
    private static class createMasterAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createMasterAffiliate_args> {
4951
      public createMasterAffiliate() {
5096
      public createMasterAffiliate() {
4952
        super("createMasterAffiliate");
5097
        super("createMasterAffiliate");
4953
      }
5098
      }
4954
 
5099
 
Line 5719... Line 5864...
5719
        iface.increaseTrustLevel(args.userId, args.trustLevelDelta);
5864
        iface.increaseTrustLevel(args.userId, args.trustLevelDelta);
5720
        return null;
5865
        return null;
5721
      }
5866
      }
5722
    }
5867
    }
5723
 
5868
 
-
 
5869
    private static class getTrustLevel<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrustLevel_args> {
-
 
5870
      public getTrustLevel() {
-
 
5871
        super("getTrustLevel");
-
 
5872
      }
-
 
5873
 
-
 
5874
      protected getTrustLevel_args getEmptyArgsInstance() {
-
 
5875
        return new getTrustLevel_args();
-
 
5876
      }
-
 
5877
 
-
 
5878
      protected getTrustLevel_result getResult(I iface, getTrustLevel_args args) throws org.apache.thrift.TException {
-
 
5879
        getTrustLevel_result result = new getTrustLevel_result();
-
 
5880
        result.success = iface.getTrustLevel(args.userId);
-
 
5881
        result.setSuccessIsSet(true);
-
 
5882
        return result;
-
 
5883
      }
-
 
5884
    }
-
 
5885
 
5724
    private static class showCODOption<I extends Iface> extends org.apache.thrift.ProcessFunction<I, showCODOption_args> {
5886
    private static class showCODOption<I extends Iface> extends org.apache.thrift.ProcessFunction<I, showCODOption_args> {
5725
      public showCODOption() {
5887
      public showCODOption() {
5726
        super("showCODOption");
5888
        super("showCODOption");
5727
      }
5889
      }
5728
 
5890
 
Line 23432... Line 23594...
23432
      }
23594
      }
23433
    }
23595
    }
23434
 
23596
 
23435
  }
23597
  }
23436
 
23598
 
-
 
23599
  public static class removeUserCommunication_args implements org.apache.thrift.TBase<removeUserCommunication_args, removeUserCommunication_args._Fields>, java.io.Serializable, Cloneable   {
-
 
23600
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeUserCommunication_args");
-
 
23601
 
-
 
23602
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
23603
 
-
 
23604
    private long id; // required
-
 
23605
 
-
 
23606
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23607
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23608
      ID((short)1, "id");
-
 
23609
 
-
 
23610
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23611
 
-
 
23612
      static {
-
 
23613
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23614
          byName.put(field.getFieldName(), field);
-
 
23615
        }
-
 
23616
      }
-
 
23617
 
-
 
23618
      /**
-
 
23619
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23620
       */
-
 
23621
      public static _Fields findByThriftId(int fieldId) {
-
 
23622
        switch(fieldId) {
-
 
23623
          case 1: // ID
-
 
23624
            return ID;
-
 
23625
          default:
-
 
23626
            return null;
-
 
23627
        }
-
 
23628
      }
-
 
23629
 
-
 
23630
      /**
-
 
23631
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23632
       * if it is not found.
-
 
23633
       */
-
 
23634
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23635
        _Fields fields = findByThriftId(fieldId);
-
 
23636
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23637
        return fields;
-
 
23638
      }
-
 
23639
 
-
 
23640
      /**
-
 
23641
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23642
       */
-
 
23643
      public static _Fields findByName(String name) {
-
 
23644
        return byName.get(name);
-
 
23645
      }
-
 
23646
 
-
 
23647
      private final short _thriftId;
-
 
23648
      private final String _fieldName;
-
 
23649
 
-
 
23650
      _Fields(short thriftId, String fieldName) {
-
 
23651
        _thriftId = thriftId;
-
 
23652
        _fieldName = fieldName;
-
 
23653
      }
-
 
23654
 
-
 
23655
      public short getThriftFieldId() {
-
 
23656
        return _thriftId;
-
 
23657
      }
-
 
23658
 
-
 
23659
      public String getFieldName() {
-
 
23660
        return _fieldName;
-
 
23661
      }
-
 
23662
    }
-
 
23663
 
-
 
23664
    // isset id assignments
-
 
23665
    private static final int __ID_ISSET_ID = 0;
-
 
23666
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
23667
 
-
 
23668
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23669
    static {
-
 
23670
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23671
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23672
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23673
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23674
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeUserCommunication_args.class, metaDataMap);
-
 
23675
    }
-
 
23676
 
-
 
23677
    public removeUserCommunication_args() {
-
 
23678
    }
-
 
23679
 
-
 
23680
    public removeUserCommunication_args(
-
 
23681
      long id)
-
 
23682
    {
-
 
23683
      this();
-
 
23684
      this.id = id;
-
 
23685
      setIdIsSet(true);
-
 
23686
    }
-
 
23687
 
-
 
23688
    /**
-
 
23689
     * Performs a deep copy on <i>other</i>.
-
 
23690
     */
-
 
23691
    public removeUserCommunication_args(removeUserCommunication_args other) {
-
 
23692
      __isset_bit_vector.clear();
-
 
23693
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
23694
      this.id = other.id;
-
 
23695
    }
-
 
23696
 
-
 
23697
    public removeUserCommunication_args deepCopy() {
-
 
23698
      return new removeUserCommunication_args(this);
-
 
23699
    }
-
 
23700
 
-
 
23701
    @Override
-
 
23702
    public void clear() {
-
 
23703
      setIdIsSet(false);
-
 
23704
      this.id = 0;
-
 
23705
    }
-
 
23706
 
-
 
23707
    public long getId() {
-
 
23708
      return this.id;
-
 
23709
    }
-
 
23710
 
-
 
23711
    public void setId(long id) {
-
 
23712
      this.id = id;
-
 
23713
      setIdIsSet(true);
-
 
23714
    }
-
 
23715
 
-
 
23716
    public void unsetId() {
-
 
23717
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
23718
    }
-
 
23719
 
-
 
23720
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
23721
    public boolean isSetId() {
-
 
23722
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
23723
    }
-
 
23724
 
-
 
23725
    public void setIdIsSet(boolean value) {
-
 
23726
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
23727
    }
-
 
23728
 
-
 
23729
    public void setFieldValue(_Fields field, Object value) {
-
 
23730
      switch (field) {
-
 
23731
      case ID:
-
 
23732
        if (value == null) {
-
 
23733
          unsetId();
-
 
23734
        } else {
-
 
23735
          setId((Long)value);
-
 
23736
        }
-
 
23737
        break;
-
 
23738
 
-
 
23739
      }
-
 
23740
    }
-
 
23741
 
-
 
23742
    public Object getFieldValue(_Fields field) {
-
 
23743
      switch (field) {
-
 
23744
      case ID:
-
 
23745
        return Long.valueOf(getId());
-
 
23746
 
-
 
23747
      }
-
 
23748
      throw new IllegalStateException();
-
 
23749
    }
-
 
23750
 
-
 
23751
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
23752
    public boolean isSet(_Fields field) {
-
 
23753
      if (field == null) {
-
 
23754
        throw new IllegalArgumentException();
-
 
23755
      }
-
 
23756
 
-
 
23757
      switch (field) {
-
 
23758
      case ID:
-
 
23759
        return isSetId();
-
 
23760
      }
-
 
23761
      throw new IllegalStateException();
-
 
23762
    }
-
 
23763
 
-
 
23764
    @Override
-
 
23765
    public boolean equals(Object that) {
-
 
23766
      if (that == null)
-
 
23767
        return false;
-
 
23768
      if (that instanceof removeUserCommunication_args)
-
 
23769
        return this.equals((removeUserCommunication_args)that);
-
 
23770
      return false;
-
 
23771
    }
-
 
23772
 
-
 
23773
    public boolean equals(removeUserCommunication_args that) {
-
 
23774
      if (that == null)
-
 
23775
        return false;
-
 
23776
 
-
 
23777
      boolean this_present_id = true;
-
 
23778
      boolean that_present_id = true;
-
 
23779
      if (this_present_id || that_present_id) {
-
 
23780
        if (!(this_present_id && that_present_id))
-
 
23781
          return false;
-
 
23782
        if (this.id != that.id)
-
 
23783
          return false;
-
 
23784
      }
-
 
23785
 
-
 
23786
      return true;
-
 
23787
    }
-
 
23788
 
-
 
23789
    @Override
-
 
23790
    public int hashCode() {
-
 
23791
      return 0;
-
 
23792
    }
-
 
23793
 
-
 
23794
    public int compareTo(removeUserCommunication_args other) {
-
 
23795
      if (!getClass().equals(other.getClass())) {
-
 
23796
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23797
      }
-
 
23798
 
-
 
23799
      int lastComparison = 0;
-
 
23800
      removeUserCommunication_args typedOther = (removeUserCommunication_args)other;
-
 
23801
 
-
 
23802
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
23803
      if (lastComparison != 0) {
-
 
23804
        return lastComparison;
-
 
23805
      }
-
 
23806
      if (isSetId()) {
-
 
23807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
23808
        if (lastComparison != 0) {
-
 
23809
          return lastComparison;
-
 
23810
        }
-
 
23811
      }
-
 
23812
      return 0;
-
 
23813
    }
-
 
23814
 
-
 
23815
    public _Fields fieldForId(int fieldId) {
-
 
23816
      return _Fields.findByThriftId(fieldId);
-
 
23817
    }
-
 
23818
 
-
 
23819
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
23820
      org.apache.thrift.protocol.TField field;
-
 
23821
      iprot.readStructBegin();
-
 
23822
      while (true)
-
 
23823
      {
-
 
23824
        field = iprot.readFieldBegin();
-
 
23825
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
23826
          break;
-
 
23827
        }
-
 
23828
        switch (field.id) {
-
 
23829
          case 1: // ID
-
 
23830
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
23831
              this.id = iprot.readI64();
-
 
23832
              setIdIsSet(true);
-
 
23833
            } else { 
-
 
23834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23835
            }
-
 
23836
            break;
-
 
23837
          default:
-
 
23838
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23839
        }
-
 
23840
        iprot.readFieldEnd();
-
 
23841
      }
-
 
23842
      iprot.readStructEnd();
-
 
23843
      validate();
-
 
23844
    }
-
 
23845
 
-
 
23846
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23847
      validate();
-
 
23848
 
-
 
23849
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23850
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
23851
      oprot.writeI64(this.id);
-
 
23852
      oprot.writeFieldEnd();
-
 
23853
      oprot.writeFieldStop();
-
 
23854
      oprot.writeStructEnd();
-
 
23855
    }
-
 
23856
 
-
 
23857
    @Override
-
 
23858
    public String toString() {
-
 
23859
      StringBuilder sb = new StringBuilder("removeUserCommunication_args(");
-
 
23860
      boolean first = true;
-
 
23861
 
-
 
23862
      sb.append("id:");
-
 
23863
      sb.append(this.id);
-
 
23864
      first = false;
-
 
23865
      sb.append(")");
-
 
23866
      return sb.toString();
-
 
23867
    }
-
 
23868
 
-
 
23869
    public void validate() throws org.apache.thrift.TException {
-
 
23870
      // check for required fields
-
 
23871
    }
-
 
23872
 
-
 
23873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
23874
      try {
-
 
23875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
23876
      } catch (org.apache.thrift.TException te) {
-
 
23877
        throw new java.io.IOException(te);
-
 
23878
      }
-
 
23879
    }
-
 
23880
 
-
 
23881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
23882
      try {
-
 
23883
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
23884
        __isset_bit_vector = new BitSet(1);
-
 
23885
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
23886
      } catch (org.apache.thrift.TException te) {
-
 
23887
        throw new java.io.IOException(te);
-
 
23888
      }
-
 
23889
    }
-
 
23890
 
-
 
23891
  }
-
 
23892
 
-
 
23893
  public static class removeUserCommunication_result implements org.apache.thrift.TBase<removeUserCommunication_result, removeUserCommunication_result._Fields>, java.io.Serializable, Cloneable   {
-
 
23894
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeUserCommunication_result");
-
 
23895
 
-
 
23896
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
23897
 
-
 
23898
    private UserCommunicationException ucx; // required
-
 
23899
 
-
 
23900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
23901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
23902
      UCX((short)1, "ucx");
-
 
23903
 
-
 
23904
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
23905
 
-
 
23906
      static {
-
 
23907
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
23908
          byName.put(field.getFieldName(), field);
-
 
23909
        }
-
 
23910
      }
-
 
23911
 
-
 
23912
      /**
-
 
23913
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
23914
       */
-
 
23915
      public static _Fields findByThriftId(int fieldId) {
-
 
23916
        switch(fieldId) {
-
 
23917
          case 1: // UCX
-
 
23918
            return UCX;
-
 
23919
          default:
-
 
23920
            return null;
-
 
23921
        }
-
 
23922
      }
-
 
23923
 
-
 
23924
      /**
-
 
23925
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
23926
       * if it is not found.
-
 
23927
       */
-
 
23928
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
23929
        _Fields fields = findByThriftId(fieldId);
-
 
23930
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
23931
        return fields;
-
 
23932
      }
-
 
23933
 
-
 
23934
      /**
-
 
23935
       * Find the _Fields constant that matches name, or null if its not found.
-
 
23936
       */
-
 
23937
      public static _Fields findByName(String name) {
-
 
23938
        return byName.get(name);
-
 
23939
      }
-
 
23940
 
-
 
23941
      private final short _thriftId;
-
 
23942
      private final String _fieldName;
-
 
23943
 
-
 
23944
      _Fields(short thriftId, String fieldName) {
-
 
23945
        _thriftId = thriftId;
-
 
23946
        _fieldName = fieldName;
-
 
23947
      }
-
 
23948
 
-
 
23949
      public short getThriftFieldId() {
-
 
23950
        return _thriftId;
-
 
23951
      }
-
 
23952
 
-
 
23953
      public String getFieldName() {
-
 
23954
        return _fieldName;
-
 
23955
      }
-
 
23956
    }
-
 
23957
 
-
 
23958
    // isset id assignments
-
 
23959
 
-
 
23960
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
23961
    static {
-
 
23962
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
23963
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
23965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
23966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeUserCommunication_result.class, metaDataMap);
-
 
23967
    }
-
 
23968
 
-
 
23969
    public removeUserCommunication_result() {
-
 
23970
    }
-
 
23971
 
-
 
23972
    public removeUserCommunication_result(
-
 
23973
      UserCommunicationException ucx)
-
 
23974
    {
-
 
23975
      this();
-
 
23976
      this.ucx = ucx;
-
 
23977
    }
-
 
23978
 
-
 
23979
    /**
-
 
23980
     * Performs a deep copy on <i>other</i>.
-
 
23981
     */
-
 
23982
    public removeUserCommunication_result(removeUserCommunication_result other) {
-
 
23983
      if (other.isSetUcx()) {
-
 
23984
        this.ucx = new UserCommunicationException(other.ucx);
-
 
23985
      }
-
 
23986
    }
-
 
23987
 
-
 
23988
    public removeUserCommunication_result deepCopy() {
-
 
23989
      return new removeUserCommunication_result(this);
-
 
23990
    }
-
 
23991
 
-
 
23992
    @Override
-
 
23993
    public void clear() {
-
 
23994
      this.ucx = null;
-
 
23995
    }
-
 
23996
 
-
 
23997
    public UserCommunicationException getUcx() {
-
 
23998
      return this.ucx;
-
 
23999
    }
-
 
24000
 
-
 
24001
    public void setUcx(UserCommunicationException ucx) {
-
 
24002
      this.ucx = ucx;
-
 
24003
    }
-
 
24004
 
-
 
24005
    public void unsetUcx() {
-
 
24006
      this.ucx = null;
-
 
24007
    }
-
 
24008
 
-
 
24009
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
-
 
24010
    public boolean isSetUcx() {
-
 
24011
      return this.ucx != null;
-
 
24012
    }
-
 
24013
 
-
 
24014
    public void setUcxIsSet(boolean value) {
-
 
24015
      if (!value) {
-
 
24016
        this.ucx = null;
-
 
24017
      }
-
 
24018
    }
-
 
24019
 
-
 
24020
    public void setFieldValue(_Fields field, Object value) {
-
 
24021
      switch (field) {
-
 
24022
      case UCX:
-
 
24023
        if (value == null) {
-
 
24024
          unsetUcx();
-
 
24025
        } else {
-
 
24026
          setUcx((UserCommunicationException)value);
-
 
24027
        }
-
 
24028
        break;
-
 
24029
 
-
 
24030
      }
-
 
24031
    }
-
 
24032
 
-
 
24033
    public Object getFieldValue(_Fields field) {
-
 
24034
      switch (field) {
-
 
24035
      case UCX:
-
 
24036
        return getUcx();
-
 
24037
 
-
 
24038
      }
-
 
24039
      throw new IllegalStateException();
-
 
24040
    }
-
 
24041
 
-
 
24042
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
24043
    public boolean isSet(_Fields field) {
-
 
24044
      if (field == null) {
-
 
24045
        throw new IllegalArgumentException();
-
 
24046
      }
-
 
24047
 
-
 
24048
      switch (field) {
-
 
24049
      case UCX:
-
 
24050
        return isSetUcx();
-
 
24051
      }
-
 
24052
      throw new IllegalStateException();
-
 
24053
    }
-
 
24054
 
-
 
24055
    @Override
-
 
24056
    public boolean equals(Object that) {
-
 
24057
      if (that == null)
-
 
24058
        return false;
-
 
24059
      if (that instanceof removeUserCommunication_result)
-
 
24060
        return this.equals((removeUserCommunication_result)that);
-
 
24061
      return false;
-
 
24062
    }
-
 
24063
 
-
 
24064
    public boolean equals(removeUserCommunication_result that) {
-
 
24065
      if (that == null)
-
 
24066
        return false;
-
 
24067
 
-
 
24068
      boolean this_present_ucx = true && this.isSetUcx();
-
 
24069
      boolean that_present_ucx = true && that.isSetUcx();
-
 
24070
      if (this_present_ucx || that_present_ucx) {
-
 
24071
        if (!(this_present_ucx && that_present_ucx))
-
 
24072
          return false;
-
 
24073
        if (!this.ucx.equals(that.ucx))
-
 
24074
          return false;
-
 
24075
      }
-
 
24076
 
-
 
24077
      return true;
-
 
24078
    }
-
 
24079
 
-
 
24080
    @Override
-
 
24081
    public int hashCode() {
-
 
24082
      return 0;
-
 
24083
    }
-
 
24084
 
-
 
24085
    public int compareTo(removeUserCommunication_result other) {
-
 
24086
      if (!getClass().equals(other.getClass())) {
-
 
24087
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24088
      }
-
 
24089
 
-
 
24090
      int lastComparison = 0;
-
 
24091
      removeUserCommunication_result typedOther = (removeUserCommunication_result)other;
-
 
24092
 
-
 
24093
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
-
 
24094
      if (lastComparison != 0) {
-
 
24095
        return lastComparison;
-
 
24096
      }
-
 
24097
      if (isSetUcx()) {
-
 
24098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
-
 
24099
        if (lastComparison != 0) {
-
 
24100
          return lastComparison;
-
 
24101
        }
-
 
24102
      }
-
 
24103
      return 0;
-
 
24104
    }
-
 
24105
 
-
 
24106
    public _Fields fieldForId(int fieldId) {
-
 
24107
      return _Fields.findByThriftId(fieldId);
-
 
24108
    }
-
 
24109
 
-
 
24110
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
24111
      org.apache.thrift.protocol.TField field;
-
 
24112
      iprot.readStructBegin();
-
 
24113
      while (true)
-
 
24114
      {
-
 
24115
        field = iprot.readFieldBegin();
-
 
24116
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
24117
          break;
-
 
24118
        }
-
 
24119
        switch (field.id) {
-
 
24120
          case 1: // UCX
-
 
24121
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
24122
              this.ucx = new UserCommunicationException();
-
 
24123
              this.ucx.read(iprot);
-
 
24124
            } else { 
-
 
24125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24126
            }
-
 
24127
            break;
-
 
24128
          default:
-
 
24129
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24130
        }
-
 
24131
        iprot.readFieldEnd();
-
 
24132
      }
-
 
24133
      iprot.readStructEnd();
-
 
24134
      validate();
-
 
24135
    }
-
 
24136
 
-
 
24137
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
24138
      oprot.writeStructBegin(STRUCT_DESC);
-
 
24139
 
-
 
24140
      if (this.isSetUcx()) {
-
 
24141
        oprot.writeFieldBegin(UCX_FIELD_DESC);
-
 
24142
        this.ucx.write(oprot);
-
 
24143
        oprot.writeFieldEnd();
-
 
24144
      }
-
 
24145
      oprot.writeFieldStop();
-
 
24146
      oprot.writeStructEnd();
-
 
24147
    }
-
 
24148
 
-
 
24149
    @Override
-
 
24150
    public String toString() {
-
 
24151
      StringBuilder sb = new StringBuilder("removeUserCommunication_result(");
-
 
24152
      boolean first = true;
-
 
24153
 
-
 
24154
      sb.append("ucx:");
-
 
24155
      if (this.ucx == null) {
-
 
24156
        sb.append("null");
-
 
24157
      } else {
-
 
24158
        sb.append(this.ucx);
-
 
24159
      }
-
 
24160
      first = false;
-
 
24161
      sb.append(")");
-
 
24162
      return sb.toString();
-
 
24163
    }
-
 
24164
 
-
 
24165
    public void validate() throws org.apache.thrift.TException {
-
 
24166
      // check for required fields
-
 
24167
    }
-
 
24168
 
-
 
24169
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
24170
      try {
-
 
24171
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
24172
      } catch (org.apache.thrift.TException te) {
-
 
24173
        throw new java.io.IOException(te);
-
 
24174
      }
-
 
24175
    }
-
 
24176
 
-
 
24177
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
24178
      try {
-
 
24179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
24180
      } catch (org.apache.thrift.TException te) {
-
 
24181
        throw new java.io.IOException(te);
-
 
24182
      }
-
 
24183
    }
-
 
24184
 
-
 
24185
  }
-
 
24186
 
23437
  public static class createMasterAffiliate_args implements org.apache.thrift.TBase<createMasterAffiliate_args, createMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
24187
  public static class createMasterAffiliate_args implements org.apache.thrift.TBase<createMasterAffiliate_args, createMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
23438
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createMasterAffiliate_args");
24188
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createMasterAffiliate_args");
23439
 
24189
 
23440
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
24190
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
23441
    private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)2);
24191
    private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)2);
Line 30569... Line 31319...
30569
      }
31319
      }
30570
    }
31320
    }
30571
 
31321
 
30572
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31322
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30573
      try {
31323
      try {
-
 
31324
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
31325
        __isset_bit_vector = new BitSet(1);
30574
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30575
      } catch (org.apache.thrift.TException te) {
31327
      } catch (org.apache.thrift.TException te) {
30576
        throw new java.io.IOException(te);
31328
        throw new java.io.IOException(te);
30577
      }
31329
      }
30578
    }
31330
    }
Line 52435... Line 53187...
52435
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52436
      } catch (org.apache.thrift.TException te) {
53188
      } catch (org.apache.thrift.TException te) {
52437
        throw new java.io.IOException(te);
53189
        throw new java.io.IOException(te);
52438
      }
53190
      }
52439
    }
53191
    }
-
 
53192
 
-
 
53193
  }
-
 
53194
 
-
 
53195
  public static class getTrustLevel_args implements org.apache.thrift.TBase<getTrustLevel_args, getTrustLevel_args._Fields>, java.io.Serializable, Cloneable   {
-
 
53196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrustLevel_args");
-
 
53197
 
-
 
53198
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
53199
 
-
 
53200
    private long userId; // required
-
 
53201
 
-
 
53202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53204
      USER_ID((short)1, "userId");
-
 
53205
 
-
 
53206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53207
 
-
 
53208
      static {
-
 
53209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53210
          byName.put(field.getFieldName(), field);
-
 
53211
        }
-
 
53212
      }
-
 
53213
 
-
 
53214
      /**
-
 
53215
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53216
       */
-
 
53217
      public static _Fields findByThriftId(int fieldId) {
-
 
53218
        switch(fieldId) {
-
 
53219
          case 1: // USER_ID
-
 
53220
            return USER_ID;
-
 
53221
          default:
-
 
53222
            return null;
-
 
53223
        }
-
 
53224
      }
-
 
53225
 
-
 
53226
      /**
-
 
53227
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53228
       * if it is not found.
-
 
53229
       */
-
 
53230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53231
        _Fields fields = findByThriftId(fieldId);
-
 
53232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53233
        return fields;
-
 
53234
      }
-
 
53235
 
-
 
53236
      /**
-
 
53237
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53238
       */
-
 
53239
      public static _Fields findByName(String name) {
-
 
53240
        return byName.get(name);
-
 
53241
      }
-
 
53242
 
-
 
53243
      private final short _thriftId;
-
 
53244
      private final String _fieldName;
-
 
53245
 
-
 
53246
      _Fields(short thriftId, String fieldName) {
-
 
53247
        _thriftId = thriftId;
-
 
53248
        _fieldName = fieldName;
-
 
53249
      }
-
 
53250
 
-
 
53251
      public short getThriftFieldId() {
-
 
53252
        return _thriftId;
-
 
53253
      }
-
 
53254
 
-
 
53255
      public String getFieldName() {
-
 
53256
        return _fieldName;
-
 
53257
      }
-
 
53258
    }
-
 
53259
 
-
 
53260
    // isset id assignments
-
 
53261
    private static final int __USERID_ISSET_ID = 0;
-
 
53262
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
53263
 
-
 
53264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53265
    static {
-
 
53266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53267
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53268
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53269
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53270
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrustLevel_args.class, metaDataMap);
-
 
53271
    }
-
 
53272
 
-
 
53273
    public getTrustLevel_args() {
-
 
53274
    }
-
 
53275
 
-
 
53276
    public getTrustLevel_args(
-
 
53277
      long userId)
-
 
53278
    {
-
 
53279
      this();
-
 
53280
      this.userId = userId;
-
 
53281
      setUserIdIsSet(true);
-
 
53282
    }
-
 
53283
 
-
 
53284
    /**
-
 
53285
     * Performs a deep copy on <i>other</i>.
-
 
53286
     */
-
 
53287
    public getTrustLevel_args(getTrustLevel_args other) {
-
 
53288
      __isset_bit_vector.clear();
-
 
53289
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
53290
      this.userId = other.userId;
-
 
53291
    }
-
 
53292
 
-
 
53293
    public getTrustLevel_args deepCopy() {
-
 
53294
      return new getTrustLevel_args(this);
-
 
53295
    }
-
 
53296
 
-
 
53297
    @Override
-
 
53298
    public void clear() {
-
 
53299
      setUserIdIsSet(false);
-
 
53300
      this.userId = 0;
-
 
53301
    }
-
 
53302
 
-
 
53303
    public long getUserId() {
-
 
53304
      return this.userId;
-
 
53305
    }
-
 
53306
 
-
 
53307
    public void setUserId(long userId) {
-
 
53308
      this.userId = userId;
-
 
53309
      setUserIdIsSet(true);
-
 
53310
    }
-
 
53311
 
-
 
53312
    public void unsetUserId() {
-
 
53313
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
53314
    }
-
 
53315
 
-
 
53316
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
53317
    public boolean isSetUserId() {
-
 
53318
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
53319
    }
-
 
53320
 
-
 
53321
    public void setUserIdIsSet(boolean value) {
-
 
53322
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
53323
    }
-
 
53324
 
-
 
53325
    public void setFieldValue(_Fields field, Object value) {
-
 
53326
      switch (field) {
-
 
53327
      case USER_ID:
-
 
53328
        if (value == null) {
-
 
53329
          unsetUserId();
-
 
53330
        } else {
-
 
53331
          setUserId((Long)value);
-
 
53332
        }
-
 
53333
        break;
-
 
53334
 
-
 
53335
      }
-
 
53336
    }
-
 
53337
 
-
 
53338
    public Object getFieldValue(_Fields field) {
-
 
53339
      switch (field) {
-
 
53340
      case USER_ID:
-
 
53341
        return Long.valueOf(getUserId());
-
 
53342
 
-
 
53343
      }
-
 
53344
      throw new IllegalStateException();
-
 
53345
    }
-
 
53346
 
-
 
53347
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53348
    public boolean isSet(_Fields field) {
-
 
53349
      if (field == null) {
-
 
53350
        throw new IllegalArgumentException();
-
 
53351
      }
-
 
53352
 
-
 
53353
      switch (field) {
-
 
53354
      case USER_ID:
-
 
53355
        return isSetUserId();
-
 
53356
      }
-
 
53357
      throw new IllegalStateException();
-
 
53358
    }
-
 
53359
 
-
 
53360
    @Override
-
 
53361
    public boolean equals(Object that) {
-
 
53362
      if (that == null)
-
 
53363
        return false;
-
 
53364
      if (that instanceof getTrustLevel_args)
-
 
53365
        return this.equals((getTrustLevel_args)that);
-
 
53366
      return false;
-
 
53367
    }
-
 
53368
 
-
 
53369
    public boolean equals(getTrustLevel_args that) {
-
 
53370
      if (that == null)
-
 
53371
        return false;
-
 
53372
 
-
 
53373
      boolean this_present_userId = true;
-
 
53374
      boolean that_present_userId = true;
-
 
53375
      if (this_present_userId || that_present_userId) {
-
 
53376
        if (!(this_present_userId && that_present_userId))
-
 
53377
          return false;
-
 
53378
        if (this.userId != that.userId)
-
 
53379
          return false;
-
 
53380
      }
-
 
53381
 
-
 
53382
      return true;
-
 
53383
    }
-
 
53384
 
-
 
53385
    @Override
-
 
53386
    public int hashCode() {
-
 
53387
      return 0;
-
 
53388
    }
-
 
53389
 
-
 
53390
    public int compareTo(getTrustLevel_args other) {
-
 
53391
      if (!getClass().equals(other.getClass())) {
-
 
53392
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53393
      }
-
 
53394
 
-
 
53395
      int lastComparison = 0;
-
 
53396
      getTrustLevel_args typedOther = (getTrustLevel_args)other;
-
 
53397
 
-
 
53398
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
53399
      if (lastComparison != 0) {
-
 
53400
        return lastComparison;
-
 
53401
      }
-
 
53402
      if (isSetUserId()) {
-
 
53403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
53404
        if (lastComparison != 0) {
-
 
53405
          return lastComparison;
-
 
53406
        }
-
 
53407
      }
-
 
53408
      return 0;
-
 
53409
    }
-
 
53410
 
-
 
53411
    public _Fields fieldForId(int fieldId) {
-
 
53412
      return _Fields.findByThriftId(fieldId);
-
 
53413
    }
-
 
53414
 
-
 
53415
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53416
      org.apache.thrift.protocol.TField field;
-
 
53417
      iprot.readStructBegin();
-
 
53418
      while (true)
-
 
53419
      {
-
 
53420
        field = iprot.readFieldBegin();
-
 
53421
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53422
          break;
-
 
53423
        }
-
 
53424
        switch (field.id) {
-
 
53425
          case 1: // USER_ID
-
 
53426
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53427
              this.userId = iprot.readI64();
-
 
53428
              setUserIdIsSet(true);
-
 
53429
            } else { 
-
 
53430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53431
            }
-
 
53432
            break;
-
 
53433
          default:
-
 
53434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53435
        }
-
 
53436
        iprot.readFieldEnd();
-
 
53437
      }
-
 
53438
      iprot.readStructEnd();
-
 
53439
      validate();
-
 
53440
    }
-
 
53441
 
-
 
53442
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53443
      validate();
-
 
53444
 
-
 
53445
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53446
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
53447
      oprot.writeI64(this.userId);
-
 
53448
      oprot.writeFieldEnd();
-
 
53449
      oprot.writeFieldStop();
-
 
53450
      oprot.writeStructEnd();
-
 
53451
    }
-
 
53452
 
-
 
53453
    @Override
-
 
53454
    public String toString() {
-
 
53455
      StringBuilder sb = new StringBuilder("getTrustLevel_args(");
-
 
53456
      boolean first = true;
-
 
53457
 
-
 
53458
      sb.append("userId:");
-
 
53459
      sb.append(this.userId);
-
 
53460
      first = false;
-
 
53461
      sb.append(")");
-
 
53462
      return sb.toString();
-
 
53463
    }
-
 
53464
 
-
 
53465
    public void validate() throws org.apache.thrift.TException {
-
 
53466
      // check for required fields
-
 
53467
    }
-
 
53468
 
-
 
53469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53470
      try {
-
 
53471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53472
      } catch (org.apache.thrift.TException te) {
-
 
53473
        throw new java.io.IOException(te);
-
 
53474
      }
-
 
53475
    }
-
 
53476
 
-
 
53477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53478
      try {
-
 
53479
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53480
      } catch (org.apache.thrift.TException te) {
-
 
53481
        throw new java.io.IOException(te);
-
 
53482
      }
-
 
53483
    }
-
 
53484
 
-
 
53485
  }
-
 
53486
 
-
 
53487
  public static class getTrustLevel_result implements org.apache.thrift.TBase<getTrustLevel_result, getTrustLevel_result._Fields>, java.io.Serializable, Cloneable   {
-
 
53488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrustLevel_result");
-
 
53489
 
-
 
53490
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);
-
 
53491
 
-
 
53492
    private double success; // required
-
 
53493
 
-
 
53494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53495
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53496
      SUCCESS((short)0, "success");
-
 
53497
 
-
 
53498
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53499
 
-
 
53500
      static {
-
 
53501
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53502
          byName.put(field.getFieldName(), field);
-
 
53503
        }
-
 
53504
      }
-
 
53505
 
-
 
53506
      /**
-
 
53507
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53508
       */
-
 
53509
      public static _Fields findByThriftId(int fieldId) {
-
 
53510
        switch(fieldId) {
-
 
53511
          case 0: // SUCCESS
-
 
53512
            return SUCCESS;
-
 
53513
          default:
-
 
53514
            return null;
-
 
53515
        }
-
 
53516
      }
-
 
53517
 
-
 
53518
      /**
-
 
53519
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53520
       * if it is not found.
-
 
53521
       */
-
 
53522
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53523
        _Fields fields = findByThriftId(fieldId);
-
 
53524
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53525
        return fields;
-
 
53526
      }
-
 
53527
 
-
 
53528
      /**
-
 
53529
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53530
       */
-
 
53531
      public static _Fields findByName(String name) {
-
 
53532
        return byName.get(name);
-
 
53533
      }
-
 
53534
 
-
 
53535
      private final short _thriftId;
-
 
53536
      private final String _fieldName;
-
 
53537
 
-
 
53538
      _Fields(short thriftId, String fieldName) {
-
 
53539
        _thriftId = thriftId;
-
 
53540
        _fieldName = fieldName;
-
 
53541
      }
-
 
53542
 
-
 
53543
      public short getThriftFieldId() {
-
 
53544
        return _thriftId;
-
 
53545
      }
-
 
53546
 
-
 
53547
      public String getFieldName() {
-
 
53548
        return _fieldName;
-
 
53549
      }
-
 
53550
    }
-
 
53551
 
-
 
53552
    // isset id assignments
-
 
53553
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
53554
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
53555
 
-
 
53556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53557
    static {
-
 
53558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53559
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53560
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
53561
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53562
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrustLevel_result.class, metaDataMap);
-
 
53563
    }
-
 
53564
 
-
 
53565
    public getTrustLevel_result() {
-
 
53566
    }
-
 
53567
 
-
 
53568
    public getTrustLevel_result(
-
 
53569
      double success)
-
 
53570
    {
-
 
53571
      this();
-
 
53572
      this.success = success;
-
 
53573
      setSuccessIsSet(true);
-
 
53574
    }
-
 
53575
 
-
 
53576
    /**
-
 
53577
     * Performs a deep copy on <i>other</i>.
-
 
53578
     */
-
 
53579
    public getTrustLevel_result(getTrustLevel_result other) {
-
 
53580
      __isset_bit_vector.clear();
-
 
53581
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
53582
      this.success = other.success;
-
 
53583
    }
-
 
53584
 
-
 
53585
    public getTrustLevel_result deepCopy() {
-
 
53586
      return new getTrustLevel_result(this);
-
 
53587
    }
-
 
53588
 
-
 
53589
    @Override
-
 
53590
    public void clear() {
-
 
53591
      setSuccessIsSet(false);
-
 
53592
      this.success = 0.0;
-
 
53593
    }
-
 
53594
 
-
 
53595
    public double getSuccess() {
-
 
53596
      return this.success;
-
 
53597
    }
-
 
53598
 
-
 
53599
    public void setSuccess(double success) {
-
 
53600
      this.success = success;
-
 
53601
      setSuccessIsSet(true);
-
 
53602
    }
-
 
53603
 
-
 
53604
    public void unsetSuccess() {
-
 
53605
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
53606
    }
-
 
53607
 
-
 
53608
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
53609
    public boolean isSetSuccess() {
-
 
53610
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
53611
    }
-
 
53612
 
-
 
53613
    public void setSuccessIsSet(boolean value) {
-
 
53614
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
53615
    }
-
 
53616
 
-
 
53617
    public void setFieldValue(_Fields field, Object value) {
-
 
53618
      switch (field) {
-
 
53619
      case SUCCESS:
-
 
53620
        if (value == null) {
-
 
53621
          unsetSuccess();
-
 
53622
        } else {
-
 
53623
          setSuccess((Double)value);
-
 
53624
        }
-
 
53625
        break;
-
 
53626
 
-
 
53627
      }
-
 
53628
    }
-
 
53629
 
-
 
53630
    public Object getFieldValue(_Fields field) {
-
 
53631
      switch (field) {
-
 
53632
      case SUCCESS:
-
 
53633
        return Double.valueOf(getSuccess());
-
 
53634
 
-
 
53635
      }
-
 
53636
      throw new IllegalStateException();
-
 
53637
    }
-
 
53638
 
-
 
53639
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53640
    public boolean isSet(_Fields field) {
-
 
53641
      if (field == null) {
-
 
53642
        throw new IllegalArgumentException();
-
 
53643
      }
-
 
53644
 
-
 
53645
      switch (field) {
-
 
53646
      case SUCCESS:
-
 
53647
        return isSetSuccess();
-
 
53648
      }
-
 
53649
      throw new IllegalStateException();
-
 
53650
    }
-
 
53651
 
-
 
53652
    @Override
-
 
53653
    public boolean equals(Object that) {
-
 
53654
      if (that == null)
-
 
53655
        return false;
-
 
53656
      if (that instanceof getTrustLevel_result)
-
 
53657
        return this.equals((getTrustLevel_result)that);
-
 
53658
      return false;
-
 
53659
    }
-
 
53660
 
-
 
53661
    public boolean equals(getTrustLevel_result that) {
-
 
53662
      if (that == null)
-
 
53663
        return false;
-
 
53664
 
-
 
53665
      boolean this_present_success = true;
-
 
53666
      boolean that_present_success = true;
-
 
53667
      if (this_present_success || that_present_success) {
-
 
53668
        if (!(this_present_success && that_present_success))
-
 
53669
          return false;
-
 
53670
        if (this.success != that.success)
-
 
53671
          return false;
-
 
53672
      }
-
 
53673
 
-
 
53674
      return true;
-
 
53675
    }
-
 
53676
 
-
 
53677
    @Override
-
 
53678
    public int hashCode() {
-
 
53679
      return 0;
-
 
53680
    }
-
 
53681
 
-
 
53682
    public int compareTo(getTrustLevel_result other) {
-
 
53683
      if (!getClass().equals(other.getClass())) {
-
 
53684
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53685
      }
-
 
53686
 
-
 
53687
      int lastComparison = 0;
-
 
53688
      getTrustLevel_result typedOther = (getTrustLevel_result)other;
-
 
53689
 
-
 
53690
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
53691
      if (lastComparison != 0) {
-
 
53692
        return lastComparison;
-
 
53693
      }
-
 
53694
      if (isSetSuccess()) {
-
 
53695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
53696
        if (lastComparison != 0) {
-
 
53697
          return lastComparison;
-
 
53698
        }
-
 
53699
      }
-
 
53700
      return 0;
-
 
53701
    }
-
 
53702
 
-
 
53703
    public _Fields fieldForId(int fieldId) {
-
 
53704
      return _Fields.findByThriftId(fieldId);
-
 
53705
    }
-
 
53706
 
-
 
53707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53708
      org.apache.thrift.protocol.TField field;
-
 
53709
      iprot.readStructBegin();
-
 
53710
      while (true)
-
 
53711
      {
-
 
53712
        field = iprot.readFieldBegin();
-
 
53713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53714
          break;
-
 
53715
        }
-
 
53716
        switch (field.id) {
-
 
53717
          case 0: // SUCCESS
-
 
53718
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
53719
              this.success = iprot.readDouble();
-
 
53720
              setSuccessIsSet(true);
-
 
53721
            } else { 
-
 
53722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53723
            }
-
 
53724
            break;
-
 
53725
          default:
-
 
53726
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53727
        }
-
 
53728
        iprot.readFieldEnd();
-
 
53729
      }
-
 
53730
      iprot.readStructEnd();
-
 
53731
      validate();
-
 
53732
    }
-
 
53733
 
-
 
53734
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53735
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53736
 
-
 
53737
      if (this.isSetSuccess()) {
-
 
53738
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
53739
        oprot.writeDouble(this.success);
-
 
53740
        oprot.writeFieldEnd();
-
 
53741
      }
-
 
53742
      oprot.writeFieldStop();
-
 
53743
      oprot.writeStructEnd();
-
 
53744
    }
-
 
53745
 
-
 
53746
    @Override
-
 
53747
    public String toString() {
-
 
53748
      StringBuilder sb = new StringBuilder("getTrustLevel_result(");
-
 
53749
      boolean first = true;
-
 
53750
 
-
 
53751
      sb.append("success:");
-
 
53752
      sb.append(this.success);
-
 
53753
      first = false;
-
 
53754
      sb.append(")");
-
 
53755
      return sb.toString();
-
 
53756
    }
-
 
53757
 
-
 
53758
    public void validate() throws org.apache.thrift.TException {
-
 
53759
      // check for required fields
-
 
53760
    }
-
 
53761
 
-
 
53762
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53763
      try {
-
 
53764
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53765
      } catch (org.apache.thrift.TException te) {
-
 
53766
        throw new java.io.IOException(te);
-
 
53767
      }
-
 
53768
    }
-
 
53769
 
-
 
53770
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53771
      try {
-
 
53772
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53773
      } catch (org.apache.thrift.TException te) {
-
 
53774
        throw new java.io.IOException(te);
-
 
53775
      }
-
 
53776
    }
52440
 
53777
 
52441
  }
53778
  }
52442
 
53779
 
52443
  public static class showCODOption_args implements org.apache.thrift.TBase<showCODOption_args, showCODOption_args._Fields>, java.io.Serializable, Cloneable   {
53780
  public static class showCODOption_args implements org.apache.thrift.TBase<showCODOption_args, showCODOption_args._Fields>, java.io.Serializable, Cloneable   {
52444
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("showCODOption_args");
53781
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("showCODOption_args");