001// Automatically generated by the Thrifty compiler; do not edit! 002// Generated on: 2020-11-05T09:22:38.165Z 003// Source: J:\facelog\facelog-service\IFaceLog.thrift at 280:1 004package net.gdface.facelog.client.thrift; 005 006import com.microsoft.thrifty.TType; 007import com.microsoft.thrifty.ThriftException; 008import com.microsoft.thrifty.protocol.FieldMetadata; 009import com.microsoft.thrifty.protocol.ListMetadata; 010import com.microsoft.thrifty.protocol.MapMetadata; 011import com.microsoft.thrifty.protocol.MessageMetadata; 012import com.microsoft.thrifty.protocol.Protocol; 013import com.microsoft.thrifty.service.AsyncClientBase; 014import com.microsoft.thrifty.service.MethodCall; 015import com.microsoft.thrifty.service.ServiceMethodCallback; 016import com.microsoft.thrifty.service.TMessageType; 017import com.microsoft.thrifty.util.ProtocolUtil; 018import java.io.IOException; 019import java.util.ArrayList; 020import java.util.HashMap; 021import java.util.List; 022import java.util.Map; 023import javax.annotation.Generated; 024import okio.ByteString; 025 026@Generated( 027 value = "com.microsoft.thrifty.gen.ThriftyCodeGenerator", 028 comments = "https://github.com/microsoft/thrifty" 029) 030public class IFaceLogClient extends AsyncClientBase implements IFaceLog { 031 public IFaceLogClient(Protocol protocol, AsyncClientBase.Listener listener) { 032 super(protocol, listener); 033 } 034 035 @Override 036 public void addErrorLog(ErrorLogBean errorLogBean, Token token, 037 ServiceMethodCallback<Void> callback) { 038 this.enqueue(new AddErrorLogCall(errorLogBean, token, callback)); 039 } 040 041 @Override 042 public void addFeature(ByteString feature, String featureVersion, Integer personId, 043 List<FaceBean> faecBeans, String removed, Token token, 044 ServiceMethodCallback<FeatureBean> callback) { 045 this.enqueue(new AddFeatureCall(feature, featureVersion, personId, faecBeans, removed, token, callback)); 046 } 047 048 @Override 049 public void addFeatureMulti(ByteString feature, String featureVersion, Integer personId, 050 List<ByteString> photos, List<FaceBean> faces, String removed, Token token, 051 ServiceMethodCallback<FeatureBean> callback) { 052 this.enqueue(new AddFeatureMultiCall(feature, featureVersion, personId, photos, faces, removed, token, callback)); 053 } 054 055 @Override 056 public void addFeatureWithImage(ByteString feature, String featureVersion, Integer personId, 057 Boolean asIdPhotoIfAbsent, ByteString featurePhoto, FaceBean faceBean, String removed, 058 Token token, ServiceMethodCallback<FeatureBean> callback) { 059 this.enqueue(new AddFeatureWithImageCall(feature, featureVersion, personId, asIdPhotoIfAbsent, featurePhoto, faceBean, removed, token, callback)); 060 } 061 062 @Override 063 public void addImage(ByteString imageData, Integer deviceId, FaceBean faceBean, Integer personId, 064 Token token, ServiceMethodCallback<ImageBean> callback) { 065 this.enqueue(new AddImageCall(imageData, deviceId, faceBean, personId, token, callback)); 066 } 067 068 @Override 069 public void addLog(LogBean logBean, Token token, ServiceMethodCallback<Void> callback) { 070 this.enqueue(new AddLogCall(logBean, token, callback)); 071 } 072 073 @Override 074 public void addLogFull(LogBean logBean, FaceBean faceBean, ByteString featureImage, Token token, 075 ServiceMethodCallback<Void> callback) { 076 this.enqueue(new AddLogFullCall(logBean, faceBean, featureImage, token, callback)); 077 } 078 079 @Override 080 public void addLogWithFaceImage(LogBean logBean, ByteString faceImage, Token token, 081 ServiceMethodCallback<Void> callback) { 082 this.enqueue(new AddLogWithFaceImageCall(logBean, faceImage, token, callback)); 083 } 084 085 @Override 086 public void addLogs(List<LogBean> beans, Token token, ServiceMethodCallback<Void> callback) { 087 this.enqueue(new AddLogsCall(beans, token, callback)); 088 } 089 090 @Override 091 public void addLogsFull(List<LogBean> logBeans, List<FaceBean> faceBeans, 092 List<ByteString> featureImages, Token token, ServiceMethodCallback<Void> callback) { 093 this.enqueue(new AddLogsFullCall(logBeans, faceBeans, featureImages, token, callback)); 094 } 095 096 @Override 097 public void addLogsWithFaceImage(List<LogBean> logBeans, List<ByteString> faceImages, Token token, 098 ServiceMethodCallback<Void> callback) { 099 this.enqueue(new AddLogsWithFaceImageCall(logBeans, faceImages, token, callback)); 100 } 101 102 @Override 103 public void applyAckChannel(Token token, ServiceMethodCallback<String> callback) { 104 this.enqueue(new ApplyAckChannelCall(token, callback)); 105 } 106 107 @Override 108 public void applyAckChannelWithDuration(Integer duration, Token token, 109 ServiceMethodCallback<String> callback) { 110 this.enqueue(new ApplyAckChannelWithDurationCall(duration, token, callback)); 111 } 112 113 @Override 114 public void applyCmdSn(Token token, ServiceMethodCallback<Integer> callback) { 115 this.enqueue(new ApplyCmdSnCall(token, callback)); 116 } 117 118 @Override 119 public void applyPersonToken(Integer personId, String password, Boolean isMd5, 120 ServiceMethodCallback<Token> callback) { 121 this.enqueue(new ApplyPersonTokenCall(personId, password, isMd5, callback)); 122 } 123 124 @Override 125 public void applyRootToken(String password, Boolean isMd5, 126 ServiceMethodCallback<Token> callback) { 127 this.enqueue(new ApplyRootTokenCall(password, isMd5, callback)); 128 } 129 130 @Override 131 public void applyUserToken(Integer userid, String password, Boolean isMd5, 132 ServiceMethodCallback<Token> callback) { 133 this.enqueue(new ApplyUserTokenCall(userid, password, isMd5, callback)); 134 } 135 136 @Override 137 public void bindBorder(Integer personGroupId, Integer deviceGroupId, Token token, 138 ServiceMethodCallback<Void> callback) { 139 this.enqueue(new BindBorderCall(personGroupId, deviceGroupId, token, callback)); 140 } 141 142 @Override 143 public void childListForDeviceGroup(Integer deviceGroupId, 144 ServiceMethodCallback<List<Integer>> callback) { 145 this.enqueue(new ChildListForDeviceGroupCall(deviceGroupId, callback)); 146 } 147 148 @Override 149 public void childListForPersonGroup(Integer personGroupId, 150 ServiceMethodCallback<List<Integer>> callback) { 151 this.enqueue(new ChildListForPersonGroupCall(personGroupId, callback)); 152 } 153 154 @Override 155 public void countDeviceByWhere(String where, ServiceMethodCallback<Integer> callback) { 156 this.enqueue(new CountDeviceByWhereCall(where, callback)); 157 } 158 159 @Override 160 public void countDeviceGroupByWhere(String where, ServiceMethodCallback<Integer> callback) { 161 this.enqueue(new CountDeviceGroupByWhereCall(where, callback)); 162 } 163 164 @Override 165 public void countErrorLogByWhere(String where, ServiceMethodCallback<Integer> callback) { 166 this.enqueue(new CountErrorLogByWhereCall(where, callback)); 167 } 168 169 @Override 170 public void countLogByWhere(String where, ServiceMethodCallback<Integer> callback) { 171 this.enqueue(new CountLogByWhereCall(where, callback)); 172 } 173 174 @Override 175 public void countLogLightByVerifyTime(Long timestamp, ServiceMethodCallback<Integer> callback) { 176 this.enqueue(new CountLogLightByVerifyTimeCall(timestamp, callback)); 177 } 178 179 @Override 180 public void countLogLightByVerifyTimeTimestr(String timestamp, 181 ServiceMethodCallback<Integer> callback) { 182 this.enqueue(new CountLogLightByVerifyTimeTimestrCall(timestamp, callback)); 183 } 184 185 @Override 186 public void countLogLightByWhere(String where, ServiceMethodCallback<Integer> callback) { 187 this.enqueue(new CountLogLightByWhereCall(where, callback)); 188 } 189 190 @Override 191 public void countPersonByWhere(String where, ServiceMethodCallback<Integer> callback) { 192 this.enqueue(new CountPersonByWhereCall(where, callback)); 193 } 194 195 @Override 196 public void countPersonGroupByWhere(String where, ServiceMethodCallback<Integer> callback) { 197 this.enqueue(new CountPersonGroupByWhereCall(where, callback)); 198 } 199 200 @Override 201 public void countPersonLog(Integer personId, Long startDate, Long endDate, 202 ServiceMethodCallback<Map<String, Integer>> callback) { 203 this.enqueue(new CountPersonLogCall(personId, startDate, endDate, callback)); 204 } 205 206 @Override 207 public void countPersonLogTimeStr(Integer personId, String startDate, String endDate, 208 ServiceMethodCallback<Map<String, Integer>> callback) { 209 this.enqueue(new CountPersonLogTimeStrCall(personId, startDate, endDate, callback)); 210 } 211 212 @Override 213 public void createTempPwd(Integer targetId, TmpPwdTargetType targetType, String expiryDate, 214 Token token, ServiceMethodCallback<String> callback) { 215 this.enqueue(new CreateTempPwdCall(targetId, targetType, expiryDate, token, callback)); 216 } 217 218 @Override 219 public void createTempPwdWithDuration(Integer targetId, TmpPwdTargetType targetType, 220 Integer duration, Token token, ServiceMethodCallback<String> callback) { 221 this.enqueue(new CreateTempPwdWithDurationCall(targetId, targetType, duration, token, callback)); 222 } 223 224 @Override 225 public void deleteAllFeaturesByPersonId(Integer personId, Boolean deleteImage, Token token, 226 ServiceMethodCallback<Integer> callback) { 227 this.enqueue(new DeleteAllFeaturesByPersonIdCall(personId, deleteImage, token, callback)); 228 } 229 230 @Override 231 public void deleteDevice(Integer id, Token token, ServiceMethodCallback<Boolean> callback) { 232 this.enqueue(new DeleteDeviceCall(id, token, callback)); 233 } 234 235 @Override 236 public void deleteDeviceByMac(String mac, Token token, ServiceMethodCallback<Boolean> callback) { 237 this.enqueue(new DeleteDeviceByMacCall(mac, token, callback)); 238 } 239 240 @Override 241 public void deleteDeviceGroup(Integer deviceGroupId, Token token, 242 ServiceMethodCallback<Integer> callback) { 243 this.enqueue(new DeleteDeviceGroupCall(deviceGroupId, token, callback)); 244 } 245 246 @Override 247 public void deleteErrorLogByWhere(String where, Token token, 248 ServiceMethodCallback<Integer> callback) { 249 this.enqueue(new DeleteErrorLogByWhereCall(where, token, callback)); 250 } 251 252 @Override 253 public void deleteFeature(String featureMd5, Boolean deleteImage, Token token, 254 ServiceMethodCallback<List<String>> callback) { 255 this.enqueue(new DeleteFeatureCall(featureMd5, deleteImage, token, callback)); 256 } 257 258 @Override 259 public void deleteGroupPermitOnDeviceGroup(Integer deviceGroupId, Token token, 260 ServiceMethodCallback<Integer> callback) { 261 this.enqueue(new DeleteGroupPermitOnDeviceGroupCall(deviceGroupId, token, callback)); 262 } 263 264 @Override 265 public void deleteImage(String imageMd5, Token token, ServiceMethodCallback<Integer> callback) { 266 this.enqueue(new DeleteImageCall(imageMd5, token, callback)); 267 } 268 269 @Override 270 public void deleteLogByWhere(String where, Token token, ServiceMethodCallback<Integer> callback) { 271 this.enqueue(new DeleteLogByWhereCall(where, token, callback)); 272 } 273 274 @Override 275 public void deletePermitById(Integer deviceGroupId, Integer personGroupId, Token token, 276 ServiceMethodCallback<Integer> callback) { 277 this.enqueue(new DeletePermitByIdCall(deviceGroupId, personGroupId, token, callback)); 278 } 279 280 @Override 281 public void deletePerson(Integer personId, Token token, ServiceMethodCallback<Integer> callback) { 282 this.enqueue(new DeletePersonCall(personId, token, callback)); 283 } 284 285 @Override 286 public void deletePersonByPapersNum(String papersNum, Token token, 287 ServiceMethodCallback<Integer> callback) { 288 this.enqueue(new DeletePersonByPapersNumCall(papersNum, token, callback)); 289 } 290 291 @Override 292 public void deletePersonGroup(Integer personGroupId, Token token, 293 ServiceMethodCallback<Integer> callback) { 294 this.enqueue(new DeletePersonGroupCall(personGroupId, token, callback)); 295 } 296 297 @Override 298 public void deletePersonGroupPermit(Integer personGroupId, Token token, 299 ServiceMethodCallback<Integer> callback) { 300 this.enqueue(new DeletePersonGroupPermitCall(personGroupId, token, callback)); 301 } 302 303 @Override 304 public void deletePersons(List<Integer> personIdList, Token token, 305 ServiceMethodCallback<Integer> callback) { 306 this.enqueue(new DeletePersonsCall(personIdList, token, callback)); 307 } 308 309 @Override 310 public void deletePersonsByPapersNum(List<String> papersNumlist, Token token, 311 ServiceMethodCallback<Integer> callback) { 312 this.enqueue(new DeletePersonsByPapersNumCall(papersNumlist, token, callback)); 313 } 314 315 @Override 316 public void disablePerson(Integer personId, Integer moveToGroupId, Boolean deletePhoto, 317 Boolean deleteFeature, Boolean deleteLog, Token token, ServiceMethodCallback<Void> callback) { 318 this.enqueue(new DisablePersonCall(personId, moveToGroupId, deletePhoto, deleteFeature, deleteLog, token, callback)); 319 } 320 321 @Override 322 public void disablePersonList(List<Integer> personIdList, Token token, 323 ServiceMethodCallback<Void> callback) { 324 this.enqueue(new DisablePersonListCall(personIdList, token, callback)); 325 } 326 327 @Override 328 public void existsDevice(Integer id, ServiceMethodCallback<Boolean> callback) { 329 this.enqueue(new ExistsDeviceCall(id, callback)); 330 } 331 332 @Override 333 public void existsFeature(String md5, ServiceMethodCallback<Boolean> callback) { 334 this.enqueue(new ExistsFeatureCall(md5, callback)); 335 } 336 337 @Override 338 public void existsImage(String md5, ServiceMethodCallback<Boolean> callback) { 339 this.enqueue(new ExistsImageCall(md5, callback)); 340 } 341 342 @Override 343 public void existsPerson(Integer persionId, ServiceMethodCallback<Boolean> callback) { 344 this.enqueue(new ExistsPersonCall(persionId, callback)); 345 } 346 347 @Override 348 public void faceRecognizePersonPermitted(ByteString imageData, Double threshold, Integer deviceId, 349 ServiceMethodCallback<Integer> callback) { 350 this.enqueue(new FaceRecognizePersonPermittedCall(imageData, threshold, deviceId, callback)); 351 } 352 353 @Override 354 public void getDevice(Integer deviceId, ServiceMethodCallback<DeviceBean> callback) { 355 this.enqueue(new GetDeviceCall(deviceId, callback)); 356 } 357 358 @Override 359 public void getDeviceByMac(String mac, ServiceMethodCallback<DeviceBean> callback) { 360 this.enqueue(new GetDeviceByMacCall(mac, callback)); 361 } 362 363 @Override 364 public void getDeviceGroup(Integer deviceGroupId, 365 ServiceMethodCallback<DeviceGroupBean> callback) { 366 this.enqueue(new GetDeviceGroupCall(deviceGroupId, callback)); 367 } 368 369 @Override 370 public void getDeviceGroups(List<Integer> groupIdList, 371 ServiceMethodCallback<List<DeviceGroupBean>> callback) { 372 this.enqueue(new GetDeviceGroupsCall(groupIdList, callback)); 373 } 374 375 @Override 376 public void getDeviceGroupsBelongs(Integer deviceId, 377 ServiceMethodCallback<List<Integer>> callback) { 378 this.enqueue(new GetDeviceGroupsBelongsCall(deviceId, callback)); 379 } 380 381 @Override 382 public void getDeviceGroupsPermit(Integer personGroupId, 383 ServiceMethodCallback<List<Integer>> callback) { 384 this.enqueue(new GetDeviceGroupsPermitCall(personGroupId, callback)); 385 } 386 387 @Override 388 public void getDeviceGroupsPermittedBy(Integer personGroupId, 389 ServiceMethodCallback<List<Integer>> callback) { 390 this.enqueue(new GetDeviceGroupsPermittedByCall(personGroupId, callback)); 391 } 392 393 @Override 394 public void getDeviceIdOfFeature(String featureMd5, ServiceMethodCallback<Integer> callback) { 395 this.enqueue(new GetDeviceIdOfFeatureCall(featureMd5, callback)); 396 } 397 398 @Override 399 public void getDevices(List<Integer> idList, ServiceMethodCallback<List<DeviceBean>> callback) { 400 this.enqueue(new GetDevicesCall(idList, callback)); 401 } 402 403 @Override 404 public void getDevicesOfGroup(Integer deviceGroupId, 405 ServiceMethodCallback<List<Integer>> callback) { 406 this.enqueue(new GetDevicesOfGroupCall(deviceGroupId, callback)); 407 } 408 409 @Override 410 public void getFace(Integer faceId, ServiceMethodCallback<FaceBean> callback) { 411 this.enqueue(new GetFaceCall(faceId, callback)); 412 } 413 414 @Override 415 public void getFaceApiParameters(Token token, 416 ServiceMethodCallback<Map<String, String>> callback) { 417 this.enqueue(new GetFaceApiParametersCall(token, callback)); 418 } 419 420 @Override 421 public void getFacesOfFeature(String featureMd5, ServiceMethodCallback<List<FaceBean>> callback) { 422 this.enqueue(new GetFacesOfFeatureCall(featureMd5, callback)); 423 } 424 425 @Override 426 public void getFacesOfImage(String imageMd5, ServiceMethodCallback<List<FaceBean>> callback) { 427 this.enqueue(new GetFacesOfImageCall(imageMd5, callback)); 428 } 429 430 @Override 431 public void getFeature(String md5, ServiceMethodCallback<FeatureBean> callback) { 432 this.enqueue(new GetFeatureCall(md5, callback)); 433 } 434 435 @Override 436 public void getFeatureBytes(String md5, ServiceMethodCallback<ByteString> callback) { 437 this.enqueue(new GetFeatureBytesCall(md5, callback)); 438 } 439 440 @Override 441 public void getFeatureBytesList(List<String> md5List, Boolean truncation, 442 ServiceMethodCallback<List<ByteString>> callback) { 443 this.enqueue(new GetFeatureBytesListCall(md5List, truncation, callback)); 444 } 445 446 @Override 447 public void getFeatureBytesTruncation(String md5, Boolean truncation, 448 ServiceMethodCallback<ByteString> callback) { 449 this.enqueue(new GetFeatureBytesTruncationCall(md5, truncation, callback)); 450 } 451 452 @Override 453 public void getFeatures(List<String> md5List, ServiceMethodCallback<List<FeatureBean>> callback) { 454 this.enqueue(new GetFeaturesCall(md5List, callback)); 455 } 456 457 @Override 458 public void getFeaturesByPersonIdAndSdkVersion(Integer personId, String sdkVersion, 459 ServiceMethodCallback<List<String>> callback) { 460 this.enqueue(new GetFeaturesByPersonIdAndSdkVersionCall(personId, sdkVersion, callback)); 461 } 462 463 @Override 464 public void getFeaturesOfImage(String imageMd5, ServiceMethodCallback<List<String>> callback) { 465 this.enqueue(new GetFeaturesOfImageCall(imageMd5, callback)); 466 } 467 468 @Override 469 public void getFeaturesOfPerson(Integer personId, ServiceMethodCallback<List<String>> callback) { 470 this.enqueue(new GetFeaturesOfPersonCall(personId, callback)); 471 } 472 473 @Override 474 public void getFeaturesPermittedOnDevice(Integer deviceId, Boolean ignoreSchedule, 475 String sdkVersion, List<String> excludeFeatureIds, Long timestamp, 476 ServiceMethodCallback<List<String>> callback) { 477 this.enqueue(new GetFeaturesPermittedOnDeviceCall(deviceId, ignoreSchedule, sdkVersion, excludeFeatureIds, timestamp, callback)); 478 } 479 480 @Override 481 public void getGroupPermit(Integer deviceId, Integer personGroupId, 482 ServiceMethodCallback<PermitBean> callback) { 483 this.enqueue(new GetGroupPermitCall(deviceId, personGroupId, callback)); 484 } 485 486 @Override 487 public void getGroupPermitOnDeviceGroup(Integer deviceGroupId, Integer personGroupId, 488 ServiceMethodCallback<PermitBean> callback) { 489 this.enqueue(new GetGroupPermitOnDeviceGroupCall(deviceGroupId, personGroupId, callback)); 490 } 491 492 @Override 493 public void getGroupPermits(Integer deviceId, List<Integer> personGroupIdList, 494 ServiceMethodCallback<List<PermitBean>> callback) { 495 this.enqueue(new GetGroupPermitsCall(deviceId, personGroupIdList, callback)); 496 } 497 498 @Override 499 public void getImage(String imageMD5, ServiceMethodCallback<ImageBean> callback) { 500 this.enqueue(new GetImageCall(imageMD5, callback)); 501 } 502 503 @Override 504 public void getImageBytes(String imageMD5, ServiceMethodCallback<ByteString> callback) { 505 this.enqueue(new GetImageBytesCall(imageMD5, callback)); 506 } 507 508 @Override 509 public void getImageBytesRef(String primaryKey, String refType, 510 ServiceMethodCallback<ByteString> callback) { 511 this.enqueue(new GetImageBytesRefCall(primaryKey, refType, callback)); 512 } 513 514 @Override 515 public void getImageRef(String primaryKey, String refType, 516 ServiceMethodCallback<ImageBean> callback) { 517 this.enqueue(new GetImageRefCall(primaryKey, refType, callback)); 518 } 519 520 @Override 521 public void getImagesAssociatedByFeature(String featureMd5, 522 ServiceMethodCallback<List<String>> callback) { 523 this.enqueue(new GetImagesAssociatedByFeatureCall(featureMd5, callback)); 524 } 525 526 @Override 527 public void getLogBeansByPersonId(Integer personId, 528 ServiceMethodCallback<List<LogBean>> callback) { 529 this.enqueue(new GetLogBeansByPersonIdCall(personId, callback)); 530 } 531 532 @Override 533 public void getMessageQueueParameters(Token token, 534 ServiceMethodCallback<Map<MQParam, String>> callback) { 535 this.enqueue(new GetMessageQueueParametersCall(token, callback)); 536 } 537 538 @Override 539 public void getPerson(Integer personId, ServiceMethodCallback<PersonBean> callback) { 540 this.enqueue(new GetPersonCall(personId, callback)); 541 } 542 543 @Override 544 public void getPersonByMobilePhone(String mobilePhone, 545 ServiceMethodCallback<PersonBean> callback) { 546 this.enqueue(new GetPersonByMobilePhoneCall(mobilePhone, callback)); 547 } 548 549 @Override 550 public void getPersonByMobilePhoneReal(String mobilePhone, Token token, 551 ServiceMethodCallback<PersonBean> callback) { 552 this.enqueue(new GetPersonByMobilePhoneRealCall(mobilePhone, token, callback)); 553 } 554 555 @Override 556 public void getPersonByPapersNum(String papersNum, ServiceMethodCallback<PersonBean> callback) { 557 this.enqueue(new GetPersonByPapersNumCall(papersNum, callback)); 558 } 559 560 @Override 561 public void getPersonByPapersNumReal(String papersNum, Token token, 562 ServiceMethodCallback<PersonBean> callback) { 563 this.enqueue(new GetPersonByPapersNumRealCall(papersNum, token, callback)); 564 } 565 566 @Override 567 public void getPersonGroup(Integer personGroupId, 568 ServiceMethodCallback<PersonGroupBean> callback) { 569 this.enqueue(new GetPersonGroupCall(personGroupId, callback)); 570 } 571 572 @Override 573 public void getPersonGroups(List<Integer> groupIdList, 574 ServiceMethodCallback<List<PersonGroupBean>> callback) { 575 this.enqueue(new GetPersonGroupsCall(groupIdList, callback)); 576 } 577 578 @Override 579 public void getPersonGroupsBelongs(Integer personId, 580 ServiceMethodCallback<List<Integer>> callback) { 581 this.enqueue(new GetPersonGroupsBelongsCall(personId, callback)); 582 } 583 584 @Override 585 public void getPersonGroupsPermittedBy(Integer deviceGroupId, 586 ServiceMethodCallback<List<Integer>> callback) { 587 this.enqueue(new GetPersonGroupsPermittedByCall(deviceGroupId, callback)); 588 } 589 590 @Override 591 public void getPersonPermit(Integer deviceId, Integer personId, 592 ServiceMethodCallback<PermitBean> callback) { 593 this.enqueue(new GetPersonPermitCall(deviceId, personId, callback)); 594 } 595 596 @Override 597 public void getPersonPermits(Integer deviceId, List<Integer> personIdList, 598 ServiceMethodCallback<List<PermitBean>> callback) { 599 this.enqueue(new GetPersonPermitsCall(deviceId, personIdList, callback)); 600 } 601 602 @Override 603 public void getPersonReal(Integer personId, Token token, 604 ServiceMethodCallback<PersonBean> callback) { 605 this.enqueue(new GetPersonRealCall(personId, token, callback)); 606 } 607 608 @Override 609 public void getPersons(List<Integer> idList, ServiceMethodCallback<List<PersonBean>> callback) { 610 this.enqueue(new GetPersonsCall(idList, callback)); 611 } 612 613 @Override 614 public void getPersonsOfGroup(Integer personGroupId, 615 ServiceMethodCallback<List<Integer>> callback) { 616 this.enqueue(new GetPersonsOfGroupCall(personGroupId, callback)); 617 } 618 619 @Override 620 public void getPersonsPermittedOnDevice(Integer deviceId, Boolean ignoreSchedule, 621 List<Integer> excludePersonIds, Long timestamp, 622 ServiceMethodCallback<List<Integer>> callback) { 623 this.enqueue(new GetPersonsPermittedOnDeviceCall(deviceId, ignoreSchedule, excludePersonIds, timestamp, callback)); 624 } 625 626 @Override 627 public void getPersonsReal(List<Integer> idList, Token token, 628 ServiceMethodCallback<List<PersonBean>> callback) { 629 this.enqueue(new GetPersonsRealCall(idList, token, callback)); 630 } 631 632 @Override 633 public void getProperties(String prefix, Token token, 634 ServiceMethodCallback<Map<String, String>> callback) { 635 this.enqueue(new GetPropertiesCall(prefix, token, callback)); 636 } 637 638 @Override 639 public void getProperty(String key, Token token, ServiceMethodCallback<String> callback) { 640 this.enqueue(new GetPropertyCall(key, token, callback)); 641 } 642 643 @Override 644 public void getRedisParameters(Token token, 645 ServiceMethodCallback<Map<MQParam, String>> callback) { 646 this.enqueue(new GetRedisParametersCall(token, callback)); 647 } 648 649 @Override 650 public void getServiceConfig(Token token, ServiceMethodCallback<Map<String, String>> callback) { 651 this.enqueue(new GetServiceConfigCall(token, callback)); 652 } 653 654 @Override 655 public void getSubDeviceGroup(Integer deviceGroupId, 656 ServiceMethodCallback<List<Integer>> callback) { 657 this.enqueue(new GetSubDeviceGroupCall(deviceGroupId, callback)); 658 } 659 660 @Override 661 public void getSubPersonGroup(Integer personGroupId, 662 ServiceMethodCallback<List<Integer>> callback) { 663 this.enqueue(new GetSubPersonGroupCall(personGroupId, callback)); 664 } 665 666 @Override 667 public void getTargetInfo4PwdOnDevice(String pwd, Token token, 668 ServiceMethodCallback<TmpwdTargetInfo> callback) { 669 this.enqueue(new GetTargetInfo4PwdOnDeviceCall(pwd, token, callback)); 670 } 671 672 @Override 673 public void initTopGroup(TopGroupInfo groupInfo, Token token, 674 ServiceMethodCallback<Integer> callback) { 675 this.enqueue(new InitTopGroupCall(groupInfo, token, callback)); 676 } 677 678 @Override 679 public void isDisable(Integer personId, ServiceMethodCallback<Boolean> callback) { 680 this.enqueue(new IsDisableCall(personId, callback)); 681 } 682 683 @Override 684 public void isLocal(ServiceMethodCallback<Boolean> callback) { 685 this.enqueue(new IsLocalCall(callback)); 686 } 687 688 @Override 689 public void isValidAckChannel(String ackChannel, ServiceMethodCallback<Boolean> callback) { 690 this.enqueue(new IsValidAckChannelCall(ackChannel, callback)); 691 } 692 693 @Override 694 public void isValidCmdSn(Integer cmdSn, ServiceMethodCallback<Boolean> callback) { 695 this.enqueue(new IsValidCmdSnCall(cmdSn, callback)); 696 } 697 698 @Override 699 public void isValidDeviceToken(Token token, ServiceMethodCallback<Boolean> callback) { 700 this.enqueue(new IsValidDeviceTokenCall(token, callback)); 701 } 702 703 @Override 704 public void isValidPassword(String userId, String password, Boolean isMd5, 705 ServiceMethodCallback<Boolean> callback) { 706 this.enqueue(new IsValidPasswordCall(userId, password, isMd5, callback)); 707 } 708 709 @Override 710 public void isValidPersonToken(Token token, ServiceMethodCallback<Boolean> callback) { 711 this.enqueue(new IsValidPersonTokenCall(token, callback)); 712 } 713 714 @Override 715 public void isValidRootToken(Token token, ServiceMethodCallback<Boolean> callback) { 716 this.enqueue(new IsValidRootTokenCall(token, callback)); 717 } 718 719 @Override 720 public void isValidToken(Token token, ServiceMethodCallback<Boolean> callback) { 721 this.enqueue(new IsValidTokenCall(token, callback)); 722 } 723 724 @Override 725 public void isValidUserToken(Token token, ServiceMethodCallback<Boolean> callback) { 726 this.enqueue(new IsValidUserTokenCall(token, callback)); 727 } 728 729 @Override 730 public void iso8601Time(ServiceMethodCallback<String> callback) { 731 this.enqueue(new Iso8601TimeCall(callback)); 732 } 733 734 @Override 735 public void listOfParentForDeviceGroup(Integer deviceGroupId, 736 ServiceMethodCallback<List<Integer>> callback) { 737 this.enqueue(new ListOfParentForDeviceGroupCall(deviceGroupId, callback)); 738 } 739 740 @Override 741 public void listOfParentForPersonGroup(Integer personGroupId, 742 ServiceMethodCallback<List<Integer>> callback) { 743 this.enqueue(new ListOfParentForPersonGroupCall(personGroupId, callback)); 744 } 745 746 @Override 747 public void loadAllPerson(ServiceMethodCallback<List<Integer>> callback) { 748 this.enqueue(new LoadAllPersonCall(callback)); 749 } 750 751 @Override 752 public void loadDeviceByWhere(String where, Integer startRow, Integer numRows, 753 ServiceMethodCallback<List<DeviceBean>> callback) { 754 this.enqueue(new LoadDeviceByWhereCall(where, startRow, numRows, callback)); 755 } 756 757 @Override 758 public void loadDeviceGroupByWhere(String where, Integer startRow, Integer numRows, 759 ServiceMethodCallback<List<Integer>> callback) { 760 this.enqueue(new LoadDeviceGroupByWhereCall(where, startRow, numRows, callback)); 761 } 762 763 @Override 764 public void loadDeviceGroupIdByWhere(String where, 765 ServiceMethodCallback<List<Integer>> callback) { 766 this.enqueue(new LoadDeviceGroupIdByWhereCall(where, callback)); 767 } 768 769 @Override 770 public void loadDeviceIdByWhere(String where, ServiceMethodCallback<List<Integer>> callback) { 771 this.enqueue(new LoadDeviceIdByWhereCall(where, callback)); 772 } 773 774 @Override 775 public void loadDistinctIntegerColumn(String table, String column, String where, 776 ServiceMethodCallback<List<Integer>> callback) { 777 this.enqueue(new LoadDistinctIntegerColumnCall(table, column, where, callback)); 778 } 779 780 @Override 781 public void loadDistinctStringColumn(String table, String column, String where, 782 ServiceMethodCallback<List<String>> callback) { 783 this.enqueue(new LoadDistinctStringColumnCall(table, column, where, callback)); 784 } 785 786 @Override 787 public void loadErrorLogByWhere(String where, Integer startRow, Integer numRows, 788 ServiceMethodCallback<List<ErrorLogBean>> callback) { 789 this.enqueue(new LoadErrorLogByWhereCall(where, startRow, numRows, callback)); 790 } 791 792 @Override 793 public void loadFeatureMd5ByUpdate(Long timestamp, ServiceMethodCallback<List<String>> callback) { 794 this.enqueue(new LoadFeatureMd5ByUpdateCall(timestamp, callback)); 795 } 796 797 @Override 798 public void loadFeatureMd5ByUpdateTimeStr(String timestamp, 799 ServiceMethodCallback<List<String>> callback) { 800 this.enqueue(new LoadFeatureMd5ByUpdateTimeStrCall(timestamp, callback)); 801 } 802 803 @Override 804 public void loadLogByWhere(String where, Integer startRow, Integer numRows, 805 ServiceMethodCallback<List<LogBean>> callback) { 806 this.enqueue(new LoadLogByWhereCall(where, startRow, numRows, callback)); 807 } 808 809 @Override 810 public void loadLogLightByVerifyTime(Long timestamp, Integer startRow, Integer numRows, 811 ServiceMethodCallback<List<LogLightBean>> callback) { 812 this.enqueue(new LoadLogLightByVerifyTimeCall(timestamp, startRow, numRows, callback)); 813 } 814 815 @Override 816 public void loadLogLightByVerifyTimeTimestr(String timestamp, Integer startRow, Integer numRows, 817 ServiceMethodCallback<List<LogLightBean>> callback) { 818 this.enqueue(new LoadLogLightByVerifyTimeTimestrCall(timestamp, startRow, numRows, callback)); 819 } 820 821 @Override 822 public void loadLogLightByWhere(String where, Integer startRow, Integer numRows, 823 ServiceMethodCallback<List<LogLightBean>> callback) { 824 this.enqueue(new LoadLogLightByWhereCall(where, startRow, numRows, callback)); 825 } 826 827 @Override 828 public void loadPermitByUpdate(Long timestamp, ServiceMethodCallback<List<PermitBean>> callback) { 829 this.enqueue(new LoadPermitByUpdateCall(timestamp, callback)); 830 } 831 832 @Override 833 public void loadPermitByUpdateTimestr(String timestamp, 834 ServiceMethodCallback<List<PermitBean>> callback) { 835 this.enqueue(new LoadPermitByUpdateTimestrCall(timestamp, callback)); 836 } 837 838 @Override 839 public void loadPersonByWhere(String where, Integer startRow, Integer numRows, 840 ServiceMethodCallback<List<PersonBean>> callback) { 841 this.enqueue(new LoadPersonByWhereCall(where, startRow, numRows, callback)); 842 } 843 844 @Override 845 public void loadPersonByWhereReal(String where, Integer startRow, Integer numRows, Token token, 846 ServiceMethodCallback<List<PersonBean>> callback) { 847 this.enqueue(new LoadPersonByWhereRealCall(where, startRow, numRows, token, callback)); 848 } 849 850 @Override 851 public void loadPersonGroupByWhere(String where, Integer startRow, Integer numRows, 852 ServiceMethodCallback<List<Integer>> callback) { 853 this.enqueue(new LoadPersonGroupByWhereCall(where, startRow, numRows, callback)); 854 } 855 856 @Override 857 public void loadPersonGroupIdByWhere(String where, 858 ServiceMethodCallback<List<Integer>> callback) { 859 this.enqueue(new LoadPersonGroupIdByWhereCall(where, callback)); 860 } 861 862 @Override 863 public void loadPersonIdByUpdateTime(Long timestamp, 864 ServiceMethodCallback<List<Integer>> callback) { 865 this.enqueue(new LoadPersonIdByUpdateTimeCall(timestamp, callback)); 866 } 867 868 @Override 869 public void loadPersonIdByUpdateTimeTimeStr(String timestamp, 870 ServiceMethodCallback<List<Integer>> callback) { 871 this.enqueue(new LoadPersonIdByUpdateTimeTimeStrCall(timestamp, callback)); 872 } 873 874 @Override 875 public void loadPersonIdByWhere(String where, ServiceMethodCallback<List<Integer>> callback) { 876 this.enqueue(new LoadPersonIdByWhereCall(where, callback)); 877 } 878 879 @Override 880 public void loadUpdatedPersons(Long timestamp, ServiceMethodCallback<List<Integer>> callback) { 881 this.enqueue(new LoadUpdatedPersonsCall(timestamp, callback)); 882 } 883 884 @Override 885 public void loadUpdatedPersonsTimestr(String timestamp, 886 ServiceMethodCallback<List<Integer>> callback) { 887 this.enqueue(new LoadUpdatedPersonsTimestrCall(timestamp, callback)); 888 } 889 890 @Override 891 public void lockWakeup(DeviceBean deviceBean, Boolean ignoreSchedule, String sdkVersion, 892 ServiceMethodCallback<LockWakeupResponse> callback) { 893 this.enqueue(new LockWakeupCall(deviceBean, ignoreSchedule, sdkVersion, callback)); 894 } 895 896 @Override 897 public void offline(Token token, ServiceMethodCallback<Void> callback) { 898 this.enqueue(new OfflineCall(token, callback)); 899 } 900 901 @Override 902 public void online(DeviceBean device, ServiceMethodCallback<Token> callback) { 903 this.enqueue(new OnlineCall(device, callback)); 904 } 905 906 @Override 907 public void registerDevice(DeviceBean newDevice, ServiceMethodCallback<DeviceBean> callback) { 908 this.enqueue(new RegisterDeviceCall(newDevice, callback)); 909 } 910 911 @Override 912 public void releasePersonToken(Token token, ServiceMethodCallback<Void> callback) { 913 this.enqueue(new ReleasePersonTokenCall(token, callback)); 914 } 915 916 @Override 917 public void releaseRootToken(Token token, ServiceMethodCallback<Void> callback) { 918 this.enqueue(new ReleaseRootTokenCall(token, callback)); 919 } 920 921 @Override 922 public void releaseUserToken(Token token, ServiceMethodCallback<Void> callback) { 923 this.enqueue(new ReleaseUserTokenCall(token, callback)); 924 } 925 926 @Override 927 public void replaceFeature(Integer personId, String featureMd5, Boolean deleteOldFeatureImage, 928 Token token, ServiceMethodCallback<Void> callback) { 929 this.enqueue(new ReplaceFeatureCall(personId, featureMd5, deleteOldFeatureImage, token, callback)); 930 } 931 932 @Override 933 public void rootGroupOfDevice(Integer deviceId, ServiceMethodCallback<Integer> callback) { 934 this.enqueue(new RootGroupOfDeviceCall(deviceId, callback)); 935 } 936 937 @Override 938 public void rootGroupOfDeviceGroup(Integer groupId, ServiceMethodCallback<Integer> callback) { 939 this.enqueue(new RootGroupOfDeviceGroupCall(groupId, callback)); 940 } 941 942 @Override 943 public void rootGroupOfPerson(Integer personId, ServiceMethodCallback<Integer> callback) { 944 this.enqueue(new RootGroupOfPersonCall(personId, callback)); 945 } 946 947 @Override 948 public void rootGroupOfPersonGroup(Integer groupId, ServiceMethodCallback<Integer> callback) { 949 this.enqueue(new RootGroupOfPersonGroupCall(groupId, callback)); 950 } 951 952 @Override 953 public void runCmd(List<Integer> target, Boolean group, String cmdpath, String jsonArgs, 954 String ackChannel, Token token, ServiceMethodCallback<String> callback) { 955 this.enqueue(new RunCmdCall(target, group, cmdpath, jsonArgs, ackChannel, token, callback)); 956 } 957 958 @Override 959 public void runTask(String taskQueue, String cmdpath, String jsonArgs, String ackChannel, 960 Token token, ServiceMethodCallback<Integer> callback) { 961 this.enqueue(new RunTaskCall(taskQueue, cmdpath, jsonArgs, ackChannel, token, callback)); 962 } 963 964 @Override 965 public void runTaskSync(String taskQueue, String cmdpath, String jsonArgs, Integer timeoutSecs, 966 Token token, ServiceMethodCallback<String> callback) { 967 this.enqueue(new RunTaskSyncCall(taskQueue, cmdpath, jsonArgs, timeoutSecs, token, callback)); 968 } 969 970 @Override 971 public void saveDevice(DeviceBean deviceBean, Token token, 972 ServiceMethodCallback<DeviceBean> callback) { 973 this.enqueue(new SaveDeviceCall(deviceBean, token, callback)); 974 } 975 976 @Override 977 public void saveDeviceGroup(DeviceGroupBean deviceGroupBean, Token token, 978 ServiceMethodCallback<DeviceGroupBean> callback) { 979 this.enqueue(new SaveDeviceGroupCall(deviceGroupBean, token, callback)); 980 } 981 982 @Override 983 public void savePermit(PermitBean permitBean, Token token, 984 ServiceMethodCallback<PermitBean> callback) { 985 this.enqueue(new SavePermitCall(permitBean, token, callback)); 986 } 987 988 @Override 989 public void savePermitWithColumn(Integer deviceGroupId, Integer personGroupId, String column, 990 String value, Token token, ServiceMethodCallback<PermitBean> callback) { 991 this.enqueue(new SavePermitWithColumnCall(deviceGroupId, personGroupId, column, value, token, callback)); 992 } 993 994 @Override 995 public void savePerson(PersonBean personBean, Token token, 996 ServiceMethodCallback<PersonBean> callback) { 997 this.enqueue(new SavePersonCall(personBean, token, callback)); 998 } 999 1000 @Override 1001 public void savePersonFull(PersonBean personBean, ByteString idPhoto, ByteString feature, 1002 String featureVersion, ByteString featureImage, FaceBean faceBean, Token token, 1003 ServiceMethodCallback<PersonBean> callback) { 1004 this.enqueue(new SavePersonFullCall(personBean, idPhoto, feature, featureVersion, featureImage, faceBean, token, callback)); 1005 } 1006 1007 @Override 1008 public void savePersonGroup(PersonGroupBean personGroupBean, Token token, 1009 ServiceMethodCallback<PersonGroupBean> callback) { 1010 this.enqueue(new SavePersonGroupCall(personGroupBean, token, callback)); 1011 } 1012 1013 @Override 1014 public void savePersonWithPhoto(PersonBean personBean, ByteString idPhoto, Token token, 1015 ServiceMethodCallback<PersonBean> callback) { 1016 this.enqueue(new SavePersonWithPhotoCall(personBean, idPhoto, token, callback)); 1017 } 1018 1019 @Override 1020 public void savePersonWithPhotoAndFeature(PersonBean personBean, ByteString idPhoto, 1021 FeatureBean featureBean, Token token, ServiceMethodCallback<PersonBean> callback) { 1022 this.enqueue(new SavePersonWithPhotoAndFeatureCall(personBean, idPhoto, featureBean, token, callback)); 1023 } 1024 1025 @Override 1026 public void savePersonWithPhotoAndFeatureMultiFaces(PersonBean personBean, ByteString idPhoto, 1027 ByteString feature, String featureVersion, List<FaceBean> faceBeans, Token token, 1028 ServiceMethodCallback<PersonBean> callback) { 1029 this.enqueue(new SavePersonWithPhotoAndFeatureMultiFacesCall(personBean, idPhoto, feature, featureVersion, faceBeans, token, callback)); 1030 } 1031 1032 @Override 1033 public void savePersonWithPhotoAndFeatureMultiImage(PersonBean personBean, ByteString idPhoto, 1034 ByteString feature, String featureVersion, List<ByteString> photos, List<FaceBean> faces, 1035 Token token, ServiceMethodCallback<PersonBean> callback) { 1036 this.enqueue(new SavePersonWithPhotoAndFeatureMultiImageCall(personBean, idPhoto, feature, featureVersion, photos, faces, token, callback)); 1037 } 1038 1039 @Override 1040 public void savePersonWithPhotoAndFeatureSaved(PersonBean personBean, String idPhotoMd5, 1041 String featureMd5, Token token, ServiceMethodCallback<PersonBean> callback) { 1042 this.enqueue(new SavePersonWithPhotoAndFeatureSavedCall(personBean, idPhotoMd5, featureMd5, token, callback)); 1043 } 1044 1045 @Override 1046 public void savePersons(List<PersonBean> persons, Token token, 1047 ServiceMethodCallback<Void> callback) { 1048 this.enqueue(new SavePersonsCall(persons, token, callback)); 1049 } 1050 1051 @Override 1052 public void savePersonsWithPhoto(List<ByteString> photos, List<PersonBean> persons, Token token, 1053 ServiceMethodCallback<Integer> callback) { 1054 this.enqueue(new SavePersonsWithPhotoCall(photos, persons, token, callback)); 1055 } 1056 1057 @Override 1058 public void saveServiceConfig(Token token, ServiceMethodCallback<Void> callback) { 1059 this.enqueue(new SaveServiceConfigCall(token, callback)); 1060 } 1061 1062 @Override 1063 public void sdkTaskQueueOf(String task, String sdkVersion, Token token, 1064 ServiceMethodCallback<String> callback) { 1065 this.enqueue(new SdkTaskQueueOfCall(task, sdkVersion, token, callback)); 1066 } 1067 1068 @Override 1069 public void setPersonExpiryDate(Integer personId, Long expiryDate, Token token, 1070 ServiceMethodCallback<Void> callback) { 1071 this.enqueue(new SetPersonExpiryDateCall(personId, expiryDate, token, callback)); 1072 } 1073 1074 @Override 1075 public void setPersonExpiryDateList(List<Integer> personIdList, Long expiryDate, Token token, 1076 ServiceMethodCallback<Void> callback) { 1077 this.enqueue(new SetPersonExpiryDateListCall(personIdList, expiryDate, token, callback)); 1078 } 1079 1080 @Override 1081 public void setPersonExpiryDateTimeStr(Integer personId, String expiryDate, Token token, 1082 ServiceMethodCallback<Void> callback) { 1083 this.enqueue(new SetPersonExpiryDateTimeStrCall(personId, expiryDate, token, callback)); 1084 } 1085 1086 @Override 1087 public void setProperties(Map<String, String> config, Token token, 1088 ServiceMethodCallback<Void> callback) { 1089 this.enqueue(new SetPropertiesCall(config, token, callback)); 1090 } 1091 1092 @Override 1093 public void setProperty(String key, String value, Token token, 1094 ServiceMethodCallback<Void> callback) { 1095 this.enqueue(new SetPropertyCall(key, value, token, callback)); 1096 } 1097 1098 @Override 1099 public void taskQueueOf(String task, Token token, ServiceMethodCallback<String> callback) { 1100 this.enqueue(new TaskQueueOfCall(task, token, callback)); 1101 } 1102 1103 @Override 1104 public void unbindBorder(Integer personGroupId, Integer deviceGroupId, Token token, 1105 ServiceMethodCallback<Void> callback) { 1106 this.enqueue(new UnbindBorderCall(personGroupId, deviceGroupId, token, callback)); 1107 } 1108 1109 @Override 1110 public void unregisterDevice(Token token, ServiceMethodCallback<Void> callback) { 1111 this.enqueue(new UnregisterDeviceCall(token, callback)); 1112 } 1113 1114 @Override 1115 public void updateDevice(DeviceBean deviceBean, Token token, 1116 ServiceMethodCallback<DeviceBean> callback) { 1117 this.enqueue(new UpdateDeviceCall(deviceBean, token, callback)); 1118 } 1119 1120 @Override 1121 public void version(ServiceMethodCallback<String> callback) { 1122 this.enqueue(new VersionCall(callback)); 1123 } 1124 1125 @Override 1126 public void versionInfo(ServiceMethodCallback<Map<String, String>> callback) { 1127 this.enqueue(new VersionInfoCall(callback)); 1128 } 1129 1130 private static final class AddErrorLogCall extends MethodCall<Void> { 1131 private final ErrorLogBean errorLogBean; 1132 1133 private final Token token; 1134 1135 AddErrorLogCall(ErrorLogBean errorLogBean, Token token, ServiceMethodCallback<Void> callback) { 1136 super("addErrorLog", TMessageType.CALL, callback); 1137 this.errorLogBean = errorLogBean; 1138 this.token = token; 1139 } 1140 1141 @Override 1142 protected void send(Protocol protocol) throws IOException { 1143 protocol.writeStructBegin("args"); 1144 if (this.errorLogBean != null) { 1145 protocol.writeFieldBegin("errorLogBean", 1, TType.STRUCT); 1146 net.gdface.facelog.client.thrift.ErrorLogBean.ADAPTER.write(protocol, this.errorLogBean); 1147 protocol.writeFieldEnd(); 1148 } 1149 if (this.token != null) { 1150 protocol.writeFieldBegin("token", 2, TType.STRUCT); 1151 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1152 protocol.writeFieldEnd(); 1153 } 1154 protocol.writeFieldStop(); 1155 protocol.writeStructEnd(); 1156 } 1157 1158 @Override 1159 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1160 ServiceRuntimeException ex1 = null; 1161 protocol.readStructBegin(); 1162 while (true) { 1163 FieldMetadata field = protocol.readFieldBegin(); 1164 if (field.typeId == TType.STOP) { 1165 break; 1166 } 1167 switch (field.fieldId) { 1168 case 1: { 1169 if (field.typeId == TType.STRUCT) { 1170 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1171 ex1 = value; 1172 } else { 1173 ProtocolUtil.skip(protocol, field.typeId); 1174 } 1175 } 1176 break; 1177 default: ProtocolUtil.skip(protocol, field.typeId); break; 1178 } 1179 protocol.readFieldEnd(); 1180 } 1181 protocol.readStructEnd(); 1182 if (ex1 != null) { 1183 throw ex1; 1184 } else { 1185 return null; 1186 } 1187 } 1188 } 1189 1190 private static final class AddFeatureCall extends MethodCall<FeatureBean> { 1191 private final ByteString feature; 1192 1193 private final String featureVersion; 1194 1195 private final Integer personId; 1196 1197 private final List<FaceBean> faecBeans; 1198 1199 private final String removed; 1200 1201 private final Token token; 1202 1203 AddFeatureCall(ByteString feature, String featureVersion, Integer personId, 1204 List<FaceBean> faecBeans, String removed, Token token, 1205 ServiceMethodCallback<FeatureBean> callback) { 1206 super("addFeature", TMessageType.CALL, callback); 1207 this.feature = feature; 1208 this.featureVersion = featureVersion; 1209 this.personId = personId; 1210 this.faecBeans = faecBeans; 1211 this.removed = removed; 1212 this.token = token; 1213 } 1214 1215 @Override 1216 protected void send(Protocol protocol) throws IOException { 1217 protocol.writeStructBegin("args"); 1218 if (this.feature != null) { 1219 protocol.writeFieldBegin("feature", 1, TType.STRING); 1220 protocol.writeBinary(this.feature); 1221 protocol.writeFieldEnd(); 1222 } 1223 if (this.featureVersion != null) { 1224 protocol.writeFieldBegin("featureVersion", 2, TType.STRING); 1225 protocol.writeString(this.featureVersion); 1226 protocol.writeFieldEnd(); 1227 } 1228 if (this.personId != null) { 1229 protocol.writeFieldBegin("personId", 3, TType.I32); 1230 protocol.writeI32(this.personId); 1231 protocol.writeFieldEnd(); 1232 } 1233 if (this.faecBeans != null) { 1234 protocol.writeFieldBegin("faecBeans", 4, TType.LIST); 1235 protocol.writeListBegin(TType.STRUCT, this.faecBeans.size()); 1236 for (FaceBean item0 : this.faecBeans) { 1237 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, item0); 1238 } 1239 protocol.writeListEnd(); 1240 protocol.writeFieldEnd(); 1241 } 1242 if (this.removed != null) { 1243 protocol.writeFieldBegin("removed", 5, TType.STRING); 1244 protocol.writeString(this.removed); 1245 protocol.writeFieldEnd(); 1246 } 1247 if (this.token != null) { 1248 protocol.writeFieldBegin("token", 6, TType.STRUCT); 1249 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1250 protocol.writeFieldEnd(); 1251 } 1252 protocol.writeFieldStop(); 1253 protocol.writeStructEnd(); 1254 } 1255 1256 @Override 1257 protected FeatureBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1258 FeatureBean result = null; 1259 DuplicateRecordException ex1 = null; 1260 ServiceRuntimeException ex2 = null; 1261 protocol.readStructBegin(); 1262 while (true) { 1263 FieldMetadata field = protocol.readFieldBegin(); 1264 if (field.typeId == TType.STOP) { 1265 break; 1266 } 1267 switch (field.fieldId) { 1268 case 0: { 1269 if (field.typeId == TType.STRUCT) { 1270 net.gdface.facelog.client.thrift.FeatureBean value = net.gdface.facelog.client.thrift.FeatureBean.ADAPTER.read(protocol); 1271 result = value; 1272 } else { 1273 ProtocolUtil.skip(protocol, field.typeId); 1274 } 1275 } 1276 break; 1277 case 1: { 1278 if (field.typeId == TType.STRUCT) { 1279 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 1280 ex1 = value; 1281 } else { 1282 ProtocolUtil.skip(protocol, field.typeId); 1283 } 1284 } 1285 break; 1286 case 2: { 1287 if (field.typeId == TType.STRUCT) { 1288 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1289 ex2 = value; 1290 } else { 1291 ProtocolUtil.skip(protocol, field.typeId); 1292 } 1293 } 1294 break; 1295 default: ProtocolUtil.skip(protocol, field.typeId); break; 1296 } 1297 protocol.readFieldEnd(); 1298 } 1299 protocol.readStructEnd(); 1300 if (result != null) { 1301 return result; 1302 } else if (ex1 != null) { 1303 throw ex1; 1304 } else if (ex2 != null) { 1305 throw ex2; 1306 } else { 1307 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 1308 } 1309 } 1310 } 1311 1312 private static final class AddFeatureMultiCall extends MethodCall<FeatureBean> { 1313 private final ByteString feature; 1314 1315 private final String featureVersion; 1316 1317 private final Integer personId; 1318 1319 private final List<ByteString> photos; 1320 1321 private final List<FaceBean> faces; 1322 1323 private final String removed; 1324 1325 private final Token token; 1326 1327 AddFeatureMultiCall(ByteString feature, String featureVersion, Integer personId, 1328 List<ByteString> photos, List<FaceBean> faces, String removed, Token token, 1329 ServiceMethodCallback<FeatureBean> callback) { 1330 super("addFeatureMulti", TMessageType.CALL, callback); 1331 this.feature = feature; 1332 this.featureVersion = featureVersion; 1333 this.personId = personId; 1334 this.photos = photos; 1335 this.faces = faces; 1336 this.removed = removed; 1337 this.token = token; 1338 } 1339 1340 @Override 1341 protected void send(Protocol protocol) throws IOException { 1342 protocol.writeStructBegin("args"); 1343 if (this.feature != null) { 1344 protocol.writeFieldBegin("feature", 1, TType.STRING); 1345 protocol.writeBinary(this.feature); 1346 protocol.writeFieldEnd(); 1347 } 1348 if (this.featureVersion != null) { 1349 protocol.writeFieldBegin("featureVersion", 2, TType.STRING); 1350 protocol.writeString(this.featureVersion); 1351 protocol.writeFieldEnd(); 1352 } 1353 if (this.personId != null) { 1354 protocol.writeFieldBegin("personId", 3, TType.I32); 1355 protocol.writeI32(this.personId); 1356 protocol.writeFieldEnd(); 1357 } 1358 if (this.photos != null) { 1359 protocol.writeFieldBegin("photos", 4, TType.LIST); 1360 protocol.writeListBegin(TType.STRING, this.photos.size()); 1361 for (ByteString item0 : this.photos) { 1362 protocol.writeBinary(item0); 1363 } 1364 protocol.writeListEnd(); 1365 protocol.writeFieldEnd(); 1366 } 1367 if (this.faces != null) { 1368 protocol.writeFieldBegin("faces", 5, TType.LIST); 1369 protocol.writeListBegin(TType.STRUCT, this.faces.size()); 1370 for (FaceBean item0 : this.faces) { 1371 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, item0); 1372 } 1373 protocol.writeListEnd(); 1374 protocol.writeFieldEnd(); 1375 } 1376 if (this.removed != null) { 1377 protocol.writeFieldBegin("removed", 6, TType.STRING); 1378 protocol.writeString(this.removed); 1379 protocol.writeFieldEnd(); 1380 } 1381 if (this.token != null) { 1382 protocol.writeFieldBegin("token", 7, TType.STRUCT); 1383 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1384 protocol.writeFieldEnd(); 1385 } 1386 protocol.writeFieldStop(); 1387 protocol.writeStructEnd(); 1388 } 1389 1390 @Override 1391 protected FeatureBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1392 FeatureBean result = null; 1393 DuplicateRecordException ex1 = null; 1394 ServiceRuntimeException ex2 = null; 1395 protocol.readStructBegin(); 1396 while (true) { 1397 FieldMetadata field = protocol.readFieldBegin(); 1398 if (field.typeId == TType.STOP) { 1399 break; 1400 } 1401 switch (field.fieldId) { 1402 case 0: { 1403 if (field.typeId == TType.STRUCT) { 1404 net.gdface.facelog.client.thrift.FeatureBean value = net.gdface.facelog.client.thrift.FeatureBean.ADAPTER.read(protocol); 1405 result = value; 1406 } else { 1407 ProtocolUtil.skip(protocol, field.typeId); 1408 } 1409 } 1410 break; 1411 case 1: { 1412 if (field.typeId == TType.STRUCT) { 1413 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 1414 ex1 = value; 1415 } else { 1416 ProtocolUtil.skip(protocol, field.typeId); 1417 } 1418 } 1419 break; 1420 case 2: { 1421 if (field.typeId == TType.STRUCT) { 1422 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1423 ex2 = value; 1424 } else { 1425 ProtocolUtil.skip(protocol, field.typeId); 1426 } 1427 } 1428 break; 1429 default: ProtocolUtil.skip(protocol, field.typeId); break; 1430 } 1431 protocol.readFieldEnd(); 1432 } 1433 protocol.readStructEnd(); 1434 if (result != null) { 1435 return result; 1436 } else if (ex1 != null) { 1437 throw ex1; 1438 } else if (ex2 != null) { 1439 throw ex2; 1440 } else { 1441 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 1442 } 1443 } 1444 } 1445 1446 private static final class AddFeatureWithImageCall extends MethodCall<FeatureBean> { 1447 private final ByteString feature; 1448 1449 private final String featureVersion; 1450 1451 private final Integer personId; 1452 1453 private final Boolean asIdPhotoIfAbsent; 1454 1455 private final ByteString featurePhoto; 1456 1457 private final FaceBean faceBean; 1458 1459 private final String removed; 1460 1461 private final Token token; 1462 1463 AddFeatureWithImageCall(ByteString feature, String featureVersion, Integer personId, 1464 Boolean asIdPhotoIfAbsent, ByteString featurePhoto, FaceBean faceBean, String removed, 1465 Token token, ServiceMethodCallback<FeatureBean> callback) { 1466 super("addFeatureWithImage", TMessageType.CALL, callback); 1467 this.feature = feature; 1468 this.featureVersion = featureVersion; 1469 this.personId = personId; 1470 if (asIdPhotoIfAbsent == null) throw new NullPointerException("asIdPhotoIfAbsent"); 1471 this.asIdPhotoIfAbsent = asIdPhotoIfAbsent; 1472 this.featurePhoto = featurePhoto; 1473 this.faceBean = faceBean; 1474 this.removed = removed; 1475 this.token = token; 1476 } 1477 1478 @Override 1479 protected void send(Protocol protocol) throws IOException { 1480 protocol.writeStructBegin("args"); 1481 if (this.feature != null) { 1482 protocol.writeFieldBegin("feature", 1, TType.STRING); 1483 protocol.writeBinary(this.feature); 1484 protocol.writeFieldEnd(); 1485 } 1486 if (this.featureVersion != null) { 1487 protocol.writeFieldBegin("featureVersion", 2, TType.STRING); 1488 protocol.writeString(this.featureVersion); 1489 protocol.writeFieldEnd(); 1490 } 1491 if (this.personId != null) { 1492 protocol.writeFieldBegin("personId", 3, TType.I32); 1493 protocol.writeI32(this.personId); 1494 protocol.writeFieldEnd(); 1495 } 1496 protocol.writeFieldBegin("asIdPhotoIfAbsent", 4, TType.BOOL); 1497 protocol.writeBool(this.asIdPhotoIfAbsent); 1498 protocol.writeFieldEnd(); 1499 if (this.featurePhoto != null) { 1500 protocol.writeFieldBegin("featurePhoto", 5, TType.STRING); 1501 protocol.writeBinary(this.featurePhoto); 1502 protocol.writeFieldEnd(); 1503 } 1504 if (this.faceBean != null) { 1505 protocol.writeFieldBegin("faceBean", 6, TType.STRUCT); 1506 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, this.faceBean); 1507 protocol.writeFieldEnd(); 1508 } 1509 if (this.removed != null) { 1510 protocol.writeFieldBegin("removed", 7, TType.STRING); 1511 protocol.writeString(this.removed); 1512 protocol.writeFieldEnd(); 1513 } 1514 if (this.token != null) { 1515 protocol.writeFieldBegin("token", 8, TType.STRUCT); 1516 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1517 protocol.writeFieldEnd(); 1518 } 1519 protocol.writeFieldStop(); 1520 protocol.writeStructEnd(); 1521 } 1522 1523 @Override 1524 protected FeatureBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1525 FeatureBean result = null; 1526 DuplicateRecordException ex1 = null; 1527 ServiceRuntimeException ex2 = null; 1528 protocol.readStructBegin(); 1529 while (true) { 1530 FieldMetadata field = protocol.readFieldBegin(); 1531 if (field.typeId == TType.STOP) { 1532 break; 1533 } 1534 switch (field.fieldId) { 1535 case 0: { 1536 if (field.typeId == TType.STRUCT) { 1537 net.gdface.facelog.client.thrift.FeatureBean value = net.gdface.facelog.client.thrift.FeatureBean.ADAPTER.read(protocol); 1538 result = value; 1539 } else { 1540 ProtocolUtil.skip(protocol, field.typeId); 1541 } 1542 } 1543 break; 1544 case 1: { 1545 if (field.typeId == TType.STRUCT) { 1546 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 1547 ex1 = value; 1548 } else { 1549 ProtocolUtil.skip(protocol, field.typeId); 1550 } 1551 } 1552 break; 1553 case 2: { 1554 if (field.typeId == TType.STRUCT) { 1555 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1556 ex2 = value; 1557 } else { 1558 ProtocolUtil.skip(protocol, field.typeId); 1559 } 1560 } 1561 break; 1562 default: ProtocolUtil.skip(protocol, field.typeId); break; 1563 } 1564 protocol.readFieldEnd(); 1565 } 1566 protocol.readStructEnd(); 1567 if (result != null) { 1568 return result; 1569 } else if (ex1 != null) { 1570 throw ex1; 1571 } else if (ex2 != null) { 1572 throw ex2; 1573 } else { 1574 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 1575 } 1576 } 1577 } 1578 1579 private static final class AddImageCall extends MethodCall<ImageBean> { 1580 private final ByteString imageData; 1581 1582 private final Integer deviceId; 1583 1584 private final FaceBean faceBean; 1585 1586 private final Integer personId; 1587 1588 private final Token token; 1589 1590 AddImageCall(ByteString imageData, Integer deviceId, FaceBean faceBean, Integer personId, 1591 Token token, ServiceMethodCallback<ImageBean> callback) { 1592 super("addImage", TMessageType.CALL, callback); 1593 this.imageData = imageData; 1594 this.deviceId = deviceId; 1595 this.faceBean = faceBean; 1596 this.personId = personId; 1597 this.token = token; 1598 } 1599 1600 @Override 1601 protected void send(Protocol protocol) throws IOException { 1602 protocol.writeStructBegin("args"); 1603 if (this.imageData != null) { 1604 protocol.writeFieldBegin("imageData", 1, TType.STRING); 1605 protocol.writeBinary(this.imageData); 1606 protocol.writeFieldEnd(); 1607 } 1608 if (this.deviceId != null) { 1609 protocol.writeFieldBegin("deviceId", 2, TType.I32); 1610 protocol.writeI32(this.deviceId); 1611 protocol.writeFieldEnd(); 1612 } 1613 if (this.faceBean != null) { 1614 protocol.writeFieldBegin("faceBean", 3, TType.STRUCT); 1615 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, this.faceBean); 1616 protocol.writeFieldEnd(); 1617 } 1618 if (this.personId != null) { 1619 protocol.writeFieldBegin("personId", 4, TType.I32); 1620 protocol.writeI32(this.personId); 1621 protocol.writeFieldEnd(); 1622 } 1623 if (this.token != null) { 1624 protocol.writeFieldBegin("token", 5, TType.STRUCT); 1625 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1626 protocol.writeFieldEnd(); 1627 } 1628 protocol.writeFieldStop(); 1629 protocol.writeStructEnd(); 1630 } 1631 1632 @Override 1633 protected ImageBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1634 ImageBean result = null; 1635 DuplicateRecordException ex1 = null; 1636 ServiceRuntimeException ex2 = null; 1637 protocol.readStructBegin(); 1638 while (true) { 1639 FieldMetadata field = protocol.readFieldBegin(); 1640 if (field.typeId == TType.STOP) { 1641 break; 1642 } 1643 switch (field.fieldId) { 1644 case 0: { 1645 if (field.typeId == TType.STRUCT) { 1646 net.gdface.facelog.client.thrift.ImageBean value = net.gdface.facelog.client.thrift.ImageBean.ADAPTER.read(protocol); 1647 result = value; 1648 } else { 1649 ProtocolUtil.skip(protocol, field.typeId); 1650 } 1651 } 1652 break; 1653 case 1: { 1654 if (field.typeId == TType.STRUCT) { 1655 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 1656 ex1 = value; 1657 } else { 1658 ProtocolUtil.skip(protocol, field.typeId); 1659 } 1660 } 1661 break; 1662 case 2: { 1663 if (field.typeId == TType.STRUCT) { 1664 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1665 ex2 = value; 1666 } else { 1667 ProtocolUtil.skip(protocol, field.typeId); 1668 } 1669 } 1670 break; 1671 default: ProtocolUtil.skip(protocol, field.typeId); break; 1672 } 1673 protocol.readFieldEnd(); 1674 } 1675 protocol.readStructEnd(); 1676 if (result != null) { 1677 return result; 1678 } else if (ex1 != null) { 1679 throw ex1; 1680 } else if (ex2 != null) { 1681 throw ex2; 1682 } else { 1683 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 1684 } 1685 } 1686 } 1687 1688 private static final class AddLogCall extends MethodCall<Void> { 1689 private final LogBean logBean; 1690 1691 private final Token token; 1692 1693 AddLogCall(LogBean logBean, Token token, ServiceMethodCallback<Void> callback) { 1694 super("addLog", TMessageType.CALL, callback); 1695 this.logBean = logBean; 1696 this.token = token; 1697 } 1698 1699 @Override 1700 protected void send(Protocol protocol) throws IOException { 1701 protocol.writeStructBegin("args"); 1702 if (this.logBean != null) { 1703 protocol.writeFieldBegin("logBean", 1, TType.STRUCT); 1704 net.gdface.facelog.client.thrift.LogBean.ADAPTER.write(protocol, this.logBean); 1705 protocol.writeFieldEnd(); 1706 } 1707 if (this.token != null) { 1708 protocol.writeFieldBegin("token", 2, TType.STRUCT); 1709 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1710 protocol.writeFieldEnd(); 1711 } 1712 protocol.writeFieldStop(); 1713 protocol.writeStructEnd(); 1714 } 1715 1716 @Override 1717 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1718 DuplicateRecordException ex1 = null; 1719 ServiceRuntimeException ex2 = null; 1720 protocol.readStructBegin(); 1721 while (true) { 1722 FieldMetadata field = protocol.readFieldBegin(); 1723 if (field.typeId == TType.STOP) { 1724 break; 1725 } 1726 switch (field.fieldId) { 1727 case 1: { 1728 if (field.typeId == TType.STRUCT) { 1729 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 1730 ex1 = value; 1731 } else { 1732 ProtocolUtil.skip(protocol, field.typeId); 1733 } 1734 } 1735 break; 1736 case 2: { 1737 if (field.typeId == TType.STRUCT) { 1738 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1739 ex2 = value; 1740 } else { 1741 ProtocolUtil.skip(protocol, field.typeId); 1742 } 1743 } 1744 break; 1745 default: ProtocolUtil.skip(protocol, field.typeId); break; 1746 } 1747 protocol.readFieldEnd(); 1748 } 1749 protocol.readStructEnd(); 1750 if (ex1 != null) { 1751 throw ex1; 1752 } else if (ex2 != null) { 1753 throw ex2; 1754 } else { 1755 return null; 1756 } 1757 } 1758 } 1759 1760 private static final class AddLogFullCall extends MethodCall<Void> { 1761 private final LogBean logBean; 1762 1763 private final FaceBean faceBean; 1764 1765 private final ByteString featureImage; 1766 1767 private final Token token; 1768 1769 AddLogFullCall(LogBean logBean, FaceBean faceBean, ByteString featureImage, Token token, 1770 ServiceMethodCallback<Void> callback) { 1771 super("addLogFull", TMessageType.CALL, callback); 1772 this.logBean = logBean; 1773 this.faceBean = faceBean; 1774 this.featureImage = featureImage; 1775 this.token = token; 1776 } 1777 1778 @Override 1779 protected void send(Protocol protocol) throws IOException { 1780 protocol.writeStructBegin("args"); 1781 if (this.logBean != null) { 1782 protocol.writeFieldBegin("logBean", 1, TType.STRUCT); 1783 net.gdface.facelog.client.thrift.LogBean.ADAPTER.write(protocol, this.logBean); 1784 protocol.writeFieldEnd(); 1785 } 1786 if (this.faceBean != null) { 1787 protocol.writeFieldBegin("faceBean", 2, TType.STRUCT); 1788 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, this.faceBean); 1789 protocol.writeFieldEnd(); 1790 } 1791 if (this.featureImage != null) { 1792 protocol.writeFieldBegin("featureImage", 3, TType.STRING); 1793 protocol.writeBinary(this.featureImage); 1794 protocol.writeFieldEnd(); 1795 } 1796 if (this.token != null) { 1797 protocol.writeFieldBegin("token", 4, TType.STRUCT); 1798 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1799 protocol.writeFieldEnd(); 1800 } 1801 protocol.writeFieldStop(); 1802 protocol.writeStructEnd(); 1803 } 1804 1805 @Override 1806 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1807 DuplicateRecordException ex1 = null; 1808 ServiceRuntimeException ex2 = null; 1809 protocol.readStructBegin(); 1810 while (true) { 1811 FieldMetadata field = protocol.readFieldBegin(); 1812 if (field.typeId == TType.STOP) { 1813 break; 1814 } 1815 switch (field.fieldId) { 1816 case 1: { 1817 if (field.typeId == TType.STRUCT) { 1818 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 1819 ex1 = value; 1820 } else { 1821 ProtocolUtil.skip(protocol, field.typeId); 1822 } 1823 } 1824 break; 1825 case 2: { 1826 if (field.typeId == TType.STRUCT) { 1827 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1828 ex2 = value; 1829 } else { 1830 ProtocolUtil.skip(protocol, field.typeId); 1831 } 1832 } 1833 break; 1834 default: ProtocolUtil.skip(protocol, field.typeId); break; 1835 } 1836 protocol.readFieldEnd(); 1837 } 1838 protocol.readStructEnd(); 1839 if (ex1 != null) { 1840 throw ex1; 1841 } else if (ex2 != null) { 1842 throw ex2; 1843 } else { 1844 return null; 1845 } 1846 } 1847 } 1848 1849 private static final class AddLogWithFaceImageCall extends MethodCall<Void> { 1850 private final LogBean logBean; 1851 1852 private final ByteString faceImage; 1853 1854 private final Token token; 1855 1856 AddLogWithFaceImageCall(LogBean logBean, ByteString faceImage, Token token, 1857 ServiceMethodCallback<Void> callback) { 1858 super("addLogWithFaceImage", TMessageType.CALL, callback); 1859 this.logBean = logBean; 1860 this.faceImage = faceImage; 1861 this.token = token; 1862 } 1863 1864 @Override 1865 protected void send(Protocol protocol) throws IOException { 1866 protocol.writeStructBegin("args"); 1867 if (this.logBean != null) { 1868 protocol.writeFieldBegin("logBean", 1, TType.STRUCT); 1869 net.gdface.facelog.client.thrift.LogBean.ADAPTER.write(protocol, this.logBean); 1870 protocol.writeFieldEnd(); 1871 } 1872 if (this.faceImage != null) { 1873 protocol.writeFieldBegin("faceImage", 2, TType.STRING); 1874 protocol.writeBinary(this.faceImage); 1875 protocol.writeFieldEnd(); 1876 } 1877 if (this.token != null) { 1878 protocol.writeFieldBegin("token", 3, TType.STRUCT); 1879 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1880 protocol.writeFieldEnd(); 1881 } 1882 protocol.writeFieldStop(); 1883 protocol.writeStructEnd(); 1884 } 1885 1886 @Override 1887 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1888 DuplicateRecordException ex1 = null; 1889 ServiceRuntimeException ex2 = null; 1890 protocol.readStructBegin(); 1891 while (true) { 1892 FieldMetadata field = protocol.readFieldBegin(); 1893 if (field.typeId == TType.STOP) { 1894 break; 1895 } 1896 switch (field.fieldId) { 1897 case 1: { 1898 if (field.typeId == TType.STRUCT) { 1899 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 1900 ex1 = value; 1901 } else { 1902 ProtocolUtil.skip(protocol, field.typeId); 1903 } 1904 } 1905 break; 1906 case 2: { 1907 if (field.typeId == TType.STRUCT) { 1908 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1909 ex2 = value; 1910 } else { 1911 ProtocolUtil.skip(protocol, field.typeId); 1912 } 1913 } 1914 break; 1915 default: ProtocolUtil.skip(protocol, field.typeId); break; 1916 } 1917 protocol.readFieldEnd(); 1918 } 1919 protocol.readStructEnd(); 1920 if (ex1 != null) { 1921 throw ex1; 1922 } else if (ex2 != null) { 1923 throw ex2; 1924 } else { 1925 return null; 1926 } 1927 } 1928 } 1929 1930 private static final class AddLogsCall extends MethodCall<Void> { 1931 private final List<LogBean> beans; 1932 1933 private final Token token; 1934 1935 AddLogsCall(List<LogBean> beans, Token token, ServiceMethodCallback<Void> callback) { 1936 super("addLogs", TMessageType.CALL, callback); 1937 this.beans = beans; 1938 this.token = token; 1939 } 1940 1941 @Override 1942 protected void send(Protocol protocol) throws IOException { 1943 protocol.writeStructBegin("args"); 1944 if (this.beans != null) { 1945 protocol.writeFieldBegin("beans", 1, TType.LIST); 1946 protocol.writeListBegin(TType.STRUCT, this.beans.size()); 1947 for (LogBean item0 : this.beans) { 1948 net.gdface.facelog.client.thrift.LogBean.ADAPTER.write(protocol, item0); 1949 } 1950 protocol.writeListEnd(); 1951 protocol.writeFieldEnd(); 1952 } 1953 if (this.token != null) { 1954 protocol.writeFieldBegin("token", 2, TType.STRUCT); 1955 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 1956 protocol.writeFieldEnd(); 1957 } 1958 protocol.writeFieldStop(); 1959 protocol.writeStructEnd(); 1960 } 1961 1962 @Override 1963 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 1964 DuplicateRecordException ex1 = null; 1965 ServiceRuntimeException ex2 = null; 1966 protocol.readStructBegin(); 1967 while (true) { 1968 FieldMetadata field = protocol.readFieldBegin(); 1969 if (field.typeId == TType.STOP) { 1970 break; 1971 } 1972 switch (field.fieldId) { 1973 case 1: { 1974 if (field.typeId == TType.STRUCT) { 1975 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 1976 ex1 = value; 1977 } else { 1978 ProtocolUtil.skip(protocol, field.typeId); 1979 } 1980 } 1981 break; 1982 case 2: { 1983 if (field.typeId == TType.STRUCT) { 1984 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 1985 ex2 = value; 1986 } else { 1987 ProtocolUtil.skip(protocol, field.typeId); 1988 } 1989 } 1990 break; 1991 default: ProtocolUtil.skip(protocol, field.typeId); break; 1992 } 1993 protocol.readFieldEnd(); 1994 } 1995 protocol.readStructEnd(); 1996 if (ex1 != null) { 1997 throw ex1; 1998 } else if (ex2 != null) { 1999 throw ex2; 2000 } else { 2001 return null; 2002 } 2003 } 2004 } 2005 2006 private static final class AddLogsFullCall extends MethodCall<Void> { 2007 private final List<LogBean> logBeans; 2008 2009 private final List<FaceBean> faceBeans; 2010 2011 private final List<ByteString> featureImages; 2012 2013 private final Token token; 2014 2015 AddLogsFullCall(List<LogBean> logBeans, List<FaceBean> faceBeans, 2016 List<ByteString> featureImages, Token token, ServiceMethodCallback<Void> callback) { 2017 super("addLogsFull", TMessageType.CALL, callback); 2018 this.logBeans = logBeans; 2019 this.faceBeans = faceBeans; 2020 this.featureImages = featureImages; 2021 this.token = token; 2022 } 2023 2024 @Override 2025 protected void send(Protocol protocol) throws IOException { 2026 protocol.writeStructBegin("args"); 2027 if (this.logBeans != null) { 2028 protocol.writeFieldBegin("logBeans", 1, TType.LIST); 2029 protocol.writeListBegin(TType.STRUCT, this.logBeans.size()); 2030 for (LogBean item0 : this.logBeans) { 2031 net.gdface.facelog.client.thrift.LogBean.ADAPTER.write(protocol, item0); 2032 } 2033 protocol.writeListEnd(); 2034 protocol.writeFieldEnd(); 2035 } 2036 if (this.faceBeans != null) { 2037 protocol.writeFieldBegin("faceBeans", 2, TType.LIST); 2038 protocol.writeListBegin(TType.STRUCT, this.faceBeans.size()); 2039 for (FaceBean item0 : this.faceBeans) { 2040 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, item0); 2041 } 2042 protocol.writeListEnd(); 2043 protocol.writeFieldEnd(); 2044 } 2045 if (this.featureImages != null) { 2046 protocol.writeFieldBegin("featureImages", 3, TType.LIST); 2047 protocol.writeListBegin(TType.STRING, this.featureImages.size()); 2048 for (ByteString item0 : this.featureImages) { 2049 protocol.writeBinary(item0); 2050 } 2051 protocol.writeListEnd(); 2052 protocol.writeFieldEnd(); 2053 } 2054 if (this.token != null) { 2055 protocol.writeFieldBegin("token", 4, TType.STRUCT); 2056 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 2057 protocol.writeFieldEnd(); 2058 } 2059 protocol.writeFieldStop(); 2060 protocol.writeStructEnd(); 2061 } 2062 2063 @Override 2064 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2065 DuplicateRecordException ex1 = null; 2066 ServiceRuntimeException ex2 = null; 2067 protocol.readStructBegin(); 2068 while (true) { 2069 FieldMetadata field = protocol.readFieldBegin(); 2070 if (field.typeId == TType.STOP) { 2071 break; 2072 } 2073 switch (field.fieldId) { 2074 case 1: { 2075 if (field.typeId == TType.STRUCT) { 2076 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 2077 ex1 = value; 2078 } else { 2079 ProtocolUtil.skip(protocol, field.typeId); 2080 } 2081 } 2082 break; 2083 case 2: { 2084 if (field.typeId == TType.STRUCT) { 2085 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2086 ex2 = value; 2087 } else { 2088 ProtocolUtil.skip(protocol, field.typeId); 2089 } 2090 } 2091 break; 2092 default: ProtocolUtil.skip(protocol, field.typeId); break; 2093 } 2094 protocol.readFieldEnd(); 2095 } 2096 protocol.readStructEnd(); 2097 if (ex1 != null) { 2098 throw ex1; 2099 } else if (ex2 != null) { 2100 throw ex2; 2101 } else { 2102 return null; 2103 } 2104 } 2105 } 2106 2107 private static final class AddLogsWithFaceImageCall extends MethodCall<Void> { 2108 private final List<LogBean> logBeans; 2109 2110 private final List<ByteString> faceImages; 2111 2112 private final Token token; 2113 2114 AddLogsWithFaceImageCall(List<LogBean> logBeans, List<ByteString> faceImages, Token token, 2115 ServiceMethodCallback<Void> callback) { 2116 super("addLogsWithFaceImage", TMessageType.CALL, callback); 2117 this.logBeans = logBeans; 2118 this.faceImages = faceImages; 2119 this.token = token; 2120 } 2121 2122 @Override 2123 protected void send(Protocol protocol) throws IOException { 2124 protocol.writeStructBegin("args"); 2125 if (this.logBeans != null) { 2126 protocol.writeFieldBegin("logBeans", 1, TType.LIST); 2127 protocol.writeListBegin(TType.STRUCT, this.logBeans.size()); 2128 for (LogBean item0 : this.logBeans) { 2129 net.gdface.facelog.client.thrift.LogBean.ADAPTER.write(protocol, item0); 2130 } 2131 protocol.writeListEnd(); 2132 protocol.writeFieldEnd(); 2133 } 2134 if (this.faceImages != null) { 2135 protocol.writeFieldBegin("faceImages", 2, TType.LIST); 2136 protocol.writeListBegin(TType.STRING, this.faceImages.size()); 2137 for (ByteString item0 : this.faceImages) { 2138 protocol.writeBinary(item0); 2139 } 2140 protocol.writeListEnd(); 2141 protocol.writeFieldEnd(); 2142 } 2143 if (this.token != null) { 2144 protocol.writeFieldBegin("token", 3, TType.STRUCT); 2145 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 2146 protocol.writeFieldEnd(); 2147 } 2148 protocol.writeFieldStop(); 2149 protocol.writeStructEnd(); 2150 } 2151 2152 @Override 2153 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2154 DuplicateRecordException ex1 = null; 2155 ServiceRuntimeException ex2 = null; 2156 protocol.readStructBegin(); 2157 while (true) { 2158 FieldMetadata field = protocol.readFieldBegin(); 2159 if (field.typeId == TType.STOP) { 2160 break; 2161 } 2162 switch (field.fieldId) { 2163 case 1: { 2164 if (field.typeId == TType.STRUCT) { 2165 net.gdface.facelog.client.thrift.DuplicateRecordException value = net.gdface.facelog.client.thrift.DuplicateRecordException.ADAPTER.read(protocol); 2166 ex1 = value; 2167 } else { 2168 ProtocolUtil.skip(protocol, field.typeId); 2169 } 2170 } 2171 break; 2172 case 2: { 2173 if (field.typeId == TType.STRUCT) { 2174 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2175 ex2 = value; 2176 } else { 2177 ProtocolUtil.skip(protocol, field.typeId); 2178 } 2179 } 2180 break; 2181 default: ProtocolUtil.skip(protocol, field.typeId); break; 2182 } 2183 protocol.readFieldEnd(); 2184 } 2185 protocol.readStructEnd(); 2186 if (ex1 != null) { 2187 throw ex1; 2188 } else if (ex2 != null) { 2189 throw ex2; 2190 } else { 2191 return null; 2192 } 2193 } 2194 } 2195 2196 private static final class ApplyAckChannelCall extends MethodCall<String> { 2197 private final Token token; 2198 2199 ApplyAckChannelCall(Token token, ServiceMethodCallback<String> callback) { 2200 super("applyAckChannel", TMessageType.CALL, callback); 2201 this.token = token; 2202 } 2203 2204 @Override 2205 protected void send(Protocol protocol) throws IOException { 2206 protocol.writeStructBegin("args"); 2207 if (this.token != null) { 2208 protocol.writeFieldBegin("token", 1, TType.STRUCT); 2209 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 2210 protocol.writeFieldEnd(); 2211 } 2212 protocol.writeFieldStop(); 2213 protocol.writeStructEnd(); 2214 } 2215 2216 @Override 2217 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2218 String result = null; 2219 ServiceRuntimeException ex1 = null; 2220 protocol.readStructBegin(); 2221 while (true) { 2222 FieldMetadata field = protocol.readFieldBegin(); 2223 if (field.typeId == TType.STOP) { 2224 break; 2225 } 2226 switch (field.fieldId) { 2227 case 0: { 2228 if (field.typeId == TType.STRING) { 2229 String value = protocol.readString(); 2230 result = value; 2231 } else { 2232 ProtocolUtil.skip(protocol, field.typeId); 2233 } 2234 } 2235 break; 2236 case 1: { 2237 if (field.typeId == TType.STRUCT) { 2238 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2239 ex1 = value; 2240 } else { 2241 ProtocolUtil.skip(protocol, field.typeId); 2242 } 2243 } 2244 break; 2245 default: ProtocolUtil.skip(protocol, field.typeId); break; 2246 } 2247 protocol.readFieldEnd(); 2248 } 2249 protocol.readStructEnd(); 2250 if (result != null) { 2251 return result; 2252 } else if (ex1 != null) { 2253 throw ex1; 2254 } else { 2255 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2256 } 2257 } 2258 } 2259 2260 private static final class ApplyAckChannelWithDurationCall extends MethodCall<String> { 2261 private final Integer duration; 2262 2263 private final Token token; 2264 2265 ApplyAckChannelWithDurationCall(Integer duration, Token token, 2266 ServiceMethodCallback<String> callback) { 2267 super("applyAckChannelWithDuration", TMessageType.CALL, callback); 2268 if (duration == null) throw new NullPointerException("duration"); 2269 this.duration = duration; 2270 this.token = token; 2271 } 2272 2273 @Override 2274 protected void send(Protocol protocol) throws IOException { 2275 protocol.writeStructBegin("args"); 2276 protocol.writeFieldBegin("duration", 1, TType.I32); 2277 protocol.writeI32(this.duration); 2278 protocol.writeFieldEnd(); 2279 if (this.token != null) { 2280 protocol.writeFieldBegin("token", 2, TType.STRUCT); 2281 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 2282 protocol.writeFieldEnd(); 2283 } 2284 protocol.writeFieldStop(); 2285 protocol.writeStructEnd(); 2286 } 2287 2288 @Override 2289 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2290 String result = null; 2291 ServiceRuntimeException ex1 = null; 2292 protocol.readStructBegin(); 2293 while (true) { 2294 FieldMetadata field = protocol.readFieldBegin(); 2295 if (field.typeId == TType.STOP) { 2296 break; 2297 } 2298 switch (field.fieldId) { 2299 case 0: { 2300 if (field.typeId == TType.STRING) { 2301 String value = protocol.readString(); 2302 result = value; 2303 } else { 2304 ProtocolUtil.skip(protocol, field.typeId); 2305 } 2306 } 2307 break; 2308 case 1: { 2309 if (field.typeId == TType.STRUCT) { 2310 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2311 ex1 = value; 2312 } else { 2313 ProtocolUtil.skip(protocol, field.typeId); 2314 } 2315 } 2316 break; 2317 default: ProtocolUtil.skip(protocol, field.typeId); break; 2318 } 2319 protocol.readFieldEnd(); 2320 } 2321 protocol.readStructEnd(); 2322 if (result != null) { 2323 return result; 2324 } else if (ex1 != null) { 2325 throw ex1; 2326 } else { 2327 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2328 } 2329 } 2330 } 2331 2332 private static final class ApplyCmdSnCall extends MethodCall<Integer> { 2333 private final Token token; 2334 2335 ApplyCmdSnCall(Token token, ServiceMethodCallback<Integer> callback) { 2336 super("applyCmdSn", TMessageType.CALL, callback); 2337 this.token = token; 2338 } 2339 2340 @Override 2341 protected void send(Protocol protocol) throws IOException { 2342 protocol.writeStructBegin("args"); 2343 if (this.token != null) { 2344 protocol.writeFieldBegin("token", 1, TType.STRUCT); 2345 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 2346 protocol.writeFieldEnd(); 2347 } 2348 protocol.writeFieldStop(); 2349 protocol.writeStructEnd(); 2350 } 2351 2352 @Override 2353 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2354 Integer result = null; 2355 ServiceRuntimeException ex1 = null; 2356 protocol.readStructBegin(); 2357 while (true) { 2358 FieldMetadata field = protocol.readFieldBegin(); 2359 if (field.typeId == TType.STOP) { 2360 break; 2361 } 2362 switch (field.fieldId) { 2363 case 0: { 2364 if (field.typeId == TType.I32) { 2365 int value = protocol.readI32(); 2366 result = value; 2367 } else { 2368 ProtocolUtil.skip(protocol, field.typeId); 2369 } 2370 } 2371 break; 2372 case 1: { 2373 if (field.typeId == TType.STRUCT) { 2374 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2375 ex1 = value; 2376 } else { 2377 ProtocolUtil.skip(protocol, field.typeId); 2378 } 2379 } 2380 break; 2381 default: ProtocolUtil.skip(protocol, field.typeId); break; 2382 } 2383 protocol.readFieldEnd(); 2384 } 2385 protocol.readStructEnd(); 2386 if (result != null) { 2387 return result; 2388 } else if (ex1 != null) { 2389 throw ex1; 2390 } else { 2391 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2392 } 2393 } 2394 } 2395 2396 private static final class ApplyPersonTokenCall extends MethodCall<Token> { 2397 private final Integer personId; 2398 2399 private final String password; 2400 2401 private final Boolean isMd5; 2402 2403 ApplyPersonTokenCall(Integer personId, String password, Boolean isMd5, 2404 ServiceMethodCallback<Token> callback) { 2405 super("applyPersonToken", TMessageType.CALL, callback); 2406 if (personId == null) throw new NullPointerException("personId"); 2407 this.personId = personId; 2408 this.password = password; 2409 if (isMd5 == null) throw new NullPointerException("isMd5"); 2410 this.isMd5 = isMd5; 2411 } 2412 2413 @Override 2414 protected void send(Protocol protocol) throws IOException { 2415 protocol.writeStructBegin("args"); 2416 protocol.writeFieldBegin("personId", 1, TType.I32); 2417 protocol.writeI32(this.personId); 2418 protocol.writeFieldEnd(); 2419 if (this.password != null) { 2420 protocol.writeFieldBegin("password", 2, TType.STRING); 2421 protocol.writeString(this.password); 2422 protocol.writeFieldEnd(); 2423 } 2424 protocol.writeFieldBegin("isMd5", 3, TType.BOOL); 2425 protocol.writeBool(this.isMd5); 2426 protocol.writeFieldEnd(); 2427 protocol.writeFieldStop(); 2428 protocol.writeStructEnd(); 2429 } 2430 2431 @Override 2432 protected Token receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2433 Token result = null; 2434 ServiceSecurityException ex1 = null; 2435 ServiceRuntimeException ex2 = null; 2436 protocol.readStructBegin(); 2437 while (true) { 2438 FieldMetadata field = protocol.readFieldBegin(); 2439 if (field.typeId == TType.STOP) { 2440 break; 2441 } 2442 switch (field.fieldId) { 2443 case 0: { 2444 if (field.typeId == TType.STRUCT) { 2445 net.gdface.facelog.client.thrift.Token value = net.gdface.facelog.client.thrift.Token.ADAPTER.read(protocol); 2446 result = value; 2447 } else { 2448 ProtocolUtil.skip(protocol, field.typeId); 2449 } 2450 } 2451 break; 2452 case 1: { 2453 if (field.typeId == TType.STRUCT) { 2454 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 2455 ex1 = value; 2456 } else { 2457 ProtocolUtil.skip(protocol, field.typeId); 2458 } 2459 } 2460 break; 2461 case 2: { 2462 if (field.typeId == TType.STRUCT) { 2463 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2464 ex2 = value; 2465 } else { 2466 ProtocolUtil.skip(protocol, field.typeId); 2467 } 2468 } 2469 break; 2470 default: ProtocolUtil.skip(protocol, field.typeId); break; 2471 } 2472 protocol.readFieldEnd(); 2473 } 2474 protocol.readStructEnd(); 2475 if (result != null) { 2476 return result; 2477 } else if (ex1 != null) { 2478 throw ex1; 2479 } else if (ex2 != null) { 2480 throw ex2; 2481 } else { 2482 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2483 } 2484 } 2485 } 2486 2487 private static final class ApplyRootTokenCall extends MethodCall<Token> { 2488 private final String password; 2489 2490 private final Boolean isMd5; 2491 2492 ApplyRootTokenCall(String password, Boolean isMd5, ServiceMethodCallback<Token> callback) { 2493 super("applyRootToken", TMessageType.CALL, callback); 2494 this.password = password; 2495 if (isMd5 == null) throw new NullPointerException("isMd5"); 2496 this.isMd5 = isMd5; 2497 } 2498 2499 @Override 2500 protected void send(Protocol protocol) throws IOException { 2501 protocol.writeStructBegin("args"); 2502 if (this.password != null) { 2503 protocol.writeFieldBegin("password", 1, TType.STRING); 2504 protocol.writeString(this.password); 2505 protocol.writeFieldEnd(); 2506 } 2507 protocol.writeFieldBegin("isMd5", 2, TType.BOOL); 2508 protocol.writeBool(this.isMd5); 2509 protocol.writeFieldEnd(); 2510 protocol.writeFieldStop(); 2511 protocol.writeStructEnd(); 2512 } 2513 2514 @Override 2515 protected Token receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2516 Token result = null; 2517 ServiceSecurityException ex1 = null; 2518 ServiceRuntimeException ex2 = null; 2519 protocol.readStructBegin(); 2520 while (true) { 2521 FieldMetadata field = protocol.readFieldBegin(); 2522 if (field.typeId == TType.STOP) { 2523 break; 2524 } 2525 switch (field.fieldId) { 2526 case 0: { 2527 if (field.typeId == TType.STRUCT) { 2528 net.gdface.facelog.client.thrift.Token value = net.gdface.facelog.client.thrift.Token.ADAPTER.read(protocol); 2529 result = value; 2530 } else { 2531 ProtocolUtil.skip(protocol, field.typeId); 2532 } 2533 } 2534 break; 2535 case 1: { 2536 if (field.typeId == TType.STRUCT) { 2537 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 2538 ex1 = value; 2539 } else { 2540 ProtocolUtil.skip(protocol, field.typeId); 2541 } 2542 } 2543 break; 2544 case 2: { 2545 if (field.typeId == TType.STRUCT) { 2546 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2547 ex2 = value; 2548 } else { 2549 ProtocolUtil.skip(protocol, field.typeId); 2550 } 2551 } 2552 break; 2553 default: ProtocolUtil.skip(protocol, field.typeId); break; 2554 } 2555 protocol.readFieldEnd(); 2556 } 2557 protocol.readStructEnd(); 2558 if (result != null) { 2559 return result; 2560 } else if (ex1 != null) { 2561 throw ex1; 2562 } else if (ex2 != null) { 2563 throw ex2; 2564 } else { 2565 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2566 } 2567 } 2568 } 2569 2570 private static final class ApplyUserTokenCall extends MethodCall<Token> { 2571 private final Integer userid; 2572 2573 private final String password; 2574 2575 private final Boolean isMd5; 2576 2577 ApplyUserTokenCall(Integer userid, String password, Boolean isMd5, 2578 ServiceMethodCallback<Token> callback) { 2579 super("applyUserToken", TMessageType.CALL, callback); 2580 if (userid == null) throw new NullPointerException("userid"); 2581 this.userid = userid; 2582 this.password = password; 2583 if (isMd5 == null) throw new NullPointerException("isMd5"); 2584 this.isMd5 = isMd5; 2585 } 2586 2587 @Override 2588 protected void send(Protocol protocol) throws IOException { 2589 protocol.writeStructBegin("args"); 2590 protocol.writeFieldBegin("userid", 1, TType.I32); 2591 protocol.writeI32(this.userid); 2592 protocol.writeFieldEnd(); 2593 if (this.password != null) { 2594 protocol.writeFieldBegin("password", 2, TType.STRING); 2595 protocol.writeString(this.password); 2596 protocol.writeFieldEnd(); 2597 } 2598 protocol.writeFieldBegin("isMd5", 3, TType.BOOL); 2599 protocol.writeBool(this.isMd5); 2600 protocol.writeFieldEnd(); 2601 protocol.writeFieldStop(); 2602 protocol.writeStructEnd(); 2603 } 2604 2605 @Override 2606 protected Token receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2607 Token result = null; 2608 ServiceSecurityException ex1 = null; 2609 ServiceRuntimeException ex2 = null; 2610 protocol.readStructBegin(); 2611 while (true) { 2612 FieldMetadata field = protocol.readFieldBegin(); 2613 if (field.typeId == TType.STOP) { 2614 break; 2615 } 2616 switch (field.fieldId) { 2617 case 0: { 2618 if (field.typeId == TType.STRUCT) { 2619 net.gdface.facelog.client.thrift.Token value = net.gdface.facelog.client.thrift.Token.ADAPTER.read(protocol); 2620 result = value; 2621 } else { 2622 ProtocolUtil.skip(protocol, field.typeId); 2623 } 2624 } 2625 break; 2626 case 1: { 2627 if (field.typeId == TType.STRUCT) { 2628 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 2629 ex1 = value; 2630 } else { 2631 ProtocolUtil.skip(protocol, field.typeId); 2632 } 2633 } 2634 break; 2635 case 2: { 2636 if (field.typeId == TType.STRUCT) { 2637 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2638 ex2 = value; 2639 } else { 2640 ProtocolUtil.skip(protocol, field.typeId); 2641 } 2642 } 2643 break; 2644 default: ProtocolUtil.skip(protocol, field.typeId); break; 2645 } 2646 protocol.readFieldEnd(); 2647 } 2648 protocol.readStructEnd(); 2649 if (result != null) { 2650 return result; 2651 } else if (ex1 != null) { 2652 throw ex1; 2653 } else if (ex2 != null) { 2654 throw ex2; 2655 } else { 2656 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2657 } 2658 } 2659 } 2660 2661 private static final class BindBorderCall extends MethodCall<Void> { 2662 private final Integer personGroupId; 2663 2664 private final Integer deviceGroupId; 2665 2666 private final Token token; 2667 2668 BindBorderCall(Integer personGroupId, Integer deviceGroupId, Token token, 2669 ServiceMethodCallback<Void> callback) { 2670 super("bindBorder", TMessageType.CALL, callback); 2671 if (personGroupId == null) throw new NullPointerException("personGroupId"); 2672 this.personGroupId = personGroupId; 2673 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 2674 this.deviceGroupId = deviceGroupId; 2675 this.token = token; 2676 } 2677 2678 @Override 2679 protected void send(Protocol protocol) throws IOException { 2680 protocol.writeStructBegin("args"); 2681 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 2682 protocol.writeI32(this.personGroupId); 2683 protocol.writeFieldEnd(); 2684 protocol.writeFieldBegin("deviceGroupId", 2, TType.I32); 2685 protocol.writeI32(this.deviceGroupId); 2686 protocol.writeFieldEnd(); 2687 if (this.token != null) { 2688 protocol.writeFieldBegin("token", 3, TType.STRUCT); 2689 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 2690 protocol.writeFieldEnd(); 2691 } 2692 protocol.writeFieldStop(); 2693 protocol.writeStructEnd(); 2694 } 2695 2696 @Override 2697 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2698 ServiceRuntimeException ex1 = null; 2699 protocol.readStructBegin(); 2700 while (true) { 2701 FieldMetadata field = protocol.readFieldBegin(); 2702 if (field.typeId == TType.STOP) { 2703 break; 2704 } 2705 switch (field.fieldId) { 2706 case 1: { 2707 if (field.typeId == TType.STRUCT) { 2708 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2709 ex1 = value; 2710 } else { 2711 ProtocolUtil.skip(protocol, field.typeId); 2712 } 2713 } 2714 break; 2715 default: ProtocolUtil.skip(protocol, field.typeId); break; 2716 } 2717 protocol.readFieldEnd(); 2718 } 2719 protocol.readStructEnd(); 2720 if (ex1 != null) { 2721 throw ex1; 2722 } else { 2723 return null; 2724 } 2725 } 2726 } 2727 2728 private static final class ChildListForDeviceGroupCall extends MethodCall<List<Integer>> { 2729 private final Integer deviceGroupId; 2730 2731 ChildListForDeviceGroupCall(Integer deviceGroupId, 2732 ServiceMethodCallback<List<Integer>> callback) { 2733 super("childListForDeviceGroup", TMessageType.CALL, callback); 2734 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 2735 this.deviceGroupId = deviceGroupId; 2736 } 2737 2738 @Override 2739 protected void send(Protocol protocol) throws IOException { 2740 protocol.writeStructBegin("args"); 2741 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 2742 protocol.writeI32(this.deviceGroupId); 2743 protocol.writeFieldEnd(); 2744 protocol.writeFieldStop(); 2745 protocol.writeStructEnd(); 2746 } 2747 2748 @Override 2749 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2750 List<Integer> result = null; 2751 ServiceRuntimeException ex1 = null; 2752 protocol.readStructBegin(); 2753 while (true) { 2754 FieldMetadata field = protocol.readFieldBegin(); 2755 if (field.typeId == TType.STOP) { 2756 break; 2757 } 2758 switch (field.fieldId) { 2759 case 0: { 2760 if (field.typeId == TType.LIST) { 2761 ListMetadata listMetadata0 = protocol.readListBegin(); 2762 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 2763 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 2764 int item0 = protocol.readI32(); 2765 value.add(item0); 2766 } 2767 protocol.readListEnd(); 2768 result = value; 2769 } else { 2770 ProtocolUtil.skip(protocol, field.typeId); 2771 } 2772 } 2773 break; 2774 case 1: { 2775 if (field.typeId == TType.STRUCT) { 2776 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2777 ex1 = value; 2778 } else { 2779 ProtocolUtil.skip(protocol, field.typeId); 2780 } 2781 } 2782 break; 2783 default: ProtocolUtil.skip(protocol, field.typeId); break; 2784 } 2785 protocol.readFieldEnd(); 2786 } 2787 protocol.readStructEnd(); 2788 if (result != null) { 2789 return result; 2790 } else if (ex1 != null) { 2791 throw ex1; 2792 } else { 2793 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2794 } 2795 } 2796 } 2797 2798 private static final class ChildListForPersonGroupCall extends MethodCall<List<Integer>> { 2799 private final Integer personGroupId; 2800 2801 ChildListForPersonGroupCall(Integer personGroupId, 2802 ServiceMethodCallback<List<Integer>> callback) { 2803 super("childListForPersonGroup", TMessageType.CALL, callback); 2804 if (personGroupId == null) throw new NullPointerException("personGroupId"); 2805 this.personGroupId = personGroupId; 2806 } 2807 2808 @Override 2809 protected void send(Protocol protocol) throws IOException { 2810 protocol.writeStructBegin("args"); 2811 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 2812 protocol.writeI32(this.personGroupId); 2813 protocol.writeFieldEnd(); 2814 protocol.writeFieldStop(); 2815 protocol.writeStructEnd(); 2816 } 2817 2818 @Override 2819 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2820 List<Integer> result = null; 2821 ServiceRuntimeException ex1 = null; 2822 protocol.readStructBegin(); 2823 while (true) { 2824 FieldMetadata field = protocol.readFieldBegin(); 2825 if (field.typeId == TType.STOP) { 2826 break; 2827 } 2828 switch (field.fieldId) { 2829 case 0: { 2830 if (field.typeId == TType.LIST) { 2831 ListMetadata listMetadata0 = protocol.readListBegin(); 2832 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 2833 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 2834 int item0 = protocol.readI32(); 2835 value.add(item0); 2836 } 2837 protocol.readListEnd(); 2838 result = value; 2839 } else { 2840 ProtocolUtil.skip(protocol, field.typeId); 2841 } 2842 } 2843 break; 2844 case 1: { 2845 if (field.typeId == TType.STRUCT) { 2846 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2847 ex1 = value; 2848 } else { 2849 ProtocolUtil.skip(protocol, field.typeId); 2850 } 2851 } 2852 break; 2853 default: ProtocolUtil.skip(protocol, field.typeId); break; 2854 } 2855 protocol.readFieldEnd(); 2856 } 2857 protocol.readStructEnd(); 2858 if (result != null) { 2859 return result; 2860 } else if (ex1 != null) { 2861 throw ex1; 2862 } else { 2863 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2864 } 2865 } 2866 } 2867 2868 private static final class CountDeviceByWhereCall extends MethodCall<Integer> { 2869 private final String where; 2870 2871 CountDeviceByWhereCall(String where, ServiceMethodCallback<Integer> callback) { 2872 super("countDeviceByWhere", TMessageType.CALL, callback); 2873 this.where = where; 2874 } 2875 2876 @Override 2877 protected void send(Protocol protocol) throws IOException { 2878 protocol.writeStructBegin("args"); 2879 if (this.where != null) { 2880 protocol.writeFieldBegin("where", 1, TType.STRING); 2881 protocol.writeString(this.where); 2882 protocol.writeFieldEnd(); 2883 } 2884 protocol.writeFieldStop(); 2885 protocol.writeStructEnd(); 2886 } 2887 2888 @Override 2889 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2890 Integer result = null; 2891 ServiceRuntimeException ex1 = null; 2892 protocol.readStructBegin(); 2893 while (true) { 2894 FieldMetadata field = protocol.readFieldBegin(); 2895 if (field.typeId == TType.STOP) { 2896 break; 2897 } 2898 switch (field.fieldId) { 2899 case 0: { 2900 if (field.typeId == TType.I32) { 2901 int value = protocol.readI32(); 2902 result = value; 2903 } else { 2904 ProtocolUtil.skip(protocol, field.typeId); 2905 } 2906 } 2907 break; 2908 case 1: { 2909 if (field.typeId == TType.STRUCT) { 2910 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2911 ex1 = value; 2912 } else { 2913 ProtocolUtil.skip(protocol, field.typeId); 2914 } 2915 } 2916 break; 2917 default: ProtocolUtil.skip(protocol, field.typeId); break; 2918 } 2919 protocol.readFieldEnd(); 2920 } 2921 protocol.readStructEnd(); 2922 if (result != null) { 2923 return result; 2924 } else if (ex1 != null) { 2925 throw ex1; 2926 } else { 2927 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2928 } 2929 } 2930 } 2931 2932 private static final class CountDeviceGroupByWhereCall extends MethodCall<Integer> { 2933 private final String where; 2934 2935 CountDeviceGroupByWhereCall(String where, ServiceMethodCallback<Integer> callback) { 2936 super("countDeviceGroupByWhere", TMessageType.CALL, callback); 2937 this.where = where; 2938 } 2939 2940 @Override 2941 protected void send(Protocol protocol) throws IOException { 2942 protocol.writeStructBegin("args"); 2943 if (this.where != null) { 2944 protocol.writeFieldBegin("where", 1, TType.STRING); 2945 protocol.writeString(this.where); 2946 protocol.writeFieldEnd(); 2947 } 2948 protocol.writeFieldStop(); 2949 protocol.writeStructEnd(); 2950 } 2951 2952 @Override 2953 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 2954 Integer result = null; 2955 ServiceRuntimeException ex1 = null; 2956 protocol.readStructBegin(); 2957 while (true) { 2958 FieldMetadata field = protocol.readFieldBegin(); 2959 if (field.typeId == TType.STOP) { 2960 break; 2961 } 2962 switch (field.fieldId) { 2963 case 0: { 2964 if (field.typeId == TType.I32) { 2965 int value = protocol.readI32(); 2966 result = value; 2967 } else { 2968 ProtocolUtil.skip(protocol, field.typeId); 2969 } 2970 } 2971 break; 2972 case 1: { 2973 if (field.typeId == TType.STRUCT) { 2974 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 2975 ex1 = value; 2976 } else { 2977 ProtocolUtil.skip(protocol, field.typeId); 2978 } 2979 } 2980 break; 2981 default: ProtocolUtil.skip(protocol, field.typeId); break; 2982 } 2983 protocol.readFieldEnd(); 2984 } 2985 protocol.readStructEnd(); 2986 if (result != null) { 2987 return result; 2988 } else if (ex1 != null) { 2989 throw ex1; 2990 } else { 2991 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 2992 } 2993 } 2994 } 2995 2996 private static final class CountErrorLogByWhereCall extends MethodCall<Integer> { 2997 private final String where; 2998 2999 CountErrorLogByWhereCall(String where, ServiceMethodCallback<Integer> callback) { 3000 super("countErrorLogByWhere", TMessageType.CALL, callback); 3001 this.where = where; 3002 } 3003 3004 @Override 3005 protected void send(Protocol protocol) throws IOException { 3006 protocol.writeStructBegin("args"); 3007 if (this.where != null) { 3008 protocol.writeFieldBegin("where", 1, TType.STRING); 3009 protocol.writeString(this.where); 3010 protocol.writeFieldEnd(); 3011 } 3012 protocol.writeFieldStop(); 3013 protocol.writeStructEnd(); 3014 } 3015 3016 @Override 3017 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3018 Integer result = null; 3019 ServiceRuntimeException ex1 = null; 3020 protocol.readStructBegin(); 3021 while (true) { 3022 FieldMetadata field = protocol.readFieldBegin(); 3023 if (field.typeId == TType.STOP) { 3024 break; 3025 } 3026 switch (field.fieldId) { 3027 case 0: { 3028 if (field.typeId == TType.I32) { 3029 int value = protocol.readI32(); 3030 result = value; 3031 } else { 3032 ProtocolUtil.skip(protocol, field.typeId); 3033 } 3034 } 3035 break; 3036 case 1: { 3037 if (field.typeId == TType.STRUCT) { 3038 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3039 ex1 = value; 3040 } else { 3041 ProtocolUtil.skip(protocol, field.typeId); 3042 } 3043 } 3044 break; 3045 default: ProtocolUtil.skip(protocol, field.typeId); break; 3046 } 3047 protocol.readFieldEnd(); 3048 } 3049 protocol.readStructEnd(); 3050 if (result != null) { 3051 return result; 3052 } else if (ex1 != null) { 3053 throw ex1; 3054 } else { 3055 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3056 } 3057 } 3058 } 3059 3060 private static final class CountLogByWhereCall extends MethodCall<Integer> { 3061 private final String where; 3062 3063 CountLogByWhereCall(String where, ServiceMethodCallback<Integer> callback) { 3064 super("countLogByWhere", TMessageType.CALL, callback); 3065 this.where = where; 3066 } 3067 3068 @Override 3069 protected void send(Protocol protocol) throws IOException { 3070 protocol.writeStructBegin("args"); 3071 if (this.where != null) { 3072 protocol.writeFieldBegin("where", 1, TType.STRING); 3073 protocol.writeString(this.where); 3074 protocol.writeFieldEnd(); 3075 } 3076 protocol.writeFieldStop(); 3077 protocol.writeStructEnd(); 3078 } 3079 3080 @Override 3081 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3082 Integer result = null; 3083 ServiceRuntimeException ex1 = null; 3084 protocol.readStructBegin(); 3085 while (true) { 3086 FieldMetadata field = protocol.readFieldBegin(); 3087 if (field.typeId == TType.STOP) { 3088 break; 3089 } 3090 switch (field.fieldId) { 3091 case 0: { 3092 if (field.typeId == TType.I32) { 3093 int value = protocol.readI32(); 3094 result = value; 3095 } else { 3096 ProtocolUtil.skip(protocol, field.typeId); 3097 } 3098 } 3099 break; 3100 case 1: { 3101 if (field.typeId == TType.STRUCT) { 3102 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3103 ex1 = value; 3104 } else { 3105 ProtocolUtil.skip(protocol, field.typeId); 3106 } 3107 } 3108 break; 3109 default: ProtocolUtil.skip(protocol, field.typeId); break; 3110 } 3111 protocol.readFieldEnd(); 3112 } 3113 protocol.readStructEnd(); 3114 if (result != null) { 3115 return result; 3116 } else if (ex1 != null) { 3117 throw ex1; 3118 } else { 3119 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3120 } 3121 } 3122 } 3123 3124 private static final class CountLogLightByVerifyTimeCall extends MethodCall<Integer> { 3125 private final Long timestamp; 3126 3127 CountLogLightByVerifyTimeCall(Long timestamp, ServiceMethodCallback<Integer> callback) { 3128 super("countLogLightByVerifyTime", TMessageType.CALL, callback); 3129 if (timestamp == null) throw new NullPointerException("timestamp"); 3130 this.timestamp = timestamp; 3131 } 3132 3133 @Override 3134 protected void send(Protocol protocol) throws IOException { 3135 protocol.writeStructBegin("args"); 3136 protocol.writeFieldBegin("timestamp", 1, TType.I64); 3137 protocol.writeI64(this.timestamp); 3138 protocol.writeFieldEnd(); 3139 protocol.writeFieldStop(); 3140 protocol.writeStructEnd(); 3141 } 3142 3143 @Override 3144 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3145 Integer result = null; 3146 ServiceRuntimeException ex1 = null; 3147 protocol.readStructBegin(); 3148 while (true) { 3149 FieldMetadata field = protocol.readFieldBegin(); 3150 if (field.typeId == TType.STOP) { 3151 break; 3152 } 3153 switch (field.fieldId) { 3154 case 0: { 3155 if (field.typeId == TType.I32) { 3156 int value = protocol.readI32(); 3157 result = value; 3158 } else { 3159 ProtocolUtil.skip(protocol, field.typeId); 3160 } 3161 } 3162 break; 3163 case 1: { 3164 if (field.typeId == TType.STRUCT) { 3165 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3166 ex1 = value; 3167 } else { 3168 ProtocolUtil.skip(protocol, field.typeId); 3169 } 3170 } 3171 break; 3172 default: ProtocolUtil.skip(protocol, field.typeId); break; 3173 } 3174 protocol.readFieldEnd(); 3175 } 3176 protocol.readStructEnd(); 3177 if (result != null) { 3178 return result; 3179 } else if (ex1 != null) { 3180 throw ex1; 3181 } else { 3182 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3183 } 3184 } 3185 } 3186 3187 private static final class CountLogLightByVerifyTimeTimestrCall extends MethodCall<Integer> { 3188 private final String timestamp; 3189 3190 CountLogLightByVerifyTimeTimestrCall(String timestamp, 3191 ServiceMethodCallback<Integer> callback) { 3192 super("countLogLightByVerifyTimeTimestr", TMessageType.CALL, callback); 3193 this.timestamp = timestamp; 3194 } 3195 3196 @Override 3197 protected void send(Protocol protocol) throws IOException { 3198 protocol.writeStructBegin("args"); 3199 if (this.timestamp != null) { 3200 protocol.writeFieldBegin("timestamp", 1, TType.STRING); 3201 protocol.writeString(this.timestamp); 3202 protocol.writeFieldEnd(); 3203 } 3204 protocol.writeFieldStop(); 3205 protocol.writeStructEnd(); 3206 } 3207 3208 @Override 3209 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3210 Integer result = null; 3211 ServiceRuntimeException ex1 = null; 3212 protocol.readStructBegin(); 3213 while (true) { 3214 FieldMetadata field = protocol.readFieldBegin(); 3215 if (field.typeId == TType.STOP) { 3216 break; 3217 } 3218 switch (field.fieldId) { 3219 case 0: { 3220 if (field.typeId == TType.I32) { 3221 int value = protocol.readI32(); 3222 result = value; 3223 } else { 3224 ProtocolUtil.skip(protocol, field.typeId); 3225 } 3226 } 3227 break; 3228 case 1: { 3229 if (field.typeId == TType.STRUCT) { 3230 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3231 ex1 = value; 3232 } else { 3233 ProtocolUtil.skip(protocol, field.typeId); 3234 } 3235 } 3236 break; 3237 default: ProtocolUtil.skip(protocol, field.typeId); break; 3238 } 3239 protocol.readFieldEnd(); 3240 } 3241 protocol.readStructEnd(); 3242 if (result != null) { 3243 return result; 3244 } else if (ex1 != null) { 3245 throw ex1; 3246 } else { 3247 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3248 } 3249 } 3250 } 3251 3252 private static final class CountLogLightByWhereCall extends MethodCall<Integer> { 3253 private final String where; 3254 3255 CountLogLightByWhereCall(String where, ServiceMethodCallback<Integer> callback) { 3256 super("countLogLightByWhere", TMessageType.CALL, callback); 3257 this.where = where; 3258 } 3259 3260 @Override 3261 protected void send(Protocol protocol) throws IOException { 3262 protocol.writeStructBegin("args"); 3263 if (this.where != null) { 3264 protocol.writeFieldBegin("where", 1, TType.STRING); 3265 protocol.writeString(this.where); 3266 protocol.writeFieldEnd(); 3267 } 3268 protocol.writeFieldStop(); 3269 protocol.writeStructEnd(); 3270 } 3271 3272 @Override 3273 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3274 Integer result = null; 3275 ServiceRuntimeException ex1 = null; 3276 protocol.readStructBegin(); 3277 while (true) { 3278 FieldMetadata field = protocol.readFieldBegin(); 3279 if (field.typeId == TType.STOP) { 3280 break; 3281 } 3282 switch (field.fieldId) { 3283 case 0: { 3284 if (field.typeId == TType.I32) { 3285 int value = protocol.readI32(); 3286 result = value; 3287 } else { 3288 ProtocolUtil.skip(protocol, field.typeId); 3289 } 3290 } 3291 break; 3292 case 1: { 3293 if (field.typeId == TType.STRUCT) { 3294 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3295 ex1 = value; 3296 } else { 3297 ProtocolUtil.skip(protocol, field.typeId); 3298 } 3299 } 3300 break; 3301 default: ProtocolUtil.skip(protocol, field.typeId); break; 3302 } 3303 protocol.readFieldEnd(); 3304 } 3305 protocol.readStructEnd(); 3306 if (result != null) { 3307 return result; 3308 } else if (ex1 != null) { 3309 throw ex1; 3310 } else { 3311 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3312 } 3313 } 3314 } 3315 3316 private static final class CountPersonByWhereCall extends MethodCall<Integer> { 3317 private final String where; 3318 3319 CountPersonByWhereCall(String where, ServiceMethodCallback<Integer> callback) { 3320 super("countPersonByWhere", TMessageType.CALL, callback); 3321 this.where = where; 3322 } 3323 3324 @Override 3325 protected void send(Protocol protocol) throws IOException { 3326 protocol.writeStructBegin("args"); 3327 if (this.where != null) { 3328 protocol.writeFieldBegin("where", 1, TType.STRING); 3329 protocol.writeString(this.where); 3330 protocol.writeFieldEnd(); 3331 } 3332 protocol.writeFieldStop(); 3333 protocol.writeStructEnd(); 3334 } 3335 3336 @Override 3337 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3338 Integer result = null; 3339 ServiceRuntimeException ex1 = null; 3340 protocol.readStructBegin(); 3341 while (true) { 3342 FieldMetadata field = protocol.readFieldBegin(); 3343 if (field.typeId == TType.STOP) { 3344 break; 3345 } 3346 switch (field.fieldId) { 3347 case 0: { 3348 if (field.typeId == TType.I32) { 3349 int value = protocol.readI32(); 3350 result = value; 3351 } else { 3352 ProtocolUtil.skip(protocol, field.typeId); 3353 } 3354 } 3355 break; 3356 case 1: { 3357 if (field.typeId == TType.STRUCT) { 3358 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3359 ex1 = value; 3360 } else { 3361 ProtocolUtil.skip(protocol, field.typeId); 3362 } 3363 } 3364 break; 3365 default: ProtocolUtil.skip(protocol, field.typeId); break; 3366 } 3367 protocol.readFieldEnd(); 3368 } 3369 protocol.readStructEnd(); 3370 if (result != null) { 3371 return result; 3372 } else if (ex1 != null) { 3373 throw ex1; 3374 } else { 3375 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3376 } 3377 } 3378 } 3379 3380 private static final class CountPersonGroupByWhereCall extends MethodCall<Integer> { 3381 private final String where; 3382 3383 CountPersonGroupByWhereCall(String where, ServiceMethodCallback<Integer> callback) { 3384 super("countPersonGroupByWhere", TMessageType.CALL, callback); 3385 this.where = where; 3386 } 3387 3388 @Override 3389 protected void send(Protocol protocol) throws IOException { 3390 protocol.writeStructBegin("args"); 3391 if (this.where != null) { 3392 protocol.writeFieldBegin("where", 1, TType.STRING); 3393 protocol.writeString(this.where); 3394 protocol.writeFieldEnd(); 3395 } 3396 protocol.writeFieldStop(); 3397 protocol.writeStructEnd(); 3398 } 3399 3400 @Override 3401 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3402 Integer result = null; 3403 ServiceRuntimeException ex1 = null; 3404 protocol.readStructBegin(); 3405 while (true) { 3406 FieldMetadata field = protocol.readFieldBegin(); 3407 if (field.typeId == TType.STOP) { 3408 break; 3409 } 3410 switch (field.fieldId) { 3411 case 0: { 3412 if (field.typeId == TType.I32) { 3413 int value = protocol.readI32(); 3414 result = value; 3415 } else { 3416 ProtocolUtil.skip(protocol, field.typeId); 3417 } 3418 } 3419 break; 3420 case 1: { 3421 if (field.typeId == TType.STRUCT) { 3422 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3423 ex1 = value; 3424 } else { 3425 ProtocolUtil.skip(protocol, field.typeId); 3426 } 3427 } 3428 break; 3429 default: ProtocolUtil.skip(protocol, field.typeId); break; 3430 } 3431 protocol.readFieldEnd(); 3432 } 3433 protocol.readStructEnd(); 3434 if (result != null) { 3435 return result; 3436 } else if (ex1 != null) { 3437 throw ex1; 3438 } else { 3439 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3440 } 3441 } 3442 } 3443 3444 private static final class CountPersonLogCall extends MethodCall<Map<String, Integer>> { 3445 private final Integer personId; 3446 3447 private final Long startDate; 3448 3449 private final Long endDate; 3450 3451 CountPersonLogCall(Integer personId, Long startDate, Long endDate, 3452 ServiceMethodCallback<Map<String, Integer>> callback) { 3453 super("countPersonLog", TMessageType.CALL, callback); 3454 if (personId == null) throw new NullPointerException("personId"); 3455 this.personId = personId; 3456 this.startDate = startDate; 3457 this.endDate = endDate; 3458 } 3459 3460 @Override 3461 protected void send(Protocol protocol) throws IOException { 3462 protocol.writeStructBegin("args"); 3463 protocol.writeFieldBegin("personId", 1, TType.I32); 3464 protocol.writeI32(this.personId); 3465 protocol.writeFieldEnd(); 3466 if (this.startDate != null) { 3467 protocol.writeFieldBegin("startDate", 2, TType.I64); 3468 protocol.writeI64(this.startDate); 3469 protocol.writeFieldEnd(); 3470 } 3471 if (this.endDate != null) { 3472 protocol.writeFieldBegin("endDate", 3, TType.I64); 3473 protocol.writeI64(this.endDate); 3474 protocol.writeFieldEnd(); 3475 } 3476 protocol.writeFieldStop(); 3477 protocol.writeStructEnd(); 3478 } 3479 3480 @Override 3481 protected Map<String, Integer> receive(Protocol protocol, MessageMetadata metadata) throws 3482 Exception { 3483 Map<String, Integer> result = null; 3484 ServiceRuntimeException ex1 = null; 3485 protocol.readStructBegin(); 3486 while (true) { 3487 FieldMetadata field = protocol.readFieldBegin(); 3488 if (field.typeId == TType.STOP) { 3489 break; 3490 } 3491 switch (field.fieldId) { 3492 case 0: { 3493 if (field.typeId == TType.MAP) { 3494 MapMetadata mapMetadata0 = protocol.readMapBegin(); 3495 Map<String, Integer> value = new HashMap<String, Integer>(mapMetadata0.size); 3496 for (int i0 = 0; i0 < mapMetadata0.size; ++i0) { 3497 String key0 = protocol.readString(); 3498 int value0 = protocol.readI32(); 3499 value.put(key0, value0); 3500 } 3501 protocol.readMapEnd(); 3502 result = value; 3503 } else { 3504 ProtocolUtil.skip(protocol, field.typeId); 3505 } 3506 } 3507 break; 3508 case 1: { 3509 if (field.typeId == TType.STRUCT) { 3510 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3511 ex1 = value; 3512 } else { 3513 ProtocolUtil.skip(protocol, field.typeId); 3514 } 3515 } 3516 break; 3517 default: ProtocolUtil.skip(protocol, field.typeId); break; 3518 } 3519 protocol.readFieldEnd(); 3520 } 3521 protocol.readStructEnd(); 3522 if (result != null) { 3523 return result; 3524 } else if (ex1 != null) { 3525 throw ex1; 3526 } else { 3527 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3528 } 3529 } 3530 } 3531 3532 private static final class CountPersonLogTimeStrCall extends MethodCall<Map<String, Integer>> { 3533 private final Integer personId; 3534 3535 private final String startDate; 3536 3537 private final String endDate; 3538 3539 CountPersonLogTimeStrCall(Integer personId, String startDate, String endDate, 3540 ServiceMethodCallback<Map<String, Integer>> callback) { 3541 super("countPersonLogTimeStr", TMessageType.CALL, callback); 3542 if (personId == null) throw new NullPointerException("personId"); 3543 this.personId = personId; 3544 this.startDate = startDate; 3545 this.endDate = endDate; 3546 } 3547 3548 @Override 3549 protected void send(Protocol protocol) throws IOException { 3550 protocol.writeStructBegin("args"); 3551 protocol.writeFieldBegin("personId", 1, TType.I32); 3552 protocol.writeI32(this.personId); 3553 protocol.writeFieldEnd(); 3554 if (this.startDate != null) { 3555 protocol.writeFieldBegin("startDate", 2, TType.STRING); 3556 protocol.writeString(this.startDate); 3557 protocol.writeFieldEnd(); 3558 } 3559 if (this.endDate != null) { 3560 protocol.writeFieldBegin("endDate", 3, TType.STRING); 3561 protocol.writeString(this.endDate); 3562 protocol.writeFieldEnd(); 3563 } 3564 protocol.writeFieldStop(); 3565 protocol.writeStructEnd(); 3566 } 3567 3568 @Override 3569 protected Map<String, Integer> receive(Protocol protocol, MessageMetadata metadata) throws 3570 Exception { 3571 Map<String, Integer> result = null; 3572 ServiceRuntimeException ex1 = null; 3573 protocol.readStructBegin(); 3574 while (true) { 3575 FieldMetadata field = protocol.readFieldBegin(); 3576 if (field.typeId == TType.STOP) { 3577 break; 3578 } 3579 switch (field.fieldId) { 3580 case 0: { 3581 if (field.typeId == TType.MAP) { 3582 MapMetadata mapMetadata0 = protocol.readMapBegin(); 3583 Map<String, Integer> value = new HashMap<String, Integer>(mapMetadata0.size); 3584 for (int i0 = 0; i0 < mapMetadata0.size; ++i0) { 3585 String key0 = protocol.readString(); 3586 int value0 = protocol.readI32(); 3587 value.put(key0, value0); 3588 } 3589 protocol.readMapEnd(); 3590 result = value; 3591 } else { 3592 ProtocolUtil.skip(protocol, field.typeId); 3593 } 3594 } 3595 break; 3596 case 1: { 3597 if (field.typeId == TType.STRUCT) { 3598 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3599 ex1 = value; 3600 } else { 3601 ProtocolUtil.skip(protocol, field.typeId); 3602 } 3603 } 3604 break; 3605 default: ProtocolUtil.skip(protocol, field.typeId); break; 3606 } 3607 protocol.readFieldEnd(); 3608 } 3609 protocol.readStructEnd(); 3610 if (result != null) { 3611 return result; 3612 } else if (ex1 != null) { 3613 throw ex1; 3614 } else { 3615 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3616 } 3617 } 3618 } 3619 3620 private static final class CreateTempPwdCall extends MethodCall<String> { 3621 private final Integer targetId; 3622 3623 private final TmpPwdTargetType targetType; 3624 3625 private final String expiryDate; 3626 3627 private final Token token; 3628 3629 CreateTempPwdCall(Integer targetId, TmpPwdTargetType targetType, String expiryDate, Token token, 3630 ServiceMethodCallback<String> callback) { 3631 super("createTempPwd", TMessageType.CALL, callback); 3632 if (targetId == null) throw new NullPointerException("targetId"); 3633 this.targetId = targetId; 3634 this.targetType = targetType; 3635 this.expiryDate = expiryDate; 3636 this.token = token; 3637 } 3638 3639 @Override 3640 protected void send(Protocol protocol) throws IOException { 3641 protocol.writeStructBegin("args"); 3642 protocol.writeFieldBegin("targetId", 1, TType.I32); 3643 protocol.writeI32(this.targetId); 3644 protocol.writeFieldEnd(); 3645 if (this.targetType != null) { 3646 protocol.writeFieldBegin("targetType", 2, TType.I32); 3647 protocol.writeI32(this.targetType.value); 3648 protocol.writeFieldEnd(); 3649 } 3650 if (this.expiryDate != null) { 3651 protocol.writeFieldBegin("expiryDate", 3, TType.STRING); 3652 protocol.writeString(this.expiryDate); 3653 protocol.writeFieldEnd(); 3654 } 3655 if (this.token != null) { 3656 protocol.writeFieldBegin("token", 4, TType.STRUCT); 3657 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 3658 protocol.writeFieldEnd(); 3659 } 3660 protocol.writeFieldStop(); 3661 protocol.writeStructEnd(); 3662 } 3663 3664 @Override 3665 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3666 String result = null; 3667 ServiceRuntimeException ex1 = null; 3668 protocol.readStructBegin(); 3669 while (true) { 3670 FieldMetadata field = protocol.readFieldBegin(); 3671 if (field.typeId == TType.STOP) { 3672 break; 3673 } 3674 switch (field.fieldId) { 3675 case 0: { 3676 if (field.typeId == TType.STRING) { 3677 String value = protocol.readString(); 3678 result = value; 3679 } else { 3680 ProtocolUtil.skip(protocol, field.typeId); 3681 } 3682 } 3683 break; 3684 case 1: { 3685 if (field.typeId == TType.STRUCT) { 3686 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3687 ex1 = value; 3688 } else { 3689 ProtocolUtil.skip(protocol, field.typeId); 3690 } 3691 } 3692 break; 3693 default: ProtocolUtil.skip(protocol, field.typeId); break; 3694 } 3695 protocol.readFieldEnd(); 3696 } 3697 protocol.readStructEnd(); 3698 if (result != null) { 3699 return result; 3700 } else if (ex1 != null) { 3701 throw ex1; 3702 } else { 3703 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3704 } 3705 } 3706 } 3707 3708 private static final class CreateTempPwdWithDurationCall extends MethodCall<String> { 3709 private final Integer targetId; 3710 3711 private final TmpPwdTargetType targetType; 3712 3713 private final Integer duration; 3714 3715 private final Token token; 3716 3717 CreateTempPwdWithDurationCall(Integer targetId, TmpPwdTargetType targetType, Integer duration, 3718 Token token, ServiceMethodCallback<String> callback) { 3719 super("createTempPwdWithDuration", TMessageType.CALL, callback); 3720 if (targetId == null) throw new NullPointerException("targetId"); 3721 this.targetId = targetId; 3722 this.targetType = targetType; 3723 if (duration == null) throw new NullPointerException("duration"); 3724 this.duration = duration; 3725 this.token = token; 3726 } 3727 3728 @Override 3729 protected void send(Protocol protocol) throws IOException { 3730 protocol.writeStructBegin("args"); 3731 protocol.writeFieldBegin("targetId", 1, TType.I32); 3732 protocol.writeI32(this.targetId); 3733 protocol.writeFieldEnd(); 3734 if (this.targetType != null) { 3735 protocol.writeFieldBegin("targetType", 2, TType.I32); 3736 protocol.writeI32(this.targetType.value); 3737 protocol.writeFieldEnd(); 3738 } 3739 protocol.writeFieldBegin("duration", 3, TType.I32); 3740 protocol.writeI32(this.duration); 3741 protocol.writeFieldEnd(); 3742 if (this.token != null) { 3743 protocol.writeFieldBegin("token", 4, TType.STRUCT); 3744 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 3745 protocol.writeFieldEnd(); 3746 } 3747 protocol.writeFieldStop(); 3748 protocol.writeStructEnd(); 3749 } 3750 3751 @Override 3752 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3753 String result = null; 3754 ServiceRuntimeException ex1 = null; 3755 protocol.readStructBegin(); 3756 while (true) { 3757 FieldMetadata field = protocol.readFieldBegin(); 3758 if (field.typeId == TType.STOP) { 3759 break; 3760 } 3761 switch (field.fieldId) { 3762 case 0: { 3763 if (field.typeId == TType.STRING) { 3764 String value = protocol.readString(); 3765 result = value; 3766 } else { 3767 ProtocolUtil.skip(protocol, field.typeId); 3768 } 3769 } 3770 break; 3771 case 1: { 3772 if (field.typeId == TType.STRUCT) { 3773 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3774 ex1 = value; 3775 } else { 3776 ProtocolUtil.skip(protocol, field.typeId); 3777 } 3778 } 3779 break; 3780 default: ProtocolUtil.skip(protocol, field.typeId); break; 3781 } 3782 protocol.readFieldEnd(); 3783 } 3784 protocol.readStructEnd(); 3785 if (result != null) { 3786 return result; 3787 } else if (ex1 != null) { 3788 throw ex1; 3789 } else { 3790 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3791 } 3792 } 3793 } 3794 3795 private static final class DeleteAllFeaturesByPersonIdCall extends MethodCall<Integer> { 3796 private final Integer personId; 3797 3798 private final Boolean deleteImage; 3799 3800 private final Token token; 3801 3802 DeleteAllFeaturesByPersonIdCall(Integer personId, Boolean deleteImage, Token token, 3803 ServiceMethodCallback<Integer> callback) { 3804 super("deleteAllFeaturesByPersonId", TMessageType.CALL, callback); 3805 if (personId == null) throw new NullPointerException("personId"); 3806 this.personId = personId; 3807 if (deleteImage == null) throw new NullPointerException("deleteImage"); 3808 this.deleteImage = deleteImage; 3809 this.token = token; 3810 } 3811 3812 @Override 3813 protected void send(Protocol protocol) throws IOException { 3814 protocol.writeStructBegin("args"); 3815 protocol.writeFieldBegin("personId", 1, TType.I32); 3816 protocol.writeI32(this.personId); 3817 protocol.writeFieldEnd(); 3818 protocol.writeFieldBegin("deleteImage", 2, TType.BOOL); 3819 protocol.writeBool(this.deleteImage); 3820 protocol.writeFieldEnd(); 3821 if (this.token != null) { 3822 protocol.writeFieldBegin("token", 3, TType.STRUCT); 3823 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 3824 protocol.writeFieldEnd(); 3825 } 3826 protocol.writeFieldStop(); 3827 protocol.writeStructEnd(); 3828 } 3829 3830 @Override 3831 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3832 Integer result = null; 3833 ServiceRuntimeException ex1 = null; 3834 protocol.readStructBegin(); 3835 while (true) { 3836 FieldMetadata field = protocol.readFieldBegin(); 3837 if (field.typeId == TType.STOP) { 3838 break; 3839 } 3840 switch (field.fieldId) { 3841 case 0: { 3842 if (field.typeId == TType.I32) { 3843 int value = protocol.readI32(); 3844 result = value; 3845 } else { 3846 ProtocolUtil.skip(protocol, field.typeId); 3847 } 3848 } 3849 break; 3850 case 1: { 3851 if (field.typeId == TType.STRUCT) { 3852 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3853 ex1 = value; 3854 } else { 3855 ProtocolUtil.skip(protocol, field.typeId); 3856 } 3857 } 3858 break; 3859 default: ProtocolUtil.skip(protocol, field.typeId); break; 3860 } 3861 protocol.readFieldEnd(); 3862 } 3863 protocol.readStructEnd(); 3864 if (result != null) { 3865 return result; 3866 } else if (ex1 != null) { 3867 throw ex1; 3868 } else { 3869 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3870 } 3871 } 3872 } 3873 3874 private static final class DeleteDeviceCall extends MethodCall<Boolean> { 3875 private final Integer id; 3876 3877 private final Token token; 3878 3879 DeleteDeviceCall(Integer id, Token token, ServiceMethodCallback<Boolean> callback) { 3880 super("deleteDevice", TMessageType.CALL, callback); 3881 if (id == null) throw new NullPointerException("id"); 3882 this.id = id; 3883 this.token = token; 3884 } 3885 3886 @Override 3887 protected void send(Protocol protocol) throws IOException { 3888 protocol.writeStructBegin("args"); 3889 protocol.writeFieldBegin("id", 1, TType.I32); 3890 protocol.writeI32(this.id); 3891 protocol.writeFieldEnd(); 3892 if (this.token != null) { 3893 protocol.writeFieldBegin("token", 2, TType.STRUCT); 3894 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 3895 protocol.writeFieldEnd(); 3896 } 3897 protocol.writeFieldStop(); 3898 protocol.writeStructEnd(); 3899 } 3900 3901 @Override 3902 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3903 Boolean result = null; 3904 ServiceRuntimeException ex1 = null; 3905 protocol.readStructBegin(); 3906 while (true) { 3907 FieldMetadata field = protocol.readFieldBegin(); 3908 if (field.typeId == TType.STOP) { 3909 break; 3910 } 3911 switch (field.fieldId) { 3912 case 0: { 3913 if (field.typeId == TType.BOOL) { 3914 boolean value = protocol.readBool(); 3915 result = value; 3916 } else { 3917 ProtocolUtil.skip(protocol, field.typeId); 3918 } 3919 } 3920 break; 3921 case 1: { 3922 if (field.typeId == TType.STRUCT) { 3923 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3924 ex1 = value; 3925 } else { 3926 ProtocolUtil.skip(protocol, field.typeId); 3927 } 3928 } 3929 break; 3930 default: ProtocolUtil.skip(protocol, field.typeId); break; 3931 } 3932 protocol.readFieldEnd(); 3933 } 3934 protocol.readStructEnd(); 3935 if (result != null) { 3936 return result; 3937 } else if (ex1 != null) { 3938 throw ex1; 3939 } else { 3940 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 3941 } 3942 } 3943 } 3944 3945 private static final class DeleteDeviceByMacCall extends MethodCall<Boolean> { 3946 private final String mac; 3947 3948 private final Token token; 3949 3950 DeleteDeviceByMacCall(String mac, Token token, ServiceMethodCallback<Boolean> callback) { 3951 super("deleteDeviceByMac", TMessageType.CALL, callback); 3952 this.mac = mac; 3953 this.token = token; 3954 } 3955 3956 @Override 3957 protected void send(Protocol protocol) throws IOException { 3958 protocol.writeStructBegin("args"); 3959 if (this.mac != null) { 3960 protocol.writeFieldBegin("mac", 1, TType.STRING); 3961 protocol.writeString(this.mac); 3962 protocol.writeFieldEnd(); 3963 } 3964 if (this.token != null) { 3965 protocol.writeFieldBegin("token", 2, TType.STRUCT); 3966 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 3967 protocol.writeFieldEnd(); 3968 } 3969 protocol.writeFieldStop(); 3970 protocol.writeStructEnd(); 3971 } 3972 3973 @Override 3974 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 3975 Boolean result = null; 3976 ServiceRuntimeException ex1 = null; 3977 protocol.readStructBegin(); 3978 while (true) { 3979 FieldMetadata field = protocol.readFieldBegin(); 3980 if (field.typeId == TType.STOP) { 3981 break; 3982 } 3983 switch (field.fieldId) { 3984 case 0: { 3985 if (field.typeId == TType.BOOL) { 3986 boolean value = protocol.readBool(); 3987 result = value; 3988 } else { 3989 ProtocolUtil.skip(protocol, field.typeId); 3990 } 3991 } 3992 break; 3993 case 1: { 3994 if (field.typeId == TType.STRUCT) { 3995 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 3996 ex1 = value; 3997 } else { 3998 ProtocolUtil.skip(protocol, field.typeId); 3999 } 4000 } 4001 break; 4002 default: ProtocolUtil.skip(protocol, field.typeId); break; 4003 } 4004 protocol.readFieldEnd(); 4005 } 4006 protocol.readStructEnd(); 4007 if (result != null) { 4008 return result; 4009 } else if (ex1 != null) { 4010 throw ex1; 4011 } else { 4012 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4013 } 4014 } 4015 } 4016 4017 private static final class DeleteDeviceGroupCall extends MethodCall<Integer> { 4018 private final Integer deviceGroupId; 4019 4020 private final Token token; 4021 4022 DeleteDeviceGroupCall(Integer deviceGroupId, Token token, 4023 ServiceMethodCallback<Integer> callback) { 4024 super("deleteDeviceGroup", TMessageType.CALL, callback); 4025 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 4026 this.deviceGroupId = deviceGroupId; 4027 this.token = token; 4028 } 4029 4030 @Override 4031 protected void send(Protocol protocol) throws IOException { 4032 protocol.writeStructBegin("args"); 4033 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 4034 protocol.writeI32(this.deviceGroupId); 4035 protocol.writeFieldEnd(); 4036 if (this.token != null) { 4037 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4038 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4039 protocol.writeFieldEnd(); 4040 } 4041 protocol.writeFieldStop(); 4042 protocol.writeStructEnd(); 4043 } 4044 4045 @Override 4046 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4047 Integer result = null; 4048 ServiceRuntimeException ex1 = null; 4049 protocol.readStructBegin(); 4050 while (true) { 4051 FieldMetadata field = protocol.readFieldBegin(); 4052 if (field.typeId == TType.STOP) { 4053 break; 4054 } 4055 switch (field.fieldId) { 4056 case 0: { 4057 if (field.typeId == TType.I32) { 4058 int value = protocol.readI32(); 4059 result = value; 4060 } else { 4061 ProtocolUtil.skip(protocol, field.typeId); 4062 } 4063 } 4064 break; 4065 case 1: { 4066 if (field.typeId == TType.STRUCT) { 4067 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4068 ex1 = value; 4069 } else { 4070 ProtocolUtil.skip(protocol, field.typeId); 4071 } 4072 } 4073 break; 4074 default: ProtocolUtil.skip(protocol, field.typeId); break; 4075 } 4076 protocol.readFieldEnd(); 4077 } 4078 protocol.readStructEnd(); 4079 if (result != null) { 4080 return result; 4081 } else if (ex1 != null) { 4082 throw ex1; 4083 } else { 4084 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4085 } 4086 } 4087 } 4088 4089 private static final class DeleteErrorLogByWhereCall extends MethodCall<Integer> { 4090 private final String where; 4091 4092 private final Token token; 4093 4094 DeleteErrorLogByWhereCall(String where, Token token, ServiceMethodCallback<Integer> callback) { 4095 super("deleteErrorLogByWhere", TMessageType.CALL, callback); 4096 this.where = where; 4097 this.token = token; 4098 } 4099 4100 @Override 4101 protected void send(Protocol protocol) throws IOException { 4102 protocol.writeStructBegin("args"); 4103 if (this.where != null) { 4104 protocol.writeFieldBegin("where", 1, TType.STRING); 4105 protocol.writeString(this.where); 4106 protocol.writeFieldEnd(); 4107 } 4108 if (this.token != null) { 4109 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4110 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4111 protocol.writeFieldEnd(); 4112 } 4113 protocol.writeFieldStop(); 4114 protocol.writeStructEnd(); 4115 } 4116 4117 @Override 4118 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4119 Integer result = null; 4120 ServiceRuntimeException ex1 = null; 4121 protocol.readStructBegin(); 4122 while (true) { 4123 FieldMetadata field = protocol.readFieldBegin(); 4124 if (field.typeId == TType.STOP) { 4125 break; 4126 } 4127 switch (field.fieldId) { 4128 case 0: { 4129 if (field.typeId == TType.I32) { 4130 int value = protocol.readI32(); 4131 result = value; 4132 } else { 4133 ProtocolUtil.skip(protocol, field.typeId); 4134 } 4135 } 4136 break; 4137 case 1: { 4138 if (field.typeId == TType.STRUCT) { 4139 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4140 ex1 = value; 4141 } else { 4142 ProtocolUtil.skip(protocol, field.typeId); 4143 } 4144 } 4145 break; 4146 default: ProtocolUtil.skip(protocol, field.typeId); break; 4147 } 4148 protocol.readFieldEnd(); 4149 } 4150 protocol.readStructEnd(); 4151 if (result != null) { 4152 return result; 4153 } else if (ex1 != null) { 4154 throw ex1; 4155 } else { 4156 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4157 } 4158 } 4159 } 4160 4161 private static final class DeleteFeatureCall extends MethodCall<List<String>> { 4162 private final String featureMd5; 4163 4164 private final Boolean deleteImage; 4165 4166 private final Token token; 4167 4168 DeleteFeatureCall(String featureMd5, Boolean deleteImage, Token token, 4169 ServiceMethodCallback<List<String>> callback) { 4170 super("deleteFeature", TMessageType.CALL, callback); 4171 this.featureMd5 = featureMd5; 4172 if (deleteImage == null) throw new NullPointerException("deleteImage"); 4173 this.deleteImage = deleteImage; 4174 this.token = token; 4175 } 4176 4177 @Override 4178 protected void send(Protocol protocol) throws IOException { 4179 protocol.writeStructBegin("args"); 4180 if (this.featureMd5 != null) { 4181 protocol.writeFieldBegin("featureMd5", 1, TType.STRING); 4182 protocol.writeString(this.featureMd5); 4183 protocol.writeFieldEnd(); 4184 } 4185 protocol.writeFieldBegin("deleteImage", 2, TType.BOOL); 4186 protocol.writeBool(this.deleteImage); 4187 protocol.writeFieldEnd(); 4188 if (this.token != null) { 4189 protocol.writeFieldBegin("token", 3, TType.STRUCT); 4190 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4191 protocol.writeFieldEnd(); 4192 } 4193 protocol.writeFieldStop(); 4194 protocol.writeStructEnd(); 4195 } 4196 4197 @Override 4198 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4199 List<String> result = null; 4200 ServiceRuntimeException ex1 = null; 4201 protocol.readStructBegin(); 4202 while (true) { 4203 FieldMetadata field = protocol.readFieldBegin(); 4204 if (field.typeId == TType.STOP) { 4205 break; 4206 } 4207 switch (field.fieldId) { 4208 case 0: { 4209 if (field.typeId == TType.LIST) { 4210 ListMetadata listMetadata0 = protocol.readListBegin(); 4211 List<String> value = new ArrayList<String>(listMetadata0.size); 4212 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 4213 String item0 = protocol.readString(); 4214 value.add(item0); 4215 } 4216 protocol.readListEnd(); 4217 result = value; 4218 } else { 4219 ProtocolUtil.skip(protocol, field.typeId); 4220 } 4221 } 4222 break; 4223 case 1: { 4224 if (field.typeId == TType.STRUCT) { 4225 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4226 ex1 = value; 4227 } else { 4228 ProtocolUtil.skip(protocol, field.typeId); 4229 } 4230 } 4231 break; 4232 default: ProtocolUtil.skip(protocol, field.typeId); break; 4233 } 4234 protocol.readFieldEnd(); 4235 } 4236 protocol.readStructEnd(); 4237 if (result != null) { 4238 return result; 4239 } else if (ex1 != null) { 4240 throw ex1; 4241 } else { 4242 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4243 } 4244 } 4245 } 4246 4247 private static final class DeleteGroupPermitOnDeviceGroupCall extends MethodCall<Integer> { 4248 private final Integer deviceGroupId; 4249 4250 private final Token token; 4251 4252 DeleteGroupPermitOnDeviceGroupCall(Integer deviceGroupId, Token token, 4253 ServiceMethodCallback<Integer> callback) { 4254 super("deleteGroupPermitOnDeviceGroup", TMessageType.CALL, callback); 4255 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 4256 this.deviceGroupId = deviceGroupId; 4257 this.token = token; 4258 } 4259 4260 @Override 4261 protected void send(Protocol protocol) throws IOException { 4262 protocol.writeStructBegin("args"); 4263 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 4264 protocol.writeI32(this.deviceGroupId); 4265 protocol.writeFieldEnd(); 4266 if (this.token != null) { 4267 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4268 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4269 protocol.writeFieldEnd(); 4270 } 4271 protocol.writeFieldStop(); 4272 protocol.writeStructEnd(); 4273 } 4274 4275 @Override 4276 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4277 Integer result = null; 4278 ServiceRuntimeException ex1 = null; 4279 protocol.readStructBegin(); 4280 while (true) { 4281 FieldMetadata field = protocol.readFieldBegin(); 4282 if (field.typeId == TType.STOP) { 4283 break; 4284 } 4285 switch (field.fieldId) { 4286 case 0: { 4287 if (field.typeId == TType.I32) { 4288 int value = protocol.readI32(); 4289 result = value; 4290 } else { 4291 ProtocolUtil.skip(protocol, field.typeId); 4292 } 4293 } 4294 break; 4295 case 1: { 4296 if (field.typeId == TType.STRUCT) { 4297 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4298 ex1 = value; 4299 } else { 4300 ProtocolUtil.skip(protocol, field.typeId); 4301 } 4302 } 4303 break; 4304 default: ProtocolUtil.skip(protocol, field.typeId); break; 4305 } 4306 protocol.readFieldEnd(); 4307 } 4308 protocol.readStructEnd(); 4309 if (result != null) { 4310 return result; 4311 } else if (ex1 != null) { 4312 throw ex1; 4313 } else { 4314 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4315 } 4316 } 4317 } 4318 4319 private static final class DeleteImageCall extends MethodCall<Integer> { 4320 private final String imageMd5; 4321 4322 private final Token token; 4323 4324 DeleteImageCall(String imageMd5, Token token, ServiceMethodCallback<Integer> callback) { 4325 super("deleteImage", TMessageType.CALL, callback); 4326 this.imageMd5 = imageMd5; 4327 this.token = token; 4328 } 4329 4330 @Override 4331 protected void send(Protocol protocol) throws IOException { 4332 protocol.writeStructBegin("args"); 4333 if (this.imageMd5 != null) { 4334 protocol.writeFieldBegin("imageMd5", 1, TType.STRING); 4335 protocol.writeString(this.imageMd5); 4336 protocol.writeFieldEnd(); 4337 } 4338 if (this.token != null) { 4339 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4340 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4341 protocol.writeFieldEnd(); 4342 } 4343 protocol.writeFieldStop(); 4344 protocol.writeStructEnd(); 4345 } 4346 4347 @Override 4348 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4349 Integer result = null; 4350 ServiceRuntimeException ex1 = null; 4351 protocol.readStructBegin(); 4352 while (true) { 4353 FieldMetadata field = protocol.readFieldBegin(); 4354 if (field.typeId == TType.STOP) { 4355 break; 4356 } 4357 switch (field.fieldId) { 4358 case 0: { 4359 if (field.typeId == TType.I32) { 4360 int value = protocol.readI32(); 4361 result = value; 4362 } else { 4363 ProtocolUtil.skip(protocol, field.typeId); 4364 } 4365 } 4366 break; 4367 case 1: { 4368 if (field.typeId == TType.STRUCT) { 4369 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4370 ex1 = value; 4371 } else { 4372 ProtocolUtil.skip(protocol, field.typeId); 4373 } 4374 } 4375 break; 4376 default: ProtocolUtil.skip(protocol, field.typeId); break; 4377 } 4378 protocol.readFieldEnd(); 4379 } 4380 protocol.readStructEnd(); 4381 if (result != null) { 4382 return result; 4383 } else if (ex1 != null) { 4384 throw ex1; 4385 } else { 4386 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4387 } 4388 } 4389 } 4390 4391 private static final class DeleteLogByWhereCall extends MethodCall<Integer> { 4392 private final String where; 4393 4394 private final Token token; 4395 4396 DeleteLogByWhereCall(String where, Token token, ServiceMethodCallback<Integer> callback) { 4397 super("deleteLogByWhere", TMessageType.CALL, callback); 4398 this.where = where; 4399 this.token = token; 4400 } 4401 4402 @Override 4403 protected void send(Protocol protocol) throws IOException { 4404 protocol.writeStructBegin("args"); 4405 if (this.where != null) { 4406 protocol.writeFieldBegin("where", 1, TType.STRING); 4407 protocol.writeString(this.where); 4408 protocol.writeFieldEnd(); 4409 } 4410 if (this.token != null) { 4411 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4412 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4413 protocol.writeFieldEnd(); 4414 } 4415 protocol.writeFieldStop(); 4416 protocol.writeStructEnd(); 4417 } 4418 4419 @Override 4420 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4421 Integer result = null; 4422 ServiceRuntimeException ex1 = null; 4423 protocol.readStructBegin(); 4424 while (true) { 4425 FieldMetadata field = protocol.readFieldBegin(); 4426 if (field.typeId == TType.STOP) { 4427 break; 4428 } 4429 switch (field.fieldId) { 4430 case 0: { 4431 if (field.typeId == TType.I32) { 4432 int value = protocol.readI32(); 4433 result = value; 4434 } else { 4435 ProtocolUtil.skip(protocol, field.typeId); 4436 } 4437 } 4438 break; 4439 case 1: { 4440 if (field.typeId == TType.STRUCT) { 4441 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4442 ex1 = value; 4443 } else { 4444 ProtocolUtil.skip(protocol, field.typeId); 4445 } 4446 } 4447 break; 4448 default: ProtocolUtil.skip(protocol, field.typeId); break; 4449 } 4450 protocol.readFieldEnd(); 4451 } 4452 protocol.readStructEnd(); 4453 if (result != null) { 4454 return result; 4455 } else if (ex1 != null) { 4456 throw ex1; 4457 } else { 4458 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4459 } 4460 } 4461 } 4462 4463 private static final class DeletePermitByIdCall extends MethodCall<Integer> { 4464 private final Integer deviceGroupId; 4465 4466 private final Integer personGroupId; 4467 4468 private final Token token; 4469 4470 DeletePermitByIdCall(Integer deviceGroupId, Integer personGroupId, Token token, 4471 ServiceMethodCallback<Integer> callback) { 4472 super("deletePermitById", TMessageType.CALL, callback); 4473 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 4474 this.deviceGroupId = deviceGroupId; 4475 if (personGroupId == null) throw new NullPointerException("personGroupId"); 4476 this.personGroupId = personGroupId; 4477 this.token = token; 4478 } 4479 4480 @Override 4481 protected void send(Protocol protocol) throws IOException { 4482 protocol.writeStructBegin("args"); 4483 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 4484 protocol.writeI32(this.deviceGroupId); 4485 protocol.writeFieldEnd(); 4486 protocol.writeFieldBegin("personGroupId", 2, TType.I32); 4487 protocol.writeI32(this.personGroupId); 4488 protocol.writeFieldEnd(); 4489 if (this.token != null) { 4490 protocol.writeFieldBegin("token", 3, TType.STRUCT); 4491 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4492 protocol.writeFieldEnd(); 4493 } 4494 protocol.writeFieldStop(); 4495 protocol.writeStructEnd(); 4496 } 4497 4498 @Override 4499 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4500 Integer result = null; 4501 ServiceRuntimeException ex1 = null; 4502 protocol.readStructBegin(); 4503 while (true) { 4504 FieldMetadata field = protocol.readFieldBegin(); 4505 if (field.typeId == TType.STOP) { 4506 break; 4507 } 4508 switch (field.fieldId) { 4509 case 0: { 4510 if (field.typeId == TType.I32) { 4511 int value = protocol.readI32(); 4512 result = value; 4513 } else { 4514 ProtocolUtil.skip(protocol, field.typeId); 4515 } 4516 } 4517 break; 4518 case 1: { 4519 if (field.typeId == TType.STRUCT) { 4520 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4521 ex1 = value; 4522 } else { 4523 ProtocolUtil.skip(protocol, field.typeId); 4524 } 4525 } 4526 break; 4527 default: ProtocolUtil.skip(protocol, field.typeId); break; 4528 } 4529 protocol.readFieldEnd(); 4530 } 4531 protocol.readStructEnd(); 4532 if (result != null) { 4533 return result; 4534 } else if (ex1 != null) { 4535 throw ex1; 4536 } else { 4537 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4538 } 4539 } 4540 } 4541 4542 private static final class DeletePersonCall extends MethodCall<Integer> { 4543 private final Integer personId; 4544 4545 private final Token token; 4546 4547 DeletePersonCall(Integer personId, Token token, ServiceMethodCallback<Integer> callback) { 4548 super("deletePerson", TMessageType.CALL, callback); 4549 if (personId == null) throw new NullPointerException("personId"); 4550 this.personId = personId; 4551 this.token = token; 4552 } 4553 4554 @Override 4555 protected void send(Protocol protocol) throws IOException { 4556 protocol.writeStructBegin("args"); 4557 protocol.writeFieldBegin("personId", 1, TType.I32); 4558 protocol.writeI32(this.personId); 4559 protocol.writeFieldEnd(); 4560 if (this.token != null) { 4561 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4562 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4563 protocol.writeFieldEnd(); 4564 } 4565 protocol.writeFieldStop(); 4566 protocol.writeStructEnd(); 4567 } 4568 4569 @Override 4570 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4571 Integer result = null; 4572 ServiceRuntimeException ex1 = null; 4573 protocol.readStructBegin(); 4574 while (true) { 4575 FieldMetadata field = protocol.readFieldBegin(); 4576 if (field.typeId == TType.STOP) { 4577 break; 4578 } 4579 switch (field.fieldId) { 4580 case 0: { 4581 if (field.typeId == TType.I32) { 4582 int value = protocol.readI32(); 4583 result = value; 4584 } else { 4585 ProtocolUtil.skip(protocol, field.typeId); 4586 } 4587 } 4588 break; 4589 case 1: { 4590 if (field.typeId == TType.STRUCT) { 4591 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4592 ex1 = value; 4593 } else { 4594 ProtocolUtil.skip(protocol, field.typeId); 4595 } 4596 } 4597 break; 4598 default: ProtocolUtil.skip(protocol, field.typeId); break; 4599 } 4600 protocol.readFieldEnd(); 4601 } 4602 protocol.readStructEnd(); 4603 if (result != null) { 4604 return result; 4605 } else if (ex1 != null) { 4606 throw ex1; 4607 } else { 4608 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4609 } 4610 } 4611 } 4612 4613 private static final class DeletePersonByPapersNumCall extends MethodCall<Integer> { 4614 private final String papersNum; 4615 4616 private final Token token; 4617 4618 DeletePersonByPapersNumCall(String papersNum, Token token, 4619 ServiceMethodCallback<Integer> callback) { 4620 super("deletePersonByPapersNum", TMessageType.CALL, callback); 4621 this.papersNum = papersNum; 4622 this.token = token; 4623 } 4624 4625 @Override 4626 protected void send(Protocol protocol) throws IOException { 4627 protocol.writeStructBegin("args"); 4628 if (this.papersNum != null) { 4629 protocol.writeFieldBegin("papersNum", 1, TType.STRING); 4630 protocol.writeString(this.papersNum); 4631 protocol.writeFieldEnd(); 4632 } 4633 if (this.token != null) { 4634 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4635 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4636 protocol.writeFieldEnd(); 4637 } 4638 protocol.writeFieldStop(); 4639 protocol.writeStructEnd(); 4640 } 4641 4642 @Override 4643 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4644 Integer result = null; 4645 ServiceRuntimeException ex1 = null; 4646 protocol.readStructBegin(); 4647 while (true) { 4648 FieldMetadata field = protocol.readFieldBegin(); 4649 if (field.typeId == TType.STOP) { 4650 break; 4651 } 4652 switch (field.fieldId) { 4653 case 0: { 4654 if (field.typeId == TType.I32) { 4655 int value = protocol.readI32(); 4656 result = value; 4657 } else { 4658 ProtocolUtil.skip(protocol, field.typeId); 4659 } 4660 } 4661 break; 4662 case 1: { 4663 if (field.typeId == TType.STRUCT) { 4664 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4665 ex1 = value; 4666 } else { 4667 ProtocolUtil.skip(protocol, field.typeId); 4668 } 4669 } 4670 break; 4671 default: ProtocolUtil.skip(protocol, field.typeId); break; 4672 } 4673 protocol.readFieldEnd(); 4674 } 4675 protocol.readStructEnd(); 4676 if (result != null) { 4677 return result; 4678 } else if (ex1 != null) { 4679 throw ex1; 4680 } else { 4681 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4682 } 4683 } 4684 } 4685 4686 private static final class DeletePersonGroupCall extends MethodCall<Integer> { 4687 private final Integer personGroupId; 4688 4689 private final Token token; 4690 4691 DeletePersonGroupCall(Integer personGroupId, Token token, 4692 ServiceMethodCallback<Integer> callback) { 4693 super("deletePersonGroup", TMessageType.CALL, callback); 4694 if (personGroupId == null) throw new NullPointerException("personGroupId"); 4695 this.personGroupId = personGroupId; 4696 this.token = token; 4697 } 4698 4699 @Override 4700 protected void send(Protocol protocol) throws IOException { 4701 protocol.writeStructBegin("args"); 4702 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 4703 protocol.writeI32(this.personGroupId); 4704 protocol.writeFieldEnd(); 4705 if (this.token != null) { 4706 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4707 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4708 protocol.writeFieldEnd(); 4709 } 4710 protocol.writeFieldStop(); 4711 protocol.writeStructEnd(); 4712 } 4713 4714 @Override 4715 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4716 Integer result = null; 4717 ServiceRuntimeException ex1 = null; 4718 protocol.readStructBegin(); 4719 while (true) { 4720 FieldMetadata field = protocol.readFieldBegin(); 4721 if (field.typeId == TType.STOP) { 4722 break; 4723 } 4724 switch (field.fieldId) { 4725 case 0: { 4726 if (field.typeId == TType.I32) { 4727 int value = protocol.readI32(); 4728 result = value; 4729 } else { 4730 ProtocolUtil.skip(protocol, field.typeId); 4731 } 4732 } 4733 break; 4734 case 1: { 4735 if (field.typeId == TType.STRUCT) { 4736 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4737 ex1 = value; 4738 } else { 4739 ProtocolUtil.skip(protocol, field.typeId); 4740 } 4741 } 4742 break; 4743 default: ProtocolUtil.skip(protocol, field.typeId); break; 4744 } 4745 protocol.readFieldEnd(); 4746 } 4747 protocol.readStructEnd(); 4748 if (result != null) { 4749 return result; 4750 } else if (ex1 != null) { 4751 throw ex1; 4752 } else { 4753 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4754 } 4755 } 4756 } 4757 4758 private static final class DeletePersonGroupPermitCall extends MethodCall<Integer> { 4759 private final Integer personGroupId; 4760 4761 private final Token token; 4762 4763 DeletePersonGroupPermitCall(Integer personGroupId, Token token, 4764 ServiceMethodCallback<Integer> callback) { 4765 super("deletePersonGroupPermit", TMessageType.CALL, callback); 4766 if (personGroupId == null) throw new NullPointerException("personGroupId"); 4767 this.personGroupId = personGroupId; 4768 this.token = token; 4769 } 4770 4771 @Override 4772 protected void send(Protocol protocol) throws IOException { 4773 protocol.writeStructBegin("args"); 4774 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 4775 protocol.writeI32(this.personGroupId); 4776 protocol.writeFieldEnd(); 4777 if (this.token != null) { 4778 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4779 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4780 protocol.writeFieldEnd(); 4781 } 4782 protocol.writeFieldStop(); 4783 protocol.writeStructEnd(); 4784 } 4785 4786 @Override 4787 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4788 Integer result = null; 4789 ServiceRuntimeException ex1 = null; 4790 protocol.readStructBegin(); 4791 while (true) { 4792 FieldMetadata field = protocol.readFieldBegin(); 4793 if (field.typeId == TType.STOP) { 4794 break; 4795 } 4796 switch (field.fieldId) { 4797 case 0: { 4798 if (field.typeId == TType.I32) { 4799 int value = protocol.readI32(); 4800 result = value; 4801 } else { 4802 ProtocolUtil.skip(protocol, field.typeId); 4803 } 4804 } 4805 break; 4806 case 1: { 4807 if (field.typeId == TType.STRUCT) { 4808 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4809 ex1 = value; 4810 } else { 4811 ProtocolUtil.skip(protocol, field.typeId); 4812 } 4813 } 4814 break; 4815 default: ProtocolUtil.skip(protocol, field.typeId); break; 4816 } 4817 protocol.readFieldEnd(); 4818 } 4819 protocol.readStructEnd(); 4820 if (result != null) { 4821 return result; 4822 } else if (ex1 != null) { 4823 throw ex1; 4824 } else { 4825 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4826 } 4827 } 4828 } 4829 4830 private static final class DeletePersonsCall extends MethodCall<Integer> { 4831 private final List<Integer> personIdList; 4832 4833 private final Token token; 4834 4835 DeletePersonsCall(List<Integer> personIdList, Token token, 4836 ServiceMethodCallback<Integer> callback) { 4837 super("deletePersons", TMessageType.CALL, callback); 4838 this.personIdList = personIdList; 4839 this.token = token; 4840 } 4841 4842 @Override 4843 protected void send(Protocol protocol) throws IOException { 4844 protocol.writeStructBegin("args"); 4845 if (this.personIdList != null) { 4846 protocol.writeFieldBegin("personIdList", 1, TType.LIST); 4847 protocol.writeListBegin(TType.I32, this.personIdList.size()); 4848 for (Integer item0 : this.personIdList) { 4849 protocol.writeI32(item0); 4850 } 4851 protocol.writeListEnd(); 4852 protocol.writeFieldEnd(); 4853 } 4854 if (this.token != null) { 4855 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4856 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4857 protocol.writeFieldEnd(); 4858 } 4859 protocol.writeFieldStop(); 4860 protocol.writeStructEnd(); 4861 } 4862 4863 @Override 4864 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4865 Integer result = null; 4866 ServiceRuntimeException ex1 = null; 4867 protocol.readStructBegin(); 4868 while (true) { 4869 FieldMetadata field = protocol.readFieldBegin(); 4870 if (field.typeId == TType.STOP) { 4871 break; 4872 } 4873 switch (field.fieldId) { 4874 case 0: { 4875 if (field.typeId == TType.I32) { 4876 int value = protocol.readI32(); 4877 result = value; 4878 } else { 4879 ProtocolUtil.skip(protocol, field.typeId); 4880 } 4881 } 4882 break; 4883 case 1: { 4884 if (field.typeId == TType.STRUCT) { 4885 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4886 ex1 = value; 4887 } else { 4888 ProtocolUtil.skip(protocol, field.typeId); 4889 } 4890 } 4891 break; 4892 default: ProtocolUtil.skip(protocol, field.typeId); break; 4893 } 4894 protocol.readFieldEnd(); 4895 } 4896 protocol.readStructEnd(); 4897 if (result != null) { 4898 return result; 4899 } else if (ex1 != null) { 4900 throw ex1; 4901 } else { 4902 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4903 } 4904 } 4905 } 4906 4907 private static final class DeletePersonsByPapersNumCall extends MethodCall<Integer> { 4908 private final List<String> papersNumlist; 4909 4910 private final Token token; 4911 4912 DeletePersonsByPapersNumCall(List<String> papersNumlist, Token token, 4913 ServiceMethodCallback<Integer> callback) { 4914 super("deletePersonsByPapersNum", TMessageType.CALL, callback); 4915 this.papersNumlist = papersNumlist; 4916 this.token = token; 4917 } 4918 4919 @Override 4920 protected void send(Protocol protocol) throws IOException { 4921 protocol.writeStructBegin("args"); 4922 if (this.papersNumlist != null) { 4923 protocol.writeFieldBegin("papersNumlist", 1, TType.LIST); 4924 protocol.writeListBegin(TType.STRING, this.papersNumlist.size()); 4925 for (String item0 : this.papersNumlist) { 4926 protocol.writeString(item0); 4927 } 4928 protocol.writeListEnd(); 4929 protocol.writeFieldEnd(); 4930 } 4931 if (this.token != null) { 4932 protocol.writeFieldBegin("token", 2, TType.STRUCT); 4933 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 4934 protocol.writeFieldEnd(); 4935 } 4936 protocol.writeFieldStop(); 4937 protocol.writeStructEnd(); 4938 } 4939 4940 @Override 4941 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 4942 Integer result = null; 4943 ServiceRuntimeException ex1 = null; 4944 protocol.readStructBegin(); 4945 while (true) { 4946 FieldMetadata field = protocol.readFieldBegin(); 4947 if (field.typeId == TType.STOP) { 4948 break; 4949 } 4950 switch (field.fieldId) { 4951 case 0: { 4952 if (field.typeId == TType.I32) { 4953 int value = protocol.readI32(); 4954 result = value; 4955 } else { 4956 ProtocolUtil.skip(protocol, field.typeId); 4957 } 4958 } 4959 break; 4960 case 1: { 4961 if (field.typeId == TType.STRUCT) { 4962 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 4963 ex1 = value; 4964 } else { 4965 ProtocolUtil.skip(protocol, field.typeId); 4966 } 4967 } 4968 break; 4969 default: ProtocolUtil.skip(protocol, field.typeId); break; 4970 } 4971 protocol.readFieldEnd(); 4972 } 4973 protocol.readStructEnd(); 4974 if (result != null) { 4975 return result; 4976 } else if (ex1 != null) { 4977 throw ex1; 4978 } else { 4979 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 4980 } 4981 } 4982 } 4983 4984 private static final class DisablePersonCall extends MethodCall<Void> { 4985 private final Integer personId; 4986 4987 private final Integer moveToGroupId; 4988 4989 private final Boolean deletePhoto; 4990 4991 private final Boolean deleteFeature; 4992 4993 private final Boolean deleteLog; 4994 4995 private final Token token; 4996 4997 DisablePersonCall(Integer personId, Integer moveToGroupId, Boolean deletePhoto, 4998 Boolean deleteFeature, Boolean deleteLog, Token token, 4999 ServiceMethodCallback<Void> callback) { 5000 super("disablePerson", TMessageType.CALL, callback); 5001 if (personId == null) throw new NullPointerException("personId"); 5002 this.personId = personId; 5003 this.moveToGroupId = moveToGroupId; 5004 if (deletePhoto == null) throw new NullPointerException("deletePhoto"); 5005 this.deletePhoto = deletePhoto; 5006 if (deleteFeature == null) throw new NullPointerException("deleteFeature"); 5007 this.deleteFeature = deleteFeature; 5008 if (deleteLog == null) throw new NullPointerException("deleteLog"); 5009 this.deleteLog = deleteLog; 5010 this.token = token; 5011 } 5012 5013 @Override 5014 protected void send(Protocol protocol) throws IOException { 5015 protocol.writeStructBegin("args"); 5016 protocol.writeFieldBegin("personId", 1, TType.I32); 5017 protocol.writeI32(this.personId); 5018 protocol.writeFieldEnd(); 5019 if (this.moveToGroupId != null) { 5020 protocol.writeFieldBegin("moveToGroupId", 2, TType.I32); 5021 protocol.writeI32(this.moveToGroupId); 5022 protocol.writeFieldEnd(); 5023 } 5024 protocol.writeFieldBegin("deletePhoto", 3, TType.BOOL); 5025 protocol.writeBool(this.deletePhoto); 5026 protocol.writeFieldEnd(); 5027 protocol.writeFieldBegin("deleteFeature", 4, TType.BOOL); 5028 protocol.writeBool(this.deleteFeature); 5029 protocol.writeFieldEnd(); 5030 protocol.writeFieldBegin("deleteLog", 5, TType.BOOL); 5031 protocol.writeBool(this.deleteLog); 5032 protocol.writeFieldEnd(); 5033 if (this.token != null) { 5034 protocol.writeFieldBegin("token", 6, TType.STRUCT); 5035 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 5036 protocol.writeFieldEnd(); 5037 } 5038 protocol.writeFieldStop(); 5039 protocol.writeStructEnd(); 5040 } 5041 5042 @Override 5043 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5044 ServiceRuntimeException ex1 = null; 5045 protocol.readStructBegin(); 5046 while (true) { 5047 FieldMetadata field = protocol.readFieldBegin(); 5048 if (field.typeId == TType.STOP) { 5049 break; 5050 } 5051 switch (field.fieldId) { 5052 case 1: { 5053 if (field.typeId == TType.STRUCT) { 5054 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5055 ex1 = value; 5056 } else { 5057 ProtocolUtil.skip(protocol, field.typeId); 5058 } 5059 } 5060 break; 5061 default: ProtocolUtil.skip(protocol, field.typeId); break; 5062 } 5063 protocol.readFieldEnd(); 5064 } 5065 protocol.readStructEnd(); 5066 if (ex1 != null) { 5067 throw ex1; 5068 } else { 5069 return null; 5070 } 5071 } 5072 } 5073 5074 private static final class DisablePersonListCall extends MethodCall<Void> { 5075 private final List<Integer> personIdList; 5076 5077 private final Token token; 5078 5079 DisablePersonListCall(List<Integer> personIdList, Token token, 5080 ServiceMethodCallback<Void> callback) { 5081 super("disablePersonList", TMessageType.CALL, callback); 5082 this.personIdList = personIdList; 5083 this.token = token; 5084 } 5085 5086 @Override 5087 protected void send(Protocol protocol) throws IOException { 5088 protocol.writeStructBegin("args"); 5089 if (this.personIdList != null) { 5090 protocol.writeFieldBegin("personIdList", 1, TType.LIST); 5091 protocol.writeListBegin(TType.I32, this.personIdList.size()); 5092 for (Integer item0 : this.personIdList) { 5093 protocol.writeI32(item0); 5094 } 5095 protocol.writeListEnd(); 5096 protocol.writeFieldEnd(); 5097 } 5098 if (this.token != null) { 5099 protocol.writeFieldBegin("token", 2, TType.STRUCT); 5100 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 5101 protocol.writeFieldEnd(); 5102 } 5103 protocol.writeFieldStop(); 5104 protocol.writeStructEnd(); 5105 } 5106 5107 @Override 5108 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5109 ServiceRuntimeException ex1 = null; 5110 protocol.readStructBegin(); 5111 while (true) { 5112 FieldMetadata field = protocol.readFieldBegin(); 5113 if (field.typeId == TType.STOP) { 5114 break; 5115 } 5116 switch (field.fieldId) { 5117 case 1: { 5118 if (field.typeId == TType.STRUCT) { 5119 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5120 ex1 = value; 5121 } else { 5122 ProtocolUtil.skip(protocol, field.typeId); 5123 } 5124 } 5125 break; 5126 default: ProtocolUtil.skip(protocol, field.typeId); break; 5127 } 5128 protocol.readFieldEnd(); 5129 } 5130 protocol.readStructEnd(); 5131 if (ex1 != null) { 5132 throw ex1; 5133 } else { 5134 return null; 5135 } 5136 } 5137 } 5138 5139 private static final class ExistsDeviceCall extends MethodCall<Boolean> { 5140 private final Integer id; 5141 5142 ExistsDeviceCall(Integer id, ServiceMethodCallback<Boolean> callback) { 5143 super("existsDevice", TMessageType.CALL, callback); 5144 if (id == null) throw new NullPointerException("id"); 5145 this.id = id; 5146 } 5147 5148 @Override 5149 protected void send(Protocol protocol) throws IOException { 5150 protocol.writeStructBegin("args"); 5151 protocol.writeFieldBegin("id", 1, TType.I32); 5152 protocol.writeI32(this.id); 5153 protocol.writeFieldEnd(); 5154 protocol.writeFieldStop(); 5155 protocol.writeStructEnd(); 5156 } 5157 5158 @Override 5159 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5160 Boolean result = null; 5161 ServiceRuntimeException ex1 = null; 5162 protocol.readStructBegin(); 5163 while (true) { 5164 FieldMetadata field = protocol.readFieldBegin(); 5165 if (field.typeId == TType.STOP) { 5166 break; 5167 } 5168 switch (field.fieldId) { 5169 case 0: { 5170 if (field.typeId == TType.BOOL) { 5171 boolean value = protocol.readBool(); 5172 result = value; 5173 } else { 5174 ProtocolUtil.skip(protocol, field.typeId); 5175 } 5176 } 5177 break; 5178 case 1: { 5179 if (field.typeId == TType.STRUCT) { 5180 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5181 ex1 = value; 5182 } else { 5183 ProtocolUtil.skip(protocol, field.typeId); 5184 } 5185 } 5186 break; 5187 default: ProtocolUtil.skip(protocol, field.typeId); break; 5188 } 5189 protocol.readFieldEnd(); 5190 } 5191 protocol.readStructEnd(); 5192 if (result != null) { 5193 return result; 5194 } else if (ex1 != null) { 5195 throw ex1; 5196 } else { 5197 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5198 } 5199 } 5200 } 5201 5202 private static final class ExistsFeatureCall extends MethodCall<Boolean> { 5203 private final String md5; 5204 5205 ExistsFeatureCall(String md5, ServiceMethodCallback<Boolean> callback) { 5206 super("existsFeature", TMessageType.CALL, callback); 5207 this.md5 = md5; 5208 } 5209 5210 @Override 5211 protected void send(Protocol protocol) throws IOException { 5212 protocol.writeStructBegin("args"); 5213 if (this.md5 != null) { 5214 protocol.writeFieldBegin("md5", 1, TType.STRING); 5215 protocol.writeString(this.md5); 5216 protocol.writeFieldEnd(); 5217 } 5218 protocol.writeFieldStop(); 5219 protocol.writeStructEnd(); 5220 } 5221 5222 @Override 5223 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5224 Boolean result = null; 5225 ServiceRuntimeException ex1 = null; 5226 protocol.readStructBegin(); 5227 while (true) { 5228 FieldMetadata field = protocol.readFieldBegin(); 5229 if (field.typeId == TType.STOP) { 5230 break; 5231 } 5232 switch (field.fieldId) { 5233 case 0: { 5234 if (field.typeId == TType.BOOL) { 5235 boolean value = protocol.readBool(); 5236 result = value; 5237 } else { 5238 ProtocolUtil.skip(protocol, field.typeId); 5239 } 5240 } 5241 break; 5242 case 1: { 5243 if (field.typeId == TType.STRUCT) { 5244 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5245 ex1 = value; 5246 } else { 5247 ProtocolUtil.skip(protocol, field.typeId); 5248 } 5249 } 5250 break; 5251 default: ProtocolUtil.skip(protocol, field.typeId); break; 5252 } 5253 protocol.readFieldEnd(); 5254 } 5255 protocol.readStructEnd(); 5256 if (result != null) { 5257 return result; 5258 } else if (ex1 != null) { 5259 throw ex1; 5260 } else { 5261 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5262 } 5263 } 5264 } 5265 5266 private static final class ExistsImageCall extends MethodCall<Boolean> { 5267 private final String md5; 5268 5269 ExistsImageCall(String md5, ServiceMethodCallback<Boolean> callback) { 5270 super("existsImage", TMessageType.CALL, callback); 5271 this.md5 = md5; 5272 } 5273 5274 @Override 5275 protected void send(Protocol protocol) throws IOException { 5276 protocol.writeStructBegin("args"); 5277 if (this.md5 != null) { 5278 protocol.writeFieldBegin("md5", 1, TType.STRING); 5279 protocol.writeString(this.md5); 5280 protocol.writeFieldEnd(); 5281 } 5282 protocol.writeFieldStop(); 5283 protocol.writeStructEnd(); 5284 } 5285 5286 @Override 5287 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5288 Boolean result = null; 5289 ServiceRuntimeException ex1 = null; 5290 protocol.readStructBegin(); 5291 while (true) { 5292 FieldMetadata field = protocol.readFieldBegin(); 5293 if (field.typeId == TType.STOP) { 5294 break; 5295 } 5296 switch (field.fieldId) { 5297 case 0: { 5298 if (field.typeId == TType.BOOL) { 5299 boolean value = protocol.readBool(); 5300 result = value; 5301 } else { 5302 ProtocolUtil.skip(protocol, field.typeId); 5303 } 5304 } 5305 break; 5306 case 1: { 5307 if (field.typeId == TType.STRUCT) { 5308 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5309 ex1 = value; 5310 } else { 5311 ProtocolUtil.skip(protocol, field.typeId); 5312 } 5313 } 5314 break; 5315 default: ProtocolUtil.skip(protocol, field.typeId); break; 5316 } 5317 protocol.readFieldEnd(); 5318 } 5319 protocol.readStructEnd(); 5320 if (result != null) { 5321 return result; 5322 } else if (ex1 != null) { 5323 throw ex1; 5324 } else { 5325 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5326 } 5327 } 5328 } 5329 5330 private static final class ExistsPersonCall extends MethodCall<Boolean> { 5331 private final Integer persionId; 5332 5333 ExistsPersonCall(Integer persionId, ServiceMethodCallback<Boolean> callback) { 5334 super("existsPerson", TMessageType.CALL, callback); 5335 if (persionId == null) throw new NullPointerException("persionId"); 5336 this.persionId = persionId; 5337 } 5338 5339 @Override 5340 protected void send(Protocol protocol) throws IOException { 5341 protocol.writeStructBegin("args"); 5342 protocol.writeFieldBegin("persionId", 1, TType.I32); 5343 protocol.writeI32(this.persionId); 5344 protocol.writeFieldEnd(); 5345 protocol.writeFieldStop(); 5346 protocol.writeStructEnd(); 5347 } 5348 5349 @Override 5350 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5351 Boolean result = null; 5352 ServiceRuntimeException ex1 = null; 5353 protocol.readStructBegin(); 5354 while (true) { 5355 FieldMetadata field = protocol.readFieldBegin(); 5356 if (field.typeId == TType.STOP) { 5357 break; 5358 } 5359 switch (field.fieldId) { 5360 case 0: { 5361 if (field.typeId == TType.BOOL) { 5362 boolean value = protocol.readBool(); 5363 result = value; 5364 } else { 5365 ProtocolUtil.skip(protocol, field.typeId); 5366 } 5367 } 5368 break; 5369 case 1: { 5370 if (field.typeId == TType.STRUCT) { 5371 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5372 ex1 = value; 5373 } else { 5374 ProtocolUtil.skip(protocol, field.typeId); 5375 } 5376 } 5377 break; 5378 default: ProtocolUtil.skip(protocol, field.typeId); break; 5379 } 5380 protocol.readFieldEnd(); 5381 } 5382 protocol.readStructEnd(); 5383 if (result != null) { 5384 return result; 5385 } else if (ex1 != null) { 5386 throw ex1; 5387 } else { 5388 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5389 } 5390 } 5391 } 5392 5393 private static final class FaceRecognizePersonPermittedCall extends MethodCall<Integer> { 5394 private final ByteString imageData; 5395 5396 private final Double threshold; 5397 5398 private final Integer deviceId; 5399 5400 FaceRecognizePersonPermittedCall(ByteString imageData, Double threshold, Integer deviceId, 5401 ServiceMethodCallback<Integer> callback) { 5402 super("faceRecognizePersonPermitted", TMessageType.CALL, callback); 5403 this.imageData = imageData; 5404 this.threshold = threshold; 5405 if (deviceId == null) throw new NullPointerException("deviceId"); 5406 this.deviceId = deviceId; 5407 } 5408 5409 @Override 5410 protected void send(Protocol protocol) throws IOException { 5411 protocol.writeStructBegin("args"); 5412 if (this.imageData != null) { 5413 protocol.writeFieldBegin("imageData", 1, TType.STRING); 5414 protocol.writeBinary(this.imageData); 5415 protocol.writeFieldEnd(); 5416 } 5417 if (this.threshold != null) { 5418 protocol.writeFieldBegin("threshold", 2, TType.DOUBLE); 5419 protocol.writeDouble(this.threshold); 5420 protocol.writeFieldEnd(); 5421 } 5422 protocol.writeFieldBegin("deviceId", 3, TType.I32); 5423 protocol.writeI32(this.deviceId); 5424 protocol.writeFieldEnd(); 5425 protocol.writeFieldStop(); 5426 protocol.writeStructEnd(); 5427 } 5428 5429 @Override 5430 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5431 Integer result = null; 5432 ServiceRuntimeException ex1 = null; 5433 protocol.readStructBegin(); 5434 while (true) { 5435 FieldMetadata field = protocol.readFieldBegin(); 5436 if (field.typeId == TType.STOP) { 5437 break; 5438 } 5439 switch (field.fieldId) { 5440 case 0: { 5441 if (field.typeId == TType.I32) { 5442 int value = protocol.readI32(); 5443 result = value; 5444 } else { 5445 ProtocolUtil.skip(protocol, field.typeId); 5446 } 5447 } 5448 break; 5449 case 1: { 5450 if (field.typeId == TType.STRUCT) { 5451 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5452 ex1 = value; 5453 } else { 5454 ProtocolUtil.skip(protocol, field.typeId); 5455 } 5456 } 5457 break; 5458 default: ProtocolUtil.skip(protocol, field.typeId); break; 5459 } 5460 protocol.readFieldEnd(); 5461 } 5462 protocol.readStructEnd(); 5463 if (result != null) { 5464 return result; 5465 } else if (ex1 != null) { 5466 throw ex1; 5467 } else { 5468 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5469 } 5470 } 5471 } 5472 5473 private static final class GetDeviceCall extends MethodCall<DeviceBean> { 5474 private final Integer deviceId; 5475 5476 GetDeviceCall(Integer deviceId, ServiceMethodCallback<DeviceBean> callback) { 5477 super("getDevice", TMessageType.CALL, callback); 5478 if (deviceId == null) throw new NullPointerException("deviceId"); 5479 this.deviceId = deviceId; 5480 } 5481 5482 @Override 5483 protected void send(Protocol protocol) throws IOException { 5484 protocol.writeStructBegin("args"); 5485 protocol.writeFieldBegin("deviceId", 1, TType.I32); 5486 protocol.writeI32(this.deviceId); 5487 protocol.writeFieldEnd(); 5488 protocol.writeFieldStop(); 5489 protocol.writeStructEnd(); 5490 } 5491 5492 @Override 5493 protected DeviceBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5494 DeviceBean result = null; 5495 ServiceRuntimeException ex1 = null; 5496 protocol.readStructBegin(); 5497 while (true) { 5498 FieldMetadata field = protocol.readFieldBegin(); 5499 if (field.typeId == TType.STOP) { 5500 break; 5501 } 5502 switch (field.fieldId) { 5503 case 0: { 5504 if (field.typeId == TType.STRUCT) { 5505 net.gdface.facelog.client.thrift.DeviceBean value = net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.read(protocol); 5506 result = value; 5507 } else { 5508 ProtocolUtil.skip(protocol, field.typeId); 5509 } 5510 } 5511 break; 5512 case 1: { 5513 if (field.typeId == TType.STRUCT) { 5514 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5515 ex1 = value; 5516 } else { 5517 ProtocolUtil.skip(protocol, field.typeId); 5518 } 5519 } 5520 break; 5521 default: ProtocolUtil.skip(protocol, field.typeId); break; 5522 } 5523 protocol.readFieldEnd(); 5524 } 5525 protocol.readStructEnd(); 5526 if (result != null) { 5527 return result; 5528 } else if (ex1 != null) { 5529 throw ex1; 5530 } else { 5531 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5532 } 5533 } 5534 } 5535 5536 private static final class GetDeviceByMacCall extends MethodCall<DeviceBean> { 5537 private final String mac; 5538 5539 GetDeviceByMacCall(String mac, ServiceMethodCallback<DeviceBean> callback) { 5540 super("getDeviceByMac", TMessageType.CALL, callback); 5541 this.mac = mac; 5542 } 5543 5544 @Override 5545 protected void send(Protocol protocol) throws IOException { 5546 protocol.writeStructBegin("args"); 5547 if (this.mac != null) { 5548 protocol.writeFieldBegin("mac", 1, TType.STRING); 5549 protocol.writeString(this.mac); 5550 protocol.writeFieldEnd(); 5551 } 5552 protocol.writeFieldStop(); 5553 protocol.writeStructEnd(); 5554 } 5555 5556 @Override 5557 protected DeviceBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5558 DeviceBean result = null; 5559 ServiceRuntimeException ex1 = null; 5560 protocol.readStructBegin(); 5561 while (true) { 5562 FieldMetadata field = protocol.readFieldBegin(); 5563 if (field.typeId == TType.STOP) { 5564 break; 5565 } 5566 switch (field.fieldId) { 5567 case 0: { 5568 if (field.typeId == TType.STRUCT) { 5569 net.gdface.facelog.client.thrift.DeviceBean value = net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.read(protocol); 5570 result = value; 5571 } else { 5572 ProtocolUtil.skip(protocol, field.typeId); 5573 } 5574 } 5575 break; 5576 case 1: { 5577 if (field.typeId == TType.STRUCT) { 5578 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5579 ex1 = value; 5580 } else { 5581 ProtocolUtil.skip(protocol, field.typeId); 5582 } 5583 } 5584 break; 5585 default: ProtocolUtil.skip(protocol, field.typeId); break; 5586 } 5587 protocol.readFieldEnd(); 5588 } 5589 protocol.readStructEnd(); 5590 if (result != null) { 5591 return result; 5592 } else if (ex1 != null) { 5593 throw ex1; 5594 } else { 5595 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5596 } 5597 } 5598 } 5599 5600 private static final class GetDeviceGroupCall extends MethodCall<DeviceGroupBean> { 5601 private final Integer deviceGroupId; 5602 5603 GetDeviceGroupCall(Integer deviceGroupId, ServiceMethodCallback<DeviceGroupBean> callback) { 5604 super("getDeviceGroup", TMessageType.CALL, callback); 5605 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 5606 this.deviceGroupId = deviceGroupId; 5607 } 5608 5609 @Override 5610 protected void send(Protocol protocol) throws IOException { 5611 protocol.writeStructBegin("args"); 5612 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 5613 protocol.writeI32(this.deviceGroupId); 5614 protocol.writeFieldEnd(); 5615 protocol.writeFieldStop(); 5616 protocol.writeStructEnd(); 5617 } 5618 5619 @Override 5620 protected DeviceGroupBean receive(Protocol protocol, MessageMetadata metadata) throws 5621 Exception { 5622 DeviceGroupBean result = null; 5623 ServiceRuntimeException ex1 = null; 5624 protocol.readStructBegin(); 5625 while (true) { 5626 FieldMetadata field = protocol.readFieldBegin(); 5627 if (field.typeId == TType.STOP) { 5628 break; 5629 } 5630 switch (field.fieldId) { 5631 case 0: { 5632 if (field.typeId == TType.STRUCT) { 5633 net.gdface.facelog.client.thrift.DeviceGroupBean value = net.gdface.facelog.client.thrift.DeviceGroupBean.ADAPTER.read(protocol); 5634 result = value; 5635 } else { 5636 ProtocolUtil.skip(protocol, field.typeId); 5637 } 5638 } 5639 break; 5640 case 1: { 5641 if (field.typeId == TType.STRUCT) { 5642 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5643 ex1 = value; 5644 } else { 5645 ProtocolUtil.skip(protocol, field.typeId); 5646 } 5647 } 5648 break; 5649 default: ProtocolUtil.skip(protocol, field.typeId); break; 5650 } 5651 protocol.readFieldEnd(); 5652 } 5653 protocol.readStructEnd(); 5654 if (result != null) { 5655 return result; 5656 } else if (ex1 != null) { 5657 throw ex1; 5658 } else { 5659 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5660 } 5661 } 5662 } 5663 5664 private static final class GetDeviceGroupsCall extends MethodCall<List<DeviceGroupBean>> { 5665 private final List<Integer> groupIdList; 5666 5667 GetDeviceGroupsCall(List<Integer> groupIdList, 5668 ServiceMethodCallback<List<DeviceGroupBean>> callback) { 5669 super("getDeviceGroups", TMessageType.CALL, callback); 5670 this.groupIdList = groupIdList; 5671 } 5672 5673 @Override 5674 protected void send(Protocol protocol) throws IOException { 5675 protocol.writeStructBegin("args"); 5676 if (this.groupIdList != null) { 5677 protocol.writeFieldBegin("groupIdList", 1, TType.LIST); 5678 protocol.writeListBegin(TType.I32, this.groupIdList.size()); 5679 for (Integer item0 : this.groupIdList) { 5680 protocol.writeI32(item0); 5681 } 5682 protocol.writeListEnd(); 5683 protocol.writeFieldEnd(); 5684 } 5685 protocol.writeFieldStop(); 5686 protocol.writeStructEnd(); 5687 } 5688 5689 @Override 5690 protected List<DeviceGroupBean> receive(Protocol protocol, MessageMetadata metadata) throws 5691 Exception { 5692 List<DeviceGroupBean> result = null; 5693 ServiceRuntimeException ex1 = null; 5694 protocol.readStructBegin(); 5695 while (true) { 5696 FieldMetadata field = protocol.readFieldBegin(); 5697 if (field.typeId == TType.STOP) { 5698 break; 5699 } 5700 switch (field.fieldId) { 5701 case 0: { 5702 if (field.typeId == TType.LIST) { 5703 ListMetadata listMetadata0 = protocol.readListBegin(); 5704 List<DeviceGroupBean> value = new ArrayList<DeviceGroupBean>(listMetadata0.size); 5705 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 5706 net.gdface.facelog.client.thrift.DeviceGroupBean item0 = net.gdface.facelog.client.thrift.DeviceGroupBean.ADAPTER.read(protocol); 5707 value.add(item0); 5708 } 5709 protocol.readListEnd(); 5710 result = value; 5711 } else { 5712 ProtocolUtil.skip(protocol, field.typeId); 5713 } 5714 } 5715 break; 5716 case 1: { 5717 if (field.typeId == TType.STRUCT) { 5718 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5719 ex1 = value; 5720 } else { 5721 ProtocolUtil.skip(protocol, field.typeId); 5722 } 5723 } 5724 break; 5725 default: ProtocolUtil.skip(protocol, field.typeId); break; 5726 } 5727 protocol.readFieldEnd(); 5728 } 5729 protocol.readStructEnd(); 5730 if (result != null) { 5731 return result; 5732 } else if (ex1 != null) { 5733 throw ex1; 5734 } else { 5735 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5736 } 5737 } 5738 } 5739 5740 private static final class GetDeviceGroupsBelongsCall extends MethodCall<List<Integer>> { 5741 private final Integer deviceId; 5742 5743 GetDeviceGroupsBelongsCall(Integer deviceId, ServiceMethodCallback<List<Integer>> callback) { 5744 super("getDeviceGroupsBelongs", TMessageType.CALL, callback); 5745 if (deviceId == null) throw new NullPointerException("deviceId"); 5746 this.deviceId = deviceId; 5747 } 5748 5749 @Override 5750 protected void send(Protocol protocol) throws IOException { 5751 protocol.writeStructBegin("args"); 5752 protocol.writeFieldBegin("deviceId", 1, TType.I32); 5753 protocol.writeI32(this.deviceId); 5754 protocol.writeFieldEnd(); 5755 protocol.writeFieldStop(); 5756 protocol.writeStructEnd(); 5757 } 5758 5759 @Override 5760 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5761 List<Integer> result = null; 5762 ServiceRuntimeException ex1 = null; 5763 protocol.readStructBegin(); 5764 while (true) { 5765 FieldMetadata field = protocol.readFieldBegin(); 5766 if (field.typeId == TType.STOP) { 5767 break; 5768 } 5769 switch (field.fieldId) { 5770 case 0: { 5771 if (field.typeId == TType.LIST) { 5772 ListMetadata listMetadata0 = protocol.readListBegin(); 5773 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 5774 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 5775 int item0 = protocol.readI32(); 5776 value.add(item0); 5777 } 5778 protocol.readListEnd(); 5779 result = value; 5780 } else { 5781 ProtocolUtil.skip(protocol, field.typeId); 5782 } 5783 } 5784 break; 5785 case 1: { 5786 if (field.typeId == TType.STRUCT) { 5787 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5788 ex1 = value; 5789 } else { 5790 ProtocolUtil.skip(protocol, field.typeId); 5791 } 5792 } 5793 break; 5794 default: ProtocolUtil.skip(protocol, field.typeId); break; 5795 } 5796 protocol.readFieldEnd(); 5797 } 5798 protocol.readStructEnd(); 5799 if (result != null) { 5800 return result; 5801 } else if (ex1 != null) { 5802 throw ex1; 5803 } else { 5804 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5805 } 5806 } 5807 } 5808 5809 private static final class GetDeviceGroupsPermitCall extends MethodCall<List<Integer>> { 5810 private final Integer personGroupId; 5811 5812 GetDeviceGroupsPermitCall(Integer personGroupId, 5813 ServiceMethodCallback<List<Integer>> callback) { 5814 super("getDeviceGroupsPermit", TMessageType.CALL, callback); 5815 if (personGroupId == null) throw new NullPointerException("personGroupId"); 5816 this.personGroupId = personGroupId; 5817 } 5818 5819 @Override 5820 protected void send(Protocol protocol) throws IOException { 5821 protocol.writeStructBegin("args"); 5822 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 5823 protocol.writeI32(this.personGroupId); 5824 protocol.writeFieldEnd(); 5825 protocol.writeFieldStop(); 5826 protocol.writeStructEnd(); 5827 } 5828 5829 @Override 5830 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5831 List<Integer> result = null; 5832 ServiceRuntimeException ex1 = null; 5833 protocol.readStructBegin(); 5834 while (true) { 5835 FieldMetadata field = protocol.readFieldBegin(); 5836 if (field.typeId == TType.STOP) { 5837 break; 5838 } 5839 switch (field.fieldId) { 5840 case 0: { 5841 if (field.typeId == TType.LIST) { 5842 ListMetadata listMetadata0 = protocol.readListBegin(); 5843 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 5844 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 5845 int item0 = protocol.readI32(); 5846 value.add(item0); 5847 } 5848 protocol.readListEnd(); 5849 result = value; 5850 } else { 5851 ProtocolUtil.skip(protocol, field.typeId); 5852 } 5853 } 5854 break; 5855 case 1: { 5856 if (field.typeId == TType.STRUCT) { 5857 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5858 ex1 = value; 5859 } else { 5860 ProtocolUtil.skip(protocol, field.typeId); 5861 } 5862 } 5863 break; 5864 default: ProtocolUtil.skip(protocol, field.typeId); break; 5865 } 5866 protocol.readFieldEnd(); 5867 } 5868 protocol.readStructEnd(); 5869 if (result != null) { 5870 return result; 5871 } else if (ex1 != null) { 5872 throw ex1; 5873 } else { 5874 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5875 } 5876 } 5877 } 5878 5879 private static final class GetDeviceGroupsPermittedByCall extends MethodCall<List<Integer>> { 5880 private final Integer personGroupId; 5881 5882 GetDeviceGroupsPermittedByCall(Integer personGroupId, 5883 ServiceMethodCallback<List<Integer>> callback) { 5884 super("getDeviceGroupsPermittedBy", TMessageType.CALL, callback); 5885 if (personGroupId == null) throw new NullPointerException("personGroupId"); 5886 this.personGroupId = personGroupId; 5887 } 5888 5889 @Override 5890 protected void send(Protocol protocol) throws IOException { 5891 protocol.writeStructBegin("args"); 5892 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 5893 protocol.writeI32(this.personGroupId); 5894 protocol.writeFieldEnd(); 5895 protocol.writeFieldStop(); 5896 protocol.writeStructEnd(); 5897 } 5898 5899 @Override 5900 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5901 List<Integer> result = null; 5902 ServiceRuntimeException ex1 = null; 5903 protocol.readStructBegin(); 5904 while (true) { 5905 FieldMetadata field = protocol.readFieldBegin(); 5906 if (field.typeId == TType.STOP) { 5907 break; 5908 } 5909 switch (field.fieldId) { 5910 case 0: { 5911 if (field.typeId == TType.LIST) { 5912 ListMetadata listMetadata0 = protocol.readListBegin(); 5913 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 5914 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 5915 int item0 = protocol.readI32(); 5916 value.add(item0); 5917 } 5918 protocol.readListEnd(); 5919 result = value; 5920 } else { 5921 ProtocolUtil.skip(protocol, field.typeId); 5922 } 5923 } 5924 break; 5925 case 1: { 5926 if (field.typeId == TType.STRUCT) { 5927 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5928 ex1 = value; 5929 } else { 5930 ProtocolUtil.skip(protocol, field.typeId); 5931 } 5932 } 5933 break; 5934 default: ProtocolUtil.skip(protocol, field.typeId); break; 5935 } 5936 protocol.readFieldEnd(); 5937 } 5938 protocol.readStructEnd(); 5939 if (result != null) { 5940 return result; 5941 } else if (ex1 != null) { 5942 throw ex1; 5943 } else { 5944 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 5945 } 5946 } 5947 } 5948 5949 private static final class GetDeviceIdOfFeatureCall extends MethodCall<Integer> { 5950 private final String featureMd5; 5951 5952 GetDeviceIdOfFeatureCall(String featureMd5, ServiceMethodCallback<Integer> callback) { 5953 super("getDeviceIdOfFeature", TMessageType.CALL, callback); 5954 this.featureMd5 = featureMd5; 5955 } 5956 5957 @Override 5958 protected void send(Protocol protocol) throws IOException { 5959 protocol.writeStructBegin("args"); 5960 if (this.featureMd5 != null) { 5961 protocol.writeFieldBegin("featureMd5", 1, TType.STRING); 5962 protocol.writeString(this.featureMd5); 5963 protocol.writeFieldEnd(); 5964 } 5965 protocol.writeFieldStop(); 5966 protocol.writeStructEnd(); 5967 } 5968 5969 @Override 5970 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 5971 Integer result = null; 5972 ServiceRuntimeException ex1 = null; 5973 protocol.readStructBegin(); 5974 while (true) { 5975 FieldMetadata field = protocol.readFieldBegin(); 5976 if (field.typeId == TType.STOP) { 5977 break; 5978 } 5979 switch (field.fieldId) { 5980 case 0: { 5981 if (field.typeId == TType.I32) { 5982 int value = protocol.readI32(); 5983 result = value; 5984 } else { 5985 ProtocolUtil.skip(protocol, field.typeId); 5986 } 5987 } 5988 break; 5989 case 1: { 5990 if (field.typeId == TType.STRUCT) { 5991 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 5992 ex1 = value; 5993 } else { 5994 ProtocolUtil.skip(protocol, field.typeId); 5995 } 5996 } 5997 break; 5998 default: ProtocolUtil.skip(protocol, field.typeId); break; 5999 } 6000 protocol.readFieldEnd(); 6001 } 6002 protocol.readStructEnd(); 6003 if (result != null) { 6004 return result; 6005 } else if (ex1 != null) { 6006 throw ex1; 6007 } else { 6008 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6009 } 6010 } 6011 } 6012 6013 private static final class GetDevicesCall extends MethodCall<List<DeviceBean>> { 6014 private final List<Integer> idList; 6015 6016 GetDevicesCall(List<Integer> idList, ServiceMethodCallback<List<DeviceBean>> callback) { 6017 super("getDevices", TMessageType.CALL, callback); 6018 this.idList = idList; 6019 } 6020 6021 @Override 6022 protected void send(Protocol protocol) throws IOException { 6023 protocol.writeStructBegin("args"); 6024 if (this.idList != null) { 6025 protocol.writeFieldBegin("idList", 1, TType.LIST); 6026 protocol.writeListBegin(TType.I32, this.idList.size()); 6027 for (Integer item0 : this.idList) { 6028 protocol.writeI32(item0); 6029 } 6030 protocol.writeListEnd(); 6031 protocol.writeFieldEnd(); 6032 } 6033 protocol.writeFieldStop(); 6034 protocol.writeStructEnd(); 6035 } 6036 6037 @Override 6038 protected List<DeviceBean> receive(Protocol protocol, MessageMetadata metadata) throws 6039 Exception { 6040 List<DeviceBean> result = null; 6041 ServiceRuntimeException ex1 = null; 6042 protocol.readStructBegin(); 6043 while (true) { 6044 FieldMetadata field = protocol.readFieldBegin(); 6045 if (field.typeId == TType.STOP) { 6046 break; 6047 } 6048 switch (field.fieldId) { 6049 case 0: { 6050 if (field.typeId == TType.LIST) { 6051 ListMetadata listMetadata0 = protocol.readListBegin(); 6052 List<DeviceBean> value = new ArrayList<DeviceBean>(listMetadata0.size); 6053 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6054 net.gdface.facelog.client.thrift.DeviceBean item0 = net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.read(protocol); 6055 value.add(item0); 6056 } 6057 protocol.readListEnd(); 6058 result = value; 6059 } else { 6060 ProtocolUtil.skip(protocol, field.typeId); 6061 } 6062 } 6063 break; 6064 case 1: { 6065 if (field.typeId == TType.STRUCT) { 6066 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6067 ex1 = value; 6068 } else { 6069 ProtocolUtil.skip(protocol, field.typeId); 6070 } 6071 } 6072 break; 6073 default: ProtocolUtil.skip(protocol, field.typeId); break; 6074 } 6075 protocol.readFieldEnd(); 6076 } 6077 protocol.readStructEnd(); 6078 if (result != null) { 6079 return result; 6080 } else if (ex1 != null) { 6081 throw ex1; 6082 } else { 6083 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6084 } 6085 } 6086 } 6087 6088 private static final class GetDevicesOfGroupCall extends MethodCall<List<Integer>> { 6089 private final Integer deviceGroupId; 6090 6091 GetDevicesOfGroupCall(Integer deviceGroupId, ServiceMethodCallback<List<Integer>> callback) { 6092 super("getDevicesOfGroup", TMessageType.CALL, callback); 6093 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 6094 this.deviceGroupId = deviceGroupId; 6095 } 6096 6097 @Override 6098 protected void send(Protocol protocol) throws IOException { 6099 protocol.writeStructBegin("args"); 6100 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 6101 protocol.writeI32(this.deviceGroupId); 6102 protocol.writeFieldEnd(); 6103 protocol.writeFieldStop(); 6104 protocol.writeStructEnd(); 6105 } 6106 6107 @Override 6108 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6109 List<Integer> result = null; 6110 ServiceRuntimeException ex1 = null; 6111 protocol.readStructBegin(); 6112 while (true) { 6113 FieldMetadata field = protocol.readFieldBegin(); 6114 if (field.typeId == TType.STOP) { 6115 break; 6116 } 6117 switch (field.fieldId) { 6118 case 0: { 6119 if (field.typeId == TType.LIST) { 6120 ListMetadata listMetadata0 = protocol.readListBegin(); 6121 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 6122 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6123 int item0 = protocol.readI32(); 6124 value.add(item0); 6125 } 6126 protocol.readListEnd(); 6127 result = value; 6128 } else { 6129 ProtocolUtil.skip(protocol, field.typeId); 6130 } 6131 } 6132 break; 6133 case 1: { 6134 if (field.typeId == TType.STRUCT) { 6135 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6136 ex1 = value; 6137 } else { 6138 ProtocolUtil.skip(protocol, field.typeId); 6139 } 6140 } 6141 break; 6142 default: ProtocolUtil.skip(protocol, field.typeId); break; 6143 } 6144 protocol.readFieldEnd(); 6145 } 6146 protocol.readStructEnd(); 6147 if (result != null) { 6148 return result; 6149 } else if (ex1 != null) { 6150 throw ex1; 6151 } else { 6152 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6153 } 6154 } 6155 } 6156 6157 private static final class GetFaceCall extends MethodCall<FaceBean> { 6158 private final Integer faceId; 6159 6160 GetFaceCall(Integer faceId, ServiceMethodCallback<FaceBean> callback) { 6161 super("getFace", TMessageType.CALL, callback); 6162 if (faceId == null) throw new NullPointerException("faceId"); 6163 this.faceId = faceId; 6164 } 6165 6166 @Override 6167 protected void send(Protocol protocol) throws IOException { 6168 protocol.writeStructBegin("args"); 6169 protocol.writeFieldBegin("faceId", 1, TType.I32); 6170 protocol.writeI32(this.faceId); 6171 protocol.writeFieldEnd(); 6172 protocol.writeFieldStop(); 6173 protocol.writeStructEnd(); 6174 } 6175 6176 @Override 6177 protected FaceBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6178 FaceBean result = null; 6179 ServiceRuntimeException ex1 = null; 6180 protocol.readStructBegin(); 6181 while (true) { 6182 FieldMetadata field = protocol.readFieldBegin(); 6183 if (field.typeId == TType.STOP) { 6184 break; 6185 } 6186 switch (field.fieldId) { 6187 case 0: { 6188 if (field.typeId == TType.STRUCT) { 6189 net.gdface.facelog.client.thrift.FaceBean value = net.gdface.facelog.client.thrift.FaceBean.ADAPTER.read(protocol); 6190 result = value; 6191 } else { 6192 ProtocolUtil.skip(protocol, field.typeId); 6193 } 6194 } 6195 break; 6196 case 1: { 6197 if (field.typeId == TType.STRUCT) { 6198 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6199 ex1 = value; 6200 } else { 6201 ProtocolUtil.skip(protocol, field.typeId); 6202 } 6203 } 6204 break; 6205 default: ProtocolUtil.skip(protocol, field.typeId); break; 6206 } 6207 protocol.readFieldEnd(); 6208 } 6209 protocol.readStructEnd(); 6210 if (result != null) { 6211 return result; 6212 } else if (ex1 != null) { 6213 throw ex1; 6214 } else { 6215 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6216 } 6217 } 6218 } 6219 6220 private static final class GetFaceApiParametersCall extends MethodCall<Map<String, String>> { 6221 private final Token token; 6222 6223 GetFaceApiParametersCall(Token token, ServiceMethodCallback<Map<String, String>> callback) { 6224 super("getFaceApiParameters", TMessageType.CALL, callback); 6225 this.token = token; 6226 } 6227 6228 @Override 6229 protected void send(Protocol protocol) throws IOException { 6230 protocol.writeStructBegin("args"); 6231 if (this.token != null) { 6232 protocol.writeFieldBegin("token", 1, TType.STRUCT); 6233 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 6234 protocol.writeFieldEnd(); 6235 } 6236 protocol.writeFieldStop(); 6237 protocol.writeStructEnd(); 6238 } 6239 6240 @Override 6241 protected Map<String, String> receive(Protocol protocol, MessageMetadata metadata) throws 6242 Exception { 6243 Map<String, String> result = null; 6244 ServiceRuntimeException ex1 = null; 6245 protocol.readStructBegin(); 6246 while (true) { 6247 FieldMetadata field = protocol.readFieldBegin(); 6248 if (field.typeId == TType.STOP) { 6249 break; 6250 } 6251 switch (field.fieldId) { 6252 case 0: { 6253 if (field.typeId == TType.MAP) { 6254 MapMetadata mapMetadata0 = protocol.readMapBegin(); 6255 Map<String, String> value = new HashMap<String, String>(mapMetadata0.size); 6256 for (int i0 = 0; i0 < mapMetadata0.size; ++i0) { 6257 String key0 = protocol.readString(); 6258 String value0 = protocol.readString(); 6259 value.put(key0, value0); 6260 } 6261 protocol.readMapEnd(); 6262 result = value; 6263 } else { 6264 ProtocolUtil.skip(protocol, field.typeId); 6265 } 6266 } 6267 break; 6268 case 1: { 6269 if (field.typeId == TType.STRUCT) { 6270 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6271 ex1 = value; 6272 } else { 6273 ProtocolUtil.skip(protocol, field.typeId); 6274 } 6275 } 6276 break; 6277 default: ProtocolUtil.skip(protocol, field.typeId); break; 6278 } 6279 protocol.readFieldEnd(); 6280 } 6281 protocol.readStructEnd(); 6282 if (result != null) { 6283 return result; 6284 } else if (ex1 != null) { 6285 throw ex1; 6286 } else { 6287 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6288 } 6289 } 6290 } 6291 6292 private static final class GetFacesOfFeatureCall extends MethodCall<List<FaceBean>> { 6293 private final String featureMd5; 6294 6295 GetFacesOfFeatureCall(String featureMd5, ServiceMethodCallback<List<FaceBean>> callback) { 6296 super("getFacesOfFeature", TMessageType.CALL, callback); 6297 this.featureMd5 = featureMd5; 6298 } 6299 6300 @Override 6301 protected void send(Protocol protocol) throws IOException { 6302 protocol.writeStructBegin("args"); 6303 if (this.featureMd5 != null) { 6304 protocol.writeFieldBegin("featureMd5", 1, TType.STRING); 6305 protocol.writeString(this.featureMd5); 6306 protocol.writeFieldEnd(); 6307 } 6308 protocol.writeFieldStop(); 6309 protocol.writeStructEnd(); 6310 } 6311 6312 @Override 6313 protected List<FaceBean> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6314 List<FaceBean> result = null; 6315 ServiceRuntimeException ex1 = null; 6316 protocol.readStructBegin(); 6317 while (true) { 6318 FieldMetadata field = protocol.readFieldBegin(); 6319 if (field.typeId == TType.STOP) { 6320 break; 6321 } 6322 switch (field.fieldId) { 6323 case 0: { 6324 if (field.typeId == TType.LIST) { 6325 ListMetadata listMetadata0 = protocol.readListBegin(); 6326 List<FaceBean> value = new ArrayList<FaceBean>(listMetadata0.size); 6327 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6328 net.gdface.facelog.client.thrift.FaceBean item0 = net.gdface.facelog.client.thrift.FaceBean.ADAPTER.read(protocol); 6329 value.add(item0); 6330 } 6331 protocol.readListEnd(); 6332 result = value; 6333 } else { 6334 ProtocolUtil.skip(protocol, field.typeId); 6335 } 6336 } 6337 break; 6338 case 1: { 6339 if (field.typeId == TType.STRUCT) { 6340 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6341 ex1 = value; 6342 } else { 6343 ProtocolUtil.skip(protocol, field.typeId); 6344 } 6345 } 6346 break; 6347 default: ProtocolUtil.skip(protocol, field.typeId); break; 6348 } 6349 protocol.readFieldEnd(); 6350 } 6351 protocol.readStructEnd(); 6352 if (result != null) { 6353 return result; 6354 } else if (ex1 != null) { 6355 throw ex1; 6356 } else { 6357 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6358 } 6359 } 6360 } 6361 6362 private static final class GetFacesOfImageCall extends MethodCall<List<FaceBean>> { 6363 private final String imageMd5; 6364 6365 GetFacesOfImageCall(String imageMd5, ServiceMethodCallback<List<FaceBean>> callback) { 6366 super("getFacesOfImage", TMessageType.CALL, callback); 6367 this.imageMd5 = imageMd5; 6368 } 6369 6370 @Override 6371 protected void send(Protocol protocol) throws IOException { 6372 protocol.writeStructBegin("args"); 6373 if (this.imageMd5 != null) { 6374 protocol.writeFieldBegin("imageMd5", 1, TType.STRING); 6375 protocol.writeString(this.imageMd5); 6376 protocol.writeFieldEnd(); 6377 } 6378 protocol.writeFieldStop(); 6379 protocol.writeStructEnd(); 6380 } 6381 6382 @Override 6383 protected List<FaceBean> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6384 List<FaceBean> result = null; 6385 ServiceRuntimeException ex1 = null; 6386 protocol.readStructBegin(); 6387 while (true) { 6388 FieldMetadata field = protocol.readFieldBegin(); 6389 if (field.typeId == TType.STOP) { 6390 break; 6391 } 6392 switch (field.fieldId) { 6393 case 0: { 6394 if (field.typeId == TType.LIST) { 6395 ListMetadata listMetadata0 = protocol.readListBegin(); 6396 List<FaceBean> value = new ArrayList<FaceBean>(listMetadata0.size); 6397 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6398 net.gdface.facelog.client.thrift.FaceBean item0 = net.gdface.facelog.client.thrift.FaceBean.ADAPTER.read(protocol); 6399 value.add(item0); 6400 } 6401 protocol.readListEnd(); 6402 result = value; 6403 } else { 6404 ProtocolUtil.skip(protocol, field.typeId); 6405 } 6406 } 6407 break; 6408 case 1: { 6409 if (field.typeId == TType.STRUCT) { 6410 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6411 ex1 = value; 6412 } else { 6413 ProtocolUtil.skip(protocol, field.typeId); 6414 } 6415 } 6416 break; 6417 default: ProtocolUtil.skip(protocol, field.typeId); break; 6418 } 6419 protocol.readFieldEnd(); 6420 } 6421 protocol.readStructEnd(); 6422 if (result != null) { 6423 return result; 6424 } else if (ex1 != null) { 6425 throw ex1; 6426 } else { 6427 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6428 } 6429 } 6430 } 6431 6432 private static final class GetFeatureCall extends MethodCall<FeatureBean> { 6433 private final String md5; 6434 6435 GetFeatureCall(String md5, ServiceMethodCallback<FeatureBean> callback) { 6436 super("getFeature", TMessageType.CALL, callback); 6437 this.md5 = md5; 6438 } 6439 6440 @Override 6441 protected void send(Protocol protocol) throws IOException { 6442 protocol.writeStructBegin("args"); 6443 if (this.md5 != null) { 6444 protocol.writeFieldBegin("md5", 1, TType.STRING); 6445 protocol.writeString(this.md5); 6446 protocol.writeFieldEnd(); 6447 } 6448 protocol.writeFieldStop(); 6449 protocol.writeStructEnd(); 6450 } 6451 6452 @Override 6453 protected FeatureBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6454 FeatureBean result = null; 6455 ServiceRuntimeException ex1 = null; 6456 protocol.readStructBegin(); 6457 while (true) { 6458 FieldMetadata field = protocol.readFieldBegin(); 6459 if (field.typeId == TType.STOP) { 6460 break; 6461 } 6462 switch (field.fieldId) { 6463 case 0: { 6464 if (field.typeId == TType.STRUCT) { 6465 net.gdface.facelog.client.thrift.FeatureBean value = net.gdface.facelog.client.thrift.FeatureBean.ADAPTER.read(protocol); 6466 result = value; 6467 } else { 6468 ProtocolUtil.skip(protocol, field.typeId); 6469 } 6470 } 6471 break; 6472 case 1: { 6473 if (field.typeId == TType.STRUCT) { 6474 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6475 ex1 = value; 6476 } else { 6477 ProtocolUtil.skip(protocol, field.typeId); 6478 } 6479 } 6480 break; 6481 default: ProtocolUtil.skip(protocol, field.typeId); break; 6482 } 6483 protocol.readFieldEnd(); 6484 } 6485 protocol.readStructEnd(); 6486 if (result != null) { 6487 return result; 6488 } else if (ex1 != null) { 6489 throw ex1; 6490 } else { 6491 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6492 } 6493 } 6494 } 6495 6496 private static final class GetFeatureBytesCall extends MethodCall<ByteString> { 6497 private final String md5; 6498 6499 GetFeatureBytesCall(String md5, ServiceMethodCallback<ByteString> callback) { 6500 super("getFeatureBytes", TMessageType.CALL, callback); 6501 this.md5 = md5; 6502 } 6503 6504 @Override 6505 protected void send(Protocol protocol) throws IOException { 6506 protocol.writeStructBegin("args"); 6507 if (this.md5 != null) { 6508 protocol.writeFieldBegin("md5", 1, TType.STRING); 6509 protocol.writeString(this.md5); 6510 protocol.writeFieldEnd(); 6511 } 6512 protocol.writeFieldStop(); 6513 protocol.writeStructEnd(); 6514 } 6515 6516 @Override 6517 protected ByteString receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6518 ByteString result = null; 6519 ServiceRuntimeException ex1 = null; 6520 protocol.readStructBegin(); 6521 while (true) { 6522 FieldMetadata field = protocol.readFieldBegin(); 6523 if (field.typeId == TType.STOP) { 6524 break; 6525 } 6526 switch (field.fieldId) { 6527 case 0: { 6528 if (field.typeId == TType.STRING) { 6529 ByteString value = protocol.readBinary(); 6530 result = value; 6531 } else { 6532 ProtocolUtil.skip(protocol, field.typeId); 6533 } 6534 } 6535 break; 6536 case 1: { 6537 if (field.typeId == TType.STRUCT) { 6538 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6539 ex1 = value; 6540 } else { 6541 ProtocolUtil.skip(protocol, field.typeId); 6542 } 6543 } 6544 break; 6545 default: ProtocolUtil.skip(protocol, field.typeId); break; 6546 } 6547 protocol.readFieldEnd(); 6548 } 6549 protocol.readStructEnd(); 6550 if (result != null) { 6551 return result; 6552 } else if (ex1 != null) { 6553 throw ex1; 6554 } else { 6555 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6556 } 6557 } 6558 } 6559 6560 private static final class GetFeatureBytesListCall extends MethodCall<List<ByteString>> { 6561 private final List<String> md5List; 6562 6563 private final Boolean truncation; 6564 6565 GetFeatureBytesListCall(List<String> md5List, Boolean truncation, 6566 ServiceMethodCallback<List<ByteString>> callback) { 6567 super("getFeatureBytesList", TMessageType.CALL, callback); 6568 this.md5List = md5List; 6569 if (truncation == null) throw new NullPointerException("truncation"); 6570 this.truncation = truncation; 6571 } 6572 6573 @Override 6574 protected void send(Protocol protocol) throws IOException { 6575 protocol.writeStructBegin("args"); 6576 if (this.md5List != null) { 6577 protocol.writeFieldBegin("md5List", 1, TType.LIST); 6578 protocol.writeListBegin(TType.STRING, this.md5List.size()); 6579 for (String item0 : this.md5List) { 6580 protocol.writeString(item0); 6581 } 6582 protocol.writeListEnd(); 6583 protocol.writeFieldEnd(); 6584 } 6585 protocol.writeFieldBegin("truncation", 2, TType.BOOL); 6586 protocol.writeBool(this.truncation); 6587 protocol.writeFieldEnd(); 6588 protocol.writeFieldStop(); 6589 protocol.writeStructEnd(); 6590 } 6591 6592 @Override 6593 protected List<ByteString> receive(Protocol protocol, MessageMetadata metadata) throws 6594 Exception { 6595 List<ByteString> result = null; 6596 ServiceRuntimeException ex1 = null; 6597 protocol.readStructBegin(); 6598 while (true) { 6599 FieldMetadata field = protocol.readFieldBegin(); 6600 if (field.typeId == TType.STOP) { 6601 break; 6602 } 6603 switch (field.fieldId) { 6604 case 0: { 6605 if (field.typeId == TType.LIST) { 6606 ListMetadata listMetadata0 = protocol.readListBegin(); 6607 List<ByteString> value = new ArrayList<ByteString>(listMetadata0.size); 6608 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6609 ByteString item0 = protocol.readBinary(); 6610 value.add(item0); 6611 } 6612 protocol.readListEnd(); 6613 result = value; 6614 } else { 6615 ProtocolUtil.skip(protocol, field.typeId); 6616 } 6617 } 6618 break; 6619 case 1: { 6620 if (field.typeId == TType.STRUCT) { 6621 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6622 ex1 = value; 6623 } else { 6624 ProtocolUtil.skip(protocol, field.typeId); 6625 } 6626 } 6627 break; 6628 default: ProtocolUtil.skip(protocol, field.typeId); break; 6629 } 6630 protocol.readFieldEnd(); 6631 } 6632 protocol.readStructEnd(); 6633 if (result != null) { 6634 return result; 6635 } else if (ex1 != null) { 6636 throw ex1; 6637 } else { 6638 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6639 } 6640 } 6641 } 6642 6643 private static final class GetFeatureBytesTruncationCall extends MethodCall<ByteString> { 6644 private final String md5; 6645 6646 private final Boolean truncation; 6647 6648 GetFeatureBytesTruncationCall(String md5, Boolean truncation, 6649 ServiceMethodCallback<ByteString> callback) { 6650 super("getFeatureBytesTruncation", TMessageType.CALL, callback); 6651 this.md5 = md5; 6652 if (truncation == null) throw new NullPointerException("truncation"); 6653 this.truncation = truncation; 6654 } 6655 6656 @Override 6657 protected void send(Protocol protocol) throws IOException { 6658 protocol.writeStructBegin("args"); 6659 if (this.md5 != null) { 6660 protocol.writeFieldBegin("md5", 1, TType.STRING); 6661 protocol.writeString(this.md5); 6662 protocol.writeFieldEnd(); 6663 } 6664 protocol.writeFieldBegin("truncation", 2, TType.BOOL); 6665 protocol.writeBool(this.truncation); 6666 protocol.writeFieldEnd(); 6667 protocol.writeFieldStop(); 6668 protocol.writeStructEnd(); 6669 } 6670 6671 @Override 6672 protected ByteString receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6673 ByteString result = null; 6674 ServiceRuntimeException ex1 = null; 6675 protocol.readStructBegin(); 6676 while (true) { 6677 FieldMetadata field = protocol.readFieldBegin(); 6678 if (field.typeId == TType.STOP) { 6679 break; 6680 } 6681 switch (field.fieldId) { 6682 case 0: { 6683 if (field.typeId == TType.STRING) { 6684 ByteString value = protocol.readBinary(); 6685 result = value; 6686 } else { 6687 ProtocolUtil.skip(protocol, field.typeId); 6688 } 6689 } 6690 break; 6691 case 1: { 6692 if (field.typeId == TType.STRUCT) { 6693 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6694 ex1 = value; 6695 } else { 6696 ProtocolUtil.skip(protocol, field.typeId); 6697 } 6698 } 6699 break; 6700 default: ProtocolUtil.skip(protocol, field.typeId); break; 6701 } 6702 protocol.readFieldEnd(); 6703 } 6704 protocol.readStructEnd(); 6705 if (result != null) { 6706 return result; 6707 } else if (ex1 != null) { 6708 throw ex1; 6709 } else { 6710 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6711 } 6712 } 6713 } 6714 6715 private static final class GetFeaturesCall extends MethodCall<List<FeatureBean>> { 6716 private final List<String> md5List; 6717 6718 GetFeaturesCall(List<String> md5List, ServiceMethodCallback<List<FeatureBean>> callback) { 6719 super("getFeatures", TMessageType.CALL, callback); 6720 this.md5List = md5List; 6721 } 6722 6723 @Override 6724 protected void send(Protocol protocol) throws IOException { 6725 protocol.writeStructBegin("args"); 6726 if (this.md5List != null) { 6727 protocol.writeFieldBegin("md5List", 1, TType.LIST); 6728 protocol.writeListBegin(TType.STRING, this.md5List.size()); 6729 for (String item0 : this.md5List) { 6730 protocol.writeString(item0); 6731 } 6732 protocol.writeListEnd(); 6733 protocol.writeFieldEnd(); 6734 } 6735 protocol.writeFieldStop(); 6736 protocol.writeStructEnd(); 6737 } 6738 6739 @Override 6740 protected List<FeatureBean> receive(Protocol protocol, MessageMetadata metadata) throws 6741 Exception { 6742 List<FeatureBean> result = null; 6743 ServiceRuntimeException ex1 = null; 6744 protocol.readStructBegin(); 6745 while (true) { 6746 FieldMetadata field = protocol.readFieldBegin(); 6747 if (field.typeId == TType.STOP) { 6748 break; 6749 } 6750 switch (field.fieldId) { 6751 case 0: { 6752 if (field.typeId == TType.LIST) { 6753 ListMetadata listMetadata0 = protocol.readListBegin(); 6754 List<FeatureBean> value = new ArrayList<FeatureBean>(listMetadata0.size); 6755 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6756 net.gdface.facelog.client.thrift.FeatureBean item0 = net.gdface.facelog.client.thrift.FeatureBean.ADAPTER.read(protocol); 6757 value.add(item0); 6758 } 6759 protocol.readListEnd(); 6760 result = value; 6761 } else { 6762 ProtocolUtil.skip(protocol, field.typeId); 6763 } 6764 } 6765 break; 6766 case 1: { 6767 if (field.typeId == TType.STRUCT) { 6768 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6769 ex1 = value; 6770 } else { 6771 ProtocolUtil.skip(protocol, field.typeId); 6772 } 6773 } 6774 break; 6775 default: ProtocolUtil.skip(protocol, field.typeId); break; 6776 } 6777 protocol.readFieldEnd(); 6778 } 6779 protocol.readStructEnd(); 6780 if (result != null) { 6781 return result; 6782 } else if (ex1 != null) { 6783 throw ex1; 6784 } else { 6785 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6786 } 6787 } 6788 } 6789 6790 private static final class GetFeaturesByPersonIdAndSdkVersionCall extends MethodCall<List<String>> { 6791 private final Integer personId; 6792 6793 private final String sdkVersion; 6794 6795 GetFeaturesByPersonIdAndSdkVersionCall(Integer personId, String sdkVersion, 6796 ServiceMethodCallback<List<String>> callback) { 6797 super("getFeaturesByPersonIdAndSdkVersion", TMessageType.CALL, callback); 6798 if (personId == null) throw new NullPointerException("personId"); 6799 this.personId = personId; 6800 this.sdkVersion = sdkVersion; 6801 } 6802 6803 @Override 6804 protected void send(Protocol protocol) throws IOException { 6805 protocol.writeStructBegin("args"); 6806 protocol.writeFieldBegin("personId", 1, TType.I32); 6807 protocol.writeI32(this.personId); 6808 protocol.writeFieldEnd(); 6809 if (this.sdkVersion != null) { 6810 protocol.writeFieldBegin("sdkVersion", 2, TType.STRING); 6811 protocol.writeString(this.sdkVersion); 6812 protocol.writeFieldEnd(); 6813 } 6814 protocol.writeFieldStop(); 6815 protocol.writeStructEnd(); 6816 } 6817 6818 @Override 6819 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6820 List<String> result = null; 6821 ServiceRuntimeException ex1 = null; 6822 protocol.readStructBegin(); 6823 while (true) { 6824 FieldMetadata field = protocol.readFieldBegin(); 6825 if (field.typeId == TType.STOP) { 6826 break; 6827 } 6828 switch (field.fieldId) { 6829 case 0: { 6830 if (field.typeId == TType.LIST) { 6831 ListMetadata listMetadata0 = protocol.readListBegin(); 6832 List<String> value = new ArrayList<String>(listMetadata0.size); 6833 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6834 String item0 = protocol.readString(); 6835 value.add(item0); 6836 } 6837 protocol.readListEnd(); 6838 result = value; 6839 } else { 6840 ProtocolUtil.skip(protocol, field.typeId); 6841 } 6842 } 6843 break; 6844 case 1: { 6845 if (field.typeId == TType.STRUCT) { 6846 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6847 ex1 = value; 6848 } else { 6849 ProtocolUtil.skip(protocol, field.typeId); 6850 } 6851 } 6852 break; 6853 default: ProtocolUtil.skip(protocol, field.typeId); break; 6854 } 6855 protocol.readFieldEnd(); 6856 } 6857 protocol.readStructEnd(); 6858 if (result != null) { 6859 return result; 6860 } else if (ex1 != null) { 6861 throw ex1; 6862 } else { 6863 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6864 } 6865 } 6866 } 6867 6868 private static final class GetFeaturesOfImageCall extends MethodCall<List<String>> { 6869 private final String imageMd5; 6870 6871 GetFeaturesOfImageCall(String imageMd5, ServiceMethodCallback<List<String>> callback) { 6872 super("getFeaturesOfImage", TMessageType.CALL, callback); 6873 this.imageMd5 = imageMd5; 6874 } 6875 6876 @Override 6877 protected void send(Protocol protocol) throws IOException { 6878 protocol.writeStructBegin("args"); 6879 if (this.imageMd5 != null) { 6880 protocol.writeFieldBegin("imageMd5", 1, TType.STRING); 6881 protocol.writeString(this.imageMd5); 6882 protocol.writeFieldEnd(); 6883 } 6884 protocol.writeFieldStop(); 6885 protocol.writeStructEnd(); 6886 } 6887 6888 @Override 6889 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6890 List<String> result = null; 6891 ServiceRuntimeException ex1 = null; 6892 protocol.readStructBegin(); 6893 while (true) { 6894 FieldMetadata field = protocol.readFieldBegin(); 6895 if (field.typeId == TType.STOP) { 6896 break; 6897 } 6898 switch (field.fieldId) { 6899 case 0: { 6900 if (field.typeId == TType.LIST) { 6901 ListMetadata listMetadata0 = protocol.readListBegin(); 6902 List<String> value = new ArrayList<String>(listMetadata0.size); 6903 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6904 String item0 = protocol.readString(); 6905 value.add(item0); 6906 } 6907 protocol.readListEnd(); 6908 result = value; 6909 } else { 6910 ProtocolUtil.skip(protocol, field.typeId); 6911 } 6912 } 6913 break; 6914 case 1: { 6915 if (field.typeId == TType.STRUCT) { 6916 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6917 ex1 = value; 6918 } else { 6919 ProtocolUtil.skip(protocol, field.typeId); 6920 } 6921 } 6922 break; 6923 default: ProtocolUtil.skip(protocol, field.typeId); break; 6924 } 6925 protocol.readFieldEnd(); 6926 } 6927 protocol.readStructEnd(); 6928 if (result != null) { 6929 return result; 6930 } else if (ex1 != null) { 6931 throw ex1; 6932 } else { 6933 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 6934 } 6935 } 6936 } 6937 6938 private static final class GetFeaturesOfPersonCall extends MethodCall<List<String>> { 6939 private final Integer personId; 6940 6941 GetFeaturesOfPersonCall(Integer personId, ServiceMethodCallback<List<String>> callback) { 6942 super("getFeaturesOfPerson", TMessageType.CALL, callback); 6943 if (personId == null) throw new NullPointerException("personId"); 6944 this.personId = personId; 6945 } 6946 6947 @Override 6948 protected void send(Protocol protocol) throws IOException { 6949 protocol.writeStructBegin("args"); 6950 protocol.writeFieldBegin("personId", 1, TType.I32); 6951 protocol.writeI32(this.personId); 6952 protocol.writeFieldEnd(); 6953 protocol.writeFieldStop(); 6954 protocol.writeStructEnd(); 6955 } 6956 6957 @Override 6958 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 6959 List<String> result = null; 6960 ServiceRuntimeException ex1 = null; 6961 protocol.readStructBegin(); 6962 while (true) { 6963 FieldMetadata field = protocol.readFieldBegin(); 6964 if (field.typeId == TType.STOP) { 6965 break; 6966 } 6967 switch (field.fieldId) { 6968 case 0: { 6969 if (field.typeId == TType.LIST) { 6970 ListMetadata listMetadata0 = protocol.readListBegin(); 6971 List<String> value = new ArrayList<String>(listMetadata0.size); 6972 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 6973 String item0 = protocol.readString(); 6974 value.add(item0); 6975 } 6976 protocol.readListEnd(); 6977 result = value; 6978 } else { 6979 ProtocolUtil.skip(protocol, field.typeId); 6980 } 6981 } 6982 break; 6983 case 1: { 6984 if (field.typeId == TType.STRUCT) { 6985 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 6986 ex1 = value; 6987 } else { 6988 ProtocolUtil.skip(protocol, field.typeId); 6989 } 6990 } 6991 break; 6992 default: ProtocolUtil.skip(protocol, field.typeId); break; 6993 } 6994 protocol.readFieldEnd(); 6995 } 6996 protocol.readStructEnd(); 6997 if (result != null) { 6998 return result; 6999 } else if (ex1 != null) { 7000 throw ex1; 7001 } else { 7002 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7003 } 7004 } 7005 } 7006 7007 private static final class GetFeaturesPermittedOnDeviceCall extends MethodCall<List<String>> { 7008 private final Integer deviceId; 7009 7010 private final Boolean ignoreSchedule; 7011 7012 private final String sdkVersion; 7013 7014 private final List<String> excludeFeatureIds; 7015 7016 private final Long timestamp; 7017 7018 GetFeaturesPermittedOnDeviceCall(Integer deviceId, Boolean ignoreSchedule, String sdkVersion, 7019 List<String> excludeFeatureIds, Long timestamp, 7020 ServiceMethodCallback<List<String>> callback) { 7021 super("getFeaturesPermittedOnDevice", TMessageType.CALL, callback); 7022 if (deviceId == null) throw new NullPointerException("deviceId"); 7023 this.deviceId = deviceId; 7024 if (ignoreSchedule == null) throw new NullPointerException("ignoreSchedule"); 7025 this.ignoreSchedule = ignoreSchedule; 7026 this.sdkVersion = sdkVersion; 7027 this.excludeFeatureIds = excludeFeatureIds; 7028 this.timestamp = timestamp; 7029 } 7030 7031 @Override 7032 protected void send(Protocol protocol) throws IOException { 7033 protocol.writeStructBegin("args"); 7034 protocol.writeFieldBegin("deviceId", 1, TType.I32); 7035 protocol.writeI32(this.deviceId); 7036 protocol.writeFieldEnd(); 7037 protocol.writeFieldBegin("ignoreSchedule", 2, TType.BOOL); 7038 protocol.writeBool(this.ignoreSchedule); 7039 protocol.writeFieldEnd(); 7040 if (this.sdkVersion != null) { 7041 protocol.writeFieldBegin("sdkVersion", 3, TType.STRING); 7042 protocol.writeString(this.sdkVersion); 7043 protocol.writeFieldEnd(); 7044 } 7045 if (this.excludeFeatureIds != null) { 7046 protocol.writeFieldBegin("excludeFeatureIds", 4, TType.LIST); 7047 protocol.writeListBegin(TType.STRING, this.excludeFeatureIds.size()); 7048 for (String item0 : this.excludeFeatureIds) { 7049 protocol.writeString(item0); 7050 } 7051 protocol.writeListEnd(); 7052 protocol.writeFieldEnd(); 7053 } 7054 if (this.timestamp != null) { 7055 protocol.writeFieldBegin("timestamp", 5, TType.I64); 7056 protocol.writeI64(this.timestamp); 7057 protocol.writeFieldEnd(); 7058 } 7059 protocol.writeFieldStop(); 7060 protocol.writeStructEnd(); 7061 } 7062 7063 @Override 7064 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7065 List<String> result = null; 7066 ServiceRuntimeException ex1 = null; 7067 protocol.readStructBegin(); 7068 while (true) { 7069 FieldMetadata field = protocol.readFieldBegin(); 7070 if (field.typeId == TType.STOP) { 7071 break; 7072 } 7073 switch (field.fieldId) { 7074 case 0: { 7075 if (field.typeId == TType.LIST) { 7076 ListMetadata listMetadata0 = protocol.readListBegin(); 7077 List<String> value = new ArrayList<String>(listMetadata0.size); 7078 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 7079 String item0 = protocol.readString(); 7080 value.add(item0); 7081 } 7082 protocol.readListEnd(); 7083 result = value; 7084 } else { 7085 ProtocolUtil.skip(protocol, field.typeId); 7086 } 7087 } 7088 break; 7089 case 1: { 7090 if (field.typeId == TType.STRUCT) { 7091 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7092 ex1 = value; 7093 } else { 7094 ProtocolUtil.skip(protocol, field.typeId); 7095 } 7096 } 7097 break; 7098 default: ProtocolUtil.skip(protocol, field.typeId); break; 7099 } 7100 protocol.readFieldEnd(); 7101 } 7102 protocol.readStructEnd(); 7103 if (result != null) { 7104 return result; 7105 } else if (ex1 != null) { 7106 throw ex1; 7107 } else { 7108 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7109 } 7110 } 7111 } 7112 7113 private static final class GetGroupPermitCall extends MethodCall<PermitBean> { 7114 private final Integer deviceId; 7115 7116 private final Integer personGroupId; 7117 7118 GetGroupPermitCall(Integer deviceId, Integer personGroupId, 7119 ServiceMethodCallback<PermitBean> callback) { 7120 super("getGroupPermit", TMessageType.CALL, callback); 7121 if (deviceId == null) throw new NullPointerException("deviceId"); 7122 this.deviceId = deviceId; 7123 if (personGroupId == null) throw new NullPointerException("personGroupId"); 7124 this.personGroupId = personGroupId; 7125 } 7126 7127 @Override 7128 protected void send(Protocol protocol) throws IOException { 7129 protocol.writeStructBegin("args"); 7130 protocol.writeFieldBegin("deviceId", 1, TType.I32); 7131 protocol.writeI32(this.deviceId); 7132 protocol.writeFieldEnd(); 7133 protocol.writeFieldBegin("personGroupId", 2, TType.I32); 7134 protocol.writeI32(this.personGroupId); 7135 protocol.writeFieldEnd(); 7136 protocol.writeFieldStop(); 7137 protocol.writeStructEnd(); 7138 } 7139 7140 @Override 7141 protected PermitBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7142 PermitBean result = null; 7143 ServiceRuntimeException ex1 = null; 7144 protocol.readStructBegin(); 7145 while (true) { 7146 FieldMetadata field = protocol.readFieldBegin(); 7147 if (field.typeId == TType.STOP) { 7148 break; 7149 } 7150 switch (field.fieldId) { 7151 case 0: { 7152 if (field.typeId == TType.STRUCT) { 7153 net.gdface.facelog.client.thrift.PermitBean value = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 7154 result = value; 7155 } else { 7156 ProtocolUtil.skip(protocol, field.typeId); 7157 } 7158 } 7159 break; 7160 case 1: { 7161 if (field.typeId == TType.STRUCT) { 7162 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7163 ex1 = value; 7164 } else { 7165 ProtocolUtil.skip(protocol, field.typeId); 7166 } 7167 } 7168 break; 7169 default: ProtocolUtil.skip(protocol, field.typeId); break; 7170 } 7171 protocol.readFieldEnd(); 7172 } 7173 protocol.readStructEnd(); 7174 if (result != null) { 7175 return result; 7176 } else if (ex1 != null) { 7177 throw ex1; 7178 } else { 7179 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7180 } 7181 } 7182 } 7183 7184 private static final class GetGroupPermitOnDeviceGroupCall extends MethodCall<PermitBean> { 7185 private final Integer deviceGroupId; 7186 7187 private final Integer personGroupId; 7188 7189 GetGroupPermitOnDeviceGroupCall(Integer deviceGroupId, Integer personGroupId, 7190 ServiceMethodCallback<PermitBean> callback) { 7191 super("getGroupPermitOnDeviceGroup", TMessageType.CALL, callback); 7192 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 7193 this.deviceGroupId = deviceGroupId; 7194 if (personGroupId == null) throw new NullPointerException("personGroupId"); 7195 this.personGroupId = personGroupId; 7196 } 7197 7198 @Override 7199 protected void send(Protocol protocol) throws IOException { 7200 protocol.writeStructBegin("args"); 7201 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 7202 protocol.writeI32(this.deviceGroupId); 7203 protocol.writeFieldEnd(); 7204 protocol.writeFieldBegin("personGroupId", 2, TType.I32); 7205 protocol.writeI32(this.personGroupId); 7206 protocol.writeFieldEnd(); 7207 protocol.writeFieldStop(); 7208 protocol.writeStructEnd(); 7209 } 7210 7211 @Override 7212 protected PermitBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7213 PermitBean result = null; 7214 ServiceRuntimeException ex1 = null; 7215 protocol.readStructBegin(); 7216 while (true) { 7217 FieldMetadata field = protocol.readFieldBegin(); 7218 if (field.typeId == TType.STOP) { 7219 break; 7220 } 7221 switch (field.fieldId) { 7222 case 0: { 7223 if (field.typeId == TType.STRUCT) { 7224 net.gdface.facelog.client.thrift.PermitBean value = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 7225 result = value; 7226 } else { 7227 ProtocolUtil.skip(protocol, field.typeId); 7228 } 7229 } 7230 break; 7231 case 1: { 7232 if (field.typeId == TType.STRUCT) { 7233 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7234 ex1 = value; 7235 } else { 7236 ProtocolUtil.skip(protocol, field.typeId); 7237 } 7238 } 7239 break; 7240 default: ProtocolUtil.skip(protocol, field.typeId); break; 7241 } 7242 protocol.readFieldEnd(); 7243 } 7244 protocol.readStructEnd(); 7245 if (result != null) { 7246 return result; 7247 } else if (ex1 != null) { 7248 throw ex1; 7249 } else { 7250 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7251 } 7252 } 7253 } 7254 7255 private static final class GetGroupPermitsCall extends MethodCall<List<PermitBean>> { 7256 private final Integer deviceId; 7257 7258 private final List<Integer> personGroupIdList; 7259 7260 GetGroupPermitsCall(Integer deviceId, List<Integer> personGroupIdList, 7261 ServiceMethodCallback<List<PermitBean>> callback) { 7262 super("getGroupPermits", TMessageType.CALL, callback); 7263 if (deviceId == null) throw new NullPointerException("deviceId"); 7264 this.deviceId = deviceId; 7265 this.personGroupIdList = personGroupIdList; 7266 } 7267 7268 @Override 7269 protected void send(Protocol protocol) throws IOException { 7270 protocol.writeStructBegin("args"); 7271 protocol.writeFieldBegin("deviceId", 1, TType.I32); 7272 protocol.writeI32(this.deviceId); 7273 protocol.writeFieldEnd(); 7274 if (this.personGroupIdList != null) { 7275 protocol.writeFieldBegin("personGroupIdList", 2, TType.LIST); 7276 protocol.writeListBegin(TType.I32, this.personGroupIdList.size()); 7277 for (Integer item0 : this.personGroupIdList) { 7278 protocol.writeI32(item0); 7279 } 7280 protocol.writeListEnd(); 7281 protocol.writeFieldEnd(); 7282 } 7283 protocol.writeFieldStop(); 7284 protocol.writeStructEnd(); 7285 } 7286 7287 @Override 7288 protected List<PermitBean> receive(Protocol protocol, MessageMetadata metadata) throws 7289 Exception { 7290 List<PermitBean> result = null; 7291 ServiceRuntimeException ex1 = null; 7292 protocol.readStructBegin(); 7293 while (true) { 7294 FieldMetadata field = protocol.readFieldBegin(); 7295 if (field.typeId == TType.STOP) { 7296 break; 7297 } 7298 switch (field.fieldId) { 7299 case 0: { 7300 if (field.typeId == TType.LIST) { 7301 ListMetadata listMetadata0 = protocol.readListBegin(); 7302 List<PermitBean> value = new ArrayList<PermitBean>(listMetadata0.size); 7303 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 7304 net.gdface.facelog.client.thrift.PermitBean item0 = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 7305 value.add(item0); 7306 } 7307 protocol.readListEnd(); 7308 result = value; 7309 } else { 7310 ProtocolUtil.skip(protocol, field.typeId); 7311 } 7312 } 7313 break; 7314 case 1: { 7315 if (field.typeId == TType.STRUCT) { 7316 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7317 ex1 = value; 7318 } else { 7319 ProtocolUtil.skip(protocol, field.typeId); 7320 } 7321 } 7322 break; 7323 default: ProtocolUtil.skip(protocol, field.typeId); break; 7324 } 7325 protocol.readFieldEnd(); 7326 } 7327 protocol.readStructEnd(); 7328 if (result != null) { 7329 return result; 7330 } else if (ex1 != null) { 7331 throw ex1; 7332 } else { 7333 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7334 } 7335 } 7336 } 7337 7338 private static final class GetImageCall extends MethodCall<ImageBean> { 7339 private final String imageMD5; 7340 7341 GetImageCall(String imageMD5, ServiceMethodCallback<ImageBean> callback) { 7342 super("getImage", TMessageType.CALL, callback); 7343 this.imageMD5 = imageMD5; 7344 } 7345 7346 @Override 7347 protected void send(Protocol protocol) throws IOException { 7348 protocol.writeStructBegin("args"); 7349 if (this.imageMD5 != null) { 7350 protocol.writeFieldBegin("imageMD5", 1, TType.STRING); 7351 protocol.writeString(this.imageMD5); 7352 protocol.writeFieldEnd(); 7353 } 7354 protocol.writeFieldStop(); 7355 protocol.writeStructEnd(); 7356 } 7357 7358 @Override 7359 protected ImageBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7360 ImageBean result = null; 7361 ServiceRuntimeException ex1 = null; 7362 protocol.readStructBegin(); 7363 while (true) { 7364 FieldMetadata field = protocol.readFieldBegin(); 7365 if (field.typeId == TType.STOP) { 7366 break; 7367 } 7368 switch (field.fieldId) { 7369 case 0: { 7370 if (field.typeId == TType.STRUCT) { 7371 net.gdface.facelog.client.thrift.ImageBean value = net.gdface.facelog.client.thrift.ImageBean.ADAPTER.read(protocol); 7372 result = value; 7373 } else { 7374 ProtocolUtil.skip(protocol, field.typeId); 7375 } 7376 } 7377 break; 7378 case 1: { 7379 if (field.typeId == TType.STRUCT) { 7380 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7381 ex1 = value; 7382 } else { 7383 ProtocolUtil.skip(protocol, field.typeId); 7384 } 7385 } 7386 break; 7387 default: ProtocolUtil.skip(protocol, field.typeId); break; 7388 } 7389 protocol.readFieldEnd(); 7390 } 7391 protocol.readStructEnd(); 7392 if (result != null) { 7393 return result; 7394 } else if (ex1 != null) { 7395 throw ex1; 7396 } else { 7397 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7398 } 7399 } 7400 } 7401 7402 private static final class GetImageBytesCall extends MethodCall<ByteString> { 7403 private final String imageMD5; 7404 7405 GetImageBytesCall(String imageMD5, ServiceMethodCallback<ByteString> callback) { 7406 super("getImageBytes", TMessageType.CALL, callback); 7407 this.imageMD5 = imageMD5; 7408 } 7409 7410 @Override 7411 protected void send(Protocol protocol) throws IOException { 7412 protocol.writeStructBegin("args"); 7413 if (this.imageMD5 != null) { 7414 protocol.writeFieldBegin("imageMD5", 1, TType.STRING); 7415 protocol.writeString(this.imageMD5); 7416 protocol.writeFieldEnd(); 7417 } 7418 protocol.writeFieldStop(); 7419 protocol.writeStructEnd(); 7420 } 7421 7422 @Override 7423 protected ByteString receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7424 ByteString result = null; 7425 ServiceRuntimeException ex1 = null; 7426 protocol.readStructBegin(); 7427 while (true) { 7428 FieldMetadata field = protocol.readFieldBegin(); 7429 if (field.typeId == TType.STOP) { 7430 break; 7431 } 7432 switch (field.fieldId) { 7433 case 0: { 7434 if (field.typeId == TType.STRING) { 7435 ByteString value = protocol.readBinary(); 7436 result = value; 7437 } else { 7438 ProtocolUtil.skip(protocol, field.typeId); 7439 } 7440 } 7441 break; 7442 case 1: { 7443 if (field.typeId == TType.STRUCT) { 7444 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7445 ex1 = value; 7446 } else { 7447 ProtocolUtil.skip(protocol, field.typeId); 7448 } 7449 } 7450 break; 7451 default: ProtocolUtil.skip(protocol, field.typeId); break; 7452 } 7453 protocol.readFieldEnd(); 7454 } 7455 protocol.readStructEnd(); 7456 if (result != null) { 7457 return result; 7458 } else if (ex1 != null) { 7459 throw ex1; 7460 } else { 7461 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7462 } 7463 } 7464 } 7465 7466 private static final class GetImageBytesRefCall extends MethodCall<ByteString> { 7467 private final String primaryKey; 7468 7469 private final String refType; 7470 7471 GetImageBytesRefCall(String primaryKey, String refType, 7472 ServiceMethodCallback<ByteString> callback) { 7473 super("getImageBytesRef", TMessageType.CALL, callback); 7474 this.primaryKey = primaryKey; 7475 this.refType = refType; 7476 } 7477 7478 @Override 7479 protected void send(Protocol protocol) throws IOException { 7480 protocol.writeStructBegin("args"); 7481 if (this.primaryKey != null) { 7482 protocol.writeFieldBegin("primaryKey", 1, TType.STRING); 7483 protocol.writeString(this.primaryKey); 7484 protocol.writeFieldEnd(); 7485 } 7486 if (this.refType != null) { 7487 protocol.writeFieldBegin("refType", 2, TType.STRING); 7488 protocol.writeString(this.refType); 7489 protocol.writeFieldEnd(); 7490 } 7491 protocol.writeFieldStop(); 7492 protocol.writeStructEnd(); 7493 } 7494 7495 @Override 7496 protected ByteString receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7497 ByteString result = null; 7498 ServiceRuntimeException ex1 = null; 7499 protocol.readStructBegin(); 7500 while (true) { 7501 FieldMetadata field = protocol.readFieldBegin(); 7502 if (field.typeId == TType.STOP) { 7503 break; 7504 } 7505 switch (field.fieldId) { 7506 case 0: { 7507 if (field.typeId == TType.STRING) { 7508 ByteString value = protocol.readBinary(); 7509 result = value; 7510 } else { 7511 ProtocolUtil.skip(protocol, field.typeId); 7512 } 7513 } 7514 break; 7515 case 1: { 7516 if (field.typeId == TType.STRUCT) { 7517 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7518 ex1 = value; 7519 } else { 7520 ProtocolUtil.skip(protocol, field.typeId); 7521 } 7522 } 7523 break; 7524 default: ProtocolUtil.skip(protocol, field.typeId); break; 7525 } 7526 protocol.readFieldEnd(); 7527 } 7528 protocol.readStructEnd(); 7529 if (result != null) { 7530 return result; 7531 } else if (ex1 != null) { 7532 throw ex1; 7533 } else { 7534 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7535 } 7536 } 7537 } 7538 7539 private static final class GetImageRefCall extends MethodCall<ImageBean> { 7540 private final String primaryKey; 7541 7542 private final String refType; 7543 7544 GetImageRefCall(String primaryKey, String refType, ServiceMethodCallback<ImageBean> callback) { 7545 super("getImageRef", TMessageType.CALL, callback); 7546 this.primaryKey = primaryKey; 7547 this.refType = refType; 7548 } 7549 7550 @Override 7551 protected void send(Protocol protocol) throws IOException { 7552 protocol.writeStructBegin("args"); 7553 if (this.primaryKey != null) { 7554 protocol.writeFieldBegin("primaryKey", 1, TType.STRING); 7555 protocol.writeString(this.primaryKey); 7556 protocol.writeFieldEnd(); 7557 } 7558 if (this.refType != null) { 7559 protocol.writeFieldBegin("refType", 2, TType.STRING); 7560 protocol.writeString(this.refType); 7561 protocol.writeFieldEnd(); 7562 } 7563 protocol.writeFieldStop(); 7564 protocol.writeStructEnd(); 7565 } 7566 7567 @Override 7568 protected ImageBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7569 ImageBean result = null; 7570 ServiceRuntimeException ex1 = null; 7571 protocol.readStructBegin(); 7572 while (true) { 7573 FieldMetadata field = protocol.readFieldBegin(); 7574 if (field.typeId == TType.STOP) { 7575 break; 7576 } 7577 switch (field.fieldId) { 7578 case 0: { 7579 if (field.typeId == TType.STRUCT) { 7580 net.gdface.facelog.client.thrift.ImageBean value = net.gdface.facelog.client.thrift.ImageBean.ADAPTER.read(protocol); 7581 result = value; 7582 } else { 7583 ProtocolUtil.skip(protocol, field.typeId); 7584 } 7585 } 7586 break; 7587 case 1: { 7588 if (field.typeId == TType.STRUCT) { 7589 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7590 ex1 = value; 7591 } else { 7592 ProtocolUtil.skip(protocol, field.typeId); 7593 } 7594 } 7595 break; 7596 default: ProtocolUtil.skip(protocol, field.typeId); break; 7597 } 7598 protocol.readFieldEnd(); 7599 } 7600 protocol.readStructEnd(); 7601 if (result != null) { 7602 return result; 7603 } else if (ex1 != null) { 7604 throw ex1; 7605 } else { 7606 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7607 } 7608 } 7609 } 7610 7611 private static final class GetImagesAssociatedByFeatureCall extends MethodCall<List<String>> { 7612 private final String featureMd5; 7613 7614 GetImagesAssociatedByFeatureCall(String featureMd5, 7615 ServiceMethodCallback<List<String>> callback) { 7616 super("getImagesAssociatedByFeature", TMessageType.CALL, callback); 7617 this.featureMd5 = featureMd5; 7618 } 7619 7620 @Override 7621 protected void send(Protocol protocol) throws IOException { 7622 protocol.writeStructBegin("args"); 7623 if (this.featureMd5 != null) { 7624 protocol.writeFieldBegin("featureMd5", 1, TType.STRING); 7625 protocol.writeString(this.featureMd5); 7626 protocol.writeFieldEnd(); 7627 } 7628 protocol.writeFieldStop(); 7629 protocol.writeStructEnd(); 7630 } 7631 7632 @Override 7633 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7634 List<String> result = null; 7635 ServiceRuntimeException ex1 = null; 7636 protocol.readStructBegin(); 7637 while (true) { 7638 FieldMetadata field = protocol.readFieldBegin(); 7639 if (field.typeId == TType.STOP) { 7640 break; 7641 } 7642 switch (field.fieldId) { 7643 case 0: { 7644 if (field.typeId == TType.LIST) { 7645 ListMetadata listMetadata0 = protocol.readListBegin(); 7646 List<String> value = new ArrayList<String>(listMetadata0.size); 7647 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 7648 String item0 = protocol.readString(); 7649 value.add(item0); 7650 } 7651 protocol.readListEnd(); 7652 result = value; 7653 } else { 7654 ProtocolUtil.skip(protocol, field.typeId); 7655 } 7656 } 7657 break; 7658 case 1: { 7659 if (field.typeId == TType.STRUCT) { 7660 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7661 ex1 = value; 7662 } else { 7663 ProtocolUtil.skip(protocol, field.typeId); 7664 } 7665 } 7666 break; 7667 default: ProtocolUtil.skip(protocol, field.typeId); break; 7668 } 7669 protocol.readFieldEnd(); 7670 } 7671 protocol.readStructEnd(); 7672 if (result != null) { 7673 return result; 7674 } else if (ex1 != null) { 7675 throw ex1; 7676 } else { 7677 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7678 } 7679 } 7680 } 7681 7682 private static final class GetLogBeansByPersonIdCall extends MethodCall<List<LogBean>> { 7683 private final Integer personId; 7684 7685 GetLogBeansByPersonIdCall(Integer personId, ServiceMethodCallback<List<LogBean>> callback) { 7686 super("getLogBeansByPersonId", TMessageType.CALL, callback); 7687 if (personId == null) throw new NullPointerException("personId"); 7688 this.personId = personId; 7689 } 7690 7691 @Override 7692 protected void send(Protocol protocol) throws IOException { 7693 protocol.writeStructBegin("args"); 7694 protocol.writeFieldBegin("personId", 1, TType.I32); 7695 protocol.writeI32(this.personId); 7696 protocol.writeFieldEnd(); 7697 protocol.writeFieldStop(); 7698 protocol.writeStructEnd(); 7699 } 7700 7701 @Override 7702 protected List<LogBean> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7703 List<LogBean> result = null; 7704 ServiceRuntimeException ex1 = null; 7705 protocol.readStructBegin(); 7706 while (true) { 7707 FieldMetadata field = protocol.readFieldBegin(); 7708 if (field.typeId == TType.STOP) { 7709 break; 7710 } 7711 switch (field.fieldId) { 7712 case 0: { 7713 if (field.typeId == TType.LIST) { 7714 ListMetadata listMetadata0 = protocol.readListBegin(); 7715 List<LogBean> value = new ArrayList<LogBean>(listMetadata0.size); 7716 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 7717 net.gdface.facelog.client.thrift.LogBean item0 = net.gdface.facelog.client.thrift.LogBean.ADAPTER.read(protocol); 7718 value.add(item0); 7719 } 7720 protocol.readListEnd(); 7721 result = value; 7722 } else { 7723 ProtocolUtil.skip(protocol, field.typeId); 7724 } 7725 } 7726 break; 7727 case 1: { 7728 if (field.typeId == TType.STRUCT) { 7729 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7730 ex1 = value; 7731 } else { 7732 ProtocolUtil.skip(protocol, field.typeId); 7733 } 7734 } 7735 break; 7736 default: ProtocolUtil.skip(protocol, field.typeId); break; 7737 } 7738 protocol.readFieldEnd(); 7739 } 7740 protocol.readStructEnd(); 7741 if (result != null) { 7742 return result; 7743 } else if (ex1 != null) { 7744 throw ex1; 7745 } else { 7746 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7747 } 7748 } 7749 } 7750 7751 private static final class GetMessageQueueParametersCall extends MethodCall<Map<MQParam, String>> { 7752 private final Token token; 7753 7754 GetMessageQueueParametersCall(Token token, 7755 ServiceMethodCallback<Map<MQParam, String>> callback) { 7756 super("getMessageQueueParameters", TMessageType.CALL, callback); 7757 this.token = token; 7758 } 7759 7760 @Override 7761 protected void send(Protocol protocol) throws IOException { 7762 protocol.writeStructBegin("args"); 7763 if (this.token != null) { 7764 protocol.writeFieldBegin("token", 1, TType.STRUCT); 7765 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 7766 protocol.writeFieldEnd(); 7767 } 7768 protocol.writeFieldStop(); 7769 protocol.writeStructEnd(); 7770 } 7771 7772 @Override 7773 protected Map<MQParam, String> receive(Protocol protocol, MessageMetadata metadata) throws 7774 Exception { 7775 Map<MQParam, String> result = null; 7776 ServiceRuntimeException ex1 = null; 7777 protocol.readStructBegin(); 7778 while (true) { 7779 FieldMetadata field = protocol.readFieldBegin(); 7780 if (field.typeId == TType.STOP) { 7781 break; 7782 } 7783 switch (field.fieldId) { 7784 case 0: { 7785 if (field.typeId == TType.MAP) { 7786 MapMetadata mapMetadata0 = protocol.readMapBegin(); 7787 Map<MQParam, String> value = new HashMap<MQParam, String>(mapMetadata0.size); 7788 for (int i0 = 0; i0 < mapMetadata0.size; ++i0) { 7789 int i32_1 = protocol.readI32(); 7790 net.gdface.facelog.client.thrift.MQParam key0 = net.gdface.facelog.client.thrift.MQParam.findByValue(i32_1); 7791 if (key0 == null) { 7792 throw new ThriftException(ThriftException.Kind.PROTOCOL_ERROR, "Unexpected value for enum-type MQParam: " + i32_1); 7793 } 7794 String value0 = protocol.readString(); 7795 value.put(key0, value0); 7796 } 7797 protocol.readMapEnd(); 7798 result = value; 7799 } else { 7800 ProtocolUtil.skip(protocol, field.typeId); 7801 } 7802 } 7803 break; 7804 case 1: { 7805 if (field.typeId == TType.STRUCT) { 7806 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7807 ex1 = value; 7808 } else { 7809 ProtocolUtil.skip(protocol, field.typeId); 7810 } 7811 } 7812 break; 7813 default: ProtocolUtil.skip(protocol, field.typeId); break; 7814 } 7815 protocol.readFieldEnd(); 7816 } 7817 protocol.readStructEnd(); 7818 if (result != null) { 7819 return result; 7820 } else if (ex1 != null) { 7821 throw ex1; 7822 } else { 7823 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7824 } 7825 } 7826 } 7827 7828 private static final class GetPersonCall extends MethodCall<PersonBean> { 7829 private final Integer personId; 7830 7831 GetPersonCall(Integer personId, ServiceMethodCallback<PersonBean> callback) { 7832 super("getPerson", TMessageType.CALL, callback); 7833 if (personId == null) throw new NullPointerException("personId"); 7834 this.personId = personId; 7835 } 7836 7837 @Override 7838 protected void send(Protocol protocol) throws IOException { 7839 protocol.writeStructBegin("args"); 7840 protocol.writeFieldBegin("personId", 1, TType.I32); 7841 protocol.writeI32(this.personId); 7842 protocol.writeFieldEnd(); 7843 protocol.writeFieldStop(); 7844 protocol.writeStructEnd(); 7845 } 7846 7847 @Override 7848 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7849 PersonBean result = null; 7850 ServiceRuntimeException ex1 = null; 7851 protocol.readStructBegin(); 7852 while (true) { 7853 FieldMetadata field = protocol.readFieldBegin(); 7854 if (field.typeId == TType.STOP) { 7855 break; 7856 } 7857 switch (field.fieldId) { 7858 case 0: { 7859 if (field.typeId == TType.STRUCT) { 7860 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 7861 result = value; 7862 } else { 7863 ProtocolUtil.skip(protocol, field.typeId); 7864 } 7865 } 7866 break; 7867 case 1: { 7868 if (field.typeId == TType.STRUCT) { 7869 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7870 ex1 = value; 7871 } else { 7872 ProtocolUtil.skip(protocol, field.typeId); 7873 } 7874 } 7875 break; 7876 default: ProtocolUtil.skip(protocol, field.typeId); break; 7877 } 7878 protocol.readFieldEnd(); 7879 } 7880 protocol.readStructEnd(); 7881 if (result != null) { 7882 return result; 7883 } else if (ex1 != null) { 7884 throw ex1; 7885 } else { 7886 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7887 } 7888 } 7889 } 7890 7891 private static final class GetPersonByMobilePhoneCall extends MethodCall<PersonBean> { 7892 private final String mobilePhone; 7893 7894 GetPersonByMobilePhoneCall(String mobilePhone, ServiceMethodCallback<PersonBean> callback) { 7895 super("getPersonByMobilePhone", TMessageType.CALL, callback); 7896 this.mobilePhone = mobilePhone; 7897 } 7898 7899 @Override 7900 protected void send(Protocol protocol) throws IOException { 7901 protocol.writeStructBegin("args"); 7902 if (this.mobilePhone != null) { 7903 protocol.writeFieldBegin("mobilePhone", 1, TType.STRING); 7904 protocol.writeString(this.mobilePhone); 7905 protocol.writeFieldEnd(); 7906 } 7907 protocol.writeFieldStop(); 7908 protocol.writeStructEnd(); 7909 } 7910 7911 @Override 7912 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7913 PersonBean result = null; 7914 ServiceRuntimeException ex1 = null; 7915 protocol.readStructBegin(); 7916 while (true) { 7917 FieldMetadata field = protocol.readFieldBegin(); 7918 if (field.typeId == TType.STOP) { 7919 break; 7920 } 7921 switch (field.fieldId) { 7922 case 0: { 7923 if (field.typeId == TType.STRUCT) { 7924 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 7925 result = value; 7926 } else { 7927 ProtocolUtil.skip(protocol, field.typeId); 7928 } 7929 } 7930 break; 7931 case 1: { 7932 if (field.typeId == TType.STRUCT) { 7933 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 7934 ex1 = value; 7935 } else { 7936 ProtocolUtil.skip(protocol, field.typeId); 7937 } 7938 } 7939 break; 7940 default: ProtocolUtil.skip(protocol, field.typeId); break; 7941 } 7942 protocol.readFieldEnd(); 7943 } 7944 protocol.readStructEnd(); 7945 if (result != null) { 7946 return result; 7947 } else if (ex1 != null) { 7948 throw ex1; 7949 } else { 7950 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 7951 } 7952 } 7953 } 7954 7955 private static final class GetPersonByMobilePhoneRealCall extends MethodCall<PersonBean> { 7956 private final String mobilePhone; 7957 7958 private final Token token; 7959 7960 GetPersonByMobilePhoneRealCall(String mobilePhone, Token token, 7961 ServiceMethodCallback<PersonBean> callback) { 7962 super("getPersonByMobilePhoneReal", TMessageType.CALL, callback); 7963 this.mobilePhone = mobilePhone; 7964 this.token = token; 7965 } 7966 7967 @Override 7968 protected void send(Protocol protocol) throws IOException { 7969 protocol.writeStructBegin("args"); 7970 if (this.mobilePhone != null) { 7971 protocol.writeFieldBegin("mobilePhone", 1, TType.STRING); 7972 protocol.writeString(this.mobilePhone); 7973 protocol.writeFieldEnd(); 7974 } 7975 if (this.token != null) { 7976 protocol.writeFieldBegin("token", 2, TType.STRUCT); 7977 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 7978 protocol.writeFieldEnd(); 7979 } 7980 protocol.writeFieldStop(); 7981 protocol.writeStructEnd(); 7982 } 7983 7984 @Override 7985 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 7986 PersonBean result = null; 7987 ServiceRuntimeException ex1 = null; 7988 protocol.readStructBegin(); 7989 while (true) { 7990 FieldMetadata field = protocol.readFieldBegin(); 7991 if (field.typeId == TType.STOP) { 7992 break; 7993 } 7994 switch (field.fieldId) { 7995 case 0: { 7996 if (field.typeId == TType.STRUCT) { 7997 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 7998 result = value; 7999 } else { 8000 ProtocolUtil.skip(protocol, field.typeId); 8001 } 8002 } 8003 break; 8004 case 1: { 8005 if (field.typeId == TType.STRUCT) { 8006 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8007 ex1 = value; 8008 } else { 8009 ProtocolUtil.skip(protocol, field.typeId); 8010 } 8011 } 8012 break; 8013 default: ProtocolUtil.skip(protocol, field.typeId); break; 8014 } 8015 protocol.readFieldEnd(); 8016 } 8017 protocol.readStructEnd(); 8018 if (result != null) { 8019 return result; 8020 } else if (ex1 != null) { 8021 throw ex1; 8022 } else { 8023 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8024 } 8025 } 8026 } 8027 8028 private static final class GetPersonByPapersNumCall extends MethodCall<PersonBean> { 8029 private final String papersNum; 8030 8031 GetPersonByPapersNumCall(String papersNum, ServiceMethodCallback<PersonBean> callback) { 8032 super("getPersonByPapersNum", TMessageType.CALL, callback); 8033 this.papersNum = papersNum; 8034 } 8035 8036 @Override 8037 protected void send(Protocol protocol) throws IOException { 8038 protocol.writeStructBegin("args"); 8039 if (this.papersNum != null) { 8040 protocol.writeFieldBegin("papersNum", 1, TType.STRING); 8041 protocol.writeString(this.papersNum); 8042 protocol.writeFieldEnd(); 8043 } 8044 protocol.writeFieldStop(); 8045 protocol.writeStructEnd(); 8046 } 8047 8048 @Override 8049 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 8050 PersonBean result = null; 8051 ServiceRuntimeException ex1 = null; 8052 protocol.readStructBegin(); 8053 while (true) { 8054 FieldMetadata field = protocol.readFieldBegin(); 8055 if (field.typeId == TType.STOP) { 8056 break; 8057 } 8058 switch (field.fieldId) { 8059 case 0: { 8060 if (field.typeId == TType.STRUCT) { 8061 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 8062 result = value; 8063 } else { 8064 ProtocolUtil.skip(protocol, field.typeId); 8065 } 8066 } 8067 break; 8068 case 1: { 8069 if (field.typeId == TType.STRUCT) { 8070 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8071 ex1 = value; 8072 } else { 8073 ProtocolUtil.skip(protocol, field.typeId); 8074 } 8075 } 8076 break; 8077 default: ProtocolUtil.skip(protocol, field.typeId); break; 8078 } 8079 protocol.readFieldEnd(); 8080 } 8081 protocol.readStructEnd(); 8082 if (result != null) { 8083 return result; 8084 } else if (ex1 != null) { 8085 throw ex1; 8086 } else { 8087 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8088 } 8089 } 8090 } 8091 8092 private static final class GetPersonByPapersNumRealCall extends MethodCall<PersonBean> { 8093 private final String papersNum; 8094 8095 private final Token token; 8096 8097 GetPersonByPapersNumRealCall(String papersNum, Token token, 8098 ServiceMethodCallback<PersonBean> callback) { 8099 super("getPersonByPapersNumReal", TMessageType.CALL, callback); 8100 this.papersNum = papersNum; 8101 this.token = token; 8102 } 8103 8104 @Override 8105 protected void send(Protocol protocol) throws IOException { 8106 protocol.writeStructBegin("args"); 8107 if (this.papersNum != null) { 8108 protocol.writeFieldBegin("papersNum", 1, TType.STRING); 8109 protocol.writeString(this.papersNum); 8110 protocol.writeFieldEnd(); 8111 } 8112 if (this.token != null) { 8113 protocol.writeFieldBegin("token", 2, TType.STRUCT); 8114 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 8115 protocol.writeFieldEnd(); 8116 } 8117 protocol.writeFieldStop(); 8118 protocol.writeStructEnd(); 8119 } 8120 8121 @Override 8122 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 8123 PersonBean result = null; 8124 ServiceRuntimeException ex1 = null; 8125 protocol.readStructBegin(); 8126 while (true) { 8127 FieldMetadata field = protocol.readFieldBegin(); 8128 if (field.typeId == TType.STOP) { 8129 break; 8130 } 8131 switch (field.fieldId) { 8132 case 0: { 8133 if (field.typeId == TType.STRUCT) { 8134 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 8135 result = value; 8136 } else { 8137 ProtocolUtil.skip(protocol, field.typeId); 8138 } 8139 } 8140 break; 8141 case 1: { 8142 if (field.typeId == TType.STRUCT) { 8143 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8144 ex1 = value; 8145 } else { 8146 ProtocolUtil.skip(protocol, field.typeId); 8147 } 8148 } 8149 break; 8150 default: ProtocolUtil.skip(protocol, field.typeId); break; 8151 } 8152 protocol.readFieldEnd(); 8153 } 8154 protocol.readStructEnd(); 8155 if (result != null) { 8156 return result; 8157 } else if (ex1 != null) { 8158 throw ex1; 8159 } else { 8160 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8161 } 8162 } 8163 } 8164 8165 private static final class GetPersonGroupCall extends MethodCall<PersonGroupBean> { 8166 private final Integer personGroupId; 8167 8168 GetPersonGroupCall(Integer personGroupId, ServiceMethodCallback<PersonGroupBean> callback) { 8169 super("getPersonGroup", TMessageType.CALL, callback); 8170 if (personGroupId == null) throw new NullPointerException("personGroupId"); 8171 this.personGroupId = personGroupId; 8172 } 8173 8174 @Override 8175 protected void send(Protocol protocol) throws IOException { 8176 protocol.writeStructBegin("args"); 8177 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 8178 protocol.writeI32(this.personGroupId); 8179 protocol.writeFieldEnd(); 8180 protocol.writeFieldStop(); 8181 protocol.writeStructEnd(); 8182 } 8183 8184 @Override 8185 protected PersonGroupBean receive(Protocol protocol, MessageMetadata metadata) throws 8186 Exception { 8187 PersonGroupBean result = null; 8188 ServiceRuntimeException ex1 = null; 8189 protocol.readStructBegin(); 8190 while (true) { 8191 FieldMetadata field = protocol.readFieldBegin(); 8192 if (field.typeId == TType.STOP) { 8193 break; 8194 } 8195 switch (field.fieldId) { 8196 case 0: { 8197 if (field.typeId == TType.STRUCT) { 8198 net.gdface.facelog.client.thrift.PersonGroupBean value = net.gdface.facelog.client.thrift.PersonGroupBean.ADAPTER.read(protocol); 8199 result = value; 8200 } else { 8201 ProtocolUtil.skip(protocol, field.typeId); 8202 } 8203 } 8204 break; 8205 case 1: { 8206 if (field.typeId == TType.STRUCT) { 8207 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8208 ex1 = value; 8209 } else { 8210 ProtocolUtil.skip(protocol, field.typeId); 8211 } 8212 } 8213 break; 8214 default: ProtocolUtil.skip(protocol, field.typeId); break; 8215 } 8216 protocol.readFieldEnd(); 8217 } 8218 protocol.readStructEnd(); 8219 if (result != null) { 8220 return result; 8221 } else if (ex1 != null) { 8222 throw ex1; 8223 } else { 8224 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8225 } 8226 } 8227 } 8228 8229 private static final class GetPersonGroupsCall extends MethodCall<List<PersonGroupBean>> { 8230 private final List<Integer> groupIdList; 8231 8232 GetPersonGroupsCall(List<Integer> groupIdList, 8233 ServiceMethodCallback<List<PersonGroupBean>> callback) { 8234 super("getPersonGroups", TMessageType.CALL, callback); 8235 this.groupIdList = groupIdList; 8236 } 8237 8238 @Override 8239 protected void send(Protocol protocol) throws IOException { 8240 protocol.writeStructBegin("args"); 8241 if (this.groupIdList != null) { 8242 protocol.writeFieldBegin("groupIdList", 1, TType.LIST); 8243 protocol.writeListBegin(TType.I32, this.groupIdList.size()); 8244 for (Integer item0 : this.groupIdList) { 8245 protocol.writeI32(item0); 8246 } 8247 protocol.writeListEnd(); 8248 protocol.writeFieldEnd(); 8249 } 8250 protocol.writeFieldStop(); 8251 protocol.writeStructEnd(); 8252 } 8253 8254 @Override 8255 protected List<PersonGroupBean> receive(Protocol protocol, MessageMetadata metadata) throws 8256 Exception { 8257 List<PersonGroupBean> result = null; 8258 ServiceRuntimeException ex1 = null; 8259 protocol.readStructBegin(); 8260 while (true) { 8261 FieldMetadata field = protocol.readFieldBegin(); 8262 if (field.typeId == TType.STOP) { 8263 break; 8264 } 8265 switch (field.fieldId) { 8266 case 0: { 8267 if (field.typeId == TType.LIST) { 8268 ListMetadata listMetadata0 = protocol.readListBegin(); 8269 List<PersonGroupBean> value = new ArrayList<PersonGroupBean>(listMetadata0.size); 8270 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 8271 net.gdface.facelog.client.thrift.PersonGroupBean item0 = net.gdface.facelog.client.thrift.PersonGroupBean.ADAPTER.read(protocol); 8272 value.add(item0); 8273 } 8274 protocol.readListEnd(); 8275 result = value; 8276 } else { 8277 ProtocolUtil.skip(protocol, field.typeId); 8278 } 8279 } 8280 break; 8281 case 1: { 8282 if (field.typeId == TType.STRUCT) { 8283 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8284 ex1 = value; 8285 } else { 8286 ProtocolUtil.skip(protocol, field.typeId); 8287 } 8288 } 8289 break; 8290 default: ProtocolUtil.skip(protocol, field.typeId); break; 8291 } 8292 protocol.readFieldEnd(); 8293 } 8294 protocol.readStructEnd(); 8295 if (result != null) { 8296 return result; 8297 } else if (ex1 != null) { 8298 throw ex1; 8299 } else { 8300 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8301 } 8302 } 8303 } 8304 8305 private static final class GetPersonGroupsBelongsCall extends MethodCall<List<Integer>> { 8306 private final Integer personId; 8307 8308 GetPersonGroupsBelongsCall(Integer personId, ServiceMethodCallback<List<Integer>> callback) { 8309 super("getPersonGroupsBelongs", TMessageType.CALL, callback); 8310 if (personId == null) throw new NullPointerException("personId"); 8311 this.personId = personId; 8312 } 8313 8314 @Override 8315 protected void send(Protocol protocol) throws IOException { 8316 protocol.writeStructBegin("args"); 8317 protocol.writeFieldBegin("personId", 1, TType.I32); 8318 protocol.writeI32(this.personId); 8319 protocol.writeFieldEnd(); 8320 protocol.writeFieldStop(); 8321 protocol.writeStructEnd(); 8322 } 8323 8324 @Override 8325 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 8326 List<Integer> result = null; 8327 ServiceRuntimeException ex1 = null; 8328 protocol.readStructBegin(); 8329 while (true) { 8330 FieldMetadata field = protocol.readFieldBegin(); 8331 if (field.typeId == TType.STOP) { 8332 break; 8333 } 8334 switch (field.fieldId) { 8335 case 0: { 8336 if (field.typeId == TType.LIST) { 8337 ListMetadata listMetadata0 = protocol.readListBegin(); 8338 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 8339 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 8340 int item0 = protocol.readI32(); 8341 value.add(item0); 8342 } 8343 protocol.readListEnd(); 8344 result = value; 8345 } else { 8346 ProtocolUtil.skip(protocol, field.typeId); 8347 } 8348 } 8349 break; 8350 case 1: { 8351 if (field.typeId == TType.STRUCT) { 8352 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8353 ex1 = value; 8354 } else { 8355 ProtocolUtil.skip(protocol, field.typeId); 8356 } 8357 } 8358 break; 8359 default: ProtocolUtil.skip(protocol, field.typeId); break; 8360 } 8361 protocol.readFieldEnd(); 8362 } 8363 protocol.readStructEnd(); 8364 if (result != null) { 8365 return result; 8366 } else if (ex1 != null) { 8367 throw ex1; 8368 } else { 8369 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8370 } 8371 } 8372 } 8373 8374 private static final class GetPersonGroupsPermittedByCall extends MethodCall<List<Integer>> { 8375 private final Integer deviceGroupId; 8376 8377 GetPersonGroupsPermittedByCall(Integer deviceGroupId, 8378 ServiceMethodCallback<List<Integer>> callback) { 8379 super("getPersonGroupsPermittedBy", TMessageType.CALL, callback); 8380 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 8381 this.deviceGroupId = deviceGroupId; 8382 } 8383 8384 @Override 8385 protected void send(Protocol protocol) throws IOException { 8386 protocol.writeStructBegin("args"); 8387 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 8388 protocol.writeI32(this.deviceGroupId); 8389 protocol.writeFieldEnd(); 8390 protocol.writeFieldStop(); 8391 protocol.writeStructEnd(); 8392 } 8393 8394 @Override 8395 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 8396 List<Integer> result = null; 8397 ServiceRuntimeException ex1 = null; 8398 protocol.readStructBegin(); 8399 while (true) { 8400 FieldMetadata field = protocol.readFieldBegin(); 8401 if (field.typeId == TType.STOP) { 8402 break; 8403 } 8404 switch (field.fieldId) { 8405 case 0: { 8406 if (field.typeId == TType.LIST) { 8407 ListMetadata listMetadata0 = protocol.readListBegin(); 8408 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 8409 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 8410 int item0 = protocol.readI32(); 8411 value.add(item0); 8412 } 8413 protocol.readListEnd(); 8414 result = value; 8415 } else { 8416 ProtocolUtil.skip(protocol, field.typeId); 8417 } 8418 } 8419 break; 8420 case 1: { 8421 if (field.typeId == TType.STRUCT) { 8422 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8423 ex1 = value; 8424 } else { 8425 ProtocolUtil.skip(protocol, field.typeId); 8426 } 8427 } 8428 break; 8429 default: ProtocolUtil.skip(protocol, field.typeId); break; 8430 } 8431 protocol.readFieldEnd(); 8432 } 8433 protocol.readStructEnd(); 8434 if (result != null) { 8435 return result; 8436 } else if (ex1 != null) { 8437 throw ex1; 8438 } else { 8439 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8440 } 8441 } 8442 } 8443 8444 private static final class GetPersonPermitCall extends MethodCall<PermitBean> { 8445 private final Integer deviceId; 8446 8447 private final Integer personId; 8448 8449 GetPersonPermitCall(Integer deviceId, Integer personId, 8450 ServiceMethodCallback<PermitBean> callback) { 8451 super("getPersonPermit", TMessageType.CALL, callback); 8452 if (deviceId == null) throw new NullPointerException("deviceId"); 8453 this.deviceId = deviceId; 8454 if (personId == null) throw new NullPointerException("personId"); 8455 this.personId = personId; 8456 } 8457 8458 @Override 8459 protected void send(Protocol protocol) throws IOException { 8460 protocol.writeStructBegin("args"); 8461 protocol.writeFieldBegin("deviceId", 1, TType.I32); 8462 protocol.writeI32(this.deviceId); 8463 protocol.writeFieldEnd(); 8464 protocol.writeFieldBegin("personId", 2, TType.I32); 8465 protocol.writeI32(this.personId); 8466 protocol.writeFieldEnd(); 8467 protocol.writeFieldStop(); 8468 protocol.writeStructEnd(); 8469 } 8470 8471 @Override 8472 protected PermitBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 8473 PermitBean result = null; 8474 ServiceRuntimeException ex1 = null; 8475 protocol.readStructBegin(); 8476 while (true) { 8477 FieldMetadata field = protocol.readFieldBegin(); 8478 if (field.typeId == TType.STOP) { 8479 break; 8480 } 8481 switch (field.fieldId) { 8482 case 0: { 8483 if (field.typeId == TType.STRUCT) { 8484 net.gdface.facelog.client.thrift.PermitBean value = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 8485 result = value; 8486 } else { 8487 ProtocolUtil.skip(protocol, field.typeId); 8488 } 8489 } 8490 break; 8491 case 1: { 8492 if (field.typeId == TType.STRUCT) { 8493 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8494 ex1 = value; 8495 } else { 8496 ProtocolUtil.skip(protocol, field.typeId); 8497 } 8498 } 8499 break; 8500 default: ProtocolUtil.skip(protocol, field.typeId); break; 8501 } 8502 protocol.readFieldEnd(); 8503 } 8504 protocol.readStructEnd(); 8505 if (result != null) { 8506 return result; 8507 } else if (ex1 != null) { 8508 throw ex1; 8509 } else { 8510 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8511 } 8512 } 8513 } 8514 8515 private static final class GetPersonPermitsCall extends MethodCall<List<PermitBean>> { 8516 private final Integer deviceId; 8517 8518 private final List<Integer> personIdList; 8519 8520 GetPersonPermitsCall(Integer deviceId, List<Integer> personIdList, 8521 ServiceMethodCallback<List<PermitBean>> callback) { 8522 super("getPersonPermits", TMessageType.CALL, callback); 8523 if (deviceId == null) throw new NullPointerException("deviceId"); 8524 this.deviceId = deviceId; 8525 this.personIdList = personIdList; 8526 } 8527 8528 @Override 8529 protected void send(Protocol protocol) throws IOException { 8530 protocol.writeStructBegin("args"); 8531 protocol.writeFieldBegin("deviceId", 1, TType.I32); 8532 protocol.writeI32(this.deviceId); 8533 protocol.writeFieldEnd(); 8534 if (this.personIdList != null) { 8535 protocol.writeFieldBegin("personIdList", 2, TType.LIST); 8536 protocol.writeListBegin(TType.I32, this.personIdList.size()); 8537 for (Integer item0 : this.personIdList) { 8538 protocol.writeI32(item0); 8539 } 8540 protocol.writeListEnd(); 8541 protocol.writeFieldEnd(); 8542 } 8543 protocol.writeFieldStop(); 8544 protocol.writeStructEnd(); 8545 } 8546 8547 @Override 8548 protected List<PermitBean> receive(Protocol protocol, MessageMetadata metadata) throws 8549 Exception { 8550 List<PermitBean> result = null; 8551 ServiceRuntimeException ex1 = null; 8552 protocol.readStructBegin(); 8553 while (true) { 8554 FieldMetadata field = protocol.readFieldBegin(); 8555 if (field.typeId == TType.STOP) { 8556 break; 8557 } 8558 switch (field.fieldId) { 8559 case 0: { 8560 if (field.typeId == TType.LIST) { 8561 ListMetadata listMetadata0 = protocol.readListBegin(); 8562 List<PermitBean> value = new ArrayList<PermitBean>(listMetadata0.size); 8563 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 8564 net.gdface.facelog.client.thrift.PermitBean item0 = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 8565 value.add(item0); 8566 } 8567 protocol.readListEnd(); 8568 result = value; 8569 } else { 8570 ProtocolUtil.skip(protocol, field.typeId); 8571 } 8572 } 8573 break; 8574 case 1: { 8575 if (field.typeId == TType.STRUCT) { 8576 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8577 ex1 = value; 8578 } else { 8579 ProtocolUtil.skip(protocol, field.typeId); 8580 } 8581 } 8582 break; 8583 default: ProtocolUtil.skip(protocol, field.typeId); break; 8584 } 8585 protocol.readFieldEnd(); 8586 } 8587 protocol.readStructEnd(); 8588 if (result != null) { 8589 return result; 8590 } else if (ex1 != null) { 8591 throw ex1; 8592 } else { 8593 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8594 } 8595 } 8596 } 8597 8598 private static final class GetPersonRealCall extends MethodCall<PersonBean> { 8599 private final Integer personId; 8600 8601 private final Token token; 8602 8603 GetPersonRealCall(Integer personId, Token token, ServiceMethodCallback<PersonBean> callback) { 8604 super("getPersonReal", TMessageType.CALL, callback); 8605 if (personId == null) throw new NullPointerException("personId"); 8606 this.personId = personId; 8607 this.token = token; 8608 } 8609 8610 @Override 8611 protected void send(Protocol protocol) throws IOException { 8612 protocol.writeStructBegin("args"); 8613 protocol.writeFieldBegin("personId", 1, TType.I32); 8614 protocol.writeI32(this.personId); 8615 protocol.writeFieldEnd(); 8616 if (this.token != null) { 8617 protocol.writeFieldBegin("token", 2, TType.STRUCT); 8618 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 8619 protocol.writeFieldEnd(); 8620 } 8621 protocol.writeFieldStop(); 8622 protocol.writeStructEnd(); 8623 } 8624 8625 @Override 8626 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 8627 PersonBean result = null; 8628 ServiceRuntimeException ex1 = null; 8629 protocol.readStructBegin(); 8630 while (true) { 8631 FieldMetadata field = protocol.readFieldBegin(); 8632 if (field.typeId == TType.STOP) { 8633 break; 8634 } 8635 switch (field.fieldId) { 8636 case 0: { 8637 if (field.typeId == TType.STRUCT) { 8638 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 8639 result = value; 8640 } else { 8641 ProtocolUtil.skip(protocol, field.typeId); 8642 } 8643 } 8644 break; 8645 case 1: { 8646 if (field.typeId == TType.STRUCT) { 8647 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8648 ex1 = value; 8649 } else { 8650 ProtocolUtil.skip(protocol, field.typeId); 8651 } 8652 } 8653 break; 8654 default: ProtocolUtil.skip(protocol, field.typeId); break; 8655 } 8656 protocol.readFieldEnd(); 8657 } 8658 protocol.readStructEnd(); 8659 if (result != null) { 8660 return result; 8661 } else if (ex1 != null) { 8662 throw ex1; 8663 } else { 8664 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8665 } 8666 } 8667 } 8668 8669 private static final class GetPersonsCall extends MethodCall<List<PersonBean>> { 8670 private final List<Integer> idList; 8671 8672 GetPersonsCall(List<Integer> idList, ServiceMethodCallback<List<PersonBean>> callback) { 8673 super("getPersons", TMessageType.CALL, callback); 8674 this.idList = idList; 8675 } 8676 8677 @Override 8678 protected void send(Protocol protocol) throws IOException { 8679 protocol.writeStructBegin("args"); 8680 if (this.idList != null) { 8681 protocol.writeFieldBegin("idList", 1, TType.LIST); 8682 protocol.writeListBegin(TType.I32, this.idList.size()); 8683 for (Integer item0 : this.idList) { 8684 protocol.writeI32(item0); 8685 } 8686 protocol.writeListEnd(); 8687 protocol.writeFieldEnd(); 8688 } 8689 protocol.writeFieldStop(); 8690 protocol.writeStructEnd(); 8691 } 8692 8693 @Override 8694 protected List<PersonBean> receive(Protocol protocol, MessageMetadata metadata) throws 8695 Exception { 8696 List<PersonBean> result = null; 8697 ServiceRuntimeException ex1 = null; 8698 protocol.readStructBegin(); 8699 while (true) { 8700 FieldMetadata field = protocol.readFieldBegin(); 8701 if (field.typeId == TType.STOP) { 8702 break; 8703 } 8704 switch (field.fieldId) { 8705 case 0: { 8706 if (field.typeId == TType.LIST) { 8707 ListMetadata listMetadata0 = protocol.readListBegin(); 8708 List<PersonBean> value = new ArrayList<PersonBean>(listMetadata0.size); 8709 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 8710 net.gdface.facelog.client.thrift.PersonBean item0 = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 8711 value.add(item0); 8712 } 8713 protocol.readListEnd(); 8714 result = value; 8715 } else { 8716 ProtocolUtil.skip(protocol, field.typeId); 8717 } 8718 } 8719 break; 8720 case 1: { 8721 if (field.typeId == TType.STRUCT) { 8722 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8723 ex1 = value; 8724 } else { 8725 ProtocolUtil.skip(protocol, field.typeId); 8726 } 8727 } 8728 break; 8729 default: ProtocolUtil.skip(protocol, field.typeId); break; 8730 } 8731 protocol.readFieldEnd(); 8732 } 8733 protocol.readStructEnd(); 8734 if (result != null) { 8735 return result; 8736 } else if (ex1 != null) { 8737 throw ex1; 8738 } else { 8739 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8740 } 8741 } 8742 } 8743 8744 private static final class GetPersonsOfGroupCall extends MethodCall<List<Integer>> { 8745 private final Integer personGroupId; 8746 8747 GetPersonsOfGroupCall(Integer personGroupId, ServiceMethodCallback<List<Integer>> callback) { 8748 super("getPersonsOfGroup", TMessageType.CALL, callback); 8749 if (personGroupId == null) throw new NullPointerException("personGroupId"); 8750 this.personGroupId = personGroupId; 8751 } 8752 8753 @Override 8754 protected void send(Protocol protocol) throws IOException { 8755 protocol.writeStructBegin("args"); 8756 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 8757 protocol.writeI32(this.personGroupId); 8758 protocol.writeFieldEnd(); 8759 protocol.writeFieldStop(); 8760 protocol.writeStructEnd(); 8761 } 8762 8763 @Override 8764 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 8765 List<Integer> result = null; 8766 ServiceRuntimeException ex1 = null; 8767 protocol.readStructBegin(); 8768 while (true) { 8769 FieldMetadata field = protocol.readFieldBegin(); 8770 if (field.typeId == TType.STOP) { 8771 break; 8772 } 8773 switch (field.fieldId) { 8774 case 0: { 8775 if (field.typeId == TType.LIST) { 8776 ListMetadata listMetadata0 = protocol.readListBegin(); 8777 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 8778 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 8779 int item0 = protocol.readI32(); 8780 value.add(item0); 8781 } 8782 protocol.readListEnd(); 8783 result = value; 8784 } else { 8785 ProtocolUtil.skip(protocol, field.typeId); 8786 } 8787 } 8788 break; 8789 case 1: { 8790 if (field.typeId == TType.STRUCT) { 8791 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8792 ex1 = value; 8793 } else { 8794 ProtocolUtil.skip(protocol, field.typeId); 8795 } 8796 } 8797 break; 8798 default: ProtocolUtil.skip(protocol, field.typeId); break; 8799 } 8800 protocol.readFieldEnd(); 8801 } 8802 protocol.readStructEnd(); 8803 if (result != null) { 8804 return result; 8805 } else if (ex1 != null) { 8806 throw ex1; 8807 } else { 8808 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8809 } 8810 } 8811 } 8812 8813 private static final class GetPersonsPermittedOnDeviceCall extends MethodCall<List<Integer>> { 8814 private final Integer deviceId; 8815 8816 private final Boolean ignoreSchedule; 8817 8818 private final List<Integer> excludePersonIds; 8819 8820 private final Long timestamp; 8821 8822 GetPersonsPermittedOnDeviceCall(Integer deviceId, Boolean ignoreSchedule, 8823 List<Integer> excludePersonIds, Long timestamp, 8824 ServiceMethodCallback<List<Integer>> callback) { 8825 super("getPersonsPermittedOnDevice", TMessageType.CALL, callback); 8826 if (deviceId == null) throw new NullPointerException("deviceId"); 8827 this.deviceId = deviceId; 8828 if (ignoreSchedule == null) throw new NullPointerException("ignoreSchedule"); 8829 this.ignoreSchedule = ignoreSchedule; 8830 this.excludePersonIds = excludePersonIds; 8831 this.timestamp = timestamp; 8832 } 8833 8834 @Override 8835 protected void send(Protocol protocol) throws IOException { 8836 protocol.writeStructBegin("args"); 8837 protocol.writeFieldBegin("deviceId", 1, TType.I32); 8838 protocol.writeI32(this.deviceId); 8839 protocol.writeFieldEnd(); 8840 protocol.writeFieldBegin("ignoreSchedule", 2, TType.BOOL); 8841 protocol.writeBool(this.ignoreSchedule); 8842 protocol.writeFieldEnd(); 8843 if (this.excludePersonIds != null) { 8844 protocol.writeFieldBegin("excludePersonIds", 3, TType.LIST); 8845 protocol.writeListBegin(TType.I32, this.excludePersonIds.size()); 8846 for (Integer item0 : this.excludePersonIds) { 8847 protocol.writeI32(item0); 8848 } 8849 protocol.writeListEnd(); 8850 protocol.writeFieldEnd(); 8851 } 8852 if (this.timestamp != null) { 8853 protocol.writeFieldBegin("timestamp", 4, TType.I64); 8854 protocol.writeI64(this.timestamp); 8855 protocol.writeFieldEnd(); 8856 } 8857 protocol.writeFieldStop(); 8858 protocol.writeStructEnd(); 8859 } 8860 8861 @Override 8862 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 8863 List<Integer> result = null; 8864 ServiceRuntimeException ex1 = null; 8865 protocol.readStructBegin(); 8866 while (true) { 8867 FieldMetadata field = protocol.readFieldBegin(); 8868 if (field.typeId == TType.STOP) { 8869 break; 8870 } 8871 switch (field.fieldId) { 8872 case 0: { 8873 if (field.typeId == TType.LIST) { 8874 ListMetadata listMetadata0 = protocol.readListBegin(); 8875 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 8876 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 8877 int item0 = protocol.readI32(); 8878 value.add(item0); 8879 } 8880 protocol.readListEnd(); 8881 result = value; 8882 } else { 8883 ProtocolUtil.skip(protocol, field.typeId); 8884 } 8885 } 8886 break; 8887 case 1: { 8888 if (field.typeId == TType.STRUCT) { 8889 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8890 ex1 = value; 8891 } else { 8892 ProtocolUtil.skip(protocol, field.typeId); 8893 } 8894 } 8895 break; 8896 default: ProtocolUtil.skip(protocol, field.typeId); break; 8897 } 8898 protocol.readFieldEnd(); 8899 } 8900 protocol.readStructEnd(); 8901 if (result != null) { 8902 return result; 8903 } else if (ex1 != null) { 8904 throw ex1; 8905 } else { 8906 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8907 } 8908 } 8909 } 8910 8911 private static final class GetPersonsRealCall extends MethodCall<List<PersonBean>> { 8912 private final List<Integer> idList; 8913 8914 private final Token token; 8915 8916 GetPersonsRealCall(List<Integer> idList, Token token, 8917 ServiceMethodCallback<List<PersonBean>> callback) { 8918 super("getPersonsReal", TMessageType.CALL, callback); 8919 this.idList = idList; 8920 this.token = token; 8921 } 8922 8923 @Override 8924 protected void send(Protocol protocol) throws IOException { 8925 protocol.writeStructBegin("args"); 8926 if (this.idList != null) { 8927 protocol.writeFieldBegin("idList", 1, TType.LIST); 8928 protocol.writeListBegin(TType.I32, this.idList.size()); 8929 for (Integer item0 : this.idList) { 8930 protocol.writeI32(item0); 8931 } 8932 protocol.writeListEnd(); 8933 protocol.writeFieldEnd(); 8934 } 8935 if (this.token != null) { 8936 protocol.writeFieldBegin("token", 2, TType.STRUCT); 8937 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 8938 protocol.writeFieldEnd(); 8939 } 8940 protocol.writeFieldStop(); 8941 protocol.writeStructEnd(); 8942 } 8943 8944 @Override 8945 protected List<PersonBean> receive(Protocol protocol, MessageMetadata metadata) throws 8946 Exception { 8947 List<PersonBean> result = null; 8948 ServiceRuntimeException ex1 = null; 8949 protocol.readStructBegin(); 8950 while (true) { 8951 FieldMetadata field = protocol.readFieldBegin(); 8952 if (field.typeId == TType.STOP) { 8953 break; 8954 } 8955 switch (field.fieldId) { 8956 case 0: { 8957 if (field.typeId == TType.LIST) { 8958 ListMetadata listMetadata0 = protocol.readListBegin(); 8959 List<PersonBean> value = new ArrayList<PersonBean>(listMetadata0.size); 8960 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 8961 net.gdface.facelog.client.thrift.PersonBean item0 = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 8962 value.add(item0); 8963 } 8964 protocol.readListEnd(); 8965 result = value; 8966 } else { 8967 ProtocolUtil.skip(protocol, field.typeId); 8968 } 8969 } 8970 break; 8971 case 1: { 8972 if (field.typeId == TType.STRUCT) { 8973 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 8974 ex1 = value; 8975 } else { 8976 ProtocolUtil.skip(protocol, field.typeId); 8977 } 8978 } 8979 break; 8980 default: ProtocolUtil.skip(protocol, field.typeId); break; 8981 } 8982 protocol.readFieldEnd(); 8983 } 8984 protocol.readStructEnd(); 8985 if (result != null) { 8986 return result; 8987 } else if (ex1 != null) { 8988 throw ex1; 8989 } else { 8990 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 8991 } 8992 } 8993 } 8994 8995 private static final class GetPropertiesCall extends MethodCall<Map<String, String>> { 8996 private final String prefix; 8997 8998 private final Token token; 8999 9000 GetPropertiesCall(String prefix, Token token, 9001 ServiceMethodCallback<Map<String, String>> callback) { 9002 super("getProperties", TMessageType.CALL, callback); 9003 this.prefix = prefix; 9004 this.token = token; 9005 } 9006 9007 @Override 9008 protected void send(Protocol protocol) throws IOException { 9009 protocol.writeStructBegin("args"); 9010 if (this.prefix != null) { 9011 protocol.writeFieldBegin("prefix", 1, TType.STRING); 9012 protocol.writeString(this.prefix); 9013 protocol.writeFieldEnd(); 9014 } 9015 if (this.token != null) { 9016 protocol.writeFieldBegin("token", 2, TType.STRUCT); 9017 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 9018 protocol.writeFieldEnd(); 9019 } 9020 protocol.writeFieldStop(); 9021 protocol.writeStructEnd(); 9022 } 9023 9024 @Override 9025 protected Map<String, String> receive(Protocol protocol, MessageMetadata metadata) throws 9026 Exception { 9027 Map<String, String> result = null; 9028 ServiceRuntimeException ex1 = null; 9029 protocol.readStructBegin(); 9030 while (true) { 9031 FieldMetadata field = protocol.readFieldBegin(); 9032 if (field.typeId == TType.STOP) { 9033 break; 9034 } 9035 switch (field.fieldId) { 9036 case 0: { 9037 if (field.typeId == TType.MAP) { 9038 MapMetadata mapMetadata0 = protocol.readMapBegin(); 9039 Map<String, String> value = new HashMap<String, String>(mapMetadata0.size); 9040 for (int i0 = 0; i0 < mapMetadata0.size; ++i0) { 9041 String key0 = protocol.readString(); 9042 String value0 = protocol.readString(); 9043 value.put(key0, value0); 9044 } 9045 protocol.readMapEnd(); 9046 result = value; 9047 } else { 9048 ProtocolUtil.skip(protocol, field.typeId); 9049 } 9050 } 9051 break; 9052 case 1: { 9053 if (field.typeId == TType.STRUCT) { 9054 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9055 ex1 = value; 9056 } else { 9057 ProtocolUtil.skip(protocol, field.typeId); 9058 } 9059 } 9060 break; 9061 default: ProtocolUtil.skip(protocol, field.typeId); break; 9062 } 9063 protocol.readFieldEnd(); 9064 } 9065 protocol.readStructEnd(); 9066 if (result != null) { 9067 return result; 9068 } else if (ex1 != null) { 9069 throw ex1; 9070 } else { 9071 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9072 } 9073 } 9074 } 9075 9076 private static final class GetPropertyCall extends MethodCall<String> { 9077 private final String key; 9078 9079 private final Token token; 9080 9081 GetPropertyCall(String key, Token token, ServiceMethodCallback<String> callback) { 9082 super("getProperty", TMessageType.CALL, callback); 9083 this.key = key; 9084 this.token = token; 9085 } 9086 9087 @Override 9088 protected void send(Protocol protocol) throws IOException { 9089 protocol.writeStructBegin("args"); 9090 if (this.key != null) { 9091 protocol.writeFieldBegin("key", 1, TType.STRING); 9092 protocol.writeString(this.key); 9093 protocol.writeFieldEnd(); 9094 } 9095 if (this.token != null) { 9096 protocol.writeFieldBegin("token", 2, TType.STRUCT); 9097 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 9098 protocol.writeFieldEnd(); 9099 } 9100 protocol.writeFieldStop(); 9101 protocol.writeStructEnd(); 9102 } 9103 9104 @Override 9105 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9106 String result = null; 9107 ServiceRuntimeException ex1 = null; 9108 protocol.readStructBegin(); 9109 while (true) { 9110 FieldMetadata field = protocol.readFieldBegin(); 9111 if (field.typeId == TType.STOP) { 9112 break; 9113 } 9114 switch (field.fieldId) { 9115 case 0: { 9116 if (field.typeId == TType.STRING) { 9117 String value = protocol.readString(); 9118 result = value; 9119 } else { 9120 ProtocolUtil.skip(protocol, field.typeId); 9121 } 9122 } 9123 break; 9124 case 1: { 9125 if (field.typeId == TType.STRUCT) { 9126 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9127 ex1 = value; 9128 } else { 9129 ProtocolUtil.skip(protocol, field.typeId); 9130 } 9131 } 9132 break; 9133 default: ProtocolUtil.skip(protocol, field.typeId); break; 9134 } 9135 protocol.readFieldEnd(); 9136 } 9137 protocol.readStructEnd(); 9138 if (result != null) { 9139 return result; 9140 } else if (ex1 != null) { 9141 throw ex1; 9142 } else { 9143 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9144 } 9145 } 9146 } 9147 9148 private static final class GetRedisParametersCall extends MethodCall<Map<MQParam, String>> { 9149 private final Token token; 9150 9151 GetRedisParametersCall(Token token, ServiceMethodCallback<Map<MQParam, String>> callback) { 9152 super("getRedisParameters", TMessageType.CALL, callback); 9153 this.token = token; 9154 } 9155 9156 @Override 9157 protected void send(Protocol protocol) throws IOException { 9158 protocol.writeStructBegin("args"); 9159 if (this.token != null) { 9160 protocol.writeFieldBegin("token", 1, TType.STRUCT); 9161 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 9162 protocol.writeFieldEnd(); 9163 } 9164 protocol.writeFieldStop(); 9165 protocol.writeStructEnd(); 9166 } 9167 9168 @Override 9169 protected Map<MQParam, String> receive(Protocol protocol, MessageMetadata metadata) throws 9170 Exception { 9171 Map<MQParam, String> result = null; 9172 ServiceRuntimeException ex1 = null; 9173 protocol.readStructBegin(); 9174 while (true) { 9175 FieldMetadata field = protocol.readFieldBegin(); 9176 if (field.typeId == TType.STOP) { 9177 break; 9178 } 9179 switch (field.fieldId) { 9180 case 0: { 9181 if (field.typeId == TType.MAP) { 9182 MapMetadata mapMetadata0 = protocol.readMapBegin(); 9183 Map<MQParam, String> value = new HashMap<MQParam, String>(mapMetadata0.size); 9184 for (int i0 = 0; i0 < mapMetadata0.size; ++i0) { 9185 int i32_1 = protocol.readI32(); 9186 net.gdface.facelog.client.thrift.MQParam key0 = net.gdface.facelog.client.thrift.MQParam.findByValue(i32_1); 9187 if (key0 == null) { 9188 throw new ThriftException(ThriftException.Kind.PROTOCOL_ERROR, "Unexpected value for enum-type MQParam: " + i32_1); 9189 } 9190 String value0 = protocol.readString(); 9191 value.put(key0, value0); 9192 } 9193 protocol.readMapEnd(); 9194 result = value; 9195 } else { 9196 ProtocolUtil.skip(protocol, field.typeId); 9197 } 9198 } 9199 break; 9200 case 1: { 9201 if (field.typeId == TType.STRUCT) { 9202 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9203 ex1 = value; 9204 } else { 9205 ProtocolUtil.skip(protocol, field.typeId); 9206 } 9207 } 9208 break; 9209 default: ProtocolUtil.skip(protocol, field.typeId); break; 9210 } 9211 protocol.readFieldEnd(); 9212 } 9213 protocol.readStructEnd(); 9214 if (result != null) { 9215 return result; 9216 } else if (ex1 != null) { 9217 throw ex1; 9218 } else { 9219 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9220 } 9221 } 9222 } 9223 9224 private static final class GetServiceConfigCall extends MethodCall<Map<String, String>> { 9225 private final Token token; 9226 9227 GetServiceConfigCall(Token token, ServiceMethodCallback<Map<String, String>> callback) { 9228 super("getServiceConfig", TMessageType.CALL, callback); 9229 this.token = token; 9230 } 9231 9232 @Override 9233 protected void send(Protocol protocol) throws IOException { 9234 protocol.writeStructBegin("args"); 9235 if (this.token != null) { 9236 protocol.writeFieldBegin("token", 1, TType.STRUCT); 9237 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 9238 protocol.writeFieldEnd(); 9239 } 9240 protocol.writeFieldStop(); 9241 protocol.writeStructEnd(); 9242 } 9243 9244 @Override 9245 protected Map<String, String> receive(Protocol protocol, MessageMetadata metadata) throws 9246 Exception { 9247 Map<String, String> result = null; 9248 ServiceRuntimeException ex1 = null; 9249 protocol.readStructBegin(); 9250 while (true) { 9251 FieldMetadata field = protocol.readFieldBegin(); 9252 if (field.typeId == TType.STOP) { 9253 break; 9254 } 9255 switch (field.fieldId) { 9256 case 0: { 9257 if (field.typeId == TType.MAP) { 9258 MapMetadata mapMetadata0 = protocol.readMapBegin(); 9259 Map<String, String> value = new HashMap<String, String>(mapMetadata0.size); 9260 for (int i0 = 0; i0 < mapMetadata0.size; ++i0) { 9261 String key0 = protocol.readString(); 9262 String value0 = protocol.readString(); 9263 value.put(key0, value0); 9264 } 9265 protocol.readMapEnd(); 9266 result = value; 9267 } else { 9268 ProtocolUtil.skip(protocol, field.typeId); 9269 } 9270 } 9271 break; 9272 case 1: { 9273 if (field.typeId == TType.STRUCT) { 9274 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9275 ex1 = value; 9276 } else { 9277 ProtocolUtil.skip(protocol, field.typeId); 9278 } 9279 } 9280 break; 9281 default: ProtocolUtil.skip(protocol, field.typeId); break; 9282 } 9283 protocol.readFieldEnd(); 9284 } 9285 protocol.readStructEnd(); 9286 if (result != null) { 9287 return result; 9288 } else if (ex1 != null) { 9289 throw ex1; 9290 } else { 9291 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9292 } 9293 } 9294 } 9295 9296 private static final class GetSubDeviceGroupCall extends MethodCall<List<Integer>> { 9297 private final Integer deviceGroupId; 9298 9299 GetSubDeviceGroupCall(Integer deviceGroupId, ServiceMethodCallback<List<Integer>> callback) { 9300 super("getSubDeviceGroup", TMessageType.CALL, callback); 9301 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 9302 this.deviceGroupId = deviceGroupId; 9303 } 9304 9305 @Override 9306 protected void send(Protocol protocol) throws IOException { 9307 protocol.writeStructBegin("args"); 9308 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 9309 protocol.writeI32(this.deviceGroupId); 9310 protocol.writeFieldEnd(); 9311 protocol.writeFieldStop(); 9312 protocol.writeStructEnd(); 9313 } 9314 9315 @Override 9316 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9317 List<Integer> result = null; 9318 ServiceRuntimeException ex1 = null; 9319 protocol.readStructBegin(); 9320 while (true) { 9321 FieldMetadata field = protocol.readFieldBegin(); 9322 if (field.typeId == TType.STOP) { 9323 break; 9324 } 9325 switch (field.fieldId) { 9326 case 0: { 9327 if (field.typeId == TType.LIST) { 9328 ListMetadata listMetadata0 = protocol.readListBegin(); 9329 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 9330 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 9331 int item0 = protocol.readI32(); 9332 value.add(item0); 9333 } 9334 protocol.readListEnd(); 9335 result = value; 9336 } else { 9337 ProtocolUtil.skip(protocol, field.typeId); 9338 } 9339 } 9340 break; 9341 case 1: { 9342 if (field.typeId == TType.STRUCT) { 9343 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9344 ex1 = value; 9345 } else { 9346 ProtocolUtil.skip(protocol, field.typeId); 9347 } 9348 } 9349 break; 9350 default: ProtocolUtil.skip(protocol, field.typeId); break; 9351 } 9352 protocol.readFieldEnd(); 9353 } 9354 protocol.readStructEnd(); 9355 if (result != null) { 9356 return result; 9357 } else if (ex1 != null) { 9358 throw ex1; 9359 } else { 9360 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9361 } 9362 } 9363 } 9364 9365 private static final class GetSubPersonGroupCall extends MethodCall<List<Integer>> { 9366 private final Integer personGroupId; 9367 9368 GetSubPersonGroupCall(Integer personGroupId, ServiceMethodCallback<List<Integer>> callback) { 9369 super("getSubPersonGroup", TMessageType.CALL, callback); 9370 if (personGroupId == null) throw new NullPointerException("personGroupId"); 9371 this.personGroupId = personGroupId; 9372 } 9373 9374 @Override 9375 protected void send(Protocol protocol) throws IOException { 9376 protocol.writeStructBegin("args"); 9377 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 9378 protocol.writeI32(this.personGroupId); 9379 protocol.writeFieldEnd(); 9380 protocol.writeFieldStop(); 9381 protocol.writeStructEnd(); 9382 } 9383 9384 @Override 9385 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9386 List<Integer> result = null; 9387 ServiceRuntimeException ex1 = null; 9388 protocol.readStructBegin(); 9389 while (true) { 9390 FieldMetadata field = protocol.readFieldBegin(); 9391 if (field.typeId == TType.STOP) { 9392 break; 9393 } 9394 switch (field.fieldId) { 9395 case 0: { 9396 if (field.typeId == TType.LIST) { 9397 ListMetadata listMetadata0 = protocol.readListBegin(); 9398 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 9399 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 9400 int item0 = protocol.readI32(); 9401 value.add(item0); 9402 } 9403 protocol.readListEnd(); 9404 result = value; 9405 } else { 9406 ProtocolUtil.skip(protocol, field.typeId); 9407 } 9408 } 9409 break; 9410 case 1: { 9411 if (field.typeId == TType.STRUCT) { 9412 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9413 ex1 = value; 9414 } else { 9415 ProtocolUtil.skip(protocol, field.typeId); 9416 } 9417 } 9418 break; 9419 default: ProtocolUtil.skip(protocol, field.typeId); break; 9420 } 9421 protocol.readFieldEnd(); 9422 } 9423 protocol.readStructEnd(); 9424 if (result != null) { 9425 return result; 9426 } else if (ex1 != null) { 9427 throw ex1; 9428 } else { 9429 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9430 } 9431 } 9432 } 9433 9434 private static final class GetTargetInfo4PwdOnDeviceCall extends MethodCall<TmpwdTargetInfo> { 9435 private final String pwd; 9436 9437 private final Token token; 9438 9439 GetTargetInfo4PwdOnDeviceCall(String pwd, Token token, 9440 ServiceMethodCallback<TmpwdTargetInfo> callback) { 9441 super("getTargetInfo4PwdOnDevice", TMessageType.CALL, callback); 9442 this.pwd = pwd; 9443 this.token = token; 9444 } 9445 9446 @Override 9447 protected void send(Protocol protocol) throws IOException { 9448 protocol.writeStructBegin("args"); 9449 if (this.pwd != null) { 9450 protocol.writeFieldBegin("pwd", 1, TType.STRING); 9451 protocol.writeString(this.pwd); 9452 protocol.writeFieldEnd(); 9453 } 9454 if (this.token != null) { 9455 protocol.writeFieldBegin("token", 2, TType.STRUCT); 9456 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 9457 protocol.writeFieldEnd(); 9458 } 9459 protocol.writeFieldStop(); 9460 protocol.writeStructEnd(); 9461 } 9462 9463 @Override 9464 protected TmpwdTargetInfo receive(Protocol protocol, MessageMetadata metadata) throws 9465 Exception { 9466 TmpwdTargetInfo result = null; 9467 ServiceRuntimeException ex1 = null; 9468 protocol.readStructBegin(); 9469 while (true) { 9470 FieldMetadata field = protocol.readFieldBegin(); 9471 if (field.typeId == TType.STOP) { 9472 break; 9473 } 9474 switch (field.fieldId) { 9475 case 0: { 9476 if (field.typeId == TType.STRUCT) { 9477 net.gdface.facelog.client.thrift.TmpwdTargetInfo value = net.gdface.facelog.client.thrift.TmpwdTargetInfo.ADAPTER.read(protocol); 9478 result = value; 9479 } else { 9480 ProtocolUtil.skip(protocol, field.typeId); 9481 } 9482 } 9483 break; 9484 case 1: { 9485 if (field.typeId == TType.STRUCT) { 9486 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9487 ex1 = value; 9488 } else { 9489 ProtocolUtil.skip(protocol, field.typeId); 9490 } 9491 } 9492 break; 9493 default: ProtocolUtil.skip(protocol, field.typeId); break; 9494 } 9495 protocol.readFieldEnd(); 9496 } 9497 protocol.readStructEnd(); 9498 if (result != null) { 9499 return result; 9500 } else if (ex1 != null) { 9501 throw ex1; 9502 } else { 9503 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9504 } 9505 } 9506 } 9507 9508 private static final class InitTopGroupCall extends MethodCall<Integer> { 9509 private final TopGroupInfo groupInfo; 9510 9511 private final Token token; 9512 9513 InitTopGroupCall(TopGroupInfo groupInfo, Token token, ServiceMethodCallback<Integer> callback) { 9514 super("initTopGroup", TMessageType.CALL, callback); 9515 this.groupInfo = groupInfo; 9516 this.token = token; 9517 } 9518 9519 @Override 9520 protected void send(Protocol protocol) throws IOException { 9521 protocol.writeStructBegin("args"); 9522 if (this.groupInfo != null) { 9523 protocol.writeFieldBegin("groupInfo", 1, TType.STRUCT); 9524 net.gdface.facelog.client.thrift.TopGroupInfo.ADAPTER.write(protocol, this.groupInfo); 9525 protocol.writeFieldEnd(); 9526 } 9527 if (this.token != null) { 9528 protocol.writeFieldBegin("token", 2, TType.STRUCT); 9529 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 9530 protocol.writeFieldEnd(); 9531 } 9532 protocol.writeFieldStop(); 9533 protocol.writeStructEnd(); 9534 } 9535 9536 @Override 9537 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9538 Integer result = null; 9539 ServiceRuntimeException ex1 = null; 9540 protocol.readStructBegin(); 9541 while (true) { 9542 FieldMetadata field = protocol.readFieldBegin(); 9543 if (field.typeId == TType.STOP) { 9544 break; 9545 } 9546 switch (field.fieldId) { 9547 case 0: { 9548 if (field.typeId == TType.I32) { 9549 int value = protocol.readI32(); 9550 result = value; 9551 } else { 9552 ProtocolUtil.skip(protocol, field.typeId); 9553 } 9554 } 9555 break; 9556 case 1: { 9557 if (field.typeId == TType.STRUCT) { 9558 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9559 ex1 = value; 9560 } else { 9561 ProtocolUtil.skip(protocol, field.typeId); 9562 } 9563 } 9564 break; 9565 default: ProtocolUtil.skip(protocol, field.typeId); break; 9566 } 9567 protocol.readFieldEnd(); 9568 } 9569 protocol.readStructEnd(); 9570 if (result != null) { 9571 return result; 9572 } else if (ex1 != null) { 9573 throw ex1; 9574 } else { 9575 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9576 } 9577 } 9578 } 9579 9580 private static final class IsDisableCall extends MethodCall<Boolean> { 9581 private final Integer personId; 9582 9583 IsDisableCall(Integer personId, ServiceMethodCallback<Boolean> callback) { 9584 super("isDisable", TMessageType.CALL, callback); 9585 if (personId == null) throw new NullPointerException("personId"); 9586 this.personId = personId; 9587 } 9588 9589 @Override 9590 protected void send(Protocol protocol) throws IOException { 9591 protocol.writeStructBegin("args"); 9592 protocol.writeFieldBegin("personId", 1, TType.I32); 9593 protocol.writeI32(this.personId); 9594 protocol.writeFieldEnd(); 9595 protocol.writeFieldStop(); 9596 protocol.writeStructEnd(); 9597 } 9598 9599 @Override 9600 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9601 Boolean result = null; 9602 ServiceRuntimeException ex1 = null; 9603 protocol.readStructBegin(); 9604 while (true) { 9605 FieldMetadata field = protocol.readFieldBegin(); 9606 if (field.typeId == TType.STOP) { 9607 break; 9608 } 9609 switch (field.fieldId) { 9610 case 0: { 9611 if (field.typeId == TType.BOOL) { 9612 boolean value = protocol.readBool(); 9613 result = value; 9614 } else { 9615 ProtocolUtil.skip(protocol, field.typeId); 9616 } 9617 } 9618 break; 9619 case 1: { 9620 if (field.typeId == TType.STRUCT) { 9621 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9622 ex1 = value; 9623 } else { 9624 ProtocolUtil.skip(protocol, field.typeId); 9625 } 9626 } 9627 break; 9628 default: ProtocolUtil.skip(protocol, field.typeId); break; 9629 } 9630 protocol.readFieldEnd(); 9631 } 9632 protocol.readStructEnd(); 9633 if (result != null) { 9634 return result; 9635 } else if (ex1 != null) { 9636 throw ex1; 9637 } else { 9638 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9639 } 9640 } 9641 } 9642 9643 private static final class IsLocalCall extends MethodCall<Boolean> { 9644 IsLocalCall(ServiceMethodCallback<Boolean> callback) { 9645 super("isLocal", TMessageType.CALL, callback); 9646 } 9647 9648 @Override 9649 protected void send(Protocol protocol) throws IOException { 9650 protocol.writeStructBegin("args"); 9651 protocol.writeFieldStop(); 9652 protocol.writeStructEnd(); 9653 } 9654 9655 @Override 9656 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9657 Boolean result = null; 9658 ServiceRuntimeException ex1 = null; 9659 protocol.readStructBegin(); 9660 while (true) { 9661 FieldMetadata field = protocol.readFieldBegin(); 9662 if (field.typeId == TType.STOP) { 9663 break; 9664 } 9665 switch (field.fieldId) { 9666 case 0: { 9667 if (field.typeId == TType.BOOL) { 9668 boolean value = protocol.readBool(); 9669 result = value; 9670 } else { 9671 ProtocolUtil.skip(protocol, field.typeId); 9672 } 9673 } 9674 break; 9675 case 1: { 9676 if (field.typeId == TType.STRUCT) { 9677 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9678 ex1 = value; 9679 } else { 9680 ProtocolUtil.skip(protocol, field.typeId); 9681 } 9682 } 9683 break; 9684 default: ProtocolUtil.skip(protocol, field.typeId); break; 9685 } 9686 protocol.readFieldEnd(); 9687 } 9688 protocol.readStructEnd(); 9689 if (result != null) { 9690 return result; 9691 } else if (ex1 != null) { 9692 throw ex1; 9693 } else { 9694 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9695 } 9696 } 9697 } 9698 9699 private static final class IsValidAckChannelCall extends MethodCall<Boolean> { 9700 private final String ackChannel; 9701 9702 IsValidAckChannelCall(String ackChannel, ServiceMethodCallback<Boolean> callback) { 9703 super("isValidAckChannel", TMessageType.CALL, callback); 9704 this.ackChannel = ackChannel; 9705 } 9706 9707 @Override 9708 protected void send(Protocol protocol) throws IOException { 9709 protocol.writeStructBegin("args"); 9710 if (this.ackChannel != null) { 9711 protocol.writeFieldBegin("ackChannel", 1, TType.STRING); 9712 protocol.writeString(this.ackChannel); 9713 protocol.writeFieldEnd(); 9714 } 9715 protocol.writeFieldStop(); 9716 protocol.writeStructEnd(); 9717 } 9718 9719 @Override 9720 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9721 Boolean result = null; 9722 ServiceRuntimeException ex1 = null; 9723 protocol.readStructBegin(); 9724 while (true) { 9725 FieldMetadata field = protocol.readFieldBegin(); 9726 if (field.typeId == TType.STOP) { 9727 break; 9728 } 9729 switch (field.fieldId) { 9730 case 0: { 9731 if (field.typeId == TType.BOOL) { 9732 boolean value = protocol.readBool(); 9733 result = value; 9734 } else { 9735 ProtocolUtil.skip(protocol, field.typeId); 9736 } 9737 } 9738 break; 9739 case 1: { 9740 if (field.typeId == TType.STRUCT) { 9741 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9742 ex1 = value; 9743 } else { 9744 ProtocolUtil.skip(protocol, field.typeId); 9745 } 9746 } 9747 break; 9748 default: ProtocolUtil.skip(protocol, field.typeId); break; 9749 } 9750 protocol.readFieldEnd(); 9751 } 9752 protocol.readStructEnd(); 9753 if (result != null) { 9754 return result; 9755 } else if (ex1 != null) { 9756 throw ex1; 9757 } else { 9758 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9759 } 9760 } 9761 } 9762 9763 private static final class IsValidCmdSnCall extends MethodCall<Boolean> { 9764 private final Integer cmdSn; 9765 9766 IsValidCmdSnCall(Integer cmdSn, ServiceMethodCallback<Boolean> callback) { 9767 super("isValidCmdSn", TMessageType.CALL, callback); 9768 if (cmdSn == null) throw new NullPointerException("cmdSn"); 9769 this.cmdSn = cmdSn; 9770 } 9771 9772 @Override 9773 protected void send(Protocol protocol) throws IOException { 9774 protocol.writeStructBegin("args"); 9775 protocol.writeFieldBegin("cmdSn", 1, TType.I32); 9776 protocol.writeI32(this.cmdSn); 9777 protocol.writeFieldEnd(); 9778 protocol.writeFieldStop(); 9779 protocol.writeStructEnd(); 9780 } 9781 9782 @Override 9783 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9784 Boolean result = null; 9785 ServiceRuntimeException ex1 = null; 9786 protocol.readStructBegin(); 9787 while (true) { 9788 FieldMetadata field = protocol.readFieldBegin(); 9789 if (field.typeId == TType.STOP) { 9790 break; 9791 } 9792 switch (field.fieldId) { 9793 case 0: { 9794 if (field.typeId == TType.BOOL) { 9795 boolean value = protocol.readBool(); 9796 result = value; 9797 } else { 9798 ProtocolUtil.skip(protocol, field.typeId); 9799 } 9800 } 9801 break; 9802 case 1: { 9803 if (field.typeId == TType.STRUCT) { 9804 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9805 ex1 = value; 9806 } else { 9807 ProtocolUtil.skip(protocol, field.typeId); 9808 } 9809 } 9810 break; 9811 default: ProtocolUtil.skip(protocol, field.typeId); break; 9812 } 9813 protocol.readFieldEnd(); 9814 } 9815 protocol.readStructEnd(); 9816 if (result != null) { 9817 return result; 9818 } else if (ex1 != null) { 9819 throw ex1; 9820 } else { 9821 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9822 } 9823 } 9824 } 9825 9826 private static final class IsValidDeviceTokenCall extends MethodCall<Boolean> { 9827 private final Token token; 9828 9829 IsValidDeviceTokenCall(Token token, ServiceMethodCallback<Boolean> callback) { 9830 super("isValidDeviceToken", TMessageType.CALL, callback); 9831 this.token = token; 9832 } 9833 9834 @Override 9835 protected void send(Protocol protocol) throws IOException { 9836 protocol.writeStructBegin("args"); 9837 if (this.token != null) { 9838 protocol.writeFieldBegin("token", 1, TType.STRUCT); 9839 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 9840 protocol.writeFieldEnd(); 9841 } 9842 protocol.writeFieldStop(); 9843 protocol.writeStructEnd(); 9844 } 9845 9846 @Override 9847 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9848 Boolean result = null; 9849 ServiceRuntimeException ex1 = null; 9850 protocol.readStructBegin(); 9851 while (true) { 9852 FieldMetadata field = protocol.readFieldBegin(); 9853 if (field.typeId == TType.STOP) { 9854 break; 9855 } 9856 switch (field.fieldId) { 9857 case 0: { 9858 if (field.typeId == TType.BOOL) { 9859 boolean value = protocol.readBool(); 9860 result = value; 9861 } else { 9862 ProtocolUtil.skip(protocol, field.typeId); 9863 } 9864 } 9865 break; 9866 case 1: { 9867 if (field.typeId == TType.STRUCT) { 9868 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9869 ex1 = value; 9870 } else { 9871 ProtocolUtil.skip(protocol, field.typeId); 9872 } 9873 } 9874 break; 9875 default: ProtocolUtil.skip(protocol, field.typeId); break; 9876 } 9877 protocol.readFieldEnd(); 9878 } 9879 protocol.readStructEnd(); 9880 if (result != null) { 9881 return result; 9882 } else if (ex1 != null) { 9883 throw ex1; 9884 } else { 9885 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9886 } 9887 } 9888 } 9889 9890 private static final class IsValidPasswordCall extends MethodCall<Boolean> { 9891 private final String userId; 9892 9893 private final String password; 9894 9895 private final Boolean isMd5; 9896 9897 IsValidPasswordCall(String userId, String password, Boolean isMd5, 9898 ServiceMethodCallback<Boolean> callback) { 9899 super("isValidPassword", TMessageType.CALL, callback); 9900 this.userId = userId; 9901 this.password = password; 9902 if (isMd5 == null) throw new NullPointerException("isMd5"); 9903 this.isMd5 = isMd5; 9904 } 9905 9906 @Override 9907 protected void send(Protocol protocol) throws IOException { 9908 protocol.writeStructBegin("args"); 9909 if (this.userId != null) { 9910 protocol.writeFieldBegin("userId", 1, TType.STRING); 9911 protocol.writeString(this.userId); 9912 protocol.writeFieldEnd(); 9913 } 9914 if (this.password != null) { 9915 protocol.writeFieldBegin("password", 2, TType.STRING); 9916 protocol.writeString(this.password); 9917 protocol.writeFieldEnd(); 9918 } 9919 protocol.writeFieldBegin("isMd5", 3, TType.BOOL); 9920 protocol.writeBool(this.isMd5); 9921 protocol.writeFieldEnd(); 9922 protocol.writeFieldStop(); 9923 protocol.writeStructEnd(); 9924 } 9925 9926 @Override 9927 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9928 Boolean result = null; 9929 ServiceRuntimeException ex1 = null; 9930 protocol.readStructBegin(); 9931 while (true) { 9932 FieldMetadata field = protocol.readFieldBegin(); 9933 if (field.typeId == TType.STOP) { 9934 break; 9935 } 9936 switch (field.fieldId) { 9937 case 0: { 9938 if (field.typeId == TType.BOOL) { 9939 boolean value = protocol.readBool(); 9940 result = value; 9941 } else { 9942 ProtocolUtil.skip(protocol, field.typeId); 9943 } 9944 } 9945 break; 9946 case 1: { 9947 if (field.typeId == TType.STRUCT) { 9948 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 9949 ex1 = value; 9950 } else { 9951 ProtocolUtil.skip(protocol, field.typeId); 9952 } 9953 } 9954 break; 9955 default: ProtocolUtil.skip(protocol, field.typeId); break; 9956 } 9957 protocol.readFieldEnd(); 9958 } 9959 protocol.readStructEnd(); 9960 if (result != null) { 9961 return result; 9962 } else if (ex1 != null) { 9963 throw ex1; 9964 } else { 9965 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 9966 } 9967 } 9968 } 9969 9970 private static final class IsValidPersonTokenCall extends MethodCall<Boolean> { 9971 private final Token token; 9972 9973 IsValidPersonTokenCall(Token token, ServiceMethodCallback<Boolean> callback) { 9974 super("isValidPersonToken", TMessageType.CALL, callback); 9975 this.token = token; 9976 } 9977 9978 @Override 9979 protected void send(Protocol protocol) throws IOException { 9980 protocol.writeStructBegin("args"); 9981 if (this.token != null) { 9982 protocol.writeFieldBegin("token", 1, TType.STRUCT); 9983 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 9984 protocol.writeFieldEnd(); 9985 } 9986 protocol.writeFieldStop(); 9987 protocol.writeStructEnd(); 9988 } 9989 9990 @Override 9991 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 9992 Boolean result = null; 9993 ServiceRuntimeException ex1 = null; 9994 protocol.readStructBegin(); 9995 while (true) { 9996 FieldMetadata field = protocol.readFieldBegin(); 9997 if (field.typeId == TType.STOP) { 9998 break; 9999 } 10000 switch (field.fieldId) { 10001 case 0: { 10002 if (field.typeId == TType.BOOL) { 10003 boolean value = protocol.readBool(); 10004 result = value; 10005 } else { 10006 ProtocolUtil.skip(protocol, field.typeId); 10007 } 10008 } 10009 break; 10010 case 1: { 10011 if (field.typeId == TType.STRUCT) { 10012 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10013 ex1 = value; 10014 } else { 10015 ProtocolUtil.skip(protocol, field.typeId); 10016 } 10017 } 10018 break; 10019 default: ProtocolUtil.skip(protocol, field.typeId); break; 10020 } 10021 protocol.readFieldEnd(); 10022 } 10023 protocol.readStructEnd(); 10024 if (result != null) { 10025 return result; 10026 } else if (ex1 != null) { 10027 throw ex1; 10028 } else { 10029 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10030 } 10031 } 10032 } 10033 10034 private static final class IsValidRootTokenCall extends MethodCall<Boolean> { 10035 private final Token token; 10036 10037 IsValidRootTokenCall(Token token, ServiceMethodCallback<Boolean> callback) { 10038 super("isValidRootToken", TMessageType.CALL, callback); 10039 this.token = token; 10040 } 10041 10042 @Override 10043 protected void send(Protocol protocol) throws IOException { 10044 protocol.writeStructBegin("args"); 10045 if (this.token != null) { 10046 protocol.writeFieldBegin("token", 1, TType.STRUCT); 10047 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 10048 protocol.writeFieldEnd(); 10049 } 10050 protocol.writeFieldStop(); 10051 protocol.writeStructEnd(); 10052 } 10053 10054 @Override 10055 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10056 Boolean result = null; 10057 ServiceRuntimeException ex1 = null; 10058 protocol.readStructBegin(); 10059 while (true) { 10060 FieldMetadata field = protocol.readFieldBegin(); 10061 if (field.typeId == TType.STOP) { 10062 break; 10063 } 10064 switch (field.fieldId) { 10065 case 0: { 10066 if (field.typeId == TType.BOOL) { 10067 boolean value = protocol.readBool(); 10068 result = value; 10069 } else { 10070 ProtocolUtil.skip(protocol, field.typeId); 10071 } 10072 } 10073 break; 10074 case 1: { 10075 if (field.typeId == TType.STRUCT) { 10076 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10077 ex1 = value; 10078 } else { 10079 ProtocolUtil.skip(protocol, field.typeId); 10080 } 10081 } 10082 break; 10083 default: ProtocolUtil.skip(protocol, field.typeId); break; 10084 } 10085 protocol.readFieldEnd(); 10086 } 10087 protocol.readStructEnd(); 10088 if (result != null) { 10089 return result; 10090 } else if (ex1 != null) { 10091 throw ex1; 10092 } else { 10093 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10094 } 10095 } 10096 } 10097 10098 private static final class IsValidTokenCall extends MethodCall<Boolean> { 10099 private final Token token; 10100 10101 IsValidTokenCall(Token token, ServiceMethodCallback<Boolean> callback) { 10102 super("isValidToken", TMessageType.CALL, callback); 10103 this.token = token; 10104 } 10105 10106 @Override 10107 protected void send(Protocol protocol) throws IOException { 10108 protocol.writeStructBegin("args"); 10109 if (this.token != null) { 10110 protocol.writeFieldBegin("token", 1, TType.STRUCT); 10111 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 10112 protocol.writeFieldEnd(); 10113 } 10114 protocol.writeFieldStop(); 10115 protocol.writeStructEnd(); 10116 } 10117 10118 @Override 10119 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10120 Boolean result = null; 10121 ServiceRuntimeException ex1 = null; 10122 protocol.readStructBegin(); 10123 while (true) { 10124 FieldMetadata field = protocol.readFieldBegin(); 10125 if (field.typeId == TType.STOP) { 10126 break; 10127 } 10128 switch (field.fieldId) { 10129 case 0: { 10130 if (field.typeId == TType.BOOL) { 10131 boolean value = protocol.readBool(); 10132 result = value; 10133 } else { 10134 ProtocolUtil.skip(protocol, field.typeId); 10135 } 10136 } 10137 break; 10138 case 1: { 10139 if (field.typeId == TType.STRUCT) { 10140 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10141 ex1 = value; 10142 } else { 10143 ProtocolUtil.skip(protocol, field.typeId); 10144 } 10145 } 10146 break; 10147 default: ProtocolUtil.skip(protocol, field.typeId); break; 10148 } 10149 protocol.readFieldEnd(); 10150 } 10151 protocol.readStructEnd(); 10152 if (result != null) { 10153 return result; 10154 } else if (ex1 != null) { 10155 throw ex1; 10156 } else { 10157 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10158 } 10159 } 10160 } 10161 10162 private static final class IsValidUserTokenCall extends MethodCall<Boolean> { 10163 private final Token token; 10164 10165 IsValidUserTokenCall(Token token, ServiceMethodCallback<Boolean> callback) { 10166 super("isValidUserToken", TMessageType.CALL, callback); 10167 this.token = token; 10168 } 10169 10170 @Override 10171 protected void send(Protocol protocol) throws IOException { 10172 protocol.writeStructBegin("args"); 10173 if (this.token != null) { 10174 protocol.writeFieldBegin("token", 1, TType.STRUCT); 10175 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 10176 protocol.writeFieldEnd(); 10177 } 10178 protocol.writeFieldStop(); 10179 protocol.writeStructEnd(); 10180 } 10181 10182 @Override 10183 protected Boolean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10184 Boolean result = null; 10185 ServiceRuntimeException ex1 = null; 10186 protocol.readStructBegin(); 10187 while (true) { 10188 FieldMetadata field = protocol.readFieldBegin(); 10189 if (field.typeId == TType.STOP) { 10190 break; 10191 } 10192 switch (field.fieldId) { 10193 case 0: { 10194 if (field.typeId == TType.BOOL) { 10195 boolean value = protocol.readBool(); 10196 result = value; 10197 } else { 10198 ProtocolUtil.skip(protocol, field.typeId); 10199 } 10200 } 10201 break; 10202 case 1: { 10203 if (field.typeId == TType.STRUCT) { 10204 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10205 ex1 = value; 10206 } else { 10207 ProtocolUtil.skip(protocol, field.typeId); 10208 } 10209 } 10210 break; 10211 default: ProtocolUtil.skip(protocol, field.typeId); break; 10212 } 10213 protocol.readFieldEnd(); 10214 } 10215 protocol.readStructEnd(); 10216 if (result != null) { 10217 return result; 10218 } else if (ex1 != null) { 10219 throw ex1; 10220 } else { 10221 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10222 } 10223 } 10224 } 10225 10226 private static final class Iso8601TimeCall extends MethodCall<String> { 10227 Iso8601TimeCall(ServiceMethodCallback<String> callback) { 10228 super("iso8601Time", TMessageType.CALL, callback); 10229 } 10230 10231 @Override 10232 protected void send(Protocol protocol) throws IOException { 10233 protocol.writeStructBegin("args"); 10234 protocol.writeFieldStop(); 10235 protocol.writeStructEnd(); 10236 } 10237 10238 @Override 10239 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10240 String result = null; 10241 ServiceRuntimeException ex1 = null; 10242 protocol.readStructBegin(); 10243 while (true) { 10244 FieldMetadata field = protocol.readFieldBegin(); 10245 if (field.typeId == TType.STOP) { 10246 break; 10247 } 10248 switch (field.fieldId) { 10249 case 0: { 10250 if (field.typeId == TType.STRING) { 10251 String value = protocol.readString(); 10252 result = value; 10253 } else { 10254 ProtocolUtil.skip(protocol, field.typeId); 10255 } 10256 } 10257 break; 10258 case 1: { 10259 if (field.typeId == TType.STRUCT) { 10260 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10261 ex1 = value; 10262 } else { 10263 ProtocolUtil.skip(protocol, field.typeId); 10264 } 10265 } 10266 break; 10267 default: ProtocolUtil.skip(protocol, field.typeId); break; 10268 } 10269 protocol.readFieldEnd(); 10270 } 10271 protocol.readStructEnd(); 10272 if (result != null) { 10273 return result; 10274 } else if (ex1 != null) { 10275 throw ex1; 10276 } else { 10277 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10278 } 10279 } 10280 } 10281 10282 private static final class ListOfParentForDeviceGroupCall extends MethodCall<List<Integer>> { 10283 private final Integer deviceGroupId; 10284 10285 ListOfParentForDeviceGroupCall(Integer deviceGroupId, 10286 ServiceMethodCallback<List<Integer>> callback) { 10287 super("listOfParentForDeviceGroup", TMessageType.CALL, callback); 10288 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 10289 this.deviceGroupId = deviceGroupId; 10290 } 10291 10292 @Override 10293 protected void send(Protocol protocol) throws IOException { 10294 protocol.writeStructBegin("args"); 10295 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 10296 protocol.writeI32(this.deviceGroupId); 10297 protocol.writeFieldEnd(); 10298 protocol.writeFieldStop(); 10299 protocol.writeStructEnd(); 10300 } 10301 10302 @Override 10303 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10304 List<Integer> result = null; 10305 ServiceRuntimeException ex1 = null; 10306 protocol.readStructBegin(); 10307 while (true) { 10308 FieldMetadata field = protocol.readFieldBegin(); 10309 if (field.typeId == TType.STOP) { 10310 break; 10311 } 10312 switch (field.fieldId) { 10313 case 0: { 10314 if (field.typeId == TType.LIST) { 10315 ListMetadata listMetadata0 = protocol.readListBegin(); 10316 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 10317 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10318 int item0 = protocol.readI32(); 10319 value.add(item0); 10320 } 10321 protocol.readListEnd(); 10322 result = value; 10323 } else { 10324 ProtocolUtil.skip(protocol, field.typeId); 10325 } 10326 } 10327 break; 10328 case 1: { 10329 if (field.typeId == TType.STRUCT) { 10330 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10331 ex1 = value; 10332 } else { 10333 ProtocolUtil.skip(protocol, field.typeId); 10334 } 10335 } 10336 break; 10337 default: ProtocolUtil.skip(protocol, field.typeId); break; 10338 } 10339 protocol.readFieldEnd(); 10340 } 10341 protocol.readStructEnd(); 10342 if (result != null) { 10343 return result; 10344 } else if (ex1 != null) { 10345 throw ex1; 10346 } else { 10347 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10348 } 10349 } 10350 } 10351 10352 private static final class ListOfParentForPersonGroupCall extends MethodCall<List<Integer>> { 10353 private final Integer personGroupId; 10354 10355 ListOfParentForPersonGroupCall(Integer personGroupId, 10356 ServiceMethodCallback<List<Integer>> callback) { 10357 super("listOfParentForPersonGroup", TMessageType.CALL, callback); 10358 if (personGroupId == null) throw new NullPointerException("personGroupId"); 10359 this.personGroupId = personGroupId; 10360 } 10361 10362 @Override 10363 protected void send(Protocol protocol) throws IOException { 10364 protocol.writeStructBegin("args"); 10365 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 10366 protocol.writeI32(this.personGroupId); 10367 protocol.writeFieldEnd(); 10368 protocol.writeFieldStop(); 10369 protocol.writeStructEnd(); 10370 } 10371 10372 @Override 10373 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10374 List<Integer> result = null; 10375 ServiceRuntimeException ex1 = null; 10376 protocol.readStructBegin(); 10377 while (true) { 10378 FieldMetadata field = protocol.readFieldBegin(); 10379 if (field.typeId == TType.STOP) { 10380 break; 10381 } 10382 switch (field.fieldId) { 10383 case 0: { 10384 if (field.typeId == TType.LIST) { 10385 ListMetadata listMetadata0 = protocol.readListBegin(); 10386 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 10387 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10388 int item0 = protocol.readI32(); 10389 value.add(item0); 10390 } 10391 protocol.readListEnd(); 10392 result = value; 10393 } else { 10394 ProtocolUtil.skip(protocol, field.typeId); 10395 } 10396 } 10397 break; 10398 case 1: { 10399 if (field.typeId == TType.STRUCT) { 10400 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10401 ex1 = value; 10402 } else { 10403 ProtocolUtil.skip(protocol, field.typeId); 10404 } 10405 } 10406 break; 10407 default: ProtocolUtil.skip(protocol, field.typeId); break; 10408 } 10409 protocol.readFieldEnd(); 10410 } 10411 protocol.readStructEnd(); 10412 if (result != null) { 10413 return result; 10414 } else if (ex1 != null) { 10415 throw ex1; 10416 } else { 10417 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10418 } 10419 } 10420 } 10421 10422 private static final class LoadAllPersonCall extends MethodCall<List<Integer>> { 10423 LoadAllPersonCall(ServiceMethodCallback<List<Integer>> callback) { 10424 super("loadAllPerson", TMessageType.CALL, callback); 10425 } 10426 10427 @Override 10428 protected void send(Protocol protocol) throws IOException { 10429 protocol.writeStructBegin("args"); 10430 protocol.writeFieldStop(); 10431 protocol.writeStructEnd(); 10432 } 10433 10434 @Override 10435 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10436 List<Integer> result = null; 10437 ServiceRuntimeException ex1 = null; 10438 protocol.readStructBegin(); 10439 while (true) { 10440 FieldMetadata field = protocol.readFieldBegin(); 10441 if (field.typeId == TType.STOP) { 10442 break; 10443 } 10444 switch (field.fieldId) { 10445 case 0: { 10446 if (field.typeId == TType.LIST) { 10447 ListMetadata listMetadata0 = protocol.readListBegin(); 10448 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 10449 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10450 int item0 = protocol.readI32(); 10451 value.add(item0); 10452 } 10453 protocol.readListEnd(); 10454 result = value; 10455 } else { 10456 ProtocolUtil.skip(protocol, field.typeId); 10457 } 10458 } 10459 break; 10460 case 1: { 10461 if (field.typeId == TType.STRUCT) { 10462 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10463 ex1 = value; 10464 } else { 10465 ProtocolUtil.skip(protocol, field.typeId); 10466 } 10467 } 10468 break; 10469 default: ProtocolUtil.skip(protocol, field.typeId); break; 10470 } 10471 protocol.readFieldEnd(); 10472 } 10473 protocol.readStructEnd(); 10474 if (result != null) { 10475 return result; 10476 } else if (ex1 != null) { 10477 throw ex1; 10478 } else { 10479 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10480 } 10481 } 10482 } 10483 10484 private static final class LoadDeviceByWhereCall extends MethodCall<List<DeviceBean>> { 10485 private final String where; 10486 10487 private final Integer startRow; 10488 10489 private final Integer numRows; 10490 10491 LoadDeviceByWhereCall(String where, Integer startRow, Integer numRows, 10492 ServiceMethodCallback<List<DeviceBean>> callback) { 10493 super("loadDeviceByWhere", TMessageType.CALL, callback); 10494 this.where = where; 10495 if (startRow == null) throw new NullPointerException("startRow"); 10496 this.startRow = startRow; 10497 if (numRows == null) throw new NullPointerException("numRows"); 10498 this.numRows = numRows; 10499 } 10500 10501 @Override 10502 protected void send(Protocol protocol) throws IOException { 10503 protocol.writeStructBegin("args"); 10504 if (this.where != null) { 10505 protocol.writeFieldBegin("where", 1, TType.STRING); 10506 protocol.writeString(this.where); 10507 protocol.writeFieldEnd(); 10508 } 10509 protocol.writeFieldBegin("startRow", 2, TType.I32); 10510 protocol.writeI32(this.startRow); 10511 protocol.writeFieldEnd(); 10512 protocol.writeFieldBegin("numRows", 3, TType.I32); 10513 protocol.writeI32(this.numRows); 10514 protocol.writeFieldEnd(); 10515 protocol.writeFieldStop(); 10516 protocol.writeStructEnd(); 10517 } 10518 10519 @Override 10520 protected List<DeviceBean> receive(Protocol protocol, MessageMetadata metadata) throws 10521 Exception { 10522 List<DeviceBean> result = null; 10523 ServiceRuntimeException ex1 = null; 10524 protocol.readStructBegin(); 10525 while (true) { 10526 FieldMetadata field = protocol.readFieldBegin(); 10527 if (field.typeId == TType.STOP) { 10528 break; 10529 } 10530 switch (field.fieldId) { 10531 case 0: { 10532 if (field.typeId == TType.LIST) { 10533 ListMetadata listMetadata0 = protocol.readListBegin(); 10534 List<DeviceBean> value = new ArrayList<DeviceBean>(listMetadata0.size); 10535 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10536 net.gdface.facelog.client.thrift.DeviceBean item0 = net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.read(protocol); 10537 value.add(item0); 10538 } 10539 protocol.readListEnd(); 10540 result = value; 10541 } else { 10542 ProtocolUtil.skip(protocol, field.typeId); 10543 } 10544 } 10545 break; 10546 case 1: { 10547 if (field.typeId == TType.STRUCT) { 10548 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10549 ex1 = value; 10550 } else { 10551 ProtocolUtil.skip(protocol, field.typeId); 10552 } 10553 } 10554 break; 10555 default: ProtocolUtil.skip(protocol, field.typeId); break; 10556 } 10557 protocol.readFieldEnd(); 10558 } 10559 protocol.readStructEnd(); 10560 if (result != null) { 10561 return result; 10562 } else if (ex1 != null) { 10563 throw ex1; 10564 } else { 10565 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10566 } 10567 } 10568 } 10569 10570 private static final class LoadDeviceGroupByWhereCall extends MethodCall<List<Integer>> { 10571 private final String where; 10572 10573 private final Integer startRow; 10574 10575 private final Integer numRows; 10576 10577 LoadDeviceGroupByWhereCall(String where, Integer startRow, Integer numRows, 10578 ServiceMethodCallback<List<Integer>> callback) { 10579 super("loadDeviceGroupByWhere", TMessageType.CALL, callback); 10580 this.where = where; 10581 if (startRow == null) throw new NullPointerException("startRow"); 10582 this.startRow = startRow; 10583 if (numRows == null) throw new NullPointerException("numRows"); 10584 this.numRows = numRows; 10585 } 10586 10587 @Override 10588 protected void send(Protocol protocol) throws IOException { 10589 protocol.writeStructBegin("args"); 10590 if (this.where != null) { 10591 protocol.writeFieldBegin("where", 1, TType.STRING); 10592 protocol.writeString(this.where); 10593 protocol.writeFieldEnd(); 10594 } 10595 protocol.writeFieldBegin("startRow", 2, TType.I32); 10596 protocol.writeI32(this.startRow); 10597 protocol.writeFieldEnd(); 10598 protocol.writeFieldBegin("numRows", 3, TType.I32); 10599 protocol.writeI32(this.numRows); 10600 protocol.writeFieldEnd(); 10601 protocol.writeFieldStop(); 10602 protocol.writeStructEnd(); 10603 } 10604 10605 @Override 10606 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10607 List<Integer> result = null; 10608 ServiceRuntimeException ex1 = null; 10609 protocol.readStructBegin(); 10610 while (true) { 10611 FieldMetadata field = protocol.readFieldBegin(); 10612 if (field.typeId == TType.STOP) { 10613 break; 10614 } 10615 switch (field.fieldId) { 10616 case 0: { 10617 if (field.typeId == TType.LIST) { 10618 ListMetadata listMetadata0 = protocol.readListBegin(); 10619 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 10620 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10621 int item0 = protocol.readI32(); 10622 value.add(item0); 10623 } 10624 protocol.readListEnd(); 10625 result = value; 10626 } else { 10627 ProtocolUtil.skip(protocol, field.typeId); 10628 } 10629 } 10630 break; 10631 case 1: { 10632 if (field.typeId == TType.STRUCT) { 10633 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10634 ex1 = value; 10635 } else { 10636 ProtocolUtil.skip(protocol, field.typeId); 10637 } 10638 } 10639 break; 10640 default: ProtocolUtil.skip(protocol, field.typeId); break; 10641 } 10642 protocol.readFieldEnd(); 10643 } 10644 protocol.readStructEnd(); 10645 if (result != null) { 10646 return result; 10647 } else if (ex1 != null) { 10648 throw ex1; 10649 } else { 10650 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10651 } 10652 } 10653 } 10654 10655 private static final class LoadDeviceGroupIdByWhereCall extends MethodCall<List<Integer>> { 10656 private final String where; 10657 10658 LoadDeviceGroupIdByWhereCall(String where, ServiceMethodCallback<List<Integer>> callback) { 10659 super("loadDeviceGroupIdByWhere", TMessageType.CALL, callback); 10660 this.where = where; 10661 } 10662 10663 @Override 10664 protected void send(Protocol protocol) throws IOException { 10665 protocol.writeStructBegin("args"); 10666 if (this.where != null) { 10667 protocol.writeFieldBegin("where", 1, TType.STRING); 10668 protocol.writeString(this.where); 10669 protocol.writeFieldEnd(); 10670 } 10671 protocol.writeFieldStop(); 10672 protocol.writeStructEnd(); 10673 } 10674 10675 @Override 10676 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10677 List<Integer> result = null; 10678 ServiceRuntimeException ex1 = null; 10679 protocol.readStructBegin(); 10680 while (true) { 10681 FieldMetadata field = protocol.readFieldBegin(); 10682 if (field.typeId == TType.STOP) { 10683 break; 10684 } 10685 switch (field.fieldId) { 10686 case 0: { 10687 if (field.typeId == TType.LIST) { 10688 ListMetadata listMetadata0 = protocol.readListBegin(); 10689 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 10690 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10691 int item0 = protocol.readI32(); 10692 value.add(item0); 10693 } 10694 protocol.readListEnd(); 10695 result = value; 10696 } else { 10697 ProtocolUtil.skip(protocol, field.typeId); 10698 } 10699 } 10700 break; 10701 case 1: { 10702 if (field.typeId == TType.STRUCT) { 10703 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10704 ex1 = value; 10705 } else { 10706 ProtocolUtil.skip(protocol, field.typeId); 10707 } 10708 } 10709 break; 10710 default: ProtocolUtil.skip(protocol, field.typeId); break; 10711 } 10712 protocol.readFieldEnd(); 10713 } 10714 protocol.readStructEnd(); 10715 if (result != null) { 10716 return result; 10717 } else if (ex1 != null) { 10718 throw ex1; 10719 } else { 10720 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10721 } 10722 } 10723 } 10724 10725 private static final class LoadDeviceIdByWhereCall extends MethodCall<List<Integer>> { 10726 private final String where; 10727 10728 LoadDeviceIdByWhereCall(String where, ServiceMethodCallback<List<Integer>> callback) { 10729 super("loadDeviceIdByWhere", TMessageType.CALL, callback); 10730 this.where = where; 10731 } 10732 10733 @Override 10734 protected void send(Protocol protocol) throws IOException { 10735 protocol.writeStructBegin("args"); 10736 if (this.where != null) { 10737 protocol.writeFieldBegin("where", 1, TType.STRING); 10738 protocol.writeString(this.where); 10739 protocol.writeFieldEnd(); 10740 } 10741 protocol.writeFieldStop(); 10742 protocol.writeStructEnd(); 10743 } 10744 10745 @Override 10746 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10747 List<Integer> result = null; 10748 ServiceRuntimeException ex1 = null; 10749 protocol.readStructBegin(); 10750 while (true) { 10751 FieldMetadata field = protocol.readFieldBegin(); 10752 if (field.typeId == TType.STOP) { 10753 break; 10754 } 10755 switch (field.fieldId) { 10756 case 0: { 10757 if (field.typeId == TType.LIST) { 10758 ListMetadata listMetadata0 = protocol.readListBegin(); 10759 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 10760 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10761 int item0 = protocol.readI32(); 10762 value.add(item0); 10763 } 10764 protocol.readListEnd(); 10765 result = value; 10766 } else { 10767 ProtocolUtil.skip(protocol, field.typeId); 10768 } 10769 } 10770 break; 10771 case 1: { 10772 if (field.typeId == TType.STRUCT) { 10773 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10774 ex1 = value; 10775 } else { 10776 ProtocolUtil.skip(protocol, field.typeId); 10777 } 10778 } 10779 break; 10780 default: ProtocolUtil.skip(protocol, field.typeId); break; 10781 } 10782 protocol.readFieldEnd(); 10783 } 10784 protocol.readStructEnd(); 10785 if (result != null) { 10786 return result; 10787 } else if (ex1 != null) { 10788 throw ex1; 10789 } else { 10790 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10791 } 10792 } 10793 } 10794 10795 private static final class LoadDistinctIntegerColumnCall extends MethodCall<List<Integer>> { 10796 private final String table; 10797 10798 private final String column; 10799 10800 private final String where; 10801 10802 LoadDistinctIntegerColumnCall(String table, String column, String where, 10803 ServiceMethodCallback<List<Integer>> callback) { 10804 super("loadDistinctIntegerColumn", TMessageType.CALL, callback); 10805 this.table = table; 10806 this.column = column; 10807 this.where = where; 10808 } 10809 10810 @Override 10811 protected void send(Protocol protocol) throws IOException { 10812 protocol.writeStructBegin("args"); 10813 if (this.table != null) { 10814 protocol.writeFieldBegin("table", 1, TType.STRING); 10815 protocol.writeString(this.table); 10816 protocol.writeFieldEnd(); 10817 } 10818 if (this.column != null) { 10819 protocol.writeFieldBegin("column", 2, TType.STRING); 10820 protocol.writeString(this.column); 10821 protocol.writeFieldEnd(); 10822 } 10823 if (this.where != null) { 10824 protocol.writeFieldBegin("where", 3, TType.STRING); 10825 protocol.writeString(this.where); 10826 protocol.writeFieldEnd(); 10827 } 10828 protocol.writeFieldStop(); 10829 protocol.writeStructEnd(); 10830 } 10831 10832 @Override 10833 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10834 List<Integer> result = null; 10835 ServiceRuntimeException ex1 = null; 10836 protocol.readStructBegin(); 10837 while (true) { 10838 FieldMetadata field = protocol.readFieldBegin(); 10839 if (field.typeId == TType.STOP) { 10840 break; 10841 } 10842 switch (field.fieldId) { 10843 case 0: { 10844 if (field.typeId == TType.LIST) { 10845 ListMetadata listMetadata0 = protocol.readListBegin(); 10846 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 10847 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10848 int item0 = protocol.readI32(); 10849 value.add(item0); 10850 } 10851 protocol.readListEnd(); 10852 result = value; 10853 } else { 10854 ProtocolUtil.skip(protocol, field.typeId); 10855 } 10856 } 10857 break; 10858 case 1: { 10859 if (field.typeId == TType.STRUCT) { 10860 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10861 ex1 = value; 10862 } else { 10863 ProtocolUtil.skip(protocol, field.typeId); 10864 } 10865 } 10866 break; 10867 default: ProtocolUtil.skip(protocol, field.typeId); break; 10868 } 10869 protocol.readFieldEnd(); 10870 } 10871 protocol.readStructEnd(); 10872 if (result != null) { 10873 return result; 10874 } else if (ex1 != null) { 10875 throw ex1; 10876 } else { 10877 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10878 } 10879 } 10880 } 10881 10882 private static final class LoadDistinctStringColumnCall extends MethodCall<List<String>> { 10883 private final String table; 10884 10885 private final String column; 10886 10887 private final String where; 10888 10889 LoadDistinctStringColumnCall(String table, String column, String where, 10890 ServiceMethodCallback<List<String>> callback) { 10891 super("loadDistinctStringColumn", TMessageType.CALL, callback); 10892 this.table = table; 10893 this.column = column; 10894 this.where = where; 10895 } 10896 10897 @Override 10898 protected void send(Protocol protocol) throws IOException { 10899 protocol.writeStructBegin("args"); 10900 if (this.table != null) { 10901 protocol.writeFieldBegin("table", 1, TType.STRING); 10902 protocol.writeString(this.table); 10903 protocol.writeFieldEnd(); 10904 } 10905 if (this.column != null) { 10906 protocol.writeFieldBegin("column", 2, TType.STRING); 10907 protocol.writeString(this.column); 10908 protocol.writeFieldEnd(); 10909 } 10910 if (this.where != null) { 10911 protocol.writeFieldBegin("where", 3, TType.STRING); 10912 protocol.writeString(this.where); 10913 protocol.writeFieldEnd(); 10914 } 10915 protocol.writeFieldStop(); 10916 protocol.writeStructEnd(); 10917 } 10918 10919 @Override 10920 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 10921 List<String> result = null; 10922 ServiceRuntimeException ex1 = null; 10923 protocol.readStructBegin(); 10924 while (true) { 10925 FieldMetadata field = protocol.readFieldBegin(); 10926 if (field.typeId == TType.STOP) { 10927 break; 10928 } 10929 switch (field.fieldId) { 10930 case 0: { 10931 if (field.typeId == TType.LIST) { 10932 ListMetadata listMetadata0 = protocol.readListBegin(); 10933 List<String> value = new ArrayList<String>(listMetadata0.size); 10934 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 10935 String item0 = protocol.readString(); 10936 value.add(item0); 10937 } 10938 protocol.readListEnd(); 10939 result = value; 10940 } else { 10941 ProtocolUtil.skip(protocol, field.typeId); 10942 } 10943 } 10944 break; 10945 case 1: { 10946 if (field.typeId == TType.STRUCT) { 10947 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 10948 ex1 = value; 10949 } else { 10950 ProtocolUtil.skip(protocol, field.typeId); 10951 } 10952 } 10953 break; 10954 default: ProtocolUtil.skip(protocol, field.typeId); break; 10955 } 10956 protocol.readFieldEnd(); 10957 } 10958 protocol.readStructEnd(); 10959 if (result != null) { 10960 return result; 10961 } else if (ex1 != null) { 10962 throw ex1; 10963 } else { 10964 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 10965 } 10966 } 10967 } 10968 10969 private static final class LoadErrorLogByWhereCall extends MethodCall<List<ErrorLogBean>> { 10970 private final String where; 10971 10972 private final Integer startRow; 10973 10974 private final Integer numRows; 10975 10976 LoadErrorLogByWhereCall(String where, Integer startRow, Integer numRows, 10977 ServiceMethodCallback<List<ErrorLogBean>> callback) { 10978 super("loadErrorLogByWhere", TMessageType.CALL, callback); 10979 this.where = where; 10980 if (startRow == null) throw new NullPointerException("startRow"); 10981 this.startRow = startRow; 10982 if (numRows == null) throw new NullPointerException("numRows"); 10983 this.numRows = numRows; 10984 } 10985 10986 @Override 10987 protected void send(Protocol protocol) throws IOException { 10988 protocol.writeStructBegin("args"); 10989 if (this.where != null) { 10990 protocol.writeFieldBegin("where", 1, TType.STRING); 10991 protocol.writeString(this.where); 10992 protocol.writeFieldEnd(); 10993 } 10994 protocol.writeFieldBegin("startRow", 2, TType.I32); 10995 protocol.writeI32(this.startRow); 10996 protocol.writeFieldEnd(); 10997 protocol.writeFieldBegin("numRows", 3, TType.I32); 10998 protocol.writeI32(this.numRows); 10999 protocol.writeFieldEnd(); 11000 protocol.writeFieldStop(); 11001 protocol.writeStructEnd(); 11002 } 11003 11004 @Override 11005 protected List<ErrorLogBean> receive(Protocol protocol, MessageMetadata metadata) throws 11006 Exception { 11007 List<ErrorLogBean> result = null; 11008 ServiceRuntimeException ex1 = null; 11009 protocol.readStructBegin(); 11010 while (true) { 11011 FieldMetadata field = protocol.readFieldBegin(); 11012 if (field.typeId == TType.STOP) { 11013 break; 11014 } 11015 switch (field.fieldId) { 11016 case 0: { 11017 if (field.typeId == TType.LIST) { 11018 ListMetadata listMetadata0 = protocol.readListBegin(); 11019 List<ErrorLogBean> value = new ArrayList<ErrorLogBean>(listMetadata0.size); 11020 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11021 net.gdface.facelog.client.thrift.ErrorLogBean item0 = net.gdface.facelog.client.thrift.ErrorLogBean.ADAPTER.read(protocol); 11022 value.add(item0); 11023 } 11024 protocol.readListEnd(); 11025 result = value; 11026 } else { 11027 ProtocolUtil.skip(protocol, field.typeId); 11028 } 11029 } 11030 break; 11031 case 1: { 11032 if (field.typeId == TType.STRUCT) { 11033 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11034 ex1 = value; 11035 } else { 11036 ProtocolUtil.skip(protocol, field.typeId); 11037 } 11038 } 11039 break; 11040 default: ProtocolUtil.skip(protocol, field.typeId); break; 11041 } 11042 protocol.readFieldEnd(); 11043 } 11044 protocol.readStructEnd(); 11045 if (result != null) { 11046 return result; 11047 } else if (ex1 != null) { 11048 throw ex1; 11049 } else { 11050 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11051 } 11052 } 11053 } 11054 11055 private static final class LoadFeatureMd5ByUpdateCall extends MethodCall<List<String>> { 11056 private final Long timestamp; 11057 11058 LoadFeatureMd5ByUpdateCall(Long timestamp, ServiceMethodCallback<List<String>> callback) { 11059 super("loadFeatureMd5ByUpdate", TMessageType.CALL, callback); 11060 if (timestamp == null) throw new NullPointerException("timestamp"); 11061 this.timestamp = timestamp; 11062 } 11063 11064 @Override 11065 protected void send(Protocol protocol) throws IOException { 11066 protocol.writeStructBegin("args"); 11067 protocol.writeFieldBegin("timestamp", 1, TType.I64); 11068 protocol.writeI64(this.timestamp); 11069 protocol.writeFieldEnd(); 11070 protocol.writeFieldStop(); 11071 protocol.writeStructEnd(); 11072 } 11073 11074 @Override 11075 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 11076 List<String> result = null; 11077 ServiceRuntimeException ex1 = null; 11078 protocol.readStructBegin(); 11079 while (true) { 11080 FieldMetadata field = protocol.readFieldBegin(); 11081 if (field.typeId == TType.STOP) { 11082 break; 11083 } 11084 switch (field.fieldId) { 11085 case 0: { 11086 if (field.typeId == TType.LIST) { 11087 ListMetadata listMetadata0 = protocol.readListBegin(); 11088 List<String> value = new ArrayList<String>(listMetadata0.size); 11089 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11090 String item0 = protocol.readString(); 11091 value.add(item0); 11092 } 11093 protocol.readListEnd(); 11094 result = value; 11095 } else { 11096 ProtocolUtil.skip(protocol, field.typeId); 11097 } 11098 } 11099 break; 11100 case 1: { 11101 if (field.typeId == TType.STRUCT) { 11102 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11103 ex1 = value; 11104 } else { 11105 ProtocolUtil.skip(protocol, field.typeId); 11106 } 11107 } 11108 break; 11109 default: ProtocolUtil.skip(protocol, field.typeId); break; 11110 } 11111 protocol.readFieldEnd(); 11112 } 11113 protocol.readStructEnd(); 11114 if (result != null) { 11115 return result; 11116 } else if (ex1 != null) { 11117 throw ex1; 11118 } else { 11119 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11120 } 11121 } 11122 } 11123 11124 private static final class LoadFeatureMd5ByUpdateTimeStrCall extends MethodCall<List<String>> { 11125 private final String timestamp; 11126 11127 LoadFeatureMd5ByUpdateTimeStrCall(String timestamp, 11128 ServiceMethodCallback<List<String>> callback) { 11129 super("loadFeatureMd5ByUpdateTimeStr", TMessageType.CALL, callback); 11130 this.timestamp = timestamp; 11131 } 11132 11133 @Override 11134 protected void send(Protocol protocol) throws IOException { 11135 protocol.writeStructBegin("args"); 11136 if (this.timestamp != null) { 11137 protocol.writeFieldBegin("timestamp", 1, TType.STRING); 11138 protocol.writeString(this.timestamp); 11139 protocol.writeFieldEnd(); 11140 } 11141 protocol.writeFieldStop(); 11142 protocol.writeStructEnd(); 11143 } 11144 11145 @Override 11146 protected List<String> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 11147 List<String> result = null; 11148 ServiceRuntimeException ex1 = null; 11149 protocol.readStructBegin(); 11150 while (true) { 11151 FieldMetadata field = protocol.readFieldBegin(); 11152 if (field.typeId == TType.STOP) { 11153 break; 11154 } 11155 switch (field.fieldId) { 11156 case 0: { 11157 if (field.typeId == TType.LIST) { 11158 ListMetadata listMetadata0 = protocol.readListBegin(); 11159 List<String> value = new ArrayList<String>(listMetadata0.size); 11160 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11161 String item0 = protocol.readString(); 11162 value.add(item0); 11163 } 11164 protocol.readListEnd(); 11165 result = value; 11166 } else { 11167 ProtocolUtil.skip(protocol, field.typeId); 11168 } 11169 } 11170 break; 11171 case 1: { 11172 if (field.typeId == TType.STRUCT) { 11173 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11174 ex1 = value; 11175 } else { 11176 ProtocolUtil.skip(protocol, field.typeId); 11177 } 11178 } 11179 break; 11180 default: ProtocolUtil.skip(protocol, field.typeId); break; 11181 } 11182 protocol.readFieldEnd(); 11183 } 11184 protocol.readStructEnd(); 11185 if (result != null) { 11186 return result; 11187 } else if (ex1 != null) { 11188 throw ex1; 11189 } else { 11190 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11191 } 11192 } 11193 } 11194 11195 private static final class LoadLogByWhereCall extends MethodCall<List<LogBean>> { 11196 private final String where; 11197 11198 private final Integer startRow; 11199 11200 private final Integer numRows; 11201 11202 LoadLogByWhereCall(String where, Integer startRow, Integer numRows, 11203 ServiceMethodCallback<List<LogBean>> callback) { 11204 super("loadLogByWhere", TMessageType.CALL, callback); 11205 this.where = where; 11206 if (startRow == null) throw new NullPointerException("startRow"); 11207 this.startRow = startRow; 11208 if (numRows == null) throw new NullPointerException("numRows"); 11209 this.numRows = numRows; 11210 } 11211 11212 @Override 11213 protected void send(Protocol protocol) throws IOException { 11214 protocol.writeStructBegin("args"); 11215 if (this.where != null) { 11216 protocol.writeFieldBegin("where", 1, TType.STRING); 11217 protocol.writeString(this.where); 11218 protocol.writeFieldEnd(); 11219 } 11220 protocol.writeFieldBegin("startRow", 2, TType.I32); 11221 protocol.writeI32(this.startRow); 11222 protocol.writeFieldEnd(); 11223 protocol.writeFieldBegin("numRows", 3, TType.I32); 11224 protocol.writeI32(this.numRows); 11225 protocol.writeFieldEnd(); 11226 protocol.writeFieldStop(); 11227 protocol.writeStructEnd(); 11228 } 11229 11230 @Override 11231 protected List<LogBean> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 11232 List<LogBean> result = null; 11233 ServiceRuntimeException ex1 = null; 11234 protocol.readStructBegin(); 11235 while (true) { 11236 FieldMetadata field = protocol.readFieldBegin(); 11237 if (field.typeId == TType.STOP) { 11238 break; 11239 } 11240 switch (field.fieldId) { 11241 case 0: { 11242 if (field.typeId == TType.LIST) { 11243 ListMetadata listMetadata0 = protocol.readListBegin(); 11244 List<LogBean> value = new ArrayList<LogBean>(listMetadata0.size); 11245 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11246 net.gdface.facelog.client.thrift.LogBean item0 = net.gdface.facelog.client.thrift.LogBean.ADAPTER.read(protocol); 11247 value.add(item0); 11248 } 11249 protocol.readListEnd(); 11250 result = value; 11251 } else { 11252 ProtocolUtil.skip(protocol, field.typeId); 11253 } 11254 } 11255 break; 11256 case 1: { 11257 if (field.typeId == TType.STRUCT) { 11258 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11259 ex1 = value; 11260 } else { 11261 ProtocolUtil.skip(protocol, field.typeId); 11262 } 11263 } 11264 break; 11265 default: ProtocolUtil.skip(protocol, field.typeId); break; 11266 } 11267 protocol.readFieldEnd(); 11268 } 11269 protocol.readStructEnd(); 11270 if (result != null) { 11271 return result; 11272 } else if (ex1 != null) { 11273 throw ex1; 11274 } else { 11275 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11276 } 11277 } 11278 } 11279 11280 private static final class LoadLogLightByVerifyTimeCall extends MethodCall<List<LogLightBean>> { 11281 private final Long timestamp; 11282 11283 private final Integer startRow; 11284 11285 private final Integer numRows; 11286 11287 LoadLogLightByVerifyTimeCall(Long timestamp, Integer startRow, Integer numRows, 11288 ServiceMethodCallback<List<LogLightBean>> callback) { 11289 super("loadLogLightByVerifyTime", TMessageType.CALL, callback); 11290 if (timestamp == null) throw new NullPointerException("timestamp"); 11291 this.timestamp = timestamp; 11292 if (startRow == null) throw new NullPointerException("startRow"); 11293 this.startRow = startRow; 11294 if (numRows == null) throw new NullPointerException("numRows"); 11295 this.numRows = numRows; 11296 } 11297 11298 @Override 11299 protected void send(Protocol protocol) throws IOException { 11300 protocol.writeStructBegin("args"); 11301 protocol.writeFieldBegin("timestamp", 1, TType.I64); 11302 protocol.writeI64(this.timestamp); 11303 protocol.writeFieldEnd(); 11304 protocol.writeFieldBegin("startRow", 2, TType.I32); 11305 protocol.writeI32(this.startRow); 11306 protocol.writeFieldEnd(); 11307 protocol.writeFieldBegin("numRows", 3, TType.I32); 11308 protocol.writeI32(this.numRows); 11309 protocol.writeFieldEnd(); 11310 protocol.writeFieldStop(); 11311 protocol.writeStructEnd(); 11312 } 11313 11314 @Override 11315 protected List<LogLightBean> receive(Protocol protocol, MessageMetadata metadata) throws 11316 Exception { 11317 List<LogLightBean> result = null; 11318 ServiceRuntimeException ex1 = null; 11319 protocol.readStructBegin(); 11320 while (true) { 11321 FieldMetadata field = protocol.readFieldBegin(); 11322 if (field.typeId == TType.STOP) { 11323 break; 11324 } 11325 switch (field.fieldId) { 11326 case 0: { 11327 if (field.typeId == TType.LIST) { 11328 ListMetadata listMetadata0 = protocol.readListBegin(); 11329 List<LogLightBean> value = new ArrayList<LogLightBean>(listMetadata0.size); 11330 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11331 net.gdface.facelog.client.thrift.LogLightBean item0 = net.gdface.facelog.client.thrift.LogLightBean.ADAPTER.read(protocol); 11332 value.add(item0); 11333 } 11334 protocol.readListEnd(); 11335 result = value; 11336 } else { 11337 ProtocolUtil.skip(protocol, field.typeId); 11338 } 11339 } 11340 break; 11341 case 1: { 11342 if (field.typeId == TType.STRUCT) { 11343 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11344 ex1 = value; 11345 } else { 11346 ProtocolUtil.skip(protocol, field.typeId); 11347 } 11348 } 11349 break; 11350 default: ProtocolUtil.skip(protocol, field.typeId); break; 11351 } 11352 protocol.readFieldEnd(); 11353 } 11354 protocol.readStructEnd(); 11355 if (result != null) { 11356 return result; 11357 } else if (ex1 != null) { 11358 throw ex1; 11359 } else { 11360 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11361 } 11362 } 11363 } 11364 11365 private static final class LoadLogLightByVerifyTimeTimestrCall extends MethodCall<List<LogLightBean>> { 11366 private final String timestamp; 11367 11368 private final Integer startRow; 11369 11370 private final Integer numRows; 11371 11372 LoadLogLightByVerifyTimeTimestrCall(String timestamp, Integer startRow, Integer numRows, 11373 ServiceMethodCallback<List<LogLightBean>> callback) { 11374 super("loadLogLightByVerifyTimeTimestr", TMessageType.CALL, callback); 11375 this.timestamp = timestamp; 11376 if (startRow == null) throw new NullPointerException("startRow"); 11377 this.startRow = startRow; 11378 if (numRows == null) throw new NullPointerException("numRows"); 11379 this.numRows = numRows; 11380 } 11381 11382 @Override 11383 protected void send(Protocol protocol) throws IOException { 11384 protocol.writeStructBegin("args"); 11385 if (this.timestamp != null) { 11386 protocol.writeFieldBegin("timestamp", 1, TType.STRING); 11387 protocol.writeString(this.timestamp); 11388 protocol.writeFieldEnd(); 11389 } 11390 protocol.writeFieldBegin("startRow", 2, TType.I32); 11391 protocol.writeI32(this.startRow); 11392 protocol.writeFieldEnd(); 11393 protocol.writeFieldBegin("numRows", 3, TType.I32); 11394 protocol.writeI32(this.numRows); 11395 protocol.writeFieldEnd(); 11396 protocol.writeFieldStop(); 11397 protocol.writeStructEnd(); 11398 } 11399 11400 @Override 11401 protected List<LogLightBean> receive(Protocol protocol, MessageMetadata metadata) throws 11402 Exception { 11403 List<LogLightBean> result = null; 11404 ServiceRuntimeException ex1 = null; 11405 protocol.readStructBegin(); 11406 while (true) { 11407 FieldMetadata field = protocol.readFieldBegin(); 11408 if (field.typeId == TType.STOP) { 11409 break; 11410 } 11411 switch (field.fieldId) { 11412 case 0: { 11413 if (field.typeId == TType.LIST) { 11414 ListMetadata listMetadata0 = protocol.readListBegin(); 11415 List<LogLightBean> value = new ArrayList<LogLightBean>(listMetadata0.size); 11416 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11417 net.gdface.facelog.client.thrift.LogLightBean item0 = net.gdface.facelog.client.thrift.LogLightBean.ADAPTER.read(protocol); 11418 value.add(item0); 11419 } 11420 protocol.readListEnd(); 11421 result = value; 11422 } else { 11423 ProtocolUtil.skip(protocol, field.typeId); 11424 } 11425 } 11426 break; 11427 case 1: { 11428 if (field.typeId == TType.STRUCT) { 11429 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11430 ex1 = value; 11431 } else { 11432 ProtocolUtil.skip(protocol, field.typeId); 11433 } 11434 } 11435 break; 11436 default: ProtocolUtil.skip(protocol, field.typeId); break; 11437 } 11438 protocol.readFieldEnd(); 11439 } 11440 protocol.readStructEnd(); 11441 if (result != null) { 11442 return result; 11443 } else if (ex1 != null) { 11444 throw ex1; 11445 } else { 11446 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11447 } 11448 } 11449 } 11450 11451 private static final class LoadLogLightByWhereCall extends MethodCall<List<LogLightBean>> { 11452 private final String where; 11453 11454 private final Integer startRow; 11455 11456 private final Integer numRows; 11457 11458 LoadLogLightByWhereCall(String where, Integer startRow, Integer numRows, 11459 ServiceMethodCallback<List<LogLightBean>> callback) { 11460 super("loadLogLightByWhere", TMessageType.CALL, callback); 11461 this.where = where; 11462 if (startRow == null) throw new NullPointerException("startRow"); 11463 this.startRow = startRow; 11464 if (numRows == null) throw new NullPointerException("numRows"); 11465 this.numRows = numRows; 11466 } 11467 11468 @Override 11469 protected void send(Protocol protocol) throws IOException { 11470 protocol.writeStructBegin("args"); 11471 if (this.where != null) { 11472 protocol.writeFieldBegin("where", 1, TType.STRING); 11473 protocol.writeString(this.where); 11474 protocol.writeFieldEnd(); 11475 } 11476 protocol.writeFieldBegin("startRow", 2, TType.I32); 11477 protocol.writeI32(this.startRow); 11478 protocol.writeFieldEnd(); 11479 protocol.writeFieldBegin("numRows", 3, TType.I32); 11480 protocol.writeI32(this.numRows); 11481 protocol.writeFieldEnd(); 11482 protocol.writeFieldStop(); 11483 protocol.writeStructEnd(); 11484 } 11485 11486 @Override 11487 protected List<LogLightBean> receive(Protocol protocol, MessageMetadata metadata) throws 11488 Exception { 11489 List<LogLightBean> result = null; 11490 ServiceRuntimeException ex1 = null; 11491 protocol.readStructBegin(); 11492 while (true) { 11493 FieldMetadata field = protocol.readFieldBegin(); 11494 if (field.typeId == TType.STOP) { 11495 break; 11496 } 11497 switch (field.fieldId) { 11498 case 0: { 11499 if (field.typeId == TType.LIST) { 11500 ListMetadata listMetadata0 = protocol.readListBegin(); 11501 List<LogLightBean> value = new ArrayList<LogLightBean>(listMetadata0.size); 11502 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11503 net.gdface.facelog.client.thrift.LogLightBean item0 = net.gdface.facelog.client.thrift.LogLightBean.ADAPTER.read(protocol); 11504 value.add(item0); 11505 } 11506 protocol.readListEnd(); 11507 result = value; 11508 } else { 11509 ProtocolUtil.skip(protocol, field.typeId); 11510 } 11511 } 11512 break; 11513 case 1: { 11514 if (field.typeId == TType.STRUCT) { 11515 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11516 ex1 = value; 11517 } else { 11518 ProtocolUtil.skip(protocol, field.typeId); 11519 } 11520 } 11521 break; 11522 default: ProtocolUtil.skip(protocol, field.typeId); break; 11523 } 11524 protocol.readFieldEnd(); 11525 } 11526 protocol.readStructEnd(); 11527 if (result != null) { 11528 return result; 11529 } else if (ex1 != null) { 11530 throw ex1; 11531 } else { 11532 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11533 } 11534 } 11535 } 11536 11537 private static final class LoadPermitByUpdateCall extends MethodCall<List<PermitBean>> { 11538 private final Long timestamp; 11539 11540 LoadPermitByUpdateCall(Long timestamp, ServiceMethodCallback<List<PermitBean>> callback) { 11541 super("loadPermitByUpdate", TMessageType.CALL, callback); 11542 if (timestamp == null) throw new NullPointerException("timestamp"); 11543 this.timestamp = timestamp; 11544 } 11545 11546 @Override 11547 protected void send(Protocol protocol) throws IOException { 11548 protocol.writeStructBegin("args"); 11549 protocol.writeFieldBegin("timestamp", 1, TType.I64); 11550 protocol.writeI64(this.timestamp); 11551 protocol.writeFieldEnd(); 11552 protocol.writeFieldStop(); 11553 protocol.writeStructEnd(); 11554 } 11555 11556 @Override 11557 protected List<PermitBean> receive(Protocol protocol, MessageMetadata metadata) throws 11558 Exception { 11559 List<PermitBean> result = null; 11560 ServiceRuntimeException ex1 = null; 11561 protocol.readStructBegin(); 11562 while (true) { 11563 FieldMetadata field = protocol.readFieldBegin(); 11564 if (field.typeId == TType.STOP) { 11565 break; 11566 } 11567 switch (field.fieldId) { 11568 case 0: { 11569 if (field.typeId == TType.LIST) { 11570 ListMetadata listMetadata0 = protocol.readListBegin(); 11571 List<PermitBean> value = new ArrayList<PermitBean>(listMetadata0.size); 11572 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11573 net.gdface.facelog.client.thrift.PermitBean item0 = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 11574 value.add(item0); 11575 } 11576 protocol.readListEnd(); 11577 result = value; 11578 } else { 11579 ProtocolUtil.skip(protocol, field.typeId); 11580 } 11581 } 11582 break; 11583 case 1: { 11584 if (field.typeId == TType.STRUCT) { 11585 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11586 ex1 = value; 11587 } else { 11588 ProtocolUtil.skip(protocol, field.typeId); 11589 } 11590 } 11591 break; 11592 default: ProtocolUtil.skip(protocol, field.typeId); break; 11593 } 11594 protocol.readFieldEnd(); 11595 } 11596 protocol.readStructEnd(); 11597 if (result != null) { 11598 return result; 11599 } else if (ex1 != null) { 11600 throw ex1; 11601 } else { 11602 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11603 } 11604 } 11605 } 11606 11607 private static final class LoadPermitByUpdateTimestrCall extends MethodCall<List<PermitBean>> { 11608 private final String timestamp; 11609 11610 LoadPermitByUpdateTimestrCall(String timestamp, 11611 ServiceMethodCallback<List<PermitBean>> callback) { 11612 super("loadPermitByUpdateTimestr", TMessageType.CALL, callback); 11613 this.timestamp = timestamp; 11614 } 11615 11616 @Override 11617 protected void send(Protocol protocol) throws IOException { 11618 protocol.writeStructBegin("args"); 11619 if (this.timestamp != null) { 11620 protocol.writeFieldBegin("timestamp", 1, TType.STRING); 11621 protocol.writeString(this.timestamp); 11622 protocol.writeFieldEnd(); 11623 } 11624 protocol.writeFieldStop(); 11625 protocol.writeStructEnd(); 11626 } 11627 11628 @Override 11629 protected List<PermitBean> receive(Protocol protocol, MessageMetadata metadata) throws 11630 Exception { 11631 List<PermitBean> result = null; 11632 ServiceRuntimeException ex1 = null; 11633 protocol.readStructBegin(); 11634 while (true) { 11635 FieldMetadata field = protocol.readFieldBegin(); 11636 if (field.typeId == TType.STOP) { 11637 break; 11638 } 11639 switch (field.fieldId) { 11640 case 0: { 11641 if (field.typeId == TType.LIST) { 11642 ListMetadata listMetadata0 = protocol.readListBegin(); 11643 List<PermitBean> value = new ArrayList<PermitBean>(listMetadata0.size); 11644 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11645 net.gdface.facelog.client.thrift.PermitBean item0 = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 11646 value.add(item0); 11647 } 11648 protocol.readListEnd(); 11649 result = value; 11650 } else { 11651 ProtocolUtil.skip(protocol, field.typeId); 11652 } 11653 } 11654 break; 11655 case 1: { 11656 if (field.typeId == TType.STRUCT) { 11657 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11658 ex1 = value; 11659 } else { 11660 ProtocolUtil.skip(protocol, field.typeId); 11661 } 11662 } 11663 break; 11664 default: ProtocolUtil.skip(protocol, field.typeId); break; 11665 } 11666 protocol.readFieldEnd(); 11667 } 11668 protocol.readStructEnd(); 11669 if (result != null) { 11670 return result; 11671 } else if (ex1 != null) { 11672 throw ex1; 11673 } else { 11674 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11675 } 11676 } 11677 } 11678 11679 private static final class LoadPersonByWhereCall extends MethodCall<List<PersonBean>> { 11680 private final String where; 11681 11682 private final Integer startRow; 11683 11684 private final Integer numRows; 11685 11686 LoadPersonByWhereCall(String where, Integer startRow, Integer numRows, 11687 ServiceMethodCallback<List<PersonBean>> callback) { 11688 super("loadPersonByWhere", TMessageType.CALL, callback); 11689 this.where = where; 11690 if (startRow == null) throw new NullPointerException("startRow"); 11691 this.startRow = startRow; 11692 if (numRows == null) throw new NullPointerException("numRows"); 11693 this.numRows = numRows; 11694 } 11695 11696 @Override 11697 protected void send(Protocol protocol) throws IOException { 11698 protocol.writeStructBegin("args"); 11699 if (this.where != null) { 11700 protocol.writeFieldBegin("where", 1, TType.STRING); 11701 protocol.writeString(this.where); 11702 protocol.writeFieldEnd(); 11703 } 11704 protocol.writeFieldBegin("startRow", 2, TType.I32); 11705 protocol.writeI32(this.startRow); 11706 protocol.writeFieldEnd(); 11707 protocol.writeFieldBegin("numRows", 3, TType.I32); 11708 protocol.writeI32(this.numRows); 11709 protocol.writeFieldEnd(); 11710 protocol.writeFieldStop(); 11711 protocol.writeStructEnd(); 11712 } 11713 11714 @Override 11715 protected List<PersonBean> receive(Protocol protocol, MessageMetadata metadata) throws 11716 Exception { 11717 List<PersonBean> result = null; 11718 ServiceRuntimeException ex1 = null; 11719 protocol.readStructBegin(); 11720 while (true) { 11721 FieldMetadata field = protocol.readFieldBegin(); 11722 if (field.typeId == TType.STOP) { 11723 break; 11724 } 11725 switch (field.fieldId) { 11726 case 0: { 11727 if (field.typeId == TType.LIST) { 11728 ListMetadata listMetadata0 = protocol.readListBegin(); 11729 List<PersonBean> value = new ArrayList<PersonBean>(listMetadata0.size); 11730 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11731 net.gdface.facelog.client.thrift.PersonBean item0 = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 11732 value.add(item0); 11733 } 11734 protocol.readListEnd(); 11735 result = value; 11736 } else { 11737 ProtocolUtil.skip(protocol, field.typeId); 11738 } 11739 } 11740 break; 11741 case 1: { 11742 if (field.typeId == TType.STRUCT) { 11743 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11744 ex1 = value; 11745 } else { 11746 ProtocolUtil.skip(protocol, field.typeId); 11747 } 11748 } 11749 break; 11750 default: ProtocolUtil.skip(protocol, field.typeId); break; 11751 } 11752 protocol.readFieldEnd(); 11753 } 11754 protocol.readStructEnd(); 11755 if (result != null) { 11756 return result; 11757 } else if (ex1 != null) { 11758 throw ex1; 11759 } else { 11760 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11761 } 11762 } 11763 } 11764 11765 private static final class LoadPersonByWhereRealCall extends MethodCall<List<PersonBean>> { 11766 private final String where; 11767 11768 private final Integer startRow; 11769 11770 private final Integer numRows; 11771 11772 private final Token token; 11773 11774 LoadPersonByWhereRealCall(String where, Integer startRow, Integer numRows, Token token, 11775 ServiceMethodCallback<List<PersonBean>> callback) { 11776 super("loadPersonByWhereReal", TMessageType.CALL, callback); 11777 this.where = where; 11778 if (startRow == null) throw new NullPointerException("startRow"); 11779 this.startRow = startRow; 11780 if (numRows == null) throw new NullPointerException("numRows"); 11781 this.numRows = numRows; 11782 this.token = token; 11783 } 11784 11785 @Override 11786 protected void send(Protocol protocol) throws IOException { 11787 protocol.writeStructBegin("args"); 11788 if (this.where != null) { 11789 protocol.writeFieldBegin("where", 1, TType.STRING); 11790 protocol.writeString(this.where); 11791 protocol.writeFieldEnd(); 11792 } 11793 protocol.writeFieldBegin("startRow", 2, TType.I32); 11794 protocol.writeI32(this.startRow); 11795 protocol.writeFieldEnd(); 11796 protocol.writeFieldBegin("numRows", 3, TType.I32); 11797 protocol.writeI32(this.numRows); 11798 protocol.writeFieldEnd(); 11799 if (this.token != null) { 11800 protocol.writeFieldBegin("token", 4, TType.STRUCT); 11801 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 11802 protocol.writeFieldEnd(); 11803 } 11804 protocol.writeFieldStop(); 11805 protocol.writeStructEnd(); 11806 } 11807 11808 @Override 11809 protected List<PersonBean> receive(Protocol protocol, MessageMetadata metadata) throws 11810 Exception { 11811 List<PersonBean> result = null; 11812 ServiceRuntimeException ex1 = null; 11813 protocol.readStructBegin(); 11814 while (true) { 11815 FieldMetadata field = protocol.readFieldBegin(); 11816 if (field.typeId == TType.STOP) { 11817 break; 11818 } 11819 switch (field.fieldId) { 11820 case 0: { 11821 if (field.typeId == TType.LIST) { 11822 ListMetadata listMetadata0 = protocol.readListBegin(); 11823 List<PersonBean> value = new ArrayList<PersonBean>(listMetadata0.size); 11824 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11825 net.gdface.facelog.client.thrift.PersonBean item0 = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 11826 value.add(item0); 11827 } 11828 protocol.readListEnd(); 11829 result = value; 11830 } else { 11831 ProtocolUtil.skip(protocol, field.typeId); 11832 } 11833 } 11834 break; 11835 case 1: { 11836 if (field.typeId == TType.STRUCT) { 11837 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11838 ex1 = value; 11839 } else { 11840 ProtocolUtil.skip(protocol, field.typeId); 11841 } 11842 } 11843 break; 11844 default: ProtocolUtil.skip(protocol, field.typeId); break; 11845 } 11846 protocol.readFieldEnd(); 11847 } 11848 protocol.readStructEnd(); 11849 if (result != null) { 11850 return result; 11851 } else if (ex1 != null) { 11852 throw ex1; 11853 } else { 11854 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11855 } 11856 } 11857 } 11858 11859 private static final class LoadPersonGroupByWhereCall extends MethodCall<List<Integer>> { 11860 private final String where; 11861 11862 private final Integer startRow; 11863 11864 private final Integer numRows; 11865 11866 LoadPersonGroupByWhereCall(String where, Integer startRow, Integer numRows, 11867 ServiceMethodCallback<List<Integer>> callback) { 11868 super("loadPersonGroupByWhere", TMessageType.CALL, callback); 11869 this.where = where; 11870 if (startRow == null) throw new NullPointerException("startRow"); 11871 this.startRow = startRow; 11872 if (numRows == null) throw new NullPointerException("numRows"); 11873 this.numRows = numRows; 11874 } 11875 11876 @Override 11877 protected void send(Protocol protocol) throws IOException { 11878 protocol.writeStructBegin("args"); 11879 if (this.where != null) { 11880 protocol.writeFieldBegin("where", 1, TType.STRING); 11881 protocol.writeString(this.where); 11882 protocol.writeFieldEnd(); 11883 } 11884 protocol.writeFieldBegin("startRow", 2, TType.I32); 11885 protocol.writeI32(this.startRow); 11886 protocol.writeFieldEnd(); 11887 protocol.writeFieldBegin("numRows", 3, TType.I32); 11888 protocol.writeI32(this.numRows); 11889 protocol.writeFieldEnd(); 11890 protocol.writeFieldStop(); 11891 protocol.writeStructEnd(); 11892 } 11893 11894 @Override 11895 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 11896 List<Integer> result = null; 11897 ServiceRuntimeException ex1 = null; 11898 protocol.readStructBegin(); 11899 while (true) { 11900 FieldMetadata field = protocol.readFieldBegin(); 11901 if (field.typeId == TType.STOP) { 11902 break; 11903 } 11904 switch (field.fieldId) { 11905 case 0: { 11906 if (field.typeId == TType.LIST) { 11907 ListMetadata listMetadata0 = protocol.readListBegin(); 11908 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 11909 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11910 int item0 = protocol.readI32(); 11911 value.add(item0); 11912 } 11913 protocol.readListEnd(); 11914 result = value; 11915 } else { 11916 ProtocolUtil.skip(protocol, field.typeId); 11917 } 11918 } 11919 break; 11920 case 1: { 11921 if (field.typeId == TType.STRUCT) { 11922 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11923 ex1 = value; 11924 } else { 11925 ProtocolUtil.skip(protocol, field.typeId); 11926 } 11927 } 11928 break; 11929 default: ProtocolUtil.skip(protocol, field.typeId); break; 11930 } 11931 protocol.readFieldEnd(); 11932 } 11933 protocol.readStructEnd(); 11934 if (result != null) { 11935 return result; 11936 } else if (ex1 != null) { 11937 throw ex1; 11938 } else { 11939 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 11940 } 11941 } 11942 } 11943 11944 private static final class LoadPersonGroupIdByWhereCall extends MethodCall<List<Integer>> { 11945 private final String where; 11946 11947 LoadPersonGroupIdByWhereCall(String where, ServiceMethodCallback<List<Integer>> callback) { 11948 super("loadPersonGroupIdByWhere", TMessageType.CALL, callback); 11949 this.where = where; 11950 } 11951 11952 @Override 11953 protected void send(Protocol protocol) throws IOException { 11954 protocol.writeStructBegin("args"); 11955 if (this.where != null) { 11956 protocol.writeFieldBegin("where", 1, TType.STRING); 11957 protocol.writeString(this.where); 11958 protocol.writeFieldEnd(); 11959 } 11960 protocol.writeFieldStop(); 11961 protocol.writeStructEnd(); 11962 } 11963 11964 @Override 11965 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 11966 List<Integer> result = null; 11967 ServiceRuntimeException ex1 = null; 11968 protocol.readStructBegin(); 11969 while (true) { 11970 FieldMetadata field = protocol.readFieldBegin(); 11971 if (field.typeId == TType.STOP) { 11972 break; 11973 } 11974 switch (field.fieldId) { 11975 case 0: { 11976 if (field.typeId == TType.LIST) { 11977 ListMetadata listMetadata0 = protocol.readListBegin(); 11978 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 11979 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 11980 int item0 = protocol.readI32(); 11981 value.add(item0); 11982 } 11983 protocol.readListEnd(); 11984 result = value; 11985 } else { 11986 ProtocolUtil.skip(protocol, field.typeId); 11987 } 11988 } 11989 break; 11990 case 1: { 11991 if (field.typeId == TType.STRUCT) { 11992 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 11993 ex1 = value; 11994 } else { 11995 ProtocolUtil.skip(protocol, field.typeId); 11996 } 11997 } 11998 break; 11999 default: ProtocolUtil.skip(protocol, field.typeId); break; 12000 } 12001 protocol.readFieldEnd(); 12002 } 12003 protocol.readStructEnd(); 12004 if (result != null) { 12005 return result; 12006 } else if (ex1 != null) { 12007 throw ex1; 12008 } else { 12009 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12010 } 12011 } 12012 } 12013 12014 private static final class LoadPersonIdByUpdateTimeCall extends MethodCall<List<Integer>> { 12015 private final Long timestamp; 12016 12017 LoadPersonIdByUpdateTimeCall(Long timestamp, ServiceMethodCallback<List<Integer>> callback) { 12018 super("loadPersonIdByUpdateTime", TMessageType.CALL, callback); 12019 if (timestamp == null) throw new NullPointerException("timestamp"); 12020 this.timestamp = timestamp; 12021 } 12022 12023 @Override 12024 protected void send(Protocol protocol) throws IOException { 12025 protocol.writeStructBegin("args"); 12026 protocol.writeFieldBegin("timestamp", 1, TType.I64); 12027 protocol.writeI64(this.timestamp); 12028 protocol.writeFieldEnd(); 12029 protocol.writeFieldStop(); 12030 protocol.writeStructEnd(); 12031 } 12032 12033 @Override 12034 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12035 List<Integer> result = null; 12036 ServiceRuntimeException ex1 = null; 12037 protocol.readStructBegin(); 12038 while (true) { 12039 FieldMetadata field = protocol.readFieldBegin(); 12040 if (field.typeId == TType.STOP) { 12041 break; 12042 } 12043 switch (field.fieldId) { 12044 case 0: { 12045 if (field.typeId == TType.LIST) { 12046 ListMetadata listMetadata0 = protocol.readListBegin(); 12047 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 12048 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 12049 int item0 = protocol.readI32(); 12050 value.add(item0); 12051 } 12052 protocol.readListEnd(); 12053 result = value; 12054 } else { 12055 ProtocolUtil.skip(protocol, field.typeId); 12056 } 12057 } 12058 break; 12059 case 1: { 12060 if (field.typeId == TType.STRUCT) { 12061 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12062 ex1 = value; 12063 } else { 12064 ProtocolUtil.skip(protocol, field.typeId); 12065 } 12066 } 12067 break; 12068 default: ProtocolUtil.skip(protocol, field.typeId); break; 12069 } 12070 protocol.readFieldEnd(); 12071 } 12072 protocol.readStructEnd(); 12073 if (result != null) { 12074 return result; 12075 } else if (ex1 != null) { 12076 throw ex1; 12077 } else { 12078 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12079 } 12080 } 12081 } 12082 12083 private static final class LoadPersonIdByUpdateTimeTimeStrCall extends MethodCall<List<Integer>> { 12084 private final String timestamp; 12085 12086 LoadPersonIdByUpdateTimeTimeStrCall(String timestamp, 12087 ServiceMethodCallback<List<Integer>> callback) { 12088 super("loadPersonIdByUpdateTimeTimeStr", TMessageType.CALL, callback); 12089 this.timestamp = timestamp; 12090 } 12091 12092 @Override 12093 protected void send(Protocol protocol) throws IOException { 12094 protocol.writeStructBegin("args"); 12095 if (this.timestamp != null) { 12096 protocol.writeFieldBegin("timestamp", 1, TType.STRING); 12097 protocol.writeString(this.timestamp); 12098 protocol.writeFieldEnd(); 12099 } 12100 protocol.writeFieldStop(); 12101 protocol.writeStructEnd(); 12102 } 12103 12104 @Override 12105 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12106 List<Integer> result = null; 12107 ServiceRuntimeException ex1 = null; 12108 protocol.readStructBegin(); 12109 while (true) { 12110 FieldMetadata field = protocol.readFieldBegin(); 12111 if (field.typeId == TType.STOP) { 12112 break; 12113 } 12114 switch (field.fieldId) { 12115 case 0: { 12116 if (field.typeId == TType.LIST) { 12117 ListMetadata listMetadata0 = protocol.readListBegin(); 12118 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 12119 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 12120 int item0 = protocol.readI32(); 12121 value.add(item0); 12122 } 12123 protocol.readListEnd(); 12124 result = value; 12125 } else { 12126 ProtocolUtil.skip(protocol, field.typeId); 12127 } 12128 } 12129 break; 12130 case 1: { 12131 if (field.typeId == TType.STRUCT) { 12132 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12133 ex1 = value; 12134 } else { 12135 ProtocolUtil.skip(protocol, field.typeId); 12136 } 12137 } 12138 break; 12139 default: ProtocolUtil.skip(protocol, field.typeId); break; 12140 } 12141 protocol.readFieldEnd(); 12142 } 12143 protocol.readStructEnd(); 12144 if (result != null) { 12145 return result; 12146 } else if (ex1 != null) { 12147 throw ex1; 12148 } else { 12149 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12150 } 12151 } 12152 } 12153 12154 private static final class LoadPersonIdByWhereCall extends MethodCall<List<Integer>> { 12155 private final String where; 12156 12157 LoadPersonIdByWhereCall(String where, ServiceMethodCallback<List<Integer>> callback) { 12158 super("loadPersonIdByWhere", TMessageType.CALL, callback); 12159 this.where = where; 12160 } 12161 12162 @Override 12163 protected void send(Protocol protocol) throws IOException { 12164 protocol.writeStructBegin("args"); 12165 if (this.where != null) { 12166 protocol.writeFieldBegin("where", 1, TType.STRING); 12167 protocol.writeString(this.where); 12168 protocol.writeFieldEnd(); 12169 } 12170 protocol.writeFieldStop(); 12171 protocol.writeStructEnd(); 12172 } 12173 12174 @Override 12175 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12176 List<Integer> result = null; 12177 ServiceRuntimeException ex1 = null; 12178 protocol.readStructBegin(); 12179 while (true) { 12180 FieldMetadata field = protocol.readFieldBegin(); 12181 if (field.typeId == TType.STOP) { 12182 break; 12183 } 12184 switch (field.fieldId) { 12185 case 0: { 12186 if (field.typeId == TType.LIST) { 12187 ListMetadata listMetadata0 = protocol.readListBegin(); 12188 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 12189 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 12190 int item0 = protocol.readI32(); 12191 value.add(item0); 12192 } 12193 protocol.readListEnd(); 12194 result = value; 12195 } else { 12196 ProtocolUtil.skip(protocol, field.typeId); 12197 } 12198 } 12199 break; 12200 case 1: { 12201 if (field.typeId == TType.STRUCT) { 12202 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12203 ex1 = value; 12204 } else { 12205 ProtocolUtil.skip(protocol, field.typeId); 12206 } 12207 } 12208 break; 12209 default: ProtocolUtil.skip(protocol, field.typeId); break; 12210 } 12211 protocol.readFieldEnd(); 12212 } 12213 protocol.readStructEnd(); 12214 if (result != null) { 12215 return result; 12216 } else if (ex1 != null) { 12217 throw ex1; 12218 } else { 12219 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12220 } 12221 } 12222 } 12223 12224 private static final class LoadUpdatedPersonsCall extends MethodCall<List<Integer>> { 12225 private final Long timestamp; 12226 12227 LoadUpdatedPersonsCall(Long timestamp, ServiceMethodCallback<List<Integer>> callback) { 12228 super("loadUpdatedPersons", TMessageType.CALL, callback); 12229 if (timestamp == null) throw new NullPointerException("timestamp"); 12230 this.timestamp = timestamp; 12231 } 12232 12233 @Override 12234 protected void send(Protocol protocol) throws IOException { 12235 protocol.writeStructBegin("args"); 12236 protocol.writeFieldBegin("timestamp", 1, TType.I64); 12237 protocol.writeI64(this.timestamp); 12238 protocol.writeFieldEnd(); 12239 protocol.writeFieldStop(); 12240 protocol.writeStructEnd(); 12241 } 12242 12243 @Override 12244 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12245 List<Integer> result = null; 12246 ServiceRuntimeException ex1 = null; 12247 protocol.readStructBegin(); 12248 while (true) { 12249 FieldMetadata field = protocol.readFieldBegin(); 12250 if (field.typeId == TType.STOP) { 12251 break; 12252 } 12253 switch (field.fieldId) { 12254 case 0: { 12255 if (field.typeId == TType.LIST) { 12256 ListMetadata listMetadata0 = protocol.readListBegin(); 12257 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 12258 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 12259 int item0 = protocol.readI32(); 12260 value.add(item0); 12261 } 12262 protocol.readListEnd(); 12263 result = value; 12264 } else { 12265 ProtocolUtil.skip(protocol, field.typeId); 12266 } 12267 } 12268 break; 12269 case 1: { 12270 if (field.typeId == TType.STRUCT) { 12271 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12272 ex1 = value; 12273 } else { 12274 ProtocolUtil.skip(protocol, field.typeId); 12275 } 12276 } 12277 break; 12278 default: ProtocolUtil.skip(protocol, field.typeId); break; 12279 } 12280 protocol.readFieldEnd(); 12281 } 12282 protocol.readStructEnd(); 12283 if (result != null) { 12284 return result; 12285 } else if (ex1 != null) { 12286 throw ex1; 12287 } else { 12288 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12289 } 12290 } 12291 } 12292 12293 private static final class LoadUpdatedPersonsTimestrCall extends MethodCall<List<Integer>> { 12294 private final String timestamp; 12295 12296 LoadUpdatedPersonsTimestrCall(String timestamp, ServiceMethodCallback<List<Integer>> callback) { 12297 super("loadUpdatedPersonsTimestr", TMessageType.CALL, callback); 12298 this.timestamp = timestamp; 12299 } 12300 12301 @Override 12302 protected void send(Protocol protocol) throws IOException { 12303 protocol.writeStructBegin("args"); 12304 if (this.timestamp != null) { 12305 protocol.writeFieldBegin("timestamp", 1, TType.STRING); 12306 protocol.writeString(this.timestamp); 12307 protocol.writeFieldEnd(); 12308 } 12309 protocol.writeFieldStop(); 12310 protocol.writeStructEnd(); 12311 } 12312 12313 @Override 12314 protected List<Integer> receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12315 List<Integer> result = null; 12316 ServiceRuntimeException ex1 = null; 12317 protocol.readStructBegin(); 12318 while (true) { 12319 FieldMetadata field = protocol.readFieldBegin(); 12320 if (field.typeId == TType.STOP) { 12321 break; 12322 } 12323 switch (field.fieldId) { 12324 case 0: { 12325 if (field.typeId == TType.LIST) { 12326 ListMetadata listMetadata0 = protocol.readListBegin(); 12327 List<Integer> value = new ArrayList<Integer>(listMetadata0.size); 12328 for (int i0 = 0; i0 < listMetadata0.size; ++i0) { 12329 int item0 = protocol.readI32(); 12330 value.add(item0); 12331 } 12332 protocol.readListEnd(); 12333 result = value; 12334 } else { 12335 ProtocolUtil.skip(protocol, field.typeId); 12336 } 12337 } 12338 break; 12339 case 1: { 12340 if (field.typeId == TType.STRUCT) { 12341 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12342 ex1 = value; 12343 } else { 12344 ProtocolUtil.skip(protocol, field.typeId); 12345 } 12346 } 12347 break; 12348 default: ProtocolUtil.skip(protocol, field.typeId); break; 12349 } 12350 protocol.readFieldEnd(); 12351 } 12352 protocol.readStructEnd(); 12353 if (result != null) { 12354 return result; 12355 } else if (ex1 != null) { 12356 throw ex1; 12357 } else { 12358 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12359 } 12360 } 12361 } 12362 12363 private static final class LockWakeupCall extends MethodCall<LockWakeupResponse> { 12364 private final DeviceBean deviceBean; 12365 12366 private final Boolean ignoreSchedule; 12367 12368 private final String sdkVersion; 12369 12370 LockWakeupCall(DeviceBean deviceBean, Boolean ignoreSchedule, String sdkVersion, 12371 ServiceMethodCallback<LockWakeupResponse> callback) { 12372 super("lockWakeup", TMessageType.CALL, callback); 12373 this.deviceBean = deviceBean; 12374 if (ignoreSchedule == null) throw new NullPointerException("ignoreSchedule"); 12375 this.ignoreSchedule = ignoreSchedule; 12376 this.sdkVersion = sdkVersion; 12377 } 12378 12379 @Override 12380 protected void send(Protocol protocol) throws IOException { 12381 protocol.writeStructBegin("args"); 12382 if (this.deviceBean != null) { 12383 protocol.writeFieldBegin("deviceBean", 1, TType.STRUCT); 12384 net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.write(protocol, this.deviceBean); 12385 protocol.writeFieldEnd(); 12386 } 12387 protocol.writeFieldBegin("ignoreSchedule", 2, TType.BOOL); 12388 protocol.writeBool(this.ignoreSchedule); 12389 protocol.writeFieldEnd(); 12390 if (this.sdkVersion != null) { 12391 protocol.writeFieldBegin("sdkVersion", 3, TType.STRING); 12392 protocol.writeString(this.sdkVersion); 12393 protocol.writeFieldEnd(); 12394 } 12395 protocol.writeFieldStop(); 12396 protocol.writeStructEnd(); 12397 } 12398 12399 @Override 12400 protected LockWakeupResponse receive(Protocol protocol, MessageMetadata metadata) throws 12401 Exception { 12402 LockWakeupResponse result = null; 12403 ServiceSecurityException ex1 = null; 12404 ServiceRuntimeException ex2 = null; 12405 protocol.readStructBegin(); 12406 while (true) { 12407 FieldMetadata field = protocol.readFieldBegin(); 12408 if (field.typeId == TType.STOP) { 12409 break; 12410 } 12411 switch (field.fieldId) { 12412 case 0: { 12413 if (field.typeId == TType.STRUCT) { 12414 net.gdface.facelog.client.thrift.LockWakeupResponse value = net.gdface.facelog.client.thrift.LockWakeupResponse.ADAPTER.read(protocol); 12415 result = value; 12416 } else { 12417 ProtocolUtil.skip(protocol, field.typeId); 12418 } 12419 } 12420 break; 12421 case 1: { 12422 if (field.typeId == TType.STRUCT) { 12423 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 12424 ex1 = value; 12425 } else { 12426 ProtocolUtil.skip(protocol, field.typeId); 12427 } 12428 } 12429 break; 12430 case 2: { 12431 if (field.typeId == TType.STRUCT) { 12432 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12433 ex2 = value; 12434 } else { 12435 ProtocolUtil.skip(protocol, field.typeId); 12436 } 12437 } 12438 break; 12439 default: ProtocolUtil.skip(protocol, field.typeId); break; 12440 } 12441 protocol.readFieldEnd(); 12442 } 12443 protocol.readStructEnd(); 12444 if (result != null) { 12445 return result; 12446 } else if (ex1 != null) { 12447 throw ex1; 12448 } else if (ex2 != null) { 12449 throw ex2; 12450 } else { 12451 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12452 } 12453 } 12454 } 12455 12456 private static final class OfflineCall extends MethodCall<Void> { 12457 private final Token token; 12458 12459 OfflineCall(Token token, ServiceMethodCallback<Void> callback) { 12460 super("offline", TMessageType.CALL, callback); 12461 this.token = token; 12462 } 12463 12464 @Override 12465 protected void send(Protocol protocol) throws IOException { 12466 protocol.writeStructBegin("args"); 12467 if (this.token != null) { 12468 protocol.writeFieldBegin("token", 1, TType.STRUCT); 12469 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 12470 protocol.writeFieldEnd(); 12471 } 12472 protocol.writeFieldStop(); 12473 protocol.writeStructEnd(); 12474 } 12475 12476 @Override 12477 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12478 ServiceSecurityException ex1 = null; 12479 ServiceRuntimeException ex2 = null; 12480 protocol.readStructBegin(); 12481 while (true) { 12482 FieldMetadata field = protocol.readFieldBegin(); 12483 if (field.typeId == TType.STOP) { 12484 break; 12485 } 12486 switch (field.fieldId) { 12487 case 1: { 12488 if (field.typeId == TType.STRUCT) { 12489 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 12490 ex1 = value; 12491 } else { 12492 ProtocolUtil.skip(protocol, field.typeId); 12493 } 12494 } 12495 break; 12496 case 2: { 12497 if (field.typeId == TType.STRUCT) { 12498 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12499 ex2 = value; 12500 } else { 12501 ProtocolUtil.skip(protocol, field.typeId); 12502 } 12503 } 12504 break; 12505 default: ProtocolUtil.skip(protocol, field.typeId); break; 12506 } 12507 protocol.readFieldEnd(); 12508 } 12509 protocol.readStructEnd(); 12510 if (ex1 != null) { 12511 throw ex1; 12512 } else if (ex2 != null) { 12513 throw ex2; 12514 } else { 12515 return null; 12516 } 12517 } 12518 } 12519 12520 private static final class OnlineCall extends MethodCall<Token> { 12521 private final DeviceBean device; 12522 12523 OnlineCall(DeviceBean device, ServiceMethodCallback<Token> callback) { 12524 super("online", TMessageType.CALL, callback); 12525 this.device = device; 12526 } 12527 12528 @Override 12529 protected void send(Protocol protocol) throws IOException { 12530 protocol.writeStructBegin("args"); 12531 if (this.device != null) { 12532 protocol.writeFieldBegin("device", 1, TType.STRUCT); 12533 net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.write(protocol, this.device); 12534 protocol.writeFieldEnd(); 12535 } 12536 protocol.writeFieldStop(); 12537 protocol.writeStructEnd(); 12538 } 12539 12540 @Override 12541 protected Token receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12542 Token result = null; 12543 ServiceSecurityException ex1 = null; 12544 ServiceRuntimeException ex2 = null; 12545 protocol.readStructBegin(); 12546 while (true) { 12547 FieldMetadata field = protocol.readFieldBegin(); 12548 if (field.typeId == TType.STOP) { 12549 break; 12550 } 12551 switch (field.fieldId) { 12552 case 0: { 12553 if (field.typeId == TType.STRUCT) { 12554 net.gdface.facelog.client.thrift.Token value = net.gdface.facelog.client.thrift.Token.ADAPTER.read(protocol); 12555 result = value; 12556 } else { 12557 ProtocolUtil.skip(protocol, field.typeId); 12558 } 12559 } 12560 break; 12561 case 1: { 12562 if (field.typeId == TType.STRUCT) { 12563 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 12564 ex1 = value; 12565 } else { 12566 ProtocolUtil.skip(protocol, field.typeId); 12567 } 12568 } 12569 break; 12570 case 2: { 12571 if (field.typeId == TType.STRUCT) { 12572 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12573 ex2 = value; 12574 } else { 12575 ProtocolUtil.skip(protocol, field.typeId); 12576 } 12577 } 12578 break; 12579 default: ProtocolUtil.skip(protocol, field.typeId); break; 12580 } 12581 protocol.readFieldEnd(); 12582 } 12583 protocol.readStructEnd(); 12584 if (result != null) { 12585 return result; 12586 } else if (ex1 != null) { 12587 throw ex1; 12588 } else if (ex2 != null) { 12589 throw ex2; 12590 } else { 12591 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12592 } 12593 } 12594 } 12595 12596 private static final class RegisterDeviceCall extends MethodCall<DeviceBean> { 12597 private final DeviceBean newDevice; 12598 12599 RegisterDeviceCall(DeviceBean newDevice, ServiceMethodCallback<DeviceBean> callback) { 12600 super("registerDevice", TMessageType.CALL, callback); 12601 this.newDevice = newDevice; 12602 } 12603 12604 @Override 12605 protected void send(Protocol protocol) throws IOException { 12606 protocol.writeStructBegin("args"); 12607 if (this.newDevice != null) { 12608 protocol.writeFieldBegin("newDevice", 1, TType.STRUCT); 12609 net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.write(protocol, this.newDevice); 12610 protocol.writeFieldEnd(); 12611 } 12612 protocol.writeFieldStop(); 12613 protocol.writeStructEnd(); 12614 } 12615 12616 @Override 12617 protected DeviceBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12618 DeviceBean result = null; 12619 ServiceSecurityException ex1 = null; 12620 ServiceRuntimeException ex2 = null; 12621 protocol.readStructBegin(); 12622 while (true) { 12623 FieldMetadata field = protocol.readFieldBegin(); 12624 if (field.typeId == TType.STOP) { 12625 break; 12626 } 12627 switch (field.fieldId) { 12628 case 0: { 12629 if (field.typeId == TType.STRUCT) { 12630 net.gdface.facelog.client.thrift.DeviceBean value = net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.read(protocol); 12631 result = value; 12632 } else { 12633 ProtocolUtil.skip(protocol, field.typeId); 12634 } 12635 } 12636 break; 12637 case 1: { 12638 if (field.typeId == TType.STRUCT) { 12639 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 12640 ex1 = value; 12641 } else { 12642 ProtocolUtil.skip(protocol, field.typeId); 12643 } 12644 } 12645 break; 12646 case 2: { 12647 if (field.typeId == TType.STRUCT) { 12648 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12649 ex2 = value; 12650 } else { 12651 ProtocolUtil.skip(protocol, field.typeId); 12652 } 12653 } 12654 break; 12655 default: ProtocolUtil.skip(protocol, field.typeId); break; 12656 } 12657 protocol.readFieldEnd(); 12658 } 12659 protocol.readStructEnd(); 12660 if (result != null) { 12661 return result; 12662 } else if (ex1 != null) { 12663 throw ex1; 12664 } else if (ex2 != null) { 12665 throw ex2; 12666 } else { 12667 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12668 } 12669 } 12670 } 12671 12672 private static final class ReleasePersonTokenCall extends MethodCall<Void> { 12673 private final Token token; 12674 12675 ReleasePersonTokenCall(Token token, ServiceMethodCallback<Void> callback) { 12676 super("releasePersonToken", TMessageType.CALL, callback); 12677 this.token = token; 12678 } 12679 12680 @Override 12681 protected void send(Protocol protocol) throws IOException { 12682 protocol.writeStructBegin("args"); 12683 if (this.token != null) { 12684 protocol.writeFieldBegin("token", 1, TType.STRUCT); 12685 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 12686 protocol.writeFieldEnd(); 12687 } 12688 protocol.writeFieldStop(); 12689 protocol.writeStructEnd(); 12690 } 12691 12692 @Override 12693 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12694 ServiceSecurityException ex1 = null; 12695 ServiceRuntimeException ex2 = null; 12696 protocol.readStructBegin(); 12697 while (true) { 12698 FieldMetadata field = protocol.readFieldBegin(); 12699 if (field.typeId == TType.STOP) { 12700 break; 12701 } 12702 switch (field.fieldId) { 12703 case 1: { 12704 if (field.typeId == TType.STRUCT) { 12705 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 12706 ex1 = value; 12707 } else { 12708 ProtocolUtil.skip(protocol, field.typeId); 12709 } 12710 } 12711 break; 12712 case 2: { 12713 if (field.typeId == TType.STRUCT) { 12714 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12715 ex2 = value; 12716 } else { 12717 ProtocolUtil.skip(protocol, field.typeId); 12718 } 12719 } 12720 break; 12721 default: ProtocolUtil.skip(protocol, field.typeId); break; 12722 } 12723 protocol.readFieldEnd(); 12724 } 12725 protocol.readStructEnd(); 12726 if (ex1 != null) { 12727 throw ex1; 12728 } else if (ex2 != null) { 12729 throw ex2; 12730 } else { 12731 return null; 12732 } 12733 } 12734 } 12735 12736 private static final class ReleaseRootTokenCall extends MethodCall<Void> { 12737 private final Token token; 12738 12739 ReleaseRootTokenCall(Token token, ServiceMethodCallback<Void> callback) { 12740 super("releaseRootToken", TMessageType.CALL, callback); 12741 this.token = token; 12742 } 12743 12744 @Override 12745 protected void send(Protocol protocol) throws IOException { 12746 protocol.writeStructBegin("args"); 12747 if (this.token != null) { 12748 protocol.writeFieldBegin("token", 1, TType.STRUCT); 12749 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 12750 protocol.writeFieldEnd(); 12751 } 12752 protocol.writeFieldStop(); 12753 protocol.writeStructEnd(); 12754 } 12755 12756 @Override 12757 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12758 ServiceSecurityException ex1 = null; 12759 ServiceRuntimeException ex2 = null; 12760 protocol.readStructBegin(); 12761 while (true) { 12762 FieldMetadata field = protocol.readFieldBegin(); 12763 if (field.typeId == TType.STOP) { 12764 break; 12765 } 12766 switch (field.fieldId) { 12767 case 1: { 12768 if (field.typeId == TType.STRUCT) { 12769 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 12770 ex1 = value; 12771 } else { 12772 ProtocolUtil.skip(protocol, field.typeId); 12773 } 12774 } 12775 break; 12776 case 2: { 12777 if (field.typeId == TType.STRUCT) { 12778 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12779 ex2 = value; 12780 } else { 12781 ProtocolUtil.skip(protocol, field.typeId); 12782 } 12783 } 12784 break; 12785 default: ProtocolUtil.skip(protocol, field.typeId); break; 12786 } 12787 protocol.readFieldEnd(); 12788 } 12789 protocol.readStructEnd(); 12790 if (ex1 != null) { 12791 throw ex1; 12792 } else if (ex2 != null) { 12793 throw ex2; 12794 } else { 12795 return null; 12796 } 12797 } 12798 } 12799 12800 private static final class ReleaseUserTokenCall extends MethodCall<Void> { 12801 private final Token token; 12802 12803 ReleaseUserTokenCall(Token token, ServiceMethodCallback<Void> callback) { 12804 super("releaseUserToken", TMessageType.CALL, callback); 12805 this.token = token; 12806 } 12807 12808 @Override 12809 protected void send(Protocol protocol) throws IOException { 12810 protocol.writeStructBegin("args"); 12811 if (this.token != null) { 12812 protocol.writeFieldBegin("token", 1, TType.STRUCT); 12813 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 12814 protocol.writeFieldEnd(); 12815 } 12816 protocol.writeFieldStop(); 12817 protocol.writeStructEnd(); 12818 } 12819 12820 @Override 12821 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12822 ServiceSecurityException ex1 = null; 12823 ServiceRuntimeException ex2 = null; 12824 protocol.readStructBegin(); 12825 while (true) { 12826 FieldMetadata field = protocol.readFieldBegin(); 12827 if (field.typeId == TType.STOP) { 12828 break; 12829 } 12830 switch (field.fieldId) { 12831 case 1: { 12832 if (field.typeId == TType.STRUCT) { 12833 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 12834 ex1 = value; 12835 } else { 12836 ProtocolUtil.skip(protocol, field.typeId); 12837 } 12838 } 12839 break; 12840 case 2: { 12841 if (field.typeId == TType.STRUCT) { 12842 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12843 ex2 = value; 12844 } else { 12845 ProtocolUtil.skip(protocol, field.typeId); 12846 } 12847 } 12848 break; 12849 default: ProtocolUtil.skip(protocol, field.typeId); break; 12850 } 12851 protocol.readFieldEnd(); 12852 } 12853 protocol.readStructEnd(); 12854 if (ex1 != null) { 12855 throw ex1; 12856 } else if (ex2 != null) { 12857 throw ex2; 12858 } else { 12859 return null; 12860 } 12861 } 12862 } 12863 12864 private static final class ReplaceFeatureCall extends MethodCall<Void> { 12865 private final Integer personId; 12866 12867 private final String featureMd5; 12868 12869 private final Boolean deleteOldFeatureImage; 12870 12871 private final Token token; 12872 12873 ReplaceFeatureCall(Integer personId, String featureMd5, Boolean deleteOldFeatureImage, 12874 Token token, ServiceMethodCallback<Void> callback) { 12875 super("replaceFeature", TMessageType.CALL, callback); 12876 if (personId == null) throw new NullPointerException("personId"); 12877 this.personId = personId; 12878 this.featureMd5 = featureMd5; 12879 if (deleteOldFeatureImage == null) throw new NullPointerException("deleteOldFeatureImage"); 12880 this.deleteOldFeatureImage = deleteOldFeatureImage; 12881 this.token = token; 12882 } 12883 12884 @Override 12885 protected void send(Protocol protocol) throws IOException { 12886 protocol.writeStructBegin("args"); 12887 protocol.writeFieldBegin("personId", 1, TType.I32); 12888 protocol.writeI32(this.personId); 12889 protocol.writeFieldEnd(); 12890 if (this.featureMd5 != null) { 12891 protocol.writeFieldBegin("featureMd5", 2, TType.STRING); 12892 protocol.writeString(this.featureMd5); 12893 protocol.writeFieldEnd(); 12894 } 12895 protocol.writeFieldBegin("deleteOldFeatureImage", 3, TType.BOOL); 12896 protocol.writeBool(this.deleteOldFeatureImage); 12897 protocol.writeFieldEnd(); 12898 if (this.token != null) { 12899 protocol.writeFieldBegin("token", 4, TType.STRUCT); 12900 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 12901 protocol.writeFieldEnd(); 12902 } 12903 protocol.writeFieldStop(); 12904 protocol.writeStructEnd(); 12905 } 12906 12907 @Override 12908 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12909 ServiceRuntimeException ex1 = null; 12910 protocol.readStructBegin(); 12911 while (true) { 12912 FieldMetadata field = protocol.readFieldBegin(); 12913 if (field.typeId == TType.STOP) { 12914 break; 12915 } 12916 switch (field.fieldId) { 12917 case 1: { 12918 if (field.typeId == TType.STRUCT) { 12919 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12920 ex1 = value; 12921 } else { 12922 ProtocolUtil.skip(protocol, field.typeId); 12923 } 12924 } 12925 break; 12926 default: ProtocolUtil.skip(protocol, field.typeId); break; 12927 } 12928 protocol.readFieldEnd(); 12929 } 12930 protocol.readStructEnd(); 12931 if (ex1 != null) { 12932 throw ex1; 12933 } else { 12934 return null; 12935 } 12936 } 12937 } 12938 12939 private static final class RootGroupOfDeviceCall extends MethodCall<Integer> { 12940 private final Integer deviceId; 12941 12942 RootGroupOfDeviceCall(Integer deviceId, ServiceMethodCallback<Integer> callback) { 12943 super("rootGroupOfDevice", TMessageType.CALL, callback); 12944 if (deviceId == null) throw new NullPointerException("deviceId"); 12945 this.deviceId = deviceId; 12946 } 12947 12948 @Override 12949 protected void send(Protocol protocol) throws IOException { 12950 protocol.writeStructBegin("args"); 12951 protocol.writeFieldBegin("deviceId", 1, TType.I32); 12952 protocol.writeI32(this.deviceId); 12953 protocol.writeFieldEnd(); 12954 protocol.writeFieldStop(); 12955 protocol.writeStructEnd(); 12956 } 12957 12958 @Override 12959 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 12960 Integer result = null; 12961 ServiceRuntimeException ex1 = null; 12962 protocol.readStructBegin(); 12963 while (true) { 12964 FieldMetadata field = protocol.readFieldBegin(); 12965 if (field.typeId == TType.STOP) { 12966 break; 12967 } 12968 switch (field.fieldId) { 12969 case 0: { 12970 if (field.typeId == TType.I32) { 12971 int value = protocol.readI32(); 12972 result = value; 12973 } else { 12974 ProtocolUtil.skip(protocol, field.typeId); 12975 } 12976 } 12977 break; 12978 case 1: { 12979 if (field.typeId == TType.STRUCT) { 12980 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 12981 ex1 = value; 12982 } else { 12983 ProtocolUtil.skip(protocol, field.typeId); 12984 } 12985 } 12986 break; 12987 default: ProtocolUtil.skip(protocol, field.typeId); break; 12988 } 12989 protocol.readFieldEnd(); 12990 } 12991 protocol.readStructEnd(); 12992 if (result != null) { 12993 return result; 12994 } else if (ex1 != null) { 12995 throw ex1; 12996 } else { 12997 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 12998 } 12999 } 13000 } 13001 13002 private static final class RootGroupOfDeviceGroupCall extends MethodCall<Integer> { 13003 private final Integer groupId; 13004 13005 RootGroupOfDeviceGroupCall(Integer groupId, ServiceMethodCallback<Integer> callback) { 13006 super("rootGroupOfDeviceGroup", TMessageType.CALL, callback); 13007 if (groupId == null) throw new NullPointerException("groupId"); 13008 this.groupId = groupId; 13009 } 13010 13011 @Override 13012 protected void send(Protocol protocol) throws IOException { 13013 protocol.writeStructBegin("args"); 13014 protocol.writeFieldBegin("groupId", 1, TType.I32); 13015 protocol.writeI32(this.groupId); 13016 protocol.writeFieldEnd(); 13017 protocol.writeFieldStop(); 13018 protocol.writeStructEnd(); 13019 } 13020 13021 @Override 13022 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13023 Integer result = null; 13024 ServiceRuntimeException ex1 = null; 13025 protocol.readStructBegin(); 13026 while (true) { 13027 FieldMetadata field = protocol.readFieldBegin(); 13028 if (field.typeId == TType.STOP) { 13029 break; 13030 } 13031 switch (field.fieldId) { 13032 case 0: { 13033 if (field.typeId == TType.I32) { 13034 int value = protocol.readI32(); 13035 result = value; 13036 } else { 13037 ProtocolUtil.skip(protocol, field.typeId); 13038 } 13039 } 13040 break; 13041 case 1: { 13042 if (field.typeId == TType.STRUCT) { 13043 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13044 ex1 = value; 13045 } else { 13046 ProtocolUtil.skip(protocol, field.typeId); 13047 } 13048 } 13049 break; 13050 default: ProtocolUtil.skip(protocol, field.typeId); break; 13051 } 13052 protocol.readFieldEnd(); 13053 } 13054 protocol.readStructEnd(); 13055 if (result != null) { 13056 return result; 13057 } else if (ex1 != null) { 13058 throw ex1; 13059 } else { 13060 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13061 } 13062 } 13063 } 13064 13065 private static final class RootGroupOfPersonCall extends MethodCall<Integer> { 13066 private final Integer personId; 13067 13068 RootGroupOfPersonCall(Integer personId, ServiceMethodCallback<Integer> callback) { 13069 super("rootGroupOfPerson", TMessageType.CALL, callback); 13070 if (personId == null) throw new NullPointerException("personId"); 13071 this.personId = personId; 13072 } 13073 13074 @Override 13075 protected void send(Protocol protocol) throws IOException { 13076 protocol.writeStructBegin("args"); 13077 protocol.writeFieldBegin("personId", 1, TType.I32); 13078 protocol.writeI32(this.personId); 13079 protocol.writeFieldEnd(); 13080 protocol.writeFieldStop(); 13081 protocol.writeStructEnd(); 13082 } 13083 13084 @Override 13085 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13086 Integer result = null; 13087 ServiceRuntimeException ex1 = null; 13088 protocol.readStructBegin(); 13089 while (true) { 13090 FieldMetadata field = protocol.readFieldBegin(); 13091 if (field.typeId == TType.STOP) { 13092 break; 13093 } 13094 switch (field.fieldId) { 13095 case 0: { 13096 if (field.typeId == TType.I32) { 13097 int value = protocol.readI32(); 13098 result = value; 13099 } else { 13100 ProtocolUtil.skip(protocol, field.typeId); 13101 } 13102 } 13103 break; 13104 case 1: { 13105 if (field.typeId == TType.STRUCT) { 13106 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13107 ex1 = value; 13108 } else { 13109 ProtocolUtil.skip(protocol, field.typeId); 13110 } 13111 } 13112 break; 13113 default: ProtocolUtil.skip(protocol, field.typeId); break; 13114 } 13115 protocol.readFieldEnd(); 13116 } 13117 protocol.readStructEnd(); 13118 if (result != null) { 13119 return result; 13120 } else if (ex1 != null) { 13121 throw ex1; 13122 } else { 13123 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13124 } 13125 } 13126 } 13127 13128 private static final class RootGroupOfPersonGroupCall extends MethodCall<Integer> { 13129 private final Integer groupId; 13130 13131 RootGroupOfPersonGroupCall(Integer groupId, ServiceMethodCallback<Integer> callback) { 13132 super("rootGroupOfPersonGroup", TMessageType.CALL, callback); 13133 if (groupId == null) throw new NullPointerException("groupId"); 13134 this.groupId = groupId; 13135 } 13136 13137 @Override 13138 protected void send(Protocol protocol) throws IOException { 13139 protocol.writeStructBegin("args"); 13140 protocol.writeFieldBegin("groupId", 1, TType.I32); 13141 protocol.writeI32(this.groupId); 13142 protocol.writeFieldEnd(); 13143 protocol.writeFieldStop(); 13144 protocol.writeStructEnd(); 13145 } 13146 13147 @Override 13148 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13149 Integer result = null; 13150 ServiceRuntimeException ex1 = null; 13151 protocol.readStructBegin(); 13152 while (true) { 13153 FieldMetadata field = protocol.readFieldBegin(); 13154 if (field.typeId == TType.STOP) { 13155 break; 13156 } 13157 switch (field.fieldId) { 13158 case 0: { 13159 if (field.typeId == TType.I32) { 13160 int value = protocol.readI32(); 13161 result = value; 13162 } else { 13163 ProtocolUtil.skip(protocol, field.typeId); 13164 } 13165 } 13166 break; 13167 case 1: { 13168 if (field.typeId == TType.STRUCT) { 13169 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13170 ex1 = value; 13171 } else { 13172 ProtocolUtil.skip(protocol, field.typeId); 13173 } 13174 } 13175 break; 13176 default: ProtocolUtil.skip(protocol, field.typeId); break; 13177 } 13178 protocol.readFieldEnd(); 13179 } 13180 protocol.readStructEnd(); 13181 if (result != null) { 13182 return result; 13183 } else if (ex1 != null) { 13184 throw ex1; 13185 } else { 13186 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13187 } 13188 } 13189 } 13190 13191 private static final class RunCmdCall extends MethodCall<String> { 13192 private final List<Integer> target; 13193 13194 private final Boolean group; 13195 13196 private final String cmdpath; 13197 13198 private final String jsonArgs; 13199 13200 private final String ackChannel; 13201 13202 private final Token token; 13203 13204 RunCmdCall(List<Integer> target, Boolean group, String cmdpath, String jsonArgs, 13205 String ackChannel, Token token, ServiceMethodCallback<String> callback) { 13206 super("runCmd", TMessageType.CALL, callback); 13207 this.target = target; 13208 if (group == null) throw new NullPointerException("group"); 13209 this.group = group; 13210 this.cmdpath = cmdpath; 13211 this.jsonArgs = jsonArgs; 13212 this.ackChannel = ackChannel; 13213 this.token = token; 13214 } 13215 13216 @Override 13217 protected void send(Protocol protocol) throws IOException { 13218 protocol.writeStructBegin("args"); 13219 if (this.target != null) { 13220 protocol.writeFieldBegin("target", 1, TType.LIST); 13221 protocol.writeListBegin(TType.I32, this.target.size()); 13222 for (Integer item0 : this.target) { 13223 protocol.writeI32(item0); 13224 } 13225 protocol.writeListEnd(); 13226 protocol.writeFieldEnd(); 13227 } 13228 protocol.writeFieldBegin("group", 2, TType.BOOL); 13229 protocol.writeBool(this.group); 13230 protocol.writeFieldEnd(); 13231 if (this.cmdpath != null) { 13232 protocol.writeFieldBegin("cmdpath", 3, TType.STRING); 13233 protocol.writeString(this.cmdpath); 13234 protocol.writeFieldEnd(); 13235 } 13236 if (this.jsonArgs != null) { 13237 protocol.writeFieldBegin("jsonArgs", 4, TType.STRING); 13238 protocol.writeString(this.jsonArgs); 13239 protocol.writeFieldEnd(); 13240 } 13241 if (this.ackChannel != null) { 13242 protocol.writeFieldBegin("ackChannel", 5, TType.STRING); 13243 protocol.writeString(this.ackChannel); 13244 protocol.writeFieldEnd(); 13245 } 13246 if (this.token != null) { 13247 protocol.writeFieldBegin("token", 6, TType.STRUCT); 13248 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13249 protocol.writeFieldEnd(); 13250 } 13251 protocol.writeFieldStop(); 13252 protocol.writeStructEnd(); 13253 } 13254 13255 @Override 13256 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13257 String result = null; 13258 ServiceRuntimeException ex1 = null; 13259 protocol.readStructBegin(); 13260 while (true) { 13261 FieldMetadata field = protocol.readFieldBegin(); 13262 if (field.typeId == TType.STOP) { 13263 break; 13264 } 13265 switch (field.fieldId) { 13266 case 0: { 13267 if (field.typeId == TType.STRING) { 13268 String value = protocol.readString(); 13269 result = value; 13270 } else { 13271 ProtocolUtil.skip(protocol, field.typeId); 13272 } 13273 } 13274 break; 13275 case 1: { 13276 if (field.typeId == TType.STRUCT) { 13277 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13278 ex1 = value; 13279 } else { 13280 ProtocolUtil.skip(protocol, field.typeId); 13281 } 13282 } 13283 break; 13284 default: ProtocolUtil.skip(protocol, field.typeId); break; 13285 } 13286 protocol.readFieldEnd(); 13287 } 13288 protocol.readStructEnd(); 13289 if (result != null) { 13290 return result; 13291 } else if (ex1 != null) { 13292 throw ex1; 13293 } else { 13294 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13295 } 13296 } 13297 } 13298 13299 private static final class RunTaskCall extends MethodCall<Integer> { 13300 private final String taskQueue; 13301 13302 private final String cmdpath; 13303 13304 private final String jsonArgs; 13305 13306 private final String ackChannel; 13307 13308 private final Token token; 13309 13310 RunTaskCall(String taskQueue, String cmdpath, String jsonArgs, String ackChannel, Token token, 13311 ServiceMethodCallback<Integer> callback) { 13312 super("runTask", TMessageType.CALL, callback); 13313 this.taskQueue = taskQueue; 13314 this.cmdpath = cmdpath; 13315 this.jsonArgs = jsonArgs; 13316 this.ackChannel = ackChannel; 13317 this.token = token; 13318 } 13319 13320 @Override 13321 protected void send(Protocol protocol) throws IOException { 13322 protocol.writeStructBegin("args"); 13323 if (this.taskQueue != null) { 13324 protocol.writeFieldBegin("taskQueue", 1, TType.STRING); 13325 protocol.writeString(this.taskQueue); 13326 protocol.writeFieldEnd(); 13327 } 13328 if (this.cmdpath != null) { 13329 protocol.writeFieldBegin("cmdpath", 2, TType.STRING); 13330 protocol.writeString(this.cmdpath); 13331 protocol.writeFieldEnd(); 13332 } 13333 if (this.jsonArgs != null) { 13334 protocol.writeFieldBegin("jsonArgs", 3, TType.STRING); 13335 protocol.writeString(this.jsonArgs); 13336 protocol.writeFieldEnd(); 13337 } 13338 if (this.ackChannel != null) { 13339 protocol.writeFieldBegin("ackChannel", 4, TType.STRING); 13340 protocol.writeString(this.ackChannel); 13341 protocol.writeFieldEnd(); 13342 } 13343 if (this.token != null) { 13344 protocol.writeFieldBegin("token", 5, TType.STRUCT); 13345 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13346 protocol.writeFieldEnd(); 13347 } 13348 protocol.writeFieldStop(); 13349 protocol.writeStructEnd(); 13350 } 13351 13352 @Override 13353 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13354 Integer result = null; 13355 ServiceRuntimeException ex1 = null; 13356 protocol.readStructBegin(); 13357 while (true) { 13358 FieldMetadata field = protocol.readFieldBegin(); 13359 if (field.typeId == TType.STOP) { 13360 break; 13361 } 13362 switch (field.fieldId) { 13363 case 0: { 13364 if (field.typeId == TType.I32) { 13365 int value = protocol.readI32(); 13366 result = value; 13367 } else { 13368 ProtocolUtil.skip(protocol, field.typeId); 13369 } 13370 } 13371 break; 13372 case 1: { 13373 if (field.typeId == TType.STRUCT) { 13374 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13375 ex1 = value; 13376 } else { 13377 ProtocolUtil.skip(protocol, field.typeId); 13378 } 13379 } 13380 break; 13381 default: ProtocolUtil.skip(protocol, field.typeId); break; 13382 } 13383 protocol.readFieldEnd(); 13384 } 13385 protocol.readStructEnd(); 13386 if (result != null) { 13387 return result; 13388 } else if (ex1 != null) { 13389 throw ex1; 13390 } else { 13391 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13392 } 13393 } 13394 } 13395 13396 private static final class RunTaskSyncCall extends MethodCall<String> { 13397 private final String taskQueue; 13398 13399 private final String cmdpath; 13400 13401 private final String jsonArgs; 13402 13403 private final Integer timeoutSecs; 13404 13405 private final Token token; 13406 13407 RunTaskSyncCall(String taskQueue, String cmdpath, String jsonArgs, Integer timeoutSecs, 13408 Token token, ServiceMethodCallback<String> callback) { 13409 super("runTaskSync", TMessageType.CALL, callback); 13410 this.taskQueue = taskQueue; 13411 this.cmdpath = cmdpath; 13412 this.jsonArgs = jsonArgs; 13413 if (timeoutSecs == null) throw new NullPointerException("timeoutSecs"); 13414 this.timeoutSecs = timeoutSecs; 13415 this.token = token; 13416 } 13417 13418 @Override 13419 protected void send(Protocol protocol) throws IOException { 13420 protocol.writeStructBegin("args"); 13421 if (this.taskQueue != null) { 13422 protocol.writeFieldBegin("taskQueue", 1, TType.STRING); 13423 protocol.writeString(this.taskQueue); 13424 protocol.writeFieldEnd(); 13425 } 13426 if (this.cmdpath != null) { 13427 protocol.writeFieldBegin("cmdpath", 2, TType.STRING); 13428 protocol.writeString(this.cmdpath); 13429 protocol.writeFieldEnd(); 13430 } 13431 if (this.jsonArgs != null) { 13432 protocol.writeFieldBegin("jsonArgs", 3, TType.STRING); 13433 protocol.writeString(this.jsonArgs); 13434 protocol.writeFieldEnd(); 13435 } 13436 protocol.writeFieldBegin("timeoutSecs", 4, TType.I32); 13437 protocol.writeI32(this.timeoutSecs); 13438 protocol.writeFieldEnd(); 13439 if (this.token != null) { 13440 protocol.writeFieldBegin("token", 5, TType.STRUCT); 13441 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13442 protocol.writeFieldEnd(); 13443 } 13444 protocol.writeFieldStop(); 13445 protocol.writeStructEnd(); 13446 } 13447 13448 @Override 13449 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13450 String result = null; 13451 ServiceRuntimeException ex1 = null; 13452 protocol.readStructBegin(); 13453 while (true) { 13454 FieldMetadata field = protocol.readFieldBegin(); 13455 if (field.typeId == TType.STOP) { 13456 break; 13457 } 13458 switch (field.fieldId) { 13459 case 0: { 13460 if (field.typeId == TType.STRING) { 13461 String value = protocol.readString(); 13462 result = value; 13463 } else { 13464 ProtocolUtil.skip(protocol, field.typeId); 13465 } 13466 } 13467 break; 13468 case 1: { 13469 if (field.typeId == TType.STRUCT) { 13470 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13471 ex1 = value; 13472 } else { 13473 ProtocolUtil.skip(protocol, field.typeId); 13474 } 13475 } 13476 break; 13477 default: ProtocolUtil.skip(protocol, field.typeId); break; 13478 } 13479 protocol.readFieldEnd(); 13480 } 13481 protocol.readStructEnd(); 13482 if (result != null) { 13483 return result; 13484 } else if (ex1 != null) { 13485 throw ex1; 13486 } else { 13487 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13488 } 13489 } 13490 } 13491 13492 private static final class SaveDeviceCall extends MethodCall<DeviceBean> { 13493 private final DeviceBean deviceBean; 13494 13495 private final Token token; 13496 13497 SaveDeviceCall(DeviceBean deviceBean, Token token, ServiceMethodCallback<DeviceBean> callback) { 13498 super("saveDevice", TMessageType.CALL, callback); 13499 this.deviceBean = deviceBean; 13500 this.token = token; 13501 } 13502 13503 @Override 13504 protected void send(Protocol protocol) throws IOException { 13505 protocol.writeStructBegin("args"); 13506 if (this.deviceBean != null) { 13507 protocol.writeFieldBegin("deviceBean", 1, TType.STRUCT); 13508 net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.write(protocol, this.deviceBean); 13509 protocol.writeFieldEnd(); 13510 } 13511 if (this.token != null) { 13512 protocol.writeFieldBegin("token", 2, TType.STRUCT); 13513 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13514 protocol.writeFieldEnd(); 13515 } 13516 protocol.writeFieldStop(); 13517 protocol.writeStructEnd(); 13518 } 13519 13520 @Override 13521 protected DeviceBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13522 DeviceBean result = null; 13523 ServiceRuntimeException ex1 = null; 13524 protocol.readStructBegin(); 13525 while (true) { 13526 FieldMetadata field = protocol.readFieldBegin(); 13527 if (field.typeId == TType.STOP) { 13528 break; 13529 } 13530 switch (field.fieldId) { 13531 case 0: { 13532 if (field.typeId == TType.STRUCT) { 13533 net.gdface.facelog.client.thrift.DeviceBean value = net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.read(protocol); 13534 result = value; 13535 } else { 13536 ProtocolUtil.skip(protocol, field.typeId); 13537 } 13538 } 13539 break; 13540 case 1: { 13541 if (field.typeId == TType.STRUCT) { 13542 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13543 ex1 = value; 13544 } else { 13545 ProtocolUtil.skip(protocol, field.typeId); 13546 } 13547 } 13548 break; 13549 default: ProtocolUtil.skip(protocol, field.typeId); break; 13550 } 13551 protocol.readFieldEnd(); 13552 } 13553 protocol.readStructEnd(); 13554 if (result != null) { 13555 return result; 13556 } else if (ex1 != null) { 13557 throw ex1; 13558 } else { 13559 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13560 } 13561 } 13562 } 13563 13564 private static final class SaveDeviceGroupCall extends MethodCall<DeviceGroupBean> { 13565 private final DeviceGroupBean deviceGroupBean; 13566 13567 private final Token token; 13568 13569 SaveDeviceGroupCall(DeviceGroupBean deviceGroupBean, Token token, 13570 ServiceMethodCallback<DeviceGroupBean> callback) { 13571 super("saveDeviceGroup", TMessageType.CALL, callback); 13572 this.deviceGroupBean = deviceGroupBean; 13573 this.token = token; 13574 } 13575 13576 @Override 13577 protected void send(Protocol protocol) throws IOException { 13578 protocol.writeStructBegin("args"); 13579 if (this.deviceGroupBean != null) { 13580 protocol.writeFieldBegin("deviceGroupBean", 1, TType.STRUCT); 13581 net.gdface.facelog.client.thrift.DeviceGroupBean.ADAPTER.write(protocol, this.deviceGroupBean); 13582 protocol.writeFieldEnd(); 13583 } 13584 if (this.token != null) { 13585 protocol.writeFieldBegin("token", 2, TType.STRUCT); 13586 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13587 protocol.writeFieldEnd(); 13588 } 13589 protocol.writeFieldStop(); 13590 protocol.writeStructEnd(); 13591 } 13592 13593 @Override 13594 protected DeviceGroupBean receive(Protocol protocol, MessageMetadata metadata) throws 13595 Exception { 13596 DeviceGroupBean result = null; 13597 ServiceRuntimeException ex1 = null; 13598 protocol.readStructBegin(); 13599 while (true) { 13600 FieldMetadata field = protocol.readFieldBegin(); 13601 if (field.typeId == TType.STOP) { 13602 break; 13603 } 13604 switch (field.fieldId) { 13605 case 0: { 13606 if (field.typeId == TType.STRUCT) { 13607 net.gdface.facelog.client.thrift.DeviceGroupBean value = net.gdface.facelog.client.thrift.DeviceGroupBean.ADAPTER.read(protocol); 13608 result = value; 13609 } else { 13610 ProtocolUtil.skip(protocol, field.typeId); 13611 } 13612 } 13613 break; 13614 case 1: { 13615 if (field.typeId == TType.STRUCT) { 13616 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13617 ex1 = value; 13618 } else { 13619 ProtocolUtil.skip(protocol, field.typeId); 13620 } 13621 } 13622 break; 13623 default: ProtocolUtil.skip(protocol, field.typeId); break; 13624 } 13625 protocol.readFieldEnd(); 13626 } 13627 protocol.readStructEnd(); 13628 if (result != null) { 13629 return result; 13630 } else if (ex1 != null) { 13631 throw ex1; 13632 } else { 13633 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13634 } 13635 } 13636 } 13637 13638 private static final class SavePermitCall extends MethodCall<PermitBean> { 13639 private final PermitBean permitBean; 13640 13641 private final Token token; 13642 13643 SavePermitCall(PermitBean permitBean, Token token, ServiceMethodCallback<PermitBean> callback) { 13644 super("savePermit", TMessageType.CALL, callback); 13645 this.permitBean = permitBean; 13646 this.token = token; 13647 } 13648 13649 @Override 13650 protected void send(Protocol protocol) throws IOException { 13651 protocol.writeStructBegin("args"); 13652 if (this.permitBean != null) { 13653 protocol.writeFieldBegin("permitBean", 1, TType.STRUCT); 13654 net.gdface.facelog.client.thrift.PermitBean.ADAPTER.write(protocol, this.permitBean); 13655 protocol.writeFieldEnd(); 13656 } 13657 if (this.token != null) { 13658 protocol.writeFieldBegin("token", 2, TType.STRUCT); 13659 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13660 protocol.writeFieldEnd(); 13661 } 13662 protocol.writeFieldStop(); 13663 protocol.writeStructEnd(); 13664 } 13665 13666 @Override 13667 protected PermitBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13668 PermitBean result = null; 13669 ServiceRuntimeException ex1 = null; 13670 protocol.readStructBegin(); 13671 while (true) { 13672 FieldMetadata field = protocol.readFieldBegin(); 13673 if (field.typeId == TType.STOP) { 13674 break; 13675 } 13676 switch (field.fieldId) { 13677 case 0: { 13678 if (field.typeId == TType.STRUCT) { 13679 net.gdface.facelog.client.thrift.PermitBean value = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 13680 result = value; 13681 } else { 13682 ProtocolUtil.skip(protocol, field.typeId); 13683 } 13684 } 13685 break; 13686 case 1: { 13687 if (field.typeId == TType.STRUCT) { 13688 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13689 ex1 = value; 13690 } else { 13691 ProtocolUtil.skip(protocol, field.typeId); 13692 } 13693 } 13694 break; 13695 default: ProtocolUtil.skip(protocol, field.typeId); break; 13696 } 13697 protocol.readFieldEnd(); 13698 } 13699 protocol.readStructEnd(); 13700 if (result != null) { 13701 return result; 13702 } else if (ex1 != null) { 13703 throw ex1; 13704 } else { 13705 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13706 } 13707 } 13708 } 13709 13710 private static final class SavePermitWithColumnCall extends MethodCall<PermitBean> { 13711 private final Integer deviceGroupId; 13712 13713 private final Integer personGroupId; 13714 13715 private final String column; 13716 13717 private final String value; 13718 13719 private final Token token; 13720 13721 SavePermitWithColumnCall(Integer deviceGroupId, Integer personGroupId, String column, 13722 String value, Token token, ServiceMethodCallback<PermitBean> callback) { 13723 super("savePermitWithColumn", TMessageType.CALL, callback); 13724 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 13725 this.deviceGroupId = deviceGroupId; 13726 if (personGroupId == null) throw new NullPointerException("personGroupId"); 13727 this.personGroupId = personGroupId; 13728 this.column = column; 13729 this.value = value; 13730 this.token = token; 13731 } 13732 13733 @Override 13734 protected void send(Protocol protocol) throws IOException { 13735 protocol.writeStructBegin("args"); 13736 protocol.writeFieldBegin("deviceGroupId", 1, TType.I32); 13737 protocol.writeI32(this.deviceGroupId); 13738 protocol.writeFieldEnd(); 13739 protocol.writeFieldBegin("personGroupId", 2, TType.I32); 13740 protocol.writeI32(this.personGroupId); 13741 protocol.writeFieldEnd(); 13742 if (this.column != null) { 13743 protocol.writeFieldBegin("column", 3, TType.STRING); 13744 protocol.writeString(this.column); 13745 protocol.writeFieldEnd(); 13746 } 13747 if (this.value != null) { 13748 protocol.writeFieldBegin("value", 4, TType.STRING); 13749 protocol.writeString(this.value); 13750 protocol.writeFieldEnd(); 13751 } 13752 if (this.token != null) { 13753 protocol.writeFieldBegin("token", 5, TType.STRUCT); 13754 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13755 protocol.writeFieldEnd(); 13756 } 13757 protocol.writeFieldStop(); 13758 protocol.writeStructEnd(); 13759 } 13760 13761 @Override 13762 protected PermitBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13763 PermitBean result = null; 13764 ServiceRuntimeException ex1 = null; 13765 protocol.readStructBegin(); 13766 while (true) { 13767 FieldMetadata field = protocol.readFieldBegin(); 13768 if (field.typeId == TType.STOP) { 13769 break; 13770 } 13771 switch (field.fieldId) { 13772 case 0: { 13773 if (field.typeId == TType.STRUCT) { 13774 net.gdface.facelog.client.thrift.PermitBean value = net.gdface.facelog.client.thrift.PermitBean.ADAPTER.read(protocol); 13775 result = value; 13776 } else { 13777 ProtocolUtil.skip(protocol, field.typeId); 13778 } 13779 } 13780 break; 13781 case 1: { 13782 if (field.typeId == TType.STRUCT) { 13783 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13784 ex1 = value; 13785 } else { 13786 ProtocolUtil.skip(protocol, field.typeId); 13787 } 13788 } 13789 break; 13790 default: ProtocolUtil.skip(protocol, field.typeId); break; 13791 } 13792 protocol.readFieldEnd(); 13793 } 13794 protocol.readStructEnd(); 13795 if (result != null) { 13796 return result; 13797 } else if (ex1 != null) { 13798 throw ex1; 13799 } else { 13800 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13801 } 13802 } 13803 } 13804 13805 private static final class SavePersonCall extends MethodCall<PersonBean> { 13806 private final PersonBean personBean; 13807 13808 private final Token token; 13809 13810 SavePersonCall(PersonBean personBean, Token token, ServiceMethodCallback<PersonBean> callback) { 13811 super("savePerson", TMessageType.CALL, callback); 13812 this.personBean = personBean; 13813 this.token = token; 13814 } 13815 13816 @Override 13817 protected void send(Protocol protocol) throws IOException { 13818 protocol.writeStructBegin("args"); 13819 if (this.personBean != null) { 13820 protocol.writeFieldBegin("personBean", 1, TType.STRUCT); 13821 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, this.personBean); 13822 protocol.writeFieldEnd(); 13823 } 13824 if (this.token != null) { 13825 protocol.writeFieldBegin("token", 2, TType.STRUCT); 13826 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13827 protocol.writeFieldEnd(); 13828 } 13829 protocol.writeFieldStop(); 13830 protocol.writeStructEnd(); 13831 } 13832 13833 @Override 13834 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13835 PersonBean result = null; 13836 ServiceRuntimeException ex1 = null; 13837 protocol.readStructBegin(); 13838 while (true) { 13839 FieldMetadata field = protocol.readFieldBegin(); 13840 if (field.typeId == TType.STOP) { 13841 break; 13842 } 13843 switch (field.fieldId) { 13844 case 0: { 13845 if (field.typeId == TType.STRUCT) { 13846 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 13847 result = value; 13848 } else { 13849 ProtocolUtil.skip(protocol, field.typeId); 13850 } 13851 } 13852 break; 13853 case 1: { 13854 if (field.typeId == TType.STRUCT) { 13855 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13856 ex1 = value; 13857 } else { 13858 ProtocolUtil.skip(protocol, field.typeId); 13859 } 13860 } 13861 break; 13862 default: ProtocolUtil.skip(protocol, field.typeId); break; 13863 } 13864 protocol.readFieldEnd(); 13865 } 13866 protocol.readStructEnd(); 13867 if (result != null) { 13868 return result; 13869 } else if (ex1 != null) { 13870 throw ex1; 13871 } else { 13872 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13873 } 13874 } 13875 } 13876 13877 private static final class SavePersonFullCall extends MethodCall<PersonBean> { 13878 private final PersonBean personBean; 13879 13880 private final ByteString idPhoto; 13881 13882 private final ByteString feature; 13883 13884 private final String featureVersion; 13885 13886 private final ByteString featureImage; 13887 13888 private final FaceBean faceBean; 13889 13890 private final Token token; 13891 13892 SavePersonFullCall(PersonBean personBean, ByteString idPhoto, ByteString feature, 13893 String featureVersion, ByteString featureImage, FaceBean faceBean, Token token, 13894 ServiceMethodCallback<PersonBean> callback) { 13895 super("savePersonFull", TMessageType.CALL, callback); 13896 this.personBean = personBean; 13897 this.idPhoto = idPhoto; 13898 this.feature = feature; 13899 this.featureVersion = featureVersion; 13900 this.featureImage = featureImage; 13901 this.faceBean = faceBean; 13902 this.token = token; 13903 } 13904 13905 @Override 13906 protected void send(Protocol protocol) throws IOException { 13907 protocol.writeStructBegin("args"); 13908 if (this.personBean != null) { 13909 protocol.writeFieldBegin("personBean", 1, TType.STRUCT); 13910 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, this.personBean); 13911 protocol.writeFieldEnd(); 13912 } 13913 if (this.idPhoto != null) { 13914 protocol.writeFieldBegin("idPhoto", 2, TType.STRING); 13915 protocol.writeBinary(this.idPhoto); 13916 protocol.writeFieldEnd(); 13917 } 13918 if (this.feature != null) { 13919 protocol.writeFieldBegin("feature", 3, TType.STRING); 13920 protocol.writeBinary(this.feature); 13921 protocol.writeFieldEnd(); 13922 } 13923 if (this.featureVersion != null) { 13924 protocol.writeFieldBegin("featureVersion", 4, TType.STRING); 13925 protocol.writeString(this.featureVersion); 13926 protocol.writeFieldEnd(); 13927 } 13928 if (this.featureImage != null) { 13929 protocol.writeFieldBegin("featureImage", 5, TType.STRING); 13930 protocol.writeBinary(this.featureImage); 13931 protocol.writeFieldEnd(); 13932 } 13933 if (this.faceBean != null) { 13934 protocol.writeFieldBegin("faceBean", 6, TType.STRUCT); 13935 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, this.faceBean); 13936 protocol.writeFieldEnd(); 13937 } 13938 if (this.token != null) { 13939 protocol.writeFieldBegin("token", 7, TType.STRUCT); 13940 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 13941 protocol.writeFieldEnd(); 13942 } 13943 protocol.writeFieldStop(); 13944 protocol.writeStructEnd(); 13945 } 13946 13947 @Override 13948 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 13949 PersonBean result = null; 13950 ServiceRuntimeException ex1 = null; 13951 protocol.readStructBegin(); 13952 while (true) { 13953 FieldMetadata field = protocol.readFieldBegin(); 13954 if (field.typeId == TType.STOP) { 13955 break; 13956 } 13957 switch (field.fieldId) { 13958 case 0: { 13959 if (field.typeId == TType.STRUCT) { 13960 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 13961 result = value; 13962 } else { 13963 ProtocolUtil.skip(protocol, field.typeId); 13964 } 13965 } 13966 break; 13967 case 1: { 13968 if (field.typeId == TType.STRUCT) { 13969 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 13970 ex1 = value; 13971 } else { 13972 ProtocolUtil.skip(protocol, field.typeId); 13973 } 13974 } 13975 break; 13976 default: ProtocolUtil.skip(protocol, field.typeId); break; 13977 } 13978 protocol.readFieldEnd(); 13979 } 13980 protocol.readStructEnd(); 13981 if (result != null) { 13982 return result; 13983 } else if (ex1 != null) { 13984 throw ex1; 13985 } else { 13986 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 13987 } 13988 } 13989 } 13990 13991 private static final class SavePersonGroupCall extends MethodCall<PersonGroupBean> { 13992 private final PersonGroupBean personGroupBean; 13993 13994 private final Token token; 13995 13996 SavePersonGroupCall(PersonGroupBean personGroupBean, Token token, 13997 ServiceMethodCallback<PersonGroupBean> callback) { 13998 super("savePersonGroup", TMessageType.CALL, callback); 13999 this.personGroupBean = personGroupBean; 14000 this.token = token; 14001 } 14002 14003 @Override 14004 protected void send(Protocol protocol) throws IOException { 14005 protocol.writeStructBegin("args"); 14006 if (this.personGroupBean != null) { 14007 protocol.writeFieldBegin("personGroupBean", 1, TType.STRUCT); 14008 net.gdface.facelog.client.thrift.PersonGroupBean.ADAPTER.write(protocol, this.personGroupBean); 14009 protocol.writeFieldEnd(); 14010 } 14011 if (this.token != null) { 14012 protocol.writeFieldBegin("token", 2, TType.STRUCT); 14013 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14014 protocol.writeFieldEnd(); 14015 } 14016 protocol.writeFieldStop(); 14017 protocol.writeStructEnd(); 14018 } 14019 14020 @Override 14021 protected PersonGroupBean receive(Protocol protocol, MessageMetadata metadata) throws 14022 Exception { 14023 PersonGroupBean result = null; 14024 ServiceRuntimeException ex1 = null; 14025 protocol.readStructBegin(); 14026 while (true) { 14027 FieldMetadata field = protocol.readFieldBegin(); 14028 if (field.typeId == TType.STOP) { 14029 break; 14030 } 14031 switch (field.fieldId) { 14032 case 0: { 14033 if (field.typeId == TType.STRUCT) { 14034 net.gdface.facelog.client.thrift.PersonGroupBean value = net.gdface.facelog.client.thrift.PersonGroupBean.ADAPTER.read(protocol); 14035 result = value; 14036 } else { 14037 ProtocolUtil.skip(protocol, field.typeId); 14038 } 14039 } 14040 break; 14041 case 1: { 14042 if (field.typeId == TType.STRUCT) { 14043 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14044 ex1 = value; 14045 } else { 14046 ProtocolUtil.skip(protocol, field.typeId); 14047 } 14048 } 14049 break; 14050 default: ProtocolUtil.skip(protocol, field.typeId); break; 14051 } 14052 protocol.readFieldEnd(); 14053 } 14054 protocol.readStructEnd(); 14055 if (result != null) { 14056 return result; 14057 } else if (ex1 != null) { 14058 throw ex1; 14059 } else { 14060 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 14061 } 14062 } 14063 } 14064 14065 private static final class SavePersonWithPhotoCall extends MethodCall<PersonBean> { 14066 private final PersonBean personBean; 14067 14068 private final ByteString idPhoto; 14069 14070 private final Token token; 14071 14072 SavePersonWithPhotoCall(PersonBean personBean, ByteString idPhoto, Token token, 14073 ServiceMethodCallback<PersonBean> callback) { 14074 super("savePersonWithPhoto", TMessageType.CALL, callback); 14075 this.personBean = personBean; 14076 this.idPhoto = idPhoto; 14077 this.token = token; 14078 } 14079 14080 @Override 14081 protected void send(Protocol protocol) throws IOException { 14082 protocol.writeStructBegin("args"); 14083 if (this.personBean != null) { 14084 protocol.writeFieldBegin("personBean", 1, TType.STRUCT); 14085 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, this.personBean); 14086 protocol.writeFieldEnd(); 14087 } 14088 if (this.idPhoto != null) { 14089 protocol.writeFieldBegin("idPhoto", 2, TType.STRING); 14090 protocol.writeBinary(this.idPhoto); 14091 protocol.writeFieldEnd(); 14092 } 14093 if (this.token != null) { 14094 protocol.writeFieldBegin("token", 3, TType.STRUCT); 14095 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14096 protocol.writeFieldEnd(); 14097 } 14098 protocol.writeFieldStop(); 14099 protocol.writeStructEnd(); 14100 } 14101 14102 @Override 14103 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14104 PersonBean result = null; 14105 ServiceRuntimeException ex1 = null; 14106 protocol.readStructBegin(); 14107 while (true) { 14108 FieldMetadata field = protocol.readFieldBegin(); 14109 if (field.typeId == TType.STOP) { 14110 break; 14111 } 14112 switch (field.fieldId) { 14113 case 0: { 14114 if (field.typeId == TType.STRUCT) { 14115 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 14116 result = value; 14117 } else { 14118 ProtocolUtil.skip(protocol, field.typeId); 14119 } 14120 } 14121 break; 14122 case 1: { 14123 if (field.typeId == TType.STRUCT) { 14124 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14125 ex1 = value; 14126 } else { 14127 ProtocolUtil.skip(protocol, field.typeId); 14128 } 14129 } 14130 break; 14131 default: ProtocolUtil.skip(protocol, field.typeId); break; 14132 } 14133 protocol.readFieldEnd(); 14134 } 14135 protocol.readStructEnd(); 14136 if (result != null) { 14137 return result; 14138 } else if (ex1 != null) { 14139 throw ex1; 14140 } else { 14141 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 14142 } 14143 } 14144 } 14145 14146 private static final class SavePersonWithPhotoAndFeatureCall extends MethodCall<PersonBean> { 14147 private final PersonBean personBean; 14148 14149 private final ByteString idPhoto; 14150 14151 private final FeatureBean featureBean; 14152 14153 private final Token token; 14154 14155 SavePersonWithPhotoAndFeatureCall(PersonBean personBean, ByteString idPhoto, 14156 FeatureBean featureBean, Token token, ServiceMethodCallback<PersonBean> callback) { 14157 super("savePersonWithPhotoAndFeature", TMessageType.CALL, callback); 14158 this.personBean = personBean; 14159 this.idPhoto = idPhoto; 14160 this.featureBean = featureBean; 14161 this.token = token; 14162 } 14163 14164 @Override 14165 protected void send(Protocol protocol) throws IOException { 14166 protocol.writeStructBegin("args"); 14167 if (this.personBean != null) { 14168 protocol.writeFieldBegin("personBean", 1, TType.STRUCT); 14169 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, this.personBean); 14170 protocol.writeFieldEnd(); 14171 } 14172 if (this.idPhoto != null) { 14173 protocol.writeFieldBegin("idPhoto", 2, TType.STRING); 14174 protocol.writeBinary(this.idPhoto); 14175 protocol.writeFieldEnd(); 14176 } 14177 if (this.featureBean != null) { 14178 protocol.writeFieldBegin("featureBean", 3, TType.STRUCT); 14179 net.gdface.facelog.client.thrift.FeatureBean.ADAPTER.write(protocol, this.featureBean); 14180 protocol.writeFieldEnd(); 14181 } 14182 if (this.token != null) { 14183 protocol.writeFieldBegin("token", 4, TType.STRUCT); 14184 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14185 protocol.writeFieldEnd(); 14186 } 14187 protocol.writeFieldStop(); 14188 protocol.writeStructEnd(); 14189 } 14190 14191 @Override 14192 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14193 PersonBean result = null; 14194 ServiceRuntimeException ex1 = null; 14195 protocol.readStructBegin(); 14196 while (true) { 14197 FieldMetadata field = protocol.readFieldBegin(); 14198 if (field.typeId == TType.STOP) { 14199 break; 14200 } 14201 switch (field.fieldId) { 14202 case 0: { 14203 if (field.typeId == TType.STRUCT) { 14204 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 14205 result = value; 14206 } else { 14207 ProtocolUtil.skip(protocol, field.typeId); 14208 } 14209 } 14210 break; 14211 case 1: { 14212 if (field.typeId == TType.STRUCT) { 14213 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14214 ex1 = value; 14215 } else { 14216 ProtocolUtil.skip(protocol, field.typeId); 14217 } 14218 } 14219 break; 14220 default: ProtocolUtil.skip(protocol, field.typeId); break; 14221 } 14222 protocol.readFieldEnd(); 14223 } 14224 protocol.readStructEnd(); 14225 if (result != null) { 14226 return result; 14227 } else if (ex1 != null) { 14228 throw ex1; 14229 } else { 14230 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 14231 } 14232 } 14233 } 14234 14235 private static final class SavePersonWithPhotoAndFeatureMultiFacesCall extends MethodCall<PersonBean> { 14236 private final PersonBean personBean; 14237 14238 private final ByteString idPhoto; 14239 14240 private final ByteString feature; 14241 14242 private final String featureVersion; 14243 14244 private final List<FaceBean> faceBeans; 14245 14246 private final Token token; 14247 14248 SavePersonWithPhotoAndFeatureMultiFacesCall(PersonBean personBean, ByteString idPhoto, 14249 ByteString feature, String featureVersion, List<FaceBean> faceBeans, Token token, 14250 ServiceMethodCallback<PersonBean> callback) { 14251 super("savePersonWithPhotoAndFeatureMultiFaces", TMessageType.CALL, callback); 14252 this.personBean = personBean; 14253 this.idPhoto = idPhoto; 14254 this.feature = feature; 14255 this.featureVersion = featureVersion; 14256 this.faceBeans = faceBeans; 14257 this.token = token; 14258 } 14259 14260 @Override 14261 protected void send(Protocol protocol) throws IOException { 14262 protocol.writeStructBegin("args"); 14263 if (this.personBean != null) { 14264 protocol.writeFieldBegin("personBean", 1, TType.STRUCT); 14265 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, this.personBean); 14266 protocol.writeFieldEnd(); 14267 } 14268 if (this.idPhoto != null) { 14269 protocol.writeFieldBegin("idPhoto", 2, TType.STRING); 14270 protocol.writeBinary(this.idPhoto); 14271 protocol.writeFieldEnd(); 14272 } 14273 if (this.feature != null) { 14274 protocol.writeFieldBegin("feature", 3, TType.STRING); 14275 protocol.writeBinary(this.feature); 14276 protocol.writeFieldEnd(); 14277 } 14278 if (this.featureVersion != null) { 14279 protocol.writeFieldBegin("featureVersion", 4, TType.STRING); 14280 protocol.writeString(this.featureVersion); 14281 protocol.writeFieldEnd(); 14282 } 14283 if (this.faceBeans != null) { 14284 protocol.writeFieldBegin("faceBeans", 5, TType.LIST); 14285 protocol.writeListBegin(TType.STRUCT, this.faceBeans.size()); 14286 for (FaceBean item0 : this.faceBeans) { 14287 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, item0); 14288 } 14289 protocol.writeListEnd(); 14290 protocol.writeFieldEnd(); 14291 } 14292 if (this.token != null) { 14293 protocol.writeFieldBegin("token", 6, TType.STRUCT); 14294 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14295 protocol.writeFieldEnd(); 14296 } 14297 protocol.writeFieldStop(); 14298 protocol.writeStructEnd(); 14299 } 14300 14301 @Override 14302 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14303 PersonBean result = null; 14304 ServiceRuntimeException ex1 = null; 14305 protocol.readStructBegin(); 14306 while (true) { 14307 FieldMetadata field = protocol.readFieldBegin(); 14308 if (field.typeId == TType.STOP) { 14309 break; 14310 } 14311 switch (field.fieldId) { 14312 case 0: { 14313 if (field.typeId == TType.STRUCT) { 14314 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 14315 result = value; 14316 } else { 14317 ProtocolUtil.skip(protocol, field.typeId); 14318 } 14319 } 14320 break; 14321 case 1: { 14322 if (field.typeId == TType.STRUCT) { 14323 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14324 ex1 = value; 14325 } else { 14326 ProtocolUtil.skip(protocol, field.typeId); 14327 } 14328 } 14329 break; 14330 default: ProtocolUtil.skip(protocol, field.typeId); break; 14331 } 14332 protocol.readFieldEnd(); 14333 } 14334 protocol.readStructEnd(); 14335 if (result != null) { 14336 return result; 14337 } else if (ex1 != null) { 14338 throw ex1; 14339 } else { 14340 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 14341 } 14342 } 14343 } 14344 14345 private static final class SavePersonWithPhotoAndFeatureMultiImageCall extends MethodCall<PersonBean> { 14346 private final PersonBean personBean; 14347 14348 private final ByteString idPhoto; 14349 14350 private final ByteString feature; 14351 14352 private final String featureVersion; 14353 14354 private final List<ByteString> photos; 14355 14356 private final List<FaceBean> faces; 14357 14358 private final Token token; 14359 14360 SavePersonWithPhotoAndFeatureMultiImageCall(PersonBean personBean, ByteString idPhoto, 14361 ByteString feature, String featureVersion, List<ByteString> photos, List<FaceBean> faces, 14362 Token token, ServiceMethodCallback<PersonBean> callback) { 14363 super("savePersonWithPhotoAndFeatureMultiImage", TMessageType.CALL, callback); 14364 this.personBean = personBean; 14365 this.idPhoto = idPhoto; 14366 this.feature = feature; 14367 this.featureVersion = featureVersion; 14368 this.photos = photos; 14369 this.faces = faces; 14370 this.token = token; 14371 } 14372 14373 @Override 14374 protected void send(Protocol protocol) throws IOException { 14375 protocol.writeStructBegin("args"); 14376 if (this.personBean != null) { 14377 protocol.writeFieldBegin("personBean", 1, TType.STRUCT); 14378 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, this.personBean); 14379 protocol.writeFieldEnd(); 14380 } 14381 if (this.idPhoto != null) { 14382 protocol.writeFieldBegin("idPhoto", 2, TType.STRING); 14383 protocol.writeBinary(this.idPhoto); 14384 protocol.writeFieldEnd(); 14385 } 14386 if (this.feature != null) { 14387 protocol.writeFieldBegin("feature", 3, TType.STRING); 14388 protocol.writeBinary(this.feature); 14389 protocol.writeFieldEnd(); 14390 } 14391 if (this.featureVersion != null) { 14392 protocol.writeFieldBegin("featureVersion", 4, TType.STRING); 14393 protocol.writeString(this.featureVersion); 14394 protocol.writeFieldEnd(); 14395 } 14396 if (this.photos != null) { 14397 protocol.writeFieldBegin("photos", 5, TType.LIST); 14398 protocol.writeListBegin(TType.STRING, this.photos.size()); 14399 for (ByteString item0 : this.photos) { 14400 protocol.writeBinary(item0); 14401 } 14402 protocol.writeListEnd(); 14403 protocol.writeFieldEnd(); 14404 } 14405 if (this.faces != null) { 14406 protocol.writeFieldBegin("faces", 6, TType.LIST); 14407 protocol.writeListBegin(TType.STRUCT, this.faces.size()); 14408 for (FaceBean item0 : this.faces) { 14409 net.gdface.facelog.client.thrift.FaceBean.ADAPTER.write(protocol, item0); 14410 } 14411 protocol.writeListEnd(); 14412 protocol.writeFieldEnd(); 14413 } 14414 if (this.token != null) { 14415 protocol.writeFieldBegin("token", 7, TType.STRUCT); 14416 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14417 protocol.writeFieldEnd(); 14418 } 14419 protocol.writeFieldStop(); 14420 protocol.writeStructEnd(); 14421 } 14422 14423 @Override 14424 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14425 PersonBean result = null; 14426 ServiceRuntimeException ex1 = null; 14427 protocol.readStructBegin(); 14428 while (true) { 14429 FieldMetadata field = protocol.readFieldBegin(); 14430 if (field.typeId == TType.STOP) { 14431 break; 14432 } 14433 switch (field.fieldId) { 14434 case 0: { 14435 if (field.typeId == TType.STRUCT) { 14436 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 14437 result = value; 14438 } else { 14439 ProtocolUtil.skip(protocol, field.typeId); 14440 } 14441 } 14442 break; 14443 case 1: { 14444 if (field.typeId == TType.STRUCT) { 14445 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14446 ex1 = value; 14447 } else { 14448 ProtocolUtil.skip(protocol, field.typeId); 14449 } 14450 } 14451 break; 14452 default: ProtocolUtil.skip(protocol, field.typeId); break; 14453 } 14454 protocol.readFieldEnd(); 14455 } 14456 protocol.readStructEnd(); 14457 if (result != null) { 14458 return result; 14459 } else if (ex1 != null) { 14460 throw ex1; 14461 } else { 14462 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 14463 } 14464 } 14465 } 14466 14467 private static final class SavePersonWithPhotoAndFeatureSavedCall extends MethodCall<PersonBean> { 14468 private final PersonBean personBean; 14469 14470 private final String idPhotoMd5; 14471 14472 private final String featureMd5; 14473 14474 private final Token token; 14475 14476 SavePersonWithPhotoAndFeatureSavedCall(PersonBean personBean, String idPhotoMd5, 14477 String featureMd5, Token token, ServiceMethodCallback<PersonBean> callback) { 14478 super("savePersonWithPhotoAndFeatureSaved", TMessageType.CALL, callback); 14479 this.personBean = personBean; 14480 this.idPhotoMd5 = idPhotoMd5; 14481 this.featureMd5 = featureMd5; 14482 this.token = token; 14483 } 14484 14485 @Override 14486 protected void send(Protocol protocol) throws IOException { 14487 protocol.writeStructBegin("args"); 14488 if (this.personBean != null) { 14489 protocol.writeFieldBegin("personBean", 1, TType.STRUCT); 14490 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, this.personBean); 14491 protocol.writeFieldEnd(); 14492 } 14493 if (this.idPhotoMd5 != null) { 14494 protocol.writeFieldBegin("idPhotoMd5", 2, TType.STRING); 14495 protocol.writeString(this.idPhotoMd5); 14496 protocol.writeFieldEnd(); 14497 } 14498 if (this.featureMd5 != null) { 14499 protocol.writeFieldBegin("featureMd5", 3, TType.STRING); 14500 protocol.writeString(this.featureMd5); 14501 protocol.writeFieldEnd(); 14502 } 14503 if (this.token != null) { 14504 protocol.writeFieldBegin("token", 4, TType.STRUCT); 14505 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14506 protocol.writeFieldEnd(); 14507 } 14508 protocol.writeFieldStop(); 14509 protocol.writeStructEnd(); 14510 } 14511 14512 @Override 14513 protected PersonBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14514 PersonBean result = null; 14515 ServiceRuntimeException ex1 = null; 14516 protocol.readStructBegin(); 14517 while (true) { 14518 FieldMetadata field = protocol.readFieldBegin(); 14519 if (field.typeId == TType.STOP) { 14520 break; 14521 } 14522 switch (field.fieldId) { 14523 case 0: { 14524 if (field.typeId == TType.STRUCT) { 14525 net.gdface.facelog.client.thrift.PersonBean value = net.gdface.facelog.client.thrift.PersonBean.ADAPTER.read(protocol); 14526 result = value; 14527 } else { 14528 ProtocolUtil.skip(protocol, field.typeId); 14529 } 14530 } 14531 break; 14532 case 1: { 14533 if (field.typeId == TType.STRUCT) { 14534 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14535 ex1 = value; 14536 } else { 14537 ProtocolUtil.skip(protocol, field.typeId); 14538 } 14539 } 14540 break; 14541 default: ProtocolUtil.skip(protocol, field.typeId); break; 14542 } 14543 protocol.readFieldEnd(); 14544 } 14545 protocol.readStructEnd(); 14546 if (result != null) { 14547 return result; 14548 } else if (ex1 != null) { 14549 throw ex1; 14550 } else { 14551 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 14552 } 14553 } 14554 } 14555 14556 private static final class SavePersonsCall extends MethodCall<Void> { 14557 private final List<PersonBean> persons; 14558 14559 private final Token token; 14560 14561 SavePersonsCall(List<PersonBean> persons, Token token, ServiceMethodCallback<Void> callback) { 14562 super("savePersons", TMessageType.CALL, callback); 14563 this.persons = persons; 14564 this.token = token; 14565 } 14566 14567 @Override 14568 protected void send(Protocol protocol) throws IOException { 14569 protocol.writeStructBegin("args"); 14570 if (this.persons != null) { 14571 protocol.writeFieldBegin("persons", 1, TType.LIST); 14572 protocol.writeListBegin(TType.STRUCT, this.persons.size()); 14573 for (PersonBean item0 : this.persons) { 14574 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, item0); 14575 } 14576 protocol.writeListEnd(); 14577 protocol.writeFieldEnd(); 14578 } 14579 if (this.token != null) { 14580 protocol.writeFieldBegin("token", 2, TType.STRUCT); 14581 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14582 protocol.writeFieldEnd(); 14583 } 14584 protocol.writeFieldStop(); 14585 protocol.writeStructEnd(); 14586 } 14587 14588 @Override 14589 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14590 ServiceRuntimeException ex1 = null; 14591 protocol.readStructBegin(); 14592 while (true) { 14593 FieldMetadata field = protocol.readFieldBegin(); 14594 if (field.typeId == TType.STOP) { 14595 break; 14596 } 14597 switch (field.fieldId) { 14598 case 1: { 14599 if (field.typeId == TType.STRUCT) { 14600 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14601 ex1 = value; 14602 } else { 14603 ProtocolUtil.skip(protocol, field.typeId); 14604 } 14605 } 14606 break; 14607 default: ProtocolUtil.skip(protocol, field.typeId); break; 14608 } 14609 protocol.readFieldEnd(); 14610 } 14611 protocol.readStructEnd(); 14612 if (ex1 != null) { 14613 throw ex1; 14614 } else { 14615 return null; 14616 } 14617 } 14618 } 14619 14620 private static final class SavePersonsWithPhotoCall extends MethodCall<Integer> { 14621 private final List<ByteString> photos; 14622 14623 private final List<PersonBean> persons; 14624 14625 private final Token token; 14626 14627 SavePersonsWithPhotoCall(List<ByteString> photos, List<PersonBean> persons, Token token, 14628 ServiceMethodCallback<Integer> callback) { 14629 super("savePersonsWithPhoto", TMessageType.CALL, callback); 14630 this.photos = photos; 14631 this.persons = persons; 14632 this.token = token; 14633 } 14634 14635 @Override 14636 protected void send(Protocol protocol) throws IOException { 14637 protocol.writeStructBegin("args"); 14638 if (this.photos != null) { 14639 protocol.writeFieldBegin("photos", 1, TType.LIST); 14640 protocol.writeListBegin(TType.STRING, this.photos.size()); 14641 for (ByteString item0 : this.photos) { 14642 protocol.writeBinary(item0); 14643 } 14644 protocol.writeListEnd(); 14645 protocol.writeFieldEnd(); 14646 } 14647 if (this.persons != null) { 14648 protocol.writeFieldBegin("persons", 2, TType.LIST); 14649 protocol.writeListBegin(TType.STRUCT, this.persons.size()); 14650 for (PersonBean item0 : this.persons) { 14651 net.gdface.facelog.client.thrift.PersonBean.ADAPTER.write(protocol, item0); 14652 } 14653 protocol.writeListEnd(); 14654 protocol.writeFieldEnd(); 14655 } 14656 if (this.token != null) { 14657 protocol.writeFieldBegin("token", 3, TType.STRUCT); 14658 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14659 protocol.writeFieldEnd(); 14660 } 14661 protocol.writeFieldStop(); 14662 protocol.writeStructEnd(); 14663 } 14664 14665 @Override 14666 protected Integer receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14667 Integer result = null; 14668 ServiceRuntimeException ex1 = null; 14669 protocol.readStructBegin(); 14670 while (true) { 14671 FieldMetadata field = protocol.readFieldBegin(); 14672 if (field.typeId == TType.STOP) { 14673 break; 14674 } 14675 switch (field.fieldId) { 14676 case 0: { 14677 if (field.typeId == TType.I32) { 14678 int value = protocol.readI32(); 14679 result = value; 14680 } else { 14681 ProtocolUtil.skip(protocol, field.typeId); 14682 } 14683 } 14684 break; 14685 case 1: { 14686 if (field.typeId == TType.STRUCT) { 14687 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14688 ex1 = value; 14689 } else { 14690 ProtocolUtil.skip(protocol, field.typeId); 14691 } 14692 } 14693 break; 14694 default: ProtocolUtil.skip(protocol, field.typeId); break; 14695 } 14696 protocol.readFieldEnd(); 14697 } 14698 protocol.readStructEnd(); 14699 if (result != null) { 14700 return result; 14701 } else if (ex1 != null) { 14702 throw ex1; 14703 } else { 14704 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 14705 } 14706 } 14707 } 14708 14709 private static final class SaveServiceConfigCall extends MethodCall<Void> { 14710 private final Token token; 14711 14712 SaveServiceConfigCall(Token token, ServiceMethodCallback<Void> callback) { 14713 super("saveServiceConfig", TMessageType.CALL, callback); 14714 this.token = token; 14715 } 14716 14717 @Override 14718 protected void send(Protocol protocol) throws IOException { 14719 protocol.writeStructBegin("args"); 14720 if (this.token != null) { 14721 protocol.writeFieldBegin("token", 1, TType.STRUCT); 14722 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14723 protocol.writeFieldEnd(); 14724 } 14725 protocol.writeFieldStop(); 14726 protocol.writeStructEnd(); 14727 } 14728 14729 @Override 14730 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14731 ServiceRuntimeException ex1 = null; 14732 protocol.readStructBegin(); 14733 while (true) { 14734 FieldMetadata field = protocol.readFieldBegin(); 14735 if (field.typeId == TType.STOP) { 14736 break; 14737 } 14738 switch (field.fieldId) { 14739 case 1: { 14740 if (field.typeId == TType.STRUCT) { 14741 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14742 ex1 = value; 14743 } else { 14744 ProtocolUtil.skip(protocol, field.typeId); 14745 } 14746 } 14747 break; 14748 default: ProtocolUtil.skip(protocol, field.typeId); break; 14749 } 14750 protocol.readFieldEnd(); 14751 } 14752 protocol.readStructEnd(); 14753 if (ex1 != null) { 14754 throw ex1; 14755 } else { 14756 return null; 14757 } 14758 } 14759 } 14760 14761 private static final class SdkTaskQueueOfCall extends MethodCall<String> { 14762 private final String task; 14763 14764 private final String sdkVersion; 14765 14766 private final Token token; 14767 14768 SdkTaskQueueOfCall(String task, String sdkVersion, Token token, 14769 ServiceMethodCallback<String> callback) { 14770 super("sdkTaskQueueOf", TMessageType.CALL, callback); 14771 this.task = task; 14772 this.sdkVersion = sdkVersion; 14773 this.token = token; 14774 } 14775 14776 @Override 14777 protected void send(Protocol protocol) throws IOException { 14778 protocol.writeStructBegin("args"); 14779 if (this.task != null) { 14780 protocol.writeFieldBegin("task", 1, TType.STRING); 14781 protocol.writeString(this.task); 14782 protocol.writeFieldEnd(); 14783 } 14784 if (this.sdkVersion != null) { 14785 protocol.writeFieldBegin("sdkVersion", 2, TType.STRING); 14786 protocol.writeString(this.sdkVersion); 14787 protocol.writeFieldEnd(); 14788 } 14789 if (this.token != null) { 14790 protocol.writeFieldBegin("token", 3, TType.STRUCT); 14791 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14792 protocol.writeFieldEnd(); 14793 } 14794 protocol.writeFieldStop(); 14795 protocol.writeStructEnd(); 14796 } 14797 14798 @Override 14799 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14800 String result = null; 14801 ServiceRuntimeException ex1 = null; 14802 protocol.readStructBegin(); 14803 while (true) { 14804 FieldMetadata field = protocol.readFieldBegin(); 14805 if (field.typeId == TType.STOP) { 14806 break; 14807 } 14808 switch (field.fieldId) { 14809 case 0: { 14810 if (field.typeId == TType.STRING) { 14811 String value = protocol.readString(); 14812 result = value; 14813 } else { 14814 ProtocolUtil.skip(protocol, field.typeId); 14815 } 14816 } 14817 break; 14818 case 1: { 14819 if (field.typeId == TType.STRUCT) { 14820 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14821 ex1 = value; 14822 } else { 14823 ProtocolUtil.skip(protocol, field.typeId); 14824 } 14825 } 14826 break; 14827 default: ProtocolUtil.skip(protocol, field.typeId); break; 14828 } 14829 protocol.readFieldEnd(); 14830 } 14831 protocol.readStructEnd(); 14832 if (result != null) { 14833 return result; 14834 } else if (ex1 != null) { 14835 throw ex1; 14836 } else { 14837 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 14838 } 14839 } 14840 } 14841 14842 private static final class SetPersonExpiryDateCall extends MethodCall<Void> { 14843 private final Integer personId; 14844 14845 private final Long expiryDate; 14846 14847 private final Token token; 14848 14849 SetPersonExpiryDateCall(Integer personId, Long expiryDate, Token token, 14850 ServiceMethodCallback<Void> callback) { 14851 super("setPersonExpiryDate", TMessageType.CALL, callback); 14852 if (personId == null) throw new NullPointerException("personId"); 14853 this.personId = personId; 14854 if (expiryDate == null) throw new NullPointerException("expiryDate"); 14855 this.expiryDate = expiryDate; 14856 this.token = token; 14857 } 14858 14859 @Override 14860 protected void send(Protocol protocol) throws IOException { 14861 protocol.writeStructBegin("args"); 14862 protocol.writeFieldBegin("personId", 1, TType.I32); 14863 protocol.writeI32(this.personId); 14864 protocol.writeFieldEnd(); 14865 protocol.writeFieldBegin("expiryDate", 2, TType.I64); 14866 protocol.writeI64(this.expiryDate); 14867 protocol.writeFieldEnd(); 14868 if (this.token != null) { 14869 protocol.writeFieldBegin("token", 3, TType.STRUCT); 14870 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14871 protocol.writeFieldEnd(); 14872 } 14873 protocol.writeFieldStop(); 14874 protocol.writeStructEnd(); 14875 } 14876 14877 @Override 14878 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14879 ServiceRuntimeException ex1 = null; 14880 protocol.readStructBegin(); 14881 while (true) { 14882 FieldMetadata field = protocol.readFieldBegin(); 14883 if (field.typeId == TType.STOP) { 14884 break; 14885 } 14886 switch (field.fieldId) { 14887 case 1: { 14888 if (field.typeId == TType.STRUCT) { 14889 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14890 ex1 = value; 14891 } else { 14892 ProtocolUtil.skip(protocol, field.typeId); 14893 } 14894 } 14895 break; 14896 default: ProtocolUtil.skip(protocol, field.typeId); break; 14897 } 14898 protocol.readFieldEnd(); 14899 } 14900 protocol.readStructEnd(); 14901 if (ex1 != null) { 14902 throw ex1; 14903 } else { 14904 return null; 14905 } 14906 } 14907 } 14908 14909 private static final class SetPersonExpiryDateListCall extends MethodCall<Void> { 14910 private final List<Integer> personIdList; 14911 14912 private final Long expiryDate; 14913 14914 private final Token token; 14915 14916 SetPersonExpiryDateListCall(List<Integer> personIdList, Long expiryDate, Token token, 14917 ServiceMethodCallback<Void> callback) { 14918 super("setPersonExpiryDateList", TMessageType.CALL, callback); 14919 this.personIdList = personIdList; 14920 if (expiryDate == null) throw new NullPointerException("expiryDate"); 14921 this.expiryDate = expiryDate; 14922 this.token = token; 14923 } 14924 14925 @Override 14926 protected void send(Protocol protocol) throws IOException { 14927 protocol.writeStructBegin("args"); 14928 if (this.personIdList != null) { 14929 protocol.writeFieldBegin("personIdList", 1, TType.LIST); 14930 protocol.writeListBegin(TType.I32, this.personIdList.size()); 14931 for (Integer item0 : this.personIdList) { 14932 protocol.writeI32(item0); 14933 } 14934 protocol.writeListEnd(); 14935 protocol.writeFieldEnd(); 14936 } 14937 protocol.writeFieldBegin("expiryDate", 2, TType.I64); 14938 protocol.writeI64(this.expiryDate); 14939 protocol.writeFieldEnd(); 14940 if (this.token != null) { 14941 protocol.writeFieldBegin("token", 3, TType.STRUCT); 14942 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 14943 protocol.writeFieldEnd(); 14944 } 14945 protocol.writeFieldStop(); 14946 protocol.writeStructEnd(); 14947 } 14948 14949 @Override 14950 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 14951 ServiceRuntimeException ex1 = null; 14952 protocol.readStructBegin(); 14953 while (true) { 14954 FieldMetadata field = protocol.readFieldBegin(); 14955 if (field.typeId == TType.STOP) { 14956 break; 14957 } 14958 switch (field.fieldId) { 14959 case 1: { 14960 if (field.typeId == TType.STRUCT) { 14961 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 14962 ex1 = value; 14963 } else { 14964 ProtocolUtil.skip(protocol, field.typeId); 14965 } 14966 } 14967 break; 14968 default: ProtocolUtil.skip(protocol, field.typeId); break; 14969 } 14970 protocol.readFieldEnd(); 14971 } 14972 protocol.readStructEnd(); 14973 if (ex1 != null) { 14974 throw ex1; 14975 } else { 14976 return null; 14977 } 14978 } 14979 } 14980 14981 private static final class SetPersonExpiryDateTimeStrCall extends MethodCall<Void> { 14982 private final Integer personId; 14983 14984 private final String expiryDate; 14985 14986 private final Token token; 14987 14988 SetPersonExpiryDateTimeStrCall(Integer personId, String expiryDate, Token token, 14989 ServiceMethodCallback<Void> callback) { 14990 super("setPersonExpiryDateTimeStr", TMessageType.CALL, callback); 14991 if (personId == null) throw new NullPointerException("personId"); 14992 this.personId = personId; 14993 this.expiryDate = expiryDate; 14994 this.token = token; 14995 } 14996 14997 @Override 14998 protected void send(Protocol protocol) throws IOException { 14999 protocol.writeStructBegin("args"); 15000 protocol.writeFieldBegin("personId", 1, TType.I32); 15001 protocol.writeI32(this.personId); 15002 protocol.writeFieldEnd(); 15003 if (this.expiryDate != null) { 15004 protocol.writeFieldBegin("expiryDate", 2, TType.STRING); 15005 protocol.writeString(this.expiryDate); 15006 protocol.writeFieldEnd(); 15007 } 15008 if (this.token != null) { 15009 protocol.writeFieldBegin("token", 3, TType.STRUCT); 15010 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 15011 protocol.writeFieldEnd(); 15012 } 15013 protocol.writeFieldStop(); 15014 protocol.writeStructEnd(); 15015 } 15016 15017 @Override 15018 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 15019 ServiceRuntimeException ex1 = null; 15020 protocol.readStructBegin(); 15021 while (true) { 15022 FieldMetadata field = protocol.readFieldBegin(); 15023 if (field.typeId == TType.STOP) { 15024 break; 15025 } 15026 switch (field.fieldId) { 15027 case 1: { 15028 if (field.typeId == TType.STRUCT) { 15029 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15030 ex1 = value; 15031 } else { 15032 ProtocolUtil.skip(protocol, field.typeId); 15033 } 15034 } 15035 break; 15036 default: ProtocolUtil.skip(protocol, field.typeId); break; 15037 } 15038 protocol.readFieldEnd(); 15039 } 15040 protocol.readStructEnd(); 15041 if (ex1 != null) { 15042 throw ex1; 15043 } else { 15044 return null; 15045 } 15046 } 15047 } 15048 15049 private static final class SetPropertiesCall extends MethodCall<Void> { 15050 private final Map<String, String> config; 15051 15052 private final Token token; 15053 15054 SetPropertiesCall(Map<String, String> config, Token token, 15055 ServiceMethodCallback<Void> callback) { 15056 super("setProperties", TMessageType.CALL, callback); 15057 this.config = config; 15058 this.token = token; 15059 } 15060 15061 @Override 15062 protected void send(Protocol protocol) throws IOException { 15063 protocol.writeStructBegin("args"); 15064 if (this.config != null) { 15065 protocol.writeFieldBegin("config", 1, TType.MAP); 15066 protocol.writeMapBegin(TType.STRING, TType.STRING, this.config.size()); 15067 for (Map.Entry<String, String> entry0 : this.config.entrySet()) { 15068 String key0 = entry0.getKey(); 15069 String value0 = entry0.getValue(); 15070 protocol.writeString(key0); 15071 protocol.writeString(value0); 15072 } 15073 protocol.writeMapEnd(); 15074 protocol.writeFieldEnd(); 15075 } 15076 if (this.token != null) { 15077 protocol.writeFieldBegin("token", 2, TType.STRUCT); 15078 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 15079 protocol.writeFieldEnd(); 15080 } 15081 protocol.writeFieldStop(); 15082 protocol.writeStructEnd(); 15083 } 15084 15085 @Override 15086 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 15087 ServiceRuntimeException ex1 = null; 15088 protocol.readStructBegin(); 15089 while (true) { 15090 FieldMetadata field = protocol.readFieldBegin(); 15091 if (field.typeId == TType.STOP) { 15092 break; 15093 } 15094 switch (field.fieldId) { 15095 case 1: { 15096 if (field.typeId == TType.STRUCT) { 15097 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15098 ex1 = value; 15099 } else { 15100 ProtocolUtil.skip(protocol, field.typeId); 15101 } 15102 } 15103 break; 15104 default: ProtocolUtil.skip(protocol, field.typeId); break; 15105 } 15106 protocol.readFieldEnd(); 15107 } 15108 protocol.readStructEnd(); 15109 if (ex1 != null) { 15110 throw ex1; 15111 } else { 15112 return null; 15113 } 15114 } 15115 } 15116 15117 private static final class SetPropertyCall extends MethodCall<Void> { 15118 private final String key; 15119 15120 private final String value; 15121 15122 private final Token token; 15123 15124 SetPropertyCall(String key, String value, Token token, ServiceMethodCallback<Void> callback) { 15125 super("setProperty", TMessageType.CALL, callback); 15126 this.key = key; 15127 this.value = value; 15128 this.token = token; 15129 } 15130 15131 @Override 15132 protected void send(Protocol protocol) throws IOException { 15133 protocol.writeStructBegin("args"); 15134 if (this.key != null) { 15135 protocol.writeFieldBegin("key", 1, TType.STRING); 15136 protocol.writeString(this.key); 15137 protocol.writeFieldEnd(); 15138 } 15139 if (this.value != null) { 15140 protocol.writeFieldBegin("value", 2, TType.STRING); 15141 protocol.writeString(this.value); 15142 protocol.writeFieldEnd(); 15143 } 15144 if (this.token != null) { 15145 protocol.writeFieldBegin("token", 3, TType.STRUCT); 15146 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 15147 protocol.writeFieldEnd(); 15148 } 15149 protocol.writeFieldStop(); 15150 protocol.writeStructEnd(); 15151 } 15152 15153 @Override 15154 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 15155 ServiceRuntimeException ex1 = null; 15156 protocol.readStructBegin(); 15157 while (true) { 15158 FieldMetadata field = protocol.readFieldBegin(); 15159 if (field.typeId == TType.STOP) { 15160 break; 15161 } 15162 switch (field.fieldId) { 15163 case 1: { 15164 if (field.typeId == TType.STRUCT) { 15165 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15166 ex1 = value; 15167 } else { 15168 ProtocolUtil.skip(protocol, field.typeId); 15169 } 15170 } 15171 break; 15172 default: ProtocolUtil.skip(protocol, field.typeId); break; 15173 } 15174 protocol.readFieldEnd(); 15175 } 15176 protocol.readStructEnd(); 15177 if (ex1 != null) { 15178 throw ex1; 15179 } else { 15180 return null; 15181 } 15182 } 15183 } 15184 15185 private static final class TaskQueueOfCall extends MethodCall<String> { 15186 private final String task; 15187 15188 private final Token token; 15189 15190 TaskQueueOfCall(String task, Token token, ServiceMethodCallback<String> callback) { 15191 super("taskQueueOf", TMessageType.CALL, callback); 15192 this.task = task; 15193 this.token = token; 15194 } 15195 15196 @Override 15197 protected void send(Protocol protocol) throws IOException { 15198 protocol.writeStructBegin("args"); 15199 if (this.task != null) { 15200 protocol.writeFieldBegin("task", 1, TType.STRING); 15201 protocol.writeString(this.task); 15202 protocol.writeFieldEnd(); 15203 } 15204 if (this.token != null) { 15205 protocol.writeFieldBegin("token", 2, TType.STRUCT); 15206 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 15207 protocol.writeFieldEnd(); 15208 } 15209 protocol.writeFieldStop(); 15210 protocol.writeStructEnd(); 15211 } 15212 15213 @Override 15214 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 15215 String result = null; 15216 ServiceRuntimeException ex1 = null; 15217 protocol.readStructBegin(); 15218 while (true) { 15219 FieldMetadata field = protocol.readFieldBegin(); 15220 if (field.typeId == TType.STOP) { 15221 break; 15222 } 15223 switch (field.fieldId) { 15224 case 0: { 15225 if (field.typeId == TType.STRING) { 15226 String value = protocol.readString(); 15227 result = value; 15228 } else { 15229 ProtocolUtil.skip(protocol, field.typeId); 15230 } 15231 } 15232 break; 15233 case 1: { 15234 if (field.typeId == TType.STRUCT) { 15235 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15236 ex1 = value; 15237 } else { 15238 ProtocolUtil.skip(protocol, field.typeId); 15239 } 15240 } 15241 break; 15242 default: ProtocolUtil.skip(protocol, field.typeId); break; 15243 } 15244 protocol.readFieldEnd(); 15245 } 15246 protocol.readStructEnd(); 15247 if (result != null) { 15248 return result; 15249 } else if (ex1 != null) { 15250 throw ex1; 15251 } else { 15252 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 15253 } 15254 } 15255 } 15256 15257 private static final class UnbindBorderCall extends MethodCall<Void> { 15258 private final Integer personGroupId; 15259 15260 private final Integer deviceGroupId; 15261 15262 private final Token token; 15263 15264 UnbindBorderCall(Integer personGroupId, Integer deviceGroupId, Token token, 15265 ServiceMethodCallback<Void> callback) { 15266 super("unbindBorder", TMessageType.CALL, callback); 15267 if (personGroupId == null) throw new NullPointerException("personGroupId"); 15268 this.personGroupId = personGroupId; 15269 if (deviceGroupId == null) throw new NullPointerException("deviceGroupId"); 15270 this.deviceGroupId = deviceGroupId; 15271 this.token = token; 15272 } 15273 15274 @Override 15275 protected void send(Protocol protocol) throws IOException { 15276 protocol.writeStructBegin("args"); 15277 protocol.writeFieldBegin("personGroupId", 1, TType.I32); 15278 protocol.writeI32(this.personGroupId); 15279 protocol.writeFieldEnd(); 15280 protocol.writeFieldBegin("deviceGroupId", 2, TType.I32); 15281 protocol.writeI32(this.deviceGroupId); 15282 protocol.writeFieldEnd(); 15283 if (this.token != null) { 15284 protocol.writeFieldBegin("token", 3, TType.STRUCT); 15285 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 15286 protocol.writeFieldEnd(); 15287 } 15288 protocol.writeFieldStop(); 15289 protocol.writeStructEnd(); 15290 } 15291 15292 @Override 15293 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 15294 ServiceRuntimeException ex1 = null; 15295 protocol.readStructBegin(); 15296 while (true) { 15297 FieldMetadata field = protocol.readFieldBegin(); 15298 if (field.typeId == TType.STOP) { 15299 break; 15300 } 15301 switch (field.fieldId) { 15302 case 1: { 15303 if (field.typeId == TType.STRUCT) { 15304 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15305 ex1 = value; 15306 } else { 15307 ProtocolUtil.skip(protocol, field.typeId); 15308 } 15309 } 15310 break; 15311 default: ProtocolUtil.skip(protocol, field.typeId); break; 15312 } 15313 protocol.readFieldEnd(); 15314 } 15315 protocol.readStructEnd(); 15316 if (ex1 != null) { 15317 throw ex1; 15318 } else { 15319 return null; 15320 } 15321 } 15322 } 15323 15324 private static final class UnregisterDeviceCall extends MethodCall<Void> { 15325 private final Token token; 15326 15327 UnregisterDeviceCall(Token token, ServiceMethodCallback<Void> callback) { 15328 super("unregisterDevice", TMessageType.CALL, callback); 15329 this.token = token; 15330 } 15331 15332 @Override 15333 protected void send(Protocol protocol) throws IOException { 15334 protocol.writeStructBegin("args"); 15335 if (this.token != null) { 15336 protocol.writeFieldBegin("token", 1, TType.STRUCT); 15337 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 15338 protocol.writeFieldEnd(); 15339 } 15340 protocol.writeFieldStop(); 15341 protocol.writeStructEnd(); 15342 } 15343 15344 @Override 15345 protected Void receive(Protocol protocol, MessageMetadata metadata) throws Exception { 15346 ServiceSecurityException ex1 = null; 15347 ServiceRuntimeException ex2 = null; 15348 protocol.readStructBegin(); 15349 while (true) { 15350 FieldMetadata field = protocol.readFieldBegin(); 15351 if (field.typeId == TType.STOP) { 15352 break; 15353 } 15354 switch (field.fieldId) { 15355 case 1: { 15356 if (field.typeId == TType.STRUCT) { 15357 net.gdface.facelog.client.thrift.ServiceSecurityException value = net.gdface.facelog.client.thrift.ServiceSecurityException.ADAPTER.read(protocol); 15358 ex1 = value; 15359 } else { 15360 ProtocolUtil.skip(protocol, field.typeId); 15361 } 15362 } 15363 break; 15364 case 2: { 15365 if (field.typeId == TType.STRUCT) { 15366 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15367 ex2 = value; 15368 } else { 15369 ProtocolUtil.skip(protocol, field.typeId); 15370 } 15371 } 15372 break; 15373 default: ProtocolUtil.skip(protocol, field.typeId); break; 15374 } 15375 protocol.readFieldEnd(); 15376 } 15377 protocol.readStructEnd(); 15378 if (ex1 != null) { 15379 throw ex1; 15380 } else if (ex2 != null) { 15381 throw ex2; 15382 } else { 15383 return null; 15384 } 15385 } 15386 } 15387 15388 private static final class UpdateDeviceCall extends MethodCall<DeviceBean> { 15389 private final DeviceBean deviceBean; 15390 15391 private final Token token; 15392 15393 UpdateDeviceCall(DeviceBean deviceBean, Token token, 15394 ServiceMethodCallback<DeviceBean> callback) { 15395 super("updateDevice", TMessageType.CALL, callback); 15396 this.deviceBean = deviceBean; 15397 this.token = token; 15398 } 15399 15400 @Override 15401 protected void send(Protocol protocol) throws IOException { 15402 protocol.writeStructBegin("args"); 15403 if (this.deviceBean != null) { 15404 protocol.writeFieldBegin("deviceBean", 1, TType.STRUCT); 15405 net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.write(protocol, this.deviceBean); 15406 protocol.writeFieldEnd(); 15407 } 15408 if (this.token != null) { 15409 protocol.writeFieldBegin("token", 2, TType.STRUCT); 15410 net.gdface.facelog.client.thrift.Token.ADAPTER.write(protocol, this.token); 15411 protocol.writeFieldEnd(); 15412 } 15413 protocol.writeFieldStop(); 15414 protocol.writeStructEnd(); 15415 } 15416 15417 @Override 15418 protected DeviceBean receive(Protocol protocol, MessageMetadata metadata) throws Exception { 15419 DeviceBean result = null; 15420 ServiceRuntimeException ex1 = null; 15421 protocol.readStructBegin(); 15422 while (true) { 15423 FieldMetadata field = protocol.readFieldBegin(); 15424 if (field.typeId == TType.STOP) { 15425 break; 15426 } 15427 switch (field.fieldId) { 15428 case 0: { 15429 if (field.typeId == TType.STRUCT) { 15430 net.gdface.facelog.client.thrift.DeviceBean value = net.gdface.facelog.client.thrift.DeviceBean.ADAPTER.read(protocol); 15431 result = value; 15432 } else { 15433 ProtocolUtil.skip(protocol, field.typeId); 15434 } 15435 } 15436 break; 15437 case 1: { 15438 if (field.typeId == TType.STRUCT) { 15439 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15440 ex1 = value; 15441 } else { 15442 ProtocolUtil.skip(protocol, field.typeId); 15443 } 15444 } 15445 break; 15446 default: ProtocolUtil.skip(protocol, field.typeId); break; 15447 } 15448 protocol.readFieldEnd(); 15449 } 15450 protocol.readStructEnd(); 15451 if (result != null) { 15452 return result; 15453 } else if (ex1 != null) { 15454 throw ex1; 15455 } else { 15456 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 15457 } 15458 } 15459 } 15460 15461 private static final class VersionCall extends MethodCall<String> { 15462 VersionCall(ServiceMethodCallback<String> callback) { 15463 super("version", TMessageType.CALL, callback); 15464 } 15465 15466 @Override 15467 protected void send(Protocol protocol) throws IOException { 15468 protocol.writeStructBegin("args"); 15469 protocol.writeFieldStop(); 15470 protocol.writeStructEnd(); 15471 } 15472 15473 @Override 15474 protected String receive(Protocol protocol, MessageMetadata metadata) throws Exception { 15475 String result = null; 15476 ServiceRuntimeException ex1 = null; 15477 protocol.readStructBegin(); 15478 while (true) { 15479 FieldMetadata field = protocol.readFieldBegin(); 15480 if (field.typeId == TType.STOP) { 15481 break; 15482 } 15483 switch (field.fieldId) { 15484 case 0: { 15485 if (field.typeId == TType.STRING) { 15486 String value = protocol.readString(); 15487 result = value; 15488 } else { 15489 ProtocolUtil.skip(protocol, field.typeId); 15490 } 15491 } 15492 break; 15493 case 1: { 15494 if (field.typeId == TType.STRUCT) { 15495 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15496 ex1 = value; 15497 } else { 15498 ProtocolUtil.skip(protocol, field.typeId); 15499 } 15500 } 15501 break; 15502 default: ProtocolUtil.skip(protocol, field.typeId); break; 15503 } 15504 protocol.readFieldEnd(); 15505 } 15506 protocol.readStructEnd(); 15507 if (result != null) { 15508 return result; 15509 } else if (ex1 != null) { 15510 throw ex1; 15511 } else { 15512 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 15513 } 15514 } 15515 } 15516 15517 private static final class VersionInfoCall extends MethodCall<Map<String, String>> { 15518 VersionInfoCall(ServiceMethodCallback<Map<String, String>> callback) { 15519 super("versionInfo", TMessageType.CALL, callback); 15520 } 15521 15522 @Override 15523 protected void send(Protocol protocol) throws IOException { 15524 protocol.writeStructBegin("args"); 15525 protocol.writeFieldStop(); 15526 protocol.writeStructEnd(); 15527 } 15528 15529 @Override 15530 protected Map<String, String> receive(Protocol protocol, MessageMetadata metadata) throws 15531 Exception { 15532 Map<String, String> result = null; 15533 ServiceRuntimeException ex1 = null; 15534 protocol.readStructBegin(); 15535 while (true) { 15536 FieldMetadata field = protocol.readFieldBegin(); 15537 if (field.typeId == TType.STOP) { 15538 break; 15539 } 15540 switch (field.fieldId) { 15541 case 0: { 15542 if (field.typeId == TType.MAP) { 15543 MapMetadata mapMetadata0 = protocol.readMapBegin(); 15544 Map<String, String> value = new HashMap<String, String>(mapMetadata0.size); 15545 for (int i0 = 0; i0 < mapMetadata0.size; ++i0) { 15546 String key0 = protocol.readString(); 15547 String value0 = protocol.readString(); 15548 value.put(key0, value0); 15549 } 15550 protocol.readMapEnd(); 15551 result = value; 15552 } else { 15553 ProtocolUtil.skip(protocol, field.typeId); 15554 } 15555 } 15556 break; 15557 case 1: { 15558 if (field.typeId == TType.STRUCT) { 15559 net.gdface.facelog.client.thrift.ServiceRuntimeException value = net.gdface.facelog.client.thrift.ServiceRuntimeException.ADAPTER.read(protocol); 15560 ex1 = value; 15561 } else { 15562 ProtocolUtil.skip(protocol, field.typeId); 15563 } 15564 } 15565 break; 15566 default: ProtocolUtil.skip(protocol, field.typeId); break; 15567 } 15568 protocol.readFieldEnd(); 15569 } 15570 protocol.readStructEnd(); 15571 if (result != null) { 15572 return result; 15573 } else if (ex1 != null) { 15574 throw ex1; 15575 } else { 15576 throw new ThriftException(ThriftException.Kind.MISSING_RESULT, "Missing result"); 15577 } 15578 } 15579 } 15580}