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