public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (symbol_ == null) { Symbol = new global::Symbol(); } input.ReadMessage(Symbol); break; } case 18: { if (period_ == null) { Period = new global::Period(); } input.ReadMessage(Period); break; } case 26: { if (spread_ == null) { Spread = new global::Spread(); } input.ReadMessage(Spread); break; } case 34: { if (timePeriod_ == null) { TimePeriod = new global::TimePeriod(); } input.ReadMessage(TimePeriod); break; } case 42: { if (algorithm_ == null) { Algorithm = new global::Algorithm(); } input.ReadMessage(Algorithm); break; } } } }
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); }