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