Subversion Repositories SmartDukaan

Rev

Rev 48 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 48 Rev 123
Line 28... Line 28...
28
  /**
28
  /**
29
   * service
29
   * service
30
   */
30
   */
31
  public interface Iface {
31
  public interface Iface {
32
 
32
 
33
    public TUserContext createContext(TUserContext context, boolean updateExisting) throws UserContextException, TException;
33
    public UserContext createContext(UserContext context, boolean updateExisting) throws UserContextException, TException;
34
 
34
 
35
    public TUserContext getContextFromId(long userId) throws UserContextException, TException;
35
    public UserContext getContextFromId(long userId, boolean isSessionId) throws UserContextException, TException;
36
 
36
 
37
    public TUserContext getContextFromEmailOrHandle(String emailorhandle, boolean isEmail) throws UserContextException, TException;
37
    public UserContext getContextFromEmailOrHandle(String emailorhandle, boolean isEmail) throws UserContextException, TException;
38
 
38
 
39
    public TUserState getState(long userId) throws UserContextException, TException;
39
    public UserState getState(long userId, boolean isSessionId) throws UserContextException, TException;
40
 
40
 
41
    public TUserPrimaryInfo getPrimaryInfo(long userId) throws UserContextException, TException;
41
    public UserPrimaryInfo getPrimaryInfo(long userId, boolean isSessionId) throws UserContextException, TException;
42
 
42
 
43
    public TUserInternalInfo getInternalInfo(long userId) throws UserContextException, TException;
43
    public UserInternalInfo getInternalInfo(long userId, boolean isSessionId) throws UserContextException, TException;
44
 
44
 
45
    public TUserContext getContext(String email, String password) throws AuthenticationException, TException;
45
    public UserContext getContext(String email, String password) throws AuthenticationException, TException;
-
 
46
 
-
 
47
    public boolean authenticateUser(String handle, String password, boolean isEmail) throws AuthenticationException, TException;
46
 
48
 
47
    public boolean userExists(String email) throws UserContextException, TException;
49
    public boolean userExists(String email) throws UserContextException, TException;
48
 
50
 
49
    public boolean addIpAdressForUser(String ip, long timestamp, long userId) throws UserContextException, TException;
51
    public boolean addIpAdressForUser(String ip, long timestamp, long userId) throws UserContextException, TException;
50
 
52
 
51
    public boolean addAddressForUser(TAddress address, long userid, long timestamp) throws UserContextException, TException;
53
    public boolean addAddressForUser(Address address, long userid, long timestamp) throws UserContextException, TException;
52
 
54
 
53
    public boolean removeAddressForUser(long userid, long addressId) throws UserContextException, TException;
55
    public boolean removeAddressForUser(long userid, long addressId) throws UserContextException, TException;
54
 
56
 
55
    public boolean setUserAsLoggedIn(long userId, long timestamp) throws UserContextException, TException;
57
    public boolean setUserAsLoggedIn(long userId, long timestamp) throws UserContextException, TException;
56
 
58
 
57
    public boolean setUserAsLoggedOut(long userid, long timestamp) throws UserContextException, TException;
59
    public boolean setUserAsLoggedOut(long userid, long timestamp) throws UserContextException, TException;
58
 
60
 
59
    public boolean updatePassword(long userid, String password) throws UserContextException, TException;
61
    public boolean updatePassword(long userid, String password) throws UserContextException, TException;
60
 
62
 
61
    public boolean deleteUser(long userid) throws UserContextException, TException;
63
    public boolean deleteUser(long userid, boolean isSessionId) throws UserContextException, TException;
62
 
64
 
63
    public boolean sendEmailVerification(long userid) throws UserContextException, TException;
65
    public boolean sendEmailVerification(long userid) throws UserContextException, TException;
64
 
66
 
65
    public boolean sendSMSVerification(long userid) throws UserContextException, TException;
67
    public boolean sendSMSVerification(long userid) throws UserContextException, TException;
66
 
68
 
Line 97... Line 99...
97
    public TProtocol getOutputProtocol()
99
    public TProtocol getOutputProtocol()
98
    {
100
    {
99
      return this.oprot_;
101
      return this.oprot_;
100
    }
102
    }
101
 
103
 
102
    public TUserContext createContext(TUserContext context, boolean updateExisting) throws UserContextException, TException
104
    public UserContext createContext(UserContext context, boolean updateExisting) throws UserContextException, TException
103
    {
105
    {
104
      send_createContext(context, updateExisting);
106
      send_createContext(context, updateExisting);
105
      return recv_createContext();
107
      return recv_createContext();
106
    }
108
    }
107
 
109
 
108
    public void send_createContext(TUserContext context, boolean updateExisting) throws TException
110
    public void send_createContext(UserContext context, boolean updateExisting) throws TException
109
    {
111
    {
110
      oprot_.writeMessageBegin(new TMessage("createContext", TMessageType.CALL, seqid_));
112
      oprot_.writeMessageBegin(new TMessage("createContext", TMessageType.CALL, seqid_));
111
      createContext_args args = new createContext_args();
113
      createContext_args args = new createContext_args();
112
      args.context = context;
114
      args.context = context;
113
      args.updateExisting = updateExisting;
115
      args.updateExisting = updateExisting;
114
      args.write(oprot_);
116
      args.write(oprot_);
115
      oprot_.writeMessageEnd();
117
      oprot_.writeMessageEnd();
116
      oprot_.getTransport().flush();
118
      oprot_.getTransport().flush();
117
    }
119
    }
118
 
120
 
119
    public TUserContext recv_createContext() throws UserContextException, TException
121
    public UserContext recv_createContext() throws UserContextException, TException
120
    {
122
    {
121
      TMessage msg = iprot_.readMessageBegin();
123
      TMessage msg = iprot_.readMessageBegin();
122
      if (msg.type == TMessageType.EXCEPTION) {
124
      if (msg.type == TMessageType.EXCEPTION) {
123
        TApplicationException x = TApplicationException.read(iprot_);
125
        TApplicationException x = TApplicationException.read(iprot_);
124
        iprot_.readMessageEnd();
126
        iprot_.readMessageEnd();
Line 134... Line 136...
134
        throw result.cex;
136
        throw result.cex;
135
      }
137
      }
136
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createContext failed: unknown result");
138
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createContext failed: unknown result");
137
    }
139
    }
138
 
140
 
139
    public TUserContext getContextFromId(long userId) throws UserContextException, TException
141
    public UserContext getContextFromId(long userId, boolean isSessionId) throws UserContextException, TException
140
    {
142
    {
141
      send_getContextFromId(userId);
143
      send_getContextFromId(userId, isSessionId);
142
      return recv_getContextFromId();
144
      return recv_getContextFromId();
143
    }
145
    }
144
 
146
 
145
    public void send_getContextFromId(long userId) throws TException
147
    public void send_getContextFromId(long userId, boolean isSessionId) throws TException
146
    {
148
    {
147
      oprot_.writeMessageBegin(new TMessage("getContextFromId", TMessageType.CALL, seqid_));
149
      oprot_.writeMessageBegin(new TMessage("getContextFromId", TMessageType.CALL, seqid_));
148
      getContextFromId_args args = new getContextFromId_args();
150
      getContextFromId_args args = new getContextFromId_args();
149
      args.userId = userId;
151
      args.userId = userId;
-
 
152
      args.isSessionId = isSessionId;
150
      args.write(oprot_);
153
      args.write(oprot_);
151
      oprot_.writeMessageEnd();
154
      oprot_.writeMessageEnd();
152
      oprot_.getTransport().flush();
155
      oprot_.getTransport().flush();
153
    }
156
    }
154
 
157
 
155
    public TUserContext recv_getContextFromId() throws UserContextException, TException
158
    public UserContext recv_getContextFromId() throws UserContextException, TException
156
    {
159
    {
157
      TMessage msg = iprot_.readMessageBegin();
160
      TMessage msg = iprot_.readMessageBegin();
158
      if (msg.type == TMessageType.EXCEPTION) {
161
      if (msg.type == TMessageType.EXCEPTION) {
159
        TApplicationException x = TApplicationException.read(iprot_);
162
        TApplicationException x = TApplicationException.read(iprot_);
160
        iprot_.readMessageEnd();
163
        iprot_.readMessageEnd();
Line 170... Line 173...
170
        throw result.ucx;
173
        throw result.ucx;
171
      }
174
      }
172
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromId failed: unknown result");
175
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromId failed: unknown result");
173
    }
176
    }
174
 
177
 
175
    public TUserContext getContextFromEmailOrHandle(String emailorhandle, boolean isEmail) throws UserContextException, TException
178
    public UserContext getContextFromEmailOrHandle(String emailorhandle, boolean isEmail) throws UserContextException, TException
176
    {
179
    {
177
      send_getContextFromEmailOrHandle(emailorhandle, isEmail);
180
      send_getContextFromEmailOrHandle(emailorhandle, isEmail);
178
      return recv_getContextFromEmailOrHandle();
181
      return recv_getContextFromEmailOrHandle();
179
    }
182
    }
180
 
183
 
Line 187... Line 190...
187
      args.write(oprot_);
190
      args.write(oprot_);
188
      oprot_.writeMessageEnd();
191
      oprot_.writeMessageEnd();
189
      oprot_.getTransport().flush();
192
      oprot_.getTransport().flush();
190
    }
193
    }
191
 
194
 
192
    public TUserContext recv_getContextFromEmailOrHandle() throws UserContextException, TException
195
    public UserContext recv_getContextFromEmailOrHandle() throws UserContextException, TException
193
    {
196
    {
194
      TMessage msg = iprot_.readMessageBegin();
197
      TMessage msg = iprot_.readMessageBegin();
195
      if (msg.type == TMessageType.EXCEPTION) {
198
      if (msg.type == TMessageType.EXCEPTION) {
196
        TApplicationException x = TApplicationException.read(iprot_);
199
        TApplicationException x = TApplicationException.read(iprot_);
197
        iprot_.readMessageEnd();
200
        iprot_.readMessageEnd();
Line 207... Line 210...
207
        throw result.ucx;
210
        throw result.ucx;
208
      }
211
      }
209
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromEmailOrHandle failed: unknown result");
212
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromEmailOrHandle failed: unknown result");
210
    }
213
    }
211
 
214
 
212
    public TUserState getState(long userId) throws UserContextException, TException
215
    public UserState getState(long userId, boolean isSessionId) throws UserContextException, TException
213
    {
216
    {
214
      send_getState(userId);
217
      send_getState(userId, isSessionId);
215
      return recv_getState();
218
      return recv_getState();
216
    }
219
    }
217
 
220
 
218
    public void send_getState(long userId) throws TException
221
    public void send_getState(long userId, boolean isSessionId) throws TException
219
    {
222
    {
220
      oprot_.writeMessageBegin(new TMessage("getState", TMessageType.CALL, seqid_));
223
      oprot_.writeMessageBegin(new TMessage("getState", TMessageType.CALL, seqid_));
221
      getState_args args = new getState_args();
224
      getState_args args = new getState_args();
222
      args.userId = userId;
225
      args.userId = userId;
-
 
226
      args.isSessionId = isSessionId;
223
      args.write(oprot_);
227
      args.write(oprot_);
224
      oprot_.writeMessageEnd();
228
      oprot_.writeMessageEnd();
225
      oprot_.getTransport().flush();
229
      oprot_.getTransport().flush();
226
    }
230
    }
227
 
231
 
228
    public TUserState recv_getState() throws UserContextException, TException
232
    public UserState recv_getState() throws UserContextException, TException
229
    {
233
    {
230
      TMessage msg = iprot_.readMessageBegin();
234
      TMessage msg = iprot_.readMessageBegin();
231
      if (msg.type == TMessageType.EXCEPTION) {
235
      if (msg.type == TMessageType.EXCEPTION) {
232
        TApplicationException x = TApplicationException.read(iprot_);
236
        TApplicationException x = TApplicationException.read(iprot_);
233
        iprot_.readMessageEnd();
237
        iprot_.readMessageEnd();
Line 243... Line 247...
243
        throw result.ucx;
247
        throw result.ucx;
244
      }
248
      }
245
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result");
249
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result");
246
    }
250
    }
247
 
251
 
248
    public TUserPrimaryInfo getPrimaryInfo(long userId) throws UserContextException, TException
252
    public UserPrimaryInfo getPrimaryInfo(long userId, boolean isSessionId) throws UserContextException, TException
249
    {
253
    {
250
      send_getPrimaryInfo(userId);
254
      send_getPrimaryInfo(userId, isSessionId);
251
      return recv_getPrimaryInfo();
255
      return recv_getPrimaryInfo();
252
    }
256
    }
253
 
257
 
254
    public void send_getPrimaryInfo(long userId) throws TException
258
    public void send_getPrimaryInfo(long userId, boolean isSessionId) throws TException
255
    {
259
    {
256
      oprot_.writeMessageBegin(new TMessage("getPrimaryInfo", TMessageType.CALL, seqid_));
260
      oprot_.writeMessageBegin(new TMessage("getPrimaryInfo", TMessageType.CALL, seqid_));
257
      getPrimaryInfo_args args = new getPrimaryInfo_args();
261
      getPrimaryInfo_args args = new getPrimaryInfo_args();
258
      args.userId = userId;
262
      args.userId = userId;
-
 
263
      args.isSessionId = isSessionId;
259
      args.write(oprot_);
264
      args.write(oprot_);
260
      oprot_.writeMessageEnd();
265
      oprot_.writeMessageEnd();
261
      oprot_.getTransport().flush();
266
      oprot_.getTransport().flush();
262
    }
267
    }
263
 
268
 
264
    public TUserPrimaryInfo recv_getPrimaryInfo() throws UserContextException, TException
269
    public UserPrimaryInfo recv_getPrimaryInfo() throws UserContextException, TException
265
    {
270
    {
266
      TMessage msg = iprot_.readMessageBegin();
271
      TMessage msg = iprot_.readMessageBegin();
267
      if (msg.type == TMessageType.EXCEPTION) {
272
      if (msg.type == TMessageType.EXCEPTION) {
268
        TApplicationException x = TApplicationException.read(iprot_);
273
        TApplicationException x = TApplicationException.read(iprot_);
269
        iprot_.readMessageEnd();
274
        iprot_.readMessageEnd();
Line 279... Line 284...
279
        throw result.ucx;
284
        throw result.ucx;
280
      }
285
      }
281
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryInfo failed: unknown result");
286
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryInfo failed: unknown result");
282
    }
287
    }
283
 
288
 
284
    public TUserInternalInfo getInternalInfo(long userId) throws UserContextException, TException
289
    public UserInternalInfo getInternalInfo(long userId, boolean isSessionId) throws UserContextException, TException
285
    {
290
    {
286
      send_getInternalInfo(userId);
291
      send_getInternalInfo(userId, isSessionId);
287
      return recv_getInternalInfo();
292
      return recv_getInternalInfo();
288
    }
293
    }
289
 
294
 
290
    public void send_getInternalInfo(long userId) throws TException
295
    public void send_getInternalInfo(long userId, boolean isSessionId) throws TException
291
    {
296
    {
292
      oprot_.writeMessageBegin(new TMessage("getInternalInfo", TMessageType.CALL, seqid_));
297
      oprot_.writeMessageBegin(new TMessage("getInternalInfo", TMessageType.CALL, seqid_));
293
      getInternalInfo_args args = new getInternalInfo_args();
298
      getInternalInfo_args args = new getInternalInfo_args();
294
      args.userId = userId;
299
      args.userId = userId;
-
 
300
      args.isSessionId = isSessionId;
295
      args.write(oprot_);
301
      args.write(oprot_);
296
      oprot_.writeMessageEnd();
302
      oprot_.writeMessageEnd();
297
      oprot_.getTransport().flush();
303
      oprot_.getTransport().flush();
298
    }
304
    }
299
 
305
 
300
    public TUserInternalInfo recv_getInternalInfo() throws UserContextException, TException
306
    public UserInternalInfo recv_getInternalInfo() throws UserContextException, TException
301
    {
307
    {
302
      TMessage msg = iprot_.readMessageBegin();
308
      TMessage msg = iprot_.readMessageBegin();
303
      if (msg.type == TMessageType.EXCEPTION) {
309
      if (msg.type == TMessageType.EXCEPTION) {
304
        TApplicationException x = TApplicationException.read(iprot_);
310
        TApplicationException x = TApplicationException.read(iprot_);
305
        iprot_.readMessageEnd();
311
        iprot_.readMessageEnd();
Line 315... Line 321...
315
        throw result.ucx;
321
        throw result.ucx;
316
      }
322
      }
317
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getInternalInfo failed: unknown result");
323
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getInternalInfo failed: unknown result");
318
    }
324
    }
319
 
325
 
320
    public TUserContext getContext(String email, String password) throws AuthenticationException, TException
326
    public UserContext getContext(String email, String password) throws AuthenticationException, TException
321
    {
327
    {
322
      send_getContext(email, password);
328
      send_getContext(email, password);
323
      return recv_getContext();
329
      return recv_getContext();
324
    }
330
    }
325
 
331
 
Line 332... Line 338...
332
      args.write(oprot_);
338
      args.write(oprot_);
333
      oprot_.writeMessageEnd();
339
      oprot_.writeMessageEnd();
334
      oprot_.getTransport().flush();
340
      oprot_.getTransport().flush();
335
    }
341
    }
336
 
342
 
337
    public TUserContext recv_getContext() throws AuthenticationException, TException
343
    public UserContext recv_getContext() throws AuthenticationException, TException
338
    {
344
    {
339
      TMessage msg = iprot_.readMessageBegin();
345
      TMessage msg = iprot_.readMessageBegin();
340
      if (msg.type == TMessageType.EXCEPTION) {
346
      if (msg.type == TMessageType.EXCEPTION) {
341
        TApplicationException x = TApplicationException.read(iprot_);
347
        TApplicationException x = TApplicationException.read(iprot_);
342
        iprot_.readMessageEnd();
348
        iprot_.readMessageEnd();
Line 352... Line 358...
352
        throw result.ax;
358
        throw result.ax;
353
      }
359
      }
354
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getContext failed: unknown result");
360
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getContext failed: unknown result");
355
    }
361
    }
356
 
362
 
-
 
363
    public boolean authenticateUser(String handle, String password, boolean isEmail) throws AuthenticationException, TException
-
 
364
    {
-
 
365
      send_authenticateUser(handle, password, isEmail);
-
 
366
      return recv_authenticateUser();
-
 
367
    }
-
 
368
 
-
 
369
    public void send_authenticateUser(String handle, String password, boolean isEmail) throws TException
-
 
370
    {
-
 
371
      oprot_.writeMessageBegin(new TMessage("authenticateUser", TMessageType.CALL, seqid_));
-
 
372
      authenticateUser_args args = new authenticateUser_args();
-
 
373
      args.handle = handle;
-
 
374
      args.password = password;
-
 
375
      args.isEmail = isEmail;
-
 
376
      args.write(oprot_);
-
 
377
      oprot_.writeMessageEnd();
-
 
378
      oprot_.getTransport().flush();
-
 
379
    }
-
 
380
 
-
 
381
    public boolean recv_authenticateUser() throws AuthenticationException, TException
-
 
382
    {
-
 
383
      TMessage msg = iprot_.readMessageBegin();
-
 
384
      if (msg.type == TMessageType.EXCEPTION) {
-
 
385
        TApplicationException x = TApplicationException.read(iprot_);
-
 
386
        iprot_.readMessageEnd();
-
 
387
        throw x;
-
 
388
      }
-
 
389
      authenticateUser_result result = new authenticateUser_result();
-
 
390
      result.read(iprot_);
-
 
391
      iprot_.readMessageEnd();
-
 
392
      if (result.isSetSuccess()) {
-
 
393
        return result.success;
-
 
394
      }
-
 
395
      if (result.ax != null) {
-
 
396
        throw result.ax;
-
 
397
      }
-
 
398
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
-
 
399
    }
-
 
400
 
357
    public boolean userExists(String email) throws UserContextException, TException
401
    public boolean userExists(String email) throws UserContextException, TException
358
    {
402
    {
359
      send_userExists(email);
403
      send_userExists(email);
360
      return recv_userExists();
404
      return recv_userExists();
361
    }
405
    }
Line 426... Line 470...
426
        throw result.ucx;
470
        throw result.ucx;
427
      }
471
      }
428
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addIpAdressForUser failed: unknown result");
472
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addIpAdressForUser failed: unknown result");
429
    }
473
    }
430
 
474
 
431
    public boolean addAddressForUser(TAddress address, long userid, long timestamp) throws UserContextException, TException
475
    public boolean addAddressForUser(Address address, long userid, long timestamp) throws UserContextException, TException
432
    {
476
    {
433
      send_addAddressForUser(address, userid, timestamp);
477
      send_addAddressForUser(address, userid, timestamp);
434
      return recv_addAddressForUser();
478
      return recv_addAddressForUser();
435
    }
479
    }
436
 
480
 
437
    public void send_addAddressForUser(TAddress address, long userid, long timestamp) throws TException
481
    public void send_addAddressForUser(Address address, long userid, long timestamp) throws TException
438
    {
482
    {
439
      oprot_.writeMessageBegin(new TMessage("addAddressForUser", TMessageType.CALL, seqid_));
483
      oprot_.writeMessageBegin(new TMessage("addAddressForUser", TMessageType.CALL, seqid_));
440
      addAddressForUser_args args = new addAddressForUser_args();
484
      addAddressForUser_args args = new addAddressForUser_args();
441
      args.address = address;
485
      args.address = address;
442
      args.userid = userid;
486
      args.userid = userid;
Line 612... Line 656...
612
        throw result.ucx;
656
        throw result.ucx;
613
      }
657
      }
614
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
658
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
615
    }
659
    }
616
 
660
 
617
    public boolean deleteUser(long userid) throws UserContextException, TException
661
    public boolean deleteUser(long userid, boolean isSessionId) throws UserContextException, TException
