Example #1
0
    public void MergeFrom(pb::CodedInputStream input)
    {
        uint tag;

        while ((tag = input.ReadTag()) != 0)
        {
            switch (tag)
            {
            default:
                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                break;

            case 8: {
                ClassId = input.ReadInt32();
                break;
            }

            case 21: {
                Score = input.ReadFloat();
                break;
            }

            case 26: {
                if (bbox_ == null)
                {
                    bbox_ = new global::BBox();
                }
                input.ReadMessage(bbox_);
                break;
            }

            case 34: {
                if (segm_ == null)
                {
                    segm_ = new global::SegmObject();
                }
                input.ReadMessage(segm_);
                break;
            }

            case 42: {
                if (florplanpoint_ == null)
                {
                    florplanpoint_ = new global::Point();
                }
                input.ReadMessage(florplanpoint_);
                break;
            }

            case 50: {
                Features = input.ReadString();
                break;
            }
            }
        }
    }
Example #2
0
 public void MergeFrom(ObjectAnnotation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ClassId != 0)
     {
         ClassId = other.ClassId;
     }
     if (other.Score != 0F)
     {
         Score = other.Score;
     }
     if (other.bbox_ != null)
     {
         if (bbox_ == null)
         {
             bbox_ = new global::BBox();
         }
         Bbox.MergeFrom(other.Bbox);
     }
     if (other.segm_ != null)
     {
         if (segm_ == null)
         {
             segm_ = new global::SegmObject();
         }
         Segm.MergeFrom(other.Segm);
     }
     if (other.florplanpoint_ != null)
     {
         if (florplanpoint_ == null)
         {
             florplanpoint_ = new global::Point();
         }
         Florplanpoint.MergeFrom(other.Florplanpoint);
     }
     if (other.Features.Length != 0)
     {
         Features = other.Features;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }