diff --git a/src/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs b/src/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs
index a499745..f7c51ad 100644
--- a/src/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs
+++ b/src/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs
@@ -13,6 +13,7 @@ namespace DownKyi.Core.BiliApi.BiliUtils
/// 番剧(电影、电视剧)md号:md28228367, MD28228367, https://www.bilibili.com/bangumi/media/md28228367
/// 课程ss号:https://www.bilibili.com/cheese/play/ss205
/// 课程ep号:https://www.bilibili.com/cheese/play/ep3489
+ /// 收藏夹:ml1329019876, ML1329019876, https://www.bilibili.com/medialist/detail/ml1329019876
/// 用户空间:uid928123, UID928123, uid:928123, UID:928123, https://space.bilibili.com/928123
///
public static class ParseEntrance
@@ -25,6 +26,7 @@ namespace DownKyi.Core.BiliApi.BiliUtils
public static readonly string BangumiUrl = $"{WwwUrl}/bangumi/play/";
public static readonly string BangumiMediaUrl = $"{WwwUrl}/bangumi/media/";
public static readonly string CheeseUrl = $"{WwwUrl}/cheese/play/";
+ public static readonly string FavoritesUrl = $"{WwwUrl}/medialist/detail/";
#region 视频
@@ -290,6 +292,52 @@ namespace DownKyi.Core.BiliApi.BiliUtils
#endregion
+ #region 收藏夹
+
+ ///
+ /// 是否为收藏夹id
+ ///
+ ///
+ ///
+ public static bool IsFavoritesId(string input)
+ {
+ return IsIntId(input, "ml");
+ }
+
+ ///
+ /// 是否为收藏夹url
+ ///
+ ///
+ ///
+ public static bool IsFavoritesUrl(string input)
+ {
+ string favoritesId = GetId(input, FavoritesUrl);
+ return IsFavoritesId(favoritesId);
+ }
+
+ ///
+ /// 获取收藏夹id
+ ///
+ ///
+ ///
+ public static long GetFavoritesId(string input)
+ {
+ if (IsFavoritesId(input))
+ {
+ return Number.GetInt(input.Remove(0, 2));
+ }
+ else if (IsFavoritesUrl(input))
+ {
+ return Number.GetInt(GetId(input, FavoritesUrl).Remove(0, 2));
+ }
+ else
+ {
+ return -1;
+ }
+ }
+
+ #endregion
+
#region 用户空间
///
diff --git a/src/DownKyi.Core/BiliApi/Danmaku/DanmakuProtobuf.cs b/src/DownKyi.Core/BiliApi/Danmaku/DanmakuProtobuf.cs
new file mode 100644
index 0000000..4bee84e
--- /dev/null
+++ b/src/DownKyi.Core/BiliApi/Danmaku/DanmakuProtobuf.cs
@@ -0,0 +1,104 @@
+using Bilibili.Community.Service.Dm.V1;
+using DownKyi.Core.BiliApi.Danmaku.Models;
+using System;
+using System.Collections.Generic;
+using System.IO;
+
+namespace DownKyi.Core.BiliApi.Danmaku
+{
+ public static class DanmakuProtobuf
+ {
+
+ ///
+ /// 下载6分钟内的弹幕,返回弹幕列表
+ ///
+ /// 稿件avID
+ /// 视频CID
+ /// 分包,每6分钟一包
+ ///
+ public static List GetDanmakuProto(long avid, long cid, int segmentIndex)
+ {
+ string url = $"https://api.bilibili.com/x/v2/dm/web/seg.so?type=1&oid={cid}&pid={avid}&segment_index={segmentIndex}";
+ //string referer = "https://www.bilibili.com";
+
+ string directory = Path.Combine(Storage.StorageManager.GetDanmaku(), $"{cid}");
+ string filePath = Path.Combine(directory, $"{segmentIndex}.proto");
+ if (!Directory.Exists(directory))
+ {
+ Directory.CreateDirectory(directory);
+ }
+
+ try
+ {
+ System.Net.WebClient mywebclient = new System.Net.WebClient();
+ mywebclient.DownloadFile(url, filePath);
+ }
+ catch (Exception e)
+ {
+ Utils.Debug.Console.PrintLine("GetDanmakuProto()发生异常: {0}", e);
+ //Logging.LogManager.Error(e);
+ }
+
+ var danmakuList = new List();
+ try
+ {
+ using (var input = File.OpenRead(filePath))
+ {
+ DmSegMobileReply danmakus = DmSegMobileReply.Parser.ParseFrom(input);
+ if (danmakus == null || danmakus.Elems == null)
+ {
+ return danmakuList;
+ }
+
+ foreach (var dm in danmakus.Elems)
+ {
+ var danmaku = new BiliDanmaku
+ {
+ Id = dm.Id,
+ Progress = dm.Progress,
+ Mode = dm.Mode,
+ Fontsize = dm.Fontsize,
+ Color = dm.Color,
+ MidHash = dm.MidHash,
+ Content = dm.Content,
+ Ctime = dm.Ctime,
+ Weight = dm.Weight,
+ //Action = dm.Action,
+ Pool = dm.Pool
+ };
+ danmakuList.Add(danmaku);
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ Utils.Debug.Console.PrintLine("GetDanmakuProto()发生异常: {0}", e);
+ //Logging.LogManager.Error(e);
+ return null;
+ }
+
+ return danmakuList;
+ }
+
+ ///
+ /// 下载所有弹幕,返回弹幕列表
+ ///
+ /// 稿件avID
+ /// 视频CID
+ ///
+ public static List GetAllDanmakuProto(long avid, long cid)
+ {
+ var danmakuList = new List();
+
+ int segmentIndex = 0;
+ while (true)
+ {
+ segmentIndex += 1;
+ var danmakus = GetDanmakuProto(avid, cid, segmentIndex);
+ if (danmakus == null) { break; }
+ danmakuList.AddRange(danmakus);
+ }
+ return danmakuList;
+ }
+ }
+}
diff --git a/src/DownKyi.Core/BiliApi/Danmaku/Models/BiliDanmaku.cs b/src/DownKyi.Core/BiliApi/Danmaku/Models/BiliDanmaku.cs
new file mode 100644
index 0000000..48892ba
--- /dev/null
+++ b/src/DownKyi.Core/BiliApi/Danmaku/Models/BiliDanmaku.cs
@@ -0,0 +1,33 @@
+namespace DownKyi.Core.BiliApi.Danmaku.Models
+{
+ public class BiliDanmaku
+ {
+ public long Id { get; set; } //弹幕dmID
+ public int Progress { get; set; } //出现时间
+ public int Mode { get; set; } //弹幕类型
+ public int Fontsize { get; set; } //文字大小
+ public uint Color { get; set; } //弹幕颜色
+ public string MidHash { get; set; } //发送者UID的HASH
+ public string Content { get; set; } //弹幕内容
+ public long Ctime { get; set; } //发送时间
+ public int Weight { get; set; } //权重
+ //public string Action { get; set; } //动作?
+ public int Pool { get; set; } //弹幕池
+
+ public override string ToString()
+ {
+ string separator = "\n";
+ return $"id: {Id}{separator}" +
+ $"progress: {Progress}{separator}" +
+ $"mode: {Mode}{separator}" +
+ $"fontsize: {Fontsize}{separator}" +
+ $"color: {Color}{separator}" +
+ $"midHash: {MidHash}{separator}" +
+ $"content: {Content}{separator}" +
+ $"ctime: {Ctime}{separator}" +
+ $"weight: {Weight}{separator}" +
+ //$"action: {Action}{separator}" +
+ $"pool: {Pool}";
+ }
+ }
+}
diff --git a/src/DownKyi.Core/BiliApi/protobuf/bilibili/community/service/dm/v1/Dm.cs b/src/DownKyi.Core/BiliApi/protobuf/bilibili/community/service/dm/v1/Dm.cs
new file mode 100644
index 0000000..a423dbb
--- /dev/null
+++ b/src/DownKyi.Core/BiliApi/protobuf/bilibili/community/service/dm/v1/Dm.cs
@@ -0,0 +1,14819 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: bilibili/community/service/dm/v1/dm.proto
+//
+#pragma warning disable 1591, 0612, 3021
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Bilibili.Community.Service.Dm.V1 {
+
+ /// Holder for reflection information generated from bilibili/community/service/dm/v1/dm.proto
+ public static partial class DmReflection {
+
+ #region Descriptor
+ /// File descriptor for bilibili/community/service/dm/v1/dm.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static DmReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CiliaWxpYmlsaS9jb21tdW5pdHkvc2VydmljZS9kbS92MS9kbS5wcm90bxIg",
+ "YmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEiTAoLRG1TZWdTREtS",
+ "ZXESCwoDcGlkGAEgASgDEgsKA29pZBgCIAEoAxIMCgR0eXBlGAMgASgFEhUK",
+ "DXNlZ21lbnRfaW5kZXgYBCABKAMiXQoNRG1TZWdTREtSZXBseRIOCgZjbG9z",
+ "ZWQYASABKAgSPAoFZWxlbXMYAiADKAsyLS5iaWxpYmlsaS5jb21tdW5pdHku",
+ "c2VydmljZS5kbS52MS5EYW5tYWt1RWxlbSJMCgtEbVNlZ090dFJlcRILCgNw",
+ "aWQYASABKAMSCwoDb2lkGAIgASgDEgwKBHR5cGUYAyABKAUSFQoNc2VnbWVu",
+ "dF9pbmRleBgEIAEoAyJdCg1EbVNlZ090dFJlcGx5Eg4KBmNsb3NlZBgBIAEo",
+ "CBI8CgVlbGVtcxgCIAMoCzItLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNl",
+ "LmRtLnYxLkRhbm1ha3VFbGVtImcKDkRtU2VnTW9iaWxlUmVxEgsKA3BpZBgB",
+ "IAEoAxILCgNvaWQYAiABKAMSDAoEdHlwZRgDIAEoBRIVCg1zZWdtZW50X2lu",
+ "ZGV4GAQgASgDEhYKDnRlZW5hZ2Vyc19tb2RlGAUgASgFIqEBChBEbVNlZ01v",
+ "YmlsZVJlcGx5EjwKBWVsZW1zGAEgAygLMi0uYmlsaWJpbGkuY29tbXVuaXR5",
+ "LnNlcnZpY2UuZG0udjEuRGFubWFrdUVsZW0SDQoFc3RhdGUYAiABKAUSQAoH",
+ "YWlfZmxhZxgDIAEoCzIvLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRt",
+ "LnYxLkRhbm1ha3VBSUZsYWciWAoJRG1WaWV3UmVxEgsKA3BpZBgBIAEoAxIL",
+ "CgNvaWQYAiABKAMSDAoEdHlwZRgDIAEoBRINCgVzcG1pZBgEIAEoCRIUCgxp",
+ "c19oYXJkX2Jvb3QYBSABKAUi8AMKC0RtVmlld1JlcGx5Eg4KBmNsb3NlZBgB",
+ "IAEoCBI5CgRtYXNrGAIgASgLMisuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZp",
+ "Y2UuZG0udjEuVmlkZW9NYXNrEkEKCHN1YnRpdGxlGAMgASgLMi8uYmlsaWJp",
+ "bGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuVmlkZW9TdWJ0aXRsZRITCgtz",
+ "cGVjaWFsX2RtcxgEIAMoCRJECgdhaV9mbGFnGAUgASgLMjMuYmlsaWJpbGku",
+ "Y29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRGFubWFrdUZsYWdDb25maWcSTgoN",
+ "cGxheWVyX2NvbmZpZxgGIAEoCzI3LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2",
+ "aWNlLmRtLnYxLkRhbm11UGxheWVyVmlld0NvbmZpZxIWCg5zZW5kX2JveF9z",
+ "dHlsZRgHIAEoBRINCgVhbGxvdxgIIAEoCBIRCgljaGVja19ib3gYCSABKAkS",
+ "GgoSY2hlY2tfYm94X3Nob3dfbXNnGAogASgJEhgKEHRleHRfcGxhY2Vob2xk",
+ "ZXIYCyABKAkSGQoRaW5wdXRfcGxhY2Vob2xkZXIYDCABKAkSHQoVcmVwb3J0",
+ "X2ZpbHRlcl9jb250ZW50GA0gAygJIqgDCg5EbVdlYlZpZXdSZXBseRINCgVz",
+ "dGF0ZRgBIAEoBRIMCgR0ZXh0GAIgASgJEhEKCXRleHRfc2lkZRgDIAEoCRI9",
+ "CgZkbV9zZ2UYBCABKAsyLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5k",
+ "bS52MS5EbVNlZ0NvbmZpZxJBCgRmbGFnGAUgASgLMjMuYmlsaWJpbGkuY29t",
+ "bXVuaXR5LnNlcnZpY2UuZG0udjEuRGFubWFrdUZsYWdDb25maWcSEwoLc3Bl",
+ "Y2lhbF9kbXMYBiADKAkSEQoJY2hlY2tfYm94GAcgASgIEg0KBWNvdW50GAgg",
+ "ASgDEj8KCmNvbW1hbmREbXMYCSADKAsyKy5iaWxpYmlsaS5jb21tdW5pdHku",
+ "c2VydmljZS5kbS52MS5Db21tYW5kRG0STQoNcGxheWVyX2NvbmZpZxgKIAEo",
+ "CzI2LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm11V2Vi",
+ "UGxheWVyQ29uZmlnEh0KFXJlcG9ydF9maWx0ZXJfY29udGVudBgLIAMoCSKh",
+ "AQoJQ29tbWFuZERtEgoKAmlkGAEgASgDEgsKA29pZBgCIAEoAxILCgNtaWQY",
+ "AyABKAkSDwoHY29tbWFuZBgEIAEoCRIPCgdjb250ZW50GAUgASgJEhAKCHBy",
+ "b2dyZXNzGAYgASgFEg0KBWN0aW1lGAcgASgJEg0KBW10aW1lGAggASgJEg0K",
+ "BWV4dHJhGAkgASgJEg0KBWlkU3RyGAogASgJIi8KC0RtU2VnQ29uZmlnEhEK",
+ "CXBhZ2Vfc2l6ZRgBIAEoAxINCgV0b3RhbBgCIAEoAyJTCglWaWRlb01hc2sS",
+ "CwoDY2lkGAEgASgDEgwKBHBsYXQYAiABKAUSCwoDZnBzGAMgASgFEgwKBHRp",
+ "bWUYBCABKAMSEAoIbWFza191cmwYBSABKAkibwoNVmlkZW9TdWJ0aXRsZRIL",
+ "CgNsYW4YASABKAkSDgoGbGFuRG9jGAIgASgJEkEKCXN1YnRpdGxlcxgDIAMo",
+ "CzIuLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlN1YnRpdGxl",
+ "SXRlbSKPAwoURGFubXVXZWJQbGF5ZXJDb25maWcSEQoJZG1fc3dpdGNoGAEg",
+ "ASgIEhEKCWFpX3N3aXRjaBgCIAEoCBIQCghhaV9sZXZlbBgDIAEoBRIQCghi",
+ "bG9ja3RvcBgEIAEoCBITCgtibG9ja3Njcm9sbBgFIAEoCBITCgtibG9ja2Jv",
+ "dHRvbRgGIAEoCBISCgpibG9ja2NvbG9yGAcgASgIEhQKDGJsb2Nrc3BlY2lh",
+ "bBgIIAEoCBIUCgxwcmV2ZW50c2hhZGUYCSABKAgSDQoFZG1hc2sYCiABKAgS",
+ "DwoHb3BhY2l0eRgLIAEoAhIOCgZkbWFyZWEYDCABKAUSEQoJc3BlZWRwbHVz",
+ "GA0gASgCEhAKCGZvbnRzaXplGA4gASgCEhIKCnNjcmVlbnN5bmMYDyABKAgS",
+ "EQoJc3BlZWRzeW5jGBAgASgIEhIKCmZvbnRmYW1pbHkYESABKAkSDAoEYm9s",
+ "ZBgSIAEoCBISCgpmb250Ym9yZGVyGBMgASgFEhEKCWRyYXdfdHlwZRgUIAEo",
+ "CSKaAQoMU3VidGl0bGVJdGVtEgoKAmlkGAEgASgDEg4KBmlkX3N0chgCIAEo",
+ "CRILCgNsYW4YAyABKAkSDwoHbGFuX2RvYxgEIAEoCRIUCgxzdWJ0aXRsZV91",
+ "cmwYBSABKAkSOgoGYXV0aG9yGAYgASgLMiouYmlsaWJpbGkuY29tbXVuaXR5",
+ "LnNlcnZpY2UuZG0udjEuVXNlckluZm8iXAoIVXNlckluZm8SCwoDbWlkGAEg",
+ "ASgDEgwKBG5hbWUYAiABKAkSCwoDc2V4GAMgASgJEgwKBGZhY2UYBCABKAkS",
+ "DAoEc2lnbhgFIAEoCRIMCgRyYW5rGAYgASgFItYBCgtEYW5tYWt1RWxlbRIK",
+ "CgJpZBgBIAEoAxIQCghwcm9ncmVzcxgCIAEoBRIMCgRtb2RlGAMgASgFEhAK",
+ "CGZvbnRzaXplGAQgASgFEg0KBWNvbG9yGAUgASgNEg8KB21pZEhhc2gYBiAB",
+ "KAkSDwoHY29udGVudBgHIAEoCRINCgVjdGltZRgIIAEoAxIOCgZ3ZWlnaHQY",
+ "CSABKAUSDgoGYWN0aW9uGAogASgJEgwKBHBvb2wYCyABKAUSDQoFaWRTdHIY",
+ "DCABKAkSDAoEYXR0chgNIAEoBSKgCwoRRG1QbGF5ZXJDb25maWdSZXESCgoC",
+ "dHMYASABKAMSRQoGc3dpdGNoGAIgASgLMjUuYmlsaWJpbGkuY29tbXVuaXR5",
+ "LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdVN3aXRjaBJOCgtzd2l0Y2hf",
+ "c2F2ZRgDIAEoCzI5LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYx",
+ "LlBsYXllckRhbm1ha3VTd2l0Y2hTYXZlElsKEnVzZV9kZWZhdWx0X2NvbmZp",
+ "ZxgEIAEoCzI/LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBs",
+ "YXllckRhbm1ha3VVc2VEZWZhdWx0Q29uZmlnEmEKFWFpX3JlY29tbWVuZGVk",
+ "X3N3aXRjaBgFIAEoCzJCLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRt",
+ "LnYxLlBsYXllckRhbm1ha3VBaVJlY29tbWVuZGVkU3dpdGNoEl8KFGFpX3Jl",
+ "Y29tbWVuZGVkX2xldmVsGAYgASgLMkEuYmlsaWJpbGkuY29tbXVuaXR5LnNl",
+ "cnZpY2UuZG0udjEuUGxheWVyRGFubWFrdUFpUmVjb21tZW5kZWRMZXZlbBJJ",
+ "CghibG9ja3RvcBgHIAEoCzI3LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNl",
+ "LmRtLnYxLlBsYXllckRhbm1ha3VCbG9ja3RvcBJPCgtibG9ja3Njcm9sbBgI",
+ "IAEoCzI6LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBsYXll",
+ "ckRhbm1ha3VCbG9ja3Njcm9sbBJPCgtibG9ja2JvdHRvbRgJIAEoCzI6LmJp",
+ "bGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBsYXllckRhbm1ha3VC",
+ "bG9ja2JvdHRvbRJTCg1ibG9ja2NvbG9yZnVsGAogASgLMjwuYmlsaWJpbGku",
+ "Y29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdUJsb2NrY29s",
+ "b3JmdWwSTwoLYmxvY2tyZXBlYXQYCyABKAsyOi5iaWxpYmlsaS5jb21tdW5p",
+ "dHkuc2VydmljZS5kbS52MS5QbGF5ZXJEYW5tYWt1QmxvY2tyZXBlYXQSUQoM",
+ "YmxvY2tzcGVjaWFsGAwgASgLMjsuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZp",
+ "Y2UuZG0udjEuUGxheWVyRGFubWFrdUJsb2Nrc3BlY2lhbBJHCgdvcGFjaXR5",
+ "GA0gASgLMjYuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxh",
+ "eWVyRGFubWFrdU9wYWNpdHkSUwoNc2NhbGluZ2ZhY3RvchgOIAEoCzI8LmJp",
+ "bGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBsYXllckRhbm1ha3VT",
+ "Y2FsaW5nZmFjdG9yEkUKBmRvbWFpbhgPIAEoCzI1LmJpbGliaWxpLmNvbW11",
+ "bml0eS5zZXJ2aWNlLmRtLnYxLlBsYXllckRhbm1ha3VEb21haW4SQwoFc3Bl",
+ "ZWQYECABKAsyNC5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5Q",
+ "bGF5ZXJEYW5tYWt1U3BlZWQSVwoPZW5hYmxlYmxvY2tsaXN0GBEgASgLMj4u",
+ "YmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFr",
+ "dUVuYWJsZWJsb2NrbGlzdBJeChlpbmxpbmVQbGF5ZXJEYW5tYWt1U3dpdGNo",
+ "GBIgASgLMjsuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuSW5s",
+ "aW5lUGxheWVyRGFubWFrdVN3aXRjaCIpCghSZXNwb25zZRIMCgRjb2RlGAEg",
+ "ASgFEg8KB21lc3NhZ2UYAiABKAkiKQoLRGFubWFrdUZsYWcSDAoEZG1pZBgB",
+ "IAEoAxIMCgRmbGFnGAIgASgNIksKEURhbm1ha3VGbGFnQ29uZmlnEhAKCHJl",
+ "Y19mbGFnGAEgASgFEhAKCHJlY190ZXh0GAIgASgJEhIKCnJlY19zd2l0Y2gY",
+ "AyABKAUiUAoNRGFubWFrdUFJRmxhZxI/CghkbV9mbGFncxgBIAMoCzItLmJp",
+ "bGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm1ha3VGbGFnIrEC",
+ "ChVEYW5tdVBsYXllclZpZXdDb25maWcSYQodZGFubXVrdV9kZWZhdWx0X3Bs",
+ "YXllcl9jb25maWcYASABKAsyOi5iaWxpYmlsaS5jb21tdW5pdHkuc2Vydmlj",
+ "ZS5kbS52MS5EYW5tdURlZmF1bHRQbGF5ZXJDb25maWcSUgoVZGFubXVrdV9w",
+ "bGF5ZXJfY29uZmlnGAIgASgLMjMuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZp",
+ "Y2UuZG0udjEuRGFubXVQbGF5ZXJDb25maWcSYQodZGFubXVrdV9wbGF5ZXJf",
+ "ZHluYW1pY19jb25maWcYAyADKAsyOi5iaWxpYmlsaS5jb21tdW5pdHkuc2Vy",
+ "dmljZS5kbS52MS5EYW5tdVBsYXllckR5bmFtaWNDb25maWcioQQKGERhbm11",
+ "RGVmYXVsdFBsYXllckNvbmZpZxIpCiFwbGF5ZXJfZGFubWFrdV91c2VfZGVm",
+ "YXVsdF9jb25maWcYASABKAgSLAokcGxheWVyX2Rhbm1ha3VfYWlfcmVjb21t",
+ "ZW5kZWRfc3dpdGNoGAQgASgIEisKI3BsYXllcl9kYW5tYWt1X2FpX3JlY29t",
+ "bWVuZGVkX2xldmVsGAUgASgFEh8KF3BsYXllcl9kYW5tYWt1X2Jsb2NrdG9w",
+ "GAYgASgIEiIKGnBsYXllcl9kYW5tYWt1X2Jsb2Nrc2Nyb2xsGAcgASgIEiIK",
+ "GnBsYXllcl9kYW5tYWt1X2Jsb2NrYm90dG9tGAggASgIEiQKHHBsYXllcl9k",
+ "YW5tYWt1X2Jsb2NrY29sb3JmdWwYCSABKAgSIgoacGxheWVyX2Rhbm1ha3Vf",
+ "YmxvY2tyZXBlYXQYCiABKAgSIwobcGxheWVyX2Rhbm1ha3VfYmxvY2tzcGVj",
+ "aWFsGAsgASgIEh4KFnBsYXllcl9kYW5tYWt1X29wYWNpdHkYDCABKAISJAoc",
+ "cGxheWVyX2Rhbm1ha3Vfc2NhbGluZ2ZhY3RvchgNIAEoAhIdChVwbGF5ZXJf",
+ "ZGFubWFrdV9kb21haW4YDiABKAISHAoUcGxheWVyX2Rhbm1ha3Vfc3BlZWQY",
+ "DyABKAUSJAocaW5saW5lX3BsYXllcl9kYW5tYWt1X3N3aXRjaBgQIAEoCCKr",
+ "BQoRRGFubXVQbGF5ZXJDb25maWcSHQoVcGxheWVyX2Rhbm1ha3Vfc3dpdGNo",
+ "GAEgASgIEiIKGnBsYXllcl9kYW5tYWt1X3N3aXRjaF9zYXZlGAIgASgIEikK",
+ "IXBsYXllcl9kYW5tYWt1X3VzZV9kZWZhdWx0X2NvbmZpZxgDIAEoCBIsCiRw",
+ "bGF5ZXJfZGFubWFrdV9haV9yZWNvbW1lbmRlZF9zd2l0Y2gYBCABKAgSKwoj",
+ "cGxheWVyX2Rhbm1ha3VfYWlfcmVjb21tZW5kZWRfbGV2ZWwYBSABKAUSHwoX",
+ "cGxheWVyX2Rhbm1ha3VfYmxvY2t0b3AYBiABKAgSIgoacGxheWVyX2Rhbm1h",
+ "a3VfYmxvY2tzY3JvbGwYByABKAgSIgoacGxheWVyX2Rhbm1ha3VfYmxvY2ti",
+ "b3R0b20YCCABKAgSJAoccGxheWVyX2Rhbm1ha3VfYmxvY2tjb2xvcmZ1bBgJ",
+ "IAEoCBIiChpwbGF5ZXJfZGFubWFrdV9ibG9ja3JlcGVhdBgKIAEoCBIjChtw",
+ "bGF5ZXJfZGFubWFrdV9ibG9ja3NwZWNpYWwYCyABKAgSHgoWcGxheWVyX2Rh",
+ "bm1ha3Vfb3BhY2l0eRgMIAEoAhIkChxwbGF5ZXJfZGFubWFrdV9zY2FsaW5n",
+ "ZmFjdG9yGA0gASgCEh0KFXBsYXllcl9kYW5tYWt1X2RvbWFpbhgOIAEoAhIc",
+ "ChRwbGF5ZXJfZGFubWFrdV9zcGVlZBgPIAEoBRImCh5wbGF5ZXJfZGFubWFr",
+ "dV9lbmFibGVibG9ja2xpc3QYECABKAgSJAocaW5saW5lX3BsYXllcl9kYW5t",
+ "YWt1X3N3aXRjaBgRIAEoCBIkChxpbmxpbmVfcGxheWVyX2Rhbm1ha3VfY29u",
+ "ZmlnGBIgASgFIksKGERhbm11UGxheWVyRHluYW1pY0NvbmZpZxIQCghwcm9n",
+ "cmVzcxgBIAEoBRIdChVwbGF5ZXJfZGFubWFrdV9kb21haW4YAiABKAIiNwoT",
+ "UGxheWVyRGFubWFrdVN3aXRjaBINCgV2YWx1ZRgBIAEoCBIRCgljYW5JZ25v",
+ "cmUYAiABKAgiKAoXUGxheWVyRGFubWFrdVN3aXRjaFNhdmUSDQoFdmFsdWUY",
+ "ASABKAgiLgodUGxheWVyRGFubWFrdVVzZURlZmF1bHRDb25maWcSDQoFdmFs",
+ "dWUYASABKAgiMQogUGxheWVyRGFubWFrdUFpUmVjb21tZW5kZWRTd2l0Y2gS",
+ "DQoFdmFsdWUYASABKAgiMAofUGxheWVyRGFubWFrdUFpUmVjb21tZW5kZWRM",
+ "ZXZlbBINCgV2YWx1ZRgBIAEoCCImChVQbGF5ZXJEYW5tYWt1QmxvY2t0b3AS",
+ "DQoFdmFsdWUYASABKAgiKQoYUGxheWVyRGFubWFrdUJsb2Nrc2Nyb2xsEg0K",
+ "BXZhbHVlGAEgASgIIikKGFBsYXllckRhbm1ha3VCbG9ja2JvdHRvbRINCgV2",
+ "YWx1ZRgBIAEoCCIrChpQbGF5ZXJEYW5tYWt1QmxvY2tjb2xvcmZ1bBINCgV2",
+ "YWx1ZRgBIAEoCCIpChhQbGF5ZXJEYW5tYWt1QmxvY2tyZXBlYXQSDQoFdmFs",
+ "dWUYASABKAgiKgoZUGxheWVyRGFubWFrdUJsb2Nrc3BlY2lhbBINCgV2YWx1",
+ "ZRgBIAEoCCIlChRQbGF5ZXJEYW5tYWt1T3BhY2l0eRINCgV2YWx1ZRgBIAEo",
+ "AiIrChpQbGF5ZXJEYW5tYWt1U2NhbGluZ2ZhY3RvchINCgV2YWx1ZRgBIAEo",
+ "AiIkChNQbGF5ZXJEYW5tYWt1RG9tYWluEg0KBXZhbHVlGAEgASgCIiMKElBs",
+ "YXllckRhbm1ha3VTcGVlZBINCgV2YWx1ZRgBIAEoBSItChxQbGF5ZXJEYW5t",
+ "YWt1RW5hYmxlYmxvY2tsaXN0Eg0KBXZhbHVlGAEgASgIIioKGUlubGluZVBs",
+ "YXllckRhbm1ha3VTd2l0Y2gSDQoFdmFsdWUYASABKAgqTAoJRE1BdHRyQml0",
+ "EhQKEERNQXR0ckJpdFByb3RlY3QQABIVChFETUF0dHJCaXRGcm9tTGl2ZRAB",
+ "EhIKDkRNQXR0ckhpZ2hMaWtlEAIyqgQKAkRNEnMKC0RtU2VnTW9iaWxlEjAu",
+ "YmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1TZWdNb2JpbGVS",
+ "ZXEaMi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbVNlZ01v",
+ "YmlsZVJlcGx5EmQKBkRtVmlldxIrLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2",
+ "aWNlLmRtLnYxLkRtVmlld1JlcRotLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2",
+ "aWNlLmRtLnYxLkRtVmlld1JlcGx5EnEKDkRtUGxheWVyQ29uZmlnEjMuYmls",
+ "aWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1QbGF5ZXJDb25maWdS",
+ "ZXEaKi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5SZXNwb25z",
+ "ZRJqCghEbVNlZ090dBItLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRt",
+ "LnYxLkRtU2VnT3R0UmVxGi8uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2Uu",
+ "ZG0udjEuRG1TZWdPdHRSZXBseRJqCghEbVNlZ1NESxItLmJpbGliaWxpLmNv",
+ "bW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtU2VnU0RLUmVxGi8uYmlsaWJpbGku",
+ "Y29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1TZWdTREtSZXBseWIGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bilibili.Community.Service.Dm.V1.DMAttrBit), }, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmSegSDKReq), global::Bilibili.Community.Service.Dm.V1.DmSegSDKReq.Parser, new[]{ "Pid", "Oid", "Type", "SegmentIndex" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmSegSDKReply), global::Bilibili.Community.Service.Dm.V1.DmSegSDKReply.Parser, new[]{ "Closed", "Elems" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmSegOttReq), global::Bilibili.Community.Service.Dm.V1.DmSegOttReq.Parser, new[]{ "Pid", "Oid", "Type", "SegmentIndex" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmSegOttReply), global::Bilibili.Community.Service.Dm.V1.DmSegOttReply.Parser, new[]{ "Closed", "Elems" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmSegMobileReq), global::Bilibili.Community.Service.Dm.V1.DmSegMobileReq.Parser, new[]{ "Pid", "Oid", "Type", "SegmentIndex", "TeenagersMode" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmSegMobileReply), global::Bilibili.Community.Service.Dm.V1.DmSegMobileReply.Parser, new[]{ "Elems", "State", "AiFlag" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmViewReq), global::Bilibili.Community.Service.Dm.V1.DmViewReq.Parser, new[]{ "Pid", "Oid", "Type", "Spmid", "IsHardBoot" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmViewReply), global::Bilibili.Community.Service.Dm.V1.DmViewReply.Parser, new[]{ "Closed", "Mask", "Subtitle", "SpecialDms", "AiFlag", "PlayerConfig", "SendBoxStyle", "Allow", "CheckBox", "CheckBoxShowMsg", "TextPlaceholder", "InputPlaceholder", "ReportFilterContent" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmWebViewReply), global::Bilibili.Community.Service.Dm.V1.DmWebViewReply.Parser, new[]{ "State", "Text", "TextSide", "DmSge", "Flag", "SpecialDms", "CheckBox", "Count", "CommandDms", "PlayerConfig", "ReportFilterContent" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.CommandDm), global::Bilibili.Community.Service.Dm.V1.CommandDm.Parser, new[]{ "Id", "Oid", "Mid", "Command", "Content", "Progress", "Ctime", "Mtime", "Extra", "IdStr" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmSegConfig), global::Bilibili.Community.Service.Dm.V1.DmSegConfig.Parser, new[]{ "PageSize", "Total" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.VideoMask), global::Bilibili.Community.Service.Dm.V1.VideoMask.Parser, new[]{ "Cid", "Plat", "Fps", "Time", "MaskUrl" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.VideoSubtitle), global::Bilibili.Community.Service.Dm.V1.VideoSubtitle.Parser, new[]{ "Lan", "LanDoc", "Subtitles" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmuWebPlayerConfig), global::Bilibili.Community.Service.Dm.V1.DanmuWebPlayerConfig.Parser, new[]{ "DmSwitch", "AiSwitch", "AiLevel", "Blocktop", "Blockscroll", "Blockbottom", "Blockcolor", "Blockspecial", "Preventshade", "Dmask", "Opacity", "Dmarea", "Speedplus", "Fontsize", "Screensync", "Speedsync", "Fontfamily", "Bold", "Fontborder", "DrawType" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.SubtitleItem), global::Bilibili.Community.Service.Dm.V1.SubtitleItem.Parser, new[]{ "Id", "IdStr", "Lan", "LanDoc", "SubtitleUrl", "Author" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.UserInfo), global::Bilibili.Community.Service.Dm.V1.UserInfo.Parser, new[]{ "Mid", "Name", "Sex", "Face", "Sign", "Rank" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmakuElem), global::Bilibili.Community.Service.Dm.V1.DanmakuElem.Parser, new[]{ "Id", "Progress", "Mode", "Fontsize", "Color", "MidHash", "Content", "Ctime", "Weight", "Action", "Pool", "IdStr", "Attr" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DmPlayerConfigReq), global::Bilibili.Community.Service.Dm.V1.DmPlayerConfigReq.Parser, new[]{ "Ts", "Switch", "SwitchSave", "UseDefaultConfig", "AiRecommendedSwitch", "AiRecommendedLevel", "Blocktop", "Blockscroll", "Blockbottom", "Blockcolorful", "Blockrepeat", "Blockspecial", "Opacity", "Scalingfactor", "Domain", "Speed", "Enableblocklist", "InlinePlayerDanmakuSwitch" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.Response), global::Bilibili.Community.Service.Dm.V1.Response.Parser, new[]{ "Code", "Message" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmakuFlag), global::Bilibili.Community.Service.Dm.V1.DanmakuFlag.Parser, new[]{ "Dmid", "Flag" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig), global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig.Parser, new[]{ "RecFlag", "RecText", "RecSwitch" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmakuAIFlag), global::Bilibili.Community.Service.Dm.V1.DanmakuAIFlag.Parser, new[]{ "DmFlags" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmuPlayerViewConfig), global::Bilibili.Community.Service.Dm.V1.DanmuPlayerViewConfig.Parser, new[]{ "DanmukuDefaultPlayerConfig", "DanmukuPlayerConfig", "DanmukuPlayerDynamicConfig" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmuDefaultPlayerConfig), global::Bilibili.Community.Service.Dm.V1.DanmuDefaultPlayerConfig.Parser, new[]{ "PlayerDanmakuUseDefaultConfig", "PlayerDanmakuAiRecommendedSwitch", "PlayerDanmakuAiRecommendedLevel", "PlayerDanmakuBlocktop", "PlayerDanmakuBlockscroll", "PlayerDanmakuBlockbottom", "PlayerDanmakuBlockcolorful", "PlayerDanmakuBlockrepeat", "PlayerDanmakuBlockspecial", "PlayerDanmakuOpacity", "PlayerDanmakuScalingfactor", "PlayerDanmakuDomain", "PlayerDanmakuSpeed", "InlinePlayerDanmakuSwitch" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmuPlayerConfig), global::Bilibili.Community.Service.Dm.V1.DanmuPlayerConfig.Parser, new[]{ "PlayerDanmakuSwitch", "PlayerDanmakuSwitchSave", "PlayerDanmakuUseDefaultConfig", "PlayerDanmakuAiRecommendedSwitch", "PlayerDanmakuAiRecommendedLevel", "PlayerDanmakuBlocktop", "PlayerDanmakuBlockscroll", "PlayerDanmakuBlockbottom", "PlayerDanmakuBlockcolorful", "PlayerDanmakuBlockrepeat", "PlayerDanmakuBlockspecial", "PlayerDanmakuOpacity", "PlayerDanmakuScalingfactor", "PlayerDanmakuDomain", "PlayerDanmakuSpeed", "PlayerDanmakuEnableblocklist", "InlinePlayerDanmakuSwitch", "InlinePlayerDanmakuConfig" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.DanmuPlayerDynamicConfig), global::Bilibili.Community.Service.Dm.V1.DanmuPlayerDynamicConfig.Parser, new[]{ "Progress", "PlayerDanmakuDomain" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitch), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitch.Parser, new[]{ "Value", "CanIgnore" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitchSave), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitchSave.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuUseDefaultConfig), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuUseDefaultConfig.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedSwitch), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedSwitch.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedLevel), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedLevel.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlocktop), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlocktop.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockscroll), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockscroll.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockbottom), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockbottom.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockcolorful), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockcolorful.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockrepeat), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockrepeat.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockspecial), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockspecial.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuOpacity), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuOpacity.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuScalingfactor), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuScalingfactor.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuDomain), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuDomain.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSpeed), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSpeed.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuEnableblocklist), global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuEnableblocklist.Parser, new[]{ "Value" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Bilibili.Community.Service.Dm.V1.InlinePlayerDanmakuSwitch), global::Bilibili.Community.Service.Dm.V1.InlinePlayerDanmakuSwitch.Parser, new[]{ "Value" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Enums
+ ///
+ /// 弹幕属性位值
+ ///
+ public enum DMAttrBit {
+ ///
+ /// 保护弹幕
+ ///
+ [pbr::OriginalName("DMAttrBitProtect")] Protect = 0,
+ ///
+ /// 直播弹幕
+ ///
+ [pbr::OriginalName("DMAttrBitFromLive")] FromLive = 1,
+ ///
+ /// 高赞弹幕
+ ///
+ [pbr::OriginalName("DMAttrHighLike")] DmattrHighLike = 2,
+ }
+
+ #endregion
+
+ #region Messages
+ ///
+ /// 弹幕SDK-请求
+ ///
+ public sealed partial class DmSegSDKReq : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmSegSDKReq());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegSDKReq() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegSDKReq(DmSegSDKReq other) : this() {
+ pid_ = other.pid_;
+ oid_ = other.oid_;
+ type_ = other.type_;
+ segmentIndex_ = other.segmentIndex_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegSDKReq Clone() {
+ return new DmSegSDKReq(this);
+ }
+
+ /// Field number for the "pid" field.
+ public const int PidFieldNumber = 1;
+ private long pid_;
+ ///
+ /// 稿件avid/漫画epid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Pid {
+ get { return pid_; }
+ set {
+ pid_ = value;
+ }
+ }
+
+ /// Field number for the "oid" field.
+ public const int OidFieldNumber = 2;
+ private long oid_;
+ ///
+ /// 视频cid/漫画cid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Oid {
+ get { return oid_; }
+ set {
+ oid_ = value;
+ }
+ }
+
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 3;
+ private int type_;
+ ///
+ /// 弹幕类型
+ /// 1:视频 2:漫画
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Type {
+ get { return type_; }
+ set {
+ type_ = value;
+ }
+ }
+
+ /// Field number for the "segment_index" field.
+ public const int SegmentIndexFieldNumber = 4;
+ private long segmentIndex_;
+ ///
+ /// 分段(6min)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long SegmentIndex {
+ get { return segmentIndex_; }
+ set {
+ segmentIndex_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmSegSDKReq);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmSegSDKReq other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Pid != other.Pid) return false;
+ if (Oid != other.Oid) return false;
+ if (Type != other.Type) return false;
+ if (SegmentIndex != other.SegmentIndex) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Pid != 0L) hash ^= Pid.GetHashCode();
+ if (Oid != 0L) hash ^= Oid.GetHashCode();
+ if (Type != 0) hash ^= Type.GetHashCode();
+ if (SegmentIndex != 0L) hash ^= SegmentIndex.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Pid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Pid);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Type != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Type);
+ }
+ if (SegmentIndex != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(SegmentIndex);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Pid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Pid);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Type != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Type);
+ }
+ if (SegmentIndex != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(SegmentIndex);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Pid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Pid);
+ }
+ if (Oid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oid);
+ }
+ if (Type != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
+ }
+ if (SegmentIndex != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(SegmentIndex);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmSegSDKReq other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Pid != 0L) {
+ Pid = other.Pid;
+ }
+ if (other.Oid != 0L) {
+ Oid = other.Oid;
+ }
+ if (other.Type != 0) {
+ Type = other.Type;
+ }
+ if (other.SegmentIndex != 0L) {
+ SegmentIndex = other.SegmentIndex;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Pid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Type = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ SegmentIndex = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Pid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Type = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ SegmentIndex = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕SDK-响应
+ ///
+ public sealed partial class DmSegSDKReply : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmSegSDKReply());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegSDKReply() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegSDKReply(DmSegSDKReply other) : this() {
+ closed_ = other.closed_;
+ elems_ = other.elems_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegSDKReply Clone() {
+ return new DmSegSDKReply(this);
+ }
+
+ /// Field number for the "closed" field.
+ public const int ClosedFieldNumber = 1;
+ private bool closed_;
+ ///
+ /// 是否已关闭弹幕
+ /// 0:未关闭 1:已关闭
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Closed {
+ get { return closed_; }
+ set {
+ closed_ = value;
+ }
+ }
+
+ /// Field number for the "elems" field.
+ public const int ElemsFieldNumber = 2;
+ private static readonly pb::FieldCodec _repeated_elems_codec
+ = pb::FieldCodec.ForMessage(18, global::Bilibili.Community.Service.Dm.V1.DanmakuElem.Parser);
+ private readonly pbc::RepeatedField elems_ = new pbc::RepeatedField();
+ ///
+ /// 弹幕列表
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Elems {
+ get { return elems_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmSegSDKReply);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmSegSDKReply other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Closed != other.Closed) return false;
+ if(!elems_.Equals(other.elems_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Closed != false) hash ^= Closed.GetHashCode();
+ hash ^= elems_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Closed != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Closed);
+ }
+ elems_.WriteTo(output, _repeated_elems_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Closed != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Closed);
+ }
+ elems_.WriteTo(ref output, _repeated_elems_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Closed != false) {
+ size += 1 + 1;
+ }
+ size += elems_.CalculateSize(_repeated_elems_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmSegSDKReply other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Closed != false) {
+ Closed = other.Closed;
+ }
+ elems_.Add(other.elems_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Closed = input.ReadBool();
+ break;
+ }
+ case 18: {
+ elems_.AddEntriesFrom(input, _repeated_elems_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Closed = input.ReadBool();
+ break;
+ }
+ case 18: {
+ elems_.AddEntriesFrom(ref input, _repeated_elems_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// ott弹幕列表-请求
+ ///
+ public sealed partial class DmSegOttReq : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmSegOttReq());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegOttReq() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegOttReq(DmSegOttReq other) : this() {
+ pid_ = other.pid_;
+ oid_ = other.oid_;
+ type_ = other.type_;
+ segmentIndex_ = other.segmentIndex_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegOttReq Clone() {
+ return new DmSegOttReq(this);
+ }
+
+ /// Field number for the "pid" field.
+ public const int PidFieldNumber = 1;
+ private long pid_;
+ ///
+ /// 稿件avid/漫画epid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Pid {
+ get { return pid_; }
+ set {
+ pid_ = value;
+ }
+ }
+
+ /// Field number for the "oid" field.
+ public const int OidFieldNumber = 2;
+ private long oid_;
+ ///
+ /// 视频cid/漫画cid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Oid {
+ get { return oid_; }
+ set {
+ oid_ = value;
+ }
+ }
+
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 3;
+ private int type_;
+ ///
+ /// 弹幕类型
+ /// 1:视频 2:漫画
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Type {
+ get { return type_; }
+ set {
+ type_ = value;
+ }
+ }
+
+ /// Field number for the "segment_index" field.
+ public const int SegmentIndexFieldNumber = 4;
+ private long segmentIndex_;
+ ///
+ /// 分段(6min)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long SegmentIndex {
+ get { return segmentIndex_; }
+ set {
+ segmentIndex_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmSegOttReq);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmSegOttReq other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Pid != other.Pid) return false;
+ if (Oid != other.Oid) return false;
+ if (Type != other.Type) return false;
+ if (SegmentIndex != other.SegmentIndex) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Pid != 0L) hash ^= Pid.GetHashCode();
+ if (Oid != 0L) hash ^= Oid.GetHashCode();
+ if (Type != 0) hash ^= Type.GetHashCode();
+ if (SegmentIndex != 0L) hash ^= SegmentIndex.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Pid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Pid);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Type != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Type);
+ }
+ if (SegmentIndex != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(SegmentIndex);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Pid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Pid);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Type != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Type);
+ }
+ if (SegmentIndex != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(SegmentIndex);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Pid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Pid);
+ }
+ if (Oid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oid);
+ }
+ if (Type != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
+ }
+ if (SegmentIndex != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(SegmentIndex);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmSegOttReq other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Pid != 0L) {
+ Pid = other.Pid;
+ }
+ if (other.Oid != 0L) {
+ Oid = other.Oid;
+ }
+ if (other.Type != 0) {
+ Type = other.Type;
+ }
+ if (other.SegmentIndex != 0L) {
+ SegmentIndex = other.SegmentIndex;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Pid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Type = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ SegmentIndex = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Pid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Type = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ SegmentIndex = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// ott弹幕列表-响应
+ ///
+ public sealed partial class DmSegOttReply : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmSegOttReply());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[3]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegOttReply() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegOttReply(DmSegOttReply other) : this() {
+ closed_ = other.closed_;
+ elems_ = other.elems_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegOttReply Clone() {
+ return new DmSegOttReply(this);
+ }
+
+ /// Field number for the "closed" field.
+ public const int ClosedFieldNumber = 1;
+ private bool closed_;
+ ///
+ /// 是否已关闭弹幕
+ /// 0:未关闭 1:已关闭
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Closed {
+ get { return closed_; }
+ set {
+ closed_ = value;
+ }
+ }
+
+ /// Field number for the "elems" field.
+ public const int ElemsFieldNumber = 2;
+ private static readonly pb::FieldCodec _repeated_elems_codec
+ = pb::FieldCodec.ForMessage(18, global::Bilibili.Community.Service.Dm.V1.DanmakuElem.Parser);
+ private readonly pbc::RepeatedField elems_ = new pbc::RepeatedField();
+ ///
+ /// 弹幕列表
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Elems {
+ get { return elems_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmSegOttReply);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmSegOttReply other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Closed != other.Closed) return false;
+ if(!elems_.Equals(other.elems_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Closed != false) hash ^= Closed.GetHashCode();
+ hash ^= elems_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Closed != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Closed);
+ }
+ elems_.WriteTo(output, _repeated_elems_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Closed != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Closed);
+ }
+ elems_.WriteTo(ref output, _repeated_elems_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Closed != false) {
+ size += 1 + 1;
+ }
+ size += elems_.CalculateSize(_repeated_elems_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmSegOttReply other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Closed != false) {
+ Closed = other.Closed;
+ }
+ elems_.Add(other.elems_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Closed = input.ReadBool();
+ break;
+ }
+ case 18: {
+ elems_.AddEntriesFrom(input, _repeated_elems_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Closed = input.ReadBool();
+ break;
+ }
+ case 18: {
+ elems_.AddEntriesFrom(ref input, _repeated_elems_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 获取弹幕-请求
+ ///
+ public sealed partial class DmSegMobileReq : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmSegMobileReq());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[4]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegMobileReq() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegMobileReq(DmSegMobileReq other) : this() {
+ pid_ = other.pid_;
+ oid_ = other.oid_;
+ type_ = other.type_;
+ segmentIndex_ = other.segmentIndex_;
+ teenagersMode_ = other.teenagersMode_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegMobileReq Clone() {
+ return new DmSegMobileReq(this);
+ }
+
+ /// Field number for the "pid" field.
+ public const int PidFieldNumber = 1;
+ private long pid_;
+ ///
+ /// 稿件avid/漫画epid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Pid {
+ get { return pid_; }
+ set {
+ pid_ = value;
+ }
+ }
+
+ /// Field number for the "oid" field.
+ public const int OidFieldNumber = 2;
+ private long oid_;
+ ///
+ /// 视频cid/漫画cid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Oid {
+ get { return oid_; }
+ set {
+ oid_ = value;
+ }
+ }
+
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 3;
+ private int type_;
+ ///
+ /// 弹幕类型
+ /// 1:视频 2:漫画
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Type {
+ get { return type_; }
+ set {
+ type_ = value;
+ }
+ }
+
+ /// Field number for the "segment_index" field.
+ public const int SegmentIndexFieldNumber = 4;
+ private long segmentIndex_;
+ ///
+ /// 分段(6min)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long SegmentIndex {
+ get { return segmentIndex_; }
+ set {
+ segmentIndex_ = value;
+ }
+ }
+
+ /// Field number for the "teenagers_mode" field.
+ public const int TeenagersModeFieldNumber = 5;
+ private int teenagersMode_;
+ ///
+ /// 是否青少年模式
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int TeenagersMode {
+ get { return teenagersMode_; }
+ set {
+ teenagersMode_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmSegMobileReq);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmSegMobileReq other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Pid != other.Pid) return false;
+ if (Oid != other.Oid) return false;
+ if (Type != other.Type) return false;
+ if (SegmentIndex != other.SegmentIndex) return false;
+ if (TeenagersMode != other.TeenagersMode) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Pid != 0L) hash ^= Pid.GetHashCode();
+ if (Oid != 0L) hash ^= Oid.GetHashCode();
+ if (Type != 0) hash ^= Type.GetHashCode();
+ if (SegmentIndex != 0L) hash ^= SegmentIndex.GetHashCode();
+ if (TeenagersMode != 0) hash ^= TeenagersMode.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Pid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Pid);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Type != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Type);
+ }
+ if (SegmentIndex != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(SegmentIndex);
+ }
+ if (TeenagersMode != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(TeenagersMode);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Pid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Pid);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Type != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Type);
+ }
+ if (SegmentIndex != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(SegmentIndex);
+ }
+ if (TeenagersMode != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(TeenagersMode);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Pid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Pid);
+ }
+ if (Oid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oid);
+ }
+ if (Type != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
+ }
+ if (SegmentIndex != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(SegmentIndex);
+ }
+ if (TeenagersMode != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(TeenagersMode);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmSegMobileReq other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Pid != 0L) {
+ Pid = other.Pid;
+ }
+ if (other.Oid != 0L) {
+ Oid = other.Oid;
+ }
+ if (other.Type != 0) {
+ Type = other.Type;
+ }
+ if (other.SegmentIndex != 0L) {
+ SegmentIndex = other.SegmentIndex;
+ }
+ if (other.TeenagersMode != 0) {
+ TeenagersMode = other.TeenagersMode;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Pid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Type = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ SegmentIndex = input.ReadInt64();
+ break;
+ }
+ case 40: {
+ TeenagersMode = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Pid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Type = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ SegmentIndex = input.ReadInt64();
+ break;
+ }
+ case 40: {
+ TeenagersMode = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 获取弹幕-响应
+ ///
+ public sealed partial class DmSegMobileReply : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmSegMobileReply());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[5]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegMobileReply() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegMobileReply(DmSegMobileReply other) : this() {
+ elems_ = other.elems_.Clone();
+ state_ = other.state_;
+ aiFlag_ = other.aiFlag_ != null ? other.aiFlag_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegMobileReply Clone() {
+ return new DmSegMobileReply(this);
+ }
+
+ /// Field number for the "elems" field.
+ public const int ElemsFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_elems_codec
+ = pb::FieldCodec.ForMessage(10, global::Bilibili.Community.Service.Dm.V1.DanmakuElem.Parser);
+ private readonly pbc::RepeatedField elems_ = new pbc::RepeatedField();
+ ///
+ /// 弹幕列表
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Elems {
+ get { return elems_; }
+ }
+
+ /// Field number for the "state" field.
+ public const int StateFieldNumber = 2;
+ private int state_;
+ ///
+ /// 是否已关闭弹幕
+ /// 0:未关闭 1:已关闭
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int State {
+ get { return state_; }
+ set {
+ state_ = value;
+ }
+ }
+
+ /// Field number for the "ai_flag" field.
+ public const int AiFlagFieldNumber = 3;
+ private global::Bilibili.Community.Service.Dm.V1.DanmakuAIFlag aiFlag_;
+ ///
+ /// 弹幕云屏蔽ai评分值
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.DanmakuAIFlag AiFlag {
+ get { return aiFlag_; }
+ set {
+ aiFlag_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmSegMobileReply);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmSegMobileReply other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!elems_.Equals(other.elems_)) return false;
+ if (State != other.State) return false;
+ if (!object.Equals(AiFlag, other.AiFlag)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= elems_.GetHashCode();
+ if (State != 0) hash ^= State.GetHashCode();
+ if (aiFlag_ != null) hash ^= AiFlag.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ elems_.WriteTo(output, _repeated_elems_codec);
+ if (State != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(State);
+ }
+ if (aiFlag_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(AiFlag);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ elems_.WriteTo(ref output, _repeated_elems_codec);
+ if (State != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(State);
+ }
+ if (aiFlag_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(AiFlag);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += elems_.CalculateSize(_repeated_elems_codec);
+ if (State != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(State);
+ }
+ if (aiFlag_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(AiFlag);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmSegMobileReply other) {
+ if (other == null) {
+ return;
+ }
+ elems_.Add(other.elems_);
+ if (other.State != 0) {
+ State = other.State;
+ }
+ if (other.aiFlag_ != null) {
+ if (aiFlag_ == null) {
+ AiFlag = new global::Bilibili.Community.Service.Dm.V1.DanmakuAIFlag();
+ }
+ AiFlag.MergeFrom(other.AiFlag);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ elems_.AddEntriesFrom(input, _repeated_elems_codec);
+ break;
+ }
+ case 16: {
+ State = input.ReadInt32();
+ break;
+ }
+ case 26: {
+ if (aiFlag_ == null) {
+ AiFlag = new global::Bilibili.Community.Service.Dm.V1.DanmakuAIFlag();
+ }
+ input.ReadMessage(AiFlag);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ elems_.AddEntriesFrom(ref input, _repeated_elems_codec);
+ break;
+ }
+ case 16: {
+ State = input.ReadInt32();
+ break;
+ }
+ case 26: {
+ if (aiFlag_ == null) {
+ AiFlag = new global::Bilibili.Community.Service.Dm.V1.DanmakuAIFlag();
+ }
+ input.ReadMessage(AiFlag);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 客户端弹幕元数据-请求
+ ///
+ public sealed partial class DmViewReq : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmViewReq());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[6]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmViewReq() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmViewReq(DmViewReq other) : this() {
+ pid_ = other.pid_;
+ oid_ = other.oid_;
+ type_ = other.type_;
+ spmid_ = other.spmid_;
+ isHardBoot_ = other.isHardBoot_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmViewReq Clone() {
+ return new DmViewReq(this);
+ }
+
+ /// Field number for the "pid" field.
+ public const int PidFieldNumber = 1;
+ private long pid_;
+ ///
+ /// 稿件avid/漫画epid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Pid {
+ get { return pid_; }
+ set {
+ pid_ = value;
+ }
+ }
+
+ /// Field number for the "oid" field.
+ public const int OidFieldNumber = 2;
+ private long oid_;
+ ///
+ /// 视频cid/漫画cid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Oid {
+ get { return oid_; }
+ set {
+ oid_ = value;
+ }
+ }
+
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 3;
+ private int type_;
+ ///
+ /// 弹幕类型
+ /// 1:视频 2:漫画
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Type {
+ get { return type_; }
+ set {
+ type_ = value;
+ }
+ }
+
+ /// Field number for the "spmid" field.
+ public const int SpmidFieldNumber = 4;
+ private string spmid_ = "";
+ ///
+ /// 页面spm
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Spmid {
+ get { return spmid_; }
+ set {
+ spmid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "is_hard_boot" field.
+ public const int IsHardBootFieldNumber = 5;
+ private int isHardBoot_;
+ ///
+ /// 是否冷启
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int IsHardBoot {
+ get { return isHardBoot_; }
+ set {
+ isHardBoot_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmViewReq);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmViewReq other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Pid != other.Pid) return false;
+ if (Oid != other.Oid) return false;
+ if (Type != other.Type) return false;
+ if (Spmid != other.Spmid) return false;
+ if (IsHardBoot != other.IsHardBoot) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Pid != 0L) hash ^= Pid.GetHashCode();
+ if (Oid != 0L) hash ^= Oid.GetHashCode();
+ if (Type != 0) hash ^= Type.GetHashCode();
+ if (Spmid.Length != 0) hash ^= Spmid.GetHashCode();
+ if (IsHardBoot != 0) hash ^= IsHardBoot.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Pid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Pid);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Type != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Type);
+ }
+ if (Spmid.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Spmid);
+ }
+ if (IsHardBoot != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(IsHardBoot);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Pid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Pid);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Type != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Type);
+ }
+ if (Spmid.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Spmid);
+ }
+ if (IsHardBoot != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(IsHardBoot);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Pid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Pid);
+ }
+ if (Oid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oid);
+ }
+ if (Type != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
+ }
+ if (Spmid.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Spmid);
+ }
+ if (IsHardBoot != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(IsHardBoot);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmViewReq other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Pid != 0L) {
+ Pid = other.Pid;
+ }
+ if (other.Oid != 0L) {
+ Oid = other.Oid;
+ }
+ if (other.Type != 0) {
+ Type = other.Type;
+ }
+ if (other.Spmid.Length != 0) {
+ Spmid = other.Spmid;
+ }
+ if (other.IsHardBoot != 0) {
+ IsHardBoot = other.IsHardBoot;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Pid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Type = input.ReadInt32();
+ break;
+ }
+ case 34: {
+ Spmid = input.ReadString();
+ break;
+ }
+ case 40: {
+ IsHardBoot = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Pid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Type = input.ReadInt32();
+ break;
+ }
+ case 34: {
+ Spmid = input.ReadString();
+ break;
+ }
+ case 40: {
+ IsHardBoot = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 客户端弹幕元数据-响应
+ ///
+ public sealed partial class DmViewReply : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmViewReply());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[7]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmViewReply() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmViewReply(DmViewReply other) : this() {
+ closed_ = other.closed_;
+ mask_ = other.mask_ != null ? other.mask_.Clone() : null;
+ subtitle_ = other.subtitle_ != null ? other.subtitle_.Clone() : null;
+ specialDms_ = other.specialDms_.Clone();
+ aiFlag_ = other.aiFlag_ != null ? other.aiFlag_.Clone() : null;
+ playerConfig_ = other.playerConfig_ != null ? other.playerConfig_.Clone() : null;
+ sendBoxStyle_ = other.sendBoxStyle_;
+ allow_ = other.allow_;
+ checkBox_ = other.checkBox_;
+ checkBoxShowMsg_ = other.checkBoxShowMsg_;
+ textPlaceholder_ = other.textPlaceholder_;
+ inputPlaceholder_ = other.inputPlaceholder_;
+ reportFilterContent_ = other.reportFilterContent_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmViewReply Clone() {
+ return new DmViewReply(this);
+ }
+
+ /// Field number for the "closed" field.
+ public const int ClosedFieldNumber = 1;
+ private bool closed_;
+ ///
+ /// 是否已关闭弹幕
+ /// 0:未关闭 1:已关闭
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Closed {
+ get { return closed_; }
+ set {
+ closed_ = value;
+ }
+ }
+
+ /// Field number for the "mask" field.
+ public const int MaskFieldNumber = 2;
+ private global::Bilibili.Community.Service.Dm.V1.VideoMask mask_;
+ ///
+ /// 智能防挡弹幕蒙版信息
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.VideoMask Mask {
+ get { return mask_; }
+ set {
+ mask_ = value;
+ }
+ }
+
+ /// Field number for the "subtitle" field.
+ public const int SubtitleFieldNumber = 3;
+ private global::Bilibili.Community.Service.Dm.V1.VideoSubtitle subtitle_;
+ ///
+ /// 视频字幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.VideoSubtitle Subtitle {
+ get { return subtitle_; }
+ set {
+ subtitle_ = value;
+ }
+ }
+
+ /// Field number for the "special_dms" field.
+ public const int SpecialDmsFieldNumber = 4;
+ private static readonly pb::FieldCodec _repeated_specialDms_codec
+ = pb::FieldCodec.ForString(34);
+ private readonly pbc::RepeatedField specialDms_ = new pbc::RepeatedField();
+ ///
+ /// 高级弹幕专包url(bfs)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField SpecialDms {
+ get { return specialDms_; }
+ }
+
+ /// Field number for the "ai_flag" field.
+ public const int AiFlagFieldNumber = 5;
+ private global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig aiFlag_;
+ ///
+ /// 云屏蔽配置信息
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig AiFlag {
+ get { return aiFlag_; }
+ set {
+ aiFlag_ = value;
+ }
+ }
+
+ /// Field number for the "player_config" field.
+ public const int PlayerConfigFieldNumber = 6;
+ private global::Bilibili.Community.Service.Dm.V1.DanmuPlayerViewConfig playerConfig_;
+ ///
+ /// 弹幕配置信息
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.DanmuPlayerViewConfig PlayerConfig {
+ get { return playerConfig_; }
+ set {
+ playerConfig_ = value;
+ }
+ }
+
+ /// Field number for the "send_box_style" field.
+ public const int SendBoxStyleFieldNumber = 7;
+ private int sendBoxStyle_;
+ ///
+ /// 弹幕发送框样式
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int SendBoxStyle {
+ get { return sendBoxStyle_; }
+ set {
+ sendBoxStyle_ = value;
+ }
+ }
+
+ /// Field number for the "allow" field.
+ public const int AllowFieldNumber = 8;
+ private bool allow_;
+ ///
+ /// 是否允许
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Allow {
+ get { return allow_; }
+ set {
+ allow_ = value;
+ }
+ }
+
+ /// Field number for the "check_box" field.
+ public const int CheckBoxFieldNumber = 9;
+ private string checkBox_ = "";
+ ///
+ /// check box 是否展示
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string CheckBox {
+ get { return checkBox_; }
+ set {
+ checkBox_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "check_box_show_msg" field.
+ public const int CheckBoxShowMsgFieldNumber = 10;
+ private string checkBoxShowMsg_ = "";
+ ///
+ /// check box 展示文本
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string CheckBoxShowMsg {
+ get { return checkBoxShowMsg_; }
+ set {
+ checkBoxShowMsg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "text_placeholder" field.
+ public const int TextPlaceholderFieldNumber = 11;
+ private string textPlaceholder_ = "";
+ ///
+ /// 展示文案
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string TextPlaceholder {
+ get { return textPlaceholder_; }
+ set {
+ textPlaceholder_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "input_placeholder" field.
+ public const int InputPlaceholderFieldNumber = 12;
+ private string inputPlaceholder_ = "";
+ ///
+ /// 弹幕输入框文案
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string InputPlaceholder {
+ get { return inputPlaceholder_; }
+ set {
+ inputPlaceholder_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "report_filter_content" field.
+ public const int ReportFilterContentFieldNumber = 13;
+ private static readonly pb::FieldCodec _repeated_reportFilterContent_codec
+ = pb::FieldCodec.ForString(106);
+ private readonly pbc::RepeatedField reportFilterContent_ = new pbc::RepeatedField();
+ ///
+ /// 用户举报弹幕 cid维度屏蔽的正则规则
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField ReportFilterContent {
+ get { return reportFilterContent_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmViewReply);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmViewReply other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Closed != other.Closed) return false;
+ if (!object.Equals(Mask, other.Mask)) return false;
+ if (!object.Equals(Subtitle, other.Subtitle)) return false;
+ if(!specialDms_.Equals(other.specialDms_)) return false;
+ if (!object.Equals(AiFlag, other.AiFlag)) return false;
+ if (!object.Equals(PlayerConfig, other.PlayerConfig)) return false;
+ if (SendBoxStyle != other.SendBoxStyle) return false;
+ if (Allow != other.Allow) return false;
+ if (CheckBox != other.CheckBox) return false;
+ if (CheckBoxShowMsg != other.CheckBoxShowMsg) return false;
+ if (TextPlaceholder != other.TextPlaceholder) return false;
+ if (InputPlaceholder != other.InputPlaceholder) return false;
+ if(!reportFilterContent_.Equals(other.reportFilterContent_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Closed != false) hash ^= Closed.GetHashCode();
+ if (mask_ != null) hash ^= Mask.GetHashCode();
+ if (subtitle_ != null) hash ^= Subtitle.GetHashCode();
+ hash ^= specialDms_.GetHashCode();
+ if (aiFlag_ != null) hash ^= AiFlag.GetHashCode();
+ if (playerConfig_ != null) hash ^= PlayerConfig.GetHashCode();
+ if (SendBoxStyle != 0) hash ^= SendBoxStyle.GetHashCode();
+ if (Allow != false) hash ^= Allow.GetHashCode();
+ if (CheckBox.Length != 0) hash ^= CheckBox.GetHashCode();
+ if (CheckBoxShowMsg.Length != 0) hash ^= CheckBoxShowMsg.GetHashCode();
+ if (TextPlaceholder.Length != 0) hash ^= TextPlaceholder.GetHashCode();
+ if (InputPlaceholder.Length != 0) hash ^= InputPlaceholder.GetHashCode();
+ hash ^= reportFilterContent_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Closed != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Closed);
+ }
+ if (mask_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Mask);
+ }
+ if (subtitle_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Subtitle);
+ }
+ specialDms_.WriteTo(output, _repeated_specialDms_codec);
+ if (aiFlag_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(AiFlag);
+ }
+ if (playerConfig_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(PlayerConfig);
+ }
+ if (SendBoxStyle != 0) {
+ output.WriteRawTag(56);
+ output.WriteInt32(SendBoxStyle);
+ }
+ if (Allow != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(Allow);
+ }
+ if (CheckBox.Length != 0) {
+ output.WriteRawTag(74);
+ output.WriteString(CheckBox);
+ }
+ if (CheckBoxShowMsg.Length != 0) {
+ output.WriteRawTag(82);
+ output.WriteString(CheckBoxShowMsg);
+ }
+ if (TextPlaceholder.Length != 0) {
+ output.WriteRawTag(90);
+ output.WriteString(TextPlaceholder);
+ }
+ if (InputPlaceholder.Length != 0) {
+ output.WriteRawTag(98);
+ output.WriteString(InputPlaceholder);
+ }
+ reportFilterContent_.WriteTo(output, _repeated_reportFilterContent_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Closed != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Closed);
+ }
+ if (mask_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Mask);
+ }
+ if (subtitle_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Subtitle);
+ }
+ specialDms_.WriteTo(ref output, _repeated_specialDms_codec);
+ if (aiFlag_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(AiFlag);
+ }
+ if (playerConfig_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(PlayerConfig);
+ }
+ if (SendBoxStyle != 0) {
+ output.WriteRawTag(56);
+ output.WriteInt32(SendBoxStyle);
+ }
+ if (Allow != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(Allow);
+ }
+ if (CheckBox.Length != 0) {
+ output.WriteRawTag(74);
+ output.WriteString(CheckBox);
+ }
+ if (CheckBoxShowMsg.Length != 0) {
+ output.WriteRawTag(82);
+ output.WriteString(CheckBoxShowMsg);
+ }
+ if (TextPlaceholder.Length != 0) {
+ output.WriteRawTag(90);
+ output.WriteString(TextPlaceholder);
+ }
+ if (InputPlaceholder.Length != 0) {
+ output.WriteRawTag(98);
+ output.WriteString(InputPlaceholder);
+ }
+ reportFilterContent_.WriteTo(ref output, _repeated_reportFilterContent_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Closed != false) {
+ size += 1 + 1;
+ }
+ if (mask_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mask);
+ }
+ if (subtitle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subtitle);
+ }
+ size += specialDms_.CalculateSize(_repeated_specialDms_codec);
+ if (aiFlag_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(AiFlag);
+ }
+ if (playerConfig_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerConfig);
+ }
+ if (SendBoxStyle != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(SendBoxStyle);
+ }
+ if (Allow != false) {
+ size += 1 + 1;
+ }
+ if (CheckBox.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(CheckBox);
+ }
+ if (CheckBoxShowMsg.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(CheckBoxShowMsg);
+ }
+ if (TextPlaceholder.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(TextPlaceholder);
+ }
+ if (InputPlaceholder.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(InputPlaceholder);
+ }
+ size += reportFilterContent_.CalculateSize(_repeated_reportFilterContent_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmViewReply other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Closed != false) {
+ Closed = other.Closed;
+ }
+ if (other.mask_ != null) {
+ if (mask_ == null) {
+ Mask = new global::Bilibili.Community.Service.Dm.V1.VideoMask();
+ }
+ Mask.MergeFrom(other.Mask);
+ }
+ if (other.subtitle_ != null) {
+ if (subtitle_ == null) {
+ Subtitle = new global::Bilibili.Community.Service.Dm.V1.VideoSubtitle();
+ }
+ Subtitle.MergeFrom(other.Subtitle);
+ }
+ specialDms_.Add(other.specialDms_);
+ if (other.aiFlag_ != null) {
+ if (aiFlag_ == null) {
+ AiFlag = new global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig();
+ }
+ AiFlag.MergeFrom(other.AiFlag);
+ }
+ if (other.playerConfig_ != null) {
+ if (playerConfig_ == null) {
+ PlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuPlayerViewConfig();
+ }
+ PlayerConfig.MergeFrom(other.PlayerConfig);
+ }
+ if (other.SendBoxStyle != 0) {
+ SendBoxStyle = other.SendBoxStyle;
+ }
+ if (other.Allow != false) {
+ Allow = other.Allow;
+ }
+ if (other.CheckBox.Length != 0) {
+ CheckBox = other.CheckBox;
+ }
+ if (other.CheckBoxShowMsg.Length != 0) {
+ CheckBoxShowMsg = other.CheckBoxShowMsg;
+ }
+ if (other.TextPlaceholder.Length != 0) {
+ TextPlaceholder = other.TextPlaceholder;
+ }
+ if (other.InputPlaceholder.Length != 0) {
+ InputPlaceholder = other.InputPlaceholder;
+ }
+ reportFilterContent_.Add(other.reportFilterContent_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Closed = input.ReadBool();
+ break;
+ }
+ case 18: {
+ if (mask_ == null) {
+ Mask = new global::Bilibili.Community.Service.Dm.V1.VideoMask();
+ }
+ input.ReadMessage(Mask);
+ break;
+ }
+ case 26: {
+ if (subtitle_ == null) {
+ Subtitle = new global::Bilibili.Community.Service.Dm.V1.VideoSubtitle();
+ }
+ input.ReadMessage(Subtitle);
+ break;
+ }
+ case 34: {
+ specialDms_.AddEntriesFrom(input, _repeated_specialDms_codec);
+ break;
+ }
+ case 42: {
+ if (aiFlag_ == null) {
+ AiFlag = new global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig();
+ }
+ input.ReadMessage(AiFlag);
+ break;
+ }
+ case 50: {
+ if (playerConfig_ == null) {
+ PlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuPlayerViewConfig();
+ }
+ input.ReadMessage(PlayerConfig);
+ break;
+ }
+ case 56: {
+ SendBoxStyle = input.ReadInt32();
+ break;
+ }
+ case 64: {
+ Allow = input.ReadBool();
+ break;
+ }
+ case 74: {
+ CheckBox = input.ReadString();
+ break;
+ }
+ case 82: {
+ CheckBoxShowMsg = input.ReadString();
+ break;
+ }
+ case 90: {
+ TextPlaceholder = input.ReadString();
+ break;
+ }
+ case 98: {
+ InputPlaceholder = input.ReadString();
+ break;
+ }
+ case 106: {
+ reportFilterContent_.AddEntriesFrom(input, _repeated_reportFilterContent_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Closed = input.ReadBool();
+ break;
+ }
+ case 18: {
+ if (mask_ == null) {
+ Mask = new global::Bilibili.Community.Service.Dm.V1.VideoMask();
+ }
+ input.ReadMessage(Mask);
+ break;
+ }
+ case 26: {
+ if (subtitle_ == null) {
+ Subtitle = new global::Bilibili.Community.Service.Dm.V1.VideoSubtitle();
+ }
+ input.ReadMessage(Subtitle);
+ break;
+ }
+ case 34: {
+ specialDms_.AddEntriesFrom(ref input, _repeated_specialDms_codec);
+ break;
+ }
+ case 42: {
+ if (aiFlag_ == null) {
+ AiFlag = new global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig();
+ }
+ input.ReadMessage(AiFlag);
+ break;
+ }
+ case 50: {
+ if (playerConfig_ == null) {
+ PlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuPlayerViewConfig();
+ }
+ input.ReadMessage(PlayerConfig);
+ break;
+ }
+ case 56: {
+ SendBoxStyle = input.ReadInt32();
+ break;
+ }
+ case 64: {
+ Allow = input.ReadBool();
+ break;
+ }
+ case 74: {
+ CheckBox = input.ReadString();
+ break;
+ }
+ case 82: {
+ CheckBoxShowMsg = input.ReadString();
+ break;
+ }
+ case 90: {
+ TextPlaceholder = input.ReadString();
+ break;
+ }
+ case 98: {
+ InputPlaceholder = input.ReadString();
+ break;
+ }
+ case 106: {
+ reportFilterContent_.AddEntriesFrom(ref input, _repeated_reportFilterContent_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// web端弹幕元数据-响应
+ ///
+ public sealed partial class DmWebViewReply : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmWebViewReply());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[8]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmWebViewReply() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmWebViewReply(DmWebViewReply other) : this() {
+ state_ = other.state_;
+ text_ = other.text_;
+ textSide_ = other.textSide_;
+ dmSge_ = other.dmSge_ != null ? other.dmSge_.Clone() : null;
+ flag_ = other.flag_ != null ? other.flag_.Clone() : null;
+ specialDms_ = other.specialDms_.Clone();
+ checkBox_ = other.checkBox_;
+ count_ = other.count_;
+ commandDms_ = other.commandDms_.Clone();
+ playerConfig_ = other.playerConfig_ != null ? other.playerConfig_.Clone() : null;
+ reportFilterContent_ = other.reportFilterContent_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmWebViewReply Clone() {
+ return new DmWebViewReply(this);
+ }
+
+ /// Field number for the "state" field.
+ public const int StateFieldNumber = 1;
+ private int state_;
+ ///
+ /// 是否已关闭弹幕
+ /// 0:未关闭 1:已关闭
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int State {
+ get { return state_; }
+ set {
+ state_ = value;
+ }
+ }
+
+ /// Field number for the "text" field.
+ public const int TextFieldNumber = 2;
+ private string text_ = "";
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Text {
+ get { return text_; }
+ set {
+ text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "text_side" field.
+ public const int TextSideFieldNumber = 3;
+ private string textSide_ = "";
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string TextSide {
+ get { return textSide_; }
+ set {
+ textSide_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "dm_sge" field.
+ public const int DmSgeFieldNumber = 4;
+ private global::Bilibili.Community.Service.Dm.V1.DmSegConfig dmSge_;
+ ///
+ /// 分段弹幕配置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.DmSegConfig DmSge {
+ get { return dmSge_; }
+ set {
+ dmSge_ = value;
+ }
+ }
+
+ /// Field number for the "flag" field.
+ public const int FlagFieldNumber = 5;
+ private global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig flag_;
+ ///
+ /// 云屏蔽配置信息
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig Flag {
+ get { return flag_; }
+ set {
+ flag_ = value;
+ }
+ }
+
+ /// Field number for the "special_dms" field.
+ public const int SpecialDmsFieldNumber = 6;
+ private static readonly pb::FieldCodec _repeated_specialDms_codec
+ = pb::FieldCodec.ForString(50);
+ private readonly pbc::RepeatedField specialDms_ = new pbc::RepeatedField();
+ ///
+ /// 高级弹幕专包url(bfs)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField SpecialDms {
+ get { return specialDms_; }
+ }
+
+ /// Field number for the "check_box" field.
+ public const int CheckBoxFieldNumber = 7;
+ private bool checkBox_;
+ ///
+ /// check box 是否展示
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool CheckBox {
+ get { return checkBox_; }
+ set {
+ checkBox_ = value;
+ }
+ }
+
+ /// Field number for the "count" field.
+ public const int CountFieldNumber = 8;
+ private long count_;
+ ///
+ /// 弹幕数
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Count {
+ get { return count_; }
+ set {
+ count_ = value;
+ }
+ }
+
+ /// Field number for the "commandDms" field.
+ public const int CommandDmsFieldNumber = 9;
+ private static readonly pb::FieldCodec _repeated_commandDms_codec
+ = pb::FieldCodec.ForMessage(74, global::Bilibili.Community.Service.Dm.V1.CommandDm.Parser);
+ private readonly pbc::RepeatedField commandDms_ = new pbc::RepeatedField();
+ ///
+ /// 互动弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField CommandDms {
+ get { return commandDms_; }
+ }
+
+ /// Field number for the "player_config" field.
+ public const int PlayerConfigFieldNumber = 10;
+ private global::Bilibili.Community.Service.Dm.V1.DanmuWebPlayerConfig playerConfig_;
+ ///
+ /// 用户弹幕配置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.DanmuWebPlayerConfig PlayerConfig {
+ get { return playerConfig_; }
+ set {
+ playerConfig_ = value;
+ }
+ }
+
+ /// Field number for the "report_filter_content" field.
+ public const int ReportFilterContentFieldNumber = 11;
+ private static readonly pb::FieldCodec _repeated_reportFilterContent_codec
+ = pb::FieldCodec.ForString(90);
+ private readonly pbc::RepeatedField reportFilterContent_ = new pbc::RepeatedField();
+ ///
+ /// 用户举报弹幕 cid维度屏蔽
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField ReportFilterContent {
+ get { return reportFilterContent_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmWebViewReply);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmWebViewReply other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (State != other.State) return false;
+ if (Text != other.Text) return false;
+ if (TextSide != other.TextSide) return false;
+ if (!object.Equals(DmSge, other.DmSge)) return false;
+ if (!object.Equals(Flag, other.Flag)) return false;
+ if(!specialDms_.Equals(other.specialDms_)) return false;
+ if (CheckBox != other.CheckBox) return false;
+ if (Count != other.Count) return false;
+ if(!commandDms_.Equals(other.commandDms_)) return false;
+ if (!object.Equals(PlayerConfig, other.PlayerConfig)) return false;
+ if(!reportFilterContent_.Equals(other.reportFilterContent_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (State != 0) hash ^= State.GetHashCode();
+ if (Text.Length != 0) hash ^= Text.GetHashCode();
+ if (TextSide.Length != 0) hash ^= TextSide.GetHashCode();
+ if (dmSge_ != null) hash ^= DmSge.GetHashCode();
+ if (flag_ != null) hash ^= Flag.GetHashCode();
+ hash ^= specialDms_.GetHashCode();
+ if (CheckBox != false) hash ^= CheckBox.GetHashCode();
+ if (Count != 0L) hash ^= Count.GetHashCode();
+ hash ^= commandDms_.GetHashCode();
+ if (playerConfig_ != null) hash ^= PlayerConfig.GetHashCode();
+ hash ^= reportFilterContent_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (State != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(State);
+ }
+ if (Text.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Text);
+ }
+ if (TextSide.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(TextSide);
+ }
+ if (dmSge_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(DmSge);
+ }
+ if (flag_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(Flag);
+ }
+ specialDms_.WriteTo(output, _repeated_specialDms_codec);
+ if (CheckBox != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(CheckBox);
+ }
+ if (Count != 0L) {
+ output.WriteRawTag(64);
+ output.WriteInt64(Count);
+ }
+ commandDms_.WriteTo(output, _repeated_commandDms_codec);
+ if (playerConfig_ != null) {
+ output.WriteRawTag(82);
+ output.WriteMessage(PlayerConfig);
+ }
+ reportFilterContent_.WriteTo(output, _repeated_reportFilterContent_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (State != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(State);
+ }
+ if (Text.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Text);
+ }
+ if (TextSide.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(TextSide);
+ }
+ if (dmSge_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(DmSge);
+ }
+ if (flag_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(Flag);
+ }
+ specialDms_.WriteTo(ref output, _repeated_specialDms_codec);
+ if (CheckBox != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(CheckBox);
+ }
+ if (Count != 0L) {
+ output.WriteRawTag(64);
+ output.WriteInt64(Count);
+ }
+ commandDms_.WriteTo(ref output, _repeated_commandDms_codec);
+ if (playerConfig_ != null) {
+ output.WriteRawTag(82);
+ output.WriteMessage(PlayerConfig);
+ }
+ reportFilterContent_.WriteTo(ref output, _repeated_reportFilterContent_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (State != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(State);
+ }
+ if (Text.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
+ }
+ if (TextSide.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(TextSide);
+ }
+ if (dmSge_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(DmSge);
+ }
+ if (flag_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Flag);
+ }
+ size += specialDms_.CalculateSize(_repeated_specialDms_codec);
+ if (CheckBox != false) {
+ size += 1 + 1;
+ }
+ if (Count != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count);
+ }
+ size += commandDms_.CalculateSize(_repeated_commandDms_codec);
+ if (playerConfig_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerConfig);
+ }
+ size += reportFilterContent_.CalculateSize(_repeated_reportFilterContent_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmWebViewReply other) {
+ if (other == null) {
+ return;
+ }
+ if (other.State != 0) {
+ State = other.State;
+ }
+ if (other.Text.Length != 0) {
+ Text = other.Text;
+ }
+ if (other.TextSide.Length != 0) {
+ TextSide = other.TextSide;
+ }
+ if (other.dmSge_ != null) {
+ if (dmSge_ == null) {
+ DmSge = new global::Bilibili.Community.Service.Dm.V1.DmSegConfig();
+ }
+ DmSge.MergeFrom(other.DmSge);
+ }
+ if (other.flag_ != null) {
+ if (flag_ == null) {
+ Flag = new global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig();
+ }
+ Flag.MergeFrom(other.Flag);
+ }
+ specialDms_.Add(other.specialDms_);
+ if (other.CheckBox != false) {
+ CheckBox = other.CheckBox;
+ }
+ if (other.Count != 0L) {
+ Count = other.Count;
+ }
+ commandDms_.Add(other.commandDms_);
+ if (other.playerConfig_ != null) {
+ if (playerConfig_ == null) {
+ PlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuWebPlayerConfig();
+ }
+ PlayerConfig.MergeFrom(other.PlayerConfig);
+ }
+ reportFilterContent_.Add(other.reportFilterContent_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ State = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ Text = input.ReadString();
+ break;
+ }
+ case 26: {
+ TextSide = input.ReadString();
+ break;
+ }
+ case 34: {
+ if (dmSge_ == null) {
+ DmSge = new global::Bilibili.Community.Service.Dm.V1.DmSegConfig();
+ }
+ input.ReadMessage(DmSge);
+ break;
+ }
+ case 42: {
+ if (flag_ == null) {
+ Flag = new global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig();
+ }
+ input.ReadMessage(Flag);
+ break;
+ }
+ case 50: {
+ specialDms_.AddEntriesFrom(input, _repeated_specialDms_codec);
+ break;
+ }
+ case 56: {
+ CheckBox = input.ReadBool();
+ break;
+ }
+ case 64: {
+ Count = input.ReadInt64();
+ break;
+ }
+ case 74: {
+ commandDms_.AddEntriesFrom(input, _repeated_commandDms_codec);
+ break;
+ }
+ case 82: {
+ if (playerConfig_ == null) {
+ PlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuWebPlayerConfig();
+ }
+ input.ReadMessage(PlayerConfig);
+ break;
+ }
+ case 90: {
+ reportFilterContent_.AddEntriesFrom(input, _repeated_reportFilterContent_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ State = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ Text = input.ReadString();
+ break;
+ }
+ case 26: {
+ TextSide = input.ReadString();
+ break;
+ }
+ case 34: {
+ if (dmSge_ == null) {
+ DmSge = new global::Bilibili.Community.Service.Dm.V1.DmSegConfig();
+ }
+ input.ReadMessage(DmSge);
+ break;
+ }
+ case 42: {
+ if (flag_ == null) {
+ Flag = new global::Bilibili.Community.Service.Dm.V1.DanmakuFlagConfig();
+ }
+ input.ReadMessage(Flag);
+ break;
+ }
+ case 50: {
+ specialDms_.AddEntriesFrom(ref input, _repeated_specialDms_codec);
+ break;
+ }
+ case 56: {
+ CheckBox = input.ReadBool();
+ break;
+ }
+ case 64: {
+ Count = input.ReadInt64();
+ break;
+ }
+ case 74: {
+ commandDms_.AddEntriesFrom(ref input, _repeated_commandDms_codec);
+ break;
+ }
+ case 82: {
+ if (playerConfig_ == null) {
+ PlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuWebPlayerConfig();
+ }
+ input.ReadMessage(PlayerConfig);
+ break;
+ }
+ case 90: {
+ reportFilterContent_.AddEntriesFrom(ref input, _repeated_reportFilterContent_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 互动弹幕条目信息
+ ///
+ public sealed partial class CommandDm : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommandDm());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[9]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CommandDm() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CommandDm(CommandDm other) : this() {
+ id_ = other.id_;
+ oid_ = other.oid_;
+ mid_ = other.mid_;
+ command_ = other.command_;
+ content_ = other.content_;
+ progress_ = other.progress_;
+ ctime_ = other.ctime_;
+ mtime_ = other.mtime_;
+ extra_ = other.extra_;
+ idStr_ = other.idStr_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CommandDm Clone() {
+ return new CommandDm(this);
+ }
+
+ /// Field number for the "id" field.
+ public const int IdFieldNumber = 1;
+ private long id_;
+ ///
+ /// 弹幕id
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Id {
+ get { return id_; }
+ set {
+ id_ = value;
+ }
+ }
+
+ /// Field number for the "oid" field.
+ public const int OidFieldNumber = 2;
+ private long oid_;
+ ///
+ /// 对象视频cid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Oid {
+ get { return oid_; }
+ set {
+ oid_ = value;
+ }
+ }
+
+ /// Field number for the "mid" field.
+ public const int MidFieldNumber = 3;
+ private string mid_ = "";
+ ///
+ /// 发送者mid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Mid {
+ get { return mid_; }
+ set {
+ mid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "command" field.
+ public const int CommandFieldNumber = 4;
+ private string command_ = "";
+ ///
+ /// 互动弹幕指令
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Command {
+ get { return command_; }
+ set {
+ command_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "content" field.
+ public const int ContentFieldNumber = 5;
+ private string content_ = "";
+ ///
+ /// 互动弹幕正文
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Content {
+ get { return content_; }
+ set {
+ content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "progress" field.
+ public const int ProgressFieldNumber = 6;
+ private int progress_;
+ ///
+ /// 出现时间
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Progress {
+ get { return progress_; }
+ set {
+ progress_ = value;
+ }
+ }
+
+ /// Field number for the "ctime" field.
+ public const int CtimeFieldNumber = 7;
+ private string ctime_ = "";
+ ///
+ /// 创建时间
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Ctime {
+ get { return ctime_; }
+ set {
+ ctime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "mtime" field.
+ public const int MtimeFieldNumber = 8;
+ private string mtime_ = "";
+ ///
+ /// 发布时间
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Mtime {
+ get { return mtime_; }
+ set {
+ mtime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "extra" field.
+ public const int ExtraFieldNumber = 9;
+ private string extra_ = "";
+ ///
+ /// 扩展json数据
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Extra {
+ get { return extra_; }
+ set {
+ extra_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "idStr" field.
+ public const int IdStrFieldNumber = 10;
+ private string idStr_ = "";
+ ///
+ /// 弹幕id str类型
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string IdStr {
+ get { return idStr_; }
+ set {
+ idStr_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CommandDm);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CommandDm other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Id != other.Id) return false;
+ if (Oid != other.Oid) return false;
+ if (Mid != other.Mid) return false;
+ if (Command != other.Command) return false;
+ if (Content != other.Content) return false;
+ if (Progress != other.Progress) return false;
+ if (Ctime != other.Ctime) return false;
+ if (Mtime != other.Mtime) return false;
+ if (Extra != other.Extra) return false;
+ if (IdStr != other.IdStr) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Id != 0L) hash ^= Id.GetHashCode();
+ if (Oid != 0L) hash ^= Oid.GetHashCode();
+ if (Mid.Length != 0) hash ^= Mid.GetHashCode();
+ if (Command.Length != 0) hash ^= Command.GetHashCode();
+ if (Content.Length != 0) hash ^= Content.GetHashCode();
+ if (Progress != 0) hash ^= Progress.GetHashCode();
+ if (Ctime.Length != 0) hash ^= Ctime.GetHashCode();
+ if (Mtime.Length != 0) hash ^= Mtime.GetHashCode();
+ if (Extra.Length != 0) hash ^= Extra.GetHashCode();
+ if (IdStr.Length != 0) hash ^= IdStr.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Id != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Id);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Mid.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Mid);
+ }
+ if (Command.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Command);
+ }
+ if (Content.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(Content);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Progress);
+ }
+ if (Ctime.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(Ctime);
+ }
+ if (Mtime.Length != 0) {
+ output.WriteRawTag(66);
+ output.WriteString(Mtime);
+ }
+ if (Extra.Length != 0) {
+ output.WriteRawTag(74);
+ output.WriteString(Extra);
+ }
+ if (IdStr.Length != 0) {
+ output.WriteRawTag(82);
+ output.WriteString(IdStr);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Id != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Id);
+ }
+ if (Oid != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Oid);
+ }
+ if (Mid.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Mid);
+ }
+ if (Command.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Command);
+ }
+ if (Content.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(Content);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Progress);
+ }
+ if (Ctime.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(Ctime);
+ }
+ if (Mtime.Length != 0) {
+ output.WriteRawTag(66);
+ output.WriteString(Mtime);
+ }
+ if (Extra.Length != 0) {
+ output.WriteRawTag(74);
+ output.WriteString(Extra);
+ }
+ if (IdStr.Length != 0) {
+ output.WriteRawTag(82);
+ output.WriteString(IdStr);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Id != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
+ }
+ if (Oid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oid);
+ }
+ if (Mid.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Mid);
+ }
+ if (Command.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Command);
+ }
+ if (Content.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
+ }
+ if (Progress != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Progress);
+ }
+ if (Ctime.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Ctime);
+ }
+ if (Mtime.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Mtime);
+ }
+ if (Extra.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Extra);
+ }
+ if (IdStr.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(IdStr);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CommandDm other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Id != 0L) {
+ Id = other.Id;
+ }
+ if (other.Oid != 0L) {
+ Oid = other.Oid;
+ }
+ if (other.Mid.Length != 0) {
+ Mid = other.Mid;
+ }
+ if (other.Command.Length != 0) {
+ Command = other.Command;
+ }
+ if (other.Content.Length != 0) {
+ Content = other.Content;
+ }
+ if (other.Progress != 0) {
+ Progress = other.Progress;
+ }
+ if (other.Ctime.Length != 0) {
+ Ctime = other.Ctime;
+ }
+ if (other.Mtime.Length != 0) {
+ Mtime = other.Mtime;
+ }
+ if (other.Extra.Length != 0) {
+ Extra = other.Extra;
+ }
+ if (other.IdStr.Length != 0) {
+ IdStr = other.IdStr;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Id = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ Mid = input.ReadString();
+ break;
+ }
+ case 34: {
+ Command = input.ReadString();
+ break;
+ }
+ case 42: {
+ Content = input.ReadString();
+ break;
+ }
+ case 48: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ case 58: {
+ Ctime = input.ReadString();
+ break;
+ }
+ case 66: {
+ Mtime = input.ReadString();
+ break;
+ }
+ case 74: {
+ Extra = input.ReadString();
+ break;
+ }
+ case 82: {
+ IdStr = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Id = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Oid = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ Mid = input.ReadString();
+ break;
+ }
+ case 34: {
+ Command = input.ReadString();
+ break;
+ }
+ case 42: {
+ Content = input.ReadString();
+ break;
+ }
+ case 48: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ case 58: {
+ Ctime = input.ReadString();
+ break;
+ }
+ case 66: {
+ Mtime = input.ReadString();
+ break;
+ }
+ case 74: {
+ Extra = input.ReadString();
+ break;
+ }
+ case 82: {
+ IdStr = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ ///
+ public sealed partial class DmSegConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmSegConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[10]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegConfig(DmSegConfig other) : this() {
+ pageSize_ = other.pageSize_;
+ total_ = other.total_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmSegConfig Clone() {
+ return new DmSegConfig(this);
+ }
+
+ /// Field number for the "page_size" field.
+ public const int PageSizeFieldNumber = 1;
+ private long pageSize_;
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PageSize {
+ get { return pageSize_; }
+ set {
+ pageSize_ = value;
+ }
+ }
+
+ /// Field number for the "total" field.
+ public const int TotalFieldNumber = 2;
+ private long total_;
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Total {
+ get { return total_; }
+ set {
+ total_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmSegConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmSegConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PageSize != other.PageSize) return false;
+ if (Total != other.Total) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PageSize != 0L) hash ^= PageSize.GetHashCode();
+ if (Total != 0L) hash ^= Total.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PageSize != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PageSize);
+ }
+ if (Total != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Total);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PageSize != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PageSize);
+ }
+ if (Total != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Total);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PageSize != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PageSize);
+ }
+ if (Total != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Total);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmSegConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PageSize != 0L) {
+ PageSize = other.PageSize;
+ }
+ if (other.Total != 0L) {
+ Total = other.Total;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PageSize = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Total = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PageSize = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Total = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 智能防挡弹幕蒙版信息
+ ///
+ public sealed partial class VideoMask : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoMask());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[11]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public VideoMask() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public VideoMask(VideoMask other) : this() {
+ cid_ = other.cid_;
+ plat_ = other.plat_;
+ fps_ = other.fps_;
+ time_ = other.time_;
+ maskUrl_ = other.maskUrl_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public VideoMask Clone() {
+ return new VideoMask(this);
+ }
+
+ /// Field number for the "cid" field.
+ public const int CidFieldNumber = 1;
+ private long cid_;
+ ///
+ /// 视频cid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Cid {
+ get { return cid_; }
+ set {
+ cid_ = value;
+ }
+ }
+
+ /// Field number for the "plat" field.
+ public const int PlatFieldNumber = 2;
+ private int plat_;
+ ///
+ /// 平台
+ /// 0:web端 1:客户端
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Plat {
+ get { return plat_; }
+ set {
+ plat_ = value;
+ }
+ }
+
+ /// Field number for the "fps" field.
+ public const int FpsFieldNumber = 3;
+ private int fps_;
+ ///
+ /// 帧率
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Fps {
+ get { return fps_; }
+ set {
+ fps_ = value;
+ }
+ }
+
+ /// Field number for the "time" field.
+ public const int TimeFieldNumber = 4;
+ private long time_;
+ ///
+ /// 间隔时间
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Time {
+ get { return time_; }
+ set {
+ time_ = value;
+ }
+ }
+
+ /// Field number for the "mask_url" field.
+ public const int MaskUrlFieldNumber = 5;
+ private string maskUrl_ = "";
+ ///
+ /// 蒙版url
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string MaskUrl {
+ get { return maskUrl_; }
+ set {
+ maskUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as VideoMask);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(VideoMask other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Cid != other.Cid) return false;
+ if (Plat != other.Plat) return false;
+ if (Fps != other.Fps) return false;
+ if (Time != other.Time) return false;
+ if (MaskUrl != other.MaskUrl) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Cid != 0L) hash ^= Cid.GetHashCode();
+ if (Plat != 0) hash ^= Plat.GetHashCode();
+ if (Fps != 0) hash ^= Fps.GetHashCode();
+ if (Time != 0L) hash ^= Time.GetHashCode();
+ if (MaskUrl.Length != 0) hash ^= MaskUrl.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Cid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Cid);
+ }
+ if (Plat != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Plat);
+ }
+ if (Fps != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Fps);
+ }
+ if (Time != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Time);
+ }
+ if (MaskUrl.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(MaskUrl);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Cid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Cid);
+ }
+ if (Plat != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Plat);
+ }
+ if (Fps != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Fps);
+ }
+ if (Time != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Time);
+ }
+ if (MaskUrl.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(MaskUrl);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Cid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Cid);
+ }
+ if (Plat != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Plat);
+ }
+ if (Fps != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fps);
+ }
+ if (Time != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time);
+ }
+ if (MaskUrl.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(MaskUrl);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(VideoMask other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Cid != 0L) {
+ Cid = other.Cid;
+ }
+ if (other.Plat != 0) {
+ Plat = other.Plat;
+ }
+ if (other.Fps != 0) {
+ Fps = other.Fps;
+ }
+ if (other.Time != 0L) {
+ Time = other.Time;
+ }
+ if (other.MaskUrl.Length != 0) {
+ MaskUrl = other.MaskUrl;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Cid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Plat = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Fps = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ Time = input.ReadInt64();
+ break;
+ }
+ case 42: {
+ MaskUrl = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Cid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Plat = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Fps = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ Time = input.ReadInt64();
+ break;
+ }
+ case 42: {
+ MaskUrl = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 视频字幕信息
+ ///
+ public sealed partial class VideoSubtitle : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoSubtitle());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[12]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public VideoSubtitle() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public VideoSubtitle(VideoSubtitle other) : this() {
+ lan_ = other.lan_;
+ lanDoc_ = other.lanDoc_;
+ subtitles_ = other.subtitles_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public VideoSubtitle Clone() {
+ return new VideoSubtitle(this);
+ }
+
+ /// Field number for the "lan" field.
+ public const int LanFieldNumber = 1;
+ private string lan_ = "";
+ ///
+ /// 视频原语言代码
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Lan {
+ get { return lan_; }
+ set {
+ lan_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "lanDoc" field.
+ public const int LanDocFieldNumber = 2;
+ private string lanDoc_ = "";
+ ///
+ /// 视频原语言
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string LanDoc {
+ get { return lanDoc_; }
+ set {
+ lanDoc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "subtitles" field.
+ public const int SubtitlesFieldNumber = 3;
+ private static readonly pb::FieldCodec _repeated_subtitles_codec
+ = pb::FieldCodec.ForMessage(26, global::Bilibili.Community.Service.Dm.V1.SubtitleItem.Parser);
+ private readonly pbc::RepeatedField subtitles_ = new pbc::RepeatedField();
+ ///
+ /// 视频字幕列表
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Subtitles {
+ get { return subtitles_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as VideoSubtitle);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(VideoSubtitle other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Lan != other.Lan) return false;
+ if (LanDoc != other.LanDoc) return false;
+ if(!subtitles_.Equals(other.subtitles_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Lan.Length != 0) hash ^= Lan.GetHashCode();
+ if (LanDoc.Length != 0) hash ^= LanDoc.GetHashCode();
+ hash ^= subtitles_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Lan.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Lan);
+ }
+ if (LanDoc.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(LanDoc);
+ }
+ subtitles_.WriteTo(output, _repeated_subtitles_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Lan.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Lan);
+ }
+ if (LanDoc.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(LanDoc);
+ }
+ subtitles_.WriteTo(ref output, _repeated_subtitles_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Lan.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Lan);
+ }
+ if (LanDoc.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(LanDoc);
+ }
+ size += subtitles_.CalculateSize(_repeated_subtitles_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(VideoSubtitle other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Lan.Length != 0) {
+ Lan = other.Lan;
+ }
+ if (other.LanDoc.Length != 0) {
+ LanDoc = other.LanDoc;
+ }
+ subtitles_.Add(other.subtitles_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Lan = input.ReadString();
+ break;
+ }
+ case 18: {
+ LanDoc = input.ReadString();
+ break;
+ }
+ case 26: {
+ subtitles_.AddEntriesFrom(input, _repeated_subtitles_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Lan = input.ReadString();
+ break;
+ }
+ case 18: {
+ LanDoc = input.ReadString();
+ break;
+ }
+ case 26: {
+ subtitles_.AddEntriesFrom(ref input, _repeated_subtitles_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// web端用户弹幕配置
+ ///
+ public sealed partial class DanmuWebPlayerConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmuWebPlayerConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[13]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuWebPlayerConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuWebPlayerConfig(DanmuWebPlayerConfig other) : this() {
+ dmSwitch_ = other.dmSwitch_;
+ aiSwitch_ = other.aiSwitch_;
+ aiLevel_ = other.aiLevel_;
+ blocktop_ = other.blocktop_;
+ blockscroll_ = other.blockscroll_;
+ blockbottom_ = other.blockbottom_;
+ blockcolor_ = other.blockcolor_;
+ blockspecial_ = other.blockspecial_;
+ preventshade_ = other.preventshade_;
+ dmask_ = other.dmask_;
+ opacity_ = other.opacity_;
+ dmarea_ = other.dmarea_;
+ speedplus_ = other.speedplus_;
+ fontsize_ = other.fontsize_;
+ screensync_ = other.screensync_;
+ speedsync_ = other.speedsync_;
+ fontfamily_ = other.fontfamily_;
+ bold_ = other.bold_;
+ fontborder_ = other.fontborder_;
+ drawType_ = other.drawType_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuWebPlayerConfig Clone() {
+ return new DanmuWebPlayerConfig(this);
+ }
+
+ /// Field number for the "dm_switch" field.
+ public const int DmSwitchFieldNumber = 1;
+ private bool dmSwitch_;
+ ///
+ /// 是否开启弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool DmSwitch {
+ get { return dmSwitch_; }
+ set {
+ dmSwitch_ = value;
+ }
+ }
+
+ /// Field number for the "ai_switch" field.
+ public const int AiSwitchFieldNumber = 2;
+ private bool aiSwitch_;
+ ///
+ /// 是否开启智能云屏蔽
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool AiSwitch {
+ get { return aiSwitch_; }
+ set {
+ aiSwitch_ = value;
+ }
+ }
+
+ /// Field number for the "ai_level" field.
+ public const int AiLevelFieldNumber = 3;
+ private int aiLevel_;
+ ///
+ /// 智能云屏蔽等级
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int AiLevel {
+ get { return aiLevel_; }
+ set {
+ aiLevel_ = value;
+ }
+ }
+
+ /// Field number for the "blocktop" field.
+ public const int BlocktopFieldNumber = 4;
+ private bool blocktop_;
+ ///
+ /// 是否屏蔽顶端弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Blocktop {
+ get { return blocktop_; }
+ set {
+ blocktop_ = value;
+ }
+ }
+
+ /// Field number for the "blockscroll" field.
+ public const int BlockscrollFieldNumber = 5;
+ private bool blockscroll_;
+ ///
+ /// 是否屏蔽滚动弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Blockscroll {
+ get { return blockscroll_; }
+ set {
+ blockscroll_ = value;
+ }
+ }
+
+ /// Field number for the "blockbottom" field.
+ public const int BlockbottomFieldNumber = 6;
+ private bool blockbottom_;
+ ///
+ /// 是否屏蔽底端弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Blockbottom {
+ get { return blockbottom_; }
+ set {
+ blockbottom_ = value;
+ }
+ }
+
+ /// Field number for the "blockcolor" field.
+ public const int BlockcolorFieldNumber = 7;
+ private bool blockcolor_;
+ ///
+ /// 是否屏蔽彩色弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Blockcolor {
+ get { return blockcolor_; }
+ set {
+ blockcolor_ = value;
+ }
+ }
+
+ /// Field number for the "blockspecial" field.
+ public const int BlockspecialFieldNumber = 8;
+ private bool blockspecial_;
+ ///
+ /// 是否屏蔽重复弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Blockspecial {
+ get { return blockspecial_; }
+ set {
+ blockspecial_ = value;
+ }
+ }
+
+ /// Field number for the "preventshade" field.
+ public const int PreventshadeFieldNumber = 9;
+ private bool preventshade_;
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Preventshade {
+ get { return preventshade_; }
+ set {
+ preventshade_ = value;
+ }
+ }
+
+ /// Field number for the "dmask" field.
+ public const int DmaskFieldNumber = 10;
+ private bool dmask_;
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Dmask {
+ get { return dmask_; }
+ set {
+ dmask_ = value;
+ }
+ }
+
+ /// Field number for the "opacity" field.
+ public const int OpacityFieldNumber = 11;
+ private float opacity_;
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float Opacity {
+ get { return opacity_; }
+ set {
+ opacity_ = value;
+ }
+ }
+
+ /// Field number for the "dmarea" field.
+ public const int DmareaFieldNumber = 12;
+ private int dmarea_;
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Dmarea {
+ get { return dmarea_; }
+ set {
+ dmarea_ = value;
+ }
+ }
+
+ /// Field number for the "speedplus" field.
+ public const int SpeedplusFieldNumber = 13;
+ private float speedplus_;
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float Speedplus {
+ get { return speedplus_; }
+ set {
+ speedplus_ = value;
+ }
+ }
+
+ /// Field number for the "fontsize" field.
+ public const int FontsizeFieldNumber = 14;
+ private float fontsize_;
+ ///
+ /// 弹幕字号
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float Fontsize {
+ get { return fontsize_; }
+ set {
+ fontsize_ = value;
+ }
+ }
+
+ /// Field number for the "screensync" field.
+ public const int ScreensyncFieldNumber = 15;
+ private bool screensync_;
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Screensync {
+ get { return screensync_; }
+ set {
+ screensync_ = value;
+ }
+ }
+
+ /// Field number for the "speedsync" field.
+ public const int SpeedsyncFieldNumber = 16;
+ private bool speedsync_;
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Speedsync {
+ get { return speedsync_; }
+ set {
+ speedsync_ = value;
+ }
+ }
+
+ /// Field number for the "fontfamily" field.
+ public const int FontfamilyFieldNumber = 17;
+ private string fontfamily_ = "";
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Fontfamily {
+ get { return fontfamily_; }
+ set {
+ fontfamily_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "bold" field.
+ public const int BoldFieldNumber = 18;
+ private bool bold_;
+ ///
+ /// 是否使用加粗
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Bold {
+ get { return bold_; }
+ set {
+ bold_ = value;
+ }
+ }
+
+ /// Field number for the "fontborder" field.
+ public const int FontborderFieldNumber = 19;
+ private int fontborder_;
+ ///
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Fontborder {
+ get { return fontborder_; }
+ set {
+ fontborder_ = value;
+ }
+ }
+
+ /// Field number for the "draw_type" field.
+ public const int DrawTypeFieldNumber = 20;
+ private string drawType_ = "";
+ ///
+ /// 弹幕渲染类型
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string DrawType {
+ get { return drawType_; }
+ set {
+ drawType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmuWebPlayerConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmuWebPlayerConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (DmSwitch != other.DmSwitch) return false;
+ if (AiSwitch != other.AiSwitch) return false;
+ if (AiLevel != other.AiLevel) return false;
+ if (Blocktop != other.Blocktop) return false;
+ if (Blockscroll != other.Blockscroll) return false;
+ if (Blockbottom != other.Blockbottom) return false;
+ if (Blockcolor != other.Blockcolor) return false;
+ if (Blockspecial != other.Blockspecial) return false;
+ if (Preventshade != other.Preventshade) return false;
+ if (Dmask != other.Dmask) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Opacity, other.Opacity)) return false;
+ if (Dmarea != other.Dmarea) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speedplus, other.Speedplus)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Fontsize, other.Fontsize)) return false;
+ if (Screensync != other.Screensync) return false;
+ if (Speedsync != other.Speedsync) return false;
+ if (Fontfamily != other.Fontfamily) return false;
+ if (Bold != other.Bold) return false;
+ if (Fontborder != other.Fontborder) return false;
+ if (DrawType != other.DrawType) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (DmSwitch != false) hash ^= DmSwitch.GetHashCode();
+ if (AiSwitch != false) hash ^= AiSwitch.GetHashCode();
+ if (AiLevel != 0) hash ^= AiLevel.GetHashCode();
+ if (Blocktop != false) hash ^= Blocktop.GetHashCode();
+ if (Blockscroll != false) hash ^= Blockscroll.GetHashCode();
+ if (Blockbottom != false) hash ^= Blockbottom.GetHashCode();
+ if (Blockcolor != false) hash ^= Blockcolor.GetHashCode();
+ if (Blockspecial != false) hash ^= Blockspecial.GetHashCode();
+ if (Preventshade != false) hash ^= Preventshade.GetHashCode();
+ if (Dmask != false) hash ^= Dmask.GetHashCode();
+ if (Opacity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Opacity);
+ if (Dmarea != 0) hash ^= Dmarea.GetHashCode();
+ if (Speedplus != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speedplus);
+ if (Fontsize != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Fontsize);
+ if (Screensync != false) hash ^= Screensync.GetHashCode();
+ if (Speedsync != false) hash ^= Speedsync.GetHashCode();
+ if (Fontfamily.Length != 0) hash ^= Fontfamily.GetHashCode();
+ if (Bold != false) hash ^= Bold.GetHashCode();
+ if (Fontborder != 0) hash ^= Fontborder.GetHashCode();
+ if (DrawType.Length != 0) hash ^= DrawType.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (DmSwitch != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(DmSwitch);
+ }
+ if (AiSwitch != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(AiSwitch);
+ }
+ if (AiLevel != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(AiLevel);
+ }
+ if (Blocktop != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(Blocktop);
+ }
+ if (Blockscroll != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(Blockscroll);
+ }
+ if (Blockbottom != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(Blockbottom);
+ }
+ if (Blockcolor != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(Blockcolor);
+ }
+ if (Blockspecial != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(Blockspecial);
+ }
+ if (Preventshade != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(Preventshade);
+ }
+ if (Dmask != false) {
+ output.WriteRawTag(80);
+ output.WriteBool(Dmask);
+ }
+ if (Opacity != 0F) {
+ output.WriteRawTag(93);
+ output.WriteFloat(Opacity);
+ }
+ if (Dmarea != 0) {
+ output.WriteRawTag(96);
+ output.WriteInt32(Dmarea);
+ }
+ if (Speedplus != 0F) {
+ output.WriteRawTag(109);
+ output.WriteFloat(Speedplus);
+ }
+ if (Fontsize != 0F) {
+ output.WriteRawTag(117);
+ output.WriteFloat(Fontsize);
+ }
+ if (Screensync != false) {
+ output.WriteRawTag(120);
+ output.WriteBool(Screensync);
+ }
+ if (Speedsync != false) {
+ output.WriteRawTag(128, 1);
+ output.WriteBool(Speedsync);
+ }
+ if (Fontfamily.Length != 0) {
+ output.WriteRawTag(138, 1);
+ output.WriteString(Fontfamily);
+ }
+ if (Bold != false) {
+ output.WriteRawTag(144, 1);
+ output.WriteBool(Bold);
+ }
+ if (Fontborder != 0) {
+ output.WriteRawTag(152, 1);
+ output.WriteInt32(Fontborder);
+ }
+ if (DrawType.Length != 0) {
+ output.WriteRawTag(162, 1);
+ output.WriteString(DrawType);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (DmSwitch != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(DmSwitch);
+ }
+ if (AiSwitch != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(AiSwitch);
+ }
+ if (AiLevel != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(AiLevel);
+ }
+ if (Blocktop != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(Blocktop);
+ }
+ if (Blockscroll != false) {
+ output.WriteRawTag(40);
+ output.WriteBool(Blockscroll);
+ }
+ if (Blockbottom != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(Blockbottom);
+ }
+ if (Blockcolor != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(Blockcolor);
+ }
+ if (Blockspecial != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(Blockspecial);
+ }
+ if (Preventshade != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(Preventshade);
+ }
+ if (Dmask != false) {
+ output.WriteRawTag(80);
+ output.WriteBool(Dmask);
+ }
+ if (Opacity != 0F) {
+ output.WriteRawTag(93);
+ output.WriteFloat(Opacity);
+ }
+ if (Dmarea != 0) {
+ output.WriteRawTag(96);
+ output.WriteInt32(Dmarea);
+ }
+ if (Speedplus != 0F) {
+ output.WriteRawTag(109);
+ output.WriteFloat(Speedplus);
+ }
+ if (Fontsize != 0F) {
+ output.WriteRawTag(117);
+ output.WriteFloat(Fontsize);
+ }
+ if (Screensync != false) {
+ output.WriteRawTag(120);
+ output.WriteBool(Screensync);
+ }
+ if (Speedsync != false) {
+ output.WriteRawTag(128, 1);
+ output.WriteBool(Speedsync);
+ }
+ if (Fontfamily.Length != 0) {
+ output.WriteRawTag(138, 1);
+ output.WriteString(Fontfamily);
+ }
+ if (Bold != false) {
+ output.WriteRawTag(144, 1);
+ output.WriteBool(Bold);
+ }
+ if (Fontborder != 0) {
+ output.WriteRawTag(152, 1);
+ output.WriteInt32(Fontborder);
+ }
+ if (DrawType.Length != 0) {
+ output.WriteRawTag(162, 1);
+ output.WriteString(DrawType);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (DmSwitch != false) {
+ size += 1 + 1;
+ }
+ if (AiSwitch != false) {
+ size += 1 + 1;
+ }
+ if (AiLevel != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(AiLevel);
+ }
+ if (Blocktop != false) {
+ size += 1 + 1;
+ }
+ if (Blockscroll != false) {
+ size += 1 + 1;
+ }
+ if (Blockbottom != false) {
+ size += 1 + 1;
+ }
+ if (Blockcolor != false) {
+ size += 1 + 1;
+ }
+ if (Blockspecial != false) {
+ size += 1 + 1;
+ }
+ if (Preventshade != false) {
+ size += 1 + 1;
+ }
+ if (Dmask != false) {
+ size += 1 + 1;
+ }
+ if (Opacity != 0F) {
+ size += 1 + 4;
+ }
+ if (Dmarea != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dmarea);
+ }
+ if (Speedplus != 0F) {
+ size += 1 + 4;
+ }
+ if (Fontsize != 0F) {
+ size += 1 + 4;
+ }
+ if (Screensync != false) {
+ size += 1 + 1;
+ }
+ if (Speedsync != false) {
+ size += 2 + 1;
+ }
+ if (Fontfamily.Length != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeStringSize(Fontfamily);
+ }
+ if (Bold != false) {
+ size += 2 + 1;
+ }
+ if (Fontborder != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeInt32Size(Fontborder);
+ }
+ if (DrawType.Length != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeStringSize(DrawType);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmuWebPlayerConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.DmSwitch != false) {
+ DmSwitch = other.DmSwitch;
+ }
+ if (other.AiSwitch != false) {
+ AiSwitch = other.AiSwitch;
+ }
+ if (other.AiLevel != 0) {
+ AiLevel = other.AiLevel;
+ }
+ if (other.Blocktop != false) {
+ Blocktop = other.Blocktop;
+ }
+ if (other.Blockscroll != false) {
+ Blockscroll = other.Blockscroll;
+ }
+ if (other.Blockbottom != false) {
+ Blockbottom = other.Blockbottom;
+ }
+ if (other.Blockcolor != false) {
+ Blockcolor = other.Blockcolor;
+ }
+ if (other.Blockspecial != false) {
+ Blockspecial = other.Blockspecial;
+ }
+ if (other.Preventshade != false) {
+ Preventshade = other.Preventshade;
+ }
+ if (other.Dmask != false) {
+ Dmask = other.Dmask;
+ }
+ if (other.Opacity != 0F) {
+ Opacity = other.Opacity;
+ }
+ if (other.Dmarea != 0) {
+ Dmarea = other.Dmarea;
+ }
+ if (other.Speedplus != 0F) {
+ Speedplus = other.Speedplus;
+ }
+ if (other.Fontsize != 0F) {
+ Fontsize = other.Fontsize;
+ }
+ if (other.Screensync != false) {
+ Screensync = other.Screensync;
+ }
+ if (other.Speedsync != false) {
+ Speedsync = other.Speedsync;
+ }
+ if (other.Fontfamily.Length != 0) {
+ Fontfamily = other.Fontfamily;
+ }
+ if (other.Bold != false) {
+ Bold = other.Bold;
+ }
+ if (other.Fontborder != 0) {
+ Fontborder = other.Fontborder;
+ }
+ if (other.DrawType.Length != 0) {
+ DrawType = other.DrawType;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ DmSwitch = input.ReadBool();
+ break;
+ }
+ case 16: {
+ AiSwitch = input.ReadBool();
+ break;
+ }
+ case 24: {
+ AiLevel = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ Blocktop = input.ReadBool();
+ break;
+ }
+ case 40: {
+ Blockscroll = input.ReadBool();
+ break;
+ }
+ case 48: {
+ Blockbottom = input.ReadBool();
+ break;
+ }
+ case 56: {
+ Blockcolor = input.ReadBool();
+ break;
+ }
+ case 64: {
+ Blockspecial = input.ReadBool();
+ break;
+ }
+ case 72: {
+ Preventshade = input.ReadBool();
+ break;
+ }
+ case 80: {
+ Dmask = input.ReadBool();
+ break;
+ }
+ case 93: {
+ Opacity = input.ReadFloat();
+ break;
+ }
+ case 96: {
+ Dmarea = input.ReadInt32();
+ break;
+ }
+ case 109: {
+ Speedplus = input.ReadFloat();
+ break;
+ }
+ case 117: {
+ Fontsize = input.ReadFloat();
+ break;
+ }
+ case 120: {
+ Screensync = input.ReadBool();
+ break;
+ }
+ case 128: {
+ Speedsync = input.ReadBool();
+ break;
+ }
+ case 138: {
+ Fontfamily = input.ReadString();
+ break;
+ }
+ case 144: {
+ Bold = input.ReadBool();
+ break;
+ }
+ case 152: {
+ Fontborder = input.ReadInt32();
+ break;
+ }
+ case 162: {
+ DrawType = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ DmSwitch = input.ReadBool();
+ break;
+ }
+ case 16: {
+ AiSwitch = input.ReadBool();
+ break;
+ }
+ case 24: {
+ AiLevel = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ Blocktop = input.ReadBool();
+ break;
+ }
+ case 40: {
+ Blockscroll = input.ReadBool();
+ break;
+ }
+ case 48: {
+ Blockbottom = input.ReadBool();
+ break;
+ }
+ case 56: {
+ Blockcolor = input.ReadBool();
+ break;
+ }
+ case 64: {
+ Blockspecial = input.ReadBool();
+ break;
+ }
+ case 72: {
+ Preventshade = input.ReadBool();
+ break;
+ }
+ case 80: {
+ Dmask = input.ReadBool();
+ break;
+ }
+ case 93: {
+ Opacity = input.ReadFloat();
+ break;
+ }
+ case 96: {
+ Dmarea = input.ReadInt32();
+ break;
+ }
+ case 109: {
+ Speedplus = input.ReadFloat();
+ break;
+ }
+ case 117: {
+ Fontsize = input.ReadFloat();
+ break;
+ }
+ case 120: {
+ Screensync = input.ReadBool();
+ break;
+ }
+ case 128: {
+ Speedsync = input.ReadBool();
+ break;
+ }
+ case 138: {
+ Fontfamily = input.ReadString();
+ break;
+ }
+ case 144: {
+ Bold = input.ReadBool();
+ break;
+ }
+ case 152: {
+ Fontborder = input.ReadInt32();
+ break;
+ }
+ case 162: {
+ DrawType = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 单个字幕信息
+ ///
+ public sealed partial class SubtitleItem : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubtitleItem());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[14]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SubtitleItem() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SubtitleItem(SubtitleItem other) : this() {
+ id_ = other.id_;
+ idStr_ = other.idStr_;
+ lan_ = other.lan_;
+ lanDoc_ = other.lanDoc_;
+ subtitleUrl_ = other.subtitleUrl_;
+ author_ = other.author_ != null ? other.author_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SubtitleItem Clone() {
+ return new SubtitleItem(this);
+ }
+
+ /// Field number for the "id" field.
+ public const int IdFieldNumber = 1;
+ private long id_;
+ ///
+ /// 字幕id
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Id {
+ get { return id_; }
+ set {
+ id_ = value;
+ }
+ }
+
+ /// Field number for the "id_str" field.
+ public const int IdStrFieldNumber = 2;
+ private string idStr_ = "";
+ ///
+ /// 字幕id str
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string IdStr {
+ get { return idStr_; }
+ set {
+ idStr_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "lan" field.
+ public const int LanFieldNumber = 3;
+ private string lan_ = "";
+ ///
+ /// 字幕语言代码
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Lan {
+ get { return lan_; }
+ set {
+ lan_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "lan_doc" field.
+ public const int LanDocFieldNumber = 4;
+ private string lanDoc_ = "";
+ ///
+ /// 字幕语言
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string LanDoc {
+ get { return lanDoc_; }
+ set {
+ lanDoc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "subtitle_url" field.
+ public const int SubtitleUrlFieldNumber = 5;
+ private string subtitleUrl_ = "";
+ ///
+ /// 字幕文件url
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string SubtitleUrl {
+ get { return subtitleUrl_; }
+ set {
+ subtitleUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "author" field.
+ public const int AuthorFieldNumber = 6;
+ private global::Bilibili.Community.Service.Dm.V1.UserInfo author_;
+ ///
+ /// 字幕作者信息
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.UserInfo Author {
+ get { return author_; }
+ set {
+ author_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SubtitleItem);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SubtitleItem other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Id != other.Id) return false;
+ if (IdStr != other.IdStr) return false;
+ if (Lan != other.Lan) return false;
+ if (LanDoc != other.LanDoc) return false;
+ if (SubtitleUrl != other.SubtitleUrl) return false;
+ if (!object.Equals(Author, other.Author)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Id != 0L) hash ^= Id.GetHashCode();
+ if (IdStr.Length != 0) hash ^= IdStr.GetHashCode();
+ if (Lan.Length != 0) hash ^= Lan.GetHashCode();
+ if (LanDoc.Length != 0) hash ^= LanDoc.GetHashCode();
+ if (SubtitleUrl.Length != 0) hash ^= SubtitleUrl.GetHashCode();
+ if (author_ != null) hash ^= Author.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Id != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Id);
+ }
+ if (IdStr.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(IdStr);
+ }
+ if (Lan.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Lan);
+ }
+ if (LanDoc.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(LanDoc);
+ }
+ if (SubtitleUrl.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(SubtitleUrl);
+ }
+ if (author_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(Author);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Id != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Id);
+ }
+ if (IdStr.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(IdStr);
+ }
+ if (Lan.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Lan);
+ }
+ if (LanDoc.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(LanDoc);
+ }
+ if (SubtitleUrl.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(SubtitleUrl);
+ }
+ if (author_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(Author);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Id != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
+ }
+ if (IdStr.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(IdStr);
+ }
+ if (Lan.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Lan);
+ }
+ if (LanDoc.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(LanDoc);
+ }
+ if (SubtitleUrl.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(SubtitleUrl);
+ }
+ if (author_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Author);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SubtitleItem other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Id != 0L) {
+ Id = other.Id;
+ }
+ if (other.IdStr.Length != 0) {
+ IdStr = other.IdStr;
+ }
+ if (other.Lan.Length != 0) {
+ Lan = other.Lan;
+ }
+ if (other.LanDoc.Length != 0) {
+ LanDoc = other.LanDoc;
+ }
+ if (other.SubtitleUrl.Length != 0) {
+ SubtitleUrl = other.SubtitleUrl;
+ }
+ if (other.author_ != null) {
+ if (author_ == null) {
+ Author = new global::Bilibili.Community.Service.Dm.V1.UserInfo();
+ }
+ Author.MergeFrom(other.Author);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Id = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ IdStr = input.ReadString();
+ break;
+ }
+ case 26: {
+ Lan = input.ReadString();
+ break;
+ }
+ case 34: {
+ LanDoc = input.ReadString();
+ break;
+ }
+ case 42: {
+ SubtitleUrl = input.ReadString();
+ break;
+ }
+ case 50: {
+ if (author_ == null) {
+ Author = new global::Bilibili.Community.Service.Dm.V1.UserInfo();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Id = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ IdStr = input.ReadString();
+ break;
+ }
+ case 26: {
+ Lan = input.ReadString();
+ break;
+ }
+ case 34: {
+ LanDoc = input.ReadString();
+ break;
+ }
+ case 42: {
+ SubtitleUrl = input.ReadString();
+ break;
+ }
+ case 50: {
+ if (author_ == null) {
+ Author = new global::Bilibili.Community.Service.Dm.V1.UserInfo();
+ }
+ input.ReadMessage(Author);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 字幕作者信息
+ ///
+ public sealed partial class UserInfo : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[15]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserInfo(UserInfo other) : this() {
+ mid_ = other.mid_;
+ name_ = other.name_;
+ sex_ = other.sex_;
+ face_ = other.face_;
+ sign_ = other.sign_;
+ rank_ = other.rank_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UserInfo Clone() {
+ return new UserInfo(this);
+ }
+
+ /// Field number for the "mid" field.
+ public const int MidFieldNumber = 1;
+ private long mid_;
+ ///
+ /// 用户mid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Mid {
+ get { return mid_; }
+ set {
+ mid_ = value;
+ }
+ }
+
+ /// Field number for the "name" field.
+ public const int NameFieldNumber = 2;
+ private string name_ = "";
+ ///
+ /// 用户昵称
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Name {
+ get { return name_; }
+ set {
+ name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "sex" field.
+ public const int SexFieldNumber = 3;
+ private string sex_ = "";
+ ///
+ /// 用户性别
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Sex {
+ get { return sex_; }
+ set {
+ sex_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "face" field.
+ public const int FaceFieldNumber = 4;
+ private string face_ = "";
+ ///
+ /// 用户头像url
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Face {
+ get { return face_; }
+ set {
+ face_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "sign" field.
+ public const int SignFieldNumber = 5;
+ private string sign_ = "";
+ ///
+ /// 用户签名
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Sign {
+ get { return sign_; }
+ set {
+ sign_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "rank" field.
+ public const int RankFieldNumber = 6;
+ private int rank_;
+ ///
+ /// 用户等级
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Rank {
+ get { return rank_; }
+ set {
+ rank_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UserInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UserInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Mid != other.Mid) return false;
+ if (Name != other.Name) return false;
+ if (Sex != other.Sex) return false;
+ if (Face != other.Face) return false;
+ if (Sign != other.Sign) return false;
+ if (Rank != other.Rank) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Mid != 0L) hash ^= Mid.GetHashCode();
+ if (Name.Length != 0) hash ^= Name.GetHashCode();
+ if (Sex.Length != 0) hash ^= Sex.GetHashCode();
+ if (Face.Length != 0) hash ^= Face.GetHashCode();
+ if (Sign.Length != 0) hash ^= Sign.GetHashCode();
+ if (Rank != 0) hash ^= Rank.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Mid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Mid);
+ }
+ if (Name.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Name);
+ }
+ if (Sex.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Sex);
+ }
+ if (Face.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Face);
+ }
+ if (Sign.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(Sign);
+ }
+ if (Rank != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Rank);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Mid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Mid);
+ }
+ if (Name.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Name);
+ }
+ if (Sex.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Sex);
+ }
+ if (Face.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Face);
+ }
+ if (Sign.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(Sign);
+ }
+ if (Rank != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Rank);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Mid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Mid);
+ }
+ if (Name.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
+ }
+ if (Sex.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Sex);
+ }
+ if (Face.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Face);
+ }
+ if (Sign.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Sign);
+ }
+ if (Rank != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UserInfo other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Mid != 0L) {
+ Mid = other.Mid;
+ }
+ if (other.Name.Length != 0) {
+ Name = other.Name;
+ }
+ if (other.Sex.Length != 0) {
+ Sex = other.Sex;
+ }
+ if (other.Face.Length != 0) {
+ Face = other.Face;
+ }
+ if (other.Sign.Length != 0) {
+ Sign = other.Sign;
+ }
+ if (other.Rank != 0) {
+ Rank = other.Rank;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Mid = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ Name = input.ReadString();
+ break;
+ }
+ case 26: {
+ Sex = input.ReadString();
+ break;
+ }
+ case 34: {
+ Face = input.ReadString();
+ break;
+ }
+ case 42: {
+ Sign = input.ReadString();
+ break;
+ }
+ case 48: {
+ Rank = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Mid = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ Name = input.ReadString();
+ break;
+ }
+ case 26: {
+ Sex = input.ReadString();
+ break;
+ }
+ case 34: {
+ Face = input.ReadString();
+ break;
+ }
+ case 42: {
+ Sign = input.ReadString();
+ break;
+ }
+ case 48: {
+ Rank = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕条目
+ ///
+ public sealed partial class DanmakuElem : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmakuElem());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[16]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuElem() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuElem(DanmakuElem other) : this() {
+ id_ = other.id_;
+ progress_ = other.progress_;
+ mode_ = other.mode_;
+ fontsize_ = other.fontsize_;
+ color_ = other.color_;
+ midHash_ = other.midHash_;
+ content_ = other.content_;
+ ctime_ = other.ctime_;
+ weight_ = other.weight_;
+ action_ = other.action_;
+ pool_ = other.pool_;
+ idStr_ = other.idStr_;
+ attr_ = other.attr_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuElem Clone() {
+ return new DanmakuElem(this);
+ }
+
+ /// Field number for the "id" field.
+ public const int IdFieldNumber = 1;
+ private long id_;
+ ///
+ /// 弹幕dmid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Id {
+ get { return id_; }
+ set {
+ id_ = value;
+ }
+ }
+
+ /// Field number for the "progress" field.
+ public const int ProgressFieldNumber = 2;
+ private int progress_;
+ ///
+ /// 弹幕出现位置(单位ms)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Progress {
+ get { return progress_; }
+ set {
+ progress_ = value;
+ }
+ }
+
+ /// Field number for the "mode" field.
+ public const int ModeFieldNumber = 3;
+ private int mode_;
+ ///
+ /// 弹幕类型
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Mode {
+ get { return mode_; }
+ set {
+ mode_ = value;
+ }
+ }
+
+ /// Field number for the "fontsize" field.
+ public const int FontsizeFieldNumber = 4;
+ private int fontsize_;
+ ///
+ /// 弹幕字号
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Fontsize {
+ get { return fontsize_; }
+ set {
+ fontsize_ = value;
+ }
+ }
+
+ /// Field number for the "color" field.
+ public const int ColorFieldNumber = 5;
+ private uint color_;
+ ///
+ /// 弹幕颜色
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Color {
+ get { return color_; }
+ set {
+ color_ = value;
+ }
+ }
+
+ /// Field number for the "midHash" field.
+ public const int MidHashFieldNumber = 6;
+ private string midHash_ = "";
+ ///
+ /// 发送着mid hash
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string MidHash {
+ get { return midHash_; }
+ set {
+ midHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "content" field.
+ public const int ContentFieldNumber = 7;
+ private string content_ = "";
+ ///
+ /// 弹幕正文
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Content {
+ get { return content_; }
+ set {
+ content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "ctime" field.
+ public const int CtimeFieldNumber = 8;
+ private long ctime_;
+ ///
+ /// 发送时间
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Ctime {
+ get { return ctime_; }
+ set {
+ ctime_ = value;
+ }
+ }
+
+ /// Field number for the "weight" field.
+ public const int WeightFieldNumber = 9;
+ private int weight_;
+ ///
+ /// 权重 区间:[1,10]
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Weight {
+ get { return weight_; }
+ set {
+ weight_ = value;
+ }
+ }
+
+ /// Field number for the "action" field.
+ public const int ActionFieldNumber = 10;
+ private string action_ = "";
+ ///
+ /// 动作
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Action {
+ get { return action_; }
+ set {
+ action_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "pool" field.
+ public const int PoolFieldNumber = 11;
+ private int pool_;
+ ///
+ /// 弹幕池
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Pool {
+ get { return pool_; }
+ set {
+ pool_ = value;
+ }
+ }
+
+ /// Field number for the "idStr" field.
+ public const int IdStrFieldNumber = 12;
+ private string idStr_ = "";
+ ///
+ /// 弹幕dmid str
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string IdStr {
+ get { return idStr_; }
+ set {
+ idStr_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "attr" field.
+ public const int AttrFieldNumber = 13;
+ private int attr_;
+ ///
+ /// 弹幕属性位(bin求AND)
+ /// bit0:保护 bit1:直播 bit2:高赞
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Attr {
+ get { return attr_; }
+ set {
+ attr_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmakuElem);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmakuElem other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Id != other.Id) return false;
+ if (Progress != other.Progress) return false;
+ if (Mode != other.Mode) return false;
+ if (Fontsize != other.Fontsize) return false;
+ if (Color != other.Color) return false;
+ if (MidHash != other.MidHash) return false;
+ if (Content != other.Content) return false;
+ if (Ctime != other.Ctime) return false;
+ if (Weight != other.Weight) return false;
+ if (Action != other.Action) return false;
+ if (Pool != other.Pool) return false;
+ if (IdStr != other.IdStr) return false;
+ if (Attr != other.Attr) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Id != 0L) hash ^= Id.GetHashCode();
+ if (Progress != 0) hash ^= Progress.GetHashCode();
+ if (Mode != 0) hash ^= Mode.GetHashCode();
+ if (Fontsize != 0) hash ^= Fontsize.GetHashCode();
+ if (Color != 0) hash ^= Color.GetHashCode();
+ if (MidHash.Length != 0) hash ^= MidHash.GetHashCode();
+ if (Content.Length != 0) hash ^= Content.GetHashCode();
+ if (Ctime != 0L) hash ^= Ctime.GetHashCode();
+ if (Weight != 0) hash ^= Weight.GetHashCode();
+ if (Action.Length != 0) hash ^= Action.GetHashCode();
+ if (Pool != 0) hash ^= Pool.GetHashCode();
+ if (IdStr.Length != 0) hash ^= IdStr.GetHashCode();
+ if (Attr != 0) hash ^= Attr.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Id != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Id);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Progress);
+ }
+ if (Mode != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Mode);
+ }
+ if (Fontsize != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Fontsize);
+ }
+ if (Color != 0) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(Color);
+ }
+ if (MidHash.Length != 0) {
+ output.WriteRawTag(50);
+ output.WriteString(MidHash);
+ }
+ if (Content.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(Content);
+ }
+ if (Ctime != 0L) {
+ output.WriteRawTag(64);
+ output.WriteInt64(Ctime);
+ }
+ if (Weight != 0) {
+ output.WriteRawTag(72);
+ output.WriteInt32(Weight);
+ }
+ if (Action.Length != 0) {
+ output.WriteRawTag(82);
+ output.WriteString(Action);
+ }
+ if (Pool != 0) {
+ output.WriteRawTag(88);
+ output.WriteInt32(Pool);
+ }
+ if (IdStr.Length != 0) {
+ output.WriteRawTag(98);
+ output.WriteString(IdStr);
+ }
+ if (Attr != 0) {
+ output.WriteRawTag(104);
+ output.WriteInt32(Attr);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Id != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Id);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Progress);
+ }
+ if (Mode != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Mode);
+ }
+ if (Fontsize != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Fontsize);
+ }
+ if (Color != 0) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(Color);
+ }
+ if (MidHash.Length != 0) {
+ output.WriteRawTag(50);
+ output.WriteString(MidHash);
+ }
+ if (Content.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(Content);
+ }
+ if (Ctime != 0L) {
+ output.WriteRawTag(64);
+ output.WriteInt64(Ctime);
+ }
+ if (Weight != 0) {
+ output.WriteRawTag(72);
+ output.WriteInt32(Weight);
+ }
+ if (Action.Length != 0) {
+ output.WriteRawTag(82);
+ output.WriteString(Action);
+ }
+ if (Pool != 0) {
+ output.WriteRawTag(88);
+ output.WriteInt32(Pool);
+ }
+ if (IdStr.Length != 0) {
+ output.WriteRawTag(98);
+ output.WriteString(IdStr);
+ }
+ if (Attr != 0) {
+ output.WriteRawTag(104);
+ output.WriteInt32(Attr);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Id != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
+ }
+ if (Progress != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Progress);
+ }
+ if (Mode != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mode);
+ }
+ if (Fontsize != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fontsize);
+ }
+ if (Color != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Color);
+ }
+ if (MidHash.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(MidHash);
+ }
+ if (Content.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
+ }
+ if (Ctime != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Ctime);
+ }
+ if (Weight != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight);
+ }
+ if (Action.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Action);
+ }
+ if (Pool != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Pool);
+ }
+ if (IdStr.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(IdStr);
+ }
+ if (Attr != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attr);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmakuElem other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Id != 0L) {
+ Id = other.Id;
+ }
+ if (other.Progress != 0) {
+ Progress = other.Progress;
+ }
+ if (other.Mode != 0) {
+ Mode = other.Mode;
+ }
+ if (other.Fontsize != 0) {
+ Fontsize = other.Fontsize;
+ }
+ if (other.Color != 0) {
+ Color = other.Color;
+ }
+ if (other.MidHash.Length != 0) {
+ MidHash = other.MidHash;
+ }
+ if (other.Content.Length != 0) {
+ Content = other.Content;
+ }
+ if (other.Ctime != 0L) {
+ Ctime = other.Ctime;
+ }
+ if (other.Weight != 0) {
+ Weight = other.Weight;
+ }
+ if (other.Action.Length != 0) {
+ Action = other.Action;
+ }
+ if (other.Pool != 0) {
+ Pool = other.Pool;
+ }
+ if (other.IdStr.Length != 0) {
+ IdStr = other.IdStr;
+ }
+ if (other.Attr != 0) {
+ Attr = other.Attr;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Id = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Mode = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ Fontsize = input.ReadInt32();
+ break;
+ }
+ case 40: {
+ Color = input.ReadUInt32();
+ break;
+ }
+ case 50: {
+ MidHash = input.ReadString();
+ break;
+ }
+ case 58: {
+ Content = input.ReadString();
+ break;
+ }
+ case 64: {
+ Ctime = input.ReadInt64();
+ break;
+ }
+ case 72: {
+ Weight = input.ReadInt32();
+ break;
+ }
+ case 82: {
+ Action = input.ReadString();
+ break;
+ }
+ case 88: {
+ Pool = input.ReadInt32();
+ break;
+ }
+ case 98: {
+ IdStr = input.ReadString();
+ break;
+ }
+ case 104: {
+ Attr = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Id = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Mode = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ Fontsize = input.ReadInt32();
+ break;
+ }
+ case 40: {
+ Color = input.ReadUInt32();
+ break;
+ }
+ case 50: {
+ MidHash = input.ReadString();
+ break;
+ }
+ case 58: {
+ Content = input.ReadString();
+ break;
+ }
+ case 64: {
+ Ctime = input.ReadInt64();
+ break;
+ }
+ case 72: {
+ Weight = input.ReadInt32();
+ break;
+ }
+ case 82: {
+ Action = input.ReadString();
+ break;
+ }
+ case 88: {
+ Pool = input.ReadInt32();
+ break;
+ }
+ case 98: {
+ IdStr = input.ReadString();
+ break;
+ }
+ case 104: {
+ Attr = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 修改弹幕配置-请求
+ ///
+ public sealed partial class DmPlayerConfigReq : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmPlayerConfigReq());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[17]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmPlayerConfigReq() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmPlayerConfigReq(DmPlayerConfigReq other) : this() {
+ ts_ = other.ts_;
+ switch_ = other.switch_ != null ? other.switch_.Clone() : null;
+ switchSave_ = other.switchSave_ != null ? other.switchSave_.Clone() : null;
+ useDefaultConfig_ = other.useDefaultConfig_ != null ? other.useDefaultConfig_.Clone() : null;
+ aiRecommendedSwitch_ = other.aiRecommendedSwitch_ != null ? other.aiRecommendedSwitch_.Clone() : null;
+ aiRecommendedLevel_ = other.aiRecommendedLevel_ != null ? other.aiRecommendedLevel_.Clone() : null;
+ blocktop_ = other.blocktop_ != null ? other.blocktop_.Clone() : null;
+ blockscroll_ = other.blockscroll_ != null ? other.blockscroll_.Clone() : null;
+ blockbottom_ = other.blockbottom_ != null ? other.blockbottom_.Clone() : null;
+ blockcolorful_ = other.blockcolorful_ != null ? other.blockcolorful_.Clone() : null;
+ blockrepeat_ = other.blockrepeat_ != null ? other.blockrepeat_.Clone() : null;
+ blockspecial_ = other.blockspecial_ != null ? other.blockspecial_.Clone() : null;
+ opacity_ = other.opacity_ != null ? other.opacity_.Clone() : null;
+ scalingfactor_ = other.scalingfactor_ != null ? other.scalingfactor_.Clone() : null;
+ domain_ = other.domain_ != null ? other.domain_.Clone() : null;
+ speed_ = other.speed_ != null ? other.speed_.Clone() : null;
+ enableblocklist_ = other.enableblocklist_ != null ? other.enableblocklist_.Clone() : null;
+ inlinePlayerDanmakuSwitch_ = other.inlinePlayerDanmakuSwitch_ != null ? other.inlinePlayerDanmakuSwitch_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DmPlayerConfigReq Clone() {
+ return new DmPlayerConfigReq(this);
+ }
+
+ /// Field number for the "ts" field.
+ public const int TsFieldNumber = 1;
+ private long ts_;
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Ts {
+ get { return ts_; }
+ set {
+ ts_ = value;
+ }
+ }
+
+ /// Field number for the "switch" field.
+ public const int SwitchFieldNumber = 2;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitch switch_;
+ ///
+ /// 是否开启弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitch Switch {
+ get { return switch_; }
+ set {
+ switch_ = value;
+ }
+ }
+
+ /// Field number for the "switch_save" field.
+ public const int SwitchSaveFieldNumber = 3;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitchSave switchSave_;
+ ///
+ /// 是否记录弹幕开关设置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitchSave SwitchSave {
+ get { return switchSave_; }
+ set {
+ switchSave_ = value;
+ }
+ }
+
+ /// Field number for the "use_default_config" field.
+ public const int UseDefaultConfigFieldNumber = 4;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuUseDefaultConfig useDefaultConfig_;
+ ///
+ /// 是否使用推荐弹幕设置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuUseDefaultConfig UseDefaultConfig {
+ get { return useDefaultConfig_; }
+ set {
+ useDefaultConfig_ = value;
+ }
+ }
+
+ /// Field number for the "ai_recommended_switch" field.
+ public const int AiRecommendedSwitchFieldNumber = 5;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedSwitch aiRecommendedSwitch_;
+ ///
+ /// 是否开启智能云屏蔽
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedSwitch AiRecommendedSwitch {
+ get { return aiRecommendedSwitch_; }
+ set {
+ aiRecommendedSwitch_ = value;
+ }
+ }
+
+ /// Field number for the "ai_recommended_level" field.
+ public const int AiRecommendedLevelFieldNumber = 6;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedLevel aiRecommendedLevel_;
+ ///
+ /// 智能云屏蔽等级
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedLevel AiRecommendedLevel {
+ get { return aiRecommendedLevel_; }
+ set {
+ aiRecommendedLevel_ = value;
+ }
+ }
+
+ /// Field number for the "blocktop" field.
+ public const int BlocktopFieldNumber = 7;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlocktop blocktop_;
+ ///
+ /// 是否屏蔽顶端弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlocktop Blocktop {
+ get { return blocktop_; }
+ set {
+ blocktop_ = value;
+ }
+ }
+
+ /// Field number for the "blockscroll" field.
+ public const int BlockscrollFieldNumber = 8;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockscroll blockscroll_;
+ ///
+ /// 是否屏蔽滚动弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockscroll Blockscroll {
+ get { return blockscroll_; }
+ set {
+ blockscroll_ = value;
+ }
+ }
+
+ /// Field number for the "blockbottom" field.
+ public const int BlockbottomFieldNumber = 9;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockbottom blockbottom_;
+ ///
+ /// 是否屏蔽底端弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockbottom Blockbottom {
+ get { return blockbottom_; }
+ set {
+ blockbottom_ = value;
+ }
+ }
+
+ /// Field number for the "blockcolorful" field.
+ public const int BlockcolorfulFieldNumber = 10;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockcolorful blockcolorful_;
+ ///
+ /// 是否屏蔽彩色弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockcolorful Blockcolorful {
+ get { return blockcolorful_; }
+ set {
+ blockcolorful_ = value;
+ }
+ }
+
+ /// Field number for the "blockrepeat" field.
+ public const int BlockrepeatFieldNumber = 11;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockrepeat blockrepeat_;
+ ///
+ /// 是否屏蔽重复弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockrepeat Blockrepeat {
+ get { return blockrepeat_; }
+ set {
+ blockrepeat_ = value;
+ }
+ }
+
+ /// Field number for the "blockspecial" field.
+ public const int BlockspecialFieldNumber = 12;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockspecial blockspecial_;
+ ///
+ /// 是否屏蔽高级弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockspecial Blockspecial {
+ get { return blockspecial_; }
+ set {
+ blockspecial_ = value;
+ }
+ }
+
+ /// Field number for the "opacity" field.
+ public const int OpacityFieldNumber = 13;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuOpacity opacity_;
+ ///
+ /// 弹幕不透明度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuOpacity Opacity {
+ get { return opacity_; }
+ set {
+ opacity_ = value;
+ }
+ }
+
+ /// Field number for the "scalingfactor" field.
+ public const int ScalingfactorFieldNumber = 14;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuScalingfactor scalingfactor_;
+ ///
+ /// 弹幕缩放比例
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuScalingfactor Scalingfactor {
+ get { return scalingfactor_; }
+ set {
+ scalingfactor_ = value;
+ }
+ }
+
+ /// Field number for the "domain" field.
+ public const int DomainFieldNumber = 15;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuDomain domain_;
+ ///
+ /// 弹幕显示区域
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuDomain Domain {
+ get { return domain_; }
+ set {
+ domain_ = value;
+ }
+ }
+
+ /// Field number for the "speed" field.
+ public const int SpeedFieldNumber = 16;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSpeed speed_;
+ ///
+ /// 弹幕速度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSpeed Speed {
+ get { return speed_; }
+ set {
+ speed_ = value;
+ }
+ }
+
+ /// Field number for the "enableblocklist" field.
+ public const int EnableblocklistFieldNumber = 17;
+ private global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuEnableblocklist enableblocklist_;
+ ///
+ /// 是否开启屏蔽列表
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuEnableblocklist Enableblocklist {
+ get { return enableblocklist_; }
+ set {
+ enableblocklist_ = value;
+ }
+ }
+
+ /// Field number for the "inlinePlayerDanmakuSwitch" field.
+ public const int InlinePlayerDanmakuSwitchFieldNumber = 18;
+ private global::Bilibili.Community.Service.Dm.V1.InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch_;
+ ///
+ /// 是否开启弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.InlinePlayerDanmakuSwitch InlinePlayerDanmakuSwitch {
+ get { return inlinePlayerDanmakuSwitch_; }
+ set {
+ inlinePlayerDanmakuSwitch_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DmPlayerConfigReq);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DmPlayerConfigReq other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Ts != other.Ts) return false;
+ if (!object.Equals(Switch, other.Switch)) return false;
+ if (!object.Equals(SwitchSave, other.SwitchSave)) return false;
+ if (!object.Equals(UseDefaultConfig, other.UseDefaultConfig)) return false;
+ if (!object.Equals(AiRecommendedSwitch, other.AiRecommendedSwitch)) return false;
+ if (!object.Equals(AiRecommendedLevel, other.AiRecommendedLevel)) return false;
+ if (!object.Equals(Blocktop, other.Blocktop)) return false;
+ if (!object.Equals(Blockscroll, other.Blockscroll)) return false;
+ if (!object.Equals(Blockbottom, other.Blockbottom)) return false;
+ if (!object.Equals(Blockcolorful, other.Blockcolorful)) return false;
+ if (!object.Equals(Blockrepeat, other.Blockrepeat)) return false;
+ if (!object.Equals(Blockspecial, other.Blockspecial)) return false;
+ if (!object.Equals(Opacity, other.Opacity)) return false;
+ if (!object.Equals(Scalingfactor, other.Scalingfactor)) return false;
+ if (!object.Equals(Domain, other.Domain)) return false;
+ if (!object.Equals(Speed, other.Speed)) return false;
+ if (!object.Equals(Enableblocklist, other.Enableblocklist)) return false;
+ if (!object.Equals(InlinePlayerDanmakuSwitch, other.InlinePlayerDanmakuSwitch)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Ts != 0L) hash ^= Ts.GetHashCode();
+ if (switch_ != null) hash ^= Switch.GetHashCode();
+ if (switchSave_ != null) hash ^= SwitchSave.GetHashCode();
+ if (useDefaultConfig_ != null) hash ^= UseDefaultConfig.GetHashCode();
+ if (aiRecommendedSwitch_ != null) hash ^= AiRecommendedSwitch.GetHashCode();
+ if (aiRecommendedLevel_ != null) hash ^= AiRecommendedLevel.GetHashCode();
+ if (blocktop_ != null) hash ^= Blocktop.GetHashCode();
+ if (blockscroll_ != null) hash ^= Blockscroll.GetHashCode();
+ if (blockbottom_ != null) hash ^= Blockbottom.GetHashCode();
+ if (blockcolorful_ != null) hash ^= Blockcolorful.GetHashCode();
+ if (blockrepeat_ != null) hash ^= Blockrepeat.GetHashCode();
+ if (blockspecial_ != null) hash ^= Blockspecial.GetHashCode();
+ if (opacity_ != null) hash ^= Opacity.GetHashCode();
+ if (scalingfactor_ != null) hash ^= Scalingfactor.GetHashCode();
+ if (domain_ != null) hash ^= Domain.GetHashCode();
+ if (speed_ != null) hash ^= Speed.GetHashCode();
+ if (enableblocklist_ != null) hash ^= Enableblocklist.GetHashCode();
+ if (inlinePlayerDanmakuSwitch_ != null) hash ^= InlinePlayerDanmakuSwitch.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Ts != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Ts);
+ }
+ if (switch_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Switch);
+ }
+ if (switchSave_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(SwitchSave);
+ }
+ if (useDefaultConfig_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(UseDefaultConfig);
+ }
+ if (aiRecommendedSwitch_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(AiRecommendedSwitch);
+ }
+ if (aiRecommendedLevel_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(AiRecommendedLevel);
+ }
+ if (blocktop_ != null) {
+ output.WriteRawTag(58);
+ output.WriteMessage(Blocktop);
+ }
+ if (blockscroll_ != null) {
+ output.WriteRawTag(66);
+ output.WriteMessage(Blockscroll);
+ }
+ if (blockbottom_ != null) {
+ output.WriteRawTag(74);
+ output.WriteMessage(Blockbottom);
+ }
+ if (blockcolorful_ != null) {
+ output.WriteRawTag(82);
+ output.WriteMessage(Blockcolorful);
+ }
+ if (blockrepeat_ != null) {
+ output.WriteRawTag(90);
+ output.WriteMessage(Blockrepeat);
+ }
+ if (blockspecial_ != null) {
+ output.WriteRawTag(98);
+ output.WriteMessage(Blockspecial);
+ }
+ if (opacity_ != null) {
+ output.WriteRawTag(106);
+ output.WriteMessage(Opacity);
+ }
+ if (scalingfactor_ != null) {
+ output.WriteRawTag(114);
+ output.WriteMessage(Scalingfactor);
+ }
+ if (domain_ != null) {
+ output.WriteRawTag(122);
+ output.WriteMessage(Domain);
+ }
+ if (speed_ != null) {
+ output.WriteRawTag(130, 1);
+ output.WriteMessage(Speed);
+ }
+ if (enableblocklist_ != null) {
+ output.WriteRawTag(138, 1);
+ output.WriteMessage(Enableblocklist);
+ }
+ if (inlinePlayerDanmakuSwitch_ != null) {
+ output.WriteRawTag(146, 1);
+ output.WriteMessage(InlinePlayerDanmakuSwitch);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Ts != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Ts);
+ }
+ if (switch_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Switch);
+ }
+ if (switchSave_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(SwitchSave);
+ }
+ if (useDefaultConfig_ != null) {
+ output.WriteRawTag(34);
+ output.WriteMessage(UseDefaultConfig);
+ }
+ if (aiRecommendedSwitch_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(AiRecommendedSwitch);
+ }
+ if (aiRecommendedLevel_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(AiRecommendedLevel);
+ }
+ if (blocktop_ != null) {
+ output.WriteRawTag(58);
+ output.WriteMessage(Blocktop);
+ }
+ if (blockscroll_ != null) {
+ output.WriteRawTag(66);
+ output.WriteMessage(Blockscroll);
+ }
+ if (blockbottom_ != null) {
+ output.WriteRawTag(74);
+ output.WriteMessage(Blockbottom);
+ }
+ if (blockcolorful_ != null) {
+ output.WriteRawTag(82);
+ output.WriteMessage(Blockcolorful);
+ }
+ if (blockrepeat_ != null) {
+ output.WriteRawTag(90);
+ output.WriteMessage(Blockrepeat);
+ }
+ if (blockspecial_ != null) {
+ output.WriteRawTag(98);
+ output.WriteMessage(Blockspecial);
+ }
+ if (opacity_ != null) {
+ output.WriteRawTag(106);
+ output.WriteMessage(Opacity);
+ }
+ if (scalingfactor_ != null) {
+ output.WriteRawTag(114);
+ output.WriteMessage(Scalingfactor);
+ }
+ if (domain_ != null) {
+ output.WriteRawTag(122);
+ output.WriteMessage(Domain);
+ }
+ if (speed_ != null) {
+ output.WriteRawTag(130, 1);
+ output.WriteMessage(Speed);
+ }
+ if (enableblocklist_ != null) {
+ output.WriteRawTag(138, 1);
+ output.WriteMessage(Enableblocklist);
+ }
+ if (inlinePlayerDanmakuSwitch_ != null) {
+ output.WriteRawTag(146, 1);
+ output.WriteMessage(InlinePlayerDanmakuSwitch);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Ts != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Ts);
+ }
+ if (switch_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Switch);
+ }
+ if (switchSave_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(SwitchSave);
+ }
+ if (useDefaultConfig_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(UseDefaultConfig);
+ }
+ if (aiRecommendedSwitch_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(AiRecommendedSwitch);
+ }
+ if (aiRecommendedLevel_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(AiRecommendedLevel);
+ }
+ if (blocktop_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Blocktop);
+ }
+ if (blockscroll_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Blockscroll);
+ }
+ if (blockbottom_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Blockbottom);
+ }
+ if (blockcolorful_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Blockcolorful);
+ }
+ if (blockrepeat_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Blockrepeat);
+ }
+ if (blockspecial_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Blockspecial);
+ }
+ if (opacity_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Opacity);
+ }
+ if (scalingfactor_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scalingfactor);
+ }
+ if (domain_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Domain);
+ }
+ if (speed_ != null) {
+ size += 2 + pb::CodedOutputStream.ComputeMessageSize(Speed);
+ }
+ if (enableblocklist_ != null) {
+ size += 2 + pb::CodedOutputStream.ComputeMessageSize(Enableblocklist);
+ }
+ if (inlinePlayerDanmakuSwitch_ != null) {
+ size += 2 + pb::CodedOutputStream.ComputeMessageSize(InlinePlayerDanmakuSwitch);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DmPlayerConfigReq other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Ts != 0L) {
+ Ts = other.Ts;
+ }
+ if (other.switch_ != null) {
+ if (switch_ == null) {
+ Switch = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitch();
+ }
+ Switch.MergeFrom(other.Switch);
+ }
+ if (other.switchSave_ != null) {
+ if (switchSave_ == null) {
+ SwitchSave = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitchSave();
+ }
+ SwitchSave.MergeFrom(other.SwitchSave);
+ }
+ if (other.useDefaultConfig_ != null) {
+ if (useDefaultConfig_ == null) {
+ UseDefaultConfig = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuUseDefaultConfig();
+ }
+ UseDefaultConfig.MergeFrom(other.UseDefaultConfig);
+ }
+ if (other.aiRecommendedSwitch_ != null) {
+ if (aiRecommendedSwitch_ == null) {
+ AiRecommendedSwitch = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedSwitch();
+ }
+ AiRecommendedSwitch.MergeFrom(other.AiRecommendedSwitch);
+ }
+ if (other.aiRecommendedLevel_ != null) {
+ if (aiRecommendedLevel_ == null) {
+ AiRecommendedLevel = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedLevel();
+ }
+ AiRecommendedLevel.MergeFrom(other.AiRecommendedLevel);
+ }
+ if (other.blocktop_ != null) {
+ if (blocktop_ == null) {
+ Blocktop = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlocktop();
+ }
+ Blocktop.MergeFrom(other.Blocktop);
+ }
+ if (other.blockscroll_ != null) {
+ if (blockscroll_ == null) {
+ Blockscroll = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockscroll();
+ }
+ Blockscroll.MergeFrom(other.Blockscroll);
+ }
+ if (other.blockbottom_ != null) {
+ if (blockbottom_ == null) {
+ Blockbottom = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockbottom();
+ }
+ Blockbottom.MergeFrom(other.Blockbottom);
+ }
+ if (other.blockcolorful_ != null) {
+ if (blockcolorful_ == null) {
+ Blockcolorful = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockcolorful();
+ }
+ Blockcolorful.MergeFrom(other.Blockcolorful);
+ }
+ if (other.blockrepeat_ != null) {
+ if (blockrepeat_ == null) {
+ Blockrepeat = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockrepeat();
+ }
+ Blockrepeat.MergeFrom(other.Blockrepeat);
+ }
+ if (other.blockspecial_ != null) {
+ if (blockspecial_ == null) {
+ Blockspecial = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockspecial();
+ }
+ Blockspecial.MergeFrom(other.Blockspecial);
+ }
+ if (other.opacity_ != null) {
+ if (opacity_ == null) {
+ Opacity = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuOpacity();
+ }
+ Opacity.MergeFrom(other.Opacity);
+ }
+ if (other.scalingfactor_ != null) {
+ if (scalingfactor_ == null) {
+ Scalingfactor = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuScalingfactor();
+ }
+ Scalingfactor.MergeFrom(other.Scalingfactor);
+ }
+ if (other.domain_ != null) {
+ if (domain_ == null) {
+ Domain = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuDomain();
+ }
+ Domain.MergeFrom(other.Domain);
+ }
+ if (other.speed_ != null) {
+ if (speed_ == null) {
+ Speed = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSpeed();
+ }
+ Speed.MergeFrom(other.Speed);
+ }
+ if (other.enableblocklist_ != null) {
+ if (enableblocklist_ == null) {
+ Enableblocklist = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuEnableblocklist();
+ }
+ Enableblocklist.MergeFrom(other.Enableblocklist);
+ }
+ if (other.inlinePlayerDanmakuSwitch_ != null) {
+ if (inlinePlayerDanmakuSwitch_ == null) {
+ InlinePlayerDanmakuSwitch = new global::Bilibili.Community.Service.Dm.V1.InlinePlayerDanmakuSwitch();
+ }
+ InlinePlayerDanmakuSwitch.MergeFrom(other.InlinePlayerDanmakuSwitch);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Ts = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ if (switch_ == null) {
+ Switch = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitch();
+ }
+ input.ReadMessage(Switch);
+ break;
+ }
+ case 26: {
+ if (switchSave_ == null) {
+ SwitchSave = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitchSave();
+ }
+ input.ReadMessage(SwitchSave);
+ break;
+ }
+ case 34: {
+ if (useDefaultConfig_ == null) {
+ UseDefaultConfig = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuUseDefaultConfig();
+ }
+ input.ReadMessage(UseDefaultConfig);
+ break;
+ }
+ case 42: {
+ if (aiRecommendedSwitch_ == null) {
+ AiRecommendedSwitch = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedSwitch();
+ }
+ input.ReadMessage(AiRecommendedSwitch);
+ break;
+ }
+ case 50: {
+ if (aiRecommendedLevel_ == null) {
+ AiRecommendedLevel = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedLevel();
+ }
+ input.ReadMessage(AiRecommendedLevel);
+ break;
+ }
+ case 58: {
+ if (blocktop_ == null) {
+ Blocktop = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlocktop();
+ }
+ input.ReadMessage(Blocktop);
+ break;
+ }
+ case 66: {
+ if (blockscroll_ == null) {
+ Blockscroll = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockscroll();
+ }
+ input.ReadMessage(Blockscroll);
+ break;
+ }
+ case 74: {
+ if (blockbottom_ == null) {
+ Blockbottom = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockbottom();
+ }
+ input.ReadMessage(Blockbottom);
+ break;
+ }
+ case 82: {
+ if (blockcolorful_ == null) {
+ Blockcolorful = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockcolorful();
+ }
+ input.ReadMessage(Blockcolorful);
+ break;
+ }
+ case 90: {
+ if (blockrepeat_ == null) {
+ Blockrepeat = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockrepeat();
+ }
+ input.ReadMessage(Blockrepeat);
+ break;
+ }
+ case 98: {
+ if (blockspecial_ == null) {
+ Blockspecial = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockspecial();
+ }
+ input.ReadMessage(Blockspecial);
+ break;
+ }
+ case 106: {
+ if (opacity_ == null) {
+ Opacity = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuOpacity();
+ }
+ input.ReadMessage(Opacity);
+ break;
+ }
+ case 114: {
+ if (scalingfactor_ == null) {
+ Scalingfactor = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuScalingfactor();
+ }
+ input.ReadMessage(Scalingfactor);
+ break;
+ }
+ case 122: {
+ if (domain_ == null) {
+ Domain = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuDomain();
+ }
+ input.ReadMessage(Domain);
+ break;
+ }
+ case 130: {
+ if (speed_ == null) {
+ Speed = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSpeed();
+ }
+ input.ReadMessage(Speed);
+ break;
+ }
+ case 138: {
+ if (enableblocklist_ == null) {
+ Enableblocklist = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuEnableblocklist();
+ }
+ input.ReadMessage(Enableblocklist);
+ break;
+ }
+ case 146: {
+ if (inlinePlayerDanmakuSwitch_ == null) {
+ InlinePlayerDanmakuSwitch = new global::Bilibili.Community.Service.Dm.V1.InlinePlayerDanmakuSwitch();
+ }
+ input.ReadMessage(InlinePlayerDanmakuSwitch);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Ts = input.ReadInt64();
+ break;
+ }
+ case 18: {
+ if (switch_ == null) {
+ Switch = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitch();
+ }
+ input.ReadMessage(Switch);
+ break;
+ }
+ case 26: {
+ if (switchSave_ == null) {
+ SwitchSave = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSwitchSave();
+ }
+ input.ReadMessage(SwitchSave);
+ break;
+ }
+ case 34: {
+ if (useDefaultConfig_ == null) {
+ UseDefaultConfig = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuUseDefaultConfig();
+ }
+ input.ReadMessage(UseDefaultConfig);
+ break;
+ }
+ case 42: {
+ if (aiRecommendedSwitch_ == null) {
+ AiRecommendedSwitch = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedSwitch();
+ }
+ input.ReadMessage(AiRecommendedSwitch);
+ break;
+ }
+ case 50: {
+ if (aiRecommendedLevel_ == null) {
+ AiRecommendedLevel = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuAiRecommendedLevel();
+ }
+ input.ReadMessage(AiRecommendedLevel);
+ break;
+ }
+ case 58: {
+ if (blocktop_ == null) {
+ Blocktop = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlocktop();
+ }
+ input.ReadMessage(Blocktop);
+ break;
+ }
+ case 66: {
+ if (blockscroll_ == null) {
+ Blockscroll = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockscroll();
+ }
+ input.ReadMessage(Blockscroll);
+ break;
+ }
+ case 74: {
+ if (blockbottom_ == null) {
+ Blockbottom = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockbottom();
+ }
+ input.ReadMessage(Blockbottom);
+ break;
+ }
+ case 82: {
+ if (blockcolorful_ == null) {
+ Blockcolorful = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockcolorful();
+ }
+ input.ReadMessage(Blockcolorful);
+ break;
+ }
+ case 90: {
+ if (blockrepeat_ == null) {
+ Blockrepeat = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockrepeat();
+ }
+ input.ReadMessage(Blockrepeat);
+ break;
+ }
+ case 98: {
+ if (blockspecial_ == null) {
+ Blockspecial = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuBlockspecial();
+ }
+ input.ReadMessage(Blockspecial);
+ break;
+ }
+ case 106: {
+ if (opacity_ == null) {
+ Opacity = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuOpacity();
+ }
+ input.ReadMessage(Opacity);
+ break;
+ }
+ case 114: {
+ if (scalingfactor_ == null) {
+ Scalingfactor = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuScalingfactor();
+ }
+ input.ReadMessage(Scalingfactor);
+ break;
+ }
+ case 122: {
+ if (domain_ == null) {
+ Domain = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuDomain();
+ }
+ input.ReadMessage(Domain);
+ break;
+ }
+ case 130: {
+ if (speed_ == null) {
+ Speed = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuSpeed();
+ }
+ input.ReadMessage(Speed);
+ break;
+ }
+ case 138: {
+ if (enableblocklist_ == null) {
+ Enableblocklist = new global::Bilibili.Community.Service.Dm.V1.PlayerDanmakuEnableblocklist();
+ }
+ input.ReadMessage(Enableblocklist);
+ break;
+ }
+ case 146: {
+ if (inlinePlayerDanmakuSwitch_ == null) {
+ InlinePlayerDanmakuSwitch = new global::Bilibili.Community.Service.Dm.V1.InlinePlayerDanmakuSwitch();
+ }
+ input.ReadMessage(InlinePlayerDanmakuSwitch);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 修改弹幕配置-响应
+ ///
+ public sealed partial class Response : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Response());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[18]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public Response() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public Response(Response other) : this() {
+ code_ = other.code_;
+ message_ = other.message_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public Response Clone() {
+ return new Response(this);
+ }
+
+ /// Field number for the "code" field.
+ public const int CodeFieldNumber = 1;
+ private int code_;
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Code {
+ get { return code_; }
+ set {
+ code_ = value;
+ }
+ }
+
+ /// Field number for the "message" field.
+ public const int MessageFieldNumber = 2;
+ private string message_ = "";
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Message {
+ get { return message_; }
+ set {
+ message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as Response);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(Response other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Code != other.Code) return false;
+ if (Message != other.Message) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Code != 0) hash ^= Code.GetHashCode();
+ if (Message.Length != 0) hash ^= Message.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Code != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(Code);
+ }
+ if (Message.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Message);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Code != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(Code);
+ }
+ if (Message.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Message);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Code != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
+ }
+ if (Message.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(Response other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Code != 0) {
+ Code = other.Code;
+ }
+ if (other.Message.Length != 0) {
+ Message = other.Message;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Code = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ Message = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Code = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ Message = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕ai云屏蔽条目
+ ///
+ public sealed partial class DanmakuFlag : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmakuFlag());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[19]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuFlag() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuFlag(DanmakuFlag other) : this() {
+ dmid_ = other.dmid_;
+ flag_ = other.flag_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuFlag Clone() {
+ return new DanmakuFlag(this);
+ }
+
+ /// Field number for the "dmid" field.
+ public const int DmidFieldNumber = 1;
+ private long dmid_;
+ ///
+ /// 弹幕dmid
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Dmid {
+ get { return dmid_; }
+ set {
+ dmid_ = value;
+ }
+ }
+
+ /// Field number for the "flag" field.
+ public const int FlagFieldNumber = 2;
+ private uint flag_;
+ ///
+ /// 评分
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Flag {
+ get { return flag_; }
+ set {
+ flag_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmakuFlag);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmakuFlag other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Dmid != other.Dmid) return false;
+ if (Flag != other.Flag) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Dmid != 0L) hash ^= Dmid.GetHashCode();
+ if (Flag != 0) hash ^= Flag.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Dmid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Dmid);
+ }
+ if (Flag != 0) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Flag);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Dmid != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(Dmid);
+ }
+ if (Flag != 0) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Flag);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Dmid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Dmid);
+ }
+ if (Flag != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Flag);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmakuFlag other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Dmid != 0L) {
+ Dmid = other.Dmid;
+ }
+ if (other.Flag != 0) {
+ Flag = other.Flag;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Dmid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Flag = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Dmid = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ Flag = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 云屏蔽配置信息
+ ///
+ public sealed partial class DanmakuFlagConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmakuFlagConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[20]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuFlagConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuFlagConfig(DanmakuFlagConfig other) : this() {
+ recFlag_ = other.recFlag_;
+ recText_ = other.recText_;
+ recSwitch_ = other.recSwitch_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuFlagConfig Clone() {
+ return new DanmakuFlagConfig(this);
+ }
+
+ /// Field number for the "rec_flag" field.
+ public const int RecFlagFieldNumber = 1;
+ private int recFlag_;
+ ///
+ /// 云屏蔽等级
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int RecFlag {
+ get { return recFlag_; }
+ set {
+ recFlag_ = value;
+ }
+ }
+
+ /// Field number for the "rec_text" field.
+ public const int RecTextFieldNumber = 2;
+ private string recText_ = "";
+ ///
+ /// 云屏蔽文案
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string RecText {
+ get { return recText_; }
+ set {
+ recText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "rec_switch" field.
+ public const int RecSwitchFieldNumber = 3;
+ private int recSwitch_;
+ ///
+ /// 云屏蔽开关
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int RecSwitch {
+ get { return recSwitch_; }
+ set {
+ recSwitch_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmakuFlagConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmakuFlagConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (RecFlag != other.RecFlag) return false;
+ if (RecText != other.RecText) return false;
+ if (RecSwitch != other.RecSwitch) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (RecFlag != 0) hash ^= RecFlag.GetHashCode();
+ if (RecText.Length != 0) hash ^= RecText.GetHashCode();
+ if (RecSwitch != 0) hash ^= RecSwitch.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (RecFlag != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(RecFlag);
+ }
+ if (RecText.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(RecText);
+ }
+ if (RecSwitch != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(RecSwitch);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (RecFlag != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(RecFlag);
+ }
+ if (RecText.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(RecText);
+ }
+ if (RecSwitch != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(RecSwitch);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (RecFlag != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecFlag);
+ }
+ if (RecText.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(RecText);
+ }
+ if (RecSwitch != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecSwitch);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmakuFlagConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.RecFlag != 0) {
+ RecFlag = other.RecFlag;
+ }
+ if (other.RecText.Length != 0) {
+ RecText = other.RecText;
+ }
+ if (other.RecSwitch != 0) {
+ RecSwitch = other.RecSwitch;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ RecFlag = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ RecText = input.ReadString();
+ break;
+ }
+ case 24: {
+ RecSwitch = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ RecFlag = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ RecText = input.ReadString();
+ break;
+ }
+ case 24: {
+ RecSwitch = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕ai云屏蔽列表
+ ///
+ public sealed partial class DanmakuAIFlag : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmakuAIFlag());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[21]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuAIFlag() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuAIFlag(DanmakuAIFlag other) : this() {
+ dmFlags_ = other.dmFlags_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmakuAIFlag Clone() {
+ return new DanmakuAIFlag(this);
+ }
+
+ /// Field number for the "dm_flags" field.
+ public const int DmFlagsFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_dmFlags_codec
+ = pb::FieldCodec.ForMessage(10, global::Bilibili.Community.Service.Dm.V1.DanmakuFlag.Parser);
+ private readonly pbc::RepeatedField dmFlags_ = new pbc::RepeatedField();
+ ///
+ /// 弹幕ai云屏蔽条目
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField DmFlags {
+ get { return dmFlags_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmakuAIFlag);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmakuAIFlag other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!dmFlags_.Equals(other.dmFlags_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= dmFlags_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ dmFlags_.WriteTo(output, _repeated_dmFlags_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ dmFlags_.WriteTo(ref output, _repeated_dmFlags_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += dmFlags_.CalculateSize(_repeated_dmFlags_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmakuAIFlag other) {
+ if (other == null) {
+ return;
+ }
+ dmFlags_.Add(other.dmFlags_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ dmFlags_.AddEntriesFrom(input, _repeated_dmFlags_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ dmFlags_.AddEntriesFrom(ref input, _repeated_dmFlags_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕配置信息
+ ///
+ public sealed partial class DanmuPlayerViewConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmuPlayerViewConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[22]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerViewConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerViewConfig(DanmuPlayerViewConfig other) : this() {
+ danmukuDefaultPlayerConfig_ = other.danmukuDefaultPlayerConfig_ != null ? other.danmukuDefaultPlayerConfig_.Clone() : null;
+ danmukuPlayerConfig_ = other.danmukuPlayerConfig_ != null ? other.danmukuPlayerConfig_.Clone() : null;
+ danmukuPlayerDynamicConfig_ = other.danmukuPlayerDynamicConfig_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerViewConfig Clone() {
+ return new DanmuPlayerViewConfig(this);
+ }
+
+ /// Field number for the "danmuku_default_player_config" field.
+ public const int DanmukuDefaultPlayerConfigFieldNumber = 1;
+ private global::Bilibili.Community.Service.Dm.V1.DanmuDefaultPlayerConfig danmukuDefaultPlayerConfig_;
+ ///
+ /// 弹幕默认配置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.DanmuDefaultPlayerConfig DanmukuDefaultPlayerConfig {
+ get { return danmukuDefaultPlayerConfig_; }
+ set {
+ danmukuDefaultPlayerConfig_ = value;
+ }
+ }
+
+ /// Field number for the "danmuku_player_config" field.
+ public const int DanmukuPlayerConfigFieldNumber = 2;
+ private global::Bilibili.Community.Service.Dm.V1.DanmuPlayerConfig danmukuPlayerConfig_;
+ ///
+ /// 弹幕用户配置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Bilibili.Community.Service.Dm.V1.DanmuPlayerConfig DanmukuPlayerConfig {
+ get { return danmukuPlayerConfig_; }
+ set {
+ danmukuPlayerConfig_ = value;
+ }
+ }
+
+ /// Field number for the "danmuku_player_dynamic_config" field.
+ public const int DanmukuPlayerDynamicConfigFieldNumber = 3;
+ private static readonly pb::FieldCodec _repeated_danmukuPlayerDynamicConfig_codec
+ = pb::FieldCodec.ForMessage(26, global::Bilibili.Community.Service.Dm.V1.DanmuPlayerDynamicConfig.Parser);
+ private readonly pbc::RepeatedField danmukuPlayerDynamicConfig_ = new pbc::RepeatedField();
+ ///
+ /// 弹幕显示区域自动配置列表
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField DanmukuPlayerDynamicConfig {
+ get { return danmukuPlayerDynamicConfig_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmuPlayerViewConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmuPlayerViewConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(DanmukuDefaultPlayerConfig, other.DanmukuDefaultPlayerConfig)) return false;
+ if (!object.Equals(DanmukuPlayerConfig, other.DanmukuPlayerConfig)) return false;
+ if(!danmukuPlayerDynamicConfig_.Equals(other.danmukuPlayerDynamicConfig_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (danmukuDefaultPlayerConfig_ != null) hash ^= DanmukuDefaultPlayerConfig.GetHashCode();
+ if (danmukuPlayerConfig_ != null) hash ^= DanmukuPlayerConfig.GetHashCode();
+ hash ^= danmukuPlayerDynamicConfig_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (danmukuDefaultPlayerConfig_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(DanmukuDefaultPlayerConfig);
+ }
+ if (danmukuPlayerConfig_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(DanmukuPlayerConfig);
+ }
+ danmukuPlayerDynamicConfig_.WriteTo(output, _repeated_danmukuPlayerDynamicConfig_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (danmukuDefaultPlayerConfig_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(DanmukuDefaultPlayerConfig);
+ }
+ if (danmukuPlayerConfig_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(DanmukuPlayerConfig);
+ }
+ danmukuPlayerDynamicConfig_.WriteTo(ref output, _repeated_danmukuPlayerDynamicConfig_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (danmukuDefaultPlayerConfig_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(DanmukuDefaultPlayerConfig);
+ }
+ if (danmukuPlayerConfig_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(DanmukuPlayerConfig);
+ }
+ size += danmukuPlayerDynamicConfig_.CalculateSize(_repeated_danmukuPlayerDynamicConfig_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmuPlayerViewConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.danmukuDefaultPlayerConfig_ != null) {
+ if (danmukuDefaultPlayerConfig_ == null) {
+ DanmukuDefaultPlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuDefaultPlayerConfig();
+ }
+ DanmukuDefaultPlayerConfig.MergeFrom(other.DanmukuDefaultPlayerConfig);
+ }
+ if (other.danmukuPlayerConfig_ != null) {
+ if (danmukuPlayerConfig_ == null) {
+ DanmukuPlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuPlayerConfig();
+ }
+ DanmukuPlayerConfig.MergeFrom(other.DanmukuPlayerConfig);
+ }
+ danmukuPlayerDynamicConfig_.Add(other.danmukuPlayerDynamicConfig_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (danmukuDefaultPlayerConfig_ == null) {
+ DanmukuDefaultPlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuDefaultPlayerConfig();
+ }
+ input.ReadMessage(DanmukuDefaultPlayerConfig);
+ break;
+ }
+ case 18: {
+ if (danmukuPlayerConfig_ == null) {
+ DanmukuPlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuPlayerConfig();
+ }
+ input.ReadMessage(DanmukuPlayerConfig);
+ break;
+ }
+ case 26: {
+ danmukuPlayerDynamicConfig_.AddEntriesFrom(input, _repeated_danmukuPlayerDynamicConfig_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (danmukuDefaultPlayerConfig_ == null) {
+ DanmukuDefaultPlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuDefaultPlayerConfig();
+ }
+ input.ReadMessage(DanmukuDefaultPlayerConfig);
+ break;
+ }
+ case 18: {
+ if (danmukuPlayerConfig_ == null) {
+ DanmukuPlayerConfig = new global::Bilibili.Community.Service.Dm.V1.DanmuPlayerConfig();
+ }
+ input.ReadMessage(DanmukuPlayerConfig);
+ break;
+ }
+ case 26: {
+ danmukuPlayerDynamicConfig_.AddEntriesFrom(ref input, _repeated_danmukuPlayerDynamicConfig_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕默认配置
+ ///
+ public sealed partial class DanmuDefaultPlayerConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmuDefaultPlayerConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[23]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuDefaultPlayerConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuDefaultPlayerConfig(DanmuDefaultPlayerConfig other) : this() {
+ playerDanmakuUseDefaultConfig_ = other.playerDanmakuUseDefaultConfig_;
+ playerDanmakuAiRecommendedSwitch_ = other.playerDanmakuAiRecommendedSwitch_;
+ playerDanmakuAiRecommendedLevel_ = other.playerDanmakuAiRecommendedLevel_;
+ playerDanmakuBlocktop_ = other.playerDanmakuBlocktop_;
+ playerDanmakuBlockscroll_ = other.playerDanmakuBlockscroll_;
+ playerDanmakuBlockbottom_ = other.playerDanmakuBlockbottom_;
+ playerDanmakuBlockcolorful_ = other.playerDanmakuBlockcolorful_;
+ playerDanmakuBlockrepeat_ = other.playerDanmakuBlockrepeat_;
+ playerDanmakuBlockspecial_ = other.playerDanmakuBlockspecial_;
+ playerDanmakuOpacity_ = other.playerDanmakuOpacity_;
+ playerDanmakuScalingfactor_ = other.playerDanmakuScalingfactor_;
+ playerDanmakuDomain_ = other.playerDanmakuDomain_;
+ playerDanmakuSpeed_ = other.playerDanmakuSpeed_;
+ inlinePlayerDanmakuSwitch_ = other.inlinePlayerDanmakuSwitch_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuDefaultPlayerConfig Clone() {
+ return new DanmuDefaultPlayerConfig(this);
+ }
+
+ /// Field number for the "player_danmaku_use_default_config" field.
+ public const int PlayerDanmakuUseDefaultConfigFieldNumber = 1;
+ private bool playerDanmakuUseDefaultConfig_;
+ ///
+ /// 是否使用推荐弹幕设置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuUseDefaultConfig {
+ get { return playerDanmakuUseDefaultConfig_; }
+ set {
+ playerDanmakuUseDefaultConfig_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_ai_recommended_switch" field.
+ public const int PlayerDanmakuAiRecommendedSwitchFieldNumber = 4;
+ private bool playerDanmakuAiRecommendedSwitch_;
+ ///
+ /// 是否开启智能云屏蔽
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuAiRecommendedSwitch {
+ get { return playerDanmakuAiRecommendedSwitch_; }
+ set {
+ playerDanmakuAiRecommendedSwitch_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_ai_recommended_level" field.
+ public const int PlayerDanmakuAiRecommendedLevelFieldNumber = 5;
+ private int playerDanmakuAiRecommendedLevel_;
+ ///
+ /// 智能云屏蔽等级
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int PlayerDanmakuAiRecommendedLevel {
+ get { return playerDanmakuAiRecommendedLevel_; }
+ set {
+ playerDanmakuAiRecommendedLevel_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blocktop" field.
+ public const int PlayerDanmakuBlocktopFieldNumber = 6;
+ private bool playerDanmakuBlocktop_;
+ ///
+ /// 是否屏蔽顶端弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlocktop {
+ get { return playerDanmakuBlocktop_; }
+ set {
+ playerDanmakuBlocktop_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockscroll" field.
+ public const int PlayerDanmakuBlockscrollFieldNumber = 7;
+ private bool playerDanmakuBlockscroll_;
+ ///
+ /// 是否屏蔽滚动弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockscroll {
+ get { return playerDanmakuBlockscroll_; }
+ set {
+ playerDanmakuBlockscroll_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockbottom" field.
+ public const int PlayerDanmakuBlockbottomFieldNumber = 8;
+ private bool playerDanmakuBlockbottom_;
+ ///
+ /// 是否屏蔽底端弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockbottom {
+ get { return playerDanmakuBlockbottom_; }
+ set {
+ playerDanmakuBlockbottom_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockcolorful" field.
+ public const int PlayerDanmakuBlockcolorfulFieldNumber = 9;
+ private bool playerDanmakuBlockcolorful_;
+ ///
+ /// 是否屏蔽彩色弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockcolorful {
+ get { return playerDanmakuBlockcolorful_; }
+ set {
+ playerDanmakuBlockcolorful_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockrepeat" field.
+ public const int PlayerDanmakuBlockrepeatFieldNumber = 10;
+ private bool playerDanmakuBlockrepeat_;
+ ///
+ /// 是否屏蔽重复弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockrepeat {
+ get { return playerDanmakuBlockrepeat_; }
+ set {
+ playerDanmakuBlockrepeat_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockspecial" field.
+ public const int PlayerDanmakuBlockspecialFieldNumber = 11;
+ private bool playerDanmakuBlockspecial_;
+ ///
+ /// 是否屏蔽高级弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockspecial {
+ get { return playerDanmakuBlockspecial_; }
+ set {
+ playerDanmakuBlockspecial_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_opacity" field.
+ public const int PlayerDanmakuOpacityFieldNumber = 12;
+ private float playerDanmakuOpacity_;
+ ///
+ /// 弹幕不透明度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float PlayerDanmakuOpacity {
+ get { return playerDanmakuOpacity_; }
+ set {
+ playerDanmakuOpacity_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_scalingfactor" field.
+ public const int PlayerDanmakuScalingfactorFieldNumber = 13;
+ private float playerDanmakuScalingfactor_;
+ ///
+ /// 弹幕缩放比例
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float PlayerDanmakuScalingfactor {
+ get { return playerDanmakuScalingfactor_; }
+ set {
+ playerDanmakuScalingfactor_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_domain" field.
+ public const int PlayerDanmakuDomainFieldNumber = 14;
+ private float playerDanmakuDomain_;
+ ///
+ /// 弹幕显示区域
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float PlayerDanmakuDomain {
+ get { return playerDanmakuDomain_; }
+ set {
+ playerDanmakuDomain_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_speed" field.
+ public const int PlayerDanmakuSpeedFieldNumber = 15;
+ private int playerDanmakuSpeed_;
+ ///
+ /// 弹幕速度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int PlayerDanmakuSpeed {
+ get { return playerDanmakuSpeed_; }
+ set {
+ playerDanmakuSpeed_ = value;
+ }
+ }
+
+ /// Field number for the "inline_player_danmaku_switch" field.
+ public const int InlinePlayerDanmakuSwitchFieldNumber = 16;
+ private bool inlinePlayerDanmakuSwitch_;
+ ///
+ /// 是否开启弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool InlinePlayerDanmakuSwitch {
+ get { return inlinePlayerDanmakuSwitch_; }
+ set {
+ inlinePlayerDanmakuSwitch_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmuDefaultPlayerConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmuDefaultPlayerConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerDanmakuUseDefaultConfig != other.PlayerDanmakuUseDefaultConfig) return false;
+ if (PlayerDanmakuAiRecommendedSwitch != other.PlayerDanmakuAiRecommendedSwitch) return false;
+ if (PlayerDanmakuAiRecommendedLevel != other.PlayerDanmakuAiRecommendedLevel) return false;
+ if (PlayerDanmakuBlocktop != other.PlayerDanmakuBlocktop) return false;
+ if (PlayerDanmakuBlockscroll != other.PlayerDanmakuBlockscroll) return false;
+ if (PlayerDanmakuBlockbottom != other.PlayerDanmakuBlockbottom) return false;
+ if (PlayerDanmakuBlockcolorful != other.PlayerDanmakuBlockcolorful) return false;
+ if (PlayerDanmakuBlockrepeat != other.PlayerDanmakuBlockrepeat) return false;
+ if (PlayerDanmakuBlockspecial != other.PlayerDanmakuBlockspecial) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlayerDanmakuOpacity, other.PlayerDanmakuOpacity)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlayerDanmakuScalingfactor, other.PlayerDanmakuScalingfactor)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlayerDanmakuDomain, other.PlayerDanmakuDomain)) return false;
+ if (PlayerDanmakuSpeed != other.PlayerDanmakuSpeed) return false;
+ if (InlinePlayerDanmakuSwitch != other.InlinePlayerDanmakuSwitch) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerDanmakuUseDefaultConfig != false) hash ^= PlayerDanmakuUseDefaultConfig.GetHashCode();
+ if (PlayerDanmakuAiRecommendedSwitch != false) hash ^= PlayerDanmakuAiRecommendedSwitch.GetHashCode();
+ if (PlayerDanmakuAiRecommendedLevel != 0) hash ^= PlayerDanmakuAiRecommendedLevel.GetHashCode();
+ if (PlayerDanmakuBlocktop != false) hash ^= PlayerDanmakuBlocktop.GetHashCode();
+ if (PlayerDanmakuBlockscroll != false) hash ^= PlayerDanmakuBlockscroll.GetHashCode();
+ if (PlayerDanmakuBlockbottom != false) hash ^= PlayerDanmakuBlockbottom.GetHashCode();
+ if (PlayerDanmakuBlockcolorful != false) hash ^= PlayerDanmakuBlockcolorful.GetHashCode();
+ if (PlayerDanmakuBlockrepeat != false) hash ^= PlayerDanmakuBlockrepeat.GetHashCode();
+ if (PlayerDanmakuBlockspecial != false) hash ^= PlayerDanmakuBlockspecial.GetHashCode();
+ if (PlayerDanmakuOpacity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlayerDanmakuOpacity);
+ if (PlayerDanmakuScalingfactor != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlayerDanmakuScalingfactor);
+ if (PlayerDanmakuDomain != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlayerDanmakuDomain);
+ if (PlayerDanmakuSpeed != 0) hash ^= PlayerDanmakuSpeed.GetHashCode();
+ if (InlinePlayerDanmakuSwitch != false) hash ^= InlinePlayerDanmakuSwitch.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerDanmakuUseDefaultConfig != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(PlayerDanmakuUseDefaultConfig);
+ }
+ if (PlayerDanmakuAiRecommendedSwitch != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(PlayerDanmakuAiRecommendedSwitch);
+ }
+ if (PlayerDanmakuAiRecommendedLevel != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(PlayerDanmakuAiRecommendedLevel);
+ }
+ if (PlayerDanmakuBlocktop != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(PlayerDanmakuBlocktop);
+ }
+ if (PlayerDanmakuBlockscroll != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(PlayerDanmakuBlockscroll);
+ }
+ if (PlayerDanmakuBlockbottom != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(PlayerDanmakuBlockbottom);
+ }
+ if (PlayerDanmakuBlockcolorful != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(PlayerDanmakuBlockcolorful);
+ }
+ if (PlayerDanmakuBlockrepeat != false) {
+ output.WriteRawTag(80);
+ output.WriteBool(PlayerDanmakuBlockrepeat);
+ }
+ if (PlayerDanmakuBlockspecial != false) {
+ output.WriteRawTag(88);
+ output.WriteBool(PlayerDanmakuBlockspecial);
+ }
+ if (PlayerDanmakuOpacity != 0F) {
+ output.WriteRawTag(101);
+ output.WriteFloat(PlayerDanmakuOpacity);
+ }
+ if (PlayerDanmakuScalingfactor != 0F) {
+ output.WriteRawTag(109);
+ output.WriteFloat(PlayerDanmakuScalingfactor);
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ output.WriteRawTag(117);
+ output.WriteFloat(PlayerDanmakuDomain);
+ }
+ if (PlayerDanmakuSpeed != 0) {
+ output.WriteRawTag(120);
+ output.WriteInt32(PlayerDanmakuSpeed);
+ }
+ if (InlinePlayerDanmakuSwitch != false) {
+ output.WriteRawTag(128, 1);
+ output.WriteBool(InlinePlayerDanmakuSwitch);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerDanmakuUseDefaultConfig != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(PlayerDanmakuUseDefaultConfig);
+ }
+ if (PlayerDanmakuAiRecommendedSwitch != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(PlayerDanmakuAiRecommendedSwitch);
+ }
+ if (PlayerDanmakuAiRecommendedLevel != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(PlayerDanmakuAiRecommendedLevel);
+ }
+ if (PlayerDanmakuBlocktop != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(PlayerDanmakuBlocktop);
+ }
+ if (PlayerDanmakuBlockscroll != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(PlayerDanmakuBlockscroll);
+ }
+ if (PlayerDanmakuBlockbottom != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(PlayerDanmakuBlockbottom);
+ }
+ if (PlayerDanmakuBlockcolorful != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(PlayerDanmakuBlockcolorful);
+ }
+ if (PlayerDanmakuBlockrepeat != false) {
+ output.WriteRawTag(80);
+ output.WriteBool(PlayerDanmakuBlockrepeat);
+ }
+ if (PlayerDanmakuBlockspecial != false) {
+ output.WriteRawTag(88);
+ output.WriteBool(PlayerDanmakuBlockspecial);
+ }
+ if (PlayerDanmakuOpacity != 0F) {
+ output.WriteRawTag(101);
+ output.WriteFloat(PlayerDanmakuOpacity);
+ }
+ if (PlayerDanmakuScalingfactor != 0F) {
+ output.WriteRawTag(109);
+ output.WriteFloat(PlayerDanmakuScalingfactor);
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ output.WriteRawTag(117);
+ output.WriteFloat(PlayerDanmakuDomain);
+ }
+ if (PlayerDanmakuSpeed != 0) {
+ output.WriteRawTag(120);
+ output.WriteInt32(PlayerDanmakuSpeed);
+ }
+ if (InlinePlayerDanmakuSwitch != false) {
+ output.WriteRawTag(128, 1);
+ output.WriteBool(InlinePlayerDanmakuSwitch);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerDanmakuUseDefaultConfig != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuAiRecommendedSwitch != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuAiRecommendedLevel != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerDanmakuAiRecommendedLevel);
+ }
+ if (PlayerDanmakuBlocktop != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockscroll != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockbottom != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockcolorful != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockrepeat != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockspecial != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuOpacity != 0F) {
+ size += 1 + 4;
+ }
+ if (PlayerDanmakuScalingfactor != 0F) {
+ size += 1 + 4;
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ size += 1 + 4;
+ }
+ if (PlayerDanmakuSpeed != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerDanmakuSpeed);
+ }
+ if (InlinePlayerDanmakuSwitch != false) {
+ size += 2 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmuDefaultPlayerConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerDanmakuUseDefaultConfig != false) {
+ PlayerDanmakuUseDefaultConfig = other.PlayerDanmakuUseDefaultConfig;
+ }
+ if (other.PlayerDanmakuAiRecommendedSwitch != false) {
+ PlayerDanmakuAiRecommendedSwitch = other.PlayerDanmakuAiRecommendedSwitch;
+ }
+ if (other.PlayerDanmakuAiRecommendedLevel != 0) {
+ PlayerDanmakuAiRecommendedLevel = other.PlayerDanmakuAiRecommendedLevel;
+ }
+ if (other.PlayerDanmakuBlocktop != false) {
+ PlayerDanmakuBlocktop = other.PlayerDanmakuBlocktop;
+ }
+ if (other.PlayerDanmakuBlockscroll != false) {
+ PlayerDanmakuBlockscroll = other.PlayerDanmakuBlockscroll;
+ }
+ if (other.PlayerDanmakuBlockbottom != false) {
+ PlayerDanmakuBlockbottom = other.PlayerDanmakuBlockbottom;
+ }
+ if (other.PlayerDanmakuBlockcolorful != false) {
+ PlayerDanmakuBlockcolorful = other.PlayerDanmakuBlockcolorful;
+ }
+ if (other.PlayerDanmakuBlockrepeat != false) {
+ PlayerDanmakuBlockrepeat = other.PlayerDanmakuBlockrepeat;
+ }
+ if (other.PlayerDanmakuBlockspecial != false) {
+ PlayerDanmakuBlockspecial = other.PlayerDanmakuBlockspecial;
+ }
+ if (other.PlayerDanmakuOpacity != 0F) {
+ PlayerDanmakuOpacity = other.PlayerDanmakuOpacity;
+ }
+ if (other.PlayerDanmakuScalingfactor != 0F) {
+ PlayerDanmakuScalingfactor = other.PlayerDanmakuScalingfactor;
+ }
+ if (other.PlayerDanmakuDomain != 0F) {
+ PlayerDanmakuDomain = other.PlayerDanmakuDomain;
+ }
+ if (other.PlayerDanmakuSpeed != 0) {
+ PlayerDanmakuSpeed = other.PlayerDanmakuSpeed;
+ }
+ if (other.InlinePlayerDanmakuSwitch != false) {
+ InlinePlayerDanmakuSwitch = other.InlinePlayerDanmakuSwitch;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerDanmakuUseDefaultConfig = input.ReadBool();
+ break;
+ }
+ case 32: {
+ PlayerDanmakuAiRecommendedSwitch = input.ReadBool();
+ break;
+ }
+ case 40: {
+ PlayerDanmakuAiRecommendedLevel = input.ReadInt32();
+ break;
+ }
+ case 48: {
+ PlayerDanmakuBlocktop = input.ReadBool();
+ break;
+ }
+ case 56: {
+ PlayerDanmakuBlockscroll = input.ReadBool();
+ break;
+ }
+ case 64: {
+ PlayerDanmakuBlockbottom = input.ReadBool();
+ break;
+ }
+ case 72: {
+ PlayerDanmakuBlockcolorful = input.ReadBool();
+ break;
+ }
+ case 80: {
+ PlayerDanmakuBlockrepeat = input.ReadBool();
+ break;
+ }
+ case 88: {
+ PlayerDanmakuBlockspecial = input.ReadBool();
+ break;
+ }
+ case 101: {
+ PlayerDanmakuOpacity = input.ReadFloat();
+ break;
+ }
+ case 109: {
+ PlayerDanmakuScalingfactor = input.ReadFloat();
+ break;
+ }
+ case 117: {
+ PlayerDanmakuDomain = input.ReadFloat();
+ break;
+ }
+ case 120: {
+ PlayerDanmakuSpeed = input.ReadInt32();
+ break;
+ }
+ case 128: {
+ InlinePlayerDanmakuSwitch = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerDanmakuUseDefaultConfig = input.ReadBool();
+ break;
+ }
+ case 32: {
+ PlayerDanmakuAiRecommendedSwitch = input.ReadBool();
+ break;
+ }
+ case 40: {
+ PlayerDanmakuAiRecommendedLevel = input.ReadInt32();
+ break;
+ }
+ case 48: {
+ PlayerDanmakuBlocktop = input.ReadBool();
+ break;
+ }
+ case 56: {
+ PlayerDanmakuBlockscroll = input.ReadBool();
+ break;
+ }
+ case 64: {
+ PlayerDanmakuBlockbottom = input.ReadBool();
+ break;
+ }
+ case 72: {
+ PlayerDanmakuBlockcolorful = input.ReadBool();
+ break;
+ }
+ case 80: {
+ PlayerDanmakuBlockrepeat = input.ReadBool();
+ break;
+ }
+ case 88: {
+ PlayerDanmakuBlockspecial = input.ReadBool();
+ break;
+ }
+ case 101: {
+ PlayerDanmakuOpacity = input.ReadFloat();
+ break;
+ }
+ case 109: {
+ PlayerDanmakuScalingfactor = input.ReadFloat();
+ break;
+ }
+ case 117: {
+ PlayerDanmakuDomain = input.ReadFloat();
+ break;
+ }
+ case 120: {
+ PlayerDanmakuSpeed = input.ReadInt32();
+ break;
+ }
+ case 128: {
+ InlinePlayerDanmakuSwitch = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕配置
+ ///
+ public sealed partial class DanmuPlayerConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmuPlayerConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[24]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerConfig(DanmuPlayerConfig other) : this() {
+ playerDanmakuSwitch_ = other.playerDanmakuSwitch_;
+ playerDanmakuSwitchSave_ = other.playerDanmakuSwitchSave_;
+ playerDanmakuUseDefaultConfig_ = other.playerDanmakuUseDefaultConfig_;
+ playerDanmakuAiRecommendedSwitch_ = other.playerDanmakuAiRecommendedSwitch_;
+ playerDanmakuAiRecommendedLevel_ = other.playerDanmakuAiRecommendedLevel_;
+ playerDanmakuBlocktop_ = other.playerDanmakuBlocktop_;
+ playerDanmakuBlockscroll_ = other.playerDanmakuBlockscroll_;
+ playerDanmakuBlockbottom_ = other.playerDanmakuBlockbottom_;
+ playerDanmakuBlockcolorful_ = other.playerDanmakuBlockcolorful_;
+ playerDanmakuBlockrepeat_ = other.playerDanmakuBlockrepeat_;
+ playerDanmakuBlockspecial_ = other.playerDanmakuBlockspecial_;
+ playerDanmakuOpacity_ = other.playerDanmakuOpacity_;
+ playerDanmakuScalingfactor_ = other.playerDanmakuScalingfactor_;
+ playerDanmakuDomain_ = other.playerDanmakuDomain_;
+ playerDanmakuSpeed_ = other.playerDanmakuSpeed_;
+ playerDanmakuEnableblocklist_ = other.playerDanmakuEnableblocklist_;
+ inlinePlayerDanmakuSwitch_ = other.inlinePlayerDanmakuSwitch_;
+ inlinePlayerDanmakuConfig_ = other.inlinePlayerDanmakuConfig_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerConfig Clone() {
+ return new DanmuPlayerConfig(this);
+ }
+
+ /// Field number for the "player_danmaku_switch" field.
+ public const int PlayerDanmakuSwitchFieldNumber = 1;
+ private bool playerDanmakuSwitch_;
+ ///
+ /// 是否开启弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuSwitch {
+ get { return playerDanmakuSwitch_; }
+ set {
+ playerDanmakuSwitch_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_switch_save" field.
+ public const int PlayerDanmakuSwitchSaveFieldNumber = 2;
+ private bool playerDanmakuSwitchSave_;
+ ///
+ /// 是否记录弹幕开关设置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuSwitchSave {
+ get { return playerDanmakuSwitchSave_; }
+ set {
+ playerDanmakuSwitchSave_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_use_default_config" field.
+ public const int PlayerDanmakuUseDefaultConfigFieldNumber = 3;
+ private bool playerDanmakuUseDefaultConfig_;
+ ///
+ /// 是否使用推荐弹幕设置
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuUseDefaultConfig {
+ get { return playerDanmakuUseDefaultConfig_; }
+ set {
+ playerDanmakuUseDefaultConfig_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_ai_recommended_switch" field.
+ public const int PlayerDanmakuAiRecommendedSwitchFieldNumber = 4;
+ private bool playerDanmakuAiRecommendedSwitch_;
+ ///
+ /// 是否开启智能云屏蔽
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuAiRecommendedSwitch {
+ get { return playerDanmakuAiRecommendedSwitch_; }
+ set {
+ playerDanmakuAiRecommendedSwitch_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_ai_recommended_level" field.
+ public const int PlayerDanmakuAiRecommendedLevelFieldNumber = 5;
+ private int playerDanmakuAiRecommendedLevel_;
+ ///
+ /// 智能云屏蔽等级
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int PlayerDanmakuAiRecommendedLevel {
+ get { return playerDanmakuAiRecommendedLevel_; }
+ set {
+ playerDanmakuAiRecommendedLevel_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blocktop" field.
+ public const int PlayerDanmakuBlocktopFieldNumber = 6;
+ private bool playerDanmakuBlocktop_;
+ ///
+ /// 是否屏蔽顶端弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlocktop {
+ get { return playerDanmakuBlocktop_; }
+ set {
+ playerDanmakuBlocktop_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockscroll" field.
+ public const int PlayerDanmakuBlockscrollFieldNumber = 7;
+ private bool playerDanmakuBlockscroll_;
+ ///
+ /// 是否屏蔽滚动弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockscroll {
+ get { return playerDanmakuBlockscroll_; }
+ set {
+ playerDanmakuBlockscroll_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockbottom" field.
+ public const int PlayerDanmakuBlockbottomFieldNumber = 8;
+ private bool playerDanmakuBlockbottom_;
+ ///
+ /// 是否屏蔽底端弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockbottom {
+ get { return playerDanmakuBlockbottom_; }
+ set {
+ playerDanmakuBlockbottom_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockcolorful" field.
+ public const int PlayerDanmakuBlockcolorfulFieldNumber = 9;
+ private bool playerDanmakuBlockcolorful_;
+ ///
+ /// 是否屏蔽彩色弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockcolorful {
+ get { return playerDanmakuBlockcolorful_; }
+ set {
+ playerDanmakuBlockcolorful_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockrepeat" field.
+ public const int PlayerDanmakuBlockrepeatFieldNumber = 10;
+ private bool playerDanmakuBlockrepeat_;
+ ///
+ /// 是否屏蔽重复弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockrepeat {
+ get { return playerDanmakuBlockrepeat_; }
+ set {
+ playerDanmakuBlockrepeat_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_blockspecial" field.
+ public const int PlayerDanmakuBlockspecialFieldNumber = 11;
+ private bool playerDanmakuBlockspecial_;
+ ///
+ /// 是否屏蔽高级弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuBlockspecial {
+ get { return playerDanmakuBlockspecial_; }
+ set {
+ playerDanmakuBlockspecial_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_opacity" field.
+ public const int PlayerDanmakuOpacityFieldNumber = 12;
+ private float playerDanmakuOpacity_;
+ ///
+ /// 弹幕不透明度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float PlayerDanmakuOpacity {
+ get { return playerDanmakuOpacity_; }
+ set {
+ playerDanmakuOpacity_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_scalingfactor" field.
+ public const int PlayerDanmakuScalingfactorFieldNumber = 13;
+ private float playerDanmakuScalingfactor_;
+ ///
+ /// 弹幕缩放比例
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float PlayerDanmakuScalingfactor {
+ get { return playerDanmakuScalingfactor_; }
+ set {
+ playerDanmakuScalingfactor_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_domain" field.
+ public const int PlayerDanmakuDomainFieldNumber = 14;
+ private float playerDanmakuDomain_;
+ ///
+ /// 弹幕显示区域
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float PlayerDanmakuDomain {
+ get { return playerDanmakuDomain_; }
+ set {
+ playerDanmakuDomain_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_speed" field.
+ public const int PlayerDanmakuSpeedFieldNumber = 15;
+ private int playerDanmakuSpeed_;
+ ///
+ /// 弹幕速度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int PlayerDanmakuSpeed {
+ get { return playerDanmakuSpeed_; }
+ set {
+ playerDanmakuSpeed_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_enableblocklist" field.
+ public const int PlayerDanmakuEnableblocklistFieldNumber = 16;
+ private bool playerDanmakuEnableblocklist_;
+ ///
+ /// 是否开启屏蔽列表
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool PlayerDanmakuEnableblocklist {
+ get { return playerDanmakuEnableblocklist_; }
+ set {
+ playerDanmakuEnableblocklist_ = value;
+ }
+ }
+
+ /// Field number for the "inline_player_danmaku_switch" field.
+ public const int InlinePlayerDanmakuSwitchFieldNumber = 17;
+ private bool inlinePlayerDanmakuSwitch_;
+ ///
+ /// 是否开启弹幕
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool InlinePlayerDanmakuSwitch {
+ get { return inlinePlayerDanmakuSwitch_; }
+ set {
+ inlinePlayerDanmakuSwitch_ = value;
+ }
+ }
+
+ /// Field number for the "inline_player_danmaku_config" field.
+ public const int InlinePlayerDanmakuConfigFieldNumber = 18;
+ private int inlinePlayerDanmakuConfig_;
+ ///
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int InlinePlayerDanmakuConfig {
+ get { return inlinePlayerDanmakuConfig_; }
+ set {
+ inlinePlayerDanmakuConfig_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmuPlayerConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmuPlayerConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerDanmakuSwitch != other.PlayerDanmakuSwitch) return false;
+ if (PlayerDanmakuSwitchSave != other.PlayerDanmakuSwitchSave) return false;
+ if (PlayerDanmakuUseDefaultConfig != other.PlayerDanmakuUseDefaultConfig) return false;
+ if (PlayerDanmakuAiRecommendedSwitch != other.PlayerDanmakuAiRecommendedSwitch) return false;
+ if (PlayerDanmakuAiRecommendedLevel != other.PlayerDanmakuAiRecommendedLevel) return false;
+ if (PlayerDanmakuBlocktop != other.PlayerDanmakuBlocktop) return false;
+ if (PlayerDanmakuBlockscroll != other.PlayerDanmakuBlockscroll) return false;
+ if (PlayerDanmakuBlockbottom != other.PlayerDanmakuBlockbottom) return false;
+ if (PlayerDanmakuBlockcolorful != other.PlayerDanmakuBlockcolorful) return false;
+ if (PlayerDanmakuBlockrepeat != other.PlayerDanmakuBlockrepeat) return false;
+ if (PlayerDanmakuBlockspecial != other.PlayerDanmakuBlockspecial) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlayerDanmakuOpacity, other.PlayerDanmakuOpacity)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlayerDanmakuScalingfactor, other.PlayerDanmakuScalingfactor)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlayerDanmakuDomain, other.PlayerDanmakuDomain)) return false;
+ if (PlayerDanmakuSpeed != other.PlayerDanmakuSpeed) return false;
+ if (PlayerDanmakuEnableblocklist != other.PlayerDanmakuEnableblocklist) return false;
+ if (InlinePlayerDanmakuSwitch != other.InlinePlayerDanmakuSwitch) return false;
+ if (InlinePlayerDanmakuConfig != other.InlinePlayerDanmakuConfig) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerDanmakuSwitch != false) hash ^= PlayerDanmakuSwitch.GetHashCode();
+ if (PlayerDanmakuSwitchSave != false) hash ^= PlayerDanmakuSwitchSave.GetHashCode();
+ if (PlayerDanmakuUseDefaultConfig != false) hash ^= PlayerDanmakuUseDefaultConfig.GetHashCode();
+ if (PlayerDanmakuAiRecommendedSwitch != false) hash ^= PlayerDanmakuAiRecommendedSwitch.GetHashCode();
+ if (PlayerDanmakuAiRecommendedLevel != 0) hash ^= PlayerDanmakuAiRecommendedLevel.GetHashCode();
+ if (PlayerDanmakuBlocktop != false) hash ^= PlayerDanmakuBlocktop.GetHashCode();
+ if (PlayerDanmakuBlockscroll != false) hash ^= PlayerDanmakuBlockscroll.GetHashCode();
+ if (PlayerDanmakuBlockbottom != false) hash ^= PlayerDanmakuBlockbottom.GetHashCode();
+ if (PlayerDanmakuBlockcolorful != false) hash ^= PlayerDanmakuBlockcolorful.GetHashCode();
+ if (PlayerDanmakuBlockrepeat != false) hash ^= PlayerDanmakuBlockrepeat.GetHashCode();
+ if (PlayerDanmakuBlockspecial != false) hash ^= PlayerDanmakuBlockspecial.GetHashCode();
+ if (PlayerDanmakuOpacity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlayerDanmakuOpacity);
+ if (PlayerDanmakuScalingfactor != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlayerDanmakuScalingfactor);
+ if (PlayerDanmakuDomain != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlayerDanmakuDomain);
+ if (PlayerDanmakuSpeed != 0) hash ^= PlayerDanmakuSpeed.GetHashCode();
+ if (PlayerDanmakuEnableblocklist != false) hash ^= PlayerDanmakuEnableblocklist.GetHashCode();
+ if (InlinePlayerDanmakuSwitch != false) hash ^= InlinePlayerDanmakuSwitch.GetHashCode();
+ if (InlinePlayerDanmakuConfig != 0) hash ^= InlinePlayerDanmakuConfig.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerDanmakuSwitch != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(PlayerDanmakuSwitch);
+ }
+ if (PlayerDanmakuSwitchSave != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(PlayerDanmakuSwitchSave);
+ }
+ if (PlayerDanmakuUseDefaultConfig != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(PlayerDanmakuUseDefaultConfig);
+ }
+ if (PlayerDanmakuAiRecommendedSwitch != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(PlayerDanmakuAiRecommendedSwitch);
+ }
+ if (PlayerDanmakuAiRecommendedLevel != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(PlayerDanmakuAiRecommendedLevel);
+ }
+ if (PlayerDanmakuBlocktop != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(PlayerDanmakuBlocktop);
+ }
+ if (PlayerDanmakuBlockscroll != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(PlayerDanmakuBlockscroll);
+ }
+ if (PlayerDanmakuBlockbottom != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(PlayerDanmakuBlockbottom);
+ }
+ if (PlayerDanmakuBlockcolorful != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(PlayerDanmakuBlockcolorful);
+ }
+ if (PlayerDanmakuBlockrepeat != false) {
+ output.WriteRawTag(80);
+ output.WriteBool(PlayerDanmakuBlockrepeat);
+ }
+ if (PlayerDanmakuBlockspecial != false) {
+ output.WriteRawTag(88);
+ output.WriteBool(PlayerDanmakuBlockspecial);
+ }
+ if (PlayerDanmakuOpacity != 0F) {
+ output.WriteRawTag(101);
+ output.WriteFloat(PlayerDanmakuOpacity);
+ }
+ if (PlayerDanmakuScalingfactor != 0F) {
+ output.WriteRawTag(109);
+ output.WriteFloat(PlayerDanmakuScalingfactor);
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ output.WriteRawTag(117);
+ output.WriteFloat(PlayerDanmakuDomain);
+ }
+ if (PlayerDanmakuSpeed != 0) {
+ output.WriteRawTag(120);
+ output.WriteInt32(PlayerDanmakuSpeed);
+ }
+ if (PlayerDanmakuEnableblocklist != false) {
+ output.WriteRawTag(128, 1);
+ output.WriteBool(PlayerDanmakuEnableblocklist);
+ }
+ if (InlinePlayerDanmakuSwitch != false) {
+ output.WriteRawTag(136, 1);
+ output.WriteBool(InlinePlayerDanmakuSwitch);
+ }
+ if (InlinePlayerDanmakuConfig != 0) {
+ output.WriteRawTag(144, 1);
+ output.WriteInt32(InlinePlayerDanmakuConfig);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerDanmakuSwitch != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(PlayerDanmakuSwitch);
+ }
+ if (PlayerDanmakuSwitchSave != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(PlayerDanmakuSwitchSave);
+ }
+ if (PlayerDanmakuUseDefaultConfig != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(PlayerDanmakuUseDefaultConfig);
+ }
+ if (PlayerDanmakuAiRecommendedSwitch != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(PlayerDanmakuAiRecommendedSwitch);
+ }
+ if (PlayerDanmakuAiRecommendedLevel != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(PlayerDanmakuAiRecommendedLevel);
+ }
+ if (PlayerDanmakuBlocktop != false) {
+ output.WriteRawTag(48);
+ output.WriteBool(PlayerDanmakuBlocktop);
+ }
+ if (PlayerDanmakuBlockscroll != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(PlayerDanmakuBlockscroll);
+ }
+ if (PlayerDanmakuBlockbottom != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(PlayerDanmakuBlockbottom);
+ }
+ if (PlayerDanmakuBlockcolorful != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(PlayerDanmakuBlockcolorful);
+ }
+ if (PlayerDanmakuBlockrepeat != false) {
+ output.WriteRawTag(80);
+ output.WriteBool(PlayerDanmakuBlockrepeat);
+ }
+ if (PlayerDanmakuBlockspecial != false) {
+ output.WriteRawTag(88);
+ output.WriteBool(PlayerDanmakuBlockspecial);
+ }
+ if (PlayerDanmakuOpacity != 0F) {
+ output.WriteRawTag(101);
+ output.WriteFloat(PlayerDanmakuOpacity);
+ }
+ if (PlayerDanmakuScalingfactor != 0F) {
+ output.WriteRawTag(109);
+ output.WriteFloat(PlayerDanmakuScalingfactor);
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ output.WriteRawTag(117);
+ output.WriteFloat(PlayerDanmakuDomain);
+ }
+ if (PlayerDanmakuSpeed != 0) {
+ output.WriteRawTag(120);
+ output.WriteInt32(PlayerDanmakuSpeed);
+ }
+ if (PlayerDanmakuEnableblocklist != false) {
+ output.WriteRawTag(128, 1);
+ output.WriteBool(PlayerDanmakuEnableblocklist);
+ }
+ if (InlinePlayerDanmakuSwitch != false) {
+ output.WriteRawTag(136, 1);
+ output.WriteBool(InlinePlayerDanmakuSwitch);
+ }
+ if (InlinePlayerDanmakuConfig != 0) {
+ output.WriteRawTag(144, 1);
+ output.WriteInt32(InlinePlayerDanmakuConfig);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerDanmakuSwitch != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuSwitchSave != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuUseDefaultConfig != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuAiRecommendedSwitch != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuAiRecommendedLevel != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerDanmakuAiRecommendedLevel);
+ }
+ if (PlayerDanmakuBlocktop != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockscroll != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockbottom != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockcolorful != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockrepeat != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuBlockspecial != false) {
+ size += 1 + 1;
+ }
+ if (PlayerDanmakuOpacity != 0F) {
+ size += 1 + 4;
+ }
+ if (PlayerDanmakuScalingfactor != 0F) {
+ size += 1 + 4;
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ size += 1 + 4;
+ }
+ if (PlayerDanmakuSpeed != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerDanmakuSpeed);
+ }
+ if (PlayerDanmakuEnableblocklist != false) {
+ size += 2 + 1;
+ }
+ if (InlinePlayerDanmakuSwitch != false) {
+ size += 2 + 1;
+ }
+ if (InlinePlayerDanmakuConfig != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeInt32Size(InlinePlayerDanmakuConfig);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmuPlayerConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerDanmakuSwitch != false) {
+ PlayerDanmakuSwitch = other.PlayerDanmakuSwitch;
+ }
+ if (other.PlayerDanmakuSwitchSave != false) {
+ PlayerDanmakuSwitchSave = other.PlayerDanmakuSwitchSave;
+ }
+ if (other.PlayerDanmakuUseDefaultConfig != false) {
+ PlayerDanmakuUseDefaultConfig = other.PlayerDanmakuUseDefaultConfig;
+ }
+ if (other.PlayerDanmakuAiRecommendedSwitch != false) {
+ PlayerDanmakuAiRecommendedSwitch = other.PlayerDanmakuAiRecommendedSwitch;
+ }
+ if (other.PlayerDanmakuAiRecommendedLevel != 0) {
+ PlayerDanmakuAiRecommendedLevel = other.PlayerDanmakuAiRecommendedLevel;
+ }
+ if (other.PlayerDanmakuBlocktop != false) {
+ PlayerDanmakuBlocktop = other.PlayerDanmakuBlocktop;
+ }
+ if (other.PlayerDanmakuBlockscroll != false) {
+ PlayerDanmakuBlockscroll = other.PlayerDanmakuBlockscroll;
+ }
+ if (other.PlayerDanmakuBlockbottom != false) {
+ PlayerDanmakuBlockbottom = other.PlayerDanmakuBlockbottom;
+ }
+ if (other.PlayerDanmakuBlockcolorful != false) {
+ PlayerDanmakuBlockcolorful = other.PlayerDanmakuBlockcolorful;
+ }
+ if (other.PlayerDanmakuBlockrepeat != false) {
+ PlayerDanmakuBlockrepeat = other.PlayerDanmakuBlockrepeat;
+ }
+ if (other.PlayerDanmakuBlockspecial != false) {
+ PlayerDanmakuBlockspecial = other.PlayerDanmakuBlockspecial;
+ }
+ if (other.PlayerDanmakuOpacity != 0F) {
+ PlayerDanmakuOpacity = other.PlayerDanmakuOpacity;
+ }
+ if (other.PlayerDanmakuScalingfactor != 0F) {
+ PlayerDanmakuScalingfactor = other.PlayerDanmakuScalingfactor;
+ }
+ if (other.PlayerDanmakuDomain != 0F) {
+ PlayerDanmakuDomain = other.PlayerDanmakuDomain;
+ }
+ if (other.PlayerDanmakuSpeed != 0) {
+ PlayerDanmakuSpeed = other.PlayerDanmakuSpeed;
+ }
+ if (other.PlayerDanmakuEnableblocklist != false) {
+ PlayerDanmakuEnableblocklist = other.PlayerDanmakuEnableblocklist;
+ }
+ if (other.InlinePlayerDanmakuSwitch != false) {
+ InlinePlayerDanmakuSwitch = other.InlinePlayerDanmakuSwitch;
+ }
+ if (other.InlinePlayerDanmakuConfig != 0) {
+ InlinePlayerDanmakuConfig = other.InlinePlayerDanmakuConfig;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerDanmakuSwitch = input.ReadBool();
+ break;
+ }
+ case 16: {
+ PlayerDanmakuSwitchSave = input.ReadBool();
+ break;
+ }
+ case 24: {
+ PlayerDanmakuUseDefaultConfig = input.ReadBool();
+ break;
+ }
+ case 32: {
+ PlayerDanmakuAiRecommendedSwitch = input.ReadBool();
+ break;
+ }
+ case 40: {
+ PlayerDanmakuAiRecommendedLevel = input.ReadInt32();
+ break;
+ }
+ case 48: {
+ PlayerDanmakuBlocktop = input.ReadBool();
+ break;
+ }
+ case 56: {
+ PlayerDanmakuBlockscroll = input.ReadBool();
+ break;
+ }
+ case 64: {
+ PlayerDanmakuBlockbottom = input.ReadBool();
+ break;
+ }
+ case 72: {
+ PlayerDanmakuBlockcolorful = input.ReadBool();
+ break;
+ }
+ case 80: {
+ PlayerDanmakuBlockrepeat = input.ReadBool();
+ break;
+ }
+ case 88: {
+ PlayerDanmakuBlockspecial = input.ReadBool();
+ break;
+ }
+ case 101: {
+ PlayerDanmakuOpacity = input.ReadFloat();
+ break;
+ }
+ case 109: {
+ PlayerDanmakuScalingfactor = input.ReadFloat();
+ break;
+ }
+ case 117: {
+ PlayerDanmakuDomain = input.ReadFloat();
+ break;
+ }
+ case 120: {
+ PlayerDanmakuSpeed = input.ReadInt32();
+ break;
+ }
+ case 128: {
+ PlayerDanmakuEnableblocklist = input.ReadBool();
+ break;
+ }
+ case 136: {
+ InlinePlayerDanmakuSwitch = input.ReadBool();
+ break;
+ }
+ case 144: {
+ InlinePlayerDanmakuConfig = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerDanmakuSwitch = input.ReadBool();
+ break;
+ }
+ case 16: {
+ PlayerDanmakuSwitchSave = input.ReadBool();
+ break;
+ }
+ case 24: {
+ PlayerDanmakuUseDefaultConfig = input.ReadBool();
+ break;
+ }
+ case 32: {
+ PlayerDanmakuAiRecommendedSwitch = input.ReadBool();
+ break;
+ }
+ case 40: {
+ PlayerDanmakuAiRecommendedLevel = input.ReadInt32();
+ break;
+ }
+ case 48: {
+ PlayerDanmakuBlocktop = input.ReadBool();
+ break;
+ }
+ case 56: {
+ PlayerDanmakuBlockscroll = input.ReadBool();
+ break;
+ }
+ case 64: {
+ PlayerDanmakuBlockbottom = input.ReadBool();
+ break;
+ }
+ case 72: {
+ PlayerDanmakuBlockcolorful = input.ReadBool();
+ break;
+ }
+ case 80: {
+ PlayerDanmakuBlockrepeat = input.ReadBool();
+ break;
+ }
+ case 88: {
+ PlayerDanmakuBlockspecial = input.ReadBool();
+ break;
+ }
+ case 101: {
+ PlayerDanmakuOpacity = input.ReadFloat();
+ break;
+ }
+ case 109: {
+ PlayerDanmakuScalingfactor = input.ReadFloat();
+ break;
+ }
+ case 117: {
+ PlayerDanmakuDomain = input.ReadFloat();
+ break;
+ }
+ case 120: {
+ PlayerDanmakuSpeed = input.ReadInt32();
+ break;
+ }
+ case 128: {
+ PlayerDanmakuEnableblocklist = input.ReadBool();
+ break;
+ }
+ case 136: {
+ InlinePlayerDanmakuSwitch = input.ReadBool();
+ break;
+ }
+ case 144: {
+ InlinePlayerDanmakuConfig = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕显示区域自动配置
+ ///
+ public sealed partial class DanmuPlayerDynamicConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DanmuPlayerDynamicConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[25]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerDynamicConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerDynamicConfig(DanmuPlayerDynamicConfig other) : this() {
+ progress_ = other.progress_;
+ playerDanmakuDomain_ = other.playerDanmakuDomain_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DanmuPlayerDynamicConfig Clone() {
+ return new DanmuPlayerDynamicConfig(this);
+ }
+
+ /// Field number for the "progress" field.
+ public const int ProgressFieldNumber = 1;
+ private int progress_;
+ ///
+ /// 时间
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Progress {
+ get { return progress_; }
+ set {
+ progress_ = value;
+ }
+ }
+
+ /// Field number for the "player_danmaku_domain" field.
+ public const int PlayerDanmakuDomainFieldNumber = 2;
+ private float playerDanmakuDomain_;
+ ///
+ /// 弹幕显示区域
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float PlayerDanmakuDomain {
+ get { return playerDanmakuDomain_; }
+ set {
+ playerDanmakuDomain_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DanmuPlayerDynamicConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DanmuPlayerDynamicConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Progress != other.Progress) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PlayerDanmakuDomain, other.PlayerDanmakuDomain)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Progress != 0) hash ^= Progress.GetHashCode();
+ if (PlayerDanmakuDomain != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PlayerDanmakuDomain);
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Progress != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(Progress);
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ output.WriteRawTag(21);
+ output.WriteFloat(PlayerDanmakuDomain);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Progress != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(Progress);
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ output.WriteRawTag(21);
+ output.WriteFloat(PlayerDanmakuDomain);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Progress != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Progress);
+ }
+ if (PlayerDanmakuDomain != 0F) {
+ size += 1 + 4;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DanmuPlayerDynamicConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Progress != 0) {
+ Progress = other.Progress;
+ }
+ if (other.PlayerDanmakuDomain != 0F) {
+ PlayerDanmakuDomain = other.PlayerDanmakuDomain;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ case 21: {
+ PlayerDanmakuDomain = input.ReadFloat();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ case 21: {
+ PlayerDanmakuDomain = input.ReadFloat();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否开启弹幕
+ ///
+ public sealed partial class PlayerDanmakuSwitch : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuSwitch());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[26]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSwitch() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSwitch(PlayerDanmakuSwitch other) : this() {
+ value_ = other.value_;
+ canIgnore_ = other.canIgnore_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSwitch Clone() {
+ return new PlayerDanmakuSwitch(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ /// Field number for the "canIgnore" field.
+ public const int CanIgnoreFieldNumber = 2;
+ private bool canIgnore_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool CanIgnore {
+ get { return canIgnore_; }
+ set {
+ canIgnore_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuSwitch);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuSwitch other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ if (CanIgnore != other.CanIgnore) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (CanIgnore != false) hash ^= CanIgnore.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (CanIgnore != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(CanIgnore);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (CanIgnore != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(CanIgnore);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (CanIgnore != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuSwitch other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ if (other.CanIgnore != false) {
+ CanIgnore = other.CanIgnore;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ case 16: {
+ CanIgnore = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ case 16: {
+ CanIgnore = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否记录弹幕开关设置
+ ///
+ public sealed partial class PlayerDanmakuSwitchSave : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuSwitchSave());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[27]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSwitchSave() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSwitchSave(PlayerDanmakuSwitchSave other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSwitchSave Clone() {
+ return new PlayerDanmakuSwitchSave(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuSwitchSave);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuSwitchSave other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuSwitchSave other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否使用推荐弹幕设置
+ ///
+ public sealed partial class PlayerDanmakuUseDefaultConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuUseDefaultConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[28]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuUseDefaultConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuUseDefaultConfig(PlayerDanmakuUseDefaultConfig other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuUseDefaultConfig Clone() {
+ return new PlayerDanmakuUseDefaultConfig(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuUseDefaultConfig);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuUseDefaultConfig other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuUseDefaultConfig other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否开启智能云屏蔽
+ ///
+ public sealed partial class PlayerDanmakuAiRecommendedSwitch : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuAiRecommendedSwitch());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[29]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuAiRecommendedSwitch() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuAiRecommendedSwitch(PlayerDanmakuAiRecommendedSwitch other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuAiRecommendedSwitch Clone() {
+ return new PlayerDanmakuAiRecommendedSwitch(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuAiRecommendedSwitch);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuAiRecommendedSwitch other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuAiRecommendedSwitch other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 智能云屏蔽等级
+ ///
+ public sealed partial class PlayerDanmakuAiRecommendedLevel : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuAiRecommendedLevel());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[30]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuAiRecommendedLevel() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuAiRecommendedLevel(PlayerDanmakuAiRecommendedLevel other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuAiRecommendedLevel Clone() {
+ return new PlayerDanmakuAiRecommendedLevel(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuAiRecommendedLevel);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuAiRecommendedLevel other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuAiRecommendedLevel other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否屏蔽顶端弹幕
+ ///
+ public sealed partial class PlayerDanmakuBlocktop : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuBlocktop());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[31]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlocktop() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlocktop(PlayerDanmakuBlocktop other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlocktop Clone() {
+ return new PlayerDanmakuBlocktop(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuBlocktop);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuBlocktop other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuBlocktop other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否屏蔽滚动弹幕
+ ///
+ public sealed partial class PlayerDanmakuBlockscroll : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuBlockscroll());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[32]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockscroll() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockscroll(PlayerDanmakuBlockscroll other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockscroll Clone() {
+ return new PlayerDanmakuBlockscroll(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuBlockscroll);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuBlockscroll other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuBlockscroll other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否屏蔽底端弹幕
+ ///
+ public sealed partial class PlayerDanmakuBlockbottom : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuBlockbottom());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[33]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockbottom() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockbottom(PlayerDanmakuBlockbottom other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockbottom Clone() {
+ return new PlayerDanmakuBlockbottom(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuBlockbottom);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuBlockbottom other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuBlockbottom other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否屏蔽彩色弹幕
+ ///
+ public sealed partial class PlayerDanmakuBlockcolorful : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuBlockcolorful());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[34]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockcolorful() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockcolorful(PlayerDanmakuBlockcolorful other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockcolorful Clone() {
+ return new PlayerDanmakuBlockcolorful(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuBlockcolorful);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuBlockcolorful other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuBlockcolorful other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否屏蔽重复弹幕
+ ///
+ public sealed partial class PlayerDanmakuBlockrepeat : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuBlockrepeat());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[35]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockrepeat() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockrepeat(PlayerDanmakuBlockrepeat other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockrepeat Clone() {
+ return new PlayerDanmakuBlockrepeat(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuBlockrepeat);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuBlockrepeat other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuBlockrepeat other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否屏蔽高级弹幕
+ ///
+ public sealed partial class PlayerDanmakuBlockspecial : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuBlockspecial());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[36]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockspecial() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockspecial(PlayerDanmakuBlockspecial other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuBlockspecial Clone() {
+ return new PlayerDanmakuBlockspecial(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuBlockspecial);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuBlockspecial other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuBlockspecial other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕不透明度
+ ///
+ public sealed partial class PlayerDanmakuOpacity : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuOpacity());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[37]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuOpacity() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuOpacity(PlayerDanmakuOpacity other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuOpacity Clone() {
+ return new PlayerDanmakuOpacity(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private float value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuOpacity);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuOpacity other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value);
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != 0F) {
+ output.WriteRawTag(13);
+ output.WriteFloat(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != 0F) {
+ output.WriteRawTag(13);
+ output.WriteFloat(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != 0F) {
+ size += 1 + 4;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuOpacity other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != 0F) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 13: {
+ Value = input.ReadFloat();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 13: {
+ Value = input.ReadFloat();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕缩放比例
+ ///
+ public sealed partial class PlayerDanmakuScalingfactor : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuScalingfactor());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[38]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuScalingfactor() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuScalingfactor(PlayerDanmakuScalingfactor other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuScalingfactor Clone() {
+ return new PlayerDanmakuScalingfactor(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private float value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuScalingfactor);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuScalingfactor other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value);
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != 0F) {
+ output.WriteRawTag(13);
+ output.WriteFloat(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != 0F) {
+ output.WriteRawTag(13);
+ output.WriteFloat(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != 0F) {
+ size += 1 + 4;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuScalingfactor other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != 0F) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 13: {
+ Value = input.ReadFloat();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 13: {
+ Value = input.ReadFloat();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕显示区域
+ ///
+ public sealed partial class PlayerDanmakuDomain : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuDomain());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[39]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuDomain() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuDomain(PlayerDanmakuDomain other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuDomain Clone() {
+ return new PlayerDanmakuDomain(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private float value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public float Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuDomain);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuDomain other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value);
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != 0F) {
+ output.WriteRawTag(13);
+ output.WriteFloat(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != 0F) {
+ output.WriteRawTag(13);
+ output.WriteFloat(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != 0F) {
+ size += 1 + 4;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuDomain other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != 0F) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 13: {
+ Value = input.ReadFloat();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 13: {
+ Value = input.ReadFloat();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 弹幕速度
+ ///
+ public sealed partial class PlayerDanmakuSpeed : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuSpeed());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[40]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSpeed() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSpeed(PlayerDanmakuSpeed other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuSpeed Clone() {
+ return new PlayerDanmakuSpeed(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private int value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuSpeed);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuSpeed other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != 0) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuSpeed other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != 0) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否开启屏蔽列表
+ ///
+ public sealed partial class PlayerDanmakuEnableblocklist : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDanmakuEnableblocklist());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[41]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuEnableblocklist() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuEnableblocklist(PlayerDanmakuEnableblocklist other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerDanmakuEnableblocklist Clone() {
+ return new PlayerDanmakuEnableblocklist(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerDanmakuEnableblocklist);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerDanmakuEnableblocklist other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerDanmakuEnableblocklist other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// 是否开启弹幕
+ ///
+ public sealed partial class InlinePlayerDanmakuSwitch : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InlinePlayerDanmakuSwitch());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Bilibili.Community.Service.Dm.V1.DmReflection.Descriptor.MessageTypes[42]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InlinePlayerDanmakuSwitch() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InlinePlayerDanmakuSwitch(InlinePlayerDanmakuSwitch other) : this() {
+ value_ = other.value_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public InlinePlayerDanmakuSwitch Clone() {
+ return new InlinePlayerDanmakuSwitch(this);
+ }
+
+ /// Field number for the "value" field.
+ public const int ValueFieldNumber = 1;
+ private bool value_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Value {
+ get { return value_; }
+ set {
+ value_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as InlinePlayerDanmakuSwitch);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(InlinePlayerDanmakuSwitch other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Value != other.Value) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Value != false) hash ^= Value.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Value != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(Value);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Value != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(InlinePlayerDanmakuSwitch other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Value != false) {
+ Value = other.Value;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Value = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/src/DownKyi.Core/Danmaku2Ass/Bilibili.cs b/src/DownKyi.Core/Danmaku2Ass/Bilibili.cs
new file mode 100644
index 0000000..5a8e812
--- /dev/null
+++ b/src/DownKyi.Core/Danmaku2Ass/Bilibili.cs
@@ -0,0 +1,169 @@
+using DownKyi.Core.BiliApi.Danmaku;
+using System.Collections.Generic;
+
+namespace DownKyi.Core.Danmaku2Ass
+{
+ public class Bilibili
+ {
+ private static Bilibili instance;
+
+ private readonly Dictionary config = new Dictionary
+ {
+ { "top_filter", false },
+ { "bottom_filter", false },
+ { "scroll_filter", false }
+ };
+
+ private readonly Dictionary mapping = new Dictionary
+ {
+ { 0, "none" }, // 保留项
+ { 1, "scroll" },
+ { 2, "scroll" },
+ { 3, "scroll" },
+ { 4, "bottom" },
+ { 5, "top" },
+ { 6, "scroll" }, // 逆向滚动弹幕,还是当滚动处理
+ { 7, "none" }, // 高级弹幕,暂时不要考虑
+ { 8, "none" }, // 代码弹幕,暂时不要考虑
+ { 9, "none" }, // BAS弹幕,暂时不要考虑
+ { 10, "none" }, // 未知,暂时不要考虑
+ { 11, "none" }, // 保留项
+ { 12, "none" }, // 保留项
+ { 13, "none" }, // 保留项
+ { 14, "none" }, // 保留项
+ { 15, "none" }, // 保留项
+ };
+
+ // 弹幕标准字体大小
+ private readonly int normalFontSize = 25;
+
+ ///
+ /// 获取Bilibili实例
+ ///
+ ///
+ public static Bilibili GetInstance()
+ {
+ if (instance == null)
+ {
+ instance = new Bilibili();
+ }
+
+ return instance;
+ }
+
+ ///
+ /// 隐藏Bilibili()方法,必须使用单例模式
+ ///
+ private Bilibili() { }
+
+ ///
+ /// 是否屏蔽顶部弹幕
+ ///
+ ///
+ ///
+ public Bilibili SetTopFilter(bool isFilter)
+ {
+ config["top_filter"] = isFilter;
+ return this;
+ }
+
+ ///
+ /// 是否屏蔽底部弹幕
+ ///
+ ///
+ ///
+ public Bilibili SetBottomFilter(bool isFilter)
+ {
+ config["bottom_filter"] = isFilter;
+ return this;
+ }
+
+ ///
+ /// 是否屏蔽滚动弹幕
+ ///
+ ///
+ ///
+ public Bilibili SetScrollFilter(bool isFilter)
+ {
+ config["scroll_filter"] = isFilter;
+ return this;
+ }
+
+ public void Create(long avid, long cid, Config subtitleConfig, string assFile)
+ {
+ // 弹幕转换
+ var biliDanmakus = DanmakuProtobuf.GetAllDanmakuProto(avid, cid);
+
+ // 按弹幕出现顺序排序
+ biliDanmakus.Sort((x, y) => { return x.Progress.CompareTo(y.Progress); });
+
+ var danmakus = new List();
+ foreach (var biliDanmaku in biliDanmakus)
+ {
+ var danmaku = new Danmaku
+ {
+ // biliDanmaku.Progress单位是毫秒,所以除以1000,单位变为秒
+ Start = biliDanmaku.Progress / 1000.0f,
+ Style = mapping[biliDanmaku.Mode],
+ Color = (int)biliDanmaku.Color,
+ Commenter = biliDanmaku.MidHash,
+ Content = biliDanmaku.Content,
+ SizeRatio = 1.0f * biliDanmaku.Fontsize / normalFontSize
+ };
+
+ danmakus.Add(danmaku);
+ }
+
+ // 弹幕预处理
+ Producer producer = new Producer(config, danmakus);
+ producer.StartHandle();
+
+ // 字幕生成
+ var keepedDanmakus = producer.KeepedDanmakus;
+ var studio = new Studio(subtitleConfig, keepedDanmakus);
+ studio.StartHandle();
+ studio.CreateAssFile(assFile);
+ }
+
+ public Dictionary GetResolution(int quality)
+ {
+ var resolution = new Dictionary
+ {
+ { "width", 0 },
+ { "height", 0 }
+ };
+
+ switch (quality)
+ {
+ // 240P 极速(仅mp4方式)
+ case 6:
+ break;
+ // 360P 流畅
+ case 16:
+ break;
+ // 480P 清晰
+ case 32:
+ break;
+ // 720P 高清(登录)
+ case 64:
+ break;
+ // 720P60 高清(大会员)
+ case 74:
+ break;
+ // 1080P 高清(登录)
+ case 80:
+ break;
+ // 1080P+ 高清(大会员)
+ case 112:
+ break;
+ // 1080P60 高清(大会员)
+ case 116:
+ break;
+ // 4K 超清(大会员)(需要fourk=1)
+ case 120:
+ break;
+ }
+ return resolution;
+ }
+ }
+}
diff --git a/src/DownKyi.Core/Danmaku2Ass/Collision.cs b/src/DownKyi.Core/Danmaku2Ass/Collision.cs
new file mode 100644
index 0000000..518b997
--- /dev/null
+++ b/src/DownKyi.Core/Danmaku2Ass/Collision.cs
@@ -0,0 +1,60 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace DownKyi.Core.Danmaku2Ass
+{
+ ///
+ /// 碰撞处理
+ ///
+ public class Collision
+ {
+ private readonly int lineCount;
+ private readonly List leaves;
+
+ public Collision(int lineCount)
+ {
+ this.lineCount = lineCount;
+ leaves = Leaves();
+ }
+
+ private List Leaves()
+ {
+ var ret = new List(lineCount);
+ for (int i = 0; i < lineCount; i++) ret.Add(0);
+ return ret;
+ }
+
+ ///
+ /// 碰撞检测
+ /// 返回行号和时间偏移
+ ///
+ ///
+ ///
+ public Tuple Detect(Display display)
+ {
+ List beyonds = new List();
+ for (int i = 0; i < leaves.Count; i++)
+ {
+ float beyond = display.Danmaku.Start - leaves[i];
+ // 某一行有足够空间,直接返回行号和 0 偏移
+ if (beyond >= 0)
+ {
+ return Tuple.Create(i, 0f);
+ }
+ beyonds.Add(beyond);
+ }
+
+ // 所有行都没有空间了,那么找出哪一行能在最短时间内让出空间
+ float soon = beyonds.Max();
+ int lineIndex = beyonds.IndexOf(soon);
+ float offset = -soon;
+ return Tuple.Create(lineIndex, offset);
+ }
+
+ public void Update(float leave, int lineIndex, float offset)
+ {
+ leaves[lineIndex] = Utils.IntCeiling(leave + offset);
+ }
+ }
+}
diff --git a/src/DownKyi.Core/Danmaku2Ass/Config.cs b/src/DownKyi.Core/Danmaku2Ass/Config.cs
new file mode 100644
index 0000000..79b4aad
--- /dev/null
+++ b/src/DownKyi.Core/Danmaku2Ass/Config.cs
@@ -0,0 +1,57 @@
+using System;
+
+namespace DownKyi.Core.Danmaku2Ass
+{
+ public class Config
+ {
+ public string Title = "Downkyi";
+ public int ScreenWidth = 1920;
+ public int ScreenHeight = 1080;
+ public string FontName = "黑体";
+ public int BaseFontSize; // 字体大小,像素
+
+ // 限制行数
+ private int lineCount;
+ public int LineCount
+ {
+ get { return lineCount; }
+ set
+ {
+ if (value == 0)
+ {
+ lineCount = (int)Math.Floor(ScreenHeight / BaseFontSize * 1.0);
+ }
+ else
+ {
+ lineCount = value;
+ }
+ }
+ }
+
+ public string LayoutAlgorithm; // 布局算法,async/sync
+ public int TuneDuration; // 微调时长
+ public int DropOffset; // 丢弃偏移
+ public int BottomMargin; // 底部边距
+ public int CustomOffset; // 自定义偏移
+ public string HeaderTemplate = @"[Script Info]
+; Script generated by Downkyi Danmaku Converter
+; https://github.com/FlySelfLog/downkyi
+Title: {title}
+ScriptType: v4.00+
+Collisions: Normal
+PlayResX: {width}
+PlayResY: {height}
+Timer: 10.0000
+WrapStyle: 2
+ScaledBorderAndShadow: no
+
+[V4+ Styles]
+Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
+Style: Default,{fontname},54,&H00FFFFFF,&H00FFFFFF,&H00000000,&H00000000,0,0,0,0,100,100,0.00,0.00,1,2.00,0.00,2,30,30,120,0
+Style: Alternate,{fontname},36,&H00FFFFFF,&H00FFFFFF,&H00000000,&H00000000,0,0,0,0,100,100,0.00,0.00,1,2.00,0.00,2,30,30,84,0
+Style: Danmaku,{fontname},{fontsize},&H00FFFFFF,&H00FFFFFF,&H00000000,&H00000000,0,0,0,0,100,100,0.00,0.00,1,1.00,0.00,2,30,30,30,0
+
+[Events]
+Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text";
+ }
+}
diff --git a/src/DownKyi.Core/Danmaku2Ass/Creater.cs b/src/DownKyi.Core/Danmaku2Ass/Creater.cs
new file mode 100644
index 0000000..c5d8090
--- /dev/null
+++ b/src/DownKyi.Core/Danmaku2Ass/Creater.cs
@@ -0,0 +1,87 @@
+using System.Collections.Generic;
+
+namespace DownKyi.Core.Danmaku2Ass
+{
+ ///
+ /// 创建器
+ ///
+ public class Creater
+ {
+ public Config Config;
+ public List Danmakus;
+ public List Subtitles;
+ public string Text;
+
+ public Creater(Config config, List danmakus)
+ {
+ Config = config;
+ Danmakus = danmakus;
+ Subtitles = SetSubtitles();
+ Text = SetText();
+ }
+
+ protected List SetSubtitles()
+ {
+ var scroll = new Collision(Config.LineCount);
+ var stayed = new Collision(Config.LineCount);
+ Dictionary collisions = new Dictionary
+ {
+ { "scroll", scroll },
+ { "top", stayed },
+ { "bottom", stayed }
+ };
+
+ List subtitles = new List();
+ foreach (var danmaku in Danmakus)
+ {
+ // 丢弃不支持的
+ if (danmaku.Style == "none")
+ {
+ continue;
+ }
+
+ // 创建显示方式对象
+ var display = Display.Factory(Config, danmaku);
+ var collision = collisions[danmaku.Style];
+ var detect = collision.Detect(display);
+ int lineIndex = detect.Item1;
+ float waitingOffset = detect.Item2;
+
+ // 超过容忍的偏移量,丢弃掉此条弹幕
+ if (waitingOffset > Config.DropOffset)
+ {
+ continue;
+ }
+
+ // 接受偏移,更新碰撞信息
+ display.Relayout(lineIndex);
+ collision.Update(display.Leave, lineIndex, waitingOffset);
+
+ // 再加上自定义偏移
+ float offset = waitingOffset + Config.CustomOffset;
+ Subtitle subtitle = new Subtitle(danmaku, display, offset);
+
+ subtitles.Add(subtitle);
+ }
+ return subtitles;
+ }
+
+ protected string SetText()
+ {
+ string header = Config.HeaderTemplate
+ .Replace("{title}", Config.Title)
+ .Replace("{width}", Config.ScreenWidth.ToString())
+ .Replace("{height}", Config.ScreenHeight.ToString())
+ .Replace("{fontname}", Config.FontName)
+ .Replace("{fontsize}", Config.BaseFontSize.ToString());
+
+ string events = string.Empty;
+ foreach (var subtitle in Subtitles)
+ {
+ events += "\n" + subtitle.Text;
+ }
+
+ return header + events;
+ }
+ }
+}
diff --git a/src/DownKyi.Core/Danmaku2Ass/Danmaku.cs b/src/DownKyi.Core/Danmaku2Ass/Danmaku.cs
new file mode 100644
index 0000000..f12afce
--- /dev/null
+++ b/src/DownKyi.Core/Danmaku2Ass/Danmaku.cs
@@ -0,0 +1,12 @@
+namespace DownKyi.Core.Danmaku2Ass
+{
+ public class Danmaku
+ {
+ public float Start { get; set; }
+ public string Style { get; set; }
+ public int Color { get; set; }
+ public string Commenter { get; set; }
+ public string Content { get; set; }
+ public float SizeRatio { get; set; }
+ }
+}
diff --git a/src/DownKyi.Core/Danmaku2Ass/Display.cs b/src/DownKyi.Core/Danmaku2Ass/Display.cs
new file mode 100644
index 0000000..e83f48f
--- /dev/null
+++ b/src/DownKyi.Core/Danmaku2Ass/Display.cs
@@ -0,0 +1,406 @@
+using System;
+using System.Collections.Generic;
+using System.Reflection;
+
+namespace DownKyi.Core.Danmaku2Ass
+{
+ ///
+ /// 显示方式
+ ///
+ public class Display
+ {
+ public Config Config;
+ public Danmaku Danmaku;
+ public int LineIndex;
+
+ public int FontSize;
+ public bool IsScaled;
+ public int MaxLength;
+ public int Width;
+ public int Height;
+
+ public Tuple Horizontal;
+ public Tuple Vertical;
+
+ public int Duration;
+ public int Leave;
+
+ protected Display() { }
+
+ public Display(Config config, Danmaku danmaku)
+ {
+ Config = config;
+ Danmaku = danmaku;
+ LineIndex = 0;
+
+ IsScaled = SetIsScaled();
+ FontSize = SetFontSize();
+ MaxLength = SetMaxLength();
+ Width = SetWidth();
+ Height = SetHeight();
+
+ Horizontal = SetHorizontal();
+ Vertical = SetVertical();
+
+ Duration = SetDuration();
+ Leave = SetLeave();
+ }
+
+ ///
+ /// 根据弹幕样式自动创建对应的 Display 类
+ ///
+ ///
+ public static Display Factory(Config config, Danmaku danmaku)
+ {
+ Dictionary dict = new Dictionary
+ {
+ { "scroll", new ScrollDisplay(config, danmaku) },
+ { "top", new TopDisplay(config, danmaku) },
+ { "bottom", new BottomDisplay(config, danmaku) }
+ };
+ return dict[danmaku.Style];
+ }
+
+ ///
+ /// 字体大小
+ /// 按用户自定义的字体大小来缩放
+ ///
+ ///
+ protected int SetFontSize()
+ {
+ if (IsScaled)
+ {
+ Console.WriteLine($"{Danmaku.SizeRatio}");
+ }
+ return Utils.IntCeiling(Config.BaseFontSize * Danmaku.SizeRatio);
+ }
+
+ ///
+ /// 字体是否被缩放过
+ ///
+ ///
+ protected bool SetIsScaled()
+ {
+ return !Math.Round(Danmaku.SizeRatio, 2).Equals(1.0);
+ //return Danmaku.SizeRatio.Equals(1.0f);
+ }
+
+ ///
+ /// 最长的行字符数
+ ///
+ ///
+ protected int SetMaxLength()
+ {
+ string[] lines = Danmaku.Content.Split('\n');
+ int maxLength = 0;
+ foreach (string line in lines)
+ {
+ int length = Utils.DisplayLength(line);
+ if (maxLength < length)
+ {
+ maxLength = length;
+ }
+ }
+ return maxLength;
+ }
+
+ ///
+ /// 整条字幕宽度
+ ///
+ ///
+ protected int SetWidth()
+ {
+ float charCount = MaxLength;// / 2;
+ return Utils.IntCeiling(FontSize * charCount);
+ }
+
+ ///
+ /// 整条字幕高度
+ ///
+ ///
+ protected int SetHeight()
+ {
+ int lineCount = Danmaku.Content.Split('\n').Length;
+ return lineCount * FontSize;
+ }
+
+ ///
+ /// 出现和消失的水平坐标位置
+ /// 默认在屏幕中间
+ ///
+ ///
+ protected virtual Tuple SetHorizontal()
+ {
+ int x = (int)Math.Floor(Config.ScreenWidth / 2.0);
+ return Tuple.Create(x, x);
+ }
+
+ ///
+ /// 出现和消失的垂直坐标位置
+ /// 默认在屏幕中间
+ ///
+ ///
+ protected virtual Tuple SetVertical()
+ {
+ int y = (int)Math.Floor(Config.ScreenHeight / 2.0);
+ return Tuple.Create(y, y);
+ }
+
+ ///
+ /// 整条字幕的显示时间
+ ///
+ ///
+ protected virtual int SetDuration()
+ {
+ int baseDuration = 3 + Config.TuneDuration;
+ if (baseDuration <= 0)
+ {
+ baseDuration = 0;
+ }
+ float charCount = MaxLength / 2;
+
+ int value;
+ if (charCount < 6)
+ {
+ value = baseDuration + 1;
+ }
+ else if (charCount < 12)
+ {
+ value = baseDuration + 2;
+ }
+ else
+ {
+ value = baseDuration + 3;
+ }
+ return value;
+ }
+
+ ///
+ /// 离开碰撞时间
+ ///
+ ///
+ protected virtual int SetLeave()
+ {
+ return (int)(Danmaku.Start + Duration);
+ }
+
+ ///
+ /// 按照新的行号重新布局
+ ///
+ ///
+ public void Relayout(int lineIndex)
+ {
+ LineIndex = lineIndex;
+ Horizontal = SetHorizontal();
+ Vertical = SetVertical();
+ }
+ }
+
+
+ ///
+ /// 顶部
+ ///
+ public class TopDisplay : Display
+ {
+ public TopDisplay(Config config, Danmaku danmaku) : base(config, danmaku)
+ {
+ Console.WriteLine("TopDisplay constructor.");
+ }
+
+ ///
+ ///
+ ///
+ ///
+ protected override Tuple SetVertical()
+ {
+ // 这里 y 坐标为 0 就是最顶行了
+ int y = LineIndex * Config.BaseFontSize;
+ return Tuple.Create(y, y);
+ }
+ }
+
+ ///
+ /// 底部
+ ///
+ public class BottomDisplay : Display
+ {
+ public BottomDisplay(Config config, Danmaku danmaku) : base(config, danmaku)
+ {
+ Console.WriteLine("BottomDisplay constructor.");
+ }
+
+ ///
+ ///
+ ///
+ ///
+ protected override Tuple SetVertical()
+ {
+ // 要让字幕不超出底部,减去高度
+ int y = Config.ScreenHeight - (LineIndex * Config.BaseFontSize) - Height;
+ // 再减去自定义的底部边距
+ y -= Config.BottomMargin;
+ return Tuple.Create(y, y);
+ }
+ }
+
+ ///
+ /// 滚动
+ ///
+ public class ScrollDisplay : Display
+ {
+ public int Distance;
+ public int Speed;
+
+ public ScrollDisplay(Config config, Danmaku danmaku) : base()
+ {
+ Console.WriteLine("ScrollDisplay constructor.");
+
+ Config = config;
+ Danmaku = danmaku;
+ LineIndex = 0;
+
+ IsScaled = SetIsScaled();
+ FontSize = SetFontSize();
+ MaxLength = SetMaxLength();
+ Width = SetWidth();
+ Height = SetHeight();
+
+ Horizontal = SetHorizontal();
+ Vertical = SetVertical();
+
+ Distance = SetDistance();
+ Speed = SetSpeed();
+
+ Duration = SetDuration();
+ Leave = SetLeave();
+ }
+
+ ///
+ /// ASS 的水平位置参考点是整条字幕文本的中点
+ ///
+ ///
+ protected override Tuple SetHorizontal()
+ {
+ int x1 = Config.ScreenWidth + (int)Math.Floor(Width / 2.0);
+ int x2 = 0 - (int)Math.Floor(Width / 2.0);
+ return Tuple.Create(x1, x2);
+ }
+
+ protected override Tuple SetVertical()
+ {
+ int baseFontSize = Config.BaseFontSize;
+
+ // 垂直位置,按基准字体大小算每一行的高度
+ int y = (LineIndex + 1) * baseFontSize;
+
+ // 个别弹幕可能字体比基准要大,所以最上的一行还要避免挤出顶部屏幕
+ // 坐标不能小于字体大小
+ if (y < FontSize)
+ {
+ y = FontSize;
+ }
+ return Tuple.Create(y, y);
+ }
+
+ ///
+ /// 字幕坐标点的移动距离
+ ///
+ ///
+ protected int SetDistance()
+ {
+ Tuple x = Horizontal;
+ return x.Item1 - x.Item2;
+ }
+
+ ///
+ /// 字幕每个字的移动的速度
+ ///
+ ///
+ protected int SetSpeed()
+ {
+ // 基准时间,就是每个字的移动时间
+ // 12 秒加上用户自定义的微调
+ int baseDuration = 12 + Config.TuneDuration;
+ if (baseDuration <= 0)
+ {
+ baseDuration = 1;
+ }
+ return Utils.IntCeiling(Config.ScreenWidth / baseDuration);
+ }
+
+ ///
+ /// 计算每条弹幕的显示时长,同步方式
+ /// 每个弹幕的滚动速度都一样,辨认度好,适合观看剧集类视频。
+ ///
+ ///
+ public int SyncDuration()
+ {
+ return Distance / Speed;
+ }
+
+ ///
+ /// 计算每条弹幕的显示时长,异步方式
+ /// 每个弹幕的滚动速度都不一样,动态调整,辨认度低,适合观看 MTV 类视频。
+ ///
+ ///
+ public int AsyncDuration()
+ {
+ int baseDuration = 6 + Config.TuneDuration;
+ if (baseDuration <= 0)
+ {
+ baseDuration = 0;
+ }
+ float charCount = MaxLength / 2;
+
+ int value;
+ if (charCount < 6)
+ {
+ value = (int)(baseDuration + charCount);
+ }
+ else if (charCount < 12)
+ {
+ value = baseDuration + (int)(charCount / 2);
+ }
+ else if (charCount < 24)
+ {
+ value = baseDuration + (int)(charCount / 3);
+ }
+ else
+ {
+ value = baseDuration + 10;
+ }
+ return value;
+ }
+
+ ///
+ /// 整条字幕的移动时间
+ ///
+ ///
+ protected override int SetDuration()
+ {
+ string methodName = Config.LayoutAlgorithm.Substring(0, 1).ToUpper() + Config.LayoutAlgorithm.Substring(1);
+ methodName += "Duration";
+ MethodInfo method = typeof(ScrollDisplay).GetMethod(methodName);
+ if (method != null)
+ {
+ return (int)method.Invoke(this, null);
+ }
+ return 0;
+ }
+
+ ///
+ /// 离开碰撞时间
+ ///
+ ///
+ protected override int SetLeave()
+ {
+ // 对于滚动样式弹幕来说,就是最后一个字符离开最右边缘的时间
+ // 坐标是字幕中点,在屏幕外和内各有半个字幕宽度
+ // 也就是跑过一个字幕宽度的路程
+ float duration = Width / Speed;
+ return (int)(Danmaku.Start + duration);
+ }
+
+ }
+
+}
diff --git a/src/DownKyi.Core/Danmaku2Ass/Filter.cs b/src/DownKyi.Core/Danmaku2Ass/Filter.cs
new file mode 100644
index 0000000..625405f
--- /dev/null
+++ b/src/DownKyi.Core/Danmaku2Ass/Filter.cs
@@ -0,0 +1,88 @@
+using System;
+using System.Collections.Generic;
+
+namespace DownKyi.Core.Danmaku2Ass
+{
+ ///
+ /// 过滤器基类
+ ///
+ public class Filter
+ {
+ public virtual List DoFilter(List