示例#1
0
 public void MergeFrom(TestingData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.symbol_ != null)
     {
         if (symbol_ == null)
         {
             Symbol = new global::Symbol();
         }
         Symbol.MergeFrom(other.Symbol);
     }
     if (other.period_ != null)
     {
         if (period_ == null)
         {
             Period = new global::Period();
         }
         Period.MergeFrom(other.Period);
     }
     if (other.spread_ != null)
     {
         if (spread_ == null)
         {
             Spread = new global::Spread();
         }
         Spread.MergeFrom(other.Spread);
     }
     if (other.timePeriod_ != null)
     {
         if (timePeriod_ == null)
         {
             TimePeriod = new global::TimePeriod();
         }
         TimePeriod.MergeFrom(other.TimePeriod);
     }
     if (other.algorithm_ != null)
     {
         if (algorithm_ == null)
         {
             Algorithm = new global::Algorithm();
         }
         Algorithm.MergeFrom(other.Algorithm);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }