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