Example #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);
     }
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (schedulerConf_ != null)
            {
                hash ^= SchedulerConf.GetHashCode();
            }
            if (transportConf_ != null)
            {
                hash ^= TransportConf.GetHashCode();
            }
            if (runModeConf_ != null)
            {
                hash ^= RunModeConf.GetHashCode();
            }
            return(hash);
        }