コード例 #1
0
 public void MergeFrom(ContiRadarConf other)
 {
     if (other == null)
     {
         return;
     }
     if (other.canConf_ != null)
     {
         if (canConf_ == null)
         {
             canConf_ = new global::Apollo.Drivers.Conti_Radar.CanConf();
         }
         CanConf.MergeFrom(other.CanConf);
     }
     if (other.radarConf_ != null)
     {
         if (radarConf_ == null)
         {
             radarConf_ = new global::Apollo.Drivers.Conti_Radar.RadarConf();
         }
         RadarConf.MergeFrom(other.RadarConf);
     }
     if (other.RadarChannel.Length != 0)
     {
         RadarChannel = other.RadarChannel;
     }
 }
コード例 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (canConf_ == null)
                    {
                        canConf_ = new global::Apollo.Drivers.Conti_Radar.CanConf();
                    }
                    input.ReadMessage(canConf_);
                    break;
                }

                case 18: {
                    if (radarConf_ == null)
                    {
                        radarConf_ = new global::Apollo.Drivers.Conti_Radar.RadarConf();
                    }
                    input.ReadMessage(radarConf_);
                    break;
                }

                case 26: {
                    RadarChannel = input.ReadString();
                    break;
                }
                }
            }
        }