public void MergeFrom(PlayingMediaInfoChanged other) { if (other == null) { return; } if (other.mediaInfo_ != null) { if (mediaInfo_ == null) { mediaInfo_ = new global::MediaHelper.Protobuf.generated.PlayingMediaInfo(); } MediaInfo.MergeFrom(other.MediaInfo); } if (other.oldMediaInfo_ != null) { if (oldMediaInfo_ == null) { oldMediaInfo_ = new global::MediaHelper.Protobuf.generated.PlayingMediaInfo(); } OldMediaInfo.MergeFrom(other.OldMediaInfo); } if (other.Property != 0) { Property = other.Property; } _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 10: { if (mediaInfo_ == null) { mediaInfo_ = new global::MediaHelper.Protobuf.generated.PlayingMediaInfo(); } input.ReadMessage(mediaInfo_); break; } case 18: { if (oldMediaInfo_ == null) { oldMediaInfo_ = new global::MediaHelper.Protobuf.generated.PlayingMediaInfo(); } input.ReadMessage(oldMediaInfo_); break; } case 24: { property_ = (global::MediaHelper.Protobuf.generated.PlayingMediaInfoChanged.Types.MediaProperty)input.ReadEnum(); break; } } } }