618
    {
662
    {
619
      send_deleteUser(userid);
663
      send_deleteUser(userid, isSessionId);
620
      return recv_deleteUser();
664
      return recv_deleteUser();
621
    }
665
    }
622
 
666
 
623
    public void send_deleteUser(long userid) throws TException
667
    public void send_deleteUser(long userid, boolean isSessionId) throws TException
624
    {
668
    {
625
      oprot_.writeMessageBegin(new TMessage("deleteUser", TMessageType.CALL, seqid_));
669
      oprot_.writeMessageBegin(new TMessage("deleteUser", TMessageType.CALL, seqid_));
626
      deleteUser_args args = new deleteUser_args();
670
      deleteUser_args args = new deleteUser_args();
627
      args.userid = userid;
671
      args.userid = userid;
-
 
672
      args.isSessionId = isSessionId;
628
      args.write(oprot_);
673
      args.write(oprot_);
629
      oprot_.writeMessageEnd();
674
      oprot_.writeMessageEnd();
630
      oprot_.getTransport().flush();
675
      oprot_.getTransport().flush();
631
    }
676
    }
632
 
677
 
Line 843... Line 888...
843
      processMap_.put("getContextFromEmailOrHandle", new getContextFromEmailOrHandle());
888
      processMap_.put("getContextFromEmailOrHandle", new getContextFromEmailOrHandle());
844
      processMap_.put("getState", new getState());
889
      processMap_.put("getState", new getState());
845
      processMap_.put("getPrimaryInfo", new getPrimaryInfo());
890
      processMap_.put("getPrimaryInfo", new getPrimaryInfo());
846
      processMap_.put("getInternalInfo", new getInternalInfo());
891
      processMap_.put("getInternalInfo", new getInternalInfo());
847
      processMap_.put("getContext", new getContext());
892
      processMap_.put("getContext", new getContext());
-
 
893
      processMap_.put("authenticateUser", new authenticateUser());
848
      processMap_.put("userExists", new userExists());
894
      processMap_.put("userExists", new userExists());
849
      processMap_.put("addIpAdressForUser", new addIpAdressForUser());
895
      processMap_.put("addIpAdressForUser", new addIpAdressForUser());
850
      processMap_.put("addAddressForUser", new addAddressForUser());
896
      processMap_.put("addAddressForUser", new addAddressForUser());
851
      processMap_.put("removeAddressForUser", new removeAddressForUser());
897
      processMap_.put("removeAddressForUser", new removeAddressForUser());
852
      processMap_.put("setUserAsLoggedIn", new setUserAsLoggedIn());
898
      processMap_.put("setUserAsLoggedIn", new setUserAsLoggedIn());
Line 919... Line 965...
919
        getContextFromId_args args = new getContextFromId_args();
965
        getContextFromId_args args = new getContextFromId_args();
920
        args.read(iprot);
966
        args.read(iprot);
921
        iprot.readMessageEnd();
967
        iprot.readMessageEnd();
922
        getContextFromId_result result = new getContextFromId_result();
968
        getContextFromId_result result = new getContextFromId_result();
923
        try {
969
        try {
924
          result.success = iface_.getContextFromId(args.userId);
970
          result.success = iface_.getContextFromId(args.userId, args.isSessionId);
925
        } catch (UserContextException ucx) {
971
        } catch (UserContextException ucx) {
926
          result.ucx = ucx;
972
          result.ucx = ucx;
927
        } catch (Throwable th) {
973
        } catch (Throwable th) {
928
          LOGGER.error("Internal error processing getContextFromId", th);
974
          LOGGER.error("Internal error processing getContextFromId", th);
929
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getContextFromId");
975
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getContextFromId");
Line 975... Line 1021...
975
        getState_args args = new getState_args();
1021
        getState_args args = new getState_args();
976
        args.read(iprot);
1022
        args.read(iprot);
977
        iprot.readMessageEnd();
1023
        iprot.readMessageEnd();
978
        getState_result result = new getState_result();
1024
        getState_result result = new getState_result();
979
        try {
1025
        try {
980
          result.success = iface_.getState(args.userId);
1026
          result.success = iface_.getState(args.userId, args.isSessionId);
981
        } catch (UserContextException ucx) {
1027
        } catch (UserContextException ucx) {
982
          result.ucx = ucx;
1028
          result.ucx = ucx;
983
        } catch (Throwable th) {
1029
        } catch (Throwable th) {
984
          LOGGER.error("Internal error processing getState", th);
1030
          LOGGER.error("Internal error processing getState", th);
985
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getState");
1031
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getState");
Line 1003... Line 1049...
1003
        getPrimaryInfo_args args = new getPrimaryInfo_args();
1049
        getPrimaryInfo_args args = new getPrimaryInfo_args();
1004
        args.read(iprot);
1050
        args.read(iprot);
1005
        iprot.readMessageEnd();
1051
        iprot.readMessageEnd();
1006
        getPrimaryInfo_result result = new getPrimaryInfo_result();
1052
        getPrimaryInfo_result result = new getPrimaryInfo_result();
1007
        try {
1053
        try {
1008
          result.success = iface_.getPrimaryInfo(args.userId);
1054
          result.success = iface_.getPrimaryInfo(args.userId, args.isSessionId);
1009
        } catch (UserContextException ucx) {
1055
        } catch (UserContextException ucx) {
1010
          result.ucx = ucx;
1056
          result.ucx = ucx;
1011
        } catch (Throwable th) {
1057
        } catch (Throwable th) {
1012
          LOGGER.error("Internal error processing getPrimaryInfo", th);
1058
          LOGGER.error("Internal error processing getPrimaryInfo", th);
1013
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPrimaryInfo");
1059
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPrimaryInfo");
Line 1031... Line 1077...
1031
        getInternalInfo_args args = new getInternalInfo_args();
1077
        getInternalInfo_args args = new getInternalInfo_args();
1032
        args.read(iprot);
1078
        args.read(iprot);
1033
        iprot.readMessageEnd();
1079
        iprot.readMessageEnd();
1034
        getInternalInfo_result result = new getInternalInfo_result();
1080
        getInternalInfo_result result = new getInternalInfo_result();
1035
        try {
1081
        try {
1036
          result.success = iface_.getInternalInfo(args.userId);
1082
          result.success = iface_.getInternalInfo(args.userId, args.isSessionId);
1037
        } catch (UserContextException ucx) {
1083
        } catch (UserContextException ucx) {
1038
          result.ucx = ucx;
1084
          result.ucx = ucx;
1039
        } catch (Throwable th) {
1085
        } catch (Throwable th) {
1040
          LOGGER.error("Internal error processing getInternalInfo", th);
1086
          LOGGER.error("Internal error processing getInternalInfo", th);
1041
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getInternalInfo");
1087
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getInternalInfo");
Line 1079... Line 1125...
1079
        oprot.getTransport().flush();
1125
        oprot.getTransport().flush();
1080
      }
1126
      }
1081
 
1127
 
1082
    }
1128
    }
1083
 
1129
 
-
 
1130
    private class authenticateUser implements ProcessFunction {
-
 
1131
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1132
      {
-
 
1133
        authenticateUser_args args = new authenticateUser_args();
-
 
1134
        args.read(iprot);
-
 
1135
        iprot.readMessageEnd();
-
 
1136
        authenticateUser_result result = new authenticateUser_result();
-
 
1137
        try {
-
 
1138
          result.success = iface_.authenticateUser(args.handle, args.password, args.isEmail);
-
 
1139
          result.setSuccessIsSet(true);
-
 
1140
        } catch (AuthenticationException ax) {
-
 
1141
          result.ax = ax;
-
 
1142
        } catch (Throwable th) {
-
 
1143
          LOGGER.error("Internal error processing authenticateUser", th);
-
 
1144
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateUser");
-
 
1145
          oprot.writeMessageBegin(new TMessage("authenticateUser", TMessageType.EXCEPTION, seqid));
-
 
1146
          x.write(oprot);
-
 
1147
          oprot.writeMessageEnd();
-
 
1148
          oprot.getTransport().flush();
-
 
1149
          return;
-
 
1150
        }
-
 
1151
        oprot.writeMessageBegin(new TMessage("authenticateUser", TMessageType.REPLY, seqid));
-
 
1152
        result.write(oprot);
-
 
1153
        oprot.writeMessageEnd();
-
 
1154
        oprot.getTransport().flush();
-
 
1155
      }
-
 
1156
 
-
 
1157
    }
-
 
1158
 
1084
    private class userExists implements ProcessFunction {
1159
    private class userExists implements ProcessFunction {
1085
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1160
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1086
      {
1161
      {
1087
        userExists_args args = new userExists_args();
1162
        userExists_args args = new userExists_args();
1088
        args.read(iprot);
1163
        args.read(iprot);
Line 1290... Line 1365...
1290
        deleteUser_args args = new deleteUser_args();
1365
        deleteUser_args args = new deleteUser_args();
1291
        args.read(iprot);
1366
        args.read(iprot);
1292
        iprot.readMessageEnd();
1367
        iprot.readMessageEnd();
1293
        deleteUser_result result = new deleteUser_result();
1368
        deleteUser_result result = new deleteUser_result();
1294
        try {
1369
        try {
1295
          result.success = iface_.deleteUser(args.userid);
1370
          result.success = iface_.deleteUser(args.userid, args.isSessionId);
1296
          result.setSuccessIsSet(true);
1371
          result.setSuccessIsSet(true);
1297
        } catch (UserContextException ucx) {
1372
        } catch (UserContextException ucx) {
1298
          result.ucx = ucx;
1373
          result.ucx = ucx;
1299
        } catch (Throwable th) {
1374
        } catch (Throwable th) {
1300
          LOGGER.error("Internal error processing deleteUser", th);
1375
          LOGGER.error("Internal error processing deleteUser", th);
Line 1464... Line 1539...
1464
    private static final TStruct STRUCT_DESC = new TStruct("createContext_args");
1539
    private static final TStruct STRUCT_DESC = new TStruct("createContext_args");
1465
 
1540
 
1466
    private static final TField CONTEXT_FIELD_DESC = new TField("context", TType.STRUCT, (short)1);
1541
    private static final TField CONTEXT_FIELD_DESC = new TField("context", TType.STRUCT, (short)1);
1467
    private static final TField UPDATE_EXISTING_FIELD_DESC = new TField("updateExisting", TType.BOOL, (short)2);
1542
    private static final TField UPDATE_EXISTING_FIELD_DESC = new TField("updateExisting", TType.BOOL, (short)2);
1468
 
1543
 
1469
    private TUserContext context;
1544
    private UserContext context;
1470
    private boolean updateExisting;
1545
    private boolean updateExisting;
1471
 
1546
 
1472
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1547
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1473
    public enum _Fields implements TFieldIdEnum {
1548
    public enum _Fields implements TFieldIdEnum {
1474
      CONTEXT((short)1, "context"),
1549
      CONTEXT((short)1, "context"),
Line 1529... Line 1604...
1529
    private static final int __UPDATEEXISTING_ISSET_ID = 0;
1604
    private static final int __UPDATEEXISTING_ISSET_ID = 0;
1530
    private BitSet __isset_bit_vector = new BitSet(1);
1605
    private BitSet __isset_bit_vector = new BitSet(1);
1531
 
1606
 
1532
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1607
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1533
      put(_Fields.CONTEXT, new FieldMetaData("context", TFieldRequirementType.DEFAULT, 
1608
      put(_Fields.CONTEXT, new FieldMetaData("context", TFieldRequirementType.DEFAULT, 
1534
          new StructMetaData(TType.STRUCT, TUserContext.class)));
1609
          new StructMetaData(TType.STRUCT, UserContext.class)));
1535
      put(_Fields.UPDATE_EXISTING, new FieldMetaData("updateExisting", TFieldRequirementType.DEFAULT, 
1610
      put(_Fields.UPDATE_EXISTING, new FieldMetaData("updateExisting", TFieldRequirementType.DEFAULT, 
1536
          new FieldValueMetaData(TType.BOOL)));
1611
          new FieldValueMetaData(TType.BOOL)));
1537
    }});
1612
    }});
1538
 
1613
 
1539
    static {
1614
    static {
Line 1542... Line 1617...
1542
 
1617
 
1543
    public createContext_args() {
1618
    public createContext_args() {
1544
    }
1619
    }
1545
 
1620
 
1546
    public createContext_args(
1621
    public createContext_args(
1547
      TUserContext context,
1622
      UserContext context,
1548
      boolean updateExisting)
1623
      boolean updateExisting)
1549
    {
1624
    {
1550
      this();
1625
      this();
1551
      this.context = context;
1626
      this.context = context;
1552
      this.updateExisting = updateExisting;
1627
      this.updateExisting = updateExisting;
Line 1558... Line 1633...
1558
     */
1633
     */
1559
    public createContext_args(createContext_args other) {
1634
    public createContext_args(createContext_args other) {
1560
      __isset_bit_vector.clear();
1635
      __isset_bit_vector.clear();
1561
      __isset_bit_vector.or(other.__isset_bit_vector);
1636
      __isset_bit_vector.or(other.__isset_bit_vector);
1562
      if (other.isSetContext()) {
1637
      if (other.isSetContext()) {
1563
        this.context = new TUserContext(other.context);
1638
        this.context = new UserContext(other.context);
1564
      }
1639
      }
1565
      this.updateExisting = other.updateExisting;
1640
      this.updateExisting = other.updateExisting;
1566
    }
1641
    }
1567
 
1642
 
1568
    public createContext_args deepCopy() {
1643
    public createContext_args deepCopy() {
Line 1572... Line 1647...
1572
    @Deprecated
1647
    @Deprecated
1573
    public createContext_args clone() {
1648
    public createContext_args clone() {
1574
      return new createContext_args(this);
1649
      return new createContext_args(this);
1575
    }
1650
    }
1576
 
1651
 
1577
    public TUserContext getContext() {
1652
    public UserContext getContext() {
1578
      return this.context;
1653
      return this.context;
1579
    }
1654
    }
1580
 
1655
 
1581
    public createContext_args setContext(TUserContext context) {
1656
    public createContext_args setContext(UserContext context) {
1582
      this.context = context;
1657
      this.context = context;
1583
      return this;
1658
      return this;
1584
    }
1659
    }
1585
 
1660
 
1586
    public void unsetContext() {
1661
    public void unsetContext() {
Line 1625... Line 1700...
1625
      switch (field) {
1700
      switch (field) {
1626
      case CONTEXT:
1701
      case CONTEXT:
1627
        if (value == null) {
1702
        if (value == null) {
1628
          unsetContext();
1703
          unsetContext();
1629
        } else {
1704
        } else {
1630
          setContext((TUserContext)value);
1705
          setContext((UserContext)value);
1631
        }
1706
        }
1632
        break;
1707
        break;
1633
 
1708
 
1634
      case UPDATE_EXISTING:
1709
      case UPDATE_EXISTING:
1635
        if (value == null) {
1710
        if (value == null) {
Line 1730... Line 1805...
1730
          TProtocolUtil.skip(iprot, field.type);
1805
          TProtocolUtil.skip(iprot, field.type);
1731
        } else {
1806
        } else {
1732
          switch (fieldId) {
1807
          switch (fieldId) {
1733
            case CONTEXT:
1808
            case CONTEXT:
1734
              if (field.type == TType.STRUCT) {
1809
              if (field.type == TType.STRUCT) {
1735
                this.context = new TUserContext();
1810
                this.context = new UserContext();
1736
                this.context.read(iprot);
1811
                this.context.read(iprot);
1737
              } else { 
1812
              } else { 
1738
                TProtocolUtil.skip(iprot, field.type);
1813
                TProtocolUtil.skip(iprot, field.type);
1739
              }
1814
              }
1740
              break;
1815
              break;
Line 1800... Line 1875...
1800
    private static final TStruct STRUCT_DESC = new TStruct("createContext_result");
1875
    private static final TStruct STRUCT_DESC = new TStruct("createContext_result");
1801
 
1876
 
1802
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
1877
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
1803
    private static final TField CEX_FIELD_DESC = new TField("cex", TType.STRUCT, (short)1);
1878
    private static final TField CEX_FIELD_DESC = new TField("cex", TType.STRUCT, (short)1);
1804
 
1879
 
1805
    private TUserContext success;
1880
    private UserContext success;
1806
    private UserContextException cex;
1881
    private UserContextException cex;
1807
 
1882
 
1808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1883
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1809
    public enum _Fields implements TFieldIdEnum {
1884
    public enum _Fields implements TFieldIdEnum {
1810
      SUCCESS((short)0, "success"),
1885
      SUCCESS((short)0, "success"),
Line 1863... Line 1938...
1863
 
1938
 
1864
    // isset id assignments
1939
    // isset id assignments
1865
 
1940
 
1866
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1941
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1867
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
1942
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
1868
          new StructMetaData(TType.STRUCT, TUserContext.class)));
1943
          new StructMetaData(TType.STRUCT, UserContext.class)));
1869
      put(_Fields.CEX, new FieldMetaData("cex", TFieldRequirementType.DEFAULT, 
1944
      put(_Fields.CEX, new FieldMetaData("cex", TFieldRequirementType.DEFAULT, 
1870
          new FieldValueMetaData(TType.STRUCT)));
1945
          new FieldValueMetaData(TType.STRUCT)));
1871
    }});
1946
    }});
1872
 
1947
 
1873
    static {
1948
    static {
Line 1876... Line 1951...
1876
 
1951
 
1877
    public createContext_result() {
1952
    public createContext_result() {
1878
    }
1953
    }
1879
 
1954
 
1880
    public createContext_result(
1955
    public createContext_result(
1881
      TUserContext success,
1956
      UserContext success,
1882
      UserContextException cex)
1957
      UserContextException cex)
1883
    {
1958
    {
1884
      this();
1959
      this();
1885
      this.success = success;
1960
      this.success = success;
1886
      this.cex = cex;
1961
      this.cex = cex;
Line 1889... Line 1964...
1889
    /**
1964
    /**
1890
     * Performs a deep copy on <i>other</i>.
1965
     * Performs a deep copy on <i>other</i>.
1891
     */
1966
     */
1892
    public createContext_result(createContext_result other) {
1967
    public createContext_result(createContext_result other) {
1893
      if (other.isSetSuccess()) {
1968
      if (other.isSetSuccess()) {
1894
        this.success = new TUserContext(other.success);
1969
        this.success = new UserContext(other.success);
1895
      }
1970
      }
1896
      if (other.isSetCex()) {
1971
      if (other.isSetCex()) {
1897
        this.cex = new UserContextException(other.cex);
1972
        this.cex = new UserContextException(other.cex);
1898
      }
1973
      }
1899
    }
1974
    }
Line 1905... Line 1980...
1905
    @Deprecated
1980
    @Deprecated
1906
    public createContext_result clone() {
1981
    public createContext_result clone() {
1907
      return new createContext_result(this);
1982
      return new createContext_result(this);
1908
    }
1983
    }
1909
 
1984
 
1910
    public TUserContext getSuccess() {
1985
    public UserContext getSuccess() {
1911
      return this.success;
1986
      return this.success;
1912
    }
1987
    }
1913
 
1988
 
1914
    public createContext_result setSuccess(TUserContext success) {
1989
    public createContext_result setSuccess(UserContext success) {
1915
      this.success = success;
1990
      this.success = success;
1916
      return this;
1991
      return this;
1917
    }
1992
    }
1918
 
1993
 
1919
    public void unsetSuccess() {
1994
    public void unsetSuccess() {
Line 1959... Line 2034...
1959
      switch (field) {
2034
      switch (field) {
1960
      case SUCCESS:
2035
      case SUCCESS:
1961
        if (value == null) {
2036
        if (value == null) {
1962
          unsetSuccess();
2037
          unsetSuccess();
1963
        } else {
2038
        } else {
1964
          setSuccess((TUserContext)value);
2039
          setSuccess((UserContext)value);
1965
        }
2040
        }
1966
        break;
2041
        break;
1967
 
2042
 
1968
      case CEX:
2043
      case CEX:
1969
        if (value == null) {
2044
        if (value == null) {
Line 2064... Line 2139...
2064
          TProtocolUtil.skip(iprot, field.type);
2139
          TProtocolUtil.skip(iprot, field.type);
2065
        } else {
2140
        } else {
2066
          switch (fieldId) {
2141
          switch (fieldId) {
2067
            case SUCCESS:
2142
            case SUCCESS:
2068
              if (field.type == TType.STRUCT) {
2143
              if (field.type == TType.STRUCT) {
2069
                this.success = new TUserContext();
2144
                this.success = new UserContext();
2070
                this.success.read(iprot);
2145
                this.success.read(iprot);
2071
              } else { 
2146
              } else { 
2072
                TProtocolUtil.skip(iprot, field.type);
2147
                TProtocolUtil.skip(iprot, field.type);
2073
              }
2148
              }
2074
              break;
2149
              break;
Line 2136... Line 2211...
2136
 
2211
 
2137
  public static class getContextFromId_args implements TBase<getContextFromId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getContextFromId_args>   {
2212
  public static class getContextFromId_args implements TBase<getContextFromId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getContextFromId_args>   {
2138
    private static final TStruct STRUCT_DESC = new TStruct("getContextFromId_args");
2213
    private static final TStruct STRUCT_DESC = new TStruct("getContextFromId_args");
2139
 
2214
 
2140
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
2215
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
2216
    private static final TField IS_SESSION_ID_FIELD_DESC = new TField("isSessionId", TType.BOOL, (short)2);
2141
 
2217
 
2142
    private long userId;
2218
    private long userId;
-
 
2219
    private boolean isSessionId;
2143
 
2220
 
2144
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2145
    public enum _Fields implements TFieldIdEnum {
2222
    public enum _Fields implements TFieldIdEnum {
2146
      USER_ID((short)1, "userId");
2223
      USER_ID((short)1, "userId"),
-
 
2224
      IS_SESSION_ID((short)2, "isSessionId");
2147
 
2225
 
2148
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
2226
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
2149
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2227
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2150
 
2228
 
2151
      static {
2229
      static {
Line 2196... Line 2274...
2196
      }
2274
      }
2197
    }
2275
    }
2198
 
2276
 
2199
    // isset id assignments
2277
    // isset id assignments
2200
    private static final int __USERID_ISSET_ID = 0;
2278
    private static final int __USERID_ISSET_ID = 0;
-
 
2279
    private static final int __ISSESSIONID_ISSET_ID = 1;
2201
    private BitSet __isset_bit_vector = new BitSet(1);
2280
    private BitSet __isset_bit_vector = new BitSet(2);
2202
 
2281
 
2203
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2282
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2204
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
2283
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
2205
          new FieldValueMetaData(TType.I64)));
2284
          new FieldValueMetaData(TType.I64)));
-
 
2285
      put(_Fields.IS_SESSION_ID, new FieldMetaData("isSessionId", TFieldRequirementType.DEFAULT, 
-
 
2286
          new FieldValueMetaData(TType.BOOL)));
2206
    }});
2287
    }});
2207
 
2288
 
2208
    static {
2289
    static {
2209
      FieldMetaData.addStructMetaDataMap(getContextFromId_args.class, metaDataMap);
2290
      FieldMetaData.addStructMetaDataMap(getContextFromId_args.class, metaDataMap);
2210
    }
2291
    }
2211
 
2292
 
2212
    public getContextFromId_args() {
2293
    public getContextFromId_args() {
2213
    }
2294
    }
2214
 
2295
 
2215
    public getContextFromId_args(
2296
    public getContextFromId_args(
2216
      long userId)
2297
      long userId,
-
 
2298
      boolean isSessionId)
2217
    {
2299
    {
2218
      this();
2300
      this();
2219
      this.userId = userId;
2301
      this.userId = userId;
2220
      setUserIdIsSet(true);
2302
      setUserIdIsSet(true);
-
 
2303
      this.isSessionId = isSessionId;
-
 
2304
      setIsSessionIdIsSet(true);
2221
    }
2305
    }
2222
 
2306
 
2223
    /**
2307
    /**
2224
     * Performs a deep copy on <i>other</i>.
2308
     * Performs a deep copy on <i>other</i>.
2225
     */
2309
     */
2226
    public getContextFromId_args(getContextFromId_args other) {
2310
    public getContextFromId_args(getContextFromId_args other) {
2227
      __isset_bit_vector.clear();
2311
      __isset_bit_vector.clear();
2228
      __isset_bit_vector.or(other.__isset_bit_vector);
2312
      __isset_bit_vector.or(other.__isset_bit_vector);
2229
      this.userId = other.userId;
2313
      this.userId = other.userId;
-
 
2314
      this.isSessionId = other.isSessionId;
2230
    }
2315
    }
2231
 
2316
 
2232
    public getContextFromId_args deepCopy() {
2317
    public getContextFromId_args deepCopy() {
2233
      return new getContextFromId_args(this);
2318
      return new getContextFromId_args(this);
2234
    }
2319
    }
Line 2259... Line 2344...
2259
 
2344
 
2260
    public void setUserIdIsSet(boolean value) {
2345
    public void setUserIdIsSet(boolean value) {
2261
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
2346
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
2262
    }
2347
    }
2263
 
2348
 
-
 
2349
    public boolean isIsSessionId() {
-
 
2350
      return this.isSessionId;
-
 
2351
    }
-
 
2352
 
-
 
2353
    public getContextFromId_args setIsSessionId(boolean isSessionId) {
-
 
2354
      this.isSessionId = isSessionId;
-
 
2355
      setIsSessionIdIsSet(true);
-
 
2356
      return this;
-
 
2357
    }
-
 
2358
 
-
 
2359
    public void unsetIsSessionId() {
-
 
2360
      __isset_bit_vector.clear(__ISSESSIONID_ISSET_ID);
-
 
2361
    }
-
 
2362
 
-
 
2363
    /** Returns true if field isSessionId is set (has been asigned a value) and false otherwise */
-
 
2364
    public boolean isSetIsSessionId() {
-
 
2365
      return __isset_bit_vector.get(__ISSESSIONID_ISSET_ID);
-
 
2366
    }
-
 
2367
 
-
 
2368
    public void setIsSessionIdIsSet(boolean value) {
-
 
2369
      __isset_bit_vector.set(__ISSESSIONID_ISSET_ID, value);
-
 
2370
    }
-
 
2371
 
2264
    public void setFieldValue(_Fields field, Object value) {
2372
    public void setFieldValue(_Fields field, Object value) {
2265
      switch (field) {
2373
      switch (field) {
2266
      case USER_ID:
2374
      case USER_ID:
2267
        if (value == null) {
2375
        if (value == null) {
2268
          unsetUserId();
2376
          unsetUserId();
2269
        } else {
2377
        } else {
2270
          setUserId((Long)value);
2378
          setUserId((Long)value);
2271
        }
2379
        }
2272
        break;
2380
        break;
2273
 
2381
 
-
 
2382
      case IS_SESSION_ID:
-
 
2383
        if (value == null) {
-
 
2384
          unsetIsSessionId();
-
 
2385
        } else {
-
 
2386
          setIsSessionId((Boolean)value);
-
 
2387
        }
-
 
2388
        break;
-
 
2389
 
2274
      }
2390
      }
2275
    }
2391
    }
2276
 
2392
 
2277
    public void setFieldValue(int fieldID, Object value) {
2393
    public void setFieldValue(int fieldID, Object value) {
2278
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
2394
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 2281... Line 2397...
2281
    public Object getFieldValue(_Fields field) {
2397
    public Object getFieldValue(_Fields field) {
2282
      switch (field) {
2398
      switch (field) {
2283
      case USER_ID:
2399
      case USER_ID:
2284
        return new Long(getUserId());
2400
        return new Long(getUserId());
2285
 
2401
 
-
 
2402
      case IS_SESSION_ID:
-
 
2403
        return new Boolean(isIsSessionId());
-
 
2404
 
2286
      }
2405
      }
2287
      throw new IllegalStateException();
2406
      throw new IllegalStateException();
2288
    }
2407
    }
2289
 
2408
 
2290
    public Object getFieldValue(int fieldId) {
2409
    public Object getFieldValue(int fieldId) {
Line 2294... Line 2413...
2294
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2413
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2295
    public boolean isSet(_Fields field) {
2414
    public boolean isSet(_Fields field) {
2296
      switch (field) {
2415
      switch (field) {
2297
      case USER_ID:
2416
      case USER_ID:
2298
        return isSetUserId();
2417
        return isSetUserId();
-
 
2418
      case IS_SESSION_ID:
-
 
2419
        return isSetIsSessionId();
2299
      }
2420
      }
2300
      throw new IllegalStateException();
2421
      throw new IllegalStateException();
2301
    }
2422
    }
2302
 
2423
 
2303
    public boolean isSet(int fieldID) {
2424
    public boolean isSet(int fieldID) {
Line 2324... Line 2445...
2324
          return false;
2445
          return false;
2325
        if (this.userId != that.userId)
2446
        if (this.userId != that.userId)
2326
          return false;
2447
          return false;
2327
      }
2448
      }
2328
 
2449
 
-
 
2450
      boolean this_present_isSessionId = true;
-
 
2451
      boolean that_present_isSessionId = true;
-
 
2452
      if (this_present_isSessionId || that_present_isSessionId) {
-
 
2453
        if (!(this_present_isSessionId && that_present_isSessionId))
-
 
2454
          return false;
-
 
2455
        if (this.isSessionId != that.isSessionId)
-
 
2456
          return false;
-
 
2457
      }
-
 
2458
 
2329
      return true;
2459
      return true;
2330
    }
2460
    }
2331
 
2461
 
2332
    @Override
2462
    @Override
2333
    public int hashCode() {
2463
    public int hashCode() {
Line 2348... Line 2478...
2348
      }
2478
      }
2349
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
2479
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
2350
      if (lastComparison != 0) {
2480
      if (lastComparison != 0) {
2351
        return lastComparison;
2481
        return lastComparison;
2352
      }
2482
      }
-
 
2483
      lastComparison = Boolean.valueOf(isSetIsSessionId()).compareTo(isSetIsSessionId());
-
 
2484
      if (lastComparison != 0) {
-
 
2485
        return lastComparison;
-
 
2486
      }
-
 
2487
      lastComparison = TBaseHelper.compareTo(isSessionId, typedOther.isSessionId);
-
 
2488
      if (lastComparison != 0) {
-
 
2489
        return lastComparison;
-
 
2490
      }
2353
      return 0;
2491
      return 0;
2354
    }
2492
    }
2355
 
2493
 
2356
    public void read(TProtocol iprot) throws TException {
2494
    public void read(TProtocol iprot) throws TException {
2357
      TField field;
2495
      TField field;
Line 2373... Line 2511...
2373
                setUserIdIsSet(true);
2511
                setUserIdIsSet(true);
2374
              } else { 
2512
              } else { 
2375
                TProtocolUtil.skip(iprot, field.type);
2513
                TProtocolUtil.skip(iprot, field.type);
2376
              }
2514
              }
2377
              break;
2515
              break;
-
 
2516
            case IS_SESSION_ID:
-
 
2517
              if (field.type == TType.BOOL) {
-
 
2518
                this.isSessionId = iprot.readBool();
-
 
2519
                setIsSessionIdIsSet(true);
-
 
2520
              } else { 
-
 
2521
                TProtocolUtil.skip(iprot, field.type);
-
 
2522
              }
-
 
2523
              break;
2378
          }
2524
          }
2379
          iprot.readFieldEnd();
2525
          iprot.readFieldEnd();
2380
        }
2526
        }
2381
      }
2527
      }
2382
      iprot.readStructEnd();
2528
      iprot.readStructEnd();
Line 2388... Line 2534...
2388
 
2534
 
2389
      oprot.writeStructBegin(STRUCT_DESC);
2535
      oprot.writeStructBegin(STRUCT_DESC);
2390
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2536
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2391
      oprot.writeI64(this.userId);
2537
      oprot.writeI64(this.userId);
2392
      oprot.writeFieldEnd();
2538
      oprot.writeFieldEnd();
-
 
2539
      oprot.writeFieldBegin(IS_SESSION_ID_FIELD_DESC);
-
 
2540
      oprot.writeBool(this.isSessionId);
-
 
2541
      oprot.writeFieldEnd();
2393
      oprot.writeFieldStop();
2542
      oprot.writeFieldStop();
2394
      oprot.writeStructEnd();
2543
      oprot.writeStructEnd();
2395
    }
2544
    }
2396
 
2545
 
2397
    @Override
2546
    @Override
Line 2400... Line 2549...
2400
      boolean first = true;
2549
      boolean first = true;
2401
 
2550
 
2402
      sb.append("userId:");
2551
      sb.append("userId:");
2403
      sb.append(this.userId);
2552
      sb.append(this.userId);
2404
      first = false;
2553
      first = false;
-
 
2554
      if (!first) sb.append(", ");
-
 
2555
      sb.append("isSessionId:");
-
 
2556
      sb.append(this.isSessionId);
-
 
2557
      first = false;
2405
      sb.append(")");
2558
      sb.append(")");
2406
      return sb.toString();
2559
      return sb.toString();
2407
    }
2560
    }
2408
 
2561
 
2409
    public void validate() throws TException {
2562
    public void validate() throws TException {
Line 2416... Line 2569...
2416
    private static final TStruct STRUCT_DESC = new TStruct("getContextFromId_result");
2569
    private static final TStruct STRUCT_DESC = new TStruct("getContextFromId_result");
2417
 
2570
 
2418
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
2571
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
2419
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
2572
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
2420
 
2573
 
2421
    private TUserContext success;
2574
    private UserContext success;
2422
    private UserContextException ucx;
2575
    private UserContextException ucx;
2423
 
2576
 
2424
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2577
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2425
    public enum _Fields implements TFieldIdEnum {
2578
    public enum _Fields implements TFieldIdEnum {
2426
      SUCCESS((short)0, "success"),
2579
      SUCCESS((short)0, "success"),
Line 2479... Line 2632...
2479
 
2632
 
2480
    // isset id assignments
2633
    // isset id assignments
2481
 
2634
 
2482
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2635
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2483
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
2636
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
2484
          new StructMetaData(TType.STRUCT, TUserContext.class)));
2637
          new StructMetaData(TType.STRUCT, UserContext.class)));
2485
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
2638
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
2486
          new FieldValueMetaData(TType.STRUCT)));
2639
          new FieldValueMetaData(TType.STRUCT)));
2487
    }});
