public void MergeFrom(Event other) { if (other == null) { return; } if (other.Created != 0L) { Created = other.Created; } if (other.Source.Length != 0) { Source = other.Source; } if (other.Instance.Length != 0) { Instance = other.Instance; } switch (other.MsgCase) { case MsgOneofCase.Ka: if (Ka == null) { Ka = new global::Monik.Common.KeepAlive(); } Ka.MergeFrom(other.Ka); break; case MsgOneofCase.Lg: if (Lg == null) { Lg = new global::Monik.Common.Log(); } Lg.MergeFrom(other.Lg); break; case MsgOneofCase.Pc: if (Pc == null) { Pc = new global::Monik.Common.PerfCounter(); } Pc.MergeFrom(other.Pc); break; case MsgOneofCase.Mc: if (Mc == null) { Mc = new global::Monik.Common.Metric(); } Mc.MergeFrom(other.Mc); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }