Example #1
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _pbDecodeRequestFieldNames;
     if (hasIMEI)
     {
         output.WriteString(1, field_names[1], IMEI);
     }
     if (decodes_.Count > 0)
     {
         output.WriteBytesArray(2, field_names[0], decodes_);
     }
     if (hasLatitude)
     {
         output.WriteDouble(3, field_names[2], Latitude);
     }
     if (hasLongitude)
     {
         output.WriteDouble(4, field_names[3], Longitude);
     }
     if (hasCode)
     {
         output.WriteString(5, field_names[4], Code);
     }
     UnknownFields.WriteTo(output);
 }
Example #2
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _protoDoubleRangeFieldNames;
     if (hasFrom)
     {
         output.WriteDouble(1, field_names[0], From);
     }
     if (hasTo)
     {
         output.WriteDouble(2, field_names[1], To);
     }
     UnknownFields.WriteTo(output);
 }
Example #3
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _itemFieldNames;
     if (hasItemId)
     {
         output.WriteString(1, field_names[3], ItemId);
     }
     if (hasName)
     {
         output.WriteString(3, field_names[5], Name);
     }
     if (hasDescription)
     {
         output.WriteString(4, field_names[2], Description);
     }
     if (hasCatalogName)
     {
         output.WriteString(5, field_names[1], CatalogName);
     }
     if (hasCatalogImageUrl)
     {
         output.WriteString(6, field_names[0], CatalogImageUrl);
     }
     if (hasItemImageUrl)
     {
         output.WriteString(7, field_names[4], ItemImageUrl);
     }
     if (hasPrice)
     {
         output.WriteDouble(9, field_names[6], Price);
     }
     UnknownFields.WriteTo(output);
 }
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _lineSensorFieldNames;
     if (hasSensedPoint)
     {
         output.WriteMessage(1, field_names[3], SensedPoint);
     }
     if (hasStart)
     {
         output.WriteMessage(2, field_names[5], Start);
     }
     if (hasEnd)
     {
         output.WriteMessage(3, field_names[0], End);
     }
     if (hasRadius)
     {
         output.WriteDouble(4, field_names[1], Radius);
     }
     if (hasSensedPart)
     {
         output.WriteString(5, field_names[2], SensedPart);
     }
     if (hasSensorID)
     {
         output.WriteUInt32(6, field_names[4], SensorID);
     }
     UnknownFields.WriteTo(output);
 }
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _pointFieldNames;
     if (hasX)
     {
         output.WriteDouble(1, field_names[0], X);
     }
     if (hasY)
     {
         output.WriteDouble(2, field_names[1], Y);
     }
     if (hasZ)
     {
         output.WriteDouble(3, field_names[2], Z);
     }
     UnknownFields.WriteTo(output);
 }