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: { Id = input.ReadString(); break; } case 16: { StartUTC = input.ReadInt64(); break; } case 24: { EndUTC = input.ReadInt64(); break; } case 34: { MediaId = input.ReadString(); break; } case 42: { if (duration_ == null) { duration_ = new global::SnackTime.MediaServer.Storage.ProtoGenerated.Duration(); } input.ReadMessage(duration_); break; } case 49: { MediaLenghtInSec = input.ReadDouble(); break; } case 58: { FromDevice = input.ReadString(); break; } } } }
public void MergeFrom(Session other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.StartUTC != 0L) { StartUTC = other.StartUTC; } if (other.EndUTC != 0L) { EndUTC = other.EndUTC; } if (other.MediaId.Length != 0) { MediaId = other.MediaId; } if (other.duration_ != null) { if (duration_ == null) { duration_ = new global::SnackTime.MediaServer.Storage.ProtoGenerated.Duration(); } Duration.MergeFrom(other.Duration); } if (other.MediaLenghtInSec != 0D) { MediaLenghtInSec = other.MediaLenghtInSec; } if (other.FromDevice.Length != 0) { FromDevice = other.FromDevice; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }