Example #1
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _laidianStatusModelFieldNames;
     if (hasType)
     {
         output.WriteString(2, field_names[9], Type);
     }
     if (hasTerminal)
     {
         output.WriteString(3, field_names[7], Terminal);
     }
     if (hasTime)
     {
         output.WriteString(4, field_names[8], Time);
     }
     if (hasVd)
     {
         output.WriteString(5, field_names[10], Vd);
     }
     if (hasSmk)
     {
         output.WriteString(6, field_names[4], Smk);
     }
     if (hasTemp)
     {
         output.WriteString(7, field_names[6], Temp);
     }
     if (hasStatus)
     {
         output.WriteString(8, field_names[5], Status);
     }
     if (hasHsnum)
     {
         output.WriteString(9, field_names[1], Hsnum);
     }
     if (hasLinesstatus)
     {
         output.WriteString(10, field_names[3], Linesstatus);
     }
     if (lines_.Count > 0)
     {
         output.WriteInt32Array(11, field_names[2], lines_);
     }
     if (cdbs_.Count > 0)
     {
         output.WriteMessageArray(12, field_names[0], cdbs_);
     }
     UnknownFields.WriteTo(output);
 }