Esempio n. 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    laneId_.AddEntriesFrom(input, _repeated_laneId_codec);
                    break;
                }

                case 26: {
                    if (boundary_ == null)
                    {
                        boundary_ = new global::Apollo.Hdmap.RoadBoundary();
                    }
                    input.ReadMessage(boundary_);
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(RoadSection other)
 {
     if (other == null)
     {
         return;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::Apollo.Hdmap.Id();
         }
         Id.MergeFrom(other.Id);
     }
     laneId_.Add(other.laneId_);
     if (other.boundary_ != null)
     {
         if (boundary_ == null)
         {
             boundary_ = new global::Apollo.Hdmap.RoadBoundary();
         }
         Boundary.MergeFrom(other.Boundary);
     }
 }