コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 16: {
                    type_ = (global::Apollo.Hdmap.BoundaryEdge.Types.Type)input.ReadEnum();
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(BoundaryEdge other)
 {
     if (other == null)
     {
         return;
     }
     if (other.curve_ != null)
     {
         if (curve_ == null)
         {
             curve_ = new global::Apollo.Hdmap.Curve();
         }
         Curve.MergeFrom(other.Curve);
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
 }