Exemple #1
0
 public void MergeFrom(StopSign other)
 {
     if (other == null)
     {
         return;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::Apollo.Hdmap.Id();
         }
         Id.MergeFrom(other.Id);
     }
     stopLine_.Add(other.stopLine_);
     overlapId_.Add(other.overlapId_);
     if (other.Type != 0)
     {
         Type = other.Type;
     }
 }
Exemple #2
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: {
                    stopLine_.AddEntriesFrom(input, _repeated_stopLine_codec);
                    break;
                }

                case 26: {
                    overlapId_.AddEntriesFrom(input, _repeated_overlapId_codec);
                    break;
                }

                case 32: {
                    type_ = (global::Apollo.Hdmap.StopSign.Types.StopType)input.ReadEnum();
                    break;
                }
                }
            }
        }