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

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

                case 10: {
                    if (header_ == null)
                    {
                        header_ = new global::Apollo.Common.Header();
                    }
                    input.ReadMessage(header_);
                    break;
                }

                case 16: {
                    drivingMode_ = (global::Apollo.Canbus.Chassis.Types.DrivingMode)input.ReadEnum();
                    break;
                }

                case 24: {
                    action_ = (global::Apollo.Control.DrivingAction)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(PadMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.DrivingMode != 0)
     {
         DrivingMode = other.DrivingMode;
     }
     if (other.Action != 0)
     {
         Action = other.Action;
     }
 }