Exemple #1
0
 public void MergeFrom(CyberConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.schedulerConf_ != null)
     {
         if (schedulerConf_ == null)
         {
             schedulerConf_ = new global::Apollo.Cyber.Proto.SchedulerConf();
         }
         SchedulerConf.MergeFrom(other.SchedulerConf);
     }
     if (other.transportConf_ != null)
     {
         if (transportConf_ == null)
         {
             transportConf_ = new global::Apollo.Cyber.Proto.TransportConf();
         }
         TransportConf.MergeFrom(other.TransportConf);
     }
     if (other.runModeConf_ != null)
     {
         if (runModeConf_ == null)
         {
             runModeConf_ = new global::Apollo.Cyber.Proto.RunModeConf();
         }
         RunModeConf.MergeFrom(other.RunModeConf);
     }
 }
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 (schedulerConf_ == null)
                    {
                        schedulerConf_ = new global::Apollo.Cyber.Proto.SchedulerConf();
                    }
                    input.ReadMessage(schedulerConf_);
                    break;
                }

                case 18: {
                    if (transportConf_ == null)
                    {
                        transportConf_ = new global::Apollo.Cyber.Proto.TransportConf();
                    }
                    input.ReadMessage(transportConf_);
                    break;
                }

                case 26: {
                    if (runModeConf_ == null)
                    {
                        runModeConf_ = new global::Apollo.Cyber.Proto.RunModeConf();
                    }
                    input.ReadMessage(runModeConf_);
                    break;
                }
                }
            }
        }