Ejemplo 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 (stopPoint_ == null)
                    {
                        stopPoint_ = new global::Apollo.Planning.StopPoint();
                    }
                    input.ReadMessage(stopPoint_);
                    break;
                }

                case 17: {
                    CruiseSpeed = input.ReadDouble();
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
 public void MergeFrom(PlanningTarget other)
 {
     if (other == null)
     {
         return;
     }
     if (other.stopPoint_ != null)
     {
         if (stopPoint_ == null)
         {
             stopPoint_ = new global::Apollo.Planning.StopPoint();
         }
         StopPoint.MergeFrom(other.StopPoint);
     }
     if (other.CruiseSpeed != 0D)
     {
         CruiseSpeed = other.CruiseSpeed;
     }
 }