001// Automatically generated by the Thrifty compiler; do not edit! 002// Generated on: 2020-11-05T09:22:38.119Z 003// Source: J:\facelog\facelog-service\IFaceLog.thrift at 179:1 004package net.gdface.facelog.client.thrift; 005 006import com.microsoft.thrifty.Adapter; 007import com.microsoft.thrifty.Struct; 008import com.microsoft.thrifty.StructBuilder; 009import com.microsoft.thrifty.TType; 010import com.microsoft.thrifty.ThriftField; 011import com.microsoft.thrifty.protocol.FieldMetadata; 012import com.microsoft.thrifty.protocol.Protocol; 013import com.microsoft.thrifty.util.ProtocolUtil; 014import java.io.IOException; 015import javax.annotation.Generated; 016import okio.ByteString; 017 018@Generated( 019 value = "com.microsoft.thrifty.gen.ThriftyCodeGenerator", 020 comments = "https://github.com/microsoft/thrifty" 021) 022public final class PersonBean implements Struct { 023 public static final Adapter<PersonBean, Builder> ADAPTER = new PersonBeanAdapter(); 024 025 @ThriftField( 026 fieldId = 1, 027 isRequired = true 028 ) 029 public final Boolean _new; 030 031 @ThriftField( 032 fieldId = 2, 033 isRequired = true 034 ) 035 public final Integer modified; 036 037 @ThriftField( 038 fieldId = 3, 039 isRequired = true 040 ) 041 public final Integer initialized; 042 043 @ThriftField( 044 fieldId = 4, 045 isOptional = true 046 ) 047 public final Integer id; 048 049 @ThriftField( 050 fieldId = 5, 051 isOptional = true 052 ) 053 public final Integer groupId; 054 055 @ThriftField( 056 fieldId = 6, 057 isOptional = true 058 ) 059 public final String name; 060 061 @ThriftField( 062 fieldId = 7, 063 isOptional = true 064 ) 065 public final Integer sex; 066 067 @ThriftField( 068 fieldId = 8, 069 isOptional = true 070 ) 071 public final Integer rank; 072 073 @ThriftField( 074 fieldId = 9, 075 isOptional = true 076 ) 077 public final String password; 078 079 @ThriftField( 080 fieldId = 10, 081 isOptional = true 082 ) 083 public final Long birthdate; 084 085 @ThriftField( 086 fieldId = 11, 087 isOptional = true 088 ) 089 public final String mobilePhone; 090 091 @ThriftField( 092 fieldId = 12, 093 isOptional = true 094 ) 095 public final Integer papersType; 096 097 @ThriftField( 098 fieldId = 13, 099 isOptional = true 100 ) 101 public final String papersNum; 102 103 @ThriftField( 104 fieldId = 14, 105 isOptional = true 106 ) 107 public final String imageMd5; 108 109 @ThriftField( 110 fieldId = 15, 111 isOptional = true 112 ) 113 public final Long expiryDate; 114 115 @ThriftField( 116 fieldId = 16, 117 isOptional = true 118 ) 119 public final Long activatedDate; 120 121 @ThriftField( 122 fieldId = 17, 123 isOptional = true 124 ) 125 public final String remark; 126 127 @ThriftField( 128 fieldId = 18, 129 isOptional = true 130 ) 131 public final ByteString extBin; 132 133 @ThriftField( 134 fieldId = 19, 135 isOptional = true 136 ) 137 public final String extTxt; 138 139 @ThriftField( 140 fieldId = 20, 141 isOptional = true 142 ) 143 public final Long createTime; 144 145 @ThriftField( 146 fieldId = 21, 147 isOptional = true 148 ) 149 public final Long updateTime; 150 151 private PersonBean(Builder builder) { 152 this._new = builder._new; 153 this.modified = builder.modified; 154 this.initialized = builder.initialized; 155 this.id = builder.id; 156 this.groupId = builder.groupId; 157 this.name = builder.name; 158 this.sex = builder.sex; 159 this.rank = builder.rank; 160 this.password = builder.password; 161 this.birthdate = builder.birthdate; 162 this.mobilePhone = builder.mobilePhone; 163 this.papersType = builder.papersType; 164 this.papersNum = builder.papersNum; 165 this.imageMd5 = builder.imageMd5; 166 this.expiryDate = builder.expiryDate; 167 this.activatedDate = builder.activatedDate; 168 this.remark = builder.remark; 169 this.extBin = builder.extBin; 170 this.extTxt = builder.extTxt; 171 this.createTime = builder.createTime; 172 this.updateTime = builder.updateTime; 173 } 174 175 @Override 176 @SuppressWarnings({"NumberEquality", "StringEquality"}) 177 public boolean equals(Object other) { 178 if (this == other) return true; 179 if (other == null) return false; 180 if (!(other instanceof PersonBean)) return false; 181 PersonBean that = (PersonBean) other; 182 return (this._new == that._new || this._new.equals(that._new)) 183 && (this.modified == that.modified || this.modified.equals(that.modified)) 184 && (this.initialized == that.initialized || this.initialized.equals(that.initialized)) 185 && (this.id == that.id || (this.id != null && this.id.equals(that.id))) 186 && (this.groupId == that.groupId || (this.groupId != null && this.groupId.equals(that.groupId))) 187 && (this.name == that.name || (this.name != null && this.name.equals(that.name))) 188 && (this.sex == that.sex || (this.sex != null && this.sex.equals(that.sex))) 189 && (this.rank == that.rank || (this.rank != null && this.rank.equals(that.rank))) 190 && (this.password == that.password || (this.password != null && this.password.equals(that.password))) 191 && (this.birthdate == that.birthdate || (this.birthdate != null && this.birthdate.equals(that.birthdate))) 192 && (this.mobilePhone == that.mobilePhone || (this.mobilePhone != null && this.mobilePhone.equals(that.mobilePhone))) 193 && (this.papersType == that.papersType || (this.papersType != null && this.papersType.equals(that.papersType))) 194 && (this.papersNum == that.papersNum || (this.papersNum != null && this.papersNum.equals(that.papersNum))) 195 && (this.imageMd5 == that.imageMd5 || (this.imageMd5 != null && this.imageMd5.equals(that.imageMd5))) 196 && (this.expiryDate == that.expiryDate || (this.expiryDate != null && this.expiryDate.equals(that.expiryDate))) 197 && (this.activatedDate == that.activatedDate || (this.activatedDate != null && this.activatedDate.equals(that.activatedDate))) 198 && (this.remark == that.remark || (this.remark != null && this.remark.equals(that.remark))) 199 && (this.extBin == that.extBin || (this.extBin != null && this.extBin.equals(that.extBin))) 200 && (this.extTxt == that.extTxt || (this.extTxt != null && this.extTxt.equals(that.extTxt))) 201 && (this.createTime == that.createTime || (this.createTime != null && this.createTime.equals(that.createTime))) 202 && (this.updateTime == that.updateTime || (this.updateTime != null && this.updateTime.equals(that.updateTime))); 203 } 204 205 @Override 206 public int hashCode() { 207 int code = 16777619; 208 code ^= this._new.hashCode(); 209 code *= 0x811c9dc5; 210 code ^= this.modified.hashCode(); 211 code *= 0x811c9dc5; 212 code ^= this.initialized.hashCode(); 213 code *= 0x811c9dc5; 214 code ^= (this.id == null) ? 0 : this.id.hashCode(); 215 code *= 0x811c9dc5; 216 code ^= (this.groupId == null) ? 0 : this.groupId.hashCode(); 217 code *= 0x811c9dc5; 218 code ^= (this.name == null) ? 0 : this.name.hashCode(); 219 code *= 0x811c9dc5; 220 code ^= (this.sex == null) ? 0 : this.sex.hashCode(); 221 code *= 0x811c9dc5; 222 code ^= (this.rank == null) ? 0 : this.rank.hashCode(); 223 code *= 0x811c9dc5; 224 code ^= (this.password == null) ? 0 : this.password.hashCode(); 225 code *= 0x811c9dc5; 226 code ^= (this.birthdate == null) ? 0 : this.birthdate.hashCode(); 227 code *= 0x811c9dc5; 228 code ^= (this.mobilePhone == null) ? 0 : this.mobilePhone.hashCode(); 229 code *= 0x811c9dc5; 230 code ^= (this.papersType == null) ? 0 : this.papersType.hashCode(); 231 code *= 0x811c9dc5; 232 code ^= (this.papersNum == null) ? 0 : this.papersNum.hashCode(); 233 code *= 0x811c9dc5; 234 code ^= (this.imageMd5 == null) ? 0 : this.imageMd5.hashCode(); 235 code *= 0x811c9dc5; 236 code ^= (this.expiryDate == null) ? 0 : this.expiryDate.hashCode(); 237 code *= 0x811c9dc5; 238 code ^= (this.activatedDate == null) ? 0 : this.activatedDate.hashCode(); 239 code *= 0x811c9dc5; 240 code ^= (this.remark == null) ? 0 : this.remark.hashCode(); 241 code *= 0x811c9dc5; 242 code ^= (this.extBin == null) ? 0 : this.extBin.hashCode(); 243 code *= 0x811c9dc5; 244 code ^= (this.extTxt == null) ? 0 : this.extTxt.hashCode(); 245 code *= 0x811c9dc5; 246 code ^= (this.createTime == null) ? 0 : this.createTime.hashCode(); 247 code *= 0x811c9dc5; 248 code ^= (this.updateTime == null) ? 0 : this.updateTime.hashCode(); 249 code *= 0x811c9dc5; 250 return code; 251 } 252 253 @Override 254 public String toString() { 255 return "PersonBean{_new=" + this._new + ", modified=" + this.modified + ", initialized=" + this.initialized + ", id=" + this.id + ", groupId=" + this.groupId + ", name=" + this.name + ", sex=" + this.sex + ", rank=" + this.rank + ", password=" + this.password + ", birthdate=" + this.birthdate + ", mobilePhone=" + this.mobilePhone + ", papersType=" + this.papersType + ", papersNum=" + this.papersNum + ", imageMd5=" + this.imageMd5 + ", expiryDate=" + this.expiryDate + ", activatedDate=" + this.activatedDate + ", remark=" + this.remark + ", extBin=" + this.extBin + ", extTxt=" + this.extTxt + ", createTime=" + this.createTime + ", updateTime=" + this.updateTime + "}"; 256 } 257 258 @Override 259 public void write(Protocol protocol) throws IOException { 260 ADAPTER.write(protocol, this); 261 } 262 263 public static final class Builder implements StructBuilder<PersonBean> { 264 private Boolean _new; 265 266 private Integer modified; 267 268 private Integer initialized; 269 270 private Integer id; 271 272 private Integer groupId; 273 274 private String name; 275 276 private Integer sex; 277 278 private Integer rank; 279 280 private String password; 281 282 private Long birthdate; 283 284 private String mobilePhone; 285 286 private Integer papersType; 287 288 private String papersNum; 289 290 private String imageMd5; 291 292 private Long expiryDate; 293 294 private Long activatedDate; 295 296 private String remark; 297 298 private ByteString extBin; 299 300 private String extTxt; 301 302 private Long createTime; 303 304 private Long updateTime; 305 306 public Builder() { 307 } 308 309 public Builder(PersonBean struct) { 310 this._new = struct._new; 311 this.modified = struct.modified; 312 this.initialized = struct.initialized; 313 this.id = struct.id; 314 this.groupId = struct.groupId; 315 this.name = struct.name; 316 this.sex = struct.sex; 317 this.rank = struct.rank; 318 this.password = struct.password; 319 this.birthdate = struct.birthdate; 320 this.mobilePhone = struct.mobilePhone; 321 this.papersType = struct.papersType; 322 this.papersNum = struct.papersNum; 323 this.imageMd5 = struct.imageMd5; 324 this.expiryDate = struct.expiryDate; 325 this.activatedDate = struct.activatedDate; 326 this.remark = struct.remark; 327 this.extBin = struct.extBin; 328 this.extTxt = struct.extTxt; 329 this.createTime = struct.createTime; 330 this.updateTime = struct.updateTime; 331 } 332 333 public Builder _new(Boolean _new) { 334 if (_new == null) { 335 throw new NullPointerException("Required field '_new' cannot be null"); 336 } 337 this._new = _new; 338 return this; 339 } 340 341 public Builder modified(Integer modified) { 342 if (modified == null) { 343 throw new NullPointerException("Required field 'modified' cannot be null"); 344 } 345 this.modified = modified; 346 return this; 347 } 348 349 public Builder initialized(Integer initialized) { 350 if (initialized == null) { 351 throw new NullPointerException("Required field 'initialized' cannot be null"); 352 } 353 this.initialized = initialized; 354 return this; 355 } 356 357 public Builder id(Integer id) { 358 this.id = id; 359 return this; 360 } 361 362 public Builder groupId(Integer groupId) { 363 this.groupId = groupId; 364 return this; 365 } 366 367 public Builder name(String name) { 368 this.name = name; 369 return this; 370 } 371 372 public Builder sex(Integer sex) { 373 this.sex = sex; 374 return this; 375 } 376 377 public Builder rank(Integer rank) { 378 this.rank = rank; 379 return this; 380 } 381 382 public Builder password(String password) { 383 this.password = password; 384 return this; 385 } 386 387 public Builder birthdate(Long birthdate) { 388 this.birthdate = birthdate; 389 return this; 390 } 391 392 public Builder mobilePhone(String mobilePhone) { 393 this.mobilePhone = mobilePhone; 394 return this; 395 } 396 397 public Builder papersType(Integer papersType) { 398 this.papersType = papersType; 399 return this; 400 } 401 402 public Builder papersNum(String papersNum) { 403 this.papersNum = papersNum; 404 return this; 405 } 406 407 public Builder imageMd5(String imageMd5) { 408 this.imageMd5 = imageMd5; 409 return this; 410 } 411 412 public Builder expiryDate(Long expiryDate) { 413 this.expiryDate = expiryDate; 414 return this; 415 } 416 417 public Builder activatedDate(Long activatedDate) { 418 this.activatedDate = activatedDate; 419 return this; 420 } 421 422 public Builder remark(String remark) { 423 this.remark = remark; 424 return this; 425 } 426 427 public Builder extBin(ByteString extBin) { 428 this.extBin = extBin; 429 return this; 430 } 431 432 public Builder extTxt(String extTxt) { 433 this.extTxt = extTxt; 434 return this; 435 } 436 437 public Builder createTime(Long createTime) { 438 this.createTime = createTime; 439 return this; 440 } 441 442 public Builder updateTime(Long updateTime) { 443 this.updateTime = updateTime; 444 return this; 445 } 446 447 @Override 448 public PersonBean build() { 449 if (this._new == null) { 450 throw new IllegalStateException("Required field '_new' is missing"); 451 } 452 if (this.modified == null) { 453 throw new IllegalStateException("Required field 'modified' is missing"); 454 } 455 if (this.initialized == null) { 456 throw new IllegalStateException("Required field 'initialized' is missing"); 457 } 458 return new PersonBean(this); 459 } 460 461 @Override 462 public void reset() { 463 this._new = null; 464 this.modified = null; 465 this.initialized = null; 466 this.id = null; 467 this.groupId = null; 468 this.name = null; 469 this.sex = null; 470 this.rank = null; 471 this.password = null; 472 this.birthdate = null; 473 this.mobilePhone = null; 474 this.papersType = null; 475 this.papersNum = null; 476 this.imageMd5 = null; 477 this.expiryDate = null; 478 this.activatedDate = null; 479 this.remark = null; 480 this.extBin = null; 481 this.extTxt = null; 482 this.createTime = null; 483 this.updateTime = null; 484 } 485 } 486 487 private static final class PersonBeanAdapter implements Adapter<PersonBean, Builder> { 488 @Override 489 public void write(Protocol protocol, PersonBean struct) throws IOException { 490 protocol.writeStructBegin("PersonBean"); 491 protocol.writeFieldBegin("_new", 1, TType.BOOL); 492 protocol.writeBool(struct._new); 493 protocol.writeFieldEnd(); 494 protocol.writeFieldBegin("modified", 2, TType.I32); 495 protocol.writeI32(struct.modified); 496 protocol.writeFieldEnd(); 497 protocol.writeFieldBegin("initialized", 3, TType.I32); 498 protocol.writeI32(struct.initialized); 499 protocol.writeFieldEnd(); 500 if (struct.id != null) { 501 protocol.writeFieldBegin("id", 4, TType.I32); 502 protocol.writeI32(struct.id); 503 protocol.writeFieldEnd(); 504 } 505 if (struct.groupId != null) { 506 protocol.writeFieldBegin("groupId", 5, TType.I32); 507 protocol.writeI32(struct.groupId); 508 protocol.writeFieldEnd(); 509 } 510 if (struct.name != null) { 511 protocol.writeFieldBegin("name", 6, TType.STRING); 512 protocol.writeString(struct.name); 513 protocol.writeFieldEnd(); 514 } 515 if (struct.sex != null) { 516 protocol.writeFieldBegin("sex", 7, TType.I32); 517 protocol.writeI32(struct.sex); 518 protocol.writeFieldEnd(); 519 } 520 if (struct.rank != null) { 521 protocol.writeFieldBegin("rank", 8, TType.I32); 522 protocol.writeI32(struct.rank); 523 protocol.writeFieldEnd(); 524 } 525 if (struct.password != null) { 526 protocol.writeFieldBegin("password", 9, TType.STRING); 527 protocol.writeString(struct.password); 528 protocol.writeFieldEnd(); 529 } 530 if (struct.birthdate != null) { 531 protocol.writeFieldBegin("birthdate", 10, TType.I64); 532 protocol.writeI64(struct.birthdate); 533 protocol.writeFieldEnd(); 534 } 535 if (struct.mobilePhone != null) { 536 protocol.writeFieldBegin("mobilePhone", 11, TType.STRING); 537 protocol.writeString(struct.mobilePhone); 538 protocol.writeFieldEnd(); 539 } 540 if (struct.papersType != null) { 541 protocol.writeFieldBegin("papersType", 12, TType.I32); 542 protocol.writeI32(struct.papersType); 543 protocol.writeFieldEnd(); 544 } 545 if (struct.papersNum != null) { 546 protocol.writeFieldBegin("papersNum", 13, TType.STRING); 547 protocol.writeString(struct.papersNum); 548 protocol.writeFieldEnd(); 549 } 550 if (struct.imageMd5 != null) { 551 protocol.writeFieldBegin("imageMd5", 14, TType.STRING); 552 protocol.writeString(struct.imageMd5); 553 protocol.writeFieldEnd(); 554 } 555 if (struct.expiryDate != null) { 556 protocol.writeFieldBegin("expiryDate", 15, TType.I64); 557 protocol.writeI64(struct.expiryDate); 558 protocol.writeFieldEnd(); 559 } 560 if (struct.activatedDate != null) { 561 protocol.writeFieldBegin("activatedDate", 16, TType.I64); 562 protocol.writeI64(struct.activatedDate); 563 protocol.writeFieldEnd(); 564 } 565 if (struct.remark != null) { 566 protocol.writeFieldBegin("remark", 17, TType.STRING); 567 protocol.writeString(struct.remark); 568 protocol.writeFieldEnd(); 569 } 570 if (struct.extBin != null) { 571 protocol.writeFieldBegin("extBin", 18, TType.STRING); 572 protocol.writeBinary(struct.extBin); 573 protocol.writeFieldEnd(); 574 } 575 if (struct.extTxt != null) { 576 protocol.writeFieldBegin("extTxt", 19, TType.STRING); 577 protocol.writeString(struct.extTxt); 578 protocol.writeFieldEnd(); 579 } 580 if (struct.createTime != null) { 581 protocol.writeFieldBegin("createTime", 20, TType.I64); 582 protocol.writeI64(struct.createTime); 583 protocol.writeFieldEnd(); 584 } 585 if (struct.updateTime != null) { 586 protocol.writeFieldBegin("updateTime", 21, TType.I64); 587 protocol.writeI64(struct.updateTime); 588 protocol.writeFieldEnd(); 589 } 590 protocol.writeFieldStop(); 591 protocol.writeStructEnd(); 592 } 593 594 @Override 595 public PersonBean read(Protocol protocol, Builder builder) throws IOException { 596 protocol.readStructBegin(); 597 while (true) { 598 FieldMetadata field = protocol.readFieldBegin(); 599 if (field.typeId == TType.STOP) { 600 break; 601 } 602 switch (field.fieldId) { 603 case 1: { 604 if (field.typeId == TType.BOOL) { 605 boolean value = protocol.readBool(); 606 builder._new(value); 607 } else { 608 ProtocolUtil.skip(protocol, field.typeId); 609 } 610 } 611 break; 612 case 2: { 613 if (field.typeId == TType.I32) { 614 int value = protocol.readI32(); 615 builder.modified(value); 616 } else { 617 ProtocolUtil.skip(protocol, field.typeId); 618 } 619 } 620 break; 621 case 3: { 622 if (field.typeId == TType.I32) { 623 int value = protocol.readI32(); 624 builder.initialized(value); 625 } else { 626 ProtocolUtil.skip(protocol, field.typeId); 627 } 628 } 629 break; 630 case 4: { 631 if (field.typeId == TType.I32) { 632 int value = protocol.readI32(); 633 builder.id(value); 634 } else { 635 ProtocolUtil.skip(protocol, field.typeId); 636 } 637 } 638 break; 639 case 5: { 640 if (field.typeId == TType.I32) { 641 int value = protocol.readI32(); 642 builder.groupId(value); 643 } else { 644 ProtocolUtil.skip(protocol, field.typeId); 645 } 646 } 647 break; 648 case 6: { 649 if (field.typeId == TType.STRING) { 650 String value = protocol.readString(); 651 builder.name(value); 652 } else { 653 ProtocolUtil.skip(protocol, field.typeId); 654 } 655 } 656 break; 657 case 7: { 658 if (field.typeId == TType.I32) { 659 int value = protocol.readI32(); 660 builder.sex(value); 661 } else { 662 ProtocolUtil.skip(protocol, field.typeId); 663 } 664 } 665 break; 666 case 8: { 667 if (field.typeId == TType.I32) { 668 int value = protocol.readI32(); 669 builder.rank(value); 670 } else { 671 ProtocolUtil.skip(protocol, field.typeId); 672 } 673 } 674 break; 675 case 9: { 676 if (field.typeId == TType.STRING) { 677 String value = protocol.readString(); 678 builder.password(value); 679 } else { 680 ProtocolUtil.skip(protocol, field.typeId); 681 } 682 } 683 break; 684 case 10: { 685 if (field.typeId == TType.I64) { 686 long value = protocol.readI64(); 687 builder.birthdate(value); 688 } else { 689 ProtocolUtil.skip(protocol, field.typeId); 690 } 691 } 692 break; 693 case 11: { 694 if (field.typeId == TType.STRING) { 695 String value = protocol.readString(); 696 builder.mobilePhone(value); 697 } else { 698 ProtocolUtil.skip(protocol, field.typeId); 699 } 700 } 701 break; 702 case 12: { 703 if (field.typeId == TType.I32) { 704 int value = protocol.readI32(); 705 builder.papersType(value); 706 } else { 707 ProtocolUtil.skip(protocol, field.typeId); 708 } 709 } 710 break; 711 case 13: { 712 if (field.typeId == TType.STRING) { 713 String value = protocol.readString(); 714 builder.papersNum(value); 715 } else { 716 ProtocolUtil.skip(protocol, field.typeId); 717 } 718 } 719 break; 720 case 14: { 721 if (field.typeId == TType.STRING) { 722 String value = protocol.readString(); 723 builder.imageMd5(value); 724 } else { 725 ProtocolUtil.skip(protocol, field.typeId); 726 } 727 } 728 break; 729 case 15: { 730 if (field.typeId == TType.I64) { 731 long value = protocol.readI64(); 732 builder.expiryDate(value); 733 } else { 734 ProtocolUtil.skip(protocol, field.typeId); 735 } 736 } 737 break; 738 case 16: { 739 if (field.typeId == TType.I64) { 740 long value = protocol.readI64(); 741 builder.activatedDate(value); 742 } else { 743 ProtocolUtil.skip(protocol, field.typeId); 744 } 745 } 746 break; 747 case 17: { 748 if (field.typeId == TType.STRING) { 749 String value = protocol.readString(); 750 builder.remark(value); 751 } else { 752 ProtocolUtil.skip(protocol, field.typeId); 753 } 754 } 755 break; 756 case 18: { 757 if (field.typeId == TType.STRING) { 758 ByteString value = protocol.readBinary(); 759 builder.extBin(value); 760 } else { 761 ProtocolUtil.skip(protocol, field.typeId); 762 } 763 } 764 break; 765 case 19: { 766 if (field.typeId == TType.STRING) { 767 String value = protocol.readString(); 768 builder.extTxt(value); 769 } else { 770 ProtocolUtil.skip(protocol, field.typeId); 771 } 772 } 773 break; 774 case 20: { 775 if (field.typeId == TType.I64) { 776 long value = protocol.readI64(); 777 builder.createTime(value); 778 } else { 779 ProtocolUtil.skip(protocol, field.typeId); 780 } 781 } 782 break; 783 case 21: { 784 if (field.typeId == TType.I64) { 785 long value = protocol.readI64(); 786 builder.updateTime(value); 787 } else { 788 ProtocolUtil.skip(protocol, field.typeId); 789 } 790 } 791 break; 792 default: { 793 ProtocolUtil.skip(protocol, field.typeId); 794 } 795 break; 796 } 797 protocol.readFieldEnd(); 798 } 799 protocol.readStructEnd(); 800 return builder.build(); 801 } 802 803 @Override 804 public PersonBean read(Protocol protocol) throws IOException { 805 return read(protocol, new Builder()); 806 } 807 } 808}