public void MergeFrom(LogMessage other) { if (other == null) { return; } if (other.TimestampMsec != 0L) { TimestampMsec = other.TimestampMsec; } if (other.Message.Length != 0) { Message = other.Message; } if (other.Priority != 0) { Priority = other.Priority; } if (other.source_ != null) { if (source_ == null) { source_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.LogMessage.Types.Source(); } Source.MergeFrom(other.Source); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { TimestampMsec = input.ReadInt64(); break; } case 18: { Message = input.ReadString(); break; } case 24: { priority_ = (global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.LogMessage.Types.Priority)input.ReadEnum(); break; } case 34: { if (source_ == null) { source_ = new global::Rising_Thunder_Server_CS.Protobufs.Tbmatch.LogMessage.Types.Source(); } input.ReadMessage(source_); break; } } } }