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

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (outerPolygon_ == null)
                    {
                        outerPolygon_ = new global::Apollo.Hdmap.BoundaryPolygon();
                    }
                    input.ReadMessage(outerPolygon_);
                    break;
                }

                case 18: {
                    hole_.AddEntriesFrom(input, _repeated_hole_codec);
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(RoadBoundary other)
 {
     if (other == null)
     {
         return;
     }
     if (other.outerPolygon_ != null)
     {
         if (outerPolygon_ == null)
         {
             outerPolygon_ = new global::Apollo.Hdmap.BoundaryPolygon();
         }
         OuterPolygon.MergeFrom(other.OuterPolygon);
     }
     hole_.Add(other.hole_);
 }