2640
    }});
2488
 
2641
 
2489
    static {
2642
    static {
Line 2492... Line 2645...
2492
 
2645
 
2493
    public getContextFromId_result() {
2646
    public getContextFromId_result() {
2494
    }
2647
    }
2495
 
2648
 
2496
    public getContextFromId_result(
2649
    public getContextFromId_result(
2497
      TUserContext success,
2650
      UserContext success,
2498
      UserContextException ucx)
2651
      UserContextException ucx)
2499
    {
2652
    {
2500
      this();
2653
      this();
2501
      this.success = success;
2654
      this.success = success;
2502
      this.ucx = ucx;
2655
      this.ucx = ucx;
Line 2505... Line 2658...
2505
    /**
2658
    /**
2506
     * Performs a deep copy on <i>other</i>.
2659
     * Performs a deep copy on <i>other</i>.
2507
     */
2660
     */
2508
    public getContextFromId_result(getContextFromId_result other) {
2661
    public getContextFromId_result(getContextFromId_result other) {
2509
      if (other.isSetSuccess()) {
2662
      if (other.isSetSuccess()) {
2510
        this.success = new TUserContext(other.success);
2663
        this.success = new UserContext(other.success);
2511
      }
2664
      }
2512
      if (other.isSetUcx()) {
2665
      if (other.isSetUcx()) {
2513
        this.ucx = new UserContextException(other.ucx);
2666
        this.ucx = new UserContextException(other.ucx);
2514
      }
2667
      }
2515
    }
2668
    }
Line 2521... Line 2674...
2521
    @Deprecated
2674
    @Deprecated
2522
    public getContextFromId_result clone() {
2675
    public getContextFromId_result clone() {
2523
      return new getContextFromId_result(this);
2676
      return new getContextFromId_result(this);
2524
    }
2677
    }
2525
 
2678
 
2526
    public TUserContext getSuccess() {
2679
    public UserContext getSuccess() {
2527
      return this.success;
2680
      return this.success;
2528
    }
2681
    }
2529
 
2682
 
2530
    public getContextFromId_result setSuccess(TUserContext success) {
2683
    public getContextFromId_result setSuccess(UserContext success) {
2531
      this.success = success;
2684
      this.success = success;
2532
      return this;
2685
      return this;
2533
    }
2686
    }
2534
 
2687
 
2535
    public void unsetSuccess() {
2688
    public void unsetSuccess() {
Line 2575... Line 2728...
2575
      switch (field) {
2728
      switch (field) {
2576
      case SUCCESS:
2729
      case SUCCESS:
2577
        if (value == null) {
2730
        if (value == null) {
2578
          unsetSuccess();
2731
          unsetSuccess();
2579
        } else {
2732
        } else {
2580
          setSuccess((TUserContext)value);
2733
          setSuccess((UserContext)value);
2581
        }
2734
        }
2582
        break;
2735
        break;
2583
 
2736
 
2584
      case UCX:
2737
      case UCX:
2585
        if (value == null) {
2738
        if (value == null) {
Line 2680... Line 2833...
2680
          TProtocolUtil.skip(iprot, field.type);
2833
          TProtocolUtil.skip(iprot, field.type);
2681
        } else {
2834
        } else {
2682
          switch (fieldId) {
2835
          switch (fieldId) {
2683
            case SUCCESS:
2836
            case SUCCESS:
2684
              if (field.type == TType.STRUCT) {
2837
              if (field.type == TType.STRUCT) {
2685
                this.success = new TUserContext();
2838
                this.success = new UserContext();
2686
                this.success.read(iprot);
2839
                this.success.read(iprot);
2687
              } else { 
2840
              } else { 
2688
                TProtocolUtil.skip(iprot, field.type);
2841
                TProtocolUtil.skip(iprot, field.type);
2689
              }
2842
              }
2690
              break;
2843
              break;
Line 3116... Line 3269...
3116
    private static final TStruct STRUCT_DESC = new TStruct("getContextFromEmailOrHandle_result");
3269
    private static final TStruct STRUCT_DESC = new TStruct("getContextFromEmailOrHandle_result");
3117
 
3270
 
3118
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3271
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3119
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
3272
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
3120
 
3273
 
3121
    private TUserContext success;
3274
    private UserContext success;
3122
    private UserContextException ucx;
3275
    private UserContextException ucx;
3123
 
3276
 
3124
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3125
    public enum _Fields implements TFieldIdEnum {
3278
    public enum _Fields implements TFieldIdEnum {
3126
      SUCCESS((short)0, "success"),
3279
      SUCCESS((short)0, "success"),
Line 3179... Line 3332...
3179
 
3332
 
3180
    // isset id assignments
3333
    // isset id assignments
3181
 
3334
 
3182
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3335
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3183
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
3336
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
3184
          new StructMetaData(TType.STRUCT, TUserContext.class)));
3337
          new StructMetaData(TType.STRUCT, UserContext.class)));
3185
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
3338
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
3186
          new FieldValueMetaData(TType.STRUCT)));
3339
          new FieldValueMetaData(TType.STRUCT)));
3187
    }});
3340
    }});
3188
 
3341
 
3189
    static {
3342
    static {
Line 3192... Line 3345...
3192
 
3345
 
3193
    public getContextFromEmailOrHandle_result() {
3346
    public getContextFromEmailOrHandle_result() {
3194
    }
3347
    }
3195
 
3348
 
3196
    public getContextFromEmailOrHandle_result(
3349
    public getContextFromEmailOrHandle_result(
3197
      TUserContext success,
3350
      UserContext success,
3198
      UserContextException ucx)
3351
      UserContextException ucx)
3199
    {
3352
    {
3200
      this();
3353
      this();
3201
      this.success = success;
3354
      this.success = success;
3202
      this.ucx = ucx;
3355
      this.ucx = ucx;
Line 3205... Line 3358...
3205
    /**
3358
    /**
3206
     * Performs a deep copy on <i>other</i>.
3359
     * Performs a deep copy on <i>other</i>.
3207
     */
3360
     */
3208
    public getContextFromEmailOrHandle_result(getContextFromEmailOrHandle_result other) {
3361
    public getContextFromEmailOrHandle_result(getContextFromEmailOrHandle_result other) {
3209
      if (other.isSetSuccess()) {
3362
      if (other.isSetSuccess()) {
3210
        this.success = new TUserContext(other.success);
3363
        this.success = new UserContext(other.success);
3211
      }
3364
      }
3212
      if (other.isSetUcx()) {
3365
      if (other.isSetUcx()) {
3213
        this.ucx = new UserContextException(other.ucx);
3366
        this.ucx = new UserContextException(other.ucx);
3214
      }
3367
      }
3215
    }
3368
    }
Line 3221... Line 3374...
3221
    @Deprecated
3374
    @Deprecated
3222
    public getContextFromEmailOrHandle_result clone() {
3375
    public getContextFromEmailOrHandle_result clone() {
3223
      return new getContextFromEmailOrHandle_result(this);
3376
      return new getContextFromEmailOrHandle_result(this);
3224
    }
3377
    }
3225
 
3378
 
3226
    public TUserContext getSuccess() {
3379
    public UserContext getSuccess() {
3227
      return this.success;
3380
      return this.success;
3228
    }
3381
    }
3229
 
3382
 
3230
    public getContextFromEmailOrHandle_result setSuccess(TUserContext success) {
3383
    public getContextFromEmailOrHandle_result setSuccess(UserContext success) {
3231
      this.success = success;
3384
      this.success = success;
3232
      return this;
3385
      return this;
3233
    }
3386
    }
3234
 
3387
 
3235
    public void unsetSuccess() {
3388
    public void unsetSuccess() {
Line 3275... Line 3428...
3275
      switch (field) {
3428
      switch (field) {
3276
      case SUCCESS:
3429
      case SUCCESS:
3277
        if (value == null) {
3430
        if (value == null) {
3278
          unsetSuccess();
3431
          unsetSuccess();
3279
        } else {
3432
        } else {
3280
          setSuccess((TUserContext)value);
3433
          setSuccess((UserContext)value);
3281
        }
3434
        }
3282
        break;
3435
        break;
3283
 
3436
 
3284
      case UCX:
3437
      case UCX:
3285
        if (value == null) {
3438
        if (value == null) {
Line 3380... Line 3533...
3380
          TProtocolUtil.skip(iprot, field.type);
3533
          TProtocolUtil.skip(iprot, field.type);
3381
        } else {
3534
        } else {
3382
          switch (fieldId) {
3535
          switch (fieldId) {
3383
            case SUCCESS:
3536
            case SUCCESS:
3384
              if (field.type == TType.STRUCT) {
3537
              if (field.type == TType.STRUCT) {
3385
                this.success = new TUserContext();
3538
                this.success = new UserContext();
3386
                this.success.read(iprot);
3539
                this.success.read(iprot);
3387
              } else { 
3540
              } else { 
3388
                TProtocolUtil.skip(iprot, field.type);
3541
                TProtocolUtil.skip(iprot, field.type);
3389
              }
3542
              }
3390
              break;
3543
              break;
Line 3452... Line 3605...
3452
 
3605
 
3453
  public static class getState_args implements TBase<getState_args._Fields>, java.io.Serializable, Cloneable, Comparable<getState_args>   {
3606
  public static class getState_args implements TBase<getState_args._Fields>, java.io.Serializable, Cloneable, Comparable<getState_args>   {
3454
    private static final TStruct STRUCT_DESC = new TStruct("getState_args");
3607
    private static final TStruct STRUCT_DESC = new TStruct("getState_args");
3455
 
3608
 
3456
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
3609
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
3610
    private static final TField IS_SESSION_ID_FIELD_DESC = new TField("isSessionId", TType.BOOL, (short)2);
3457
 
3611
 
3458
    private long userId;
3612
    private long userId;
-
 
3613
    private boolean isSessionId;
3459
 
3614
 
3460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3615
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3461
    public enum _Fields implements TFieldIdEnum {
3616
    public enum _Fields implements TFieldIdEnum {
3462
      USER_ID((short)1, "userId");
3617
      USER_ID((short)1, "userId"),
-
 
3618
      IS_SESSION_ID((short)2, "isSessionId");
3463
 
3619
 
3464
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
3620
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
3465
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3621
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3466
 
3622
 
3467
      static {
3623
      static {
Line 3512... Line 3668...
3512
      }
3668
      }
3513
    }
3669
    }
3514
 
3670
 
3515
    // isset id assignments
3671
    // isset id assignments
3516
    private static final int __USERID_ISSET_ID = 0;
3672
    private static final int __USERID_ISSET_ID = 0;
-
 
3673
    private static final int __ISSESSIONID_ISSET_ID = 1;
3517
    private BitSet __isset_bit_vector = new BitSet(1);
3674
    private BitSet __isset_bit_vector = new BitSet(2);
3518
 
3675
 
3519
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3676
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3520
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
3677
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
3521
          new FieldValueMetaData(TType.I64)));
3678
          new FieldValueMetaData(TType.I64)));
-
 
3679
      put(_Fields.IS_SESSION_ID, new FieldMetaData("isSessionId", TFieldRequirementType.DEFAULT, 
-
 
3680
          new FieldValueMetaData(TType.BOOL)));
3522
    }});
3681
    }});
3523
 
3682
 
3524
    static {
3683
    static {
3525
      FieldMetaData.addStructMetaDataMap(getState_args.class, metaDataMap);
3684
      FieldMetaData.addStructMetaDataMap(getState_args.class, metaDataMap);
3526
    }
3685
    }
3527
 
3686
 
3528
    public getState_args() {
3687
    public getState_args() {
3529
    }
3688
    }
3530
 
3689
 
3531
    public getState_args(
3690
    public getState_args(
3532
      long userId)
3691
      long userId,
-
 
3692
      boolean isSessionId)
3533
    {
3693
    {
3534
      this();
3694
      this();
3535
      this.userId = userId;
3695
      this.userId = userId;
3536
      setUserIdIsSet(true);
3696
      setUserIdIsSet(true);
-
 
3697
      this.isSessionId = isSessionId;
-
 
3698
      setIsSessionIdIsSet(true);
3537
    }
3699
    }
3538
 
3700
 
3539
    /**
3701
    /**
3540
     * Performs a deep copy on <i>other</i>.
3702
     * Performs a deep copy on <i>other</i>.
3541
     */
3703
     */
3542
    public getState_args(getState_args other) {
3704
    public getState_args(getState_args other) {
3543
      __isset_bit_vector.clear();
3705
      __isset_bit_vector.clear();
3544
      __isset_bit_vector.or(other.__isset_bit_vector);
3706
      __isset_bit_vector.or(other.__isset_bit_vector);
3545
      this.userId = other.userId;
3707
      this.userId = other.userId;
-
 
3708
      this.isSessionId = other.isSessionId;
3546
    }
3709
    }
3547
 
3710
 
3548
    public getState_args deepCopy() {
3711
    public getState_args deepCopy() {
3549
      return new getState_args(this);
3712
      return new getState_args(this);
3550
    }
3713
    }
Line 3575... Line 3738...
3575
 
3738
 
3576
    public void setUserIdIsSet(boolean value) {
3739
    public void setUserIdIsSet(boolean value) {
3577
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
3740
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
3578
    }
3741
    }
3579
 
3742
 
-
 
3743
    public boolean isIsSessionId() {
-
 
3744
      return this.isSessionId;
-
 
3745
    }
-
 
3746
 
-
 
3747
    public getState_args setIsSessionId(boolean isSessionId) {
-
 
3748
      this.isSessionId = isSessionId;
-
 
3749
      setIsSessionIdIsSet(true);
-
 
3750
      return this;
-
 
3751
    }
-
 
3752
 
-
 
3753
    public void unsetIsSessionId() {
-
 
3754
      __isset_bit_vector.clear(__ISSESSIONID_ISSET_ID);
-
 
3755
    }
-
 
3756
 
-
 
3757
    /** Returns true if field isSessionId is set (has been asigned a value) and false otherwise */
-
 
3758
    public boolean isSetIsSessionId() {
-
 
3759
      return __isset_bit_vector.get(__ISSESSIONID_ISSET_ID);
-
 
3760
    }
-
 
3761
 
-
 
3762
    public void setIsSessionIdIsSet(boolean value) {
-
 
3763
      __isset_bit_vector.set(__ISSESSIONID_ISSET_ID, value);
-
 
3764
    }
-
 
3765
 
3580
    public void setFieldValue(_Fields field, Object value) {
3766
    public void setFieldValue(_Fields field, Object value) {
3581
      switch (field) {
3767
      switch (field) {
3582
      case USER_ID:
3768
      case USER_ID:
3583
        if (value == null) {
3769
        if (value == null) {
3584
          unsetUserId();
3770
          unsetUserId();
3585
        } else {
3771
        } else {
3586
          setUserId((Long)value);
3772
          setUserId((Long)value);
3587
        }
3773
        }
3588
        break;
3774
        break;
3589
 
3775
 
-
 
3776
      case IS_SESSION_ID:
-
 
3777
        if (value == null) {
-
 
3778
          unsetIsSessionId();
-
 
3779
        } else {
-
 
3780
          setIsSessionId((Boolean)value);
-
 
3781
        }
-
 
3782
        break;
-
 
3783
 
3590
      }
3784
      }
3591
    }
3785
    }
3592
 
3786
 
3593
    public void setFieldValue(int fieldID, Object value) {
3787
    public void setFieldValue(int fieldID, Object value) {
3594
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
3788
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 3597... Line 3791...
3597
    public Object getFieldValue(_Fields field) {
3791
    public Object getFieldValue(_Fields field) {
3598
      switch (field) {
3792
      switch (field) {
3599
      case USER_ID:
3793
      case USER_ID:
3600
        return new Long(getUserId());
3794
        return new Long(getUserId());
3601
 
3795
 
-
 
3796
      case IS_SESSION_ID:
-
 
3797
        return new Boolean(isIsSessionId());
-
 
3798
 
3602
      }
3799
      }
3603
      throw new IllegalStateException();
3800
      throw new IllegalStateException();
3604
    }
3801
    }
3605
 
3802
 
3606
    public Object getFieldValue(int fieldId) {
3803
    public Object getFieldValue(int fieldId) {
Line 3610... Line 3807...
3610
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3807
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3611
    public boolean isSet(_Fields field) {
3808
    public boolean isSet(_Fields field) {
3612
      switch (field) {
3809
      switch (field) {
3613
      case USER_ID:
3810
      case USER_ID:
3614
        return isSetUserId();
3811
        return isSetUserId();
-
 
3812
      case IS_SESSION_ID:
-
 
3813
        return isSetIsSessionId();
3615
      }
3814
      }
3616
      throw new IllegalStateException();
3815
      throw new IllegalStateException();
3617
    }
3816
    }
3618
 
3817
 
3619
    public boolean isSet(int fieldID) {
3818
    public boolean isSet(int fieldID) {
Line 3640... Line 3839...
3640
          return false;
3839
          return false;
3641
        if (this.userId != that.userId)
3840
        if (this.userId != that.userId)
3642
          return false;
3841
          return false;
3643
      }
3842
      }
3644
 
3843
 
-
 
3844
      boolean this_present_isSessionId = true;
-
 
3845
      boolean that_present_isSessionId = true;
-
 
3846
      if (this_present_isSessionId || that_present_isSessionId) {
-
 
3847
        if (!(this_present_isSessionId && that_present_isSessionId))
-
 
3848
          return false;
-
 
3849
        if (this.isSessionId != that.isSessionId)
-
 
3850
          return false;
-
 
3851
      }
-
 
3852
 
3645
      return true;
3853
      return true;
3646
    }
3854
    }
3647
 
3855
 
3648
    @Override
3856
    @Override
3649
    public int hashCode() {
3857
    public int hashCode() {
Line 3664... Line 3872...
3664
      }
3872
      }
3665
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
3873
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
3666
      if (lastComparison != 0) {
3874
      if (lastComparison != 0) {
3667
        return lastComparison;
3875
        return lastComparison;
3668
      }
3876
      }
-
 
3877
      lastComparison = Boolean.valueOf(isSetIsSessionId()).compareTo(isSetIsSessionId());
-
 
3878
      if (lastComparison != 0) {
-
 
3879
        return lastComparison;
-
 
3880
      }
-
 
3881
      lastComparison = TBaseHelper.compareTo(isSessionId, typedOther.isSessionId);
-
 
3882
      if (lastComparison != 0) {
-
 
3883
        return lastComparison;
-
 
3884
      }
3669
      return 0;
3885
      return 0;
3670
    }
3886
    }
3671
 
3887
 
3672
    public void read(TProtocol iprot) throws TException {
3888
    public void read(TProtocol iprot) throws TException {
3673
      TField field;
3889
      TField field;
Line 3689... Line 3905...
3689
                setUserIdIsSet(true);
3905
                setUserIdIsSet(true);
3690
              } else { 
3906
              } else { 
3691
                TProtocolUtil.skip(iprot, field.type);
3907
                TProtocolUtil.skip(iprot, field.type);
3692
              }
3908
              }
3693
              break;
3909
              break;
-
 
3910
            case IS_SESSION_ID:
-
 
3911
              if (field.type == TType.BOOL) {
-
 
3912
                this.isSessionId = iprot.readBool();
-
 
3913
                setIsSessionIdIsSet(true);
-
 
3914
              } else { 
-
 
3915
                TProtocolUtil.skip(iprot, field.type);
-
 
3916
              }
-
 
3917
              break;
3694
          }
3918
          }
3695
          iprot.readFieldEnd();
3919
          iprot.readFieldEnd();
3696
        }
3920
        }
3697
      }
3921
      }
3698
      iprot.readStructEnd();
3922
      iprot.readStructEnd();
Line 3704... Line 3928...
3704
 
3928
 
3705
      oprot.writeStructBegin(STRUCT_DESC);
3929
      oprot.writeStructBegin(STRUCT_DESC);
3706
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
3930
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
3707
      oprot.writeI64(this.userId);
3931
      oprot.writeI64(this.userId);
3708
      oprot.writeFieldEnd();
3932
      oprot.writeFieldEnd();
-
 
3933
      oprot.writeFieldBegin(IS_SESSION_ID_FIELD_DESC);
-
 
3934
      oprot.writeBool(this.isSessionId);
-
 
3935
      oprot.writeFieldEnd();
3709
      oprot.writeFieldStop();
3936
      oprot.writeFieldStop();
3710
      oprot.writeStructEnd();
3937
      oprot.writeStructEnd();
3711
    }
3938
    }
3712
 
3939
 
3713
    @Override
3940
    @Override
Line 3716... Line 3943...
3716
      boolean first = true;
3943
      boolean first = true;
3717
 
3944
 
3718
      sb.append("userId:");
3945
      sb.append("userId:");
3719
      sb.append(this.userId);
3946
      sb.append(this.userId);
3720
      first = false;
3947
      first = false;
-
 
3948
      if (!first) sb.append(", ");
-
 
3949
      sb.append("isSessionId:");
-
 
3950
      sb.append(this.isSessionId);
-
 
3951
      first = false;
3721
      sb.append(")");
3952
      sb.append(")");
3722
      return sb.toString();
3953
      return sb.toString();
3723
    }
3954
    }
3724
 
3955
 
3725
    public void validate() throws TException {
3956
    public void validate() throws TException {
3726
      // check for required fields
3957
      // check for required fields
3727
    }
3958
    }
3728
 
3959
 
3729
  }
3960
  }
3730
 
3961
 
3731
  public static class getState_result implements TBase<getState_result._Fields>, java.io.Serializable, Cloneable   {
3962
  public static class getState_result implements TBase<getState_result._Fields>, java.io.Serializable, Cloneable, Comparable<getState_result>   {
3732
    private static final TStruct STRUCT_DESC = new TStruct("getState_result");
3963
    private static final TStruct STRUCT_DESC = new TStruct("getState_result");
3733
 
3964
 
3734
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3965
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3735
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
3966
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
3736
 
3967
 
3737
    private TUserState success;
3968
    private UserState success;
3738
    private UserContextException ucx;
3969
    private UserContextException ucx;
3739
 
3970
 
3740
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3971
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3741
    public enum _Fields implements TFieldIdEnum {
3972
    public enum _Fields implements TFieldIdEnum {
3742
      SUCCESS((short)0, "success"),
3973
      SUCCESS((short)0, "success"),
Line 3795... Line 4026...
3795
 
4026
 
3796
    // isset id assignments
4027
    // isset id assignments
3797
 
4028
 
3798
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4029
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3799
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
4030
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
3800
          new StructMetaData(TType.STRUCT, TUserState.class)));
4031
          new StructMetaData(TType.STRUCT, UserState.class)));
3801
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
4032
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
3802
          new FieldValueMetaData(TType.STRUCT)));
4033
          new FieldValueMetaData(TType.STRUCT)));
3803
    }});
4034
    }});
3804
 
4035
 
3805
    static {
4036
    static {
Line 3808... Line 4039...
3808
 
4039
 
3809
    public getState_result() {
4040
    public getState_result() {
3810
    }
4041
    }
3811
 
4042
 
3812
    public getState_result(
4043
    public getState_result(
3813
      TUserState success,
4044
      UserState success,
3814
      UserContextException ucx)
4045
      UserContextException ucx)
3815
    {
4046
    {
3816
      this();
4047
      this();
3817
      this.success = success;
4048
      this.success = success;
3818
      this.ucx = ucx;
4049
      this.ucx = ucx;
Line 3821... Line 4052...
3821
    /**
4052
    /**
3822
     * Performs a deep copy on <i>other</i>.
4053
     * Performs a deep copy on <i>other</i>.
3823
     */
4054
     */
3824
    public getState_result(getState_result other) {
4055
    public getState_result(getState_result other) {
3825
      if (other.isSetSuccess()) {
4056
      if (other.isSetSuccess()) {
3826
        this.success = new TUserState(other.success);
4057
        this.success = new UserState(other.success);
3827
      }
4058
      }
3828
      if (other.isSetUcx()) {
4059
      if (other.isSetUcx()) {
3829
        this.ucx = new UserContextException(other.ucx);
4060
        this.ucx = new UserContextException(other.ucx);
3830
      }
4061
      }
3831
    }
4062
    }
Line 3837... Line 4068...
3837
    @Deprecated
4068
    @Deprecated
3838
    public getState_result clone() {
4069
    public getState_result clone() {
3839
      return new getState_result(this);
4070
      return new getState_result(this);
3840
    }
4071
    }
3841
 
4072
 
3842
    public TUserState getSuccess() {
4073
    public UserState getSuccess() {
3843
      return this.success;
4074
      return this.success;
3844
    }
4075
    }
3845
 
4076
 
3846
    public getState_result setSuccess(TUserState success) {
4077
    public getState_result setSuccess(UserState success) {
3847
      this.success = success;
4078
      this.success = success;
3848
      return this;
4079
      return this;
3849
    }
4080
    }
3850
 
4081
 
3851
    public void unsetSuccess() {
4082
    public void unsetSuccess() {
Line 3891... Line 4122...
3891
      switch (field) {
4122
      switch (field) {
3892
      case SUCCESS:
4123
      case SUCCESS:
3893
        if (value == null) {
4124
        if (value == null) {
3894
          unsetSuccess();
4125
          unsetSuccess();
3895
        } else {
4126
        } else {
3896
          setSuccess((TUserState)value);
4127
          setSuccess((UserState)value);
3897
        }
4128
        }
3898
        break;
4129
        break;
3899
 
4130
 
3900
      case UCX:
4131
      case UCX:
3901
        if (value == null) {
4132
        if (value == null) {
Line 3980... Line 4211...
3980
    @Override
4211
    @Override
3981
    public int hashCode() {
4212
    public int hashCode() {
3982
      return 0;
4213
      return 0;
3983
    }
4214
    }
3984
 
4215
 
-
 
4216
    public int compareTo(getState_result other) {
-
 
4217
      if (!getClass().equals(other.getClass())) {
-
 
4218
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4219
      }
-
 
4220
 
-
 
4221
      int lastComparison = 0;
-
 
4222
      getState_result typedOther = (getState_result)other;
-
 
4223
 
-
 
4224
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
4225
      if (lastComparison != 0) {
-
 
4226
        return lastComparison;
-
 
4227
      }
-
 
4228
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
4229
      if (lastComparison != 0) {
-
 
4230
        return lastComparison;
-
 
4231
      }
-
 
4232
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(isSetUcx());
-
 
4233
      if (lastComparison != 0) {
-
 
4234
        return lastComparison;
-
 
4235
      }
-
 
4236
      lastComparison = TBaseHelper.compareTo(ucx, typedOther.ucx);
-
 
4237
      if (lastComparison != 0) {
-
 
4238
        return lastComparison;
-
 
4239
      }
-
 
4240
      return 0;
-
 
4241
    }
-
 
4242
 
3985
    public void read(TProtocol iprot) throws TException {
4243
    public void read(TProtocol iprot) throws TException {
3986
      TField field;
4244
      TField field;
3987
      iprot.readStructBegin();
4245
      iprot.readStructBegin();
3988
      while (true)
4246
      while (true)
3989
      {
4247
      {
Line 3996... Line 4254...
3996
          TProtocolUtil.skip(iprot, field.type);
4254
          TProtocolUtil.skip(iprot, field.type);
3997
        } else {
4255
        } else {
3998
          switch (fieldId) {
4256
          switch (fieldId) {
3999
            case SUCCESS:
4257
            case SUCCESS:
4000
              if (field.type == TType.STRUCT) {
4258
              if (field.type == TType.STRUCT) {
4001
                this.success = new TUserState();
4259
                this.success = new UserState();
4002
                this.success.read(iprot);
4260
                this.success.read(iprot);
4003
              } else { 
4261
              } else { 
4004
                TProtocolUtil.skip(iprot, field.type);
4262
                TProtocolUtil.skip(iprot, field.type);
4005
              }
4263
              }
4006
              break;
4264
              break;
Line 4068... Line 4326...
4068
 
4326
 
4069
  public static class getPrimaryInfo_args implements TBase<getPrimaryInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPrimaryInfo_args>   {
4327
  public static class getPrimaryInfo_args implements TBase<getPrimaryInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPrimaryInfo_args>   {
4070
    private static final TStruct STRUCT_DESC = new TStruct("getPrimaryInfo_args");
4328
    private static final TStruct STRUCT_DESC = new TStruct("getPrimaryInfo_args");
4071
 
4329
 
4072
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
4330
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
4331
    private static final TField IS_SESSION_ID_FIELD_DESC = new TField("isSessionId", TType.BOOL, (short)2);
4073
 
4332
 
4074
    private long userId;
4333
    private long userId;
-
 
4334
    private boolean isSessionId;
4075
 
4335
 
4076
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4336
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4077
    public enum _Fields implements TFieldIdEnum {
4337
    public enum _Fields implements TFieldIdEnum {
4078
      USER_ID((short)1, "userId");
4338
      USER_ID((short)1, "userId"),
-
 
4339
      IS_SESSION_ID((short)2, "isSessionId");
4079
 
4340
 
4080
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
4341
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
4081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4342
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4082
 
4343
 
4083
      static {
4344
      static {
Line 4128... Line 4389...
4128
      }
4389
      }
4129
    }
4390
    }
4130
 
4391
 
4131
    // isset id assignments
4392
    // isset id assignments
4132
    private static final int __USERID_ISSET_ID = 0;
4393
    private static final int __USERID_ISSET_ID = 0;
-
 
4394
    private static final int __ISSESSIONID_ISSET_ID = 1;
4133
    private BitSet __isset_bit_vector = new BitSet(1);
4395
    private BitSet __isset_bit_vector = new BitSet(2);
4134
 
4396
 
4135
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4397
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4136
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
4398
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
4137
          new FieldValueMetaData(TType.I64)));
4399
          new FieldValueMetaData(TType.I64)));
-
 
4400
      put(_Fields.IS_SESSION_ID, new FieldMetaData("isSessionId", TFieldRequirementType.DEFAULT, 
-
 
4401
          new FieldValueMetaData(TType.BOOL)));
4138
    }});
4402
    }});
4139
 
4403
 
4140
    static {
4404
    static {
4141
      FieldMetaData.addStructMetaDataMap(getPrimaryInfo_args.class, metaDataMap);
4405
      FieldMetaData.addStructMetaDataMap(getPrimaryInfo_args.class, metaDataMap);
4142
    }
4406
    }
4143
 
4407
 
4144
    public getPrimaryInfo_args() {
4408
    public getPrimaryInfo_args() {
4145
    }
4409
    }
4146
 
4410
 
4147
    public getPrimaryInfo_args(
4411
    public getPrimaryInfo_args(
4148
      long userId)
4412
      long userId,
-
 
4413
      boolean isSessionId)
4149
    {
4414
    {
4150
      this();
4415
      this();
4151
      this.userId = userId;
4416
      this.userId = userId;
4152
      setUserIdIsSet(true);
4417
      setUserIdIsSet(true);
-
 
4418
      this.isSessionId = isSessionId;
-
 
4419
      setIsSessionIdIsSet(true);
4153
    }
4420
    }
4154
 
4421
 
4155
    /**
4422
    /**
4156
     * Performs a deep copy on <i>other</i>.
4423
     * Performs a deep copy on <i>other</i>.
4157
     */
4424
     */
4158
    public getPrimaryInfo_args(getPrimaryInfo_args other) {
4425
    public getPrimaryInfo_args(getPrimaryInfo_args other) {
4159
      __isset_bit_vector.clear();
4426
      __isset_bit_vector.clear();
4160
      __isset_bit_vector.or(other.__isset_bit_vector);
4427
      __isset_bit_vector.or(other.__isset_bit_vector);
4161
      this.userId = other.userId;
4428
      this.userId = other.userId;
-
 
4429
      this.isSessionId = other.isSessionId;
4162
    }
4430
    }
4163
 
4431
 
4164
    public getPrimaryInfo_args deepCopy() {
4432
    public getPrimaryInfo_args deepCopy() {
4165
      return new getPrimaryInfo_args(this);
4433
      return new getPrimaryInfo_args(this);
4166
    }
4434
    }
Line 4191... Line 4459...
4191
 
4459
 
4192
    public void setUserIdIsSet(boolean value) {
4460
    public void setUserIdIsSet(boolean value) {
4193
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
4461
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
4194
    }
4462
    }
4195
 
4463
 
-
 
4464
    public boolean isIsSessionId() {
-
 
4465
      return this.isSessionId;
-
 
4466
    }
-
 
4467
 
-
 
4468
    public getPrimaryInfo_args setIsSessionId(boolean isSessionId) {
-
 
4469
      this.isSessionId = isSessionId;
-
 
4470
      setIsSessionIdIsSet(true);
-
 
4471
      return this;
-
 
4472
    }
-
 
4473
 
-
 
4474
    public void unsetIsSessionId() {
-
 
4475
      __isset_bit_vector.clear(__ISSESSIONID_ISSET_ID);
-
 
4476
    }
-
 
4477
 
-
 
4478
    /** Returns true if field isSessionId is set (has been asigned a value) and false otherwise */
-
 
4479
    public boolean isSetIsSessionId() {
-
 
4480
      return __isset_bit_vector.get(__ISSESSIONID_ISSET_ID);
-
 
4481
    }
-
 
4482
 
-
 
4483
    public void setIsSessionIdIsSet(boolean value) {
-
 
4484
      __isset_bit_vector.set(__ISSESSIONID_ISSET_ID, value);
-
 
4485
    }
-
 
4486
 
4196
    public void setFieldValue(_Fields field, Object value) {
4487
    public void setFieldValue(_Fields field, Object value) {
4197
      switch (field) {
4488
      switch (field) {
4198
      case USER_ID:
4489
      case USER_ID:
4199
        if (value == null) {
4490
        if (value == null) {
4200
          unsetUserId();
4491
          unsetUserId();
4201
        } else {
4492
        } else {
4202
          setUserId((Long)value);
4493
          setUserId((Long)value);
4203
        }
4494
        }
4204
        break;
4495
        break;
4205
 
4496
 
-
 
4497
      case IS_SESSION_ID:
-
 
4498
        if (value == null) {
-
 
4499
          unsetIsSessionId();
-
 
4500
        } else {
-
 
4501
          setIsSessionId((Boolean)value);
-
 
4502
        }
-
 
4503
        break;
-
 
4504
 
4206
      }
4505
      }
4207
    }
4506
    }
4208
 
4507
 
4209
    public void setFieldValue(int fieldID, Object value) {
4508
    public void setFieldValue(int fieldID, Object value) {
4210
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
4509
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 4213... Line 4512...
4213
    public Object getFieldValue(_Fields field) {
4512
    public Object getFieldValue(_Fields field) {
4214
      switch (field) {
4513
      switch (field) {
4215
      case USER_ID:
4514
      case USER_ID:
4216
        return new Long(getUserId());
4515
        return new Long(getUserId());
4217
 
4516
 
-
 
4517
      case IS_SESSION_ID:
-
 
4518
        return new Boolean(isIsSessionId());
-
 
4519
 
4218
      }
4520
      }
4219
      throw new IllegalStateException();
4521
      throw new IllegalStateException();
4220
    }
4522
    }
4221
 
4523
 
4222
    public Object getFieldValue(int fieldId) {
4524
    public Object getFieldValue(int fieldId) {
Line 4226... Line 4528...
4226
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4528
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4227
    public boolean isSet(_Fields field) {
4529
    public boolean isSet(_Fields field) {
4228
      switch (field) {
4530
      switch (field) {
4229
      case USER_ID:
4531
      case USER_ID:
4230
        return isSetUserId();
4532
        return isSetUserId();
-
 
4533
      case IS_SESSION_ID:
-
 
4534
        return isSetIsSessionId();
4231
      }
4535
      }
4232
      throw new IllegalStateException();
4536
      throw new IllegalStateException();
4233
    }
4537
    }
4234
 
4538
 
4235
    public boolean isSet(int fieldID) {
4539
    public boolean isSet(int fieldID) {
Line 4256... Line 4560...
4256
          return false;
4560
          return false;
4257
        if (this.userId != that.userId)
4561
        if (this.userId != that.userId)
4258
          return false;
4562
          return false;
4259
      }
4563
      }
4260
 
4564
 
-
 
4565
      boolean this_present_isSessionId = true;
-
 
4566
      boolean that_present_isSessionId = true;
-
 
4567
      if (this_present_isSessionId || that_present_isSessionId) {
-
 
4568
        if (!(this_present_isSessionId && that_present_isSessionId))
-
 
4569
          return false;
-
 
4570
        if (this.isSessionId != that.isSessionId)
-
 
4571
          return false;
-
 
4572
      }
-
 
4573
 
4261
      return true;
4574
      return true;
4262
    }
4575
    }
4263
 
4576
 
4264
    @Override
4577
    @Override
4265
    public int hashCode() {
4578
    public int hashCode() {
Line 4280... Line 4593...
4280
      }
4593
      }
4281
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
4594
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
4282
      if (lastComparison != 0) {
4595
      if (lastComparison != 0) {
4283
        return lastComparison;
4596
        return lastComparison;
4284
      }
4597
      }
-
 
4598
      lastComparison = Boolean.valueOf(isSetIsSessionId()).compareTo(isSetIsSessionId());
-
 
4599
      if (lastComparison != 0) {
-
 
4600
        return lastComparison;
-
 
4601
      }
-
 
4602
      lastComparison = TBaseHelper.compareTo(isSessionId, typedOther.isSessionId);
-
 
4603
      if (lastComparison != 0) {
-
 
4604
        return lastComparison;
-
 
4605
      }
4285
      return 0;
4606
      return 0;
4286
    }
4607
    }
4287
 
4608
 
4288
    public void read(TProtocol iprot) throws TException {
4609
    public void read(TProtocol iprot) throws TException {
4289
      TField field;
4610
      TField field;
Line 4305... Line 4626...
4305
                setUserIdIsSet(true);
4626
                setUserIdIsSet(true);
4306
              } else { 
4627
              } else { 
4307
                TProtocolUtil.skip(iprot, field.type);
4628
                TProtocolUtil.skip(iprot, field.type);
4308
              }
4629
              }
4309
              break;
4630
              break;
-
 
4631
            case IS_SESSION_ID:
-
 
4632
              if (field.type == TType.BOOL) {
-
 
4633
                this.isSessionId = iprot.readBool();
-
 
4634
                setIsSessionIdIsSet(true);
-
 
4635
              } else { 
-
 
4636
                TProtocolUtil.skip(iprot, field.type);
-
 
4637
              }
-
 
4638
              break;
4310
          }
4639
          }
4311
          iprot.readFieldEnd();
4640
          iprot.readFieldEnd();
4312
        }
4641
        }
4313
      }
4642
      }
4314
      iprot.readStructEnd();
4643
      iprot.readStructEnd();
Line 4320... Line 4649...
4320
 
4649
 
4321
      oprot.writeStructBegin(STRUCT_DESC);
4650
      oprot.writeStructBegin(STRUCT_DESC);
4322
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
4651
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
4323
      oprot.writeI64(this.userId);
4652
      oprot.writeI64(this.userId);
4324
      oprot.writeFieldEnd();
4653
      oprot.writeFieldEnd();
-
 
4654
      oprot.writeFieldBegin(IS_SESSION_ID_FIELD_DESC);
-
 
4655
      oprot.writeBool(this.isSessionId);
-
 
4656
      oprot.writeFieldEnd();
4325
      oprot.writeFieldStop();
4657
      oprot.writeFieldStop();
4326
      oprot.writeStructEnd();
4658
      oprot.writeStructEnd();
4327
    }
4659
    }
4328
 
4660
 
4329
    @Override
4661
    @Override
Line 4332... Line 4664...
4332
      boolean first = true;
4664
      boolean first = true;
4333
 
4665
 
4334
      sb.append("userId:");
4666
      sb.append("userId:");
4335
      sb.append(this.userId);
4667
      sb.append(this.userId);
4336
      first = false;
4668
      first = false;
-
 
4669
      if (!first) sb.append(", ");
-
 
4670
      sb.append("isSessionId:");
-
 
4671
      sb.append(this.isSessionId);
-
 
4672
      first = false;
4337
      sb.append(")");
4673
      sb.append(")");
4338
      return sb.toString();
4674
      return sb.toString();
4339
    }
4675
    }
4340
 
4676
 
4341
    public void validate() throws TException {
4677
    public void validate() throws TException {
Line 4348... Line 4684...
4348
    private static final TStruct STRUCT_DESC = new TStruct("getPrimaryInfo_result");
4684
    private static final TStruct STRUCT_DESC = new TStruct("getPrimaryInfo_result");
4349
 
4685
 
4350
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
4686
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
4351
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
4687
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
4352
 
4688
 
4353
    private TUserPrimaryInfo success;
4689
    private UserPrimaryInfo success;
4354
    private UserContextException ucx;
4690
    private UserContextException ucx;
4355
 
4691
 
4356
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4357
    public enum _Fields implements TFieldIdEnum {
4693
    public enum _Fields implements TFieldIdEnum {
4358
      SUCCESS((short)0, "success"),
4694
      SUCCESS((short)0, "success"),
Line 4411... Line 4747...
4411
 
4747
 
4412
    // isset id assignments
4748
    // isset id assignments
4413
 
4749
 
4414
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4750
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4415
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
4751
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
4416
          new StructMetaData(TType.STRUCT, TUserPrimaryInfo.class)));
4752
          new StructMetaData(TType.STRUCT, UserPrimaryInfo.class)));
4417
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
4753
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
4418
          new FieldValueMetaData(TType.STRUCT)));
4754
          new FieldValueMetaData(TType.STRUCT)));
4419
    }});
4755
    }});
4420
 
4756
 
4421
    static {
4757
    static {
Line 4424... Line 4760...
4424
 
4760
 
4425
    public getPrimaryInfo_result() {
4761
    public getPrimaryInfo_result() {
4426
    }
4762
    }
4427
 
4763
 
4428
    public getPrimaryInfo_result(
4764
    public getPrimaryInfo_result(
4429
      TUserPrimaryInfo success,
4765
      UserPrimaryInfo success,
4430
      UserContextException ucx)
4766
      UserContextException ucx)
4431
    {
4767
    {
4432
      this();
4768
      this();
4433
      this.success = success;
4769
      this.success = success;
4434
      this.ucx = ucx;
4770
      this.ucx = ucx;
Line 4437... Line 4773...
4437
    /**
4773
    /**
4438
     * Performs a deep copy on <i>other</i>.
4774
     * Performs a deep copy on <i>other</i>.
4439
     */
4775
     */
4440
    public getPrimaryInfo_result(getPrimaryInfo_result other) {
4776
    public getPrimaryInfo_result(getPrimaryInfo_result other) {
4441
      if (other.isSetSuccess()) {
4777
      if (other.isSetSuccess()) {
4442
        this.success = new TUserPrimaryInfo(other.success);
4778
        this.success = new UserPrimaryInfo(other.success);
4443
      }
4779
      }
4444
      if (other.isSetUcx()) {
4780
      if (other.isSetUcx()) {
4445
        this.ucx = new UserContextException(other.ucx);
4781
        this.ucx = new UserContextException(other.ucx);
4446
      }
4782
      }
4447
    }
4783
    }
Line 4453... Line 4789...
4453
    @Deprecated
4789
    @Deprecated
4454
    public getPrimaryInfo_result clone() {
4790
    public getPrimaryInfo_result clone() {
4455
      return new getPrimaryInfo_result(this);
4791
      return new getPrimaryInfo_result(this);
4456
    }
4792
    }
4457
 
4793
 
4458
    public TUserPrimaryInfo getSuccess() {
4794
    public UserPrimaryInfo getSuccess() {
4459
      return this.success;
4795
      return this.success;
4460
    }
4796
    }
4461
 
4797
 
4462
    public getPrimaryInfo_result setSuccess(TUserPrimaryInfo success) {
4798
    public getPrimaryInfo_result setSuccess(UserPrimaryInfo success) {
4463
      this.success = success;
4799
      this.success = success;
4464
      return this;
4800
      return this;
4465
    }
4801
    }
4466
 
4802
 
4467
    public void unsetSuccess() {
4803
    public void unsetSuccess() {
Line 4507... Line 4843...
4507
      switch (field) {
4843
      switch (field) {
4508
      case SUCCESS:
4844
      case SUCCESS:
4509
        if (value == null) {
4845
        if (value == null) {
4510
          unsetSuccess();
4846
          unsetSuccess();
4511
        } else {
4847
        } else {
4512
          setSuccess((TUserPrimaryInfo)value);
4848
          setSuccess((UserPrimaryInfo)value);
4513
        }
4849
        }
4514
        break;
4850
        break;
4515
 
4851
 
4516
      case UCX:
4852
      case UCX:
4517
        if (value == null) {
4853
        if (value == null) {
Line 4612... Line 4948...
4612
          TProtocolUtil.skip(iprot, field.type);
4948
          TProtocolUtil.skip(iprot, field.type);
4613
        } else {
4949
        } else {
4614
          switch (fieldId) {
4950
          switch (fieldId) {
4615
            case SUCCESS:
4951
            case SUCCESS:
4616
              if (field.type == TType.STRUCT) {
4952
              if (field.type == TType.STRUCT) {
4617
                this.success = new TUserPrimaryInfo();
4953
                this.success = new UserPrimaryInfo();
4618
                this.success.read(iprot);
4954
                this.success.read(iprot);
4619
              } else { 
4955
              } else { 
4620
                TProtocolUtil.skip(iprot, field.type);
4956
                TProtocolUtil.skip(iprot, field.type);
4621
              }
4957
              }
4622
              break;
4958
              break;
Line 4684... Line 5020...
4684
 
5020
 
4685
  public static class getInternalInfo_args implements TBase<getInternalInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getInternalInfo_args>   {
5021
  public static class getInternalInfo_args implements TBase<getInternalInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getInternalInfo_args>   {
4686
    private static final TStruct STRUCT_DESC = new TStruct("getInternalInfo_args");
5022
    private static final TStruct STRUCT_DESC = new TStruct("getInternalInfo_args");
4687
 
5023
 
4688
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
5024
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
5025
    private static final TField IS_SESSION_ID_FIELD_DESC = new TField("isSessionId", TType.BOOL, (short)2);
4689
 
5026
 
4690
    private long userId;
5027
    private long userId;
-
 
5028
    private boolean isSessionId;
4691
 
5029
 
4692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5030
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4693
    public enum _Fields implements TFieldIdEnum {
5031
    public enum _Fields implements TFieldIdEnum {
4694
      USER_ID((short)1, "userId");
5032
      USER_ID((short)1, "userId"),
-
 
5033
      IS_SESSION_ID((short)2, "isSessionId");
4695
 
5034
 
4696
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
5035
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
4697
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5036
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4698
 
5037
 
4699
      static {
5038
      static {
Line 4744... Line 5083...
4744
      }
5083
      }
4745
    }
5084
    }
4746
 
5085
 
4747
    // isset id assignments
5086
    // isset id assignments
4748
    private static final int __USERID_ISSET_ID = 0;
5087
    private static final int __USERID_ISSET_ID = 0;
-
 
5088
    private static final int __ISSESSIONID_ISSET_ID = 1;
4749
    private BitSet __isset_bit_vector = new BitSet(1);
5089
    private BitSet __isset_bit_vector = new BitSet(2);
4750
 
5090
 
4751
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5091
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4752
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
5092
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
4753
          new FieldValueMetaData(TType.I64)));
5093
          new FieldValueMetaData(TType.I64)));
-
 
5094
      put(_Fields.IS_SESSION_ID, new FieldMetaData("isSessionId", TFieldRequirementType.DEFAULT, 
-
 
5095
          new FieldValueMetaData(TType.BOOL)));
4754
    }});
5096
    }});
4755
 
5097
 
4756
    static {
5098
    static {
4757
      FieldMetaData.addStructMetaDataMap(getInternalInfo_args.class, metaDataMap);
5099
      FieldMetaData.addStructMetaDataMap(getInternalInfo_args.class, metaDataMap);
4758
    }
5100
    }
4759
 
5101
 
4760
    public getInternalInfo_args() {
5102
    public getInternalInfo_args() {
4761
    }
5103
    }
4762
 
5104
 
4763
    public getInternalInfo_args(
5105
    public getInternalInfo_args(
4764
      long userId)
5106
      long userId,
-
 
5107
      boolean isSessionId)
4765
    {
5108
    {
4766
      this();
5109
      this();
4767
      this.userId = userId;
5110
      this.userId = userId;
4768
      setUserIdIsSet(true);
5111
      setUserIdIsSet(true);
-
 
5112
      this.isSessionId = isSessionId;
-
 
5113
      setIsSessionIdIsSet(true);
4769
    }
5114
    }
4770
 
5115
 
4771
    /**
5116
    /**
4772
     * Performs a deep copy on <i>other</i>.
5117
     * Performs a deep copy on <i>other</i>.
4773
     */
5118
     */
4774
    public getInternalInfo_args(getInternalInfo_args other) {
5119
    public getInternalInfo_args(getInternalInfo_args other) {
4775
      __isset_bit_vector.clear();
5120
      __isset_bit_vector.clear();
4776
      __isset_bit_vector.or(other.__isset_bit_vector);
5121
      __isset_bit_vector.or(other.__isset_bit_vector);
4777
      this.userId = other.userId;
5122
      this.userId = other.userId;
-
 
5123
      this.isSessionId = other.isSessionId;
4778
    }
5124
    }
4779
 
5125
 
4780
    public getInternalInfo_args deepCopy() {
5126
    public getInternalInfo_args deepCopy() {
4781
      return new getInternalInfo_args(this);
5127
      return new getInternalInfo_args(this);
4782
    }
5128
    }
Line 4807... Line 5153...
4807
 
5153
 
4808
    public void setUserIdIsSet(boolean value) {
5154
    public void setUserIdIsSet(boolean value) {
4809
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
5155
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
4810
    }
5156
    }
4811
 
5157
 
-
 
5158
    public boolean isIsSessionId() {
-
 
5159
      return this.isSessionId;
-
 
5160
    }
-
 
5161
 
-
 
5162
    public getInternalInfo_args setIsSessionId(boolean isSessionId) {
-
 
5163
      this.isSessionId = isSessionId;
-
 
5164
      setIsSessionIdIsSet(true);
-
 
5165
      return this;
-
 
5166
    }
-
 
5167
 
-
 
5168
    public void unsetIsSessionId() {
-
 
5169
      __isset_bit_vector.clear(__ISSESSIONID_ISSET_ID);
-
 
5170
    }
-
 
5171
 
-
 
5172
    /** Returns true if field isSessionId is set (has been asigned a value) and false otherwise */
-
 
5173
    public boolean isSetIsSessionId() {
-
 
5174
      return __isset_bit_vector.get(__ISSESSIONID_ISSET_ID);
-
 
5175
    }
-
 
5176
 
-
 
5177
    public void setIsSessionIdIsSet(boolean value) {
-
 
5178
      __isset_bit_vector.set(__ISSESSIONID_ISSET_ID, value);
-
 
5179
    }
-
 
5180
 
4812
    public void setFieldValue(_Fields field, Object value) {
5181
    public void setFieldValue(_Fields field, Object value) {
4813
      switch (field) {
5182
      switch (field) {
4814
      case USER_ID:
5183
      case USER_ID:
4815
        if (value == null) {
5184
        if (value == null) {
4816
          unsetUserId();
5185
          unsetUserId();
4817
        } else {
5186
        } else {
4818
          setUserId((Long)value);
5187
          setUserId((Long)value);
4819
        }
5188
        }
4820
        break;
5189
        break;
4821
 
5190
 
-
 
5191
      case IS_SESSION_ID:
-
 
5192
        if (value == null) {
-
 
5193
          unsetIsSessionId();
-
 
5194
        } else {
-
 
5195
          setIsSessionId((Boolean)value);
-
 
5196
        }
-
 
5197
        break;
-
 
5198
 
4822
      }
5199
      }
4823
    }
5200
    }
4824
 
5201
 
4825
    public void setFieldValue(int fieldID, Object value) {
5202
    public void setFieldValue(int fieldID, Object value) {
4826
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
5203
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 4829... Line 5206...
4829
    public Object getFieldValue(_Fields field) {
5206
    public Object getFieldValue(_Fields field) {
4830
      switch (field) {
5207
      switch (field) {
4831
      case USER_ID:
5208
      case USER_ID:
4832
        return new Long(getUserId());
5209
        return new Long(getUserId());
4833
 
5210
 
-
 
5211
      case IS_SESSION_ID:
-
 
5212
        return new Boolean(isIsSessionId());
-
 
5213
 
4834
      }
5214
      }
4835
      throw new IllegalStateException();
5215
      throw new IllegalStateException();
4836
    }
5216
    }
4837
 
5217
 
4838
    public Object getFieldValue(int fieldId) {
5218
    public Object getFieldValue(int fieldId) {
Line 4842... Line 5222...
4842
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5222
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4843
    public boolean isSet(_Fields field) {
5223
    public boolean isSet(_Fields field) {
4844
      switch (field) {
5224
      switch (field) {
4845
      case USER_ID:
5225
      case USER_ID:
4846
        return isSetUserId();
5226
        return isSetUserId();
-
 
5227
      case IS_SESSION_ID:
-
 
5228
        return isSetIsSessionId();
4847
      }
5229
      }
4848
      throw new IllegalStateException();
5230
      throw new IllegalStateException();
4849
    }
5231
    }
4850
 
5232
 
4851
    public boolean isSet(int fieldID) {
5233
    public boolean isSet(int fieldID) {
Line 4872... Line 5254...
4872
          return false;
5254
          return false;
4873
        if (this.userId != that.userId)
5255
        if (this.userId != that.userId)
4874
          return false;
5256
          return false;
4875
      }
5257
      }
4876
 
5258
 
-
 
5259
      boolean this_present_isSessionId = true;
-
 
5260
      boolean that_present_isSessionId = true;
-
 
5261
      if (this_present_isSessionId || that_present_isSessionId) {
-
 
5262
        if (!(this_present_isSessionId && that_present_isSessionId))
-
 
5263
          return false;
-
 
5264
        if (this.isSessionId != that.isSessionId)
-
 
5265
          return false;
-
 
5266
      }
-
 
5267
 
4877
      return true;
5268
      return true;
4878
    }
5269
    }
4879
 
5270
 
4880
    @Override
5271
    @Override
4881
    public int hashCode() {
5272
    public int hashCode() {
Line 4896... Line 5287...
4896
      }
5287
      }
4897
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
5288
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
4898
      if (lastComparison != 0) {
5289
      if (lastComparison != 0) {
4899
        return lastComparison;
5290
        return lastComparison;
4900
      }
5291
      }
-
 
5292
      lastComparison = Boolean.valueOf(isSetIsSessionId()).compareTo(isSetIsSessionId());
-
 
5293
      if (lastComparison != 0) {
-
 
5294
        return lastComparison;
-
 
5295
      }
-
 
5296
      lastComparison = TBaseHelper.compareTo(isSessionId, typedOther.isSessionId);
-
 
5297
      if (lastComparison != 0) {
-
 
5298
        return lastComparison;
-
 
5299
      }
4901
      return 0;
5300
      return 0;
4902
    }
5301
    }
4903
 
5302
 
4904
    public void read(TProtocol iprot) throws TException {
5303
    public void read(TProtocol iprot) throws TException {
4905
      TField field;
5304
      TField field;
Line 4921... Line 5320...
4921
                setUserIdIsSet(true);
5320
                setUserIdIsSet(true);
4922
              } else { 
5321
              } else { 
4923
                TProtocolUtil.skip(iprot, field.type);
5322
                TProtocolUtil.skip(iprot, field.type);
4924
              }
5323
              }
4925
              break;
5324
              break;
-
 
5325
            case IS_SESSION_ID:
-
 
5326
              if (field.type == TType.BOOL) {
-
 
5327
                this.isSessionId = iprot.readBool();
-
 
5328
                setIsSessionIdIsSet(true);
-
 
5329
              } else { 
-
 
5330
                TProtocolUtil.skip(iprot, field.type);
-
 
5331
              }
-
 
5332
              break;
4926
          }
5333
          }
4927
          iprot.readFieldEnd();
5334
          iprot.readFieldEnd();
4928
        }
5335
        }
4929
      }
5336
      }
4930
      iprot.readStructEnd();
5337
      iprot.readStructEnd();
Line 4936... Line 5343...
4936
 
5343
 
4937
      oprot.writeStructBegin(STRUCT_DESC);
5344
      oprot.writeStructBegin(STRUCT_DESC);
4938
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
5345
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
4939
      oprot.writeI64(this.userId);
5346
      oprot.writeI64(this.userId);
4940
      oprot.writeFieldEnd();
5347
      oprot.writeFieldEnd();
-
 
5348
      oprot.writeFieldBegin(IS_SESSION_ID_FIELD_DESC);
-
 
5349
      oprot.writeBool(this.isSessionId);
-
 
5350
      oprot.writeFieldEnd();
4941
      oprot.writeFieldStop();
5351
      oprot.writeFieldStop();
4942
      oprot.writeStructEnd();
5352
      oprot.writeStructEnd();
4943
    }
5353
    }
4944
 
5354
 
4945
    @Override
5355
    @Override
Line 4948... Line 5358...
4948
      boolean first = true;
5358
      boolean first = true;
4949
 
5359
 
4950
      sb.append("userId:");
5360
      sb.append("userId:");
4951
      sb.append(this.userId);
5361
      sb.append(this.userId);
4952
      first = false;
5362
      first = false;
-
 
5363
      if (!first) sb.append(", ");
-
 
5364
      sb.append("isSessionId:");
-
 
5365
      sb.append(this.isSessionId);
-
 
5366
      first = false;
4953
      sb.append(")");
5367
      sb.append(")");
4954
      return sb.toString();
5368
      return sb.toString();
4955
    }
5369
    }
4956
 
5370
 
4957
    public void validate() throws TException {
5371
    public void validate() throws TException {
Line 4964... Line 5378...
4964
    private static final TStruct STRUCT_DESC = new TStruct("getInternalInfo_result");
5378
    private static final TStruct STRUCT_DESC = new TStruct("getInternalInfo_result");
4965
 
5379
 
4966
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
5380
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
4967
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
5381
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
4968
 
5382
 
4969
    private TUserInternalInfo success;
5383
    private UserInternalInfo success;
4970
    private UserContextException ucx;
5384
    private UserContextException ucx;
4971
 
5385
 
4972
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4973
    public enum _Fields implements TFieldIdEnum {
5387
    public enum _Fields implements TFieldIdEnum {
4974
      SUCCESS((short)0, "success"),
5388
      SUCCESS((short)0, "success"),
Line 5027... Line 5441...
5027
 
5441
 
5028
    // isset id assignments
5442
    // isset id assignments
5029
 
5443
 
5030
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5444
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5031
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
5445
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
5032
          new StructMetaData(TType.STRUCT, TUserInternalInfo.class)));
5446
          new StructMetaData(TType.STRUCT, UserInternalInfo.class)));
5033
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
5447
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
5034
          new FieldValueMetaData(TType.STRUCT)));
5448
          new FieldValueMetaData(TType.STRUCT)));
5035
    }});
5449
    }});
5036
 
5450
 
5037
    static {
5451
    static {
Line 5040... Line 5454...
5040
 
5454
 
5041
    public getInternalInfo_result() {
5455
    public getInternalInfo_result() {
5042
    }
5456
    }
5043
 
5457
 
5044
    public getInternalInfo_result(
5458
    public getInternalInfo_result(
5045
      TUserInternalInfo success,
5459
      UserInternalInfo success,
5046
      UserContextException ucx)
5460
      UserContextException ucx)
5047
    {
5461
    {
5048
      this();
5462
      this();
5049
      this.success = success;
5463
      this.success = success;
5050
      this.ucx = ucx;
5464
      this.ucx = ucx;
Line 5053... Line 5467...
5053
    /**
5467
    /**
5054
     * Performs a deep copy on <i>other</i>.
5468
     * Performs a deep copy on <i>other</i>.
5055
     */
5469
     */
5056
    public getInternalInfo_result(getInternalInfo_result other) {
5470
    public getInternalInfo_result(getInternalInfo_result other) {
5057
      if (other.isSetSuccess()) {
5471
      if (other.isSetSuccess()) {
5058
        this.success = new TUserInternalInfo(other.success);
5472
        this.success = new UserInternalInfo(other.success);
5059
      }
5473
      }
5060
      if (other.isSetUcx()) {
5474
      if (other.isSetUcx()) {
5061
        this.ucx = new UserContextException(other.ucx);
5475
        this.ucx = new UserContextException(other.ucx);
5062
      }
5476
      }
5063
    }
5477
    }
Line 5069... Line 5483...
5069
    @Deprecated
5483
    @Deprecated
5070
    public getInternalInfo_result clone() {
5484
    public getInternalInfo_result clone() {
5071
      return new getInternalInfo_result(this);
5485
      return new getInternalInfo_result(this);
5072
    }
5486
    }
5073
 
5487
 
5074
    public TUserInternalInfo getSuccess() {
5488
    public UserInternalInfo getSuccess() {
5075
      return this.success;
5489
      return this.success;
5076
    }
5490
    }
5077
 
5491
 
5078
    public getInternalInfo_result setSuccess(TUserInternalInfo success) {
5492
    public getInternalInfo_result setSuccess(UserInternalInfo success) {
5079
      this.success = success;
5493
      this.success = success;
5080
      return this;
5494
      return this;
5081
    }
5495
    }
5082
 
5496
 
5083
    public void unsetSuccess() {
5497
    public void unsetSuccess() {
Line 5123... Line 5537...
5123
      switch (field) {
5537
      switch (field) {
5124
      case SUCCESS:
5538
      case SUCCESS:
5125
        if (value == null) {
5539
        if (value == null) {
5126
          unsetSuccess();
5540
          unsetSuccess();
5127
        } else {
5541
        } else {
5128
          setSuccess((TUserInternalInfo)value);
5542
          setSuccess((UserInternalInfo)value);
5129
        }
5543
        }
5130
        break;
5544
        break;
5131
 
5545
 
5132
      case UCX:
5546
      case UCX:
5133
        if (value == null) {
5547
        if (value == null) {
Line 5255... Line 5669...
5255
          TProtocolUtil.skip(iprot, field.type);
5669
          TProtocolUtil.skip(iprot, field.type);
5256
        } else {
5670
        } else {
5257
          switch (fieldId) {
5671
          switch (fieldId) {
5258
            case SUCCESS:
5672
            case SUCCESS:
5259
              if (field.type == TType.STRUCT) {
5673
              if (field.type == TType.STRUCT) {
5260
                this.success = new TUserInternalInfo();
5674
                this.success = new UserInternalInfo();
5261
                this.success.read(iprot);
5675
                this.success.read(iprot);
5262
              } else { 
5676
              } else { 
5263
                TProtocolUtil.skip(iprot, field.type);
5677
                TProtocolUtil.skip(iprot, field.type);
5264
              }
5678
              }
5265
              break;
5679
              break;
Line 5694... Line 6108...
5694
    private static final TStruct STRUCT_DESC = new TStruct("getContext_result");
6108
    private static final TStruct STRUCT_DESC = new TStruct("getContext_result");
5695
 
6109
 
5696
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
6110
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
5697
    private static final TField AX_FIELD_DESC = new TField("ax", TType.STRUCT, (short)1);
6111
    private static final TField AX_FIELD_DESC = new TField("ax", TType.STRUCT, (short)1);
5698
 
6112
 
5699
    private TUserContext success;
6113
    private UserContext success;
5700
    private AuthenticationException ax;
6114
    private AuthenticationException ax;
5701
 
6115
 
5702
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6116
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5703
    public enum _Fields implements TFieldIdEnum {
6117
    public enum _Fields implements TFieldIdEnum {
5704
      SUCCESS((short)0, "success"),
6118
      SUCCESS((short)0, "success"),
Line 5757... Line 6171...
5757
 
6171
 
5758
    // isset id assignments
6172
    // isset id assignments
5759
 
6173
 
5760
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6174
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5761
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
6175
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
5762
          new StructMetaData(TType.STRUCT, TUserContext.class)));
6176
          new StructMetaData(TType.STRUCT, UserContext.class)));
5763
      put(_Fields.AX, new FieldMetaData("ax", TFieldRequirementType.DEFAULT, 
6177
      put(_Fields.AX, new FieldMetaData("ax", TFieldRequirementType.DEFAULT, 
5764
          new FieldValueMetaData(TType.STRUCT)));
6178
          new FieldValueMetaData(TType.STRUCT)));
5765
    }});
6179
    }});
5766
 
6180
 
5767
    static {
6181
    static {
Line 5770... Line 6184...
5770
 
6184
 
5771
    public getContext_result() {
6185
    public getContext_result() {
5772
    }
6186
    }
5773
 
6187
 
5774
    public getContext_result(
6188
    public getContext_result(
5775
      TUserContext success,
6189
      UserContext success,
5776
      AuthenticationException ax)
6190
      AuthenticationException ax)
5777
    {
6191
    {
5778
      this();
6192
      this();
5779
      this.success = success;
6193
      this.success = success;
5780
      this.ax = ax;
6194
      this.ax = ax;
Line 5783... Line 6197...
5783
    /**
6197
    /**
5784
     * Performs a deep copy on <i>other</i>.
6198
     * Performs a deep copy on <i>other</i>.
5785
     */
6199
     */
5786
    public getContext_result(getContext_result other) {
6200
    public getContext_result(getContext_result other) {
5787
      if (other.isSetSuccess()) {
6201
      if (other.isSetSuccess()) {
5788
        this.success = new TUserContext(other.success);
6202
        this.success = new UserContext(other.success);
5789
      }
6203
      }
5790
      if (other.isSetAx()) {
6204
      if (other.isSetAx()) {
5791
        this.ax = new AuthenticationException(other.ax);
6205
        this.ax = new AuthenticationException(other.ax);
5792
      }
6206
      }
5793
    }
6207
    }
Line 5799... Line 6213...
5799
    @Deprecated
6213
    @Deprecated
5800
    public getContext_result clone() {
6214
    public getContext_result clone() {
5801
      return new getContext_result(this);
6215
      return new getContext_result(this);
5802
    }
6216
    }
5803
 
6217
 
5804
    public TUserContext getSuccess() {
6218
    public UserContext getSuccess() {
5805
      return this.success;
6219
      return this.success;
5806
    }
6220
    }
5807
 
6221
 
5808
    public getContext_result setSuccess(TUserContext success) {
6222
    public getContext_result setSuccess(UserContext success) {
5809
      this.success = success;
6223
      this.success = success;
5810
      return this;
6224
      return this;
5811
    }
6225
    }
5812
 
6226
 
5813
    public void unsetSuccess() {
6227
    public void unsetSuccess() {
Line 5853... Line 6267...
5853
      switch (field) {
6267
      switch (field) {
5854
      case SUCCESS:
6268
      case SUCCESS:
5855
        if (value == null) {
6269
        if (value == null) {
5856
          unsetSuccess();
6270
          unsetSuccess();
5857
        } else {
6271
        } else {
5858
          setSuccess((TUserContext)value);
6272
          setSuccess((UserContext)value);
5859
        }
6273
        }
5860
        break;
6274
        break;
5861
 
6275
 
5862
      case AX:
6276
      case AX:
5863
        if (value == null) {
6277
        if (value == null) {
Line 5958... Line 6372...
5958
          TProtocolUtil.skip(iprot, field.type);
6372
          TProtocolUtil.skip(iprot, field.type);
5959
        } else {
6373
        } else {
5960
          switch (fieldId) {
6374
          switch (fieldId) {
5961
            case SUCCESS:
6375
            case SUCCESS:
5962
              if (field.type == TType.STRUCT) {
6376
              if (field.type == TType.STRUCT) {
5963
                this.success = new TUserContext();
6377
                this.success = new UserContext();
5964
                this.success.read(iprot);
6378
                this.success.read(iprot);
5965
              } else { 
6379
              } else { 
5966
                TProtocolUtil.skip(iprot, field.type);
6380
                TProtocolUtil.skip(iprot, field.type);
5967
              }
6381
              }
5968
              break;
6382
              break;
Line 6026... Line 6440...
6026
      // check for required fields
6440
      // check for required fields
6027
    }
6441
    }
6028
 
6442
 
6029
  }
6443
  }
6030
 
6444
 
-
 
6445
  public static class authenticateUser_args implements TBase<authenticateUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_args>   {
-
 
6446
    private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_args");
-
 
6447
 
-
 
6448
    private static final TField HANDLE_FIELD_DESC = new TField("handle", TType.STRING, (short)1);
-
 
6449
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
-
 
6450
    private static final TField IS_EMAIL_FIELD_DESC = new TField("isEmail", TType.BOOL, (short)3);
-
 
6451
 
-
 
6452
    private String handle;
-
 
6453
    private String password;
-
 
6454
    private boolean isEmail;
-
 
6455
 
-
 
6456
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6457
    public enum _Fields implements TFieldIdEnum {
-
 
6458
      HANDLE((short)1, "handle"),
-
 
6459
      PASSWORD((short)2, "password"),
-
 
6460
      IS_EMAIL((short)3, "isEmail");
-
 
6461
 
-
 
6462
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6464
 
-
 
6465
      static {
-
 
6466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6467
          byId.put((int)field._thriftId, field);
-
 
6468
          byName.put(field.getFieldName(), field);
-
 
6469
        }
-
 
6470
      }
-
 
6471
 
-
 
6472
      /**
-
 
6473
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6474
       */
-
 
6475
      public static _Fields findByThriftId(int fieldId) {
-
 
6476
        return byId.get(fieldId);
-
 
6477
      }
-
 
6478
 
-
 
6479
      /**
-
 
6480
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6481
       * if it is not found.
-
 
6482
       */
-
 
6483
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6484
        _Fields fields = findByThriftId(fieldId);
-
 
6485
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6486
        return fields;
-
 
6487
      }
-
 
6488
 
-
 
6489
      /**
-
 
6490
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6491
       */
-
 
6492
      public static _Fields findByName(String name) {
-
 
6493
        return byName.get(name);
-
 
6494
      }
-
 
6495
 
-
 
6496
      private final short _thriftId;
-
 
6497
      private final String _fieldName;
-
 
6498
 
-
 
6499
      _Fields(short thriftId, String fieldName) {
-
 
6500
        _thriftId = thriftId;
-
 
6501
        _fieldName = fieldName;
-
 
6502
      }
-
 
6503
 
-
 
6504
      public short getThriftFieldId() {
-
 
6505
        return _thriftId;
-
 
6506
      }
-
 
6507
 
-
 
6508
      public String getFieldName() {
-
 
6509
        return _fieldName;
-
 
6510
      }
-
 
6511
    }
-
 
6512
 
-
 
6513
    // isset id assignments
-
 
6514
    private static final int __ISEMAIL_ISSET_ID = 0;
-
 
6515
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
6516
 
-
 
6517
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6518
      put(_Fields.HANDLE, new FieldMetaData("handle", TFieldRequirementType.DEFAULT, 
-
 
6519
          new FieldValueMetaData(TType.STRING)));
-
 
6520
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
6521
          new FieldValueMetaData(TType.STRING)));
-
 
6522
      put(_Fields.IS_EMAIL, new FieldMetaData("isEmail", TFieldRequirementType.DEFAULT, 
-
 
6523
          new FieldValueMetaData(TType.BOOL)));
-
 
6524
    }});
-
 
6525
 
-
 
6526
    static {
-
 
6527
      FieldMetaData.addStructMetaDataMap(authenticateUser_args.class, metaDataMap);
-
 
6528
    }
-
 
6529
 
-
 
6530
    public authenticateUser_args() {
-
 
6531
    }
-
 
6532
 
-
 
6533
    public authenticateUser_args(
-
 
6534
      String handle,
-
 
6535
      String password,
-
 
6536
      boolean isEmail)
-
 
6537
    {
-
 
6538
      this();
-
 
6539
      this.handle = handle;
-
 
6540
      this.password = password;
-
 
6541
      this.isEmail = isEmail;
-
 
6542
      setIsEmailIsSet(true);
-
 
6543
    }
-
 
6544
 
-
 
6545
    /**
-
 
6546
     * Performs a deep copy on <i>other</i>.
-
 
6547
     */
-
 
6548
    public authenticateUser_args(authenticateUser_args other) {
-
 
6549
      __isset_bit_vector.clear();
-
 
6550
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6551
      if (other.isSetHandle()) {
-
 
6552
        this.handle = other.handle;
-
 
6553
      }
-
 
6554
      if (other.isSetPassword()) {
-
 
6555
        this.password = other.password;
-
 
6556
      }
-
 
6557
      this.isEmail = other.isEmail;
-
 
6558
    }
-
 
6559
 
-
 
6560
    public authenticateUser_args deepCopy() {
-
 
6561
      return new authenticateUser_args(this);
-
 
6562
    }
-
 
6563
 
-
 
6564
    @Deprecated
-
 
6565
    public authenticateUser_args clone() {
-
 
6566
      return new authenticateUser_args(this);
-
 
6567
    }
-
 
6568
 
-
 
6569
    public String getHandle() {
-
 
6570
      return this.handle;
-
 
6571
    }
-
 
6572
 
-
 
6573
    public authenticateUser_args setHandle(String handle) {
-
 
6574
      this.handle = handle;
-
 
6575
      return this;
-
 
6576
    }
-
 
6577
 
-
 
6578
    public void unsetHandle() {
-
 
6579
      this.handle = null;
-
 
6580
    }
-
 
6581
 
-
 
6582
    /** Returns true if field handle is set (has been asigned a value) and false otherwise */
-
 
6583
    public boolean isSetHandle() {
-
 
6584
      return this.handle != null;
-
 
6585
    }
-
 
6586
 
-
 
6587
    public void setHandleIsSet(boolean value) {
-
 
6588
      if (!value) {
-
 
6589
        this.handle = null;
-
 
6590
      }
-
 
6591
    }
-
 
6592
 
-
 
6593
    public String getPassword() {
-
 
6594
      return this.password;
-
 
6595
    }
-
 
6596
 
-
 
6597
    public authenticateUser_args setPassword(String password) {
-
 
6598
      this.password = password;
-
 
6599
      return this;
-
 
6600
    }
-
 
6601
 
-
 
6602
    public void unsetPassword() {
-
 
6603
      this.password = null;
-
 
6604
    }
-
 
6605
 
-
 
6606
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
-
 
6607
    public boolean isSetPassword() {
-
 
6608
      return this.password != null;
-
 
6609
    }
-
 
6610
 
-
 
6611
    public void setPasswordIsSet(boolean value) {
-
 
6612
      if (!value) {
-
 
6613
        this.password = null;
-
 
6614
      }
-
 
6615
    }
-
 
6616
 
-
 
6617
    public boolean isIsEmail() {
-
 
6618
      return this.isEmail;
-
 
6619
    }
-
 
6620
 
-
 
6621
    public authenticateUser_args setIsEmail(boolean isEmail) {
-
 
6622
      this.isEmail = isEmail;
-
 
6623
      setIsEmailIsSet(true);
-
 
6624
      return this;
-
 
6625
    }
-
 
6626
 
-
 
6627
    public void unsetIsEmail() {
-
 
6628
      __isset_bit_vector.clear(__ISEMAIL_ISSET_ID);
-
 
6629
    }
-
 
6630
 
-
 
6631
    /** Returns true if field isEmail is set (has been asigned a value) and false otherwise */
-
 
6632
    public boolean isSetIsEmail() {
-
 
6633
      return __isset_bit_vector.get(__ISEMAIL_ISSET_ID);
-
 
6634
    }
-
 
6635
 
-
 
6636
    public void setIsEmailIsSet(boolean value) {
-
 
6637
      __isset_bit_vector.set(__ISEMAIL_ISSET_ID, value);
-
 
6638
    }
-
 
6639
 
-
 
6640
    public void setFieldValue(_Fields field, Object value) {
-
 
6641
      switch (field) {
-
 
6642
      case HANDLE:
-
 
6643
        if (value == null) {
-
 
6644
          unsetHandle();
-
 
6645
        } else {
-
 
6646
          setHandle((String)value);
-
 
6647
        }
-
 
6648
        break;
-
 
6649
 
-
 
6650
      case PASSWORD:
-
 
6651
        if (value == null) {
-
 
6652
          unsetPassword();
-
 
6653
        } else {
-
 
6654
          setPassword((String)value);
-
 
6655
        }
-
 
6656
        break;
-
 
6657
 
-
 
6658
      case IS_EMAIL:
-
 
6659
        if (value == null) {
-
 
6660
          unsetIsEmail();
-
 
6661
        } else {
-
 
6662
          setIsEmail((Boolean)value);
-
 
6663
        }
-
 
6664
        break;
-
 
6665
 
-
 
6666
      }
-
 
6667
    }
-
 
6668
 
-
 
6669
    public void setFieldValue(int fieldID, Object value) {
-
 
6670
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6671
    }
-
 
6672
 
-
 
6673
    public Object getFieldValue(_Fields field) {
-
 
6674
      switch (field) {
-
 
6675
      case HANDLE:
-
 
6676
        return getHandle();
-
 
6677
 
-
 
6678
      case PASSWORD:
-
 
6679
        return getPassword();
-
 
6680
 
-
 
6681
      case IS_EMAIL:
-
 
6682
        return new Boolean(isIsEmail());
-
 
6683
 
-
 
6684
      }
-
 
6685
      throw new IllegalStateException();
-
 
6686
    }
-
 
6687
 
-
 
6688
    public Object getFieldValue(int fieldId) {
-
 
6689
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6690
    }
-
 
6691
 
-
 
6692
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6693
    public boolean isSet(_Fields field) {
-
 
6694
      switch (field) {
-
 
6695
      case HANDLE:
-
 
6696
        return isSetHandle();
-
 
6697
      case PASSWORD:
-
 
6698
        return isSetPassword();
-
 
6699
      case IS_EMAIL:
-
 
6700
        return isSetIsEmail();
-
 
6701
      }
-
 
6702
      throw new IllegalStateException();
-
 
6703
    }
-
 
6704
 
-
 
6705
    public boolean isSet(int fieldID) {
-
 
6706
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6707
    }
-
 
6708
 
-
 
6709
    @Override
-
 
6710
    public boolean equals(Object that) {
-
 
6711
      if (that == null)
-
 
6712
        return false;
-
 
6713
      if (that instanceof authenticateUser_args)
-
 
6714
        return this.equals((authenticateUser_args)that);
-
 
6715
      return false;
-
 
6716
    }
-
 
6717
 
-
 
6718
    public boolean equals(authenticateUser_args that) {
-
 
6719
      if (that == null)
-
 
6720
        return false;
-
 
6721
 
-
 
6722
      boolean this_present_handle = true && this.isSetHandle();
-
 
6723
      boolean that_present_handle = true && that.isSetHandle();
-
 
6724
      if (this_present_handle || that_present_handle) {
-
 
6725
        if (!(this_present_handle && that_present_handle))
-
 
6726
          return false;
-
 
6727
        if (!this.handle.equals(that.handle))
-
 
6728
          return false;
-
 
6729
      }
-
 
6730
 
-
 
6731
      boolean this_present_password = true && this.isSetPassword();
-
 
6732
      boolean that_present_password = true && that.isSetPassword();
-
 
6733
      if (this_present_password || that_present_password) {
-
 
6734
        if (!(this_present_password && that_present_password))
-
 
6735
          return false;
-
 
6736
        if (!this.password.equals(that.password))
-
 
6737
          return false;
-
 
6738
      }
-
 
6739
 
-
 
6740
      boolean this_present_isEmail = true;
-
 
6741
      boolean that_present_isEmail = true;
-
 
6742
      if (this_present_isEmail || that_present_isEmail) {
-
 
6743
        if (!(this_present_isEmail && that_present_isEmail))
-
 
6744
          return false;
-
 
6745
        if (this.isEmail != that.isEmail)
-
 
6746
          return false;
-
 
6747
      }
-
 
6748
 
-
 
6749
      return true;
-
 
6750
    }
-
 
6751
 
-
 
6752
    @Override
-
 
6753
    public int hashCode() {
-
 
6754
      return 0;
-
 
6755
    }
-
 
6756
 
-
 
6757
    public int compareTo(authenticateUser_args other) {
-
 
6758
      if (!getClass().equals(other.getClass())) {
-
 
6759
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6760
      }
-
 
6761
 
-
 
6762
      int lastComparison = 0;
-
 
6763
      authenticateUser_args typedOther = (authenticateUser_args)other;
-
 
6764
 
-
 
6765
      lastComparison = Boolean.valueOf(isSetHandle()).compareTo(isSetHandle());
-
 
6766
      if (lastComparison != 0) {
-
 
6767
        return lastComparison;
-
 
6768
      }
-
 
6769
      lastComparison = TBaseHelper.compareTo(handle, typedOther.handle);
-
 
6770
      if (lastComparison != 0) {
-
 
6771
        return lastComparison;
-
 
6772
      }
-
 
6773
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
-
 
6774
      if (lastComparison != 0) {
-
 
6775
        return lastComparison;
-
 
6776
      }
-
 
6777
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
-
 
6778
      if (lastComparison != 0) {
-
 
6779
        return lastComparison;
-
 
6780
      }
-
 
6781
      lastComparison = Boolean.valueOf(isSetIsEmail()).compareTo(isSetIsEmail());
-
 
6782
      if (lastComparison != 0) {
-
 
6783
        return lastComparison;
-
 
6784
      }
-
 
6785
      lastComparison = TBaseHelper.compareTo(isEmail, typedOther.isEmail);
-
 
6786
      if (lastComparison != 0) {
-
 
6787
        return lastComparison;
-
 
6788
      }
-
 
6789
      return 0;
-
 
6790
    }
-
 
6791
 
-
 
6792
    public void read(TProtocol iprot) throws TException {
-
 
6793
      TField field;
-
 
6794
      iprot.readStructBegin();
-
 
6795
      while (true)
-
 
6796
      {
-
 
6797
        field = iprot.readFieldBegin();
-
 
6798
        if (field.type == TType.STOP) { 
-
 
6799
          break;
-
 
6800
        }
-
 
6801
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6802
        if (fieldId == null) {
-
 
6803
          TProtocolUtil.skip(iprot, field.type);
-
 
6804
        } else {
-
 
6805
          switch (fieldId) {
-
 
6806
            case HANDLE:
-
 
6807
              if (field.type == TType.STRING) {
-
 
6808
                this.handle = iprot.readString();
-
 
6809
              } else { 
-
 
6810
                TProtocolUtil.skip(iprot, field.type);
-
 
6811
              }
-
 
6812
              break;
-
 
6813
            case PASSWORD:
-
 
6814
              if (field.type == TType.STRING) {
-
 
6815
                this.password = iprot.readString();
-
 
6816
              } else { 
-
 
6817
                TProtocolUtil.skip(iprot, field.type);
-
 
6818
              }
-
 
6819
              break;
-
 
6820
            case IS_EMAIL:
-
 
6821
              if (field.type == TType.BOOL) {
-
 
6822
                this.isEmail = iprot.readBool();
-
 
6823
                setIsEmailIsSet(true);
-
 
6824
              } else { 
-
 
6825
                TProtocolUtil.skip(iprot, field.type);
-
 
6826
              }
-
 
6827
              break;
-
 
6828
          }
-
 
6829
          iprot.readFieldEnd();
-
 
6830
        }
-
 
6831
      }
-
 
6832
      iprot.readStructEnd();
-
 
6833
      validate();
-
 
6834
    }
-
 
6835
 
-
 
6836
    public void write(TProtocol oprot) throws TException {
-
 
6837
      validate();
-
 
6838
 
-
 
6839
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6840
      if (this.handle != null) {
-
 
6841
        oprot.writeFieldBegin(HANDLE_FIELD_DESC);
-
 
6842
        oprot.writeString(this.handle);
-
 
6843
        oprot.writeFieldEnd();
-
 
6844
      }
-
 
6845
      if (this.password != null) {
-
 
6846
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
-
 
6847
        oprot.writeString(this.password);
-
 
6848
        oprot.writeFieldEnd();
-
 
6849
      }
-
 
6850
      oprot.writeFieldBegin(IS_EMAIL_FIELD_DESC);
-
 
6851
      oprot.writeBool(this.isEmail);
-
 
6852
      oprot.writeFieldEnd();
-
 
6853
      oprot.writeFieldStop();
-
 
6854
      oprot.writeStructEnd();
-
 
6855
    }
-
 
6856
 
-
 
6857
    @Override
-
 
6858
    public String toString() {
-
 
6859
      StringBuilder sb = new StringBuilder("authenticateUser_args(");
-
 
6860
      boolean first = true;
-
 
6861
 
-
 
6862
      sb.append("handle:");
-
 
6863
      if (this.handle == null) {
-
 
6864
        sb.append("null");
-
 
6865
      } else {
-
 
6866
        sb.append(this.handle);
-
 
6867
      }
-
 
6868
      first = false;
-
 
6869
      if (!first) sb.append(", ");
-
 
6870
      sb.append("password:");
-
 
6871
      if (this.password == null) {
-
 
6872
        sb.append("null");
-
 
6873
      } else {
-
 
6874
        sb.append(this.password);
-
 
6875
      }
-
 
6876
      first = false;
-
 
6877
      if (!first) sb.append(", ");
-
 
6878
      sb.append("isEmail:");
-
 
6879
      sb.append(this.isEmail);
-
 
6880
      first = false;
-
 
6881
      sb.append(")");
-
 
6882
      return sb.toString();
-
 
6883
    }
-
 
6884
 
-
 
6885
    public void validate() throws TException {
-
 
6886
      // check for required fields
-
 
6887
    }
-
 
6888
 
-
 
6889
  }
-
 
6890
 
-
 
6891
  public static class authenticateUser_result implements TBase<authenticateUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_result>   {
-
 
6892
    private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_result");
-
 
6893
 
-
 
6894
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
6895
    private static final TField AX_FIELD_DESC = new TField("ax", TType.STRUCT, (short)1);
-
 
6896
 
-
 
6897
    private boolean success;
-
 
6898
    private AuthenticationException ax;
-
 
6899
 
-
 
6900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6901
    public enum _Fields implements TFieldIdEnum {
-
 
6902
      SUCCESS((short)0, "success"),
-
 
6903
      AX((short)1, "ax");
-
 
6904
 
-
 
6905
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6907
 
-
 
6908
      static {
-
 
6909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6910
          byId.put((int)field._thriftId, field);
-
 
6911
          byName.put(field.getFieldName(), field);
-
 
6912
        }
-
 
6913
      }
-
 
6914
 
-
 
6915
      /**
-
 
6916
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6917
       */
-
 
6918
      public static _Fields findByThriftId(int fieldId) {
-
 
6919
        return byId.get(fieldId);
-
 
6920
      }
-
 
6921
 
-
 
6922
      /**
-
 
6923
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6924
       * if it is not found.
-
 
6925
       */
-
 
6926
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6927
        _Fields fields = findByThriftId(fieldId);
-
 
6928
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6929
        return fields;
-
 
6930
      }
-
 
6931
 
-
 
6932
      /**
-
 
6933
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6934
       */
-
 
6935
      public static _Fields findByName(String name) {
-
 
6936
        return byName.get(name);
-
 
6937
      }
-
 
6938
 
-
 
6939
      private final short _thriftId;
-
 
6940
      private final String _fieldName;
-
 
6941
 
-
 
6942
      _Fields(short thriftId, String fieldName) {
-
 
6943
        _thriftId = thriftId;
-
 
6944
        _fieldName = fieldName;
-
 
6945
      }
-
 
6946
 
-
 
6947
      public short getThriftFieldId() {
-
 
6948
        return _thriftId;
-
 
6949
      }
-
 
6950
 
-
 
6951
      public String getFieldName() {
-
 
6952
        return _fieldName;
-
 
6953
      }
-
 
6954
    }
-
 
6955
 
-
 
6956
    // isset id assignments
-
 
6957
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
6958
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
6959
 
-
 
6960
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6961
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6962
          new FieldValueMetaData(TType.BOOL)));
-
 
6963
      put(_Fields.AX, new FieldMetaData("ax", TFieldRequirementType.DEFAULT, 
-
 
6964
          new FieldValueMetaData(TType.STRUCT)));
-
 
6965
    }});
-
 
6966
 
-
 
6967
    static {
-
 
6968
      FieldMetaData.addStructMetaDataMap(authenticateUser_result.class, metaDataMap);
-
 
6969
    }
-
 
6970
 
-
 
6971
    public authenticateUser_result() {
-
 
6972
    }
-
 
6973
 
-
 
6974
    public authenticateUser_result(
-
 
6975
      boolean success,
-
 
6976
      AuthenticationException ax)
-
 
6977
    {
-
 
6978
      this();
-
 
6979
      this.success = success;
-
 
6980
      setSuccessIsSet(true);
-
 
6981
      this.ax = ax;
-
 
6982
    }
-
 
6983
 
-
 
6984
    /**
-
 
6985
     * Performs a deep copy on <i>other</i>.
-
 
6986
     */
-
 
6987
    public authenticateUser_result(authenticateUser_result other) {
-
 
6988
      __isset_bit_vector.clear();
-
 
6989
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6990
      this.success = other.success;
-
 
6991
      if (other.isSetAx()) {
-
 
6992
        this.ax = new AuthenticationException(other.ax);
-
 
6993
      }
-
 
6994
    }
-
 
6995
 
-
 
6996
    public authenticateUser_result deepCopy() {
-
 
6997
      return new authenticateUser_result(this);
-
 
6998
    }
-
 
6999
 
-
 
7000
    @Deprecated
-
 
7001
    public authenticateUser_result clone() {
-
 
7002
      return new authenticateUser_result(this);
-
 
7003
    }
-
 
7004
 
-
 
7005
    public boolean isSuccess() {
-
 
7006
      return this.success;
-
 
7007
    }
-
 
7008
 
-
 
7009
    public authenticateUser_result setSuccess(boolean success) {
-
 
7010
      this.success = success;
-
 
7011
      setSuccessIsSet(true);
-
 
7012
      return this;
-
 
7013
    }
-
 
7014
 
-
 
7015
    public void unsetSuccess() {
-
 
7016
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
7017
    }
-
 
7018
 
-
 
7019
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
7020
    public boolean isSetSuccess() {
-
 
7021
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
7022
    }
-
 
7023
 
-
 
7024
    public void setSuccessIsSet(boolean value) {
-
 
7025
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
7026
    }
-
 
7027
 
-
 
7028
    public AuthenticationException getAx() {
-
 
7029
      return this.ax;
-
 
7030
    }
-
 
7031
 
-
 
7032
    public authenticateUser_result setAx(AuthenticationException ax) {
-
 
7033
      this.ax = ax;
-
 
7034
      return this;
-
 
7035
    }
-
 
7036
 
-
 
7037
    public void unsetAx() {
-
 
7038
      this.ax = null;
-
 
7039
    }
-
 
7040
 
-
 
7041
    /** Returns true if field ax is set (has been asigned a value) and false otherwise */
-
 
7042
    public boolean isSetAx() {
-
 
7043
      return this.ax != null;
-
 
7044
    }
-
 
7045
 
-
 
7046
    public void setAxIsSet(boolean value) {
-
 
7047
      if (!value) {
-
 
7048
        this.ax = null;
-
 
7049
      }
-
 
7050
    }
-
 
7051
 
-
 
7052
    public void setFieldValue(_Fields field, Object value) {
-
 
7053
      switch (field) {
-
 
7054
      case SUCCESS:
-
 
7055
        if (value == null) {
-
 
7056
          unsetSuccess();
-
 
7057
        } else {
-
 
7058
          setSuccess((Boolean)value);
-
 
7059
        }
-
 
7060
        break;
-
 
7061
 
-
 
7062
      case AX:
-
 
7063
        if (value == null) {
-
 
7064
          unsetAx();
-
 
7065
        } else {
-
 
7066
          setAx((AuthenticationException)value);
-
 
7067
        }
-
 
7068
        break;
-
 
7069
 
-
 
7070
      }
-
 
7071
    }
-
 
7072
 
-
 
7073
    public void setFieldValue(int fieldID, Object value) {
-
 
7074
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7075
    }
-
 
7076
 
-
 
7077
    public Object getFieldValue(_Fields field) {
-
 
7078
      switch (field) {
-
 
7079
      case SUCCESS:
-
 
7080
        return new Boolean(isSuccess());
-
 
7081
 
-
 
7082
      case AX:
-
 
7083
        return getAx();
-
 
7084
 
-
 
7085
      }
-
 
7086
      throw new IllegalStateException();
-
 
7087
    }
-
 
7088
 
-
 
7089
    public Object getFieldValue(int fieldId) {
-
 
7090
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7091
    }
-
 
7092
 
-
 
7093
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7094
    public boolean isSet(_Fields field) {
-
 
7095
      switch (field) {
-
 
7096
      case SUCCESS:
-
 
7097
        return isSetSuccess();
-
 
7098
      case AX:
-
 
7099
        return isSetAx();
-
 
7100
      }
-
 
7101
      throw new IllegalStateException();
-
 
7102
    }
-
 
7103
 
-
 
7104
    public boolean isSet(int fieldID) {
-
 
7105
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7106
    }
-
 
7107
 
-
 
7108
    @Override
-
 
7109
    public boolean equals(Object that) {
-
 
7110
      if (that == null)
-
 
7111
        return false;
-
 
7112
      if (that instanceof authenticateUser_result)
-
 
7113
        return this.equals((authenticateUser_result)that);
-
 
7114
      return false;
-
 
7115
    }
-
 
7116
 
-
 
7117
    public boolean equals(authenticateUser_result that) {
-
 
7118
      if (that == null)
-
 
7119
        return false;
-
 
7120
 
-
 
7121
      boolean this_present_success = true;
-
 
7122
      boolean that_present_success = true;
-
 
7123
      if (this_present_success || that_present_success) {
-
 
7124
        if (!(this_present_success && that_present_success))
-
 
7125
          return false;
-
 
7126
        if (this.success != that.success)
-
 
7127
          return false;
-
 
7128
      }
-
 
7129
 
-
 
7130
      boolean this_present_ax = true && this.isSetAx();
-
 
7131
      boolean that_present_ax = true && that.isSetAx();
-
 
7132
      if (this_present_ax || that_present_ax) {
-
 
7133
        if (!(this_present_ax && that_present_ax))
-
 
7134
          return false;
-
 
7135
        if (!this.ax.equals(that.ax))
-
 
7136
          return false;
-
 
7137
      }
-
 
7138
 
-
 
7139
      return true;
-
 
7140
    }
-
 
7141
 
-
 
7142
    @Override
-
 
7143
    public int hashCode() {
-
 
7144
      return 0;
-
 
7145
    }
-
 
7146
 
-
 
7147
    public int compareTo(authenticateUser_result other) {
-
 
7148
      if (!getClass().equals(other.getClass())) {
-
 
7149
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7150
      }
-
 
7151
 
-
 
7152
      int lastComparison = 0;
-
 
7153
      authenticateUser_result typedOther = (authenticateUser_result)other;
-
 
7154
 
-
 
7155
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
7156
      if (lastComparison != 0) {
-
 
7157
        return lastComparison;
-
 
7158
      }
-
 
7159
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
7160
      if (lastComparison != 0) {
-
 
7161
        return lastComparison;
-
 
7162
      }
-
 
7163
      lastComparison = Boolean.valueOf(isSetAx()).compareTo(isSetAx());
-
 
7164
      if (lastComparison != 0) {
-
 
7165
        return lastComparison;
-
 
7166
      }
-
 
7167
      lastComparison = TBaseHelper.compareTo(ax, typedOther.ax);
-
 
7168
      if (lastComparison != 0) {
-
 
7169
        return lastComparison;
-
 
7170
      }
-
 
7171
      return 0;
-
 
7172
    }
-
 
7173
 
-
 
7174
    public void read(TProtocol iprot) throws TException {
-
 
7175
      TField field;
-
 
7176
      iprot.readStructBegin();
-
 
7177
      while (true)
-
 
7178
      {
-
 
7179
        field = iprot.readFieldBegin();
-
 
7180
        if (field.type == TType.STOP) { 
-
 
7181
          break;
-
 
7182
        }
-
 
7183
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7184
        if (fieldId == null) {
-
 
7185
          TProtocolUtil.skip(iprot, field.type);
-
 
7186
        } else {
-
 
7187
          switch (fieldId) {
-
 
7188
            case SUCCESS:
-
 
7189
              if (field.type == TType.BOOL) {
-
 
7190
                this.success = iprot.readBool();
-
 
7191
                setSuccessIsSet(true);
-
 
7192
              } else { 
-
 
7193
                TProtocolUtil.skip(iprot, field.type);
-
 
7194
              }
-
 
7195
              break;
-
 
7196
            case AX:
-
 
7197
              if (field.type == TType.STRUCT) {
-
 
7198
                this.ax = new AuthenticationException();
-
 
7199
                this.ax.read(iprot);
-
 
7200
              } else { 
-
 
7201
                TProtocolUtil.skip(iprot, field.type);
-
 
7202
              }
-
 
7203
              break;
-
 
7204
          }
-
 
7205
          iprot.readFieldEnd();
-
 
7206
        }
-
 
7207
      }
-
 
7208
      iprot.readStructEnd();
-
 
7209
      validate();
-
 
7210
    }
-
 
7211
 
-
 
7212
    public void write(TProtocol oprot) throws TException {
-
 
7213
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7214
 
-
 
7215
      if (this.isSetSuccess()) {
-
 
7216
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7217
        oprot.writeBool(this.success);
-
 
7218
        oprot.writeFieldEnd();
-
 
7219
      } else if (this.isSetAx()) {
-
 
7220
        oprot.writeFieldBegin(AX_FIELD_DESC);
-
 
7221
        this.ax.write(oprot);
-
 
7222
        oprot.writeFieldEnd();
-
 
7223
      }
-
 
7224
      oprot.writeFieldStop();
-
 
7225
      oprot.writeStructEnd();
-
 
7226
    }
-
 
7227
 
-
 
7228
    @Override
-
 
7229
    public String toString() {
-
 
7230
      StringBuilder sb = new StringBuilder("authenticateUser_result(");
-
 
7231
      boolean first = true;
-
 
7232
 
-
 
7233
      sb.append("success:");
-
 
7234
      sb.append(this.success);
-
 
7235
      first = false;
-
 
7236
      if (!first) sb.append(", ");
-
 
7237
      sb.append("ax:");
-
 
7238
      if (this.ax == null) {
-
 
7239
        sb.append("null");
-
 
7240
      } else {
-
 
7241
        sb.append(this.ax);
-
 
7242
      }
-
 
7243
      first = false;
-
 
7244
      sb.append(")");
-
 
7245
      return sb.toString();
-
 
7246
    }
-
 
7247
 
-
 
7248
    public void validate() throws TException {
-
 
7249
      // check for required fields
-
 
7250
    }
-
 
7251
 
-
 
7252
  }
-
 
7253
 
6031
  public static class userExists_args implements TBase<userExists_args._Fields>, java.io.Serializable, Cloneable, Comparable<userExists_args>   {
7254
  public static class userExists_args implements TBase<userExists_args._Fields>, java.io.Serializable, Cloneable, Comparable<userExists_args>   {
6032
    private static final TStruct STRUCT_DESC = new TStruct("userExists_args");
7255
    private static final TStruct STRUCT_DESC = new TStruct("userExists_args");
6033
 
7256
 
6034
    private static final TField EMAIL_FIELD_DESC = new TField("email", TType.STRING, (short)1);
7257
    private static final TField EMAIL_FIELD_DESC = new TField("email", TType.STRING, (short)1);
6035
 
7258
 
Line 7480... Line 8703...
7480
 
8703
 
7481
    private static final TField ADDRESS_FIELD_DESC = new TField("address", TType.STRUCT, (short)1);
8704
    private static final TField ADDRESS_FIELD_DESC = new TField("address", TType.STRUCT, (short)1);
7482
    private static final TField USERID_FIELD_DESC = new TField("userid", TType.I64, (short)2);
8705
    private static final TField USERID_FIELD_DESC = new TField("userid", TType.I64, (short)2);
7483
    private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);
8706
    private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);
7484
 
8707
 
7485
    private TAddress address;
8708
    private Address address;
7486
    private long userid;
8709
    private long userid;
7487
    private long timestamp;
8710
    private long timestamp;
7488
 
8711
 
7489
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8712
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7490
    public enum _Fields implements TFieldIdEnum {
8713
    public enum _Fields implements TFieldIdEnum {
Line 7548... Line 8771...
7548
    private static final int __TIMESTAMP_ISSET_ID = 1;
8771
    private static final int __TIMESTAMP_ISSET_ID = 1;
7549
    private BitSet __isset_bit_vector = new BitSet(2);
8772
    private BitSet __isset_bit_vector = new BitSet(2);
7550
 
8773
 
7551
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8774
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7552
      put(_Fields.ADDRESS, new FieldMetaData("address", TFieldRequirementType.DEFAULT, 
8775
      put(_Fields.ADDRESS, new FieldMetaData("address", TFieldRequirementType.DEFAULT, 
7553
          new StructMetaData(TType.STRUCT, TAddress.class)));
8776
          new StructMetaData(TType.STRUCT, Address.class)));
7554
      put(_Fields.USERID, new FieldMetaData("userid", TFieldRequirementType.DEFAULT, 
8777
      put(_Fields.USERID, new FieldMetaData("userid", TFieldRequirementType.DEFAULT, 
7555
          new FieldValueMetaData(TType.I64)));
8778
          new FieldValueMetaData(TType.I64)));
7556
      put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
8779
      put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
7557
          new FieldValueMetaData(TType.I64)));
8780
          new FieldValueMetaData(TType.I64)));
7558
    }});
8781
    }});
Line 7563... Line 8786...
7563
 
8786
 
7564
    public addAddressForUser_args() {
8787
    public addAddressForUser_args() {
7565
    }
8788
    }
7566
 
8789
 
7567
    public addAddressForUser_args(
8790
    public addAddressForUser_args(
7568
      TAddress address,
8791
      Address address,
7569
      long userid,
8792
      long userid,
7570
      long timestamp)
8793
      long timestamp)
7571
    {
8794
    {
7572
      this();
8795
      this();
7573
      this.address = address;
8796
      this.address = address;
Line 7582... Line 8805...
7582
     */
8805
     */
7583
    public addAddressForUser_args(addAddressForUser_args other) {
8806
    public addAddressForUser_args(addAddressForUser_args other) {
7584
      __isset_bit_vector.clear();
8807
      __isset_bit_vector.clear();
7585
      __isset_bit_vector.or(other.__isset_bit_vector);
8808
      __isset_bit_vector.or(other.__isset_bit_vector);
7586
      if (other.isSetAddress()) {
8809
      if (other.isSetAddress()) {
7587
        this.address = new TAddress(other.address);
8810
        this.address = new Address(other.address);
7588
      }
8811
      }
7589
      this.userid = other.userid;
8812
      this.userid = other.userid;
7590
      this.timestamp = other.timestamp;
8813
      this.timestamp = other.timestamp;
7591
    }
8814
    }
7592
 
8815
 
Line 7597... Line 8820...
7597
    @Deprecated
8820
    @Deprecated
7598
    public addAddressForUser_args clone() {
8821
    public addAddressForUser_args clone() {
7599
      return new addAddressForUser_args(this);
8822
      return new addAddressForUser_args(this);
7600
    }
8823
    }
7601
 
8824
 
7602
    public TAddress getAddress() {
8825
    public Address getAddress() {
7603
      return this.address;
8826
      return this.address;
7604
    }
8827
    }
7605
 
8828
 
7606
    public addAddressForUser_args setAddress(TAddress address) {
8829
    public addAddressForUser_args setAddress(Address address) {
7607
      this.address = address;
8830
      this.address = address;
7608
      return this;
8831
      return this;
7609
    }
8832
    }
7610
 
8833
 
7611
    public void unsetAddress() {
8834
    public void unsetAddress() {
Line 7673... Line 8896...
7673
      switch (field) {
8896
      switch (field) {
7674
      case ADDRESS:
8897
      case ADDRESS:
7675
        if (value == null) {
8898
        if (value == null) {
7676
          unsetAddress();
8899
          unsetAddress();
7677
        } else {
8900
        } else {
7678
          setAddress((TAddress)value);
8901
          setAddress((Address)value);
7679
        }
8902
        }
7680
        break;
8903
        break;
7681
 
8904
 
7682
      case USERID:
8905
      case USERID:
7683
        if (value == null) {
8906
        if (value == null) {
Line 7835... Line 9058...
7835
          TProtocolUtil.skip(iprot, field.type);
9058
          TProtocolUtil.skip(iprot, field.type);
7836
        } else {
9059
        } else {
7837
          switch (fieldId) {
9060
          switch (fieldId) {
7838
            case ADDRESS:
9061
            case ADDRESS:
7839
              if (field.type == TType.STRUCT) {
9062
              if (field.type == TType.STRUCT) {
7840
                this.address = new TAddress();
9063
                this.address = new Address();
7841
                this.address.read(iprot);
9064
                this.address.read(iprot);
7842
              } else { 
9065
              } else { 
7843
                TProtocolUtil.skip(iprot, field.type);
9066
                TProtocolUtil.skip(iprot, field.type);
7844
              }
9067
              }
7845
              break;
9068
              break;
Line 11163... Line 12386...
11163
 
12386
 
11164
  public static class deleteUser_args implements TBase<deleteUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_args>   {
12387
  public static class deleteUser_args implements TBase<deleteUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_args>   {
11165
    private static final TStruct STRUCT_DESC = new TStruct("deleteUser_args");
12388
    private static final TStruct STRUCT_DESC = new TStruct("deleteUser_args");
11166
 
12389
 
11167
    private static final TField USERID_FIELD_DESC = new TField("userid", TType.I64, (short)1);
12390
    private static final TField USERID_FIELD_DESC = new TField("userid", TType.I64, (short)1);
-
 
12391
    private static final TField IS_SESSION_ID_FIELD_DESC = new TField("isSessionId", TType.BOOL, (short)2);
11168
 
12392
 
11169
    private long userid;
12393
    private long userid;
-
 
12394
    private boolean isSessionId;
11170
 
12395
 
11171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12396
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11172
    public enum _Fields implements TFieldIdEnum {
12397
    public enum _Fields implements TFieldIdEnum {
11173
      USERID((short)1, "userid");
12398
      USERID((short)1, "userid"),
-
 
12399
      IS_SESSION_ID((short)2, "isSessionId");
11174
 
12400
 
11175
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
12401
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
11176
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12402
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11177
 
12403
 
11178
      static {
12404
      static {
Line 11223... Line 12449...
11223
      }
12449
      }
11224
    }
12450
    }
11225
 
12451
 
11226
    // isset id assignments
12452
    // isset id assignments
11227
    private static final int __USERID_ISSET_ID = 0;
12453
    private static final int __USERID_ISSET_ID = 0;
-
 
12454
    private static final int __ISSESSIONID_ISSET_ID = 1;
11228
    private BitSet __isset_bit_vector = new BitSet(1);
12455
    private BitSet __isset_bit_vector = new BitSet(2);
11229
 
12456
 
11230
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
12457
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11231
      put(_Fields.USERID, new FieldMetaData("userid", TFieldRequirementType.DEFAULT, 
12458
      put(_Fields.USERID, new FieldMetaData("userid", TFieldRequirementType.DEFAULT, 
11232
          new FieldValueMetaData(TType.I64)));
12459
          new FieldValueMetaData(TType.I64)));
-
 
12460
      put(_Fields.IS_SESSION_ID, new FieldMetaData("isSessionId", TFieldRequirementType.DEFAULT, 
-
 
12461
          new FieldValueMetaData(TType.BOOL)));
11233
    }});
12462
    }});
11234
 
12463
 
11235
    static {
12464
    static {
11236
      FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
12465
      FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
11237
    }
12466
    }
11238
 
12467
 
11239
    public deleteUser_args() {
12468
    public deleteUser_args() {
11240
    }
12469
    }
11241
 
12470
 
11242
    public deleteUser_args(
12471
    public deleteUser_args(
11243
      long userid)
12472
      long userid,
-
 
12473
      boolean isSessionId)
11244
    {
12474
    {
11245
      this();
12475
      this();
11246
      this.userid = userid;
12476
      this.userid = userid;
11247
      setUseridIsSet(true);
12477
      setUseridIsSet(true);
-
 
12478
      this.isSessionId = isSessionId;
-
 
12479
      setIsSessionIdIsSet(true);
11248
    }
12480
    }
11249
 
12481
 
11250
    /**
12482
    /**
11251
     * Performs a deep copy on <i>other</i>.
12483
     * Performs a deep copy on <i>other</i>.
11252
     */
12484
     */
11253
    public deleteUser_args(deleteUser_args other) {
12485
    public deleteUser_args(deleteUser_args other) {
11254
      __isset_bit_vector.clear();
12486
      __isset_bit_vector.clear();
11255
      __isset_bit_vector.or(other.__isset_bit_vector);
12487
      __isset_bit_vector.or(other.__isset_bit_vector);
11256
      this.userid = other.userid;
12488
      this.userid = other.userid;
-
 
12489
      this.isSessionId = other.isSessionId;
11257
    }
12490
    }
11258
 
12491
 
11259
    public deleteUser_args deepCopy() {
12492
    public deleteUser_args deepCopy() {
11260
      return new deleteUser_args(this);
12493
      return new deleteUser_args(this);
11261
    }
12494
    }
Line 11286... Line 12519...
11286
 
12519
 
11287
    public void setUseridIsSet(boolean value) {
12520
    public void setUseridIsSet(boolean value) {
11288
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
12521
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
11289
    }
12522
    }
11290
 
12523
 
-
 
12524
    public boolean isIsSessionId() {
-
 
12525
      return this.isSessionId;
-
 
12526
    }
-
 
12527
 
-
 
12528
    public deleteUser_args setIsSessionId(boolean isSessionId) {
-
 
12529
      this.isSessionId = isSessionId;
-
 
12530
      setIsSessionIdIsSet(true);
-
 
12531
      return this;
-
 
12532
    }
-
 
12533
 
-
 
12534
    public void unsetIsSessionId() {
-
 
12535
      __isset_bit_vector.clear(__ISSESSIONID_ISSET_ID);
-
 
12536
    }
-
 
12537
 
-
 
12538
    /** Returns true if field isSessionId is set (has been asigned a value) and false otherwise */
-
 
12539
    public boolean isSetIsSessionId() {
-
 
12540
      return __isset_bit_vector.get(__ISSESSIONID_ISSET_ID);
-
 
12541
    }
-
 
12542
 
-
 
12543
    public void setIsSessionIdIsSet(boolean value) {
-
 
12544
      __isset_bit_vector.set(__ISSESSIONID_ISSET_ID, value);
-
 
12545
    }
-
 
12546
 
11291
    public void setFieldValue(_Fields field, Object value) {
12547
    public void setFieldValue(_Fields field, Object value) {
11292
      switch (field) {
12548
      switch (field) {
11293
      case USERID:
12549
      case USERID:
11294
        if (value == null) {
12550
        if (value == null) {
11295
          unsetUserid();
12551
          unsetUserid();
11296
        } else {
12552
        } else {
11297
          setUserid((Long)value);
12553
          setUserid((Long)value);
11298
        }
12554
        }
11299
        break;
12555
        break;
11300
 
12556
 
-
 
12557
      case IS_SESSION_ID:
-
 
12558
        if (value == null) {
-
 
12559
          unsetIsSessionId();
-
 
12560
        } else {
-
 
12561
          setIsSessionId((Boolean)value);
-
 
12562
        }
-
 
12563
        break;
-
 
12564
 
11301
      }
12565
      }
11302
    }
12566
    }
11303
 
12567
 
11304
    public void setFieldValue(int fieldID, Object value) {
12568
    public void setFieldValue(int fieldID, Object value) {
11305
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
12569
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 11308... Line 12572...
11308
    public Object getFieldValue(_Fields field) {
12572
    public Object getFieldValue(_Fields field) {
11309
      switch (field) {
12573
      switch (field) {
11310
      case USERID:
12574
      case USERID:
11311
        return new Long(getUserid());
12575
        return new Long(getUserid());
11312
 
12576
 
-
 
12577
      case IS_SESSION_ID:
-
 
12578
        return new Boolean(isIsSessionId());
-
 
12579
 
11313
      }
12580
      }
11314
      throw new IllegalStateException();
12581
      throw new IllegalStateException();
11315
    }
12582
    }
11316
 
12583
 
11317
    public Object getFieldValue(int fieldId) {
12584
    public Object getFieldValue(int fieldId) {
Line 11321... Line 12588...
11321
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
12588
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11322
    public boolean isSet(_Fields field) {
12589
    public boolean isSet(_Fields field) {
11323
      switch (field) {
12590
      switch (field) {
11324
      case USERID:
12591
      case USERID:
11325
        return isSetUserid();
12592
        return isSetUserid();
-
 
12593
      case IS_SESSION_ID:
-
 
12594
        return isSetIsSessionId();
11326
      }
12595
      }
11327
      throw new IllegalStateException();
12596
      throw new IllegalStateException();
11328
    }
12597
    }
11329
 
12598
 
11330
    public boolean isSet(int fieldID) {
12599
    public boolean isSet(int fieldID) {
Line 11351... Line 12620...
11351
          return false;
12620
          return false;
11352
        if (this.userid != that.userid)
12621
        if (this.userid != that.userid)
11353
          return false;
12622
          return false;
11354
      }
12623
      }
11355
 
12624
 
-
 
12625
      boolean this_present_isSessionId = true;
-
 
12626
      boolean that_present_isSessionId = true;
-
 
12627
      if (this_present_isSessionId || that_present_isSessionId) {
-
 
12628
        if (!(this_present_isSessionId && that_present_isSessionId))
-
 
12629
          return false;
-
 
12630
        if (this.isSessionId != that.isSessionId)
-
 
12631
          return false;
-
 
12632
      }
-
 
12633
 
11356
      return true;
12634
      return true;
11357
    }
12635
    }
11358
 
12636
 
11359
    @Override
12637
    @Override
11360
    public int hashCode() {
12638
    public int hashCode() {
Line 11375... Line 12653...
11375
      }
12653
      }
11376
      lastComparison = TBaseHelper.compareTo(userid, typedOther.userid);
12654
      lastComparison = TBaseHelper.compareTo(userid, typedOther.userid);
11377
      if (lastComparison != 0) {
12655
      if (lastComparison != 0) {
11378
        return lastComparison;
12656
        return lastComparison;
11379
      }
12657
      }
-
 
12658
      lastComparison = Boolean.valueOf(isSetIsSessionId()).compareTo(isSetIsSessionId());
-
 
12659
      if (lastComparison != 0) {
-
 
12660
        return lastComparison;
-
 
12661
      }
-
 
12662
      lastComparison = TBaseHelper.compareTo(isSessionId, typedOther.isSessionId);
-
 
12663
      if (lastComparison != 0) {
-
 
12664
        return lastComparison;
-
 
12665
      }
11380
      return 0;
12666
      return 0;
11381
    }
12667
    }
11382
 
12668
 
11383
    public void read(TProtocol iprot) throws TException {
12669
    public void read(TProtocol iprot) throws TException {
11384
      TField field;
12670
      TField field;
Line 11400... Line 12686...
11400
                setUseridIsSet(true);
12686
                setUseridIsSet(true);
11401
              } else { 
12687
              } else { 
11402
                TProtocolUtil.skip(iprot, field.type);
12688
                TProtocolUtil.skip(iprot, field.type);
11403
              }
12689
              }
11404
              break;
12690
              break;
-
 
12691
            case IS_SESSION_ID:
-
 
12692
              if (field.type == TType.BOOL) {
-
 
12693
                this.isSessionId = iprot.readBool();
-
 
12694
                setIsSessionIdIsSet(true);
-
 
12695
              } else { 
-
 
12696
                TProtocolUtil.skip(iprot, field.type);
-
 
12697
              }
-
 
12698
              break;
11405
          }
12699
          }
11406
          iprot.readFieldEnd();
12700
          iprot.readFieldEnd();
11407
        }
12701
        }
11408
      }
12702
      }
11409
      iprot.readStructEnd();
12703
      iprot.readStructEnd();
Line 11415... Line 12709...
11415
 
12709
 
11416
      oprot.writeStructBegin(STRUCT_DESC);
12710
      oprot.writeStructBegin(STRUCT_DESC);
11417
      oprot.writeFieldBegin(USERID_FIELD_DESC);
12711
      oprot.writeFieldBegin(USERID_FIELD_DESC);
11418
      oprot.writeI64(this.userid);
12712
      oprot.writeI64(this.userid);
11419
      oprot.writeFieldEnd();
12713
      oprot.writeFieldEnd();
-
 
12714
      oprot.writeFieldBegin(IS_SESSION_ID_FIELD_DESC);
-
 
12715
      oprot.writeBool(this.isSessionId);
-
 
12716
      oprot.writeFieldEnd();
11420
      oprot.writeFieldStop();
12717
      oprot.writeFieldStop();
11421
      oprot.writeStructEnd();
12718
      oprot.writeStructEnd();
11422
    }
12719
    }
11423
 
12720
 
11424
    @Override
12721
    @Override
Line 11427... Line 12724...
11427
      boolean first = true;
12724
      boolean first = true;
11428
 
12725
 
11429
      sb.append("userid:");
12726
      sb.append("userid:");
11430
      sb.append(this.userid);
12727
      sb.append(this.userid);
11431
      first = false;
12728
      first = false;
-
 
12729
      if (!first) sb.append(", ");
-
 
12730
      sb.append("isSessionId:");
-
 
12731
      sb.append(this.isSessionId);
-
 
12732
      first = false;
11432
      sb.append(")");
12733
      sb.append(")");
11433
      return sb.toString();
12734
      return sb.toString();
11434
    }
12735
    }
11435
 
12736
 
11436
    public void validate() throws TException {
12737
    public void validate() throws TException {