From 396a571570f468216b333433007a5ce77c6deae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E6=98=93=E5=A7=90QwQ?= <45892418+SocialSisterYi@users.noreply.github.com> Date: Mon, 14 Jun 2021 01:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E5=88=86proto?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BD=93=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grpc_api/bilibili/ad/v1/ad.proto | 959 ++--- grpc_api/bilibili/app/card/v1.proto | 961 ----- grpc_api/bilibili/app/card/v1/ad.proto | 65 + grpc_api/bilibili/app/card/v1/card.proto | 31 + grpc_api/bilibili/app/card/v1/common.proto | 324 ++ grpc_api/bilibili/app/card/v1/double.proto | 416 +++ grpc_api/bilibili/app/card/v1/single.proto | 313 ++ .../bilibili/app/dynamic/v1/dynamic.proto | 1354 +++++++ .../bilibili/app/dynamic/v2/dynamic.proto | 3313 +++++++++++++++++ .../playurl/{v1.proto => v1/playurl.proto} | 249 +- grpc_api/bilibili/app/show/gateway/v1.proto | 27 - .../app/show/gateway/v1/gateway.proto | 25 + grpc_api/bilibili/app/show/popular/v1.proto | 140 - .../app/show/popular/v1/popular.proto | 108 + grpc_api/bilibili/app/show/rank/v1.proto | 153 - grpc_api/bilibili/app/show/rank/v1/rank.proto | 120 + .../show/region/{v1.proto => v1/region.proto} | 14 +- .../app/space/{v1.proto => v1/space.proto} | 38 +- .../app/splash/{v1.proto => v1/splash.proto} | 53 +- grpc_api/bilibili/gaia/gw/gw_api.proto | 119 + .../main/community/reply/v1/reply_pb2.py | 3306 ---------------- 21 files changed, 6664 insertions(+), 5424 deletions(-) delete mode 100644 grpc_api/bilibili/app/card/v1.proto create mode 100644 grpc_api/bilibili/app/card/v1/ad.proto create mode 100644 grpc_api/bilibili/app/card/v1/card.proto create mode 100644 grpc_api/bilibili/app/card/v1/common.proto create mode 100644 grpc_api/bilibili/app/card/v1/double.proto create mode 100644 grpc_api/bilibili/app/card/v1/single.proto create mode 100644 grpc_api/bilibili/app/dynamic/v1/dynamic.proto create mode 100644 grpc_api/bilibili/app/dynamic/v2/dynamic.proto rename grpc_api/bilibili/app/playurl/{v1.proto => v1/playurl.proto} (91%) delete mode 100644 grpc_api/bilibili/app/show/gateway/v1.proto create mode 100644 grpc_api/bilibili/app/show/gateway/v1/gateway.proto delete mode 100644 grpc_api/bilibili/app/show/popular/v1.proto create mode 100644 grpc_api/bilibili/app/show/popular/v1/popular.proto delete mode 100644 grpc_api/bilibili/app/show/rank/v1.proto create mode 100644 grpc_api/bilibili/app/show/rank/v1/rank.proto rename grpc_api/bilibili/app/show/region/{v1.proto => v1/region.proto} (90%) rename grpc_api/bilibili/app/space/{v1.proto => v1/space.proto} (93%) rename grpc_api/bilibili/app/splash/{v1.proto => v1/splash.proto} (94%) create mode 100644 grpc_api/bilibili/gaia/gw/gw_api.proto delete mode 100644 grpc_api/bilibili/main/community/reply/v1/reply_pb2.py diff --git a/grpc_api/bilibili/ad/v1/ad.proto b/grpc_api/bilibili/ad/v1/ad.proto index 4c44c36..2f30288 100644 --- a/grpc_api/bilibili/ad/v1/ad.proto +++ b/grpc_api/bilibili/ad/v1/ad.proto @@ -4,629 +4,466 @@ package bilibili.ad.v1; import "google/protobuf/wrappers.proto"; -// -message AdAutoPlayVideoDto { - //avid - int64 avid = 1; - - //cid - int64 cid = 2; - - //分P - int64 page = 3; - - // - string from = 4; - - //是否自动播放 - string url = 5; - - //是否自动播放 - string cover = 6; - - //是否自动播放 - bool autoPlay = 7; - - //按钮是否动态变色 - bool btnDycColor = 8; - - //按钮动态变色时间 ms - int32 btnDycTime = 9; - - //用于做联播是否是同一个视频的id - int64 bizId = 10; - - //开始播放三方监控 - repeated string process0Urls = 11; - - //播放3S三方监控 - repeated string play3SUrls = 12; - - //播放5S三方监控 - repeated string play5SUrls = 13; - - //横竖屏 - int32 orientation = 14; +// 广告控制 +message AdsControlDto { + // 视频是否有弹幕,如有,需请求弹幕广告 + int32 hasDanmu = 1; + // 有弹幕的分P视频的cid + repeated int64 cids = 2; + // 有弹幕的ogv ep + repeated AdOgvEpDto eps = 3; } -// -message AdBusinessMarkDto { - //商业标样式 - //0:不展示标 - //1:实心+文字 - //2:空心框+文字 - //3:纯文字标 - //4:纯图片标 - int32 type = 1; - - //商业标文案 - string text = 2; - - //商业标文案颜色,如#80FFFFFF RGBA - string textColor = 3; - - //夜间模式文字色 - string textColorNight = 4; - - //背景色 - string bgColor = 5; - - //夜间模式背景色 - string bgColorNight = 6; - - //边框色 - string borderColor = 7; - - //夜间模式边框色 - string borderColorNight = 8; - - //图片商业标 - string imgUrl = 9; - - //图片高度 - int32 imgHeight = 10; - - //图片宽度 - int32 imgWidth = 11; - - // - string bgBorderColor = 12; +// 有弹幕的ogv ep +message AdOgvEpDto { + // 分集epid + int64 epid = 1; + // 是否显示 "荐" + bool hasRecommend = 2; } -// -message AdButtonDto { - //类型 - //1:落地页 - //2:应用唤起 - //3:应用下载 - int32 type = 1; - - //按钮文案 - string text = 2; - - //按钮跳转地址 - string jumpUrl = 3; - - //跳转监测链接 - string reportUrls = 4; - - //唤起schema - string dlsucCallupUrl = 5; +// 广告数据 +message SourceContentDto { + // 广告请求id + string requestId = 1; + // 广告资源位source ID + int32 sourceId = 2; + // 广告资源位resource ID + int32 resourceId = 3; + // 广告位上报标记,对广告返回数据恒为true + bool isAdLoc = 4; + // 与天马现有逻辑一致, 0有含义 + // 0:内容 1:广告 + google.protobuf.Int32Value serverType = 5; + // 客户端IP回传拼接 + string clientIp = 6; + // 广告卡片位置在一刷中的位置, 天马用, 0有含义 + google.protobuf.Int32Value cardIndex = 7; + // 广告资源位source 位次 + int32 index = 8; + // 广告内容 + AdDto adContent = 9; } -// -message AdCardDto { - //卡片类型 - int32 cardType = 1; - - //标题 - string title = 2; - - //描述 - string desc = 3; - - //额外描述 - string extraDesc = 4; - - //长描述 - string longDesc = 5; - - //短标题, 弹幕广告目录面板标题 - string shortTitle = 6; - - //弹幕/浮层广告的弹幕标题 - string danmuTitle = 7; - - //弹幕/浮层广告的弹幕高度,整型,分母为100 - int32 danmuHeight = 8; - - //弹幕/浮层广告的弹幕宽度,整型,分母为100 - int32 danmuWidth = 9; - - //弹幕/浮层广告生存时间,单位为毫秒 - int32 danmuLife = 10; - - //弹幕/浮层开始时间,单位为毫秒 - int32 danmuBegin = 11; - - //背景色值(含透明度)如#80FFFFFF - string danmuColor = 12; - - //弹幕/浮层广告H5落地页 - string danmuH5Url = 13; - - //弹幕/浮层 广告icon - string danmuIcon = 14; - - //折叠时间,永驻浮层折叠时间,单位为毫秒 - int32 foldTime = 15; - - //广告标文案 - string adTag = 16; - - //cover数组 - repeated AdCoverDto covers = 17; - - //卡片跳转链接 - string jumpUrl = 18; - - // - string imaxLandingPageJsonString = 19; - - //app唤起schema - string callupUrl = 20; - - //univeral link域名 - string universalApp = 21; - - //原价, 单位为分 - string oriPrice = 22; - - //现价, 同上 - int32 curPrice = 23; - - //券后/现价 价格描述 - string priceDesc = 24; - - //价格单位符号 - string priceSymbol = 25; - - //券后价格 "1000" - string goodsCurPrice = 26; - - //原价 "¥1002" - string goodsOriPrice = 27; - - //开放平台商品 - AdGoodDto good = 28; - - //打分? 满分为100 - int32 rank = 29; - - //热度 - int32 hotScore = 30; - - //按钮 - AdButtonDto button = 31; - - //广告主logo - string adverLogo = 32; - - //广告主name - string adverName = 33; - - //广告主主页链接 - string adverPageUrl = 34; - - //视频弹幕,视频广告用 - repeated string videoBarrage = 35; - - //商业标信息 - AdBusinessMarkDto adTagStyle = 36; - - //自动播放视频 - AdAutoPlayVideoDto video = 37; - - //反馈面板功能模块,屏蔽、投诉、广告介绍 - AdFeedbackPanelDto feedbackPanel = 38; - - // - int64 adverMid = 39; - - // - int64 adverAccountId = 40; - - // - string duration = 41; - - // - repeated QualityInfo qualityInfos = 42; - - // - string dynamicText = 43; - - // - AdverDto adver = 44; -} - -// -message AdContentExtraDto { - //动态布局 - string layout = 1; - - //展现监控url - repeated string showUrls = 2; - - //点击监控url - repeated string clickUrls = 3; - - //弹幕创意列表展示第三方上报 - repeated string danmuListShowUrls = 4; - - //弹幕创意列表点击第三方上报 - repeated string danmuListClickUrls = 5; - - //弹幕详情页展示第三方上报 - repeated string danmuDetailShowUrls = 6; - - //弹幕商品添加购物车第三方上报 - repeated string danmuTrolleyAddUrls = 7; - - //useWebView默认false - bool useAdWebV2 = 8; - - //app唤起白名单 - repeated string openWhitelist = 9; - - //app下载白名单 - AppPackageDto downloadWhitelist = 10; - - //卡片相关信息 - AdCardDto card = 11; - - //视频播放和弹幕播放上报控制时间 ms - int32 reportTime = 12; - - //是否优先唤起app store - int32 appstorePriority = 13; - - //广告售卖类型 - int32 salesType = 14; - - //落地页是否预加载 - int32 preloadLandingpage = 15; - - //是否需要展示风险行业提示 - bool specialIndustry = 16; - - //风险行业提示 - string specialIndustryTips = 17; - - //是否展示下载弹框 - bool enableDownloadDialog = 18; - - //是否允许分享 - bool enableShare = 19; - - //个人空间广告入口类型 - //1:橱窗 - //2:商品店铺 - //3:小程序 - int32 upzoneEntranceType = 20; - - //个人空间广告入口上报id,橱窗id(当前用Mid)、店铺id或者小程序id - int32 upzoneEntranceReportId = 21; - - //分享数据 - AdShareInfoDto shareInfo = 22; - - //topview图片链接,闪屏预下载用 - string topviewPicUrl = 23; - - //topview视频链接,闪屏预下载用 - string topviewVideoUrl = 24; - - //点击区域 - //0:表示banner可点击 - //1:表示素材可点击 - int32 clickArea = 25; - - // - int64 shopId = 26; - - // - int64 upMid = 27; - - // - string trackId = 28; - - // - int32 enableStoreDirectLaunch = 29; -} - -// -message AdCoverDto { - //图片链接 - string url = 1; - - //动图循环次数 - //0:无限循环 - int32 loop = 2; - - //图片点击跳转地址,截至目前为空 - string jumpUrl = 3; - - //跳转监测链接, 数组,单个图片的监控,出区别于click_urls,应前端要求。(此字段截至目前为空,使用时需再次确认) - repeated string reportUrls = 4; - - //图片高度 - int32 imageHeight = 5; - - //图片宽度 - int32 imageWidth = 6; -} - -// +// 广告内容 message AdDto { - //广告创意ID + // 广告创意ID int64 creativeId = 1; - - //广告闭环上报回传数据 + // 广告闭环上报回传数据 string adCb = 2; - - //额外广告数据 + // 额外广告数据 AdContentExtraDto extra = 3; - - //广告标记 + // 广告标记 int32 cmMark = 4; - // int64 topViewId = 5; - // int32 creativeType = 6; - // int32 cardType = 7; - // int32 creativeStyle = 8; - // int32 isAd = 9; - // CreativeDto creativeContent = 10; } -// -message AdFeedbackPanelDto { - //面板类型,广告、推广 - string panelTypeText = 1; - - //反馈面版信息 - repeated AdFeedbackPanelModuleDto feedbackPanelDetail = 2; -} - -// -message AdFeedbackPanelModuleDto { - //模块id - int32 moduleId = 1; - - //icon url - string iconUrl = 2; - - //跳转类型 - //1:气泡 - //2:H5 - int32 jumpType = 3; - - //跳转地址 - string jumpUrl = 4; - - //文案 - string text = 5; - - //二级文案数组 - AdSecondFeedbackPanelDto secondaryPanel = 6; -} - -// -message AdGoodDto { - //电商商品ID - int64 itemId = 1; - - //电商SKU ID - int64 skuId = 2; - - //店铺ID - int64 shopId = 3; - - //SKU库存 - int64 skuNum = 4; -} - -// -message AdOgvEpDto { - //分集epid - int64 epid = 1; - - //是否显示 "荐" - bool hasRecommend = 2; -} - -// -message AdSecondFeedbackPanelDto { - //屏蔽理由id - int32 reasonId = 1; - - //理由文案 - string text = 2; -} - -// -message AdShareInfoDto { - //分享标题 - string title = 1; - - //分享副标题 - string subtitle = 2; - - //分享图片url - string imageUrl = 3; -} - -// -message AdsControlDto { - //视频是否有弹幕,如有,需请求弹幕广告 - int32 hasDanmu = 1; - - //有弹幕的分P视频的cid - repeated int64 cids = 2; - - //有弹幕的ogv ep - repeated AdOgvEpDto eps = 3; -} - -// -message AdverDto { - // - int64 adverId = 1; - - // - string adverLogo = 2; - - // - string adverName = 3; - - // - int32 adverType = 4; - - // - string adverPageUrl = 5; - - // - string adverDesc = 6; -} - -// -message AppPackageDto { - //包大小, 单位bytes - int64 size = 1; - - // - string displayName = 2; - - // - string apkName = 3; - - //url - string url = 4; - - //bili schema url - string biliUrl = 5; - - //包md5 - string md5 = 6; - - //包icon - string icon = 7; - - // - string devName = 8; - - // - string authUrl = 9; - - // - string authName = 10; - - // - string version = 11; - - // - string updateTime = 12; +// 额外广告数据 +message AdContentExtraDto { + // 动态布局 + string layout = 1; + // 展现监控url + repeated string showUrls = 2; + // 点击监控url + repeated string clickUrls = 3; + // 弹幕创意列表展示第三方上报 + repeated string danmuListShowUrls = 4; + // 弹幕创意列表点击第三方上报 + repeated string danmuListClickUrls = 5; + // 弹幕详情页展示第三方上报 + repeated string danmuDetailShowUrls = 6; + // 弹幕商品添加购物车第三方上报 + repeated string danmuTrolleyAddUrls = 7; + // useWebView默认false + bool useAdWebV2 = 8; + // app唤起白名单 + repeated string openWhitelist = 9; + // app下载白名单 + AppPackageDto downloadWhitelist = 10; + // 卡片相关信息 + AdCardDto card = 11; + // 视频播放和弹幕播放上报控制时间 ms + int32 reportTime = 12; + // 是否优先唤起app store + int32 appstorePriority = 13; + // 广告售卖类型 + int32 salesType = 14; + // 落地页是否预加载 + int32 preloadLandingpage = 15; + // 是否需要展示风险行业提示 + bool specialIndustry = 16; + // 风险行业提示 + string specialIndustryTips = 17; + // 是否展示下载弹框 + bool enableDownloadDialog = 18; + // 是否允许分享 + bool enableShare = 19; + // 个人空间广告入口类型 + // 1:橱窗 2:商品店铺 3:小程序 + int32 upzoneEntranceType = 20; + // 个人空间广告入口上报id,橱窗id(当前用Mid)、店铺id或者小程序id + int32 upzoneEntranceReportId = 21; + // 分享数据 + AdShareInfoDto shareInfo = 22; + // topview图片链接,闪屏预下载用 + string topviewPicUrl = 23; + // topview视频链接,闪屏预下载用 + string topviewVideoUrl = 24; + // 点击区域 + // 0:表示banner可点击 1:表示素材可点击 + int32 clickArea = 25; + // 店铺 + int64 shopId = 26; + // up主 + int64 upMid = 27; + // 回传id + string trackId = 28; + // 商店直投 + int32 enableStoreDirectLaunch = 29; + // DPA2.0商品ID + int64 product_id = 30; } // message CreativeDto { // string title = 1; - // string description = 2; - // string imageUrl = 3; - // string imageMd5 = 4; - // string url = 5; - // string clickUrl = 6; - // string showUrl = 7; - // int64 videoId = 8; - // string thumbnailUrl = 9; - // string thumbnailUrlMd5 = 10; - // string logoUrl = 11; - // string logoMd5 = 12; - // string username = 13; } +// app下载白名单 +message AppPackageDto { + // 包大小(单位bytes) + int64 size = 1; + // + string displayName = 2; + // + string apkName = 3; + // url + string url = 4; + // bili schema url + string biliUrl = 5; + // 包md5 + string md5 = 6; + // 包icon + string icon = 7; + // 开发者姓名 + string devName = 8; + // 权限地址 + string authUrl = 9; + // 权限名,逗号隔开 + string authName = 10; + // 版本 + string version = 11; + // 更新时间,yy-mm-hh格式 + string updateTime = 12; + // 隐私协议标题 + string privacy_name = 13; + // 隐私协议url + string privacy_url = 14; +} + +// 卡片 +message AdCardDto { + // 卡片类型 + int32 cardType = 1; + // 标题 + string title = 2; + // 描述 + string desc = 3; + // 额外描述 + string extraDesc = 4; + // 长描述 + string longDesc = 5; + // 短标题, 弹幕广告目录面板标题 + string shortTitle = 6; + // 弹幕/浮层广告的弹幕标题 + string danmuTitle = 7; + // 弹幕/浮层广告的弹幕高度,整型,分母为100 + int32 danmuHeight = 8; + // 弹幕/浮层广告的弹幕宽度,整型,分母为100 + int32 danmuWidth = 9; + // 弹幕/浮层广告生存时间,单位为毫秒 + int32 danmuLife = 10; + // 弹幕/浮层开始时间,单位为毫秒 + int32 danmuBegin = 11; + // 背景色值(含透明度)如#80FFFFFF + string danmuColor = 12; + // 弹幕/浮层广告H5落地页 + string danmuH5Url = 13; + // 弹幕/浮层 广告icon + string danmuIcon = 14; + // 折叠时间,永驻浮层折叠时间,单位为毫秒 + int32 foldTime = 15; + // 广告标文案 + string adTag = 16; + // cover数组 + repeated AdCoverDto covers = 17; + // 卡片跳转链接 + string jumpUrl = 18; + // + string imaxLandingPageJsonString = 19; + // app唤起schema + string callupUrl = 20; + // univeral link域名 + string universalApp = 21; + // 原价, 单位为分 + string oriPrice = 22; + // 现价, 同上 + int32 curPrice = 23; + // 券后/现价 价格描述 + string priceDesc = 24; + // 价格单位符号 + string priceSymbol = 25; + // 券后价格 "1000" + string goodsCurPrice = 26; + // 原价 "¥1002" + string goodsOriPrice = 27; + // 开放平台商品 + AdGoodDto good = 28; + // 打分? 满分为100 + int32 rank = 29; + // 热度 + int32 hotScore = 30; + // 按钮 + AdButtonDto button = 31; + // 广告主logo + string adverLogo = 32; + // 广告主name + string adverName = 33; + // 广告主主页链接 + string adverPageUrl = 34; + // 视频弹幕,视频广告用 + repeated string videoBarrage = 35; + // 商业标信息 + AdBusinessMarkDto adTagStyle = 36; + // 自动播放视频 + AdAutoPlayVideoDto video = 37; + // 反馈面板功能模块,屏蔽、投诉、广告介绍 + AdFeedbackPanelDto feedbackPanel = 38; + // + int64 adverMid = 39; + // + int64 adverAccountId = 40; + // + string duration = 41; + // + repeated QualityInfo qualityInfos = 42; + // 动态广告文本 + string dynamicText = 43; + // 广告主信息 + AdverDto adver = 44; + // 评分 + int32 grade_level = 45; +} + +// 分享 +message AdShareInfoDto { + // 分享标题 + string title = 1; + // 分享副标题 + string subtitle = 2; + // 分享图片url + string imageUrl = 3; +} + +// 广告卡片封面数据 +message AdCoverDto { + // 图片链接 + string url = 1; + // 动图循环次数 + // 0:无限循环 + int32 loop = 2; + // 图片点击跳转地址,截至目前为空 + string jumpUrl = 3; + // 跳转监测链接, 数组,单个图片的监控,出区别于click_urls,应前端要求。(此字段截至目前为空,使用时需再次确认) + repeated string reportUrls = 4; + // 图片高度 + int32 imageHeight = 5; + // 图片宽度 + int32 imageWidth = 6; +} + +// 按钮 +message AdButtonDto { + // 类型 + // 1:落地页 2:应用唤起 3:应用下载 + int32 type = 1; + // 按钮文案 + string text = 2; + // 按钮跳转地址 + string jumpUrl = 3; + // 跳转监测链接 + string reportUrls = 4; + // 唤起schema + string dlsucCallupUrl = 5; + //游戏id + int32 game_id = 6; + //游戏监控字段 + string game_monitor_param = 7; +} + +// 商业标信息 +message AdBusinessMarkDto { + // 商业标样式 + // 0:不展示标 1:实心+文字 2:空心框+文字 3:纯文字标 4:纯图片标 + int32 type = 1; + // 商业标文案 + string text = 2; + // 商业标文案颜色,如#80FFFFFF RGBA + string textColor = 3; + // 夜间模式文字色 + string textColorNight = 4; + // 背景色 + string bgColor = 5; + // 夜间模式背景色 + string bgColorNight = 6; + // 边框色 + string borderColor = 7; + // 夜间模式边框色 + string borderColorNight = 8; + // 图片商业标 + string imgUrl = 9; + // 图片高度 + int32 imgHeight = 10; + // 图片宽度 + int32 imgWidth = 11; + // + string bgBorderColor = 12; +} + + +// 自动播放视频 +message AdAutoPlayVideoDto { + // avid + int64 avid = 1; + // cid + int64 cid = 2; + // 分P + int64 page = 3; + // + string from = 4; + // 是否自动播放 + string url = 5; + // 是否自动播放 + string cover = 6; + // 是否自动播放 + bool autoPlay = 7; + // 按钮是否动态变色 + bool btnDycColor = 8; + // 按钮动态变色时间 ms + int32 btnDycTime = 9; + // 用于做联播是否是同一个视频的id + int64 bizId = 10; + // 开始播放三方监控 + repeated string process0Urls = 11; + // 播放3S三方监控 + repeated string play3SUrls = 12; + // 播放5S三方监控 + repeated string play5SUrls = 13; + // 横竖屏 + int32 orientation = 14; +} + +// 反馈面板功能模块 +message AdFeedbackPanelDto { + // 面板类型,广告、推广 + string panelTypeText = 1; + // 反馈面版信息 + repeated AdFeedbackPanelModuleDto feedbackPanelDetail = 2; +} + +// 反馈面版信息 +message AdFeedbackPanelModuleDto { + // 模块id + int32 moduleId = 1; + // icon url + string iconUrl = 2; + // 跳转类型 + // 1:气泡 2:H5 + int32 jumpType = 3; + // 跳转地址 + string jumpUrl = 4; + // 文案 + string text = 5; + // 二级文案数组 + repeated AdSecondFeedbackPanelDto secondaryPanel = 6; +} + +// 二级文案 +message AdSecondFeedbackPanelDto { + // 屏蔽理由id + int32 reasonId = 1; + // 理由文案 + string text = 2; +} + +// 开放平台商品 +message AdGoodDto { + // 电商商品ID + int64 itemId = 1; + // 电商SKU ID + int64 skuId = 2; + // 店铺ID + int64 shopId = 3; + // SKU库存 + int64 skuNum = 4; +} + // message QualityInfo { // string icon = 1; - // string text = 2; } -// -message SourceContentDto { - //广告请求ID - string requestId = 1; - - //广告资源位source ID - int32 sourceId = 2; - - //广告资源位resource ID - int32 resourceId = 3; - - //广告位上报标记,对广告返回数据恒为true - bool isAdLoc = 4; - - //0:内容 - //1:广告 - //与天马现有逻辑一致, 0有含义 - google.protobuf.Int32Value serverType = 5; - - //客户端IP回传拼接 - string clientIp = 6; - - //广告卡片位置在一刷中的位置, 天马用, 0有含义 - google.protobuf.Int32Value cardIndex = 7; - - //广告资源位source 位次 - int32 index = 8; - - //广告内容 - AdDto adContent = 9; -} \ No newline at end of file +// 广告主信息 +message AdverDto { + // + int64 adverId = 1; + // + string adverLogo = 2; + // + string adverName = 3; + // + int32 adverType = 4; + // + string adverPageUrl = 5; + // + string adverDesc = 6; +} diff --git a/grpc_api/bilibili/app/card/v1.proto b/grpc_api/bilibili/app/card/v1.proto deleted file mode 100644 index cf07c15..0000000 --- a/grpc_api/bilibili/app/card/v1.proto +++ /dev/null @@ -1,961 +0,0 @@ -syntax = "proto3"; - -package bilibili.app.card.v1; - -//卡片信息 -message Card { - oneof item { - //小封面条目 - SmallCoverV5 smallCoverV5 = 1; - - // - LargeCoverV1 largeCoverV1 = 2; - - // - ThreeItemAllV2 threeItemAllV2 = 3; - - // - ThreeItemV1 threeItemV1 = 4; - - // - HotTopic hotTopic = 5; - - // - DynamicHot dynamicHot = 6; - - // - MiddleCoverV3 middleCoverV3 = 7; - - // - LargeCoverV4 largeCoverV4 = 8; - - //热门列表顶部按钮 - PopularTopEntrance popularTopEntrance = 9; - - // - RcmdOneItem rcmdOneItem = 10; - } -} - -//小封面条目 -message SmallCoverV5 { - //条目基本信息 - Base base = 1; - - // - string coverGif = 2; - - // - Up up = 3; - - //封面右下角标文案(时长) - string coverRightText1 = 4; - - //右侧文案1(UP主昵称) - string rightDesc1 = 5; - - //右侧文案2(播放量 时间) - string rightDesc2 = 6; - - //右侧推荐原因标签框 - ReasonStyle rcmdReasonStyle = 7; - - // - HotwordEntrance hotwordEntrance = 8; - - // - ReasonStyle cornerMarkStyle = 9; - - //右侧文案1图标id - int32 rightIcon1 = 10; - - //右侧文案2图标id - int32 rightIcon2 = 11; - - // - ReasonStyle leftCornerMarkStyle = 12; -} - -// -message LargeCoverV1 { - //条目基本信息 - Base base = 1; - - // - string coverGif = 2; - - // - Avatar avatar = 3; - - // - string coverLeftText1 = 4; - - // - string coverLeftText2 = 5; - - // - string coverLeftText3 = 6; - - // - string coverBadge = 7; - - // - string topRcmdReason = 8; - - // - string bottomRcmdReason = 9; - - // - string desc = 10; - - // - int32 officialIcon = 11; - - // - int32 canPlay = 12; - - // - ReasonStyle topRcmdReasonStyle = 13; - - // - ReasonStyle bottomRcmdReasonStyle = 14; - - // - ReasonStyle rcmdReasonStyleV2 = 15; - - // - ReasonStyle leftCoverBadgeStyle = 16; - - // - ReasonStyle rightCoverBadgeStyle = 17; - - // - string coverBadge2 = 18; - - // - LikeButton likeButton = 19; - - // - int32 titleSingleLine = 20; - - // - string coverRightText = 21; -} - -// -message ThreeItemAllV2 { - //条目基本信息 - Base base = 1; - - // - ReasonStyle topRcmdReasonStyle = 2; - - // - repeated TwoItemHV1Item item = 3; -} - -// -message ThreeItemV1 { - //条目基本信息 - Base base = 1; - - // - int32 titleIcon = 2; - - // - string moreUri = 3; - - // - string moreText = 4; - - // - repeated ThreeItemV1Item items = 5; -} - -// -message HotTopic { - //条目基本信息 - Base base = 1; - - // - string desc = 2; - - // - repeated HotTopicItem items = 3; -} - -// -message DynamicHot { - //条目基本信息 - Base base = 1; - - // - string topLeftTitle = 2; - - // - string desc1 = 3; - - // - string desc2 = 4; - - // - string moreUri = 5; - - // - string moreText = 6; - - // - repeated string covers = 7; - - // - string coverRightText = 8; - - // - ReasonStyle topRcmdReasonStyle = 9; -} - -// -message MiddleCoverV3 { - //条目基本信息 - Base base = 1; - - // - string desc1 = 2; - - // - string desc2 = 3; - - // - ReasonStyle coverBadgeStyle = 4; -} - -// -message LargeCoverV4 { - //条目基本信息 - Base base = 1; - - // - string coverLeftText1 = 2; - - // - string coverLeftText2 = 3; - - // - string coverLeftText3 = 4; - - // - string coverBadge = 5; - - // - int32 canPlay = 6; - - // - Up up = 7; - - // - string shortLink = 8; - - // - string shareSubtitle = 9; - - // - string playNumber = 10; - - // - string bvid = 11; - - // - string subParam = 12; -} - -//热门列表顶部按钮 -message PopularTopEntrance { - //条目基本信息 - Base base = 1; - - //按钮项 - repeated EntranceItem items = 2; -} - -//推荐 -message RcmdOneItem { - //条目基本信息 - Base base = 1; - - //标签框信息 - ReasonStyle topRcmdReasonStyle = 2; - - //小封面推荐内容信息 - SmallCoverRcmdItem item = 3; -} - -// -message AdInfo { - // - int64 creativeId = 1; - - // - int32 creativeType = 2; - - // - int32 cardType = 3; - - // - CreativeContent creativeContent = 4; - - // - string adCb = 5; - - // - int64 resource = 6; - - // - int32 source = 7; - - // - string requestId = 8; - - // - bool isAd = 9; - - // - int64 cmMark = 10; - - // - int32 index = 11; - - // - bool isAdLoc = 12; - - // - int32 cardIndex = 13; - - // - string clientIp = 14; - - // - bytes extra = 15; - - // - int32 creativeStyle = 16; -} - -// -message Args { - // - int32 type = 1; - - // - int64 upId = 2; - - // - string upName = 3; - - // - int32 rid = 4; - - // - string rname = 5; - - // - int64 tid = 6; - - // - string tname = 7; - - // - string trackId = 8; - - // - string state = 9; - - // - int32 convergeType = 10; - - // - int64 aid = 11; -} - -// -message Avatar { - // - string cover = 1; - - // - string text = 2; - - // - string uri = 3; - - // - int32 type = 4; - - // - string event = 5; - - // - string eventV2 = 6; - - // - int32 defalutCover = 7; -} - -//条目基本信息 -message Base { - //卡片类型 - string cardType = 1; - - //卡片跳转类型? - string cardGoto = 2; - - //跳转类型 - //av:视频稿件 mid:用户空间 - string goto = 3; - - //目标参数 - string param = 4; - - //封面url - string cover = 5; - - //标题 - string title = 6; - - //跳转uri - string uri = 7; - - // - ThreePoint threePoint = 8; - - // - Args args = 9; - - // - PlayerArgs playerArgs = 10; - - //条目排位序号 - int64 idx = 11; - - // - AdInfo adInfo = 12; - - // - Mask mask = 13; - - //来源标识 - //recommend:推荐 operation:管理? - string fromType = 14; - - // - repeated ThreePointV2 threePointV2 = 15; - - // - repeated ThreePointV3 threePointV3 = 16; - - // - Button descButton = 17; - - //三点v4 - ThreePointV4 threePointV4 = 18; -} - -//气泡信息 -message Bubble { - //文案 - string bubbleContent = 1; - - //版本 - int32 version = 2; - - //起始时间 - int64 stime = 3; -} - -//按钮信息 -message Button { - //文案 - string text = 1; - - //参数 - string param = 2; - - // - string uri = 3; - - //事件 - string event = 4; - - // - int32 selected = 5; - - //类型 - //2: - int32 type = 6; - - //事件v2 - string eventV2 = 7; - - //关系信息 - Relation relation = 8; -} - -// -message CreativeContent { - // - string title = 1; - - // - string description = 2; - - // - int64 videoId = 3; - - // - string username = 4; - - // - string imageUrl = 5; - - // - string imageMd5 = 6; - - // - string logUrl = 7; - - // - string logMd5 = 8; - - // - string url = 9; - - // - string clickUrl = 10; - - // - string showUrl = 11; -} - -// -message DislikeReason { - // - int64 id = 1; - - // - string name = 2; -} - -//热门列表按钮信息 -message EntranceItem { - //跳转类型 - string goto = 1; - - //图标url - string icon = 2; - - //标题 - string title = 3; - - //入口模块id - string moduleId = 4; - - //跳转uri - string uri = 5; - - //入口id - int64 entranceId = 6; - - //气泡信息 - Bubble bubble = 7; - - //入口类型? - int32 entranceType = 8; -} - -// -message HotTopicItem { - // - string cover = 1; - - // - string uri = 2; - - // - string param = 3; - - // - string name = 4; -} - -// -message HotwordEntrance { - // - int64 hotwordId = 1; - - // - string hotText = 2; - - // - string h5Url = 3; - - // - string icon = 4; -} - -// -message LikeButton { - // - int64 aid = 1; - - // - int32 count = 2; - - // - bool showCount = 3; - - // - string event = 4; - - // - int32 selected = 5; - - // - string eventV2 = 6; -} - -// -message Mask { - // - Avatar avatar = 1; - - // - Button button = 2; -} - -// -message PlayerArgs { - // - int32 isLive = 1; - - // - int64 aid = 2; - - // - int64 cid = 3; - - // - int32 subType = 4; - - // - int64 roomId = 5; - - // - int64 epId = 7; - - // - int32 isPreview = 8; - - // - string type = 9; - - // - int64 duration = 10; - - // - int64 seasonId = 11; -} - -//标签框信息 -message ReasonStyle { - //文案 - string text = 1; - - //文字颜色 - string textColor = 2; - - //背景色 - string bgColor = 3; - - //边框色 - string borderColor = 4; - - //图标url - string iconUrl = 5; - - //文字颜色-夜间 - string textColorNight = 6; - - //背景色-夜间 - string bgColorNight = 7; - - //边框色-夜间 - string borderColorNight = 8; - - //图标url-夜间 - string iconNightUrl = 9; - - //背景风格id - //1:无背景 2:有背景 - int32 bgStyle = 10; - - // - string uri = 11; - - // - string iconBgUrl = 12; - - // - string event = 13; - - // - string eventV2 = 14; - - // - int32 rightIconType = 15; - - // - string leftIconType = 16; -} - -//关系信息 -message Relation { - //关系状态 - int32 status = 1; - - //是否关注 - int32 isFollow = 2; - - //是否粉丝 - int32 isFollowed = 3; -} - -//分享面板信息 -message SharePlane { - //标题 - string title = 1; - - //副标贴文案(观看次数) - string shareSubtitle = 2; - - //备注 - string desc = 3; - - //封面url - string cover = 4; - - //稿件avid - int64 aid = 5; - - //稿件bvid - string bvid = 6; - - //允许分享方式 - map shareTo = 7; - - //UP主昵称 - string author = 8; - - //UP主UID - int64 authorId = 9; - - //短连接 - string shortLink = 10; - - //播放次数文案 - string playNumber = 11; -} - -//小封面推荐内容信息 -message SmallCoverRcmdItem { - //标题 - string title = 1; - - //封面url - string cover = 2; - - //跳转uri - string uri = 3; - - //参数 - string param = 4; - - //跳转类型 - //av:视频稿件 - string goto = 5; - - //封面右下角标文案(时长) - string coverRightText1 = 6; - - //右侧文案1(UP主昵称) - string rightDesc1 = 7; - - //右侧文案2(播放量 时间) - string rightDesc2 = 8; - - // - string coverGif = 9; - - //右侧文案1图标id - int32 rightIcon1 = 10; - - //右侧文案2图标id - int32 rightIcon2 = 11; -} - -// -message ThreeItemV1Item { - //条目基本信息 - Base base = 1; - - // - string coverLeftText = 2; - - // - int32 coverLeftIcon = 3; - - // - string desc1 = 4; - - // - string desc2 = 5; - - // - string badge = 6; -} - -// -message ThreePoint { - // - repeated DislikeReason dislikeReasons = 1; - - // - repeated DislikeReason feedbacks = 2; - - //稍后再看 - int32 watchLater = 3; -} - -// -message ThreePointV2 { - // - string title = 1; - - // - string subtitle = 2; - - // - repeated DislikeReason reasons = 3; - - // - string type = 4; - - // - int64 id = 5; -} - -// -message ThreePointV3 { - // - string title = 1; - - // - string selectedTitle = 2; - - // - string subtitle = 3; - - // - repeated DislikeReason reasons = 4; - - // - string type = 5; - - // - int64 id = 6; - - // - int32 selected = 7; - - // - string icon = 8; - - // - string selectedIcon = 9; - - // - string url = 10; - - // - int32 defaultId = 11; -} - -//三点v4 -message ThreePointV4 { - //分享面板信息 - SharePlane sharePlane = 1; - - //稍后再看 - WatchLater watchLater = 2; -} - -// -message TwoItemHV1Item { - // - string title = 1; - - // - string cover = 2; - - // - string uri = 3; - - // - string param = 4; - - // - Args args = 5; - - // - string goto = 6; - - // - string coverLeftText1 = 7; - - // - int32 coverLeftIcon1 = 8; - - // - string coverRightText = 9; -} - -// -message Up { - // - int64 id = 1; - - // - string name = 2; - - // - string desc = 3; - - // - Avatar avatar = 4; - - // - int32 officialIcon = 5; - - // - Button descButton = 6; - - // - string cooperation = 8; -} - -//稍后再看信息 -message WatchLater { - //稿件avid - int64 aid = 1; - - //稿件bvid - string bvid = 2; -} \ No newline at end of file diff --git a/grpc_api/bilibili/app/card/v1/ad.proto b/grpc_api/bilibili/app/card/v1/ad.proto new file mode 100644 index 0000000..418b384 --- /dev/null +++ b/grpc_api/bilibili/app/card/v1/ad.proto @@ -0,0 +1,65 @@ +syntax = "proto3"; + +package bilibili.app.card.v1; + +// +message AdInfo { + // + int64 creative_id = 1; + // + int32 creative_type = 2; + // + int32 card_type = 3; + // + CreativeContent creative_content = 4; + // + string ad_cb = 5; + // + int64 resource = 6; + // + int32 source = 7; + // + string request_id = 8; + // + bool is_ad = 9; + // + int64 cm_mark = 10; + // + int32 index = 11; + // + bool is_ad_loc = 12; + // + int32 card_index = 13; + // + string client_ip = 14; + // + bytes extra = 15; + // + int32 creative_style = 16; +} + +// +message CreativeContent { + // + string title = 1; + // + string description = 2; + // + int64 video_id = 3; + // + string username = 4; + // + string image_url = 5; + // + string image_md5 = 6; + // + string log_url = 7; + // + string log_md5 = 8; + // + string url = 9; + // + string click_url = 10; + // + string show_url = 11; +} diff --git a/grpc_api/bilibili/app/card/v1/card.proto b/grpc_api/bilibili/app/card/v1/card.proto new file mode 100644 index 0000000..87cdec8 --- /dev/null +++ b/grpc_api/bilibili/app/card/v1/card.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package bilibili.app.card.v1; + +import "bilibili/app/card/v1/single.proto"; + +// 卡片信息 +message Card { + oneof item { + // 小封面条目 + SmallCoverV5 smallCoverV5 = 1; + // + LargeCoverV1 largeCoverV1 = 2; + // + ThreeItemAllV2 threeItemAllV2 = 3; + // + ThreeItemV1 threeItemV1 = 4; + // + HotTopic hotTopic = 5; + // + DynamicHot dynamicHot = 6; + // + MiddleCoverV3 middleCoverV3 = 7; + // + LargeCoverV4 largeCoverV4 = 8; + // 热门列表顶部按钮 + PopularTopEntrance popularTopEntrance = 9; + // + RcmdOneItem rcmdOneItem = 10; + } +} diff --git a/grpc_api/bilibili/app/card/v1/common.proto b/grpc_api/bilibili/app/card/v1/common.proto new file mode 100644 index 0000000..2795f3e --- /dev/null +++ b/grpc_api/bilibili/app/card/v1/common.proto @@ -0,0 +1,324 @@ +syntax = "proto3"; + +package bilibili.app.card.v1; + +import "bilibili/app/card/v1/ad.proto"; + +// 条目基本信息 +message Base { + // 卡片类型 + string cardType = 1; + // 卡片跳转类型? + string cardGoto = 2; + // 跳转类型 + // av:视频稿件 mid:用户空间 + string goto = 3; + // 目标参数 + string param = 4; + // 封面url + string cover = 5; + // 标题 + string title = 6; + // 跳转uri + string uri = 7; + // + ThreePoint threePoint = 8; + // + Args args = 9; + // + PlayerArgs playerArgs = 10; + // 条目排位序号 + int64 idx = 11; + // + AdInfo adInfo = 12; + // + Mask mask = 13; + //来源标识 + // recommend:推荐 operation:管理? + string fromType = 14; + // + repeated ThreePointV2 threePointV2 = 15; + // + repeated ThreePointV3 threePointV3 = 16; + // + Button descButton = 17; + // 三点v4 + ThreePointV4 threePointV4 = 18; +} + +// 按钮信息 +message Button { + // 文案 + string text = 1; + // 参数 + string param = 2; + // + string uri = 3; + // 事件 + string event = 4; + // + int32 selected = 5; + // 类型 + int32 type = 6; + // 事件v2 + string eventV2 = 7; + // 关系信息 + Relation relation = 8; +} + +// +message ThreePoint { + // + repeated DislikeReason dislikeReasons = 1; + // + repeated DislikeReason feedbacks = 2; + //稍后再看 + int32 watchLater = 3; +} + +// +message DislikeReason { + // + int64 id = 1; + // + string name = 2; +} + +// +message Args { + // + int32 type = 1; + // + int64 up_id = 2; + // + string up_name = 3; + // + int32 rid = 4; + // + string rname = 5; + // + int64 tid = 6; + // + string tname = 7; + // + string track_id = 8; + // + string state = 9; + // + int32 converge_type = 10; + // + int64 aid = 11; +} + +// +message PlayerArgs { + // + int32 is_live = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + int32 sub_type = 4; + // + int64 room_id = 5; + // + int64 ep_id = 7; + // + int32 is_preview = 8; + // + string type = 9; + // + int64 duration = 10; + // + int64 season_id = 11; +} + +// +message Mask { + // + Avatar avatar = 1; + // + Button button = 2; +} + +// +message Avatar { + // + string cover = 1; + // + string text = 2; + // + string uri = 3; + // + int32 type = 4; + // + string event = 5; + // + string event_v2 = 6; + // + int32 defalut_cover = 7; +} + +// +message ThreePointV2 { + // + string title = 1; + // + string subtitle = 2; + // + repeated DislikeReason reasons = 3; + // + string type = 4; + // + int64 id = 5; +} + +// +message ThreePointV3 { + // + string title = 1; + // + string selected_title = 2; + // + string subtitle = 3; + // + repeated DislikeReason reasons = 4; + // + string type = 5; + // + int64 id = 6; + // + int32 selected = 7; + // + string icon = 8; + // + string selected_icon = 9; + // + string url = 10; + // + int32 default_id = 11; +} + +// 三点v4 +message ThreePointV4 { + // 分享面板信息 + SharePlane share_plane = 1; + // 稍后再看 + WatchLater watch_later = 2; +} + +// 分享面板信息 +message SharePlane { + // 标题 + string title = 1; + // 副标贴文案 + string shareSubtitle = 2; + // 备注 + string desc = 3; + // 封面url + string cover = 4; + // 稿件avid + int64 aid = 5; + // 稿件bvid + string bvid = 6; + // 允许分享方式 + map shareTo = 7; + // UP主昵称 + string author = 8; + // UP主mid + int64 authorId = 9; + // 短连接 + string shortLink = 10; + // 播放次数文案 + string playNumber = 11; +} + +// 稍后再看信息 +message WatchLater { + // 稿件avid + int64 aid = 1; + // 稿件bvid + string bvid = 2; +} + +// 标签框信息 +message ReasonStyle { + // 文案 + string text = 1; + // 文字颜色 + string textColor = 2; + // 背景色 + string bgColor = 3; + // 边框色 + string borderColor = 4; + // 图标url + string iconUrl = 5; + // 文字颜色-夜间 + string textColorNight = 6; + // 背景色-夜间 + string bgColorNight = 7; + // 边框色-夜间 + string borderColorNight = 8; + // 图标url-夜间 + string iconNightUrl = 9; + // 背景风格id + // 1:无背景 2:有背景 + int32 bgStyle = 10; + // + string uri = 11; + // + string iconBgUrl = 12; + // + string event = 13; + // + string eventV2 = 14; + // + int32 rightIconType = 15; + // + string leftIconType = 16; +} + +// +message LikeButton { + // + int64 Aid = 1; + // + int32 count = 2; + // + bool show_count = 3; + // + string event = 4; + // + int32 selected = 5; + // + string event_v2 = 6; +} + +// +message Up { + // + int64 id = 1; + // + string name = 2; + // + string desc = 3; + // + Avatar avatar = 4; + // + int32 official_icon = 5; + // + Button desc_button = 6; + // + string cooperation = 7; +} + +// 关系信息 +message Relation { + // 关系状态 + int32 status = 1; + // 是否关注 + int32 isFollow = 2; + // 是否粉丝 + int32 isFollowed = 3; +} diff --git a/grpc_api/bilibili/app/card/v1/double.proto b/grpc_api/bilibili/app/card/v1/double.proto new file mode 100644 index 0000000..beae32a --- /dev/null +++ b/grpc_api/bilibili/app/card/v1/double.proto @@ -0,0 +1,416 @@ +syntax = "proto3"; + +package bilibili.app.card.v1; + +import "bilibili/app/card/v1/common.proto"; + +// +message DoubleCards { + oneof Card { + // + SmallCoverV2 small_cover_v2 = 1; + // + OnePicV2 one_pic_v2 = 2; + // + ThreePicV2 three_pic_v2 = 3; + } +} + +// +message SmallCoverV2 { + // + Base base = 1; + // + string cover_gif = 2; + // + int32 cover_blur = 3; + // + string cover_left_text_1 = 4; + // + int32 cover_left_icon_1 = 5; + // + string cover_left_text_2 = 6; + // + int32 cover_left_icon_2 = 7; + // + string cover_right_text = 8; + // + int32 cover_right_icon = 9; + // + string cover_right_background_color = 10; + // + string subtitle = 11; + // + string badge = 12; + // + string rcmd_reason = 13; + // + string desc = 14; + // + Avatar avatar = 15; + // + int32 official_icon = 16; + // + int32 can_play = 17; + // + ReasonStyle rcmd_reason_style = 18; + // + ReasonStyle rcmd_reason_style_v2 = 19; + // + LikeButton like_button = 20; +} + +// +message SmallCoverV3 { + // + Base base = 1; + // + Avatar avatar = 2; + // + string cover_left_text = 3; + // + Button cover_right_button = 4; + // + string rcmd_reason = 5; + // + string desc = 6; + // + int32 official_icon = 7; + // + int32 can_play = 8; + // + ReasonStyle rcmd_reason_style = 9; +} + +// +message MiddleCoverV2 { + // + Base base = 1; + // + int32 ratio = 2; + // + string desc = 3; + // + string badge = 4; +} + +// +message LargeCoverV2 { + // + Base base = 1; + // + Avatar avatar = 2; + // + string badge = 3; + // + Button cover_right_button = 4; + // + string cover_left_text_1 = 5; + // + int32 cover_left_icon_1 = 6; + // + string cover_left_text_2 = 7; + // + int32 cover_left_icon_2 = 8; + // + string rcmd_reason = 9; + // + int32 official_icon = 10; + // + int32 can_play = 11; + // + ReasonStyle rcmd_reason_style = 12; + // + int32 show_top = 13; + // + int32 show_bottom = 14; +} + +// +message ThreeItemV2 { + // + Base base = 1; + // + int32 title_icon = 2; + // + string more_uri = 3; + // + string more_text = 4; + // + repeated ThreeItemV2Item items = 5; +} + +// +message ThreeItemV2Item { + // + Base base = 1; + // + int32 cover_left_icon = 2; + // + string desc_text_1 = 3; + // + int32 desc_icon_1 = 4; + // + string desc_text_2 = 5; + // + int32 desc_icon_2 = 6; + // + string badge = 7; +} + +// +message SmallCoverV4 { + // + Base base = 1; + // + string cover_badge = 2; + // + string desc = 3; + // + string title_right_text = 4; + // + int32 title_right_pic = 5; +} + +// +message TwoItemV2 { + // + Base base = 1; + // + repeated TwoItemV2Item items = 2; +} + +message TwoItemV2Item { + // + Base base = 1; + // + string badge = 2; + // + string cover_left_text_1 = 3; + // + int32 cover_left_icon_1 = 4; +} + +// +message MultiItem { + // + Base base = 1; + // + string more_uri = 2; + // + string more_text = 3; + // + repeated DoubleCards items = 4; +} + +// +message ThreePicV2 { + // + Base base = 1; + // + string left_cover = 2; + // + string right_cover_1 = 3; + // + string right_cover_2 = 4; + // + string cover_left_text_1 = 5; + // + int32 cover_left_icon_1 = 6; + // + string cover_left_text_2 = 7; + // + int32 cover_left_icon_2 = 8; + // + string cover_right_text = 9; + // + int32 cover_right_icon = 10; + // + string cover_right_background_color = 11; + // + string badge = 12; + // + string rcmd_reason = 13; + // + string desc = 14; + // + Avatar avatar = 15; + // + ReasonStyle rcmd_reason_style = 16; +} + +// +message OnePicV2 { + // + Base base = 1; + // + int32 cover_left_icon_1 = 2; + // + string cover_left_text_2 = 3; + // + string cover_right_text = 4; + // + int32 cover_right_icon = 5; + // + string cover_right_background_color = 6; + // + string badge = 7; + // + string rcmd_reason = 8; + // + Avatar avatar = 9; + // + ReasonStyle rcmd_reason_style = 10; +} + +// +message LargeCoverV3 { + // + Base base = 1; + // + string cover_gif = 2; + // + Avatar avatar = 3; + // + ReasonStyle top_rcmd_reason_style = 4; + // + ReasonStyle bottom_rcmd_reason_style = 5; + // + string cover_left_text_1 = 6; + // + int32 cover_left_icon_1 = 7; + // + string cover_left_text_2 = 8; + // + int32 cover_left_icon_2 = 9; + // + string cover_right_text = 10; + // + string desc = 11; + // + int32 official_icon = 12; +} + +// +message ThreePicV3 { + // + Base base = 1; + // + string left_cover = 2; + // + string right_cover_1 = 3; + // + string right_cover_2 = 4; + // + string cover_left_text_1 = 5; + // + int32 cover_left_icon_1 = 6; + // + string cover_left_text_2 = 7; + // + int32 cover_left_icon_2 = 8; + // + string cover_right_text = 9; + // + int32 cover_right_icon = 10; + // + string cover_right_background_color = 11; + // + string badge = 12; + // + ReasonStyle rcmd_reason_style = 13; +} + +// +message OnePicV3 { + // + Base base = 1; + // + string cover_left_text_1 = 2; + // + int32 cover_left_icon_1 = 3; + // + string cover_right_text = 4; + // + int32 cover_right_icon = 5; + // + string cover_right_background_color = 6; + // + string badge = 7; + // + ReasonStyle rcmd_reason_style = 8; +} + +// +message SmallCoverV7 { + // + Base base = 1; + // + string desc = 2; +} + +// +message SmallCoverV9 { + // + Base base = 1; + // + string cover_left_text_1 = 2; + // + int32 cover_left_icon_1 = 3; + // + string cover_left_text_2 = 4; + // + int32 cover_left_icon_2 = 5; + // + string cover_right_text = 6; + // + int32 cover_right_icon = 7; + // + int32 can_play = 8; + // + ReasonStyle rcmd_reason_style = 9; + // + Up up = 10; + // + ReasonStyle left_cover_badge_style = 11; + // + ReasonStyle left_bottom_rcmd_reason_style = 12; +} + +// +message SmallCoverConvergeV2 { + // + Base base = 1; + // + string cover_left_text_1 = 2; + // + int32 cover_left_icon_1 = 3; + // + string cover_left_text_2 = 4; + // + int32 cover_left_icon_2 = 5; + // + string cover_right_text = 6; + // + string cover_right_top_text = 7; + // + ReasonStyle rcmd_reason_style = 8; + // + ReasonStyle rcmd_reason_style_v2 = 9; +} + +// +message SmallChannelSpecial { + // + Base base = 1; + // + string bg_cover = 2; + // + string desc_1 = 3; + // + string desc_2 = 4; + // + string badge = 5; + // + ReasonStyle rcmd_reason_style_2 = 6; +} diff --git a/grpc_api/bilibili/app/card/v1/single.proto b/grpc_api/bilibili/app/card/v1/single.proto new file mode 100644 index 0000000..24ad90a --- /dev/null +++ b/grpc_api/bilibili/app/card/v1/single.proto @@ -0,0 +1,313 @@ +syntax = "proto3"; + +package bilibili.app.card.v1; + +import "bilibili/app/card/v1/common.proto"; + +// +message SmallCoverV5 { + // 条目基本信息 + Base base = 1; + // + string cover_gif = 2; + // + Up up = 3; + // 封面右下角标文案 + string cover_right_text_1 = 4; + // 右侧文案1 + string right_desc_1 = 5; + // 右侧文案2 + string right_desc_2 = 6; + // 右侧推荐原因标签框 + ReasonStyle rcmd_reason_style = 7; + // + HotwordEntrance hotword_entrance = 8; + // 直播小卡的角标 + ReasonStyle corner_mark_style = 9; + // 右侧文案1图标id + int32 right_icon_1 = 10; + // 右侧文案2图标id + int32 right_icon_2 = 11; + // 左上角角标 + ReasonStyle left_corner_mark_style = 12; +} + +// +message HotwordEntrance { + // + int64 hotword_id = 1; + // + string hot_text = 2; + // + string h5_url = 3; + // + string icon = 4; +} + +// +message LargeCoverV1 { + // 条目基本信息 + Base base = 1; + // + string cover_gif = 2; + // + Avatar avatar = 3; + // + string cover_left_text_1 = 4; + // + string cover_left_text_2 = 5; + // + string cover_left_text_3 = 6; + // + string cover_badge = 7; + // + string top_rcmd_reason = 8; + // + string bottom_rcmd_reason = 9; + // + string desc = 10; + // + int32 official_icon = 11; + // + int32 can_play = 12; + // + ReasonStyle top_rcmd_reason_style = 13; + // + ReasonStyle bottom_rcmd_reason_style = 14; + // + ReasonStyle rcmd_reason_style_v2 = 15; + // + ReasonStyle left_cover_badge_style = 16; + // + ReasonStyle right_cover_badge_style = 17; + // + string cover_badge_2 = 18; + // + LikeButton like_button = 19; + // + int32 title_single_line = 20; + // + string cover_right_text = 21; +} + +// +message ThreeItemAllV2 { + // 条目基本信息 + Base base = 1; + // + ReasonStyle top_rcmd_reason_style = 2; + // + repeated TwoItemHV1Item item = 3; +} + +// +message TwoItemHV1Item { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string param = 4; + // + Args args = 5; + // + string goto = 6; + // + string cover_left_text_1 = 7; + // + int32 cover_left_icon_1 = 8; + // + string cover_right_text = 9; +} + +// 推荐 +message RcmdOneItem { + // 条目基本信息 + Base base = 1; + // 标签框信息 + ReasonStyle topRcmdReasonStyle = 2; + // 小封面推荐内容信息 + SmallCoverRcmdItem item = 3; +} + +// 小封面推荐内容信息 +message SmallCoverRcmdItem { + // 标题 + string title = 1; + // 封面url + string cover = 2; + // 跳转uri + string uri = 3; + // 参数 + string param = 4; + // 跳转类型 + // av:视频稿件 + string goto = 5; + // 封面右下角标文案 + string coverRightText1 = 6; + // 右侧文案1 + string rightDesc1 = 7; + // 右侧文案2 + string rightDesc2 = 8; + // + string coverGif = 9; + // 右侧文案1图标id + int32 rightIcon1 = 10; + // 右侧文案2图标id + int32 rightIcon2 = 11; +} + +// +message ThreeItemV1 { + // 条目基本信息 + Base base = 1; + // + int32 titleIcon = 2; + // + string moreUri = 3; + // + string moreText = 4; + // + repeated ThreeItemV1Item items = 5; +} + +// +message ThreeItemV1Item { + // 条目基本信息 + Base base = 1; + // + string coverLeftText = 2; + // + int32 coverLeftIcon = 3; + // + string desc1 = 4; + // + string desc2 = 5; + // + string badge = 6; +} + +// +message HotTopicItem { + // + string cover = 1; + // + string uri = 2; + // + string param = 3; + // + string name = 4; +} + +// +message HotTopic { + // 条目基本信息 + Base base = 1; + // + string desc = 2; + // + repeated HotTopicItem items = 3; +} + +// +message DynamicHot { + // 条目基本信息 + Base base = 1; + // + string top_left_title = 2; + // + string desc1 = 3; + // + string desc2 = 4; + // + string more_uri = 5; + // + string more_text = 6; + // + repeated string covers = 7; + // + string cover_right_text = 8; + // + ReasonStyle top_rcmd_reason_style = 9; +} + +// +message MiddleCoverV3 { + // 条目基本信息 + Base base = 1; + // + string desc1 = 2; + // + string desc2 = 3; + // + ReasonStyle cover_badge_style = 4; +} + +// +message LargeCoverV4 { + // 条目基本信息 + Base base = 1; + // + string cover_left_text_1 = 2; + // + string cover_left_text_2 = 3; + // + string cover_left_text_3 = 4; + // + string cover_badge = 5; + // + int32 can_play = 6; + // + Up up = 7; + // + string short_link = 8; + // + string share_subtitle = 9; + // + string play_number = 10; + // + string bvid = 11; + // + string sub_param = 12; +} + +// 热门列表顶部按钮 +message PopularTopEntrance { + // 条目基本信息 + Base base = 1; + // 按钮项 + repeated EntranceItem items = 2; +} + +// 热门列表按钮信息 +message EntranceItem { + // 跳转类型 + string goto = 1; + // 图标url + string icon = 2; + // 标题 + string title = 3; + // 入口模块id + string moduleId = 4; + // 跳转uri + string uri = 5; + // 入口id + int64 entranceId = 6; + // 气泡信息 + Bubble bubble = 7; + // 入口类型 + // 1:代表分品类热门 + int32 entranceType = 8; +} + +// 气泡信息 +message Bubble { + // 文案 + string bubbleContent = 1; + // 版本 + int32 version = 2; + // 起始时间 + int64 stime = 3; +} \ No newline at end of file diff --git a/grpc_api/bilibili/app/dynamic/v1/dynamic.proto b/grpc_api/bilibili/app/dynamic/v1/dynamic.proto new file mode 100644 index 0000000..229f485 --- /dev/null +++ b/grpc_api/bilibili/app/dynamic/v1/dynamic.proto @@ -0,0 +1,1354 @@ +syntax = "proto3"; + +package bilibili.app.dynamic.v1; + +import "bilibili/app/archive/middleware/v1/preload.proto"; + +// v1动态 +service Dynamic { + // 动态视频页 + rpc DynVideo (DynVideoReq) returns (DynVideoReqReply); + // 批量动态id获取动态详情 + rpc DynDetails (DynDetailsReq) returns (DynDetailsReply); + // 小视频连播页 + rpc SVideo (SVideoReq) returns (SVideoReply); + // 动态tab页 + rpc DynTab (DynTabReq) returns (DynTabReply); + // 同城接口开关 + rpc DynOurCitySwitch (DynOurCitySwitchReq) returns (NoReply); + // 动态同城页 + rpc DynOurCity(DynOurCityReq) returns (DynOurCityReply); + // 最近访问-个人视频feed流 + rpc DynVideoPersonal(DynVideoPersonalReq) returns (DynVideoPersonalReply); + // 最近访问-标记已读 + rpc DynUpdOffset(DynUpdOffsetReq) returns (NoReply); + // 动态红点接口 + rpc DynRed(DynRedReq) returns(DynRedReply); + // 查看更多-列表 + rpc DynMixUpListViewMore(NoReq) returns (DynMixUpListViewMoreReply); + // 查看更多-搜索 + rpc DynMixUpListSearch(DynMixUpListSearchReq) returns (DynMixUpListSearchReply); + // 同城点击上报 + rpc OurCityClickReport(OurCityClickReportReq) returns (OurCityClickReportReply); + // 位置定位 + rpc GeoCoder(GeoCoderReq) returns (GeoCoderReply); +} + +// 空请求 +message NoReq {} + +// 空响应 +message NoReply {} + +// 动态视频页-请求 +message DynVideoReq { + // 青少年模式 + int32 teenagers_mode = 1; + // 透传 update_baseline + string update_baseline = 2; + // 透传 history_offset + string offset = 3; + // 向下翻页数 + int32 page = 4; + // 刷新方式 + // 1:向上刷新 2:向下翻页 + int32 refresh_type = 5; + // 清晰度 + int32 qn = 6; + // 流版本 + int32 fnver = 7; + // 流类型 + int32 fnval = 8; + // 是否强制使用域名 + int32 force_host = 9; + // 是否4K + int32 fourk = 10; +} + +// 动态视频页-响应 +message DynVideoReqReply { + // 动态列表 + repeated DynamicItem list = 1; + // 更新的动态数 + int32 update_num = 2; + // 历史偏移 + string history_offset = 3; + // 更新基础信息 + string update_baseline = 4; + // 是否还有更多数据 + int32 has_more = 5; +} + +// 动态卡片项 +message DynamicItem { + // 卡片类型 + // forward:转发 av:稿件视频 fold:折叠 pgc:pgc内容 courses:付费视频 upList:最近访问列表 followList:我的追番列表 + string card_type = 1; + // 转发类型下,items的类型 + string item_type = 2; + // 模块内容 + repeated Module modules = 3; + // 动态ID str + string dyn_id_str = 4; + // 转发动态ID str + string orig_dyn_id_str = 5; + // r_type + int32 r_type = 6; + // 该卡片下面是否含有折叠卡 + int32 has_fold = 7; +} + +// 模块 +message Module { + // 类型 + // fold:折叠 author:发布人 dynamic:动态卡片内容 state:计数信息 forward:转发 extend:小卡信息 dispute:争议小黄条 desc:描述信息 + // likeUser:点赞用户 upList:最近访问列表 followList:我的追番 + string module_type = 1; + oneof module_item{ + // 折叠 + ModuleFold module_fold = 2; + // 发布人 + ModuleAuthor module_author = 3; + // 动态卡片内容 + ModuleDynamic module_dynamic = 4; + // 计数信息 + ModuleState module_state = 5; + // 转发 + ModuleForward module_forward = 6; + // 小卡信息 + ModuleExtend module_extend = 7; + // 争议小黄条 + ModuleDispute module_dispute = 8; + // 描述信息 + ModuleDesc module_desc = 9; + // 点赞用户 + ModuleLikeUser module_likeUser= 10; + // 最近访问列表 + ModuleDynUpList module_upList = 11; + // 我的追番 + ModuleFollowList module_followList = 12; + } +} + +// 折叠模块 +message ModuleFold { + // 折叠分类(该字段废弃) + int32 fold_type = 1; + // 折叠文案 + string text = 2; + // 被折叠的动态 + string fold_ids = 3; + // 被折叠的用户信息 + repeated UserInfo fold_users = 4; + // 折叠分类 + FoldType fold_type_v2 = 5; +} + +// 折叠分类 +enum FoldType { + // 占位 + FoldTypeZero = 0; + // 用户发布折叠 + FoldTypePublish = 1; + // 转发超频折叠 + FoldTypeFrequent = 2; + // 联合投稿折叠 + FoldTypeUnite = 3; + // 动态受限折叠 + FoldTypeLimit = 4; +} + +// 作者信息模块 +message ModuleAuthor { + // 用户mid + int64 id = 1; + // 时间标签 + string ptime_label_text = 2; + // 用户详情 + UserInfo author = 3; + // 装扮卡片 + DecorateCard decorate_card = 4; +} + +// 争议小黄条模块 +message ModuleDispute { + // 标题 + string title = 1; + // 描述内容 + string desc = 2; + // 跳转链接 + string uri = 3; +} + +// 文本内容模块 +message ModuleDesc { + // 文本描述 + repeated Description desc = 1; +} + +// 动态详情模块 +message ModuleDynamic { + // 卡片类型 + // ugc:ugc卡 pgc:pgc卡 currSeason:付费课程系列 currBatch:付费课程批次 + string card_type = 1; + // 正文卡片 + oneof card { + // ugc卡 + CardUGC card_ugc = 2; + // pgc卡 + CardPGC card_pgc = 3; + // 付费课程系列 + CardCurrSeason card_curr_season = 4; + // 付费课程批次 + CardCurrBatch card_curr_batch = 5; + } +} + +// 点赞用户模块 +message ModuleLikeUser { + // 点赞用户 + repeated LikeUser like_users = 1; + // 文案 + string display_text = 2; +} + +// 计数信息模块 +message ModuleState { + // 转发数 + int32 repost = 1; + // 点赞数 + int32 like = 2; + // 评论数 + int32 reply = 3; + // 点赞拓展信息 + LikeInfo like_info = 4; + // 禁评 + bool no_comment = 5; + // 禁转 + bool no_forward = 6; +} + +// 转发模块 +message ModuleForward { + // 卡片类型 + string card_type = 1; + // 嵌套模型 + repeated Module modules= 2; +} + +// UGC视频卡片数据 +message CardUGC { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 秒开地址 + string uri = 3; + // 视频封面展示项 1 + string cover_left_text_1 = 4; + // 视频封面展示项 2 + string cover_left_text_2 = 5; + // 封面视频展示项 3 + string cover_left_text_3 = 6; + // avid + int64 avid = 7; + // cid + int64 cid = 8; + // 视频源类型 + MediaType media_type = 9; + // 尺寸信息 + Dimension dimension = 10; + // 角标 + repeated VideoBadge badge = 11; + // 是否能够自动播放 + int32 can_play= 12; +} + +// PGC视频卡片数据 +message CardPGC { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 秒开地址 + string uri = 3; + // 视频封面展示项 1 + string cover_left_text_1 = 4; + // 视频封面展示项 2 + string cover_left_text_2 = 5; + // 封面视频展示项 3 + string cover_left_text_3 = 6; + // cid + int64 cid = 7; + // season_id + int64 season_id = 8; + // epid + int64 epid = 9; + // aid + int64 aid = 10; + // 视频源类型 + MediaType media_type = 11; + // 番剧类型 + VideoSubType sub_type = 12; + // 番剧是否为预览视频 0:否,1:是 + int32 is_preview = 13; + // 尺寸信息 + Dimension dimension = 14; + // 角标 + repeated VideoBadge badge = 15; + // 是否能够自动播放 + int32 can_play= 16; + // PGC单季信息 + PGCSeason season = 17; +} + +// 付费课程系列卡 +message CardCurrSeason { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 跳转地址 + string uri = 3; + // 展示项 1(更新信息) + string text_1 = 4; + // 描述信息 + string desc = 5; + // 角标 + VideoBadge badge = 6; +} + +// 付费课程批次卡 +message CardCurrBatch { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 跳转地址 + string uri = 3; + // 展示项 1(本集标题) + string text_1 = 4; + // 展示项 2(更新了多少个视频) + string text_2 = 5; + // 角标 + VideoBadge badge = 6; +} + +// 角标信息 +message VideoBadge { + // 文案 + string text = 1; + // 文案颜色-日间 + string text_color = 2; + // 文案颜色-夜间 + string text_color_night = 3; + // 背景颜色-日间 + string bg_color = 4; + // 背景颜色-夜间 + string bg_color_night = 5; + // 边框颜色-日间 + string border_color = 6; + // 边框颜色-夜间 + string border_color_night = 7; + // 样式 + int32 bg_style = 8; +} + +// 尺寸信息 +message Dimension { + int64 height = 1; + int64 width = 2; + int64 rotate = 3; +} + +// 番剧类型 +enum VideoSubType { + // 没有子类型 + VideoSubTypeNone = 0; + // 番剧 + VideoSubTypeBangumi = 1; + // 电影 + VideoSubTypeMovie = 2; + // 纪录片 + VideoSubTypeDocumentary = 3; + // 国创 + VideoSubTypeDomestic = 4; + // 电视剧 + VideoSubTypeTeleplay = 5; +} + +// 播放器类型 +enum MediaType { + // 本地 + MediaTypeNone = 0; + // UGC + MediaTypeUGC = 1; + // PGC + MediaTypePGC = 2; + // 直播 + MediaTypeLive = 3; + // 小视频 + MediaTypeVCS = 4; +} + +// 拓展信息 +message ModuleExtend { + // 拓展 + repeated Extend extend = 1; +} + +// 拓展 +message Extend { + // 类型 + // topic:话题小卡 lbs:lbs hot:热门视频 game:游戏 + string type = 1; + // 卡片详情 + oneof extend { + // 话题小卡 + ExtInfoTopic ext_info_topic = 2; + // lbs + ExtInfoLBS ext_info_lbs = 3; + // 热门视频 + ExtInfoHot ext_info_hot = 4; + // 游戏 + ExtInfoGame ext_info_game = 5; + } +} + +// 拓展信息-游戏小卡 +message ExtInfoGame { + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; +} + +// 拓展信息-话题小卡 +message ExtInfoTopic { + // 标题-话题名 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; +} + +// 拓展信息-lbs +message ExtInfoLBS { + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; + // poiType + int32 poi_type = 4; +} + +// 拓展信息-热门视频 +message ExtInfoHot { + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; +} + +// 点赞拓展信息 +message LikeInfo { + // 点赞动画 + LikeAnimation animation = 1; + // 是否点赞 + int32 is_like = 2; +} + +// 点赞用户 +message LikeUser { + // 用户mid + int64 uid = 1; + // 用户昵称 + string uname = 2; + // 点击跳转链接 + string uri = 3; +} + +// 点赞动画 +message LikeAnimation { + // 开始动画 + string begin = 1; + // 过程动画 + string proc = 2; + // 结束动画 + string end = 3; + // id + int64 like_icon_id = 4; +} + +// 文本描述 +message Description { + // 文本内容 + string text = 1; + // 文本类型 + string type = 2; + // 点击跳转链接 + string uri = 3; + // emoji类型 + string emoji_type = 4; + // 商品类型 + string goods_type = 5; +} + +// 装扮卡片 +message DecorateCard { + // 装扮卡片id + int64 id = 1; + // 装扮卡片链接 + string card_url = 2; + // 装扮卡片点击跳转链接 + string jump_url = 3; + // 粉丝样式 + DecoCardFan fan = 4; +} + +// 粉丝样式 +message DecoCardFan { + // 是否是粉丝 + int32 is_fan = 1; + // 数量 + int32 number = 2; + // 颜色 + string color = 3; +} + +// 用户信息 +message UserInfo { + // 用户mid + int64 mid = 1; + // 用户昵称 + string name = 2; + // 用户头像 + string face = 3; + // 认证信息 + OfficialVerify official = 4; + // 大会员信息 + VipInfo vip = 5; + // 直播信息 + LiveInfo live = 6; + // 空间页跳转链接 + string uri = 7; + // 挂件信息 + UserPendant pendant = 8; + // 认证名牌 + Nameplate nameplate = 9; +} + +// 认证名牌 +message Nameplate { + // nid + int64 nid = 1; + // 名称 + string name = 2; + // 图片地址 + string image = 3; + // 小图地址 + string image_small = 4; + // 等级 + string level = 5; + // 获取条件 + string condition = 6; +} + +// 头像挂件信息 +message UserPendant { + // pid + int64 pid = 1; + // 名称 + string name = 2; + // 图片链接 + string image = 3; + // 有效期 + int64 expire = 4; +} + +// 认证信息 +message OfficialVerify { + // 认证类型 + // 127:未认证 0:个人 1:机构 + int32 type = 1; + // 认证描述 + string desc = 2; + // + int32 is_atten = 3; +} + +// 大会员信息 +message VipInfo { + // 大会员类型 + int32 Type = 1; + // 大会员状态 + int32 status = 2; + // 到期时间 + int64 due_date = 3; + // 标签 + VipLabel label = 4; + // 主题 + int32 theme_type = 5; +} + +// 大会员标签 +message VipLabel { + // 图片地址 + string path = 1; +} + +// 直播信息 +message LiveInfo { + // 是否在直播 + // 0:未直播 1:正在直播 + int32 is_living = 1; + // 跳转链接 + string uri = 2; +} + +// 批量动态id获取动态详情请求参数 +message DynDetailsReq { + // 青少年模式 + int32 teenagers_mode = 1; + // 动态id + string dynamic_ids = 2; + // 清晰度 + int32 qn = 3; + // 流版本 + int32 fnver = 4; + // 流功能 + int32 fnval = 5; + // 是否强制使用域名 + int32 force_host = 6; + // 是否4k + int32 fourk = 7; +} + +// 批量动态id获取动态详情返回值 +message DynDetailsReply { + // 动态列表 + repeated DynamicItem list = 1; +} + +// 小视频连播页-请求 +message SVideoReq { + // 当前素材的id + int64 oid = 1; + // 当前素材类型 + // 1:动态(如果有oid则必传) 2:热门分类 3:热点聚合 + SVideoType type = 2; + // 翻页offset + string offset = 3; + // 清晰度(旧版) + int32 qn = 4; + // 流版本(旧版) + int32 fnver = 5; + // 流类型(旧版) + int32 fnval = 6; + // 是否强制使用域名(旧版) + int32 force_host = 7; + // 是否4k(旧版) + int32 fourk = 8; + // 当前页面spm + string spmid = 9; + // 上级页面spm + string from_spmid = 10; + // 秒开参数 + PlayerPreloadParams player_preload = 11; + // 热门进入联播页的锚点aid + int64 focus_aid = 12; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 13; +} + +// 入口联播页类型 +enum SVideoType { + // 无类型 + TypeNone = 0; + // 动态 + TypeDynamic = 1; + // 热门分类 + TypePopularIndex = 2; + // 热点聚合 + TypePopularHotword = 3; +} + +// 小视频连播页-响应 +message SVideoReply { + // 列表 + repeated SVideoItem list = 1; + // 翻页游标 + string offset = 2; + // 是否还有更多数据 + // 1:有 + int32 has_more = 3; + // 顶部 + SVideoTop top = 4; +} + +// 顶部 +message SVideoTop { + // 联播页标题 + string Title = 1; + // 联播页导语 + string Desc = 2; +} + +// 秒开参数 +message PlayerPreloadParams { + // 清晰度 + int32 qn = 1; + // 流版本 + int32 fnver = 2; + // 流类型 + int32 fnval = 3; + // 是否强制使用域名 + int32 force_host = 4; + // 是否4k + int32 fourk = 5; +} + +// 小视频卡片项 +message SVideoItem { + // 卡片类型 + // av:稿件视频 + string card_type = 1; + // 模块内容 + repeated SVideoModule modules = 2; + // 动态ID str + string dyn_id_str = 3; + // 卡片游标 + int64 index = 4; +} + +// 小视频模块 +message SVideoModule { + // 类型 + // author:发布人 player:播放器内容 desc:描述信息 stat:计数信息 + string module_type = 1; + oneof module_item { + // 发布人 + SVideoModuleAuthor module_author = 2; + // 播放器内容 + SVideoModulePlayer module_player = 3; + // 描述信息 + SVideoModuleDesc module_desc = 4; + // 计数信息 + SVideoModuleStat module_stat = 5; + } +} + +// 作者信息模块 +message SVideoModuleAuthor { + // 用户mid + int64 mid = 1; + // 用户昵称 + string name = 2; + // 用户头像 + string face = 3; + // 发布描述 + string pub_desc = 4; + // 是否关注up + // 1:已关注 + int32 is_attention = 5; + // 跳转地址 + string uri = 6; +} + +// 播放器模块 +message SVideoModulePlayer { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 跳转地址,秒开地址如果有会拼接player_preload可参考天马 + string uri = 3; + // aid + int64 aid = 4; + // cid + int64 cid = 5; + // 视频时长 + int64 duration = 6; + // 尺寸信息 + Dimension dimension = 7; +} + +// 文本内容模块 +message SVideoModuleDesc { + // 文本内容 + string text = 1; + // 跳转地址 + string uri = 2; +} + +// 计数信息模块 +message SVideoModuleStat { + // 计数内容 + repeated SVideoStatInfo stat_info = 1; + // 分享需要 + ShareInfo share_info = 2; +} + +// 计数内容 +message SVideoStatInfo { + // 计数icon + // 1:分享符号 2:评论符号 3:点赞符号 + int32 icon = 1; + // 计数值 + int64 num = 2; + // 选中状态 + // 1:选中 + int32 selected = 3; + // 跳转链接(如评论) + string uri = 4; +} + +// 分享需要 +message ShareInfo { + // 稿件avid + int64 aid = 1; + // 稿件bvid + string bvid = 2; + // 标题 + string title = 3; + // 副标题 + string subtitle = 4; + // 稿件封面 + string cover = 5; + // up mid + int64 mid = 6; + // up昵称 + string name = 7; +} + +// 动态tab页-请求 +message DynTabReq { + // 青少年模式 + // 1:开启青少年模式 + int32 teenagers_mode = 1; +} + +// 动态tab页-响应 +message DynTabReply { + // 动态tab详情列表 + repeated DynTab dyn_tab = 1; +} + +// 动态tab详情 +message DynTab { + // tab标题 优先展示用,未开启状态第一次请求返回同城,后续请求返回对应城市名 + string title = 1; + // 跳转链接 + string uri = 2; + // 气泡内容 + string bubble = 3; + // 是否推红点 + int32 red_point = 4; + // 城市ID + int64 city_id = 5; + // 是否弹窗 + int32 is_popup = 6; + // 弹窗内容 + Popup popup = 7; + // 是否默认tab + bool defaultTab = 8; + // 副标题 对应城市名 + string sub_title = 9; + // 锚点字段 + string anchor = 10; + // 内测文案 + string internal_test = 11; +} + +// 动态tab弹窗详情 +message Popup { + // 标题 + string title = 1; + // 文案 + string desc = 2; + // 文案附加跳转地址 + string uri = 3; +} + +// 动态同城开关-请求 +message DynOurCitySwitchReq { + // 开关参数 + // 0:关闭 1:开启 + int32 switch = 1; +} + +// 动态同城页-请求 +message DynOurCityReq { + // 城市ID + int64 city_id = 1; + // 纬度 + double lat = 2; + // 经度 + double lng = 3; + // 透传上一次接口请求返回的offset + string offset = 4; + // 每页元素个数 + int32 page_size = 5; + // 青少年模式 + // 1:开启青少年模式 + int32 teenagers_mode = 6; + // 清晰度(旧版) + int32 qn = 7; + // 流版本(旧版) + int32 fnver = 8; + // 流类型(旧版) + int32 fnval = 9; + // 是否强制使用域名(旧版) + int32 force_host = 10; + // 是否4k(旧版) + int32 fourk = 11; + // 是否开启lbs + // 0:关闭 1:开启 + int32 lbs_state = 12; + // 是否刷新城市 + uint32 refresh_city = 13; + // 魔镜设置 + ExpConf exp_conf = 14; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 15; + // 城市码 + int64 city_code = 16; + // 构建时间 + int64 build_time = 17; +} + +// 魔镜设置 +message ExpConf { + // 是否是魔镜请求 + int32 exp_enable = 1; + // 实验配置 + repeated Exp exps = 2; +} + +// 魔镜实验配置项 +message Exp { + // 实验名 + string exp_name = 1; + // 实验组 + string exp_group = 2; +} + +// 动态同城-响应 +message DynOurCityReply { + // 翻页游标 + string offset = 1; + // 是否还有更多数据 + // 1:有 + int32 has_more = 2; + // 样式类型 + // 1:双列 2:瀑布流 + int32 style = 3; + // 顶导信息 + string top_label = 4; + // 列表详情 + repeated DynOurCityItem list = 5; + // 顶导按钮信息 + string top_button_label = 6; + // 城市ID + int32 city_id = 7; + // 城市名 + string city_name = 8; +} + +// 动态同城物料 +message DynOurCityItem { + // 卡片类型 + // av:稿件 draw:图文 + string card_type = 1; + // 动态ID + int64 dyn_id = 2; + // 跳转地址 + string uri = 3; + // 模块列表 + repeated DynOurCityModule modules = 4; + // 资源ID + int64 rid = 5; + // 透传服务端魔镜参数 + string debug_info = 6; +} + +// 动态同城物料模块 +message DynOurCityModule { + // 类型 + // cover:封面 desc:描述 author:发布人 extend:扩展部分 + string module_type = 1; + oneof module_item { + // 封面 + DynOurCityModuleCover module_cover = 2; + // 描述 + DynOurCityModuleDesc module_desc = 3; + // 发布人 + DynOurCityModuleAuthor module_author = 4; + // 扩展部分 + DynOurCityModuleExtend module_extend = 5; +} +} + +// 动态同城物料-封面模块 +message DynOurCityModuleCover { + // 封面图 单图样式取第一个元素 + repeated string covers = 1; + // 封面样式 + // 1:横图 2:竖图 3:方图 + int32 style = 2; + // 视频封面展示项图标 1 + int32 cover_left_icon_1 = 3; + // 视频封面展示项 1 + string cover_left_text_1 = 4; + // 视频封面展示项图标 2 + int32 cover_left_icon_2 = 5; + // 视频封面展示项 2 + string cover_left_text_2 = 6; + // 封面视频展示项 3 + string cover_left_text_3 = 7; + // 角标 + repeated VideoBadge badge = 8; +} + +// 动态同城物料-描述模块 +message DynOurCityModuleDesc { + // 描述信息 + string desc = 1; +} + +// 动态同城物料-发布人模块 +message DynOurCityModuleAuthor { + // 用户Mid + int64 mid = 1; + // 用户昵称 + string name = 2; + // 用户头像 + string face = 3; + // 跳转地址 + string uri = 4; +} + +// 动态同城物料-扩展部分模块 +message DynOurCityModuleExtend { + // 类型 + string type = 1; + oneof extend { + // LBS模块 + DynOurCityModuleExtendLBS extend_lbs = 2; + } +} + +// 动态同城物料extent-LBS模块 +message DynOurCityModuleExtendLBS{ + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; + // poiType + int32 poi_type = 4; +} + +// 最近访问up主列表 +message ModuleDynUpList { + // 标题展示文案 + string module_title = 1; + // “全部”按钮文案 + string show_all = 2; + // up主列表 + repeated UpListItem list = 3; +} + +// up主列表 +message UpListItem { + // 是否有更新 + // 0:没有 1:有 + int32 has_update = 1; + // up主头像 + string face = 2; + // up主昵称 + string name = 3; + // up主uid + int64 uid = 4; +} + +// 我的追番列表 +message ModuleFollowList { + // 查看全部的跳转链接 + string view_all_link = 1; + // + repeated FollowListItem list = 2; +} + +// 我的追番列表Item +message FollowListItem { + // season_id + int32 season_id = 1; + // 标题 + string title = 2; + // 封面图 + string cover = 3; + // 跳转链接 + string url = 4; + // 最新ep + NewEP new_ep = 5; +} + +// 最新ep +message NewEP { + // 最新话epid + int32 id = 1; + // 更新至XX话 + string index_show = 2; + // 更新剧集的封面 + string cover = 3; +} + +// 最近访问-个人feed流列表-请求 +message DynVideoPersonalReq { + // 青少年模式 + // 1:开启青少年模式 + int32 teenagers_mode = 1; + // 被访问者的mid + int64 host_uid = 2; + // 偏移量 第一页可传空 + string offset = 3; + // 标明下拉几次 + int32 page = 4; + // 是否是预加载 + int32 is_preload = 5; + // 清晰度 + int32 qn = 6; + // 流版本 + int32 fnver = 7; + // 流类型 + int32 fnval = 8; + // 是否强制使用域名 + int32 force_host = 9; + // 是否4k + int32 fourk = 10; +} + +// 最近访问-个人feed流列表-响应 +message DynVideoPersonalReply { + // 动态列表 + repeated DynamicItem list = 1; + // 偏移量 + string offset = 2; + // 是否还有更多数据 + int32 has_more = 3; + // 已读进度 + string read_offset = 4; +} + +// 最近访问-标记已读-请求 +message DynUpdOffsetReq { + // 被访问者的UID + int64 host_uid = 1; + // 用户已读进度 + string read_offset = 2; +} + +// PGC单季信息 +message PGCSeason { + // 是否完结 + int32 is_finish = 1; + // 标题 + string title = 2; + // 类型 + int32 type = 3; +} + +// 动态红点接口-请求 +message DynRedReq { + // 动态红点接口各tab offset信息 + repeated TabOffset tab_offset = 1; +} + +// 动态红点接口各tab offset信息 +message TabOffset { + // 1:综合页 2:视频页 + int32 tab = 1; + // 上一次对应列表页offset + string offset = 2; +} + +// 红点接口-响应 +message DynRedReply { + // 类型 + // count:数字红点 point:普通红点 no_point:没有红点 + string red_type = 1; + // 红点具体信息 + DynRedItem dyn_red_item = 2; + // 默认tab 值对应tab接口下发的anchor + string default_tab = 3; +} + +// 红点接口物料 +message DynRedItem { + // 数字红点有效 更新数 + uint64 count = 1; +} + +// 直播信息 +message MixUpListLiveItem { + // 直播状态 + // 0:未直播 1:直播中 + bool status = 1; + // 房间号 + int64 room_id = 2; + // 跳转地址 + string uri = 3; +} + +// 查看更多-列表单条数据 +message MixUpListItem { + // 用户mid + int64 uid = 1; + // 特别关注 + // 0:否 1:是 + int32 special_attention = 2; + // 小红点状态 + // 0:没有 1:有 + int32 reddot_state = 3; + // 直播信息 + MixUpListLiveItem live_info = 4; + // 昵称 + string name = 5; + // 头像 + string face = 6; + // 认证信息 + OfficialVerify official = 7; + // 大会员信息 + VipInfo vip = 8; + // 关注状态 + Relation relation = 9; +} + +// 查看更多-列表-响应 +message DynMixUpListViewMoreReply { + // 关注up主列表信息 + repeated MixUpListItem items = 1; + // 默认搜索文案 + string search_default_text = 2; +} + +// 查看更多-搜索-请求 +message DynMixUpListSearchReq { + // + string name = 1; +} + +// 查看更多-搜索-响应 +message DynMixUpListSearchReply { + // + repeated MixUpListItem items = 1; +} + +// 关注关系 +message Relation { + // 关注状态 + RelationStatus status = 1; + // 关注 + int32 is_follow = 2; + // 被关注 + int32 is_followed = 3; + // 文案 + string title = 4; +} + +// 关注状态 +enum RelationStatus { + relation_status_none = 0; + // 未关注 + relation_status_nofollow = 1; + // 关注 + relation_status_follow = 2; + // 被关注 + relation_status_followed = 3; + // 互相关注 + relation_status_mutual_concern = 4; + // 特别关注 + relation_status_special = 5; +} + +// 动态同城点击上报-请求 +message OurCityClickReportReq { + // 动态ID + string dynamic_id = 1; + // 城市ID + int64 city_id = 2; + // 纬度 + double lat = 3; + // 经度 + double lng = 4; +} + +// 动态同城点击上报-响应 +message OurCityClickReportReply {} + +// 位置定位-请求 +message GeoCoderReq { + // 纬度 + double lat = 1; + // 经度 + double lng = 2; + // 页面来源 + string from = 3; +} + +// 位置定位-响应 +message GeoCoderReply { + // 以行政区划+道路+门牌号等信息组成的标准格式化地址 + string address = 1; + // 地址部件,address不满足需求时可自行拼接 + AddressComponent address_component = 2; + // 行政区划信息 + AdInfo ad_info = 3; +} + +// 地址部件 +message AddressComponent { + // 国家 + string nation = 1; + // 省 + string province = 2; + // 市 + string city = 3; + // 区,可能为空字串 + string district = 4; + // 街道,可能为空字串 + string street = 5; + // 门牌,可能为空字串 + string street_number = 6; +} + +// 行政区划信息 +message AdInfo { + // 国家代码(ISO3166标准3位数字码) + string nation_code = 1; + // 行政区划代码,规则详见:行政区划代码说明 + string adcode = 2; + // 城市代码,由国家码+行政区划代码(提出城市级别)组合而来,总共为9位 + string city_code = 3; + // 行政区划名称 + string name = 4; + // 行政区划中心点坐标 + Gps gps = 5; +} + +// 行政区划中心点坐标 +message Gps { + // 纬度 + double lat = 1; + // 经度 + double lng = 2; +} \ No newline at end of file diff --git a/grpc_api/bilibili/app/dynamic/v2/dynamic.proto b/grpc_api/bilibili/app/dynamic/v2/dynamic.proto new file mode 100644 index 0000000..215d357 --- /dev/null +++ b/grpc_api/bilibili/app/dynamic/v2/dynamic.proto @@ -0,0 +1,3313 @@ +syntax = "proto3"; + +package bilibili.app.dynamic.v2; + +import "google/protobuf/any.proto"; +import "bilibili/app/archive/middleware/v1/preload.proto"; + +// v2动态 +service Dynamic { + // 动态视频页 + rpc DynVideo(DynVideoReq) returns (DynVideoReply); + // 动态综合页 + rpc DynAll(DynAllReq) returns (DynAllReply); + // 批量动态id获取动态详情 + rpc DynDetails(DynDetailsReq) returns (DynDetailsReply); + // 视频页最近访问 - 个人feed流 + rpc DynVideoPersonal(DynVideoPersonalReq) returns (DynVideoPersonalReply); + // 视频页最近访问 - 标记已读 + rpc DynVideoUpdOffset(DynVideoUpdOffsetReq) returns (NoReply); + // 动态通用附加卡-follow/取消follow + rpc DynAdditionCommonFollow(DynAdditionCommonFollowReq) returns(DynAdditionCommonFollowReply); + // 动态点赞 + rpc DynThumb(DynThumbReq) returns(NoReply); + // 动态发布生成临时卡 + rpc DynFakeCard(DynFakeCardReq) returns(DynFakeCardReply); + // 关注推荐up主换一换 + rpc DynRcmdUpExchange(DynRcmdUpExchangeReq) returns(DynRcmdUpExchangeReply); + // 综合页最近访问 - 个人feed流 + rpc DynAllPersonal(DynAllPersonalReq) returns (DynAllPersonalReply); + // 综合页最近访问 - 标记已读 + rpc DynAllUpdOffset(DynAllUpdOffsetReq) returns (NoReply); + // 投票操作接口 + rpc DynVote(DynVoteReq) returns (DynVoteReply); + // 网关调用 - 查看更多-列表 + rpc DynMixUpListViewMore(DynMixUpListViewMoreReq) returns (DynMixUpListViewMoreReply); + // 轻浏览 + rpc DynLight(DynLightReq) returns (DynLightReply); + // 动态详情页 + rpc DynDetail(DynDetailReq) returns (DynDetailReply); + // 点赞列表 + rpc LikeList(LikeListReq) returns (LikeListReply); + // 转发列表 + rpc RepostList(RepostListReq) returns (RepostListRsp); + // 空间页动态 + rpc DynSpace(DynSpaceReq) returns (DynSpaceRsp); + // 未登录页分区UP主推荐 + rpc DynUnLoginRcmd(DynRcmdReq) returns (DynRcmdReply); +} + +// 空请求 +message NoReq {} + +// 空响应 +message NoReply {} + +// 动态视频页-请求 +message DynVideoReq { + // 透传 update_baseline + string update_baseline = 1; + // 透传 history_offset + string offset = 2; + // 向下翻页数 + int32 page = 3; + // 刷新方式 + // 1:向上刷新 2:向下翻页 + Refresh refresh_type = 4; + // 秒开参数 新版本废弃,统一使用player_args + PlayurlParam playurl_param = 5; + // 综合页当前更新的最大值 + string assist_baseline = 6; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 7; + // 来源 + string from = 8; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9; +} + +// 刷新方式 +enum Refresh { + // 刷新列表 + refresh_new = 0; + // 请求历史 + refresh_history = 1; +} + +// 秒开通用参数 +message PlayurlParam { + // 清晰度 + int32 qn = 1; + // 流版本 + int32 fnver = 2; + // 流类型 + int32 fnval = 3; + // 是否强制使用域名 + int32 force_host = 4; + // 是否4k + int32 fourk = 5; +} + +// 动态视频页-响应 +message DynVideoReply { + // 卡片列表 + CardVideoDynList dynamic_list = 1; + // 动态卡片 + CardVideoUpList video_up_list = 2; + // 视频页-我的追番 + CardVideoFollowList video_follow_list = 3; +} + +// 动态卡片列表 +message CardVideoDynList { + // 动态列表 + repeated DynamicItem list = 1; + // 更新的动态数 + int64 update_num = 2; + // 历史偏移 + string history_offset = 3; + // 更新基础信息 + string update_baseline = 4; + // 是否还有更多数据 + bool has_more = 5; +} + +// 动态卡片 +message DynamicItem { + // 动态卡片类型 + DynamicType card_type = 1; + // 转发类型下,源卡片类型 + DynamicType item_type = 2; + // 模块内容 + repeated Module modules = 3; + // 操作相关字段 + Extend extend = 4; + // 该卡片下面是否含有折叠卡 + int32 has_fold = 5; + // 透传到客户端的埋点字段。 + string server_info = 6; +} + +// DynamicType 枚举-动态类型 +enum DynamicType { + // 占位 + dyn_none = 0; + // 转发 + forward = 1; + // 稿件: ugc、小视频、短视频、UGC转PGC + av = 2; + // pgc:番剧、PGC番剧、PGC电影、PGC电视剧、PGC国创、PGC纪录片 + pgc = 3; + // 付费更新批次 + courses = 4; + // 折叠 + fold = 5; + // 纯文字 + word = 6; + // 图文 + draw = 7; + // 专栏 原仅phone端 + article = 8; + // 音频 原仅phone端 + music = 9; + // 通用卡 方形 + common_square = 10; + // 通用卡 竖形 + common_vertical = 11; + // 直播卡 只有转发态 + live = 12; + // 播单 原仅phone端 只有转发态 + medialist = 13; + // 付费更新批次 只有转发态 + courses_season = 14; + // 广告卡 + ad = 15; + // 小程序卡 + applet = 16; + // 订阅卡 + subscription = 17; + // 直播推荐卡 + live_rcmd = 18; + // 通栏 + banner = 19; + // 合集卡 + ugc_season = 20; + // 新订阅卡 + subscription_new = 21; +} + +// Module 动态模块 +message Module { + // 类型 + DynModuleType module_type = 1; + oneof module_item { + // 用户模块 1 + ModuleAuthor module_author = 2; + // 争议黄条模块 2 + ModuleDispute module_dispute = 3; + // 动态正文模块 3 + ModuleDesc module_desc = 4; + // 动态卡模块 4 + ModuleDynamic module_dynamic = 5; + // 点赞外露(废弃) + ModuleLikeUser module_likeUser = 6; + // 小卡模块 6 + ModuleExtend module_extend = 7; + // 大卡模块 5 + ModuleAdditional module_additional = 8; + // 计数模块 8 + ModuleStat module_stat = 9; + // 折叠模块 9 + ModuleFold module_fold = 10; + // 评论外露(废弃) + ModuleComment module_comment = 11; + // 外露交互模块(点赞、评论) 7 + ModuleInteraction module_interaction = 12; + // 转发卡-原卡用户模块 + ModuleAuthorForward module_author_forward = 13; + // 广告卡 + ModuleAd module_ad = 14; + // 通栏 + ModuleBanner module_banner = 15; + // 获取物料失败 + ModuleItemNull module_item_null = 16; + // 分享组件 + ModuleShareInfo module_share_info = 17; + // 相关推荐模块 + ModuleRecommend module_recommend = 18; + // 顶部模块 + ModuleTop module_top = 19; + // 底部模块 + ModuleButtom module_buttom = 20; + // 转发卡计数模块 + ModuleStat module_stat_forward = 21; + } +} + +// 动态-发布人模块 +message ModuleAuthor { + // 用户mid + int64 mid = 1; + // 时间标签 + string ptime_label_text = 2; + // 用户详情 + UserInfo author = 3; + // 装扮卡片 + DecorateCard decorate_card = 4; + // 点击跳转链接 + string uri = 5; + // 右侧操作区域 - 三点样式 + repeated ThreePointItem tp_list = 6; + // 右侧操作区域样式枚举 + ModuleAuthorBadgeType badge_type = 7; + // 右侧操作区域 - 按钮样式 + ModuleAuthorBadgeButton badge_button = 8; + // 是否关注 + // 1:关注 0:不关注 默认0,注:点赞列表使用,其他场景不使用该字段 + int32 attend = 9; + // 关注状态 + Relation relation = 10; + // 右侧操作区域 - 提权样式 + Weight weight = 11; + // 是否展示关注 + bool show_follow = 12; + // 是否置顶 + bool is_top = 13; +} + +// 用户信息 +message UserInfo { + // 用户mid + int64 mid = 1; + // 用户昵称 + string name = 2; + // 用户头像 + string face = 3; + // 认证信息 + OfficialVerify official = 4; + // 大会员信息 + VipInfo vip = 5; + // 直播信息 + LiveInfo live = 6; + // 空间页跳转链接 + string uri = 7; + // 挂件信息 + UserPendant pendant = 8; + // 认证名牌 + Nameplate nameplate = 9; + // 用户等级 + int32 level = 10; + // 用户简介 + string sign = 11; +} + +// 认证信息 +message OfficialVerify { + // 127:未认证 0:个人 1:机构 + int32 type = 1; + // 认证描述 + string desc = 2; + // 是否关注 + int32 is_atten = 3; +} + +// 大会员信息 +message VipInfo { + // 大会员类型 + int32 Type = 1; + // 大会员状态 + int32 status = 2; + // 到期时间 + int64 due_date = 3; + // 标签 + VipLabel label = 4; + // 主题 + int32 theme_type = 5; + // 大会员角标 + // 0:无角标 1:粉色大会员角标 2:绿色小会员角标 + int32 avatar_subscript = 6; + // 昵称色值,可能为空,色值示例:#FFFB9E60 + string nickname_color = 7; +} + +// 大会员标签 +message VipLabel { + // 图片地址 + string path = 1; + // 文本值 + string text = 2; + // 对应颜色类型 + string label_theme = 3; +} + +// 直播信息 +message LiveInfo { + // 是否在直播 + // 0:未直播 1:正在直播 (废弃) + int32 is_living = 1; + // 跳转链接 + string uri = 2; + // 直播状态 + LiveState live_state = 3; +} + +// 直播状态 +enum LiveState { + // 未直播 + live_none = 0; + // 直播中 + live_live = 1; + // 轮播中 + live_rotation = 2; +} + +// 头像挂件信息 +message UserPendant { + // pid + int64 pid = 1; + // 名称 + string name = 2; + // 图片链接 + string image = 3; + // 有效期 + int64 expire = 4; +} + +// 认证名牌 +message Nameplate { + // nid + int64 nid = 1; + // 名称 + string name = 2; + // 图片地址 + string image = 3; + // 小图地址 + string image_small = 4; + // 等级 + string level = 5; + // 获取条件 + string condition = 6; +} + +// 装扮卡片 +message DecorateCard { + // 装扮卡片id + int64 id = 1; + // 装扮卡片链接 + string card_url = 2; + // 装扮卡片点击跳转链接 + string jump_url = 3; + // 粉丝样式 + DecoCardFan fan = 4; +} + +// 装扮卡片-粉丝勋章信息 +message DecoCardFan { + // 是否是粉丝 + int32 is_fan = 1; + // 数量 + int32 number = 2; + // 数量 str + string number_str = 3; + // 颜色 + string color = 4; +} + +// 动态-争议小黄条模块 +message ModuleDispute { + // 标题 + string title = 1; + // 描述内容 + string desc = 2; + // 跳转链接 + string uri = 3; +} + +// 动态-描述文字模块 +message ModuleDesc { + // 描述信息(已按高亮拆分) + repeated Description desc = 1; + // 点击跳转链接 + string jump_uri = 2; + // 文本原本 + string text = 3; +} + +// Description 文本描述 +message Description { + // 文本内容 + string text = 1; + // 文本类型 + DescType type = 2; + // 点击跳转链接 + string uri = 3; + // emoji类型 + EmojiType emoji_type = 4; + // 商品类型 + string goods_type = 5; + // 前置Icon + string icon_url = 6; + // icon_name + string icon_name = 7; + // 资源ID + string rid = 8; + // 商品卡特殊字段 + ModuleDescGoods goods = 9; + // 文本原始文案 + string orig_text = 10; +} + +// 文本类型 +enum DescType { + // 占位 + desc_type_none = 0; + // 文本 + desc_type_text = 1; + // @ + desc_type_aite = 2; + // 抽奖 + desc_type_lottery = 3; + // 投票 + desc_type_vote = 4; + // 话题 + desc_type_topic = 5; + // 商品 + desc_type_goods = 6; + // bv + desc_type_bv = 7; + // av + desc_type_av = 8; + // 表情 + desc_type_emoji = 9; + // 外露用户 + desc_type_user = 10; + // 专栏 + desc_type_cv = 11; + // 小视频 + desc_type_vc = 12; + // 网址 + desc_type_web = 13; + // 淘宝 + desc_type_taobao = 14; + // 邮箱 + desc_type_mail = 15; + // 番剧season + desc_type_ogv_season = 16; + // 番剧ep + desc_type_ogv_ep = 17; +} + +// 表情包类型 +enum EmojiType { + // 占位 + emoji_none = 0; + // emoji旧类型 + emoji_old = 1; + // emoji新类型 + emoji_new = 2; + // 大会员表情 + vip = 3; +} + +// 正文商品卡参数 +message ModuleDescGoods { + // 商品类型 + // 1:淘宝 2:会员购 + int32 source_type = 1; + // 跳转链接 + string jump_url = 2; + // schema_url + string schema_url = 3; + // item_id + int64 item_id = 4; + // open_white_list + repeated string open_white_list = 5; + // use_web_v2 + bool user_web_v2 = 6; + // ad mark + string ad_mark = 7; + // schemaPackageName(Android用) + string schema_package_name = 8; +} + +// 动态-详情模块 +message ModuleDynamic { + // 类型 + ModuleDynamicType type = 1; + oneof module_item { + //稿件 + MdlDynArchive dyn_archive = 2; + //pgc + MdlDynPGC dyn_pgc = 3; + //付费课程-系列 + MdlDynCourSeason dyn_cour_season = 4; + //付费课程-批次 + MdlDynCourBatch dyn_cour_batch = 5; + //转发卡 + MdlDynForward dyn_forward = 6; + //图文 + MdlDynDraw dyn_draw = 7; + //专栏 + MdlDynArticle dyn_article = 8; + //音频 + MdlDynMusic dyn_music = 9; + //通用卡方 + MdlDynCommon dyn_common = 10; + //直播卡 + MdlDynLive dyn_common_live = 11; + //播单 + MdlDynMedialist dyn_medialist = 12; + //小程序卡 + MdlDynApplet dyn_applet = 13; + //订阅卡 + MdlDynSubscription dyn_subscription = 14; + //直播推荐卡 + MdlDynLiveRcmd dyn_live_rcmd = 15; + //UGC合集 + MdlDynUGCSeason dyn_ugc_season = 16; + //订阅卡 + MdlDynSubscriptionNew dyn_subscription_new = 17; + } +} + +// 动态详情模块类型 +enum ModuleDynamicType { + // 稿件 + mdl_dyn_archive = 0; + // pgc + mdl_dyn_pgc = 1; + // 付费课程-系列 + mdl_dyn_cour_season = 2; + // 付费课程-批次 + mdl_dyn_cour_batch = 3; + // 转发卡 + mdl_dyn_forward = 4; + // 图文 + mdl_dyn_draw = 5; + // 专栏 + mdl_dyn_article = 6; + // 音频 + mdl_dyn_music = 7; + // 通用卡方 + mdl_dyn_common = 8; + // 直播卡 + mdl_dyn_live = 9; + // 播单 + mdl_dyn_medialist = 10; + // 小程序卡 + mdl_dyn_applet = 11; + // 订阅卡 + mdl_dyn_subscription = 12; + // 直播推荐卡 + mdl_dyn_live_rcmd = 13; + // UGC合集 + mdl_dyn_ugc_season = 14; + // 订阅卡 + mdl_dyn_subscription_new = 15; +} + +// 动态-详情模块-稿件 +message MdlDynArchive { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 秒开地址 + string uri = 3; + // 视频封面展示项 1 + string cover_left_text_1 = 4; + // 视频封面展示项 2 + string cover_left_text_2 = 5; + // 封面视频展示项 3 + string cover_left_text_3 = 6; + // avid + int64 avid = 7; + // cid + int64 cid = 8; + // 视频源类型 + MediaType media_type = 9; + // 尺寸信息 + Dimension dimension = 10; + // 角标,多个角标之前有间距 + repeated VideoBadge badge = 11; + // 是否能够自动播放 + bool can_play= 12; + // stype + VideoType stype = 13; + // 是否PGC + bool isPGC = 14; + // inline播放地址 + string inlineURL = 15; + // PGC的epid + int64 EpisodeId = 16; + // 子类型 + int32 SubType = 17; + // PGC的ssid + int64 PgcSeasonId = 18; + // 播放按钮 + string play_icon = 19; + // 时长 + int64 duration = 20; + // 跳转地址 + string jump_url = 21; + // 番剧是否为预览视频 + bool is_preview = 22; + // 新角标,多个角标之前没有间距 + repeated VideoBadge badge_category = 23; + // 当前是否是pgc正片 + bool is_feature = 24; + // 是否是预约召回 + ReserveType reserve_type = 25; + // bvid + string bvid = 26; + // 播放数 + int32 view = 27; +} + +// 播放器类型 +enum MediaType { + // 本地 + MediaTypeNone = 0; + // UGC + MediaTypeUGC = 1; + // PGC + MediaTypePGC = 2; + // 直播 + MediaTypeLive = 3; + // 小视频 + MediaTypeVCS = 4; +} + +enum ReserveType { + // 占位 + reserve_none = 0; + // 预约召回 + reserve_recall = 1; +} + +// Dimension 尺寸信息 +message Dimension { + // + int64 height = 1; + // + int64 width = 2; + // + int64 rotate = 3; +} + +// 角标信息 +message VideoBadge { + // 文案 + string text = 1; + // 文案颜色-日间 + string text_color = 2; + // 文案颜色-夜间 + string text_color_night = 3; + // 背景颜色-日间 + string bg_color = 4; + // 背景颜色-夜间 + string bg_color_night = 5; + // 边框颜色-日间 + string border_color = 6; + // 边框颜色-夜间 + string border_color_night = 7; + // 样式 + int32 bg_style = 8; + // 背景透明度-日间 + int32 bg_alpha = 9; + // 背景透明度-夜间 + int32 bg_alpha_night = 10; +} + +// 视频类型 +enum VideoType { + //普通视频 + video_type_general = 0; + //动态视频 + video_type_dynamic = 1; + //直播回放视频 + video_type_playback = 2; +} + +// MdlDynPGC 动态-详情模块-pgc +message MdlDynPGC { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 秒开地址 + string uri = 3; + // 视频封面展示项 1 + string cover_left_text_1 = 4; + // 视频封面展示项 2 + string cover_left_text_2 = 5; + // 封面视频展示项 3 + string cover_left_text_3 = 6; + // cid + int64 cid = 7; + // season_id + int64 season_id = 8; + // epid + int64 epid = 9; + // aid + int64 aid = 10; + // 视频源类型 + MediaType media_type = 11; + // 番剧类型 + VideoSubType sub_type = 12; + // 番剧是否为预览视频 + bool is_preview = 13; + // 尺寸信息 + Dimension dimension = 14; + // 角标,多个角标之前有间距 + repeated VideoBadge badge = 15; + // 是否能够自动播放 + bool can_play= 16; + // season + PGCSeason season = 17; + // 播放按钮 + string play_icon = 18; + // 时长 + int64 duration = 19; + // 跳转地址 + string jump_url = 20; + // 新角标,多个角标之前没有间距 + repeated VideoBadge badge_category = 21; + // 当前是否是pgc正片 + bool is_feature = 22; +} + +// 番剧类型 +enum VideoSubType { + // 没有子类型 + VideoSubTypeNone = 0; + // 番剧 + VideoSubTypeBangumi = 1; + // 电影 + VideoSubTypeMovie = 2; + // 纪录片 + VideoSubTypeDocumentary = 3; + // 国创 + VideoSubTypeDomestic = 4; + // 电视剧 + VideoSubTypeTeleplay = 5; +} + +// PGC单季信息 +message PGCSeason { + // 是否完结 + int32 is_finish = 1; + // 标题 + string title = 2; + // 类型 + int32 type = 3; +} + +// 动态-详情模块-付费课程系列 +message MdlDynCourSeason { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 跳转地址 + string uri = 3; + // 展示项 1(更新信息) + string text_1 = 4; + // 描述信息 + string desc = 5; + // 角标 + VideoBadge badge = 6; + // 播放按钮 + string play_icon = 7; +} + +// 动态-详情模块-付费课程批次 +message MdlDynCourBatch { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 跳转地址 + string uri = 3; + // 展示项 1(本集标题) + string text_1 = 4; + // 展示项 2(更新了多少个视频) + string text_2 = 5; + // 角标 + VideoBadge badge = 6; + // 播放按钮 + string play_icon = 7; +} + +// 动态列表渲染部分-详情模块-转发模块 +message MdlDynForward { + // 动态转发核心模块 套娃 + DynamicItem item = 1; + // 透传类型 + // 0:分享 1:转发 + int32 rtype = 2; +} + +// 动态列表渲染部分-详情模块-图文模块 +message MdlDynDraw { + // 图片 + repeated MdlDynDrawItem items = 1; + // 跳转地址 + string uri = 2; + // 图文ID + int64 id = 3; +} + +// MdlDynDrawItem 动态列表渲染部分-详情模块-图文 +message MdlDynDrawItem { + // 图片链接 + string src = 1; + // 图片宽度 + int64 width = 2; + // 图片高度 + int64 height = 3; + // 图片大小 + float size = 4; + // 图片标签 + repeated MdlDynDrawTag tags = 5; +} + +// 动态列表渲染部分-详情模块-图文-标签 +message MdlDynDrawTag { + // 标签类型 + MdlDynDrawTagType type = 1; + // 标签详情 + MdlDynDrawTagItem item = 2; +} + +// 图文标签类型 +enum MdlDynDrawTagType { + // 占位 + mdl_draw_tag_none = 0; + // 普通标签 + mdl_draw_tag_common = 1; + // 商品标签 + mdl_draw_tag_goods = 2; + // 用户昵称 + mdl_draw_tag_user = 3; + // 话题名称 + mdl_draw_tag_topic = 4; + // lbs标签 + mdl_draw_tag_lbs = 5; +} + +// 动态列表部分-详情模块-图文-标签详情 +message MdlDynDrawTagItem { + // 跳转链接 + string url = 1; + // 标签内容 + string text = 2; + // 坐标-x + int64 x = 3; + // 坐标-y + int64 y = 4; + // 方向 + int32 orientation = 5; + // 来源 + // 0:未知 1:淘宝 2:自营 + int32 source = 6; + // 商品id + int64 item_id = 7; + // 用户mid + int64 mid = 8; + // 话题id + int64 tid = 9; + // lbs信息 + string poi = 10; + // 商品标签链接 + string schema_url = 11; +} + +// 动态列表渲染部分-详情模块-专栏模块 +message MdlDynArticle { + // 专栏id + int64 id = 1; + // 跳转地址 + string uri = 2; + // 标题 + string title = 3; + // 文案部分 + string desc = 4; + // 配图 + repeated string covers = 5; + // 阅读量标签 + string label = 6; + // 模板类型 + int32 templateID = 7; +} + +// 动态列表渲染部分-详情模块-音频模块 +message MdlDynMusic { + // 音频id + int64 id = 1; + // 跳转地址 + string uri = 2; + // upId + int64 up_id = 3; + // 歌名 + string title = 4; + // 专辑封面 + string cover = 5; + // 展示项1 + string label1 = 6; + // upper + string upper = 7; +} + +// 动态列表渲染部分-详情模块-通用 +message MdlDynCommon { + // 物料id + int64 oid = 1; + // 跳转地址 + string uri = 2; + // 标题 + string title = 3; + // 描述 漫画卡标题下第一行 + string desc = 4; + // 封面 + string cover = 5; + // 标签1 漫画卡标题下第二行 + string label = 6; + // 所属业务类型 + int32 bizType = 7; + // 镜像数据ID + int64 sketchID = 8; + // 卡片样式 + MdlDynCommonType style = 9; + // 角标 + repeated VideoBadge badge = 10; +} + +// +enum MdlDynCommonType { + // + mdl_dyn_common_none = 0; + // + mdl_dyn_common_square = 1; + // + mdl_dyn_common_vertica = 2; +} + +// 动态列表渲染部分-详情模块-直播 +message MdlDynLive { + // 房间号 + int64 id = 1; + // 跳转地址 + string uri = 2; + // 直播间标题 + string title = 3; + // 直播间封面 + string cover = 4; + // 标题1 例: 陪伴学习 + string cover_label = 5; + // 标题2 例: 54.6万人气 + string cover_label2 = 6; + // 直播状态 + LiveState live_state = 7; + // 直播角标 + VideoBadge badge = 8; + // 是否是预约召回 + ReserveType reserve_type = 9; +} + +// 动态列表渲染部分-详情模块-播单 +message MdlDynMedialist { + // 播单id + int64 id = 1; + // 跳转地址 + string uri = 2; + // 主标题 + string title = 3; + // 副标题 + string sub_title = 4; + // 封面图 + string cover = 5; + // 封面类型 + int32 cover_type = 6; + // 角标 + VideoBadge badge = 7; +} + +// 动态列表渲染部分-详情模块-小程序/小游戏 +message MdlDynApplet { + // 小程序id + int64 id = 1; + // 跳转地址 + string uri = 2; + // 主标题 + string title = 4; + // 副标题 + string sub_title = 5; + // 封面图 + string cover = 6; + // 小程序icon + string icon = 7; + // 小程序标题 + string label = 8; + // 按钮文案 + string button_title = 9; +} + +// 动态列表渲染部分-详情模块-订阅卡 +message MdlDynSubscription { + // 卡片物料id + int64 id = 1; + // 广告创意id + int64 ad_id = 2; + // 跳转地址 + string uri = 3; + // 标题 + string title = 4; + // 封面图 + string cover = 5; + // 广告标题 + string ad_title = 6; + // 角标 + VideoBadge badge = 7; + // 小提示 + string tips = 8; +} + +// 动态列表渲染部分-详情模块-直播推荐 +message MdlDynLiveRcmd { + // 直播数据 + string content = 1; + // 是否是预约召回 + ReserveType reserve_type = 2; +} + +// 动态列表渲染部分-UGC合集 +message MdlDynUGCSeason { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 秒开地址 + string uri = 3; + // 视频封面展示项 1 + string cover_left_text_1 = 4; + // 视频封面展示项 2 + string cover_left_text_2 = 5; + // 封面视频展示项 3 + string cover_left_text_3 = 6; + // 卡片物料id + int64 id = 7; + // inline播放地址 + string inlineURL = 8; + // 是否能够自动播放 + bool can_play= 9; + // 播放按钮 + string play_icon = 10; + // avid + int64 avid = 11; + // cid + int64 cid = 12; + // 尺寸信息 + Dimension dimension = 13; + // 时长 + int64 duration = 14; + // 跳转地址 + string jump_url = 15; +} + +// 动态新附加卡 +message MdlDynSubscriptionNew { + //样式类型 + MdlDynSubscriptionNewStyle style = 1; + // 新订阅卡数据 + oneof item { + // + MdlDynSubscription dyn_subscription = 2; + // 直播推荐 + MdlDynLiveRcmd dyn_live_rcmd = 3; + } +} + +// +enum MdlDynSubscriptionNewStyle { + // 占位 + mdl_dyn_subscription_new_style_nont = 0; + // 直播 + mdl_dyn_subscription_new_style_live = 1; + // 图文 + mdl_dyn_subscription_new_style_draw = 2; +} + +// 动态-附加卡模块 +message ModuleAdditional { + // 类型 + AdditionalType type = 1; + oneof item { + // 废弃 + AdditionalPGC pgc = 2; + // + AdditionGoods goods = 3; + // 废弃 + AdditionVote vote = 4; + // + AdditionCommon common = 5; + // + AdditionEsport esport = 6; + // 投票 + AdditionVote2 vote2 = 8; + // + AdditionUgc ugc = 9; + // up主预约发布卡 + AdditionUP up = 10; + } + // 附加卡物料ID + int64 rid = 7; +} + +// 枚举-动态附加卡 +enum AdditionalType { + // 占位 + additional_none = 0; + // 附加卡-追番 + additional_type_pgc = 1; + // 附加卡-商品 + additional_type_goods = 2; + // 附加卡投票 + additional_type_vote = 3; + // 附加通用卡 + additional_type_common = 4; + // 附加电竞卡 + additional_type_esport = 5; + // 附加UP主推荐卡 + additional_type_up_rcmd = 6; + // 附加卡-ugc + additional_type_ugc = 7; + // UP主预约卡 + additional_type_up_reservation = 8; +} + +// 动态-附加卡-番剧卡 +message AdditionalPGC { + // 头部说明文案 + string head_text = 1; + // 标题 + string title = 2; + // 展示图 + string image_url = 3; + // 描述文字1 + string desc_text_1 = 4; + // 描述文字2 + string desc_text_2 = 5; + // 点击跳转链接 + string url = 6; + // 按钮 + AdditionalButton button = 7; + // 头部icon + string head_icon = 8; + // style + ImageStyle style = 9; + // 动态本身的类型 type + string type = 10; +} + +// 枚举-附加卡样式 +enum ImageStyle { + // + add_style_vertical = 0; + // + add_style_square = 1; +} + +// 动态-附加卡-按钮 +message AdditionalButton { + // 按钮类型 + AddButtonType type = 1; + // jump-跳转样式 + AdditionalButtonStyle jump_style = 2; + // jump-跳转链接 + string jump_url = 3; + // button-未点样式 + AdditionalButtonStyle uncheck = 4; + // button-已点样式 + AdditionalButtonStyle check = 5; + // button-当前状态 + AdditionalButtonStatus status = 6; + // 按钮点击样式 + AdditionalButtonClickType click_type = 7; +} + +// 按钮类型 +enum AddButtonType { + // 占位 + bt_none = 0; + // 跳转 + bt_jump = 1; + // 按钮 + bt_button = 2; +} + +// 附加卡按钮状态 +enum AdditionalButtonStatus { + // + none = 0; + // + uncheck = 1; + // + check = 2; +} + +// 附加卡按钮点击类型 +enum AdditionalButtonClickType { + // 通用按钮 + click_none = 0; + // 预约卡按钮 + click_up = 1; +} + +// 动态-附加卡-按钮样式 +message AdditionalButtonStyle { + // icon + string icon = 1; + // 文案 + string text = 2; + // 按钮点击交互 + AdditionalButtonInteractive interactive = 3; + // 当前按钮填充样式 + AddButtonBgStyle bg_style = 4; + // toast文案, 当disable=1时有效 + string toast = 5; + // 当前按钮样式, + // 0:高亮 1:置灰(按钮不可点击) + DisableState disable = 6; +} + +enum DisableState { + // 高亮 + highlight = 0; + // 置灰(按钮不可点击) + gary = 1; +} + +enum AddButtonBgStyle { + // 默认填充 + fill = 0; + // 描边 + stroke = 1; + // 置灰 + gray = 2; +} + +message AdditionalButtonInteractive { + // 是否弹窗 + string popups = 1; + // 弹窗确认文案 + string confirm = 2; + // 弹窗取消文案 + string cancel = 3; +} + +// 动态-附加卡-商品卡 +message AdditionGoods { + // 推荐文案 + string rcmd_desc = 1; + // 商品信息 + repeated GoodsItem goods_items = 2; + // 附加卡类型 + string card_type = 3; + // 头部icon + string icon = 4; + // 商品附加卡整卡跳转 + string uri = 5; + // 商品类型 + // 1:淘宝 2:会员购,注:实际是获取的goods_items里面的第一个source_type + int32 source_type = 6; +} + +// 动态-附加卡-商品卡-商品 +message GoodsItem { + // 图片 + string cover = 1; + // schemaPackageName(Android用) + string schema_package_name = 2; + // 商品类型 + // 1:淘宝 2:会员购 + int32 source_type = 3; + // 跳转链接 + string jump_url = 4; + // 跳转文案 + string jump_desc = 5; + // 标题 + string title = 6; + // 摘要 + string brief = 7; + // 价格 + string price = 8; + // item_id + int64 item_id = 9; + // schema_url + string schema_url = 10; + // open_white_list + repeated string open_white_list = 11; + // use_web_v2 + bool user_web_v2 = 12; + // ad mark + string ad_mark = 13; +} + +// 动态-附加卡-投票 +message AdditionVote { + // 封面图 + string image_url = 1; + // 标题 + string title = 2; + // 展示项1 + string text_1 = 3; + // button文案 + string button_text = 4; + // 点击跳转链接 + string url = 5; +} + +// 动态-附加卡-UGC视频附加卡 +message AdditionUgc { + // 说明文案 + string head_text = 1; + // 稿件标题 + string title = 2; + // 封面 + string cover = 3; + // 描述文字1 + string desc_text_1 = 4; + // 描述文字2 + string desc_text_2 = 5; + // 接秒开 + string uri = 6; + // 时长 + string duration = 7; + // 标题支持换行-标题支持单行和双行,本期不支持填充up昵称,支持双行展示,字段默认为true + bool line_feed = 8; + // 附加卡类型 + string card_type = 9; +} + +// 动态-附加卡-通用卡 +message AdditionCommon { + // 头部说明文案 + string head_text = 1; + // 标题 + string title = 2; + // 展示图 + string image_url = 3; + // 描述文字1 + string desc_text_1 = 4; + // 描述文字2 + string desc_text_2 = 5; + // 点击跳转链接 + string url = 6; + // 按钮 + AdditionalButton button = 7; + // 头部icon + string head_icon = 8; + // style + ImageStyle style = 9; + // 动态本身的类型 type + string type = 10; + // 附加卡类型 + string card_type = 11; // ogv manga +} + +// 动态-附加卡-电竞卡 +message AdditionEsport { + // 电竞类型 + EspaceStyle style = 1; + oneof item { + // moba类 + AdditionEsportMoba addition_esport_moba = 2; + } + // 动态本身的类型 type + string type = 3; + // 附加卡类型 + string card_type = 4; // ogv manga +} + +// 附加大卡-电竞卡样式 +enum EspaceStyle { + // moba类 + moba = 0; +} + +// 动态-附加卡-电竞卡-moba类 +message AdditionEsportMoba { + // 头部说明文案 + string head_text = 1; + // 标题 + string title = 2; + // 战队列表 + repeated MatchTeam match_team = 3; + // 比赛信息 + AdditionEsportMobaStatus addition_esport_moba_status = 4; + // 卡片跳转 + string uri = 5; + // 按钮 + AdditionalButton button = 6; + // 副标题 + string sub_title = 7; + // 动态本身的类型 type + string type = 10; + // 附加卡类型 + string card_type = 11; + // 附加卡图标 + string head_icon = 12; +} + +// 动态-附加卡-电竞卡-moba类-比赛信息 +message AdditionEsportMobaStatus { + // 文案类 + repeated AdditionEsportMobaStatusDesc addition_esport_moba_status_desc = 1; + // 比赛状态文案 + string title = 2; + // 比赛状态状态 + int32 status = 3; + // 日间色值 + string color = 4; + // 夜间色值 + string night_color = 5; +} + +// 动态-附加卡-电竞卡-moba类-比赛信息-文案类 +message AdditionEsportMobaStatusDesc { + // 文案 + string title = 1; + // 日间色值 + string color = 2; + // 夜间色值 + string night_color = 3; +} + +// 动态-附加卡-电竞卡-战队 +message MatchTeam { + // 战队ID + int64 id = 1; + // 战队名 + string name = 2; + // 战队图标 + string cover = 3; + // 日间色值 + string color = 4; + // 夜间色值 + string night_color = 5; +} + +// up主预约发布卡 +message AdditionUP { + // 标题 + string title = 1; + // 高亮文本,描述文字1 + HighlightText desc_text_1 = 2; + // 描述文字2 + string desc_text_2 = 3; + // 点击跳转链接 + string url = 4; + // 按钮 + AdditionalButton button = 5; + // 附加卡类型 + string card_type = 6; + // 预约人数(用于预约人数变化) + int64 reserve_total = 7; + // 活动皮肤 + AdditionalActSkin act_skin = 8; + // 预约id + int64 rid = 9; +} + +// 活动皮肤 +message AdditionalActSkin { + // 动画SVGA资源 + string svga = 1; + // 动画SVGA最后一帧图片资源 + string last_image = 2; + // 动画播放次数 + int64 play_times = 3; +} + +// 高亮文本 +message HighlightText { + // 展示文本 + string text = 1; + // 高亮类型 + HighlightTextStyle text_style = 2; +} + +// 文本高亮枚举 +enum HighlightTextStyle { + // 默认 + style_none = 0; + // 高亮 + style_highlight = 1; +} + +// 动态-小卡模块 +message ModuleExtend { + // 详情 + repeated ModuleExtendItem extend = 1; + // 模块整体跳转uri + string uri = 2; // 废弃 +} + +// 动态-拓展小卡模块 +message ModuleExtendItem { + // 类型 + DynExtendType type = 1; + // 卡片详情 + oneof extend { + // 废弃 + ExtInfoTopic ext_info_topic = 2; + // 废弃 + ExtInfoLBS ext_info_lbs = 3; + // 废弃 + ExtInfoHot ext_info_hot = 4; + // 废弃 + ExtInfoGame ext_info_game = 5; + // + ExtInfoCommon ext_info_common = 6; + // + ExtInfoOGV ext_info_ogv = 7; + } +} + +// 动态小卡类型 +enum DynExtendType { + // 占位 + dyn_ext_type_none = 0; + // 话题小卡 + dyn_ext_type_topic = 1; + // lbs小卡 + dyn_ext_type_lbs = 2; + // 热门小卡 + dyn_ext_type_hot = 3; + // 游戏小卡 + dyn_ext_type_game = 4; + // 通用小卡 + dyn_ext_type_common = 5; + // 必剪小卡 + dyn_ext_type_biliCut = 6; + // ogv小卡 + dyn_ext_type_ogv = 7; + // 自动附加ogv小卡 + dyn_ext_type_auto_ogv = 8; +} + +// 动态-拓展小卡模块-话题小卡 +message ExtInfoTopic { + // 标题-话题名 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; +} + +// 动态-拓展小卡模块-lbs小卡 +message ExtInfoLBS { + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; + // poiType + int32 poi_type = 4; +} + +// 动态-拓展小卡模块-热门小卡 +message ExtInfoHot { + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; +} + +// 动态-拓展小卡模块-游戏小卡 +message ExtInfoGame { + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; +} + +// 动态-拓展小卡模块-通用小卡 +message ExtInfoCommon { + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; + // poiType + int32 poi_type = 4; + // 类型 + DynExtendType type = 5; + // 客户端埋点用 + string sub_module = 6; + // 行动点文案 + string action_text = 7; + // 行动点链接 + string action_url = 8; + // 资源rid + int64 rid = 9; + // 轻浏览是否展示 + bool is_show_light = 10; +} + +// 动态-拓展小卡模块-ogv小卡 +message ExtInfoOGV { + // ogv小卡 + repeated InfoOGV info_ogv = 1; +} + +// 动态-拓展小卡模块-ogv小卡-(one of 片单、榜单、分区) +message InfoOGV { + // 标题 + string title = 1; + // 跳转地址 + string uri = 2; + // 小图标 + string icon = 3; + // 客户端埋点用 + string sub_module = 4; +} + +// 外露交互模块 +message ModuleInteraction { + // 外露交互模块 + repeated InteractionItem interactionItem = 1; +} + +// 外露交互模块 +message InteractionItem { + // 外露模块类型 + LocalIconType icon_type = 1; + // 外露模块文案 + repeated Description desc = 2; + // 外露模块uri相关 根据type不同用法不同 + string uri = 3; + // 动态id + string dynamic_id = 4; + // 评论mid + int64 comment_mid = 6; +} + +// 外露模块类型 +enum LocalIconType { + // + local_icon_comment = 0; + // + local_icon_like = 1; +} + +// DynUriType +enum DynUriType { + // + dyn_uri_type_none = 0; + // 直接跳转对应uri + dyn_uri_type_direct = 1; + // 作为后缀拼接 + dyn_uri_type_suffix = 2; +} + +// 动态-计数模块 +message ModuleStat { + // 转发数 + int64 repost = 1; + // 点赞数 + int64 like = 2; + // 评论数 + int64 reply = 3; + // 点赞拓展信息 + LikeInfo like_info = 4; + // 禁评 + bool no_comment = 5; + // 禁转 + bool no_forward = 6; + // 点击评论跳转链接 + string reply_url = 7; + // 禁评文案 + string no_comment_text = 8; + // 禁转文案 + string no_forward_text = 9; +} + +// 动态-折叠模块 +message ModuleFold { + // 折叠分类 + FoldType fold_type = 1; + // 折叠文案 + string text = 2; + // 被折叠的动态 + string fold_ids = 3; + // 被折叠的用户信息 + repeated UserInfo fold_users = 4; +} + +// 折叠类型 +enum FoldType { + // 占位 + FoldTypeZore = 0; + // 用户发布折叠 + FoldTypePublish = 1; + // 转发超频折叠 + FoldTypeFrequent = 2; + // 联合投稿折叠 + FoldTypeUnite = 3; + // 动态受限折叠 + FoldTypeLimit = 4; +} + +// 动态综合页-请求 +message DynAllReq { + // 透传 update_baseline + string update_baseline = 1; + // 透传 history_offset + string offset = 2; + // 向下翻页数 + int32 page = 3; + // 刷新方式 1向上刷新 2向下翻页 + Refresh refresh_type = 4; + // 秒开参数 新版本废弃,统一使用player_args + PlayurlParam playurl_param = 5; + // 综合页当前更新的最大值 + string assist_baseline = 6; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 7; + // 推荐up主入参(new的时候传) + RcmdUPsParam rcmd_ups_param = 8; + // 广告参数 + AdParam ad_param = 9; + // 是否冷启 + int32 cold_start = 10; + // 来源 + string from = 11; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 12; +} + +// 推荐up主入参 +message RcmdUPsParam { + int64 dislike_ts = 1; +} + +// 综合页请求广告所需字段,由客户端-网关透传 +message AdParam { + //综合页请求广告所需字段,由客户端-网关透传 + string ad_extra = 1; + // request_id + string request_id = 2; +} + +// 动态综合页-响应 +message DynAllReply { + // 卡片列表 + DynamicList dynamic_list = 1; + // 顶部up list + CardVideoUpList up_list = 2; + // 话题广场 + TopicList topic_list = 3; + // 无关注推荐 + Unfollow unfollow = 4; + // 分区UP推荐 + DynRegionRcmd region_rcmd = 5; +} + +//动态卡片列表 +message DynamicList { + // 动态列表 + repeated DynamicItem list = 1; + // 更新的动态数 + int64 update_num = 2; + // 历史偏移 + string history_offset = 3; + // 更新基础信息 + string update_baseline = 4; + // 是否还有更多数据 + bool has_more = 5; +} + +// 综合页-话题广场 +message TopicList { + // 模块标题 + string title = 1; + // 话题列表 + repeated TopicListItem topic_list_item = 2; + // 发起活动 + TopicButton act_button = 3; + // 查看更多 + TopicButton more_button = 4; + // 透传服务端上报 + string server_info = 5; +} + +// 综合页-话题广场-话题 +message TopicListItem { + // 前置图标 + string icon = 1; + // 前置图标文案 + string icon_title = 2; + // 话题id + int64 topic_id = 3; + // 话题名 + string topic_name = 4; + // 跳转链接 + string url = 5; + // 卡片位次 + int64 pos = 6; + // 透传服务端上报 + string server_info = 7; +} + +// 话题广场操作按钮 +message TopicButton { + // 按钮图标 + string icon = 1; + // 按钮文案 + string title = 2; + // 跳转 + string jump_uri = 3; +} + +// 综合页-无关注列表 +message Unfollow { + // 标题展示文案 + string title = 1; + // 无关注列表 + repeated UnfollowUserItem list = 2; + // trackID + string TrackId = 3; +} + +// 综合页-无关注列表 +message UnfollowUserItem { + // 是否有更新 + bool has_update = 1; + // up主头像 + string face = 2; + // up主昵称 + string name = 3; + // up主uid + int64 uid = 4; + // 排序字段 从1开始 + int32 pos = 5; + // 直播状态 + LiveState live_state = 6; + // 认证信息 + OfficialVerify official = 7; + // 大会员信息 + VipInfo vip = 8; + // up介绍 + string sign = 9; + // 标签信息 + string label = 10; + // 按钮 + AdditionalButton button = 11; + // 跳转地址 + string uri = 12; +} + +// 批量动态id获取动态详情-请求 +message DynDetailsReq { + // 动态id + string dynamic_ids = 1; + // 秒开参数 新版本废弃,统一使用player_args + PlayurlParam playurl_param = 2; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 3; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; +} + +// 批量动态id获取动态详情-响应 +message DynDetailsReply { + // 动态列表 + repeated DynamicItem list = 1; +} + +// 最近访问-个人feed流列表-请求 +message DynVideoPersonalReq { + // 被访问者的 UID + int64 host_uid = 1; + // 偏移量 第一页可传空 + string offset = 2; + // 标明下拉几次 + int32 page = 3; + // 是否是预加载 + int32 is_preload = 4; + // 秒开参数 新版本废弃,统一使用player_args + PlayurlParam playurl_param = 5; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 6; + // 服务端生成的透传上报字段 + string footprint = 7; + // 来源 + string from = 8; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9; +} + +// 最近访问-个人feed流列表-响应 +message DynVideoPersonalReply { + // 动态列表 + repeated DynamicItem list = 1; + // 偏移量 + string offset = 2; + // 是否还有更多数据 + bool has_more = 3; + // 已读进度 + string read_offset = 4; + // 关注状态 + Relation relation = 5; + // 顶部预约卡 + TopAdditionUP addition_up = 6; +} + +// 最近访问-标记已读-请求 +message DynVideoUpdOffsetReq { + // 被访问者的UID + int64 host_uid = 1; + // 用户已读进度 + string read_offset = 2; + // 服务端生成的透传上报字段 + string footprint = 3; +} + +// 视频页-最近访问 +message CardVideoUpList { + // 标题展示文案 + string title = 1; + // up主列表 + repeated UpListItem list = 2; + // 服务端生成的透传上报字段 + string footprint = 3; + // 直播数 + int32 show_live_num = 4; + // 跳转label + UpListMoreLabel more_label = 5; + // 标题开关(综合页) + int32 title_switch = 6; + // 是否展示右上角查看更多label + bool show_more_label = 7; + // 是否在快速消费页查看更多按钮 + bool show_in_personal = 8; + // 是否展示右侧查看更多按钮 + bool show_more_button = 9; +} + +// 最常访问-查看更多 +message UpListMoreLabel { + // 文案 + string title = 1; + // 跳转地址 + string uri = 2; +} + +// 动态顶部up列表-up主信息 +message UpListItem { + // 是否有更新 + bool has_update = 1; + // up主头像 + string face = 2; + // up主昵称 + string name = 3; + // up主uid + int64 uid = 4; + // 排序字段 从1开始 + int64 pos = 5; + // 用户类型 + UserItemType user_item_type = 6; + // 直播头像样式-日 + UserItemStyle display_style_day = 7; + // 直播头像样式-夜 + UserItemStyle display_style_night = 8; + // 直播埋点 + int64 style_id = 9; + // 直播状态 + LiveState live_state = 10; + // 分割线 + bool separator = 11; + // 跳转 + string uri = 12; + // UP主预约上报使用 + bool is_recall = 13; +} + +// 用户类型 +enum UserItemType { + // + user_item_type_none = 0; + // + user_item_type_live = 1; + // + user_item_type_live_custom = 2; + // + user_item_type_normal = 3; + // + user_item_type_extend = 4; +} + +// 直播头像样式 +message UserItemStyle { + // + string rect_text = 1; + // + string rect_text_color = 2; + // + string rect_icon = 3; + // + string rect_bg_color = 4; + // + string outer_animation = 5; +} + +// 视频页-我的追番 +message CardVideoFollowList { + // 查看全部(跳转链接) + string view_all_link = 1; + // 追番列表 + repeated FollowListItem list = 2; +} + +// 视频页-我的追番-番剧信息 +message FollowListItem { + // season_id + int64 season_id = 1; + // 标题 + string title = 2; + // 封面图 + string cover = 3; + // 跳转链接 + string url = 4; + // new_ep + NewEP new_ep = 5; + // 子标题 + string sub_title = 6; + // 卡片位次 + int64 pos = 7; +} + +// 最新ep +message NewEP { + // 最新话epid + int32 id = 1; + // 更新至XX话 + string index_show = 2; + // 更新剧集的封面 + string cover = 3; +} + +// 扩展字段,用于动态部分操作使用 +message Extend { + // 动态id + string dyn_id_str = 1; + // 业务方id + string business_id = 2; + // 源动态id + string orig_dyn_id_str = 3; + // 转发卡:用户名 + string orig_name = 4; + // 转发卡:图片url + string orig_img_url = 5; + // 转发卡:文字内容 + repeated Description orig_desc = 6; + // 填充文字内容 + repeated Description desc = 7; + // 被转发的源动态类型 + DynamicType orig_dyn_type = 8; + // 分享到站外展示类型 + string share_type = 9; + // 分享的场景 + string share_scene = 10; + // 是否快速转发 + bool is_fast_share = 11; + // r_type 分享和转发 + int32 r_type = 12; + // 数据源的动态类型 + int64 dyn_type = 13; + // 用户id + int64 uid = 14; + // 卡片跳转 + string card_url = 15; + // 透传字段 + google.protobuf.Any source_content = 16; + // 转发卡:用户头像 + string orig_face = 17; + // 评论跳转 + ExtendReply reply = 18; +} + +// 评论扩展 +message ExtendReply { + // 基础跳转地址 + string uri = 1; + // 参数部分 + repeated ExtendReplyParam params = 2; +} + +// 评论扩展参数部分 +message ExtendReplyParam { + // 参数名 + string key = 1; + // 参数值 + string value = 2; +} + +// 动态模块类型 +enum DynModuleType { + // 占位 + module_none = 0; + // 发布人模块 + module_author = 1; + // 争议小黄条 + module_dispute = 2; + // 描述文案 + module_desc = 3; + // 动态卡片 + module_dynamic = 4; + // 转发模块 + module_forward = 5; + // 点赞用户(废弃) + module_likeUser = 6; + // 小卡模块 + module_extend = 7; + // 附加卡 + module_additional = 8; + // 计数信息 + module_stat = 9; + // 折叠 + module_fold = 10; + // 评论外露(废弃) + module_comment = 11; + // 外露交互模块(点赞、评论) + module_interaction = 12; + // 转发卡的发布人模块 + module_author_forward = 13; + // 广告卡模块 + module_ad = 14; + // 通栏模块 + module_banner = 15; + // 获取物料失败模块 + module_item_null = 16; + // 分享组件 + module_share_info = 17; + // 相关推荐模块 + module_recommend = 18; + // 转发卡计数信息 + module_stat_forward = 19; + // 顶部模块 + module_top = 20; + // 底部模块 + module_bottom = 21; +} + +// 动态列表-用户模块-转发模板 +message ModuleAuthorForward { + // 展示标题 + repeated ModuleAuthorForwardTitle title = 1; + // 源卡片跳转链接 + string url = 2; + // 用户uid + int64 uid = 3; + // 时间标签 + string ptime_label_text = 4; + // 是否展示关注 + bool show_follow = 5; + // 源up主头像 + string face_url = 6; + // 双向关系 + Relation relation = 7; + // 右侧操作区域 - 三点样式 + repeated ThreePointItem tp_list = 8; +} + +// 动态列表-用户模块-转发模板-title部分 +message ModuleAuthorForwardTitle { + // 文案 + string text = 1; + // 跳转链接 + string url = 2; +} + +// 动态列表-用户模块-广告卡 +message ModuleAd { + // 广告透传信息 + google.protobuf.Any source_content = 1; + // 用户模块 + ModuleAuthor module_author = 2; +} + +// 动态列表-通栏 +message ModuleBanner { + // 模块标题 + string title = 1; + // 卡片类型 + ModuleBannerType type = 2; + // 卡片 + oneof item{ + ModuleBannerUser user = 3; + } + // 不感兴趣文案 + string dislike_text = 4; + // 不感兴趣图标 + string dislike_icon = 5; +} + +// 动态模块-投票 +message AdditionVote2 { + // 投票类型 + AdditionVoteType addition_vote_type = 1; + // 投票ID + int64 vote_id = 2; + // 标题 + string title = 3; + // 已过期: xxx人参与· 投票已过期。button 展示去查看 + // 未过期: xxx人参与· 剩xx天xx时xx分。button展示去投票 + string label = 4; + // 剩余时间 + int64 deadline = 5; + // 生效文案 + string open_text = 6; + // 过期文案 + string close_text = 7; + // 已投票 + string voted_text = 8; + // 投票状态 + AdditionVoteState state = 9; + // 投票信息 + oneof item { + // + AdditionVoteWord addition_vote_word = 10; + // + AdditionVotePic addition_vote_pic = 11; + // + AdditionVoteDefaule addition_vote_defaule = 12; + } + // 业务类型 + // 0:动态投票 1:话题h5组件 + int32 biz_type = 13; + // 投票总人数 + int64 total = 14; + // 附加卡类型 + string card_type = 15; + // 异常提示 + string tips = 16; + // 跳转地址 + string uri = 17; + // 是否投票 + bool is_voted = 18; + // 投票最多多选个数,单选为1 + int32 choice_cnt = 19; + // 是否默认选中分享到动态 + bool defaule_select_share = 20; +} + +// 投票类型 +enum AdditionVoteType { + // + addition_vote_type_none = 0; + // + addition_vote_type_word = 1; + // + addition_vote_type_pic = 2; + // + addition_vote_type_default = 3; +} + +// 外露文字类型 +message AdditionVoteWord { + // 外露文字投票详情 + repeated AdditionVoteWordItem item = 1; +} + +// 外露文字投票详情 +message AdditionVoteWordItem { + // 选项索引,从1开始 + int32 opt_idx = 1; + // 文案 + string title = 2; + // 选中状态 + bool is_vote = 3; + // 人数 + int32 total = 4; + // 占比 + double persent = 5; + // 是否投票人数最多的选项 + bool is_max_option = 6; +} + +// 外露图片类型 +message AdditionVotePic { + // 图片投票详情 + repeated AdditionVotePicItem item = 1; +} + +// 图片投票详情 +message AdditionVotePicItem { + // 选项索引,从1开始 + int32 opt_idx = 1; + // 图片 + string cover = 2; + // 选中状态 + bool is_vote = 3; + // 人数 + int32 total = 4; + // 占比 + double persent = 5; + // 标题文案 + string title = 6; + // 是否投票人数最多的选项 + bool is_max_option = 7; +} + +// 外露投票 +message AdditionVoteDefaule { + // 图片 多张 + repeated string cover = 1; +} + +// 投票状态 +enum AdditionVoteState { + // + addition_vote_state_none = 0; + // + addition_vote_state_open = 1; + // + addition_vote_state_close = 2; +} + +// 动态列表-通栏类型 +enum ModuleBannerType { + // + module_banner_type_none = 0; + // + module_banner_type_user = 1; +} + +// 获取物料失败模块 +message ModuleItemNull { + // 图标 + string icon = 1; + // 文案 + string text = 2; +} + +// 动态通栏-用户 +message ModuleBannerUser { + // 卡片列表 + repeated ModuleBannerUserItem list = 1; +} + +// 动态通栏-推荐用户卡 +message ModuleBannerUserItem { + // up主头像 + string face = 1; + // up主昵称 + string name = 2; + // up主uid + int64 uid = 3; + // 直播状态 + LiveState live_state = 4; + // 认证信息 + OfficialVerify official = 5; + // 大会员信息 + VipInfo vip = 6; + // 标签信息 + string label = 7; + // 按钮 + AdditionalButton button = 8; + // 跳转地址 + string uri = 9; +} + +// 动态-点赞用户模块 +message ModuleLikeUser { + // 点赞用户 + repeated LikeUser like_users = 1; + // 文案 + string display_text = 2; +} + +// 点赞用户 +message LikeUser { + // 用户mid + int64 uid = 1; + // 用户昵称 + string uname = 2; + // 点击跳转链接 + string uri = 3; +} + +// 点赞拓展信息 +message LikeInfo { + // 点赞动画 + LikeAnimation animation = 1; + // 是否点赞 + bool is_like = 2; +} + +// 点赞动画 +message LikeAnimation { + // 开始动画 + string begin = 1; + // 过程动画 + string proc = 2; + // 结束动画 + string end = 3; + // id + int64 like_icon_id = 4; +} + +// 右侧操作区域样式枚举 +enum ModuleAuthorBadgeType { + // 占位 + module_author_badge_type_none = 0; + // 三点 + module_author_badge_type_threePoint = 1; + // 按钮类型 + module_author_badge_type_button = 2; + // 提权 + module_author_badge_type_weight = 3; +} + +// 三点Item +message ThreePointItem { + //类型 + ThreePointType type = 1; + oneof item { + // 默认结构 + ThreePointDefault default = 2; + // 自动播放 + ThreePointAutoPlay auto_player = 3; + // 分享 + ThreePointShare share = 4; + // 关注 + ThreePointAttention attention = 5; + // 稍后在看 + ThreePointWait wait = 6; + // 不感兴趣 + ThreePointDislike dislike = 7; + // 收藏 + ThreePointFavorite favorite = 8; + // 置顶 + ThreePointTop top = 9; + // 评论 + ThreePointComment comment = 10; + } +} + +// 三点类型 +enum ThreePointType { + // 占位 + tp_none = 0; + // 使用此背景 + background = 1; + // 自动播放 + auto_play = 2; + // 分享 + share = 3; + // 稍后再播 + wait = 4; + // 关注 + attention = 5; + // 举报 + report = 6; + // 删除 + delete = 7; + // 不感兴趣 + dislike = 8; + // 收藏 + favorite = 9; + // 置顶 + top = 10; + // 评论 + comment = 11; +} + +// 动态列表渲染部分-用户模块-按钮 +message ModuleAuthorBadgeButton { + // 图标 + string icon = 1; + // 文案 + string title = 2; + // 状态 + int32 state = 3; + // 物料ID + int64 id = 4; +} + +// 三点-默认结构(使用此背景、举报、删除) +message ThreePointDefault { + // icon + string icon = 1; + // 标题 + string title = 2; + // 跳转链接 + string uri = 3; + // id + string id = 4; +} + +// 三点-自动播放 旧版不维护 +message ThreePointAutoPlay { + // open icon + string open_icon = 1; + // 开启时显示文案 + string open_text = 2; + // close icon + string close_icon = 3; + // 关闭时显示文案 + string close_text = 4; + // 开启时显示文案v2 + string open_text_v2 = 5; + // 关闭时显示文案v2 + string close_text_v2 = 6; + // 仅wifi/免流 icon + string only_icon = 7; + // 仅wifi/免流 文案 + string only_text = 8; + // open icon v2 + string open_icon_v2 = 9; + // close icon v2 + string close_icon_v2 = 10; +} + +// 三点-分享 +message ThreePointShare { + // icon + string icon = 1; + // 标题 + string title = 2; + // 分享渠道 + repeated ThreePointShareChannel channel = 3; + // 分享渠道名 + string channel_name = 4; + // 预约卡分享图信息,仅分享有预约信息的动态时存在 + ShareReserve reserve = 5; +} + +// 三点-分享渠道 +message ThreePointShareChannel { + // icon + string icon = 1; + // 名称 + string title = 2; +} + +// 三点-关注 +message ThreePointAttention { + // attention icon + string attention_icon = 1; + // 关注时显示的文案 + string attention_text = 2; + // not attention icon + string not_attention_icon = 3; + // 未关注时显示的文案 + string not_attention_text = 4; + // 当前关注状态 + ThreePointAttentionStatus status = 5; +} + +// 枚举-三点关注状态 +enum ThreePointAttentionStatus { + tp_not_attention = 0; + tp_attention = 1; +} + +// 三点-稍后在看 +message ThreePointWait { + // addition icon + string addition_icon = 1; + // 已添加时的文案 + string addition_text = 2; + // no addition icon + string no_addition_icon = 3; + // 未添加时的文案 + string no_addition_text = 4; + // avid + int64 id = 5; +} + +// 三点-不感兴趣 +message ThreePointDislike { + // icon + string icon = 1; + // 标题 + string title = 2; +} + +// 三点-收藏 +message ThreePointFavorite { + // icon + string icon = 1; + // 标题 + string title = 2; + // 物料ID + int64 id = 3; + // 是否订阅 + bool is_favourite = 4; + // 取消收藏图标 + string cancel_icon = 5; + // 取消收藏文案 + string cancel_title = 6; +} + +// 三点-置顶 +message ThreePointTop { + // icon + string icon = 1; + // 标题 + string title = 2; + // 状态 + TopType type = 3; +} + +// 状态 +enum TopType { + // 默认 置顶 + top_none = 0; + // 取消置顶 + top_cancel = 1; +} + +// 三点-评论 +message ThreePointComment { + // 精选评论区功能 + CommentDetail up_selection = 1; + // up关闭评论区功能 + CommentDetail up_close = 2; + // icon + string icon = 3; + // 标题 + string title = 4; +} + +// 精选评论区 +message CommentDetail { + // 该功能能不能用 + bool can_modify = 1; + // up关闭评论区功能 1允许关闭 0允许开放 + // 精选评论区功能 1允许停止评论精选 0允许评论精选 + int64 status = 2; +} + +// 提权样式 +message Weight { + // 提权展示标题 + string title = 1; + // 下拉框内容 + repeated WeightItem items = 2; + // icon + string icon = 3; +} + +// 提权样式 +message WeightItem { + // 类型 + WeightType type = 1; + oneof item { + // 热门默认跳转按钮 + WeightButton button = 2; + // 提权不感兴趣 + WeightDislike dislike = 3; + } +} + +// WeightType 枚举-提权类型 +enum WeightType { + // 默认 占位 + weight_none = 0; + // 不感兴趣 + weight_dislike = 1; + // 跳链 + weight_jump = 2; +} + +// 提权不感兴趣 +message WeightDislike { + // 负反馈业务类型 作为客户端调用负反馈接口的参数 + string feed_back_type = 1; + // 展示文案 + string title = 2; +} + +// 热门默认跳转按钮 +message WeightButton { + string jump_url = 1; + // 展示文案 + string title = 2; +} + +// 评论外露模块 +message ModuleComment { + // 评论外露展示项 + repeated CmtShowItem cmtShowItem = 1; +} + +// 评论外露展示项 +message CmtShowItem { + // 用户mid + int64 uid = 1; + // 用户昵称 + string uname = 2; + // 点击跳转链接 + string uri = 3; + // 评论内容 + string comment = 4; +} + +// 动态通用附加卡-follow/取消follow-请求 +message DynAdditionCommonFollowReq { + // + AdditionalButtonStatus status = 1; + // + string dyn_id = 2; + // + string card_type = 3; +} + +// +enum FollowType { + // + ft_not_follow = 0; + // + ft_follow = 1; +} + +// 动态通用附加卡-follow/取消follow-响应 +message DynAdditionCommonFollowReply { + // + AdditionalButtonStatus status = 1; +} + +// 动态点赞-请求 +message DynThumbReq { + // 用户uid + int64 uid = 1; + // 动态id + string dyn_id = 2; + // 动态类型(透传extend中的dyn_type) + int64 dyn_type = 3; + // 业务方资源id + string rid = 4; + // 点赞类型 + ThumbType type = 5; +} + +// +enum ThumbType { + // + cancel = 0; + // + thumb = 1; +} + +// 动态发布生成临时卡-请求 +message DynFakeCardReq { + //卡片内容json string + string content = 1; +} + +// 动态发布生成临时卡-响应 +message DynFakeCardReply { + // 动态卡片 + DynamicItem item = 1; +} + +// 关注推荐up主换一换-请求 +message DynRcmdUpExchangeReq { + // 登录用户id + int64 uid = 1; + // 上一次不感兴趣的ts,单位:秒;该字段透传给搜索 + int64 dislikeTs = 2; + // 需要与服务端确认或参照客户端现有参数 + string from = 3; +} + +// 关注推荐up主换一换-响应 +message DynRcmdUpExchangeReply { + // 无关注推荐 + Unfollow unfollow = 1; +} + +// 最近访问-个人feed流列表-请求 +message DynAllPersonalReq { + // 被访问者的 UID + int64 host_uid = 1; + // 偏移量 第一页可传空 + string offset = 2; + // 标明下拉几次 + int32 page = 3; + // 是否是预加载 默认是1;客户端预加载。1:是预加载,不更新已读进度,不会影响小红点;0:非预加载,更新已读进度 + int32 is_preload = 4; + // 秒开参数 新版本废弃,统一使用player_args + PlayurlParam playurl_param = 5; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 6; + // 服务端生成的透传上报字段 + string footprint = 7; + // 来源 + string from = 8; + // 秒开用 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9; +} + +// 最近访问-个人feed流列表-返回 +message DynAllPersonalReply { + // 动态列表 + repeated DynamicItem list = 1; + // 偏移量 + string offset = 2; + // 是否还有更多数据 + bool has_more = 3; + // 已读进度 + string read_offset = 4; + // 关注状态 + Relation relation = 5; + // 顶部预约卡 + TopAdditionUP addition_up = 6; +} + +// 顶部预约卡 +message TopAdditionUP { + // 预约卡 + repeated AdditionUP up = 1; + // 折叠数量,大于多少个进行折叠 + int32 has_fold = 2; +} + +// 最近访问-标记已读-请求 +message DynAllUpdOffsetReq { + // 被访问者的UID + int64 host_uid = 1; + // 用户已读进度 + string read_offset = 2; + // 服务端生成的透传上报字段 + string footprint = 3; +} + +// 投票操作-请求 +message DynVoteReq { + // 投票ID + int64 vote_id = 1; + // 选项索引数组 + repeated int64 votes = 2; + // 状态 + VoteStatus status = 3; + // 动态ID + string dynamic_id = 4; + // 是否分享 + bool share = 5; +} + +// 状态 +enum VoteStatus { + // 正常 + normal = 0; + // 匿名 + anonymous = 1; +} + +// 投票操作-响应 +message DynVoteReply { + // 投票详情 + AdditionVote2 item = 1; + // 投票操作返回状态 + string toast = 2; +} + +// 关注关系 +message Relation { + // 关注状态 + RelationStatus status = 1; + // 关注 + int32 is_follow = 2; + // 被关注 + int32 is_followed = 3; + // 文案 + string title = 4; +} + +// 关注关系 枚举 +enum RelationStatus { + // 1-未关注 2-关注 3-被关注 4-互相关注 5-特别关注 + relation_status_none = 0; + relation_status_nofollow = 1; + relation_status_follow = 2; + relation_status_followed = 3; + relation_status_mutual_concern = 4; + relation_status_special = 5; +} + +message MixUpListLiveItem { + // 直播状态 + // 0:未直播 1:直播中 + bool status = 1; + // 房间号 + int64 room_id = 2; + // 跳转地址 + string uri = 3; +} + +// 查看更多-列表单条数据 +message MixUpListItem { + // 用户mid + int64 uid = 1; + // 特别关注 + // 0:否 1:是 + int32 special_attention = 2; + // 小红点状态 + // 0:没有 1:有 + int32 reddot_state = 3; + // 直播信息 + MixUpListLiveItem live_info = 4; + // 昵称 + string name = 5; + // 头像 + string face = 6; + // 认证信息 + OfficialVerify official = 7; + // 大会员信息 + VipInfo vip = 8; + // 关注状态 + Relation relation = 9; +} + +// 查看更多-请求 +message DynMixUpListViewMoreReq { + // 排序策略 + // 1:推荐排序 2:最常访问 3:最近关注,其他值为默认排序 + int32 sort_type = 1; +} + +// 排序类型 +message SortType { + // 排序策略 + // 1:推荐排序 2:最常访问 3:最近关注 + int32 sort_type = 1; + // 排序策略名称 + string sort_type_name = 2; +} + +// 查看更多-列表-响应 +message DynMixUpListViewMoreReply { + // + repeated MixUpListItem items = 1; + // + string search_default_text = 2; + // 排序类型列表 + repeated SortType sort_types = 3; + // 是否展示更多的排序策略 + bool show_more_sort_types = 4; + // 默认排序策略 + int32 default_sort_type = 5; +} + +// 轻浏览-请求 +message DynLightReq { + // 透传 history_offset + string history_offset = 1; + // 向下翻页数 + int32 page = 2; + // 来源 + string from = 3; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 5; +} + +// 轻浏览-响应 +message DynLightReply { + // 卡片列表 + DynamicList dynamic_list = 1; +} + +// 动态详情页-请求 +message DynDetailReq { + // up主uid + int64 uid = 1; + // 动态ID + string dynamic_id = 2; + // 动态类型 + int64 dyn_type = 3; + // 业务方资源id + int64 rid = 4; + // 广告参数 + AdParam ad_param = 5; + // From来源 + string from = 6; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7; + // 分享id + string share_id = 8; + // 分享类型 + // 1:文字 2:图片 3:链接 4:视频 5:音频 + int32 share_mode = 9; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 10; + // pattern + string pattern = 11; +} + +// 动态详情页-响应 +message DynDetailReply { + // 动态详情 + DynamicItem item = 1; +} + +// 点赞列表-请求 +message LikeListReq { + // 动态ID + string dynamic_id = 1; + // 动态类型 + int64 dyn_type = 2; + // 业务方资源id + int64 rid = 3; + //上一页最后一个uid + int64 uid_offset = 4; + // 下拉页数 + int32 page = 5; +} + +// 点赞列表-响应 +message LikeListReply { + // 用户模块列表 + repeated ModuleAuthor list = 1; + // 是否还有更多数据 + bool has_more = 2; + // 点赞总数 + int64 total_count = 3; +} + +// 转发列表-请求 +message RepostListReq { + // 动态ID + string dynamic_id = 1; + // 动态类型 + int64 dyn_type = 2; + // 业务方资源id + int64 rid = 3; + // 偏移,使用上一页回包中的offset字段;第一页不传。 + string offset = 4; + // 来源 + string from = 5; + // 评论类型 + RepostType repost_type = 6; +} + +// 转发列表-响应 +message RepostListRsp { + // 列表 + repeated DynamicItem list = 1; + // 偏移 + string offset = 2; + // 是否还有更多 + bool has_more = 3; + // 转发总数 + int64 total_count = 4; + // 评论类型 + RepostType repost_type = 5; +} + +// 评论类型 +enum RepostType { + // 热门评论 + repost_hot = 0; + // 普通评论 + repost_general = 1; +} + +// 分享模块 +message ModuleShareInfo { + // 展示标题 + string title = 1; + // 分享组件列表 + repeated ShareChannel share_channels = 2; + // share_origin + string share_origin = 3; + // 业务id + string oid = 4; + // sid + string sid = 5; +} + +// 分享渠道组件 +message ShareChannel { + // 分享名称 + string name = 1; + // 分享按钮图片 + string image = 2; + // 分享渠道 + string channel = 3; + // 预约卡分享图信息,仅分享有预约信息的动态时存在 + ShareReserve reserve = 4; +} + +// 预约卡分享图信息 +message ShareReserve { + // 展示标题 + string title = 1; + // 描述(时间+类型) + string desc = 2; + // 二维码附带icon + string qr_code_icon = 3; + // 二维码附带文本 + string qr_code_text = 4; + // 二维码url + string qr_code_url = 5; +} + +// 相关推荐模块 +message ModuleRecommend { + // 模块标题 + string module_title = 1; + // 图片 + string image = 2; + // 标签 + string tag = 3; + // 标题 + string title = 4; + // 跳转链接 + string jump_url = 5; + // 序列化的广告信息 + repeated google.protobuf.Any ad = 6; +} + +// 空间页动态-请求 +message DynSpaceReq { + // 被访问者,也就是空间主人的uid + int64 host_uid = 1; + // 动态偏移history_offset + string history_offset = 2; + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 4; + // 向下翻页数,默认从1开始 + int64 page = 5; + // 来源,空间页:space,直播tab:live + string from = 6; +} + +// 空间页动态-响应 +message DynSpaceRsp { + // 卡片列表 + repeated DynamicItem list = 1; + // 历史偏移 + string history_offset = 2; + // 是否还有更多数据 + bool has_more = 3; +} + +// 顶部模块 +message ModuleTop { + // 三点模块 + repeated ThreePointItem tp_list = 1; +} + +// 底部模块 +message ModuleButtom { + // 计数模块 + ModuleStat module_stat = 1; +} + +// 推荐页-请求 +message DynRcmdReq { + // 秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 1; + // 客户端时区 兼容UTC-14和Etc/GMT+12,时区区间[-12,14] 东八区为8 + int32 local_time = 2; +} + +// 推荐页-响应 +message DynRcmdReply { + // 推荐页返回参数 + DynRegionRcmd region_rcmd = 1; +} + +// 推荐页返回参数 +message DynRegionRcmd { + // 分区推荐项目列表 + repeated DynRegionRcmdItem items = 1; + // 分区聚类推荐选项 + RcmdOption opts = 2; +} + +// 分区聚类推荐选项 +message RcmdOption{ + // 视频是否展示标题 + bool show_title = 1; +} + +// 分区推荐项目 +message DynRegionRcmdItem { + // 分区id + int64 rid = 1; + // 标题 + string title = 2; + // 推荐模块 + repeated ModuleRcmd items = 3; +} + +// 推荐模块 +message ModuleRcmd { + // 用户头像 + RcmdAuthor author = 1; + // 推荐卡片列表 + repeated RcmdItem items = 2; + // 透传到客户端的埋点字段 + string server_info = 3; +} + +// 推荐UP主用户模块 +message RcmdAuthor { + // 用户详情 + UserInfo author = 1; + // 描述:粉丝数、推荐理由 + string desc = 2; + // 关注状态 + Relation relation = 3; +} + +// 推荐卡片列表 +message RcmdItem { + // 卡片类型 + RcmdType type = 1; + // 卡片列表 + oneof rcmd_item { + // + RcmdArchive rcmd_archive = 2; + } +} + +// 推荐模块数据类型 +enum RcmdType { + // 稿件 + rcmd_archive = 0; +} + +// +message RcmdArchive { + // 标题 + string title = 1; + // 封面图 + string cover = 2; + // 视频封面展示项 1 + CoverIcon cover_left_icon_1 = 3; + // 视频封面展示项 1 + string cover_left_text_1 = 4; + // 秒开地址 + string uri = 5; + // 是否PGC + bool is_pgc = 6; + // aid + int64 aid = 7; +} + +// +enum CoverIcon { + // 占位 啥都不展示 + cover_icon_none = 0; + // 播放icon + cover_icon_play = 1; +} \ No newline at end of file diff --git a/grpc_api/bilibili/app/playurl/v1.proto b/grpc_api/bilibili/app/playurl/v1/playurl.proto similarity index 91% rename from grpc_api/bilibili/app/playurl/v1.proto rename to grpc_api/bilibili/app/playurl/v1/playurl.proto index 29b2150..2b10b2a 100644 --- a/grpc_api/bilibili/app/playurl/v1.proto +++ b/grpc_api/bilibili/app/playurl/v1/playurl.proto @@ -1,29 +1,75 @@ -//APP端视频播放v1接口 syntax = "proto3"; package bilibili.app.playurl.v1; //视频url service PlayURL { - //获取播放界面配置 - //https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayConf - rpc PlayConf (PlayConfReq) returns (PlayConfReply); - - // - // - rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply); - - //获取视频url - // + // 获取视频url rpc PlayURL (PlayURLReq) returns (PlayURLReply); - - //获取视频播放业务数据 - //https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayView - rpc PlayView (PlayViewReq) returns (PlayViewReply); - - // - // + // 获取投屏url rpc Project (ProjectReq) returns (ProjectReply); + // 获取视频url及播放界面配置 + rpc PlayView (PlayViewReq) returns (PlayViewReply); + // 编辑播放界面配置 + rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply); + // 获取播放界面配置 + rpc PlayConf (PlayConfReq) returns (PlayConfReply); +} + +// 获取视频url-请求 +message PlayURLReq { + // 稿件avid + int64 aid = 1; + // 视频cid + int64 cid = 2; + // 清晰度 + int64 qn = 3; + // 视频流版本 + int32 fnver = 4; + // 视频流格式 + int32 fnval = 5; + // 下载模式 + // 0:播放 1:flv下载 2:dash下载 + uint32 download = 6; + // 流url强制是用域名 + // 0:允许使用ip 1:使用http 2:使用https + int32 forceHost = 7; + // 允许4K + bool fourk = 8; + // 当前页spm + string spmid = 9; + // 上一页spm + string fromSpmid = 10; +} + +// 视频url-回复 +message PlayURLReply { + // 清晰的 + uint32 quality = 1; + // 格式 + string format = 2; + // 总时长(单位为ms) + uint64 timelength = 3; + // 编码id + uint32 videoCodecid = 4; + // 视频流版本 + uint32 fnver = 5; + // 视频流格式 + uint32 fnval = 6; + // 是否支持投影 + bool videoProject = 7; + // 分段视频流 + repeated ResponseUrl durl = 8; + // dash视频流 + ResponseDash dash = 9; + // 是否非全二压 + int32 noRexcode = 10; + // + UpgradeLimit upgradeLimit = 11; + // + repeated FormatDescription supportFormats = 12; + // 视频格式 + VideoType type = 13; } //获取播放界面配置-请求 @@ -48,82 +94,9 @@ message PlayConfEditReply { } -//视频url-请求 -message PlayURLReq { - //稿件avid - int64 aid = 1; - - //视频cid - int64 cid = 2; - - //清晰度 - int64 qn = 3; - - //视频流版本 - int32 fnver = 4; - - //视频流功能 - int32 fnval = 5; - - //下载模式 - //0:播放 1:flv下载 2:dash下载 - uint32 download = 6; - - //流url强制是用域名 - //0:允许使用ip 1:使用http 2:使用https - int32 forceHost = 7; - - //允许4K - bool fourk = 8; - - // - string spmid = 9; - - // - string fromSpmid = 10; -} -//视频url-回复 -message PlayURLReply { - // - uint32 quality = 1; - // - string format = 2; - // - uint64 timelength = 3; - - // - uint32 videoCodecid = 4; - - // - uint32 fnver = 5; - - // - uint32 fnval = 6; - - // - bool videoProject = 7; - - // - repeated ResponseUrl durl = 8; - - // - ResponseDash dash = 9; - - // - int32 noRexcode = 10; - - // - UpgradeLimit upgradeLimit = 11; - - // - repeated FormatDescription supportFormats = 12; - - // - VideoType type = 13; -} //获取视频播放业务数据-请求 message PlayViewReq { @@ -261,15 +234,13 @@ message CloudConf { FieldValue fieldValue = 3; } -//编码类型 +// 编码类型 enum CodeType { - //默认 + // 默认 NOCODE = 0; - - //H.264 + // H.264 CODE264 = 1; - - //H.265 + // H.265 CODE265 = 2; } @@ -277,88 +248,60 @@ enum CodeType { enum ConfType { // NoType_VALUE = 0; - // FLIPCONF_VALUE = 1; - // CASTCONF_VALUE = 2; - // FEEDBACK_VALUE = 3; - // SUBTITLE_VALUE = 4; - // PLAYBACKRATE_VALUE = 5; - // TIMEUP_VALUE = 6; - // PLAYBACKMODE_VALUE = 7; - // SCALEMODE_VALUE = 8; - // BACKGROUNDPLAY_VALUE = 9; - // LIKE_VALUE = 10; - // DISLIKE_VALUE = 11; - // COIN_VALUE = 12; - // ELEC_VALUE = 13; - // SHARE_VALUE = 14; - // SCREENSHOT_VALUE = 15; - // LOCKSCREEN_VALUE = 16; - // RECOMMEND_VALUE = 17; - // PLAYBACKSPEED_VALUE = 18; - // DEFINITION_VALUE = 19; - // SELECTIONS_VALUE = 20; - // NEXT_VALUE = 21; - // EDITDM_VALUE = 22; - // SMALLWINDOW_VALUE = 23; - // SHAKE_VALUE = 24; - // OUTERDM_VALUE = 25; - // INNERDM_VALUE = 26; - // PANORAMA_VALUE = 27; - // DOLBY_VALUE = 28; } @@ -367,22 +310,16 @@ enum ConfType { message DashItem { // uint32 id=1; - //主线流 string baseUrl=2; - //备用流 repeated string backupUrl=3; - //带宽 uint32 bandwidth=4; - // uint32 codecid=5; - //md5 string md5=6; - //大小 uint64 size=7; } @@ -550,85 +487,58 @@ message PlayAbilityConf { message PlayArcConf { //后台播放 ArcConf backgroundPlayConf=1; - //镜像反转 ArcConf flipConf=2; - //投屏 ArcConf castConf=3; - //反馈 ArcConf feedbackConf=4; - //字幕 ArcConf subtitleConf=5; - //播放速度 ArcConf playbackRateConf=6; - //定时停止 ArcConf timeUpConf=7; - //播放方式 ArcConf playbackModeConf=8; - //画面尺寸 ArcConf scaleModeConf=9; - //赞 ArcConf likeConf=10; - //踩 ArcConf dislikeConf=11; - //投币 ArcConf coinConf=12; - //充电 ArcConf elecConf=13; - //分享 ArcConf shareConf=14; - //截图 ArcConf screenShotConf=15; - //锁定 ArcConf lockScreenConf=16; - //相关推荐 ArcConf recommendConf=17; - //播放速度 ArcConf playbackSpeedConf=18; - //清晰度 ArcConf definitionConf=19; - //选集 ArcConf selectionsConf=20; - //下一集 ArcConf nextConf=21; - //编辑弹幕 ArcConf editDmConf=22; - //小窗 ArcConf smallWindowConf=23; - //震动 ArcConf shakeConf=24; - // ArcConf outerDmConf=25; - // ArcConf innerDmConf=26; - // ArcConf freyaEnterConf=27; - //杜比音效 ArcConf dolbyConf=28; } @@ -730,40 +640,28 @@ message Stream { message StreamInfo { //清晰度 qn uint32 quality=1; - //格式 string format=2; - //格式描述 string description=3; - //错误码 uint32 errCode=4; - //不满足条件信息 Limit limit=5; - //是否需要vip bool needVip=6; - //是否需要登录 bool needLogin=7; - //是否完整 bool intact=8; - //是否非全二压 bool noRexcode=9; - // int64 attribute=10; - //新版格式描述 string newDescription=11; - //格式文字 string displayDesc=12; - //新版格式描述备注 string superscript=13; } @@ -828,17 +726,14 @@ message VideoInfo { DolbyItem dolby=7; } -// +// 视频类型 enum VideoType { // Unknown_VALUE = 0; - - // + // flv格式 FLV_VALUE = 1; - - // + // dash格式 DASH_VALUE = 2; - - // + // mp4格式 MP4_VALUE = 3; } \ No newline at end of file diff --git a/grpc_api/bilibili/app/show/gateway/v1.proto b/grpc_api/bilibili/app/show/gateway/v1.proto deleted file mode 100644 index b74d25e..0000000 --- a/grpc_api/bilibili/app/show/gateway/v1.proto +++ /dev/null @@ -1,27 +0,0 @@ -syntax = "proto3"; - -package bilibili.app.show.gateway.v1; - -import "bilibili/broadcast/message/main.proto"; - -// -service AppShow { - // - // - rpc getActProgress (GetActProgressReq) returns (GetActProgressReply); -} - -//-请求 -message GetActProgressReq { - // - int64 pageID = 1; - - // - int64 mid = 2; -} - -//-回复 -message GetActProgressReply { - // - bilibili.broadcast.message.main.NativePageEvent event = 1; -} \ No newline at end of file diff --git a/grpc_api/bilibili/app/show/gateway/v1/gateway.proto b/grpc_api/bilibili/app/show/gateway/v1/gateway.proto new file mode 100644 index 0000000..6455556 --- /dev/null +++ b/grpc_api/bilibili/app/show/gateway/v1/gateway.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package bilibili.app.show.gateway.v1; + +import "bilibili/broadcast/message/main/native.proto"; + +// +service AppShow { + // 获取Native页进度数据 + rpc GetActProgress (GetActProgressReq) returns (GetActProgressReply); +} + +// 获取Native页进度数据-请求 +message GetActProgressReq { + // Native页id + int64 pageID = 1; + // 用户mid + int64 mid = 2; +} + +// 获取Native页进度数据-响应 +message GetActProgressReply { + // 进度数据 + bilibili.broadcast.message.main.NativePageEvent event = 1; +} \ No newline at end of file diff --git a/grpc_api/bilibili/app/show/popular/v1.proto b/grpc_api/bilibili/app/show/popular/v1.proto deleted file mode 100644 index 73d23b5..0000000 --- a/grpc_api/bilibili/app/show/popular/v1.proto +++ /dev/null @@ -1,140 +0,0 @@ -syntax = "proto3"; - -package bilibili.app.show.v1; - -import "bilibili/app/playurl/v1.proto"; -import "bilibili/app/card/v1.proto"; - -//热门 -service Popular { - //热门列表 - //https://app.bilibili.com/bilibili.app.show.v1.Popular/Index - rpc Index (PopularResultReq) returns (PopularReply); -} - -//热门列表-请求 -message PopularResultReq { - //排位索引id,为上此请求末尾项的idx - int64 idx = 1; - - //登录标识 - //1:未登陆用户第一页 2:登陆用户第一页 - int32 loginEvent = 2; - - //清晰度 - int32 qn = 3; - - //视频流版本 - int32 fnver = 4; - - //视频流功能 - int32 fnval = 5; - - //是否强制使用域名 - int32 forceHost = 6; - - //是否4K - int32 fourk = 7; - - // - sfixed32 spmid = 8; - - //上此请求末尾项的param - sfixed32 lastParam = 9; - - //上此请求的ver - sfixed32 ver = 10; - - // - int64 entranceId = 11; - - // - sfixed32 locationIds = 12; - - // - int32 sourceId = 13; - - // - int32 flush = 14; - - // - bilibili.app.playurl.v1.PlayerArgs playerArgs = 15; -} - -//热门列表-回复 -message PopularReply { - //卡片列表 - repeated bilibili.app.card.v1.Card items = 1; - - //配置信息 - Config config = 2; - - //版本? - string ver = 3; -} - -//气泡信息 -message Bubble { - //文案 - string bubbleContent = 1; - - //版本 - int32 version = 2; - - //起始时间 - int64 stime = 3; -} - -//配置信息 -message Config { - //标题 - string itemTitle = 1; - - //底部文案 - string bottomText = 2; - - //底部图片url - string bottomTextCover = 3; - - //底部跳转页url - string bottomTextUrl = 4; - - //顶部按钮信息列表 - repeated EntranceShow topItems = 5; - - //头图url - string headImage = 6; - - //当前页按钮信息 - repeated EntranceShow pageItems = 7; - - //? - int32 hit = 8; -} - -//按钮信息 -message EntranceShow { - //按钮图标url - string icon = 1; - - //按钮名 - string title = 2; - - //入口模块id - string moduleId = 3; - - //跳转uri - string uri = 4; - - //气泡信息 - Bubble bubble = 5; - - //入口id - int64 entranceId = 6; - - //头图url - string topPhoto = 7; - - //入口类型? - int32 entranceType = 8; -} \ No newline at end of file diff --git a/grpc_api/bilibili/app/show/popular/v1/popular.proto b/grpc_api/bilibili/app/show/popular/v1/popular.proto new file mode 100644 index 0000000..cffe40e --- /dev/null +++ b/grpc_api/bilibili/app/show/popular/v1/popular.proto @@ -0,0 +1,108 @@ +syntax = "proto3"; + +package bilibili.app.show.v1; + +import "bilibili/app/card/v1/card.proto"; +import "bilibili/app/archive/middleware/v1/preload.proto"; + +// 热门 +service Popular { + // 热门列表 + rpc Index (PopularResultReq) returns (PopularReply); +} + +// 热门列表-请求 +message PopularResultReq { + // 排位索引id,为上此请求末尾项的idx + int64 idx = 1; + // 登录标识 + // 1:未登陆用户第一页 2:登陆用户第一页 + int32 loginEvent = 2; + // 清晰度(旧版) + int32 qn = 3; + // 视频流版本(旧版) + int32 fnver = 4; + // 视频流功能(旧版) + int32 fnval = 5; + // 是否强制使用域名(旧版) + int32 forceHost = 6; + // 是否4K(旧版) + int32 fourk = 7; + // 当前页面spm + string spmid = 8; + // 上此请求末尾项的param + string lastParam = 9; + // 上此请求的ver + string ver = 10; + // 分品类热门的入口ID + int64 entranceId = 11; + // 热门定位id集合 + string locationIds = 12; + // 0:tag页 1:中间页 + int32 sourceId = 13; + // 数据埋点上报 + // 0:代表手动刷新 1:代表自动刷新 + int32 flush = 14; + // 视频秒开参数 + bilibili.app.archive.middleware.v1.PlayerArgs playerArgs = 15; +} + +// 热门列表-响应 +message PopularReply { + // 卡片列表 + repeated bilibili.app.card.v1.Card items = 1; + // 配置信息 + Config config = 2; + // 版本 + string ver = 3; +} + +// 配置信息 +message Config { + // 标题 + string itemTitle = 1; + // 底部文案 + string bottomText = 2; + // 底部图片url + string bottomTextCover = 3; + // 底部跳转页url + string bottomTextUrl = 4; + // 顶部按钮信息列表 + repeated EntranceShow topItems = 5; + // 头图url + string headImage = 6; + // 当前页按钮信息 + repeated EntranceShow pageItems = 7; + // + int32 hit = 8; +} + +// 按钮信息 +message EntranceShow { + // 按钮图标url + string icon = 1; + // 按钮名 + string title = 2; + // 入口模块id + string moduleId = 3; + // 跳转uri + string uri = 4; + // 气泡信息 + Bubble bubble = 5; + // 入口id + int64 entranceId = 6; + // 头图url + string topPhoto = 7; + // 入口类型 + int32 entranceType = 8; +} + +// 气泡信息 +message Bubble { + // 文案 + string bubbleContent = 1; + // 版本 + int32 version = 2; + // 起始时间 + int64 stime = 3; +} diff --git a/grpc_api/bilibili/app/show/rank/v1.proto b/grpc_api/bilibili/app/show/rank/v1.proto deleted file mode 100644 index 4ea5e8a..0000000 --- a/grpc_api/bilibili/app/show/rank/v1.proto +++ /dev/null @@ -1,153 +0,0 @@ -syntax = "proto3"; - -package bilibili.app.show.v1; - -//排行榜 -service Rank { - //全站排行榜 - //https://app.bilibili.com/bilibili.app.show.v1.Rank/RankAll - rpc RankAll (RankAllResultReq) returns (RankListReply); - - //分区排行榜 - //https://app.bilibili.com/bilibili.app.show.v1.Rank/RankRegion - rpc RankRegion (RankRegionResultReq) returns (RankListReply); -} - -//全站排行榜-请求 -message RankAllResultReq { - //必须为"all" - string order = 1; - - //页码 - //默认1页 - int32 pn = 2; - - //每页项数 - //默认100项,最大100 - int32 ps = 3; -} - -//分区排行榜-请求 -message RankRegionResultReq { - //一级分区tid(二级分区不可用) - //0:全站 - int32 rid = 1; - - //页码 - //默认1页 - int32 pn = 2; - - //每页项数 - //默认100项,最大100 - int32 ps = 3; -} - -//排行榜信息-回复 -message RankListReply { - //排行榜列表 - repeated Item items = 1; -} - -//排行榜列表项 -message Item { - //标题 - string title = 1; - - //封面url - string cover = 2; - - //参数(稿件avid) - string param = 3; - - //跳转uri - string uri = 4; - - //重定向url? - string redirectUrl = 5; - - //跳转类型 - //av:视频稿件 - string goto = 6; - - //播放数 - int32 play = 7; - - //弹幕数 - int32 danmaku = 8; - - //UP主UID - int64 mid = 9; - - //UP主昵称 - string name = 10; - - //UP主头像url - string face = 11; - - //评论数 - int32 reply = 12; - - //收藏数 - int32 favourite = 13; - - //发布时间 - int64 pubDate = 14; - - //分区tid - int32 rid = 15; - - //子分区名 - string rname = 16; - - //视频总时长 - int64 duration = 17; - - //点赞数 - int32 like = 18; - - //1P cid - int64 cid = 19; - - //综合评分 - int64 pts = 20; - - //合作视频文案 - string cooperation = 21; - - //属性位 - int32 attribute = 22; - - //UP主粉丝数 - int64 follower = 23; - - //UP主认证信息 - OfficialVerify officialVerify = 24; - - //同一UP收起子项列表 - repeated Item children = 25; - - //关系信息 - Relation relation = 26; -} - -//认证信息 -message OfficialVerify { - //认证类型 - //-1:无认证 0:个人认证 1:机构认证 - int32 type = 1; - - //认证信息 - string desc = 2; -} - -//关系信息 -message Relation { - //关系状态id - int32 status = 1; - - //是否关注 - int32 isFollow = 2; - - //是否粉丝 - int32 isFollowed = 3; -} \ No newline at end of file diff --git a/grpc_api/bilibili/app/show/rank/v1/rank.proto b/grpc_api/bilibili/app/show/rank/v1/rank.proto new file mode 100644 index 0000000..395100d --- /dev/null +++ b/grpc_api/bilibili/app/show/rank/v1/rank.proto @@ -0,0 +1,120 @@ +syntax = "proto3"; + +package bilibili.app.show.v1; + +// 排行榜 +service Rank { + // 全站排行榜 + rpc RankAll (RankAllResultReq) returns (RankListReply); + // 分区排行榜 + rpc RankRegion (RankRegionResultReq) returns (RankListReply); +} + +// 全站排行榜-请求 +message RankAllResultReq { + // 必须为"all" + string order = 1; + // 页码 + // 默认1页 + int32 pn = 2; + // 每页项数 + // 默认100项,最大100 + int32 ps = 3; +} + +// 分区排行榜-请求 +message RankRegionResultReq { + // 一级分区tid(二级分区不可用) + // 0:全站 + int32 rid = 1; + // 页码 + // 默认1页 + int32 pn = 2; + // 每页项数 + // 默认100项,最大100 + int32 ps = 3; +} + +// 排行榜信息-响应 +message RankListReply { + // 排行榜列表 + repeated Item items = 1; +} + +// 排行榜列表项 +message Item { + // 标题 + string title = 1; + // 封面url + string cover = 2; + // 参数(稿件avid) + string param = 3; + // 跳转uri + string uri = 4; + // 重定向url + string redirectUrl = 5; + // 跳转类型 + // av:视频稿件 + string goto = 6; + // 播放数 + int32 play = 7; + // 弹幕数 + int32 danmaku = 8; + // UP主mid + int64 mid = 9; + // UP主昵称 + string name = 10; + // UP主头像url + string face = 11; + // 评论数 + int32 reply = 12; + // 收藏数 + int32 favourite = 13; + // 发布时间 + int64 pubDate = 14; + // 分区tid + int32 rid = 15; + // 子分区名 + string rname = 16; + // 视频总时长 + int64 duration = 17; + // 点赞数 + int32 like = 18; + // 1P cid + int64 cid = 19; + // 综合评分 + int64 pts = 20; + // 合作视频文案 + string cooperation = 21; + // 属性位 + // 0:未关注 1:已关注 + int32 attribute = 22; + // UP主粉丝数 + int64 follower = 23; + // UP主认证信息 + OfficialVerify officialVerify = 24; + // 同一UP收起子项列表 + repeated Item children = 25; + // 关系信息 + Relation relation = 26; +} + +// 认证信息 +message OfficialVerify { + // 认证类型 + // -1:无认证 0:个人认证 1:机构认证 + int32 type = 1; + // 认证描述 + string desc = 2; +} + +// 关系信息 +message Relation { + // 关系状态id + // 1:未关注 2:已关注 3:被关注 4:互相关注 + int32 status = 1; + // 是否关注 + int32 isFollow = 2; + // 是否粉丝 + int32 isFollowed = 3; +} \ No newline at end of file diff --git a/grpc_api/bilibili/app/show/region/v1.proto b/grpc_api/bilibili/app/show/region/v1/region.proto similarity index 90% rename from grpc_api/bilibili/app/show/region/v1.proto rename to grpc_api/bilibili/app/show/region/v1/region.proto index 53e9cd1..4c6aba5 100644 --- a/grpc_api/bilibili/app/show/region/v1.proto +++ b/grpc_api/bilibili/app/show/region/v1/region.proto @@ -5,8 +5,7 @@ package bilibili.app.show.region.v1; // service Region { // - // - rpc region (RegionReq) returns (RegionReply); + rpc Region (RegionReq) returns (RegionReply); } // @@ -25,7 +24,6 @@ message RegionReply { message RegionConfig { // string scenesName = 1; - // string scenesType = 2; } @@ -34,34 +32,24 @@ message RegionConfig { message RegionInfo { // int32 tid = 1; - // int32 reid = 2; - // string name = 3; - // string logo = 4; - // string goto = 5; - // string param = 6; - // string uri = 7; - // int32 type = 8; - // int32 isBangumi = 9; - // repeated RegionInfo children = 10; - // repeated RegionConfig config = 11; } \ No newline at end of file diff --git a/grpc_api/bilibili/app/space/v1.proto b/grpc_api/bilibili/app/space/v1/space.proto similarity index 93% rename from grpc_api/bilibili/app/space/v1.proto rename to grpc_api/bilibili/app/space/v1/space.proto index b365f6d..173e45d 100644 --- a/grpc_api/bilibili/app/space/v1.proto +++ b/grpc_api/bilibili/app/space/v1/space.proto @@ -5,36 +5,29 @@ package bilibili.app.space.v1; // service Space { // - // - rpc archive (ArchiveReq) returns (ArchiveReply); + rpc Archive (ArchiveReq) returns (ArchiveReply); } //-请求 message ArchiveReq { // int64 vmid = 1; - // int32 pn = 2; - // int32 ps = 3; - // string order = 4; } -//-回复 +//-响应 message ArchiveReply { // repeated BiliSpaceVideo item = 1; - // int32 count = 2; - // EpisodicButton episodicButton = 3; - // repeated OrderConfig order = 4; } @@ -43,25 +36,18 @@ message ArchiveReply { message Badge { // string text = 1; - // string textColor = 2; - // string textColorNight = 3; - // string bgColor = 4; - // string bgColorNight = 5; - // string borderColor = 6; - // string borderColorNight = 7; - // int32 bgStyle = 8; } @@ -70,52 +56,36 @@ message Badge { message BiliSpaceVideo { // string title = 1; - // string tname = 2; - // int64 duration = 3; - // string cover = 4; - // string uri = 5; - // string param = 6; - // string danmaku = 7; - // int32 play = 8; - // int64 ctime = 9; - // bool state = 10; - // bool isPopular = 11; - // repeated Badge badges = 12; - // string coverRight = 13; - // string bvid = 14; - // bool isSteins = 15; - // bool isUgcpay = 16; - // bool isCooperation = 17; } @@ -124,7 +94,6 @@ message BiliSpaceVideo { message EpisodicButton { // string text = 1; - // string uri = 2; } @@ -133,7 +102,6 @@ message EpisodicButton { message OrderConfig { // string title = 1; - // string value = 2; -} \ No newline at end of file +} diff --git a/grpc_api/bilibili/app/splash/v1.proto b/grpc_api/bilibili/app/splash/v1/splash.proto similarity index 94% rename from grpc_api/bilibili/app/splash/v1.proto rename to grpc_api/bilibili/app/splash/v1/splash.proto index 54b342c..342316a 100644 --- a/grpc_api/bilibili/app/splash/v1.proto +++ b/grpc_api/bilibili/app/splash/v1/splash.proto @@ -7,42 +7,33 @@ import "google/protobuf/any.proto"; // service Splash { // - // - rpc list (SplashReq) returns (SplashReply); + rpc List (SplashReq) returns (SplashReply); } //-请求 message SplashReq { // int32 width = 1; - // int32 height = 2; - // string birth = 3; - // string adExtra = 4; - // string network = 5; } -//-回复 +//-响应 message SplashReply { // int32 maxTime = 1; - // int32 minInterval = 2; - // int32 pullInterval = 3; - // repeated SplashItem list = 4; - // repeated ShowStrategy show = 5; } @@ -51,10 +42,8 @@ message SplashReply { message ShowStrategy { // int32 id = 1; - // int64 stime = 2; - // int64 etime = 3; } @@ -63,118 +52,80 @@ message ShowStrategy { message SplashItem { // int32 id = 1; - // int32 type = 2; - // int32 cardType = 3; - // int32 duration = 4; - // int64 beginTime = 5; - // int64 endTime = 6; - // string thumb = 7; - // string hash = 8; - // string logoUrl = 9; - // string logoHash = 10; - // string videoUrl = 11; - // string videoHash = 12; - // int32 videoWidth = 13; - // int32 videoHeight = 14; - // string schema = 15; - // string schemaTitle = 16; - // string schemaPackageName = 17; - // repeated string schemaCallupWhiteList = 18; - // int32 skip = 19; - // string uri = 20; - // string uriTitle = 21; - // int32 source = 22; - // int32 cmMark = 23; - // string adCb = 24; - // int64 resourceId = 25; - // string requestId = 26; - // string clientIp = 27; - // bool isAd = 28; - // bool isAdLoc = 29; - // google.protobuf.Any extra = 30; - // int64 cardIndex = 31; - // int64 serverType = 32; - // int64 index = 33; - // string clickUrl = 34; - // string showUrl = 35; - // int32 timeTarget = 36; - // int32 encryption = 37; - // bool enablePreDownload = 38; - // bool enableBackgroundDownload = 39; } \ No newline at end of file diff --git a/grpc_api/bilibili/gaia/gw/gw_api.proto b/grpc_api/bilibili/gaia/gw/gw_api.proto new file mode 100644 index 0000000..0e12e88 --- /dev/null +++ b/grpc_api/bilibili/gaia/gw/gw_api.proto @@ -0,0 +1,119 @@ +syntax = "proto3"; + +package bilibili.gaia.gw; + +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; +import "google/protobuf/empty.proto"; +//import "extension/wdcli/wdcli.proto"; + +// 应用列表上报 +service Gaia { + // 应用列表上报 + rpc ExUploadAppList(GaiaEncryptMsgReq) returns (UploadAppListReply); + // 拉取rsa公钥 + rpc ExFetchPublicKey(.google.protobuf.Empty) returns (FetchPublicKeyReply); +} + +// +message FetchPublicKeyReply { + // 版本号 + string version = 1; + // RSA公钥 + string public_key = 2; + // 公钥过期时间 + int64 deadline = 3; +} + +message GaiaDeviceBasicInfo { + //平台&应用信息 + string platform = 1; //android/ios/web/h5; + string device = 2; //运行设备, 用于区分不同的app, 见客户端传入的对应参数。对于苹果系统,device有效值为phone, pad;安卓无法区分phone和pad,留空即可。 + string mobi_app = 3; //包类型,用于区分不同的app, 见客户端传入的对应参数(mobi_app );对于web端请求,请传空 + string origin =4; //客户端appkey, 用以区分不同的客户端,对应客户端请求参数中的appkey,如果无法获取可传空“” + string app_id = 5; //app产品编号 //产品编号,由数据平台分配,粉=1,白=2,蓝=3,直播姬=4,HD=5,海外=6,OTT=7,漫画=8,TV野版=9,小视频=10,网易漫画=11,网易漫画lite=12,网易漫画HD=13,国际版=14 + + //应用的版本信息 + string sdkver = 6; // SDK版本号 "sdkver": "2.6.6" + string app_version = 7; // app版本 "app_version":"5.36.0" + string app_version_code = 8; // app版本号 "app_version_code":"5360000" + string build = 9; // app版本号,见客户端传入的对应参数;对于web端请求,请传空 + + //渠道信息 + string channel = 10; //渠道标识,见客户端传入的对应参数;对于web端请求,请传空;对应chid + + //机器硬件信息 + string brand =11; //手机品牌,见客户端传入的对应参数; + string model=12; //手机型号,见客户端传入的对应参数 + string osver =13; //系统版本,见客户端传入的对应参数 + string user_agent=14; + + //设备标识信息 + string buvid_local = 15; //本地设备唯一标识 + string buvid = 16; //设备唯一标识 + + //登陆用户信息 + string mid = 17; //最后一次登陆用户的mid,如果无登陆信息,传0即可 + + //本次启动信息 + int64 fts = 18; // app首次启动时间 "fts":1530447775661 + int32 first = 19; // 是否首次启动 是:0 否:1 + + //网络相关的信息 + string network = 20; // 网络连接方式, WIFI/CELLULAR/OFFLINE/OTHERNET/ETHERNET "network":"WIFI", ESS_NETWORK_STATE、ACCESS_WIFI_STATE + //string ip = 20; +} + +//待加密的pb对象 +message DeviceAppList { + // 上报类型 + // first_installation:首次安装上报 first_open:每日启动上报 + string source = 1; + // 安装的系统程序列表 + repeated string system_app_list = 2; + //安装的用户程序列表 + repeated string user_app_list = 3; +} + +// 加密方式 +enum EncryptType{ + // 非法值 + INVALID_ENCRYPT_TYPE = 0; + // 同客户端人工约定AES加密私钥,存储在客户端 + CLIENT_AES = 1; + // 客户端随机生成一个用于AES加密的私钥,并用服务端下发的RSA公钥来加密 + SERVER_RSA_AES = 2; +} + +// 负载类型 +enum PayloadType { + //非法值 + INVALID_PAYLOAD = 0; + //设备app列表,对应DeviceAppList + DEVICE_APP_LIST = 1; +} + +// 风控通用消息头 +message GaiaMsgHeader { + //加密类型 + EncryptType encode_type = 1; + //类型 + PayloadType payload_type = 2; + //RAS加密后的aes_key + bytes encoded_aes_key = 3; + //当前时间戳(ms) + int64 ts = 4; +} + +// 应用列表上报-请求 +message GaiaEncryptMsgReq { + // 上报头部 + GaiaMsgHeader header = 1; + // 加密数据 + bytes encrypt_payload = 2; +} + +// 应用列表上报-响应 +message UploadAppListReply { + // 上报响应id + string trace_id = 1; +} \ No newline at end of file diff --git a/grpc_api/bilibili/main/community/reply/v1/reply_pb2.py b/grpc_api/bilibili/main/community/reply/v1/reply_pb2.py deleted file mode 100644 index 2666fb9..0000000 --- a/grpc_api/bilibili/main/community/reply/v1/reply_pb2.py +++ /dev/null @@ -1,3306 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: bilibili/main/community/reply/v1/reply.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='bilibili/main/community/reply/v1/reply.proto', - package='bilibili.main.community.reply.v1', - syntax='proto3', - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n,bilibili/main/community/reply/v1/reply.proto\x12 bilibili.main.community.reply.v1\x1a\x19google/protobuf/any.proto\"1\n\x02\x43M\x12+\n\rsourceContent\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\"\x83\x01\n\rDialogListReq\x12\x0b\n\x03oid\x18\x01 \x01(\x03\x12\x0c\n\x04type\x18\x02 \x01(\x03\x12\x0c\n\x04root\x18\x03 \x01(\x03\x12\x0c\n\x04rpid\x18\x04 \x01(\x03\x12;\n\x06\x63ursor\x18\x05 \x01(\x0b\x32+.bilibili.main.community.reply.v1.CursorReq\"\x96\x02\n\x0f\x44ialogListReply\x12=\n\x06\x63ursor\x18\x01 \x01(\x0b\x32-.bilibili.main.community.reply.v1.CursorReply\x12H\n\x0esubjectControl\x18\x02 \x01(\x0b\x32\x30.bilibili.main.community.reply.v1.SubjectControl\x12<\n\x07replies\x18\x03 \x03(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12<\n\x08\x61\x63tivity\x18\x04 \x01(\x0b\x32*.bilibili.main.community.reply.v1.Activity\"\xc5\x01\n\rDetailListReq\x12\x0b\n\x03oid\x18\x01 \x01(\x03\x12\x0c\n\x04type\x18\x02 \x01(\x03\x12\x0c\n\x04root\x18\x03 \x01(\x03\x12\x0c\n\x04rpid\x18\x04 \x01(\x03\x12;\n\x06\x63ursor\x18\x05 \x01(\x0b\x32+.bilibili.main.community.reply.v1.CursorReq\x12@\n\x05scene\x18\x06 \x01(\x0e\x32\x31.bilibili.main.community.reply.v1.DetailListScene\"\x93\x02\n\x0f\x44\x65tailListReply\x12=\n\x06\x63ursor\x18\x01 \x01(\x0b\x32-.bilibili.main.community.reply.v1.CursorReply\x12H\n\x0esubjectControl\x18\x02 \x01(\x0b\x32\x30.bilibili.main.community.reply.v1.SubjectControl\x12\x39\n\x04root\x18\x03 \x01(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12<\n\x08\x61\x63tivity\x18\x04 \x01(\x0b\x32*.bilibili.main.community.reply.v1.Activity\"\x93\x01\n\x0bMainListReq\x12\x0b\n\x03oid\x18\x01 \x01(\x03\x12\x0c\n\x04type\x18\x02 \x01(\x03\x12;\n\x06\x63ursor\x18\x03 \x01(\x0b\x32+.bilibili.main.community.reply.v1.CursorReq\x12\r\n\x05\x65xtra\x18\x04 \x01(\t\x12\x0f\n\x07\x61\x64\x45xtra\x18\x05 \x01(\t\x12\x0c\n\x04rpid\x18\x06 \x01(\x03\"h\n\x0ePreviewListReq\x12\x0b\n\x03oid\x18\x01 \x01(\x03\x12\x0c\n\x04type\x18\x02 \x01(\x03\x12;\n\x06\x63ursor\x18\x03 \x01(\x0b\x32+.bilibili.main.community.reply.v1.CursorReq\"U\n\nReplyExtra\x12\x11\n\tseason_id\x18\x01 \x01(\x03\x12\x13\n\x0bseason_type\x18\x02 \x01(\x03\x12\r\n\x05\x65p_id\x18\x03 \x01(\x03\x12\x10\n\x08is_story\x18\x04 \x01(\x08\"\x92\x03\n\x10PreviewListReply\x12=\n\x06\x63ursor\x18\x01 \x01(\x0b\x32-.bilibili.main.community.reply.v1.CursorReply\x12<\n\x07replies\x18\x02 \x03(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12H\n\x0esubjectControl\x18\x03 \x01(\x0b\x32\x30.bilibili.main.community.reply.v1.SubjectControl\x12:\n\x05upTop\x18\x04 \x01(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12=\n\x08\x61\x64minTop\x18\x05 \x01(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12<\n\x07voteTop\x18\x06 \x01(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\"\xf5\x05\n\rMainListReply\x12=\n\x06\x63ursor\x18\x01 \x01(\x0b\x32-.bilibili.main.community.reply.v1.CursorReply\x12<\n\x07replies\x18\x02 \x03(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12H\n\x0esubjectControl\x18\x03 \x01(\x0b\x32\x30.bilibili.main.community.reply.v1.SubjectControl\x12:\n\x05upTop\x18\x04 \x01(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12=\n\x08\x61\x64minTop\x18\x05 \x01(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12<\n\x07voteTop\x18\x06 \x01(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12\x38\n\x06notice\x18\x07 \x01(\x0b\x32(.bilibili.main.community.reply.v1.Notice\x12:\n\x07lottery\x18\x08 \x01(\x0b\x32).bilibili.main.community.reply.v1.Lottery\x12<\n\x08\x61\x63tivity\x18\t \x01(\x0b\x32*.bilibili.main.community.reply.v1.Activity\x12\x42\n\x0bupSelection\x18\n \x01(\x0b\x32-.bilibili.main.community.reply.v1.UpSelection\x12\x30\n\x02\x63m\x18\x0b \x01(\x0b\x32$.bilibili.main.community.reply.v1.CM\x12:\n\x07\x65\x66\x66\x65\x63ts\x18\x0c \x01(\x0b\x32).bilibili.main.community.reply.v1.Effects\"\x1d\n\x07\x45\x66\x66\x65\x63ts\x12\x12\n\npreloading\x18\x01 \x01(\t\"8\n\x0bUpSelection\x12\x14\n\x0cpendingCount\x18\x01 \x01(\x03\x12\x13\n\x0bignoreCount\x18\x02 \x01(\x03\"3\n\x06Notice\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\x0c\n\x04link\x18\x03 \x01(\t\"R\n\x08\x41\x63tivity\x12\x12\n\nactivityId\x18\x01 \x01(\x03\x12\x15\n\ractivityState\x18\x02 \x01(\x03\x12\x1b\n\x13\x61\x63tivityPlaceholder\x18\x03 \x01(\t\"\xc2\x02\n\x07Lottery\x12\x11\n\tlotteryId\x18\x01 \x01(\x03\x12\x15\n\rlotteryStatus\x18\x02 \x01(\x03\x12\x12\n\nlotteryMid\x18\x03 \x01(\x03\x12\x13\n\x0blotteryTime\x18\x04 \x01(\x03\x12\x0b\n\x03oid\x18\x05 \x01(\x03\x12\x0c\n\x04type\x18\x06 \x01(\x03\x12\r\n\x05\x63time\x18\x07 \x01(\x03\x12:\n\x07\x63ontent\x18\x08 \x01(\x0b\x32).bilibili.main.community.reply.v1.Content\x12\x38\n\x06member\x18\t \x01(\x0b\x32(.bilibili.main.community.reply.v1.Member\x12\x44\n\x0creplyControl\x18\n \x01(\x0b\x32..bilibili.main.community.reply.v1.ReplyControl\"]\n\tCursorReq\x12\x0c\n\x04next\x18\x01 \x01(\x03\x12\x0c\n\x04prev\x18\x02 \x01(\x03\x12\x34\n\x04mode\x18\x04 \x01(\x0e\x32&.bilibili.main.community.reply.v1.Mode\"\x92\x01\n\x0b\x43ursorReply\x12\x0c\n\x04next\x18\x01 \x01(\x03\x12\x0c\n\x04prev\x18\x02 \x01(\x03\x12\x0f\n\x07isBegin\x18\x03 \x01(\x08\x12\r\n\x05isEnd\x18\x04 \x01(\x08\x12\x34\n\x04mode\x18\x05 \x01(\x0e\x32&.bilibili.main.community.reply.v1.Mode\x12\x11\n\tmode_text\x18\x06 \x01(\t\"\xf7\x02\n\x0eSubjectControl\x12\r\n\x05upMid\x18\x01 \x01(\x03\x12\x10\n\x08isAssist\x18\x02 \x01(\x08\x12\x10\n\x08readOnly\x18\x03 \x01(\x08\x12\x15\n\rhasVoteAccess\x18\x04 \x01(\x08\x12\x18\n\x10hasLotteryAccess\x18\x05 \x01(\x08\x12\x16\n\x0ehasFoldedReply\x18\x06 \x01(\x08\x12\x0e\n\x06\x62gText\x18\x07 \x01(\t\x12\x11\n\tupBlocked\x18\x08 \x01(\x08\x12\x19\n\x11hasActivityAccess\x18\t \x01(\x08\x12\x11\n\tshowTitle\x18\n \x01(\x08\x12\x14\n\x0cshowUpAction\x18\x0b \x01(\x08\x12\x14\n\x0cswitcherType\x18\x0c \x01(\x03\x12\x14\n\x0cinputDisable\x18\r \x01(\x08\x12\x10\n\x08rootText\x18\x0e \x01(\t\x12\x11\n\tchildText\x18\x0f \x01(\t\x12\r\n\x05\x63ount\x18\x10 \x01(\x03\x12\r\n\x05title\x18\x11 \x01(\t\x12\x13\n\x0bgiveup_text\x18\x12 \x01(\t\"\x93\x03\n\tReplyInfo\x12<\n\x07replies\x18\x01 \x03(\x0b\x32+.bilibili.main.community.reply.v1.ReplyInfo\x12\n\n\x02id\x18\x02 \x01(\x03\x12\x0b\n\x03oid\x18\x03 \x01(\x03\x12\x0c\n\x04type\x18\x04 \x01(\x03\x12\x0b\n\x03mid\x18\x05 \x01(\x03\x12\x0c\n\x04root\x18\x06 \x01(\x03\x12\x0e\n\x06parent\x18\x07 \x01(\x03\x12\x0e\n\x06\x64ialog\x18\x08 \x01(\x03\x12\x0c\n\x04like\x18\t \x01(\x03\x12\r\n\x05\x63time\x18\n \x01(\x03\x12\r\n\x05\x63ount\x18\x0b \x01(\x03\x12:\n\x07\x63ontent\x18\x0c \x01(\x0b\x32).bilibili.main.community.reply.v1.Content\x12\x38\n\x06member\x18\r \x01(\x0b\x32(.bilibili.main.community.reply.v1.Member\x12\x44\n\x0creplyControl\x18\x0e \x01(\x0b\x32..bilibili.main.community.reply.v1.ReplyControl\"\xbc\x05\n\x07\x43ontent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x45\n\x06menber\x18\x02 \x03(\x0b\x32\x35.bilibili.main.community.reply.v1.Content.MenberEntry\x12\x43\n\x05\x65mote\x18\x03 \x03(\x0b\x32\x34.bilibili.main.community.reply.v1.Content.EmoteEntry\x12\x43\n\x05topic\x18\x04 \x03(\x0b\x32\x34.bilibili.main.community.reply.v1.Content.TopicEntry\x12?\n\x03url\x18\x05 \x03(\x0b\x32\x32.bilibili.main.community.reply.v1.Content.UrlEntry\x12\x34\n\x04vote\x18\x06 \x01(\x0b\x32&.bilibili.main.community.reply.v1.Vote\x1aW\n\x0bMenberEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.bilibili.main.community.reply.v1.Member:\x02\x38\x01\x1aU\n\nEmoteEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.bilibili.main.community.reply.v1.Emote:\x02\x38\x01\x1aU\n\nTopicEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.bilibili.main.community.reply.v1.Topic:\x02\x38\x01\x1aQ\n\x08UrlEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.bilibili.main.community.reply.v1.Url:\x02\x38\x01\"\xe4\x02\n\x0cReplyControl\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\x03\x12\x0e\n\x06upLike\x18\x02 \x01(\x08\x12\x0f\n\x07upReply\x18\x03 \x01(\x08\x12\x15\n\rshowFollowBtn\x18\x04 \x01(\x08\x12\x10\n\x08isAssist\x18\x05 \x01(\x08\x12\x11\n\tlabelText\x18\x06 \x01(\t\x12\x11\n\tfollowing\x18\x07 \x01(\x08\x12\x10\n\x08\x66ollowed\x18\x08 \x01(\x08\x12\x0f\n\x07\x62locked\x18\t \x01(\x08\x12\x16\n\x0ehasFoldedReply\x18\n \x01(\x08\x12\x15\n\risFoldedReply\x18\x0b \x01(\x08\x12\x0f\n\x07isUpTop\x18\x0c \x01(\x08\x12\x12\n\nisAdminTop\x18\r \x01(\x08\x12\x11\n\tisVoteTop\x18\x0e \x01(\x08\x12\x0f\n\x07maxLine\x18\x0f \x01(\x03\x12\x11\n\tinvisible\x18\x10 \x01(\x08\x12\x15\n\ris_contractor\x18\x11 \x01(\x08\x12\x0f\n\x07is_note\x18\x12 \x01(\x08\"\x8b\x01\n\x03Url\x12\r\n\x05title\x18\x01 \x01(\t\x12\r\n\x05state\x18\x02 \x01(\x03\x12\x12\n\nprefixIcon\x18\x03 \x01(\t\x12\x14\n\x0c\x61ppUrlSchema\x18\x04 \x01(\t\x12\x0f\n\x07\x61ppName\x18\x05 \x01(\t\x12\x16\n\x0e\x61ppPackageName\x18\x06 \x01(\t\x12\x13\n\x0b\x63lickReport\x18\x07 \x01(\t\"!\n\x05Topic\x12\x0c\n\x04link\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x03\"\"\n\x05\x45mote\x12\x0c\n\x04size\x18\x01 \x01(\x03\x12\x0b\n\x03url\x18\x02 \x01(\t\"0\n\x04Vote\x12\n\n\x02id\x18\x01 \x01(\x03\x12\r\n\x05title\x18\x02 \x01(\t\x12\r\n\x05\x63ount\x18\x03 \x01(\x03\"\x9e\x04\n\x06Member\x12\x0b\n\x03mid\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0b\n\x03sex\x18\x03 \x01(\t\x12\x0c\n\x04\x66\x61\x63\x65\x18\x04 \x01(\t\x12\r\n\x05level\x18\x05 \x01(\x03\x12\x1a\n\x12officialVerifyType\x18\x06 \x01(\x03\x12\x0f\n\x07vipType\x18\x07 \x01(\x03\x12\x11\n\tvipStatus\x18\x08 \x01(\x03\x12\x14\n\x0cvipThemeType\x18\t \x01(\x03\x12\x14\n\x0cvipLabelPath\x18\n \x01(\t\x12\x18\n\x10garbPendantImage\x18\x0b \x01(\t\x12\x15\n\rgarbCardImage\x18\x0c \x01(\t\x12\x1e\n\x16garbCardImageWithFocus\x18\r \x01(\t\x12\x17\n\x0fgarbCardJumpUrl\x18\x0e \x01(\t\x12\x16\n\x0egarbCardNumber\x18\x0f \x01(\t\x12\x18\n\x10garbCardFanColor\x18\x10 \x01(\t\x12\x15\n\rgarbCardIsFan\x18\x11 \x01(\x08\x12\x15\n\rfansMedalName\x18\x12 \x01(\t\x12\x16\n\x0e\x66\x61nsMedalLevel\x18\x13 \x01(\x03\x12\x16\n\x0e\x66\x61nsMedalColor\x18\x14 \x01(\x03\x12\x1a\n\x12vip_nickname_color\x18\x15 \x01(\t\x12\x1c\n\x14vip_avatar_subscript\x18\x16 \x01(\x05\x12\x16\n\x0evip_label_text\x18\x17 \x01(\t\x12\x17\n\x0fvip_label_theme\x18\x18 \x01(\t\"1\n\x14SearchItemPreHookReq\x12\x0b\n\x03oid\x18\x01 \x01(\x03\x12\x0c\n\x04type\x18\x02 \x01(\x03\"\x90\x01\n\x16SearchItemPreHookReply\x12\x17\n\x0fplaceholderText\x18\x01 \x01(\t\x12\x16\n\x0e\x62\x61\x63kgroundText\x18\x02 \x01(\t\x12\x45\n\x0borderedType\x18\x03 \x03(\x0e\x32\x30.bilibili.main.community.reply.v1.SearchItemType\"\x82\x01\n\rSearchItemReq\x12\x45\n\x06\x63ursor\x18\x01 \x01(\x0b\x32\x35.bilibili.main.community.reply.v1.SearchItemCursorReq\x12\x0b\n\x03oid\x18\x02 \x01(\x03\x12\x0c\n\x04type\x18\x03 \x01(\x03\x12\x0f\n\x07keyword\x18\x04 \x01(\t\"+\n\x18SearchItemReplyExtraInfo\x12\x0f\n\x07\x65ventId\x18\x01 \x01(\t\"\xe2\x01\n\x0fSearchItemReply\x12G\n\x06\x63ursor\x18\x01 \x01(\x0b\x32\x37.bilibili.main.community.reply.v1.SearchItemCursorReply\x12;\n\x05items\x18\x02 \x03(\x0b\x32,.bilibili.main.community.reply.v1.SearchItem\x12I\n\x05\x65xtra\x18\x03 \x01(\x0b\x32:.bilibili.main.community.reply.v1.SearchItemReplyExtraInfo\"g\n\x13SearchItemCursorReq\x12\x0c\n\x04next\x18\x01 \x01(\x03\x12\x42\n\x08itemType\x18\x02 \x01(\x0e\x32\x30.bilibili.main.community.reply.v1.SearchItemType\"6\n\x15SearchItemCursorReply\x12\x0f\n\x07hasNext\x18\x01 \x01(\x08\x12\x0c\n\x04next\x18\x02 \x01(\x03\"\xf1\x01\n\nSearchItem\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x42\n\x05goods\x18\x02 \x01(\x0b\x32\x31.bilibili.main.community.reply.v1.GoodsSearchItemH\x00\x12\x42\n\x05video\x18\x03 \x01(\x0b\x32\x31.bilibili.main.community.reply.v1.VideoSearchItemH\x00\x12\x46\n\x07\x61rticle\x18\x04 \x01(\x0b\x32\x33.bilibili.main.community.reply.v1.ArticleSearchItemH\x00\x42\x06\n\x04item\"f\n\x0fGoodsSearchItem\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05price\x18\x03 \x01(\t\x12\x0e\n\x06income\x18\x04 \x01(\t\x12\x0b\n\x03img\x18\x05 \x01(\t\x12\r\n\x05label\x18\x06 \x01(\t\"\xf1\x01\n\x0fVideoSearchItem\x12\x46\n\x04type\x18\x01 \x01(\x0e\x32\x38.bilibili.main.community.reply.v1.SearchItemVideoSubType\x12\x43\n\x03ugc\x18\x02 \x01(\x0b\x32\x34.bilibili.main.community.reply.v1.UGCVideoSearchItemH\x00\x12\x43\n\x03pgc\x18\x03 \x01(\x0b\x32\x34.bilibili.main.community.reply.v1.PGCVideoSearchItemH\x00\x42\x0c\n\nvideo_item\"X\n\x12UGCVideoSearchItem\x12\r\n\x05title\x18\x01 \x01(\t\x12\x12\n\nupNickname\x18\x02 \x01(\t\x12\x10\n\x08\x64uration\x18\x03 \x01(\x03\x12\r\n\x05\x63over\x18\x04 \x01(\t\"D\n\x12PGCVideoSearchItem\x12\r\n\x05title\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12\r\n\x05\x63over\x18\x03 \x01(\t\"F\n\x11\x41rticleSearchItem\x12\r\n\x05title\x18\x01 \x01(\t\x12\x12\n\nupNickname\x18\x02 \x01(\t\x12\x0e\n\x06\x63overs\x18\x03 \x03(\t**\n\x0f\x44\x65tailListScene\x12\t\n\x05REPLY\x10\x00\x12\x0c\n\x08MSG_FEED\x10\x01*K\n\x04Mode\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0f\n\x0bUNSPECIFIED\x10\x01\x12\x12\n\x0eMAIN_LIST_TIME\x10\x02\x12\x11\n\rMAIN_LIST_HOT\x10\x03*\\\n\x0eSearchItemType\x12\x15\n\x11\x44\x45\x46\x41ULT_ITEM_TYPE\x10\x00\x12\x0f\n\x0bGOODS_VALUE\x10\x01\x12\x0f\n\x0bVIDEO_VALUE\x10\x02\x12\x11\n\rARTICLE_VALUE\x10\x03**\n\x16SearchItemVideoSubType\x12\x07\n\x03UGC\x10\x00\x12\x07\n\x03PGC\x10\x01\x32\xc6\x05\n\x05Reply\x12j\n\x08MainList\x12-.bilibili.main.community.reply.v1.MainListReq\x1a/.bilibili.main.community.reply.v1.MainListReply\x12p\n\nDetailList\x12/.bilibili.main.community.reply.v1.DetailListReq\x1a\x31.bilibili.main.community.reply.v1.DetailListReply\x12p\n\nDialogList\x12/.bilibili.main.community.reply.v1.DialogListReq\x1a\x31.bilibili.main.community.reply.v1.DialogListReply\x12s\n\x0bPreviewList\x12\x30.bilibili.main.community.reply.v1.PreviewListReq\x1a\x32.bilibili.main.community.reply.v1.PreviewListReply\x12\x85\x01\n\x11SearchItemPreHook\x12\x36.bilibili.main.community.reply.v1.SearchItemPreHookReq\x1a\x38.bilibili.main.community.reply.v1.SearchItemPreHookReply\x12p\n\nSearchItem\x12/.bilibili.main.community.reply.v1.SearchItemReq\x1a\x31.bilibili.main.community.reply.v1.SearchItemReplyb\x06proto3' - , - dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) - -_DETAILLISTSCENE = _descriptor.EnumDescriptor( - name='DetailListScene', - full_name='bilibili.main.community.reply.v1.DetailListScene', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='REPLY', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='MSG_FEED', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=7600, - serialized_end=7642, -) -_sym_db.RegisterEnumDescriptor(_DETAILLISTSCENE) - -DetailListScene = enum_type_wrapper.EnumTypeWrapper(_DETAILLISTSCENE) -_MODE = _descriptor.EnumDescriptor( - name='Mode', - full_name='bilibili.main.community.reply.v1.Mode', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='DEFAULT', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='MAIN_LIST_TIME', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='MAIN_LIST_HOT', index=3, number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=7644, - serialized_end=7719, -) -_sym_db.RegisterEnumDescriptor(_MODE) - -Mode = enum_type_wrapper.EnumTypeWrapper(_MODE) -_SEARCHITEMTYPE = _descriptor.EnumDescriptor( - name='SearchItemType', - full_name='bilibili.main.community.reply.v1.SearchItemType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='DEFAULT_ITEM_TYPE', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='GOODS_VALUE', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='VIDEO_VALUE', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='ARTICLE_VALUE', index=3, number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=7721, - serialized_end=7813, -) -_sym_db.RegisterEnumDescriptor(_SEARCHITEMTYPE) - -SearchItemType = enum_type_wrapper.EnumTypeWrapper(_SEARCHITEMTYPE) -_SEARCHITEMVIDEOSUBTYPE = _descriptor.EnumDescriptor( - name='SearchItemVideoSubType', - full_name='bilibili.main.community.reply.v1.SearchItemVideoSubType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UGC', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PGC', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=7815, - serialized_end=7857, -) -_sym_db.RegisterEnumDescriptor(_SEARCHITEMVIDEOSUBTYPE) - -SearchItemVideoSubType = enum_type_wrapper.EnumTypeWrapper(_SEARCHITEMVIDEOSUBTYPE) -REPLY = 0 -MSG_FEED = 1 -DEFAULT = 0 -UNSPECIFIED = 1 -MAIN_LIST_TIME = 2 -MAIN_LIST_HOT = 3 -DEFAULT_ITEM_TYPE = 0 -GOODS_VALUE = 1 -VIDEO_VALUE = 2 -ARTICLE_VALUE = 3 -UGC = 0 -PGC = 1 - - - -_CM = _descriptor.Descriptor( - name='CM', - full_name='bilibili.main.community.reply.v1.CM', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='sourceContent', full_name='bilibili.main.community.reply.v1.CM.sourceContent', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=109, - serialized_end=158, -) - - -_DIALOGLISTREQ = _descriptor.Descriptor( - name='DialogListReq', - full_name='bilibili.main.community.reply.v1.DialogListReq', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='oid', full_name='bilibili.main.community.reply.v1.DialogListReq.oid', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.DialogListReq.type', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='root', full_name='bilibili.main.community.reply.v1.DialogListReq.root', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='rpid', full_name='bilibili.main.community.reply.v1.DialogListReq.rpid', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.DialogListReq.cursor', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=161, - serialized_end=292, -) - - -_DIALOGLISTREPLY = _descriptor.Descriptor( - name='DialogListReply', - full_name='bilibili.main.community.reply.v1.DialogListReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.DialogListReply.cursor', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='subjectControl', full_name='bilibili.main.community.reply.v1.DialogListReply.subjectControl', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='replies', full_name='bilibili.main.community.reply.v1.DialogListReply.replies', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='activity', full_name='bilibili.main.community.reply.v1.DialogListReply.activity', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=295, - serialized_end=573, -) - - -_DETAILLISTREQ = _descriptor.Descriptor( - name='DetailListReq', - full_name='bilibili.main.community.reply.v1.DetailListReq', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='oid', full_name='bilibili.main.community.reply.v1.DetailListReq.oid', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.DetailListReq.type', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='root', full_name='bilibili.main.community.reply.v1.DetailListReq.root', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='rpid', full_name='bilibili.main.community.reply.v1.DetailListReq.rpid', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.DetailListReq.cursor', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='scene', full_name='bilibili.main.community.reply.v1.DetailListReq.scene', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=576, - serialized_end=773, -) - - -_DETAILLISTREPLY = _descriptor.Descriptor( - name='DetailListReply', - full_name='bilibili.main.community.reply.v1.DetailListReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.DetailListReply.cursor', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='subjectControl', full_name='bilibili.main.community.reply.v1.DetailListReply.subjectControl', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='root', full_name='bilibili.main.community.reply.v1.DetailListReply.root', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='activity', full_name='bilibili.main.community.reply.v1.DetailListReply.activity', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=776, - serialized_end=1051, -) - - -_MAINLISTREQ = _descriptor.Descriptor( - name='MainListReq', - full_name='bilibili.main.community.reply.v1.MainListReq', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='oid', full_name='bilibili.main.community.reply.v1.MainListReq.oid', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.MainListReq.type', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.MainListReq.cursor', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='extra', full_name='bilibili.main.community.reply.v1.MainListReq.extra', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='adExtra', full_name='bilibili.main.community.reply.v1.MainListReq.adExtra', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='rpid', full_name='bilibili.main.community.reply.v1.MainListReq.rpid', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1054, - serialized_end=1201, -) - - -_PREVIEWLISTREQ = _descriptor.Descriptor( - name='PreviewListReq', - full_name='bilibili.main.community.reply.v1.PreviewListReq', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='oid', full_name='bilibili.main.community.reply.v1.PreviewListReq.oid', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.PreviewListReq.type', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.PreviewListReq.cursor', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1203, - serialized_end=1307, -) - - -_REPLYEXTRA = _descriptor.Descriptor( - name='ReplyExtra', - full_name='bilibili.main.community.reply.v1.ReplyExtra', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='season_id', full_name='bilibili.main.community.reply.v1.ReplyExtra.season_id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='season_type', full_name='bilibili.main.community.reply.v1.ReplyExtra.season_type', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='ep_id', full_name='bilibili.main.community.reply.v1.ReplyExtra.ep_id', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_story', full_name='bilibili.main.community.reply.v1.ReplyExtra.is_story', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1309, - serialized_end=1394, -) - - -_PREVIEWLISTREPLY = _descriptor.Descriptor( - name='PreviewListReply', - full_name='bilibili.main.community.reply.v1.PreviewListReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.PreviewListReply.cursor', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='replies', full_name='bilibili.main.community.reply.v1.PreviewListReply.replies', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='subjectControl', full_name='bilibili.main.community.reply.v1.PreviewListReply.subjectControl', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upTop', full_name='bilibili.main.community.reply.v1.PreviewListReply.upTop', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='adminTop', full_name='bilibili.main.community.reply.v1.PreviewListReply.adminTop', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='voteTop', full_name='bilibili.main.community.reply.v1.PreviewListReply.voteTop', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1397, - serialized_end=1799, -) - - -_MAINLISTREPLY = _descriptor.Descriptor( - name='MainListReply', - full_name='bilibili.main.community.reply.v1.MainListReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.MainListReply.cursor', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='replies', full_name='bilibili.main.community.reply.v1.MainListReply.replies', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='subjectControl', full_name='bilibili.main.community.reply.v1.MainListReply.subjectControl', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upTop', full_name='bilibili.main.community.reply.v1.MainListReply.upTop', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='adminTop', full_name='bilibili.main.community.reply.v1.MainListReply.adminTop', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='voteTop', full_name='bilibili.main.community.reply.v1.MainListReply.voteTop', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='notice', full_name='bilibili.main.community.reply.v1.MainListReply.notice', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='lottery', full_name='bilibili.main.community.reply.v1.MainListReply.lottery', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='activity', full_name='bilibili.main.community.reply.v1.MainListReply.activity', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upSelection', full_name='bilibili.main.community.reply.v1.MainListReply.upSelection', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cm', full_name='bilibili.main.community.reply.v1.MainListReply.cm', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='effects', full_name='bilibili.main.community.reply.v1.MainListReply.effects', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1802, - serialized_end=2559, -) - - -_EFFECTS = _descriptor.Descriptor( - name='Effects', - full_name='bilibili.main.community.reply.v1.Effects', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='preloading', full_name='bilibili.main.community.reply.v1.Effects.preloading', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2561, - serialized_end=2590, -) - - -_UPSELECTION = _descriptor.Descriptor( - name='UpSelection', - full_name='bilibili.main.community.reply.v1.UpSelection', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='pendingCount', full_name='bilibili.main.community.reply.v1.UpSelection.pendingCount', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='ignoreCount', full_name='bilibili.main.community.reply.v1.UpSelection.ignoreCount', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2592, - serialized_end=2648, -) - - -_NOTICE = _descriptor.Descriptor( - name='Notice', - full_name='bilibili.main.community.reply.v1.Notice', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='bilibili.main.community.reply.v1.Notice.id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='content', full_name='bilibili.main.community.reply.v1.Notice.content', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='link', full_name='bilibili.main.community.reply.v1.Notice.link', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2650, - serialized_end=2701, -) - - -_ACTIVITY = _descriptor.Descriptor( - name='Activity', - full_name='bilibili.main.community.reply.v1.Activity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='activityId', full_name='bilibili.main.community.reply.v1.Activity.activityId', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='activityState', full_name='bilibili.main.community.reply.v1.Activity.activityState', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='activityPlaceholder', full_name='bilibili.main.community.reply.v1.Activity.activityPlaceholder', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2703, - serialized_end=2785, -) - - -_LOTTERY = _descriptor.Descriptor( - name='Lottery', - full_name='bilibili.main.community.reply.v1.Lottery', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='lotteryId', full_name='bilibili.main.community.reply.v1.Lottery.lotteryId', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='lotteryStatus', full_name='bilibili.main.community.reply.v1.Lottery.lotteryStatus', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='lotteryMid', full_name='bilibili.main.community.reply.v1.Lottery.lotteryMid', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='lotteryTime', full_name='bilibili.main.community.reply.v1.Lottery.lotteryTime', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='oid', full_name='bilibili.main.community.reply.v1.Lottery.oid', index=4, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.Lottery.type', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='ctime', full_name='bilibili.main.community.reply.v1.Lottery.ctime', index=6, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='content', full_name='bilibili.main.community.reply.v1.Lottery.content', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='member', full_name='bilibili.main.community.reply.v1.Lottery.member', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='replyControl', full_name='bilibili.main.community.reply.v1.Lottery.replyControl', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2788, - serialized_end=3110, -) - - -_CURSORREQ = _descriptor.Descriptor( - name='CursorReq', - full_name='bilibili.main.community.reply.v1.CursorReq', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='next', full_name='bilibili.main.community.reply.v1.CursorReq.next', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='prev', full_name='bilibili.main.community.reply.v1.CursorReq.prev', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='mode', full_name='bilibili.main.community.reply.v1.CursorReq.mode', index=2, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3112, - serialized_end=3205, -) - - -_CURSORREPLY = _descriptor.Descriptor( - name='CursorReply', - full_name='bilibili.main.community.reply.v1.CursorReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='next', full_name='bilibili.main.community.reply.v1.CursorReply.next', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='prev', full_name='bilibili.main.community.reply.v1.CursorReply.prev', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='isBegin', full_name='bilibili.main.community.reply.v1.CursorReply.isBegin', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='isEnd', full_name='bilibili.main.community.reply.v1.CursorReply.isEnd', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='mode', full_name='bilibili.main.community.reply.v1.CursorReply.mode', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='mode_text', full_name='bilibili.main.community.reply.v1.CursorReply.mode_text', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3208, - serialized_end=3354, -) - - -_SUBJECTCONTROL = _descriptor.Descriptor( - name='SubjectControl', - full_name='bilibili.main.community.reply.v1.SubjectControl', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='upMid', full_name='bilibili.main.community.reply.v1.SubjectControl.upMid', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='isAssist', full_name='bilibili.main.community.reply.v1.SubjectControl.isAssist', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='readOnly', full_name='bilibili.main.community.reply.v1.SubjectControl.readOnly', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='hasVoteAccess', full_name='bilibili.main.community.reply.v1.SubjectControl.hasVoteAccess', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='hasLotteryAccess', full_name='bilibili.main.community.reply.v1.SubjectControl.hasLotteryAccess', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='hasFoldedReply', full_name='bilibili.main.community.reply.v1.SubjectControl.hasFoldedReply', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='bgText', full_name='bilibili.main.community.reply.v1.SubjectControl.bgText', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upBlocked', full_name='bilibili.main.community.reply.v1.SubjectControl.upBlocked', index=7, - number=8, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='hasActivityAccess', full_name='bilibili.main.community.reply.v1.SubjectControl.hasActivityAccess', index=8, - number=9, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='showTitle', full_name='bilibili.main.community.reply.v1.SubjectControl.showTitle', index=9, - number=10, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='showUpAction', full_name='bilibili.main.community.reply.v1.SubjectControl.showUpAction', index=10, - number=11, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='switcherType', full_name='bilibili.main.community.reply.v1.SubjectControl.switcherType', index=11, - number=12, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='inputDisable', full_name='bilibili.main.community.reply.v1.SubjectControl.inputDisable', index=12, - number=13, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='rootText', full_name='bilibili.main.community.reply.v1.SubjectControl.rootText', index=13, - number=14, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='childText', full_name='bilibili.main.community.reply.v1.SubjectControl.childText', index=14, - number=15, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='count', full_name='bilibili.main.community.reply.v1.SubjectControl.count', index=15, - number=16, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='title', full_name='bilibili.main.community.reply.v1.SubjectControl.title', index=16, - number=17, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='giveup_text', full_name='bilibili.main.community.reply.v1.SubjectControl.giveup_text', index=17, - number=18, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3357, - serialized_end=3732, -) - - -_REPLYINFO = _descriptor.Descriptor( - name='ReplyInfo', - full_name='bilibili.main.community.reply.v1.ReplyInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='replies', full_name='bilibili.main.community.reply.v1.ReplyInfo.replies', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='id', full_name='bilibili.main.community.reply.v1.ReplyInfo.id', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='oid', full_name='bilibili.main.community.reply.v1.ReplyInfo.oid', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.ReplyInfo.type', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='mid', full_name='bilibili.main.community.reply.v1.ReplyInfo.mid', index=4, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='root', full_name='bilibili.main.community.reply.v1.ReplyInfo.root', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='parent', full_name='bilibili.main.community.reply.v1.ReplyInfo.parent', index=6, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='dialog', full_name='bilibili.main.community.reply.v1.ReplyInfo.dialog', index=7, - number=8, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='like', full_name='bilibili.main.community.reply.v1.ReplyInfo.like', index=8, - number=9, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='ctime', full_name='bilibili.main.community.reply.v1.ReplyInfo.ctime', index=9, - number=10, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='count', full_name='bilibili.main.community.reply.v1.ReplyInfo.count', index=10, - number=11, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='content', full_name='bilibili.main.community.reply.v1.ReplyInfo.content', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='member', full_name='bilibili.main.community.reply.v1.ReplyInfo.member', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='replyControl', full_name='bilibili.main.community.reply.v1.ReplyInfo.replyControl', index=13, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3735, - serialized_end=4138, -) - - -_CONTENT_MENBERENTRY = _descriptor.Descriptor( - name='MenberEntry', - full_name='bilibili.main.community.reply.v1.Content.MenberEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='bilibili.main.community.reply.v1.Content.MenberEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='bilibili.main.community.reply.v1.Content.MenberEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4497, - serialized_end=4584, -) - -_CONTENT_EMOTEENTRY = _descriptor.Descriptor( - name='EmoteEntry', - full_name='bilibili.main.community.reply.v1.Content.EmoteEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='bilibili.main.community.reply.v1.Content.EmoteEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='bilibili.main.community.reply.v1.Content.EmoteEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4586, - serialized_end=4671, -) - -_CONTENT_TOPICENTRY = _descriptor.Descriptor( - name='TopicEntry', - full_name='bilibili.main.community.reply.v1.Content.TopicEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='bilibili.main.community.reply.v1.Content.TopicEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='bilibili.main.community.reply.v1.Content.TopicEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4673, - serialized_end=4758, -) - -_CONTENT_URLENTRY = _descriptor.Descriptor( - name='UrlEntry', - full_name='bilibili.main.community.reply.v1.Content.UrlEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='bilibili.main.community.reply.v1.Content.UrlEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='bilibili.main.community.reply.v1.Content.UrlEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4760, - serialized_end=4841, -) - -_CONTENT = _descriptor.Descriptor( - name='Content', - full_name='bilibili.main.community.reply.v1.Content', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='message', full_name='bilibili.main.community.reply.v1.Content.message', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='menber', full_name='bilibili.main.community.reply.v1.Content.menber', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='emote', full_name='bilibili.main.community.reply.v1.Content.emote', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='topic', full_name='bilibili.main.community.reply.v1.Content.topic', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='url', full_name='bilibili.main.community.reply.v1.Content.url', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vote', full_name='bilibili.main.community.reply.v1.Content.vote', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_CONTENT_MENBERENTRY, _CONTENT_EMOTEENTRY, _CONTENT_TOPICENTRY, _CONTENT_URLENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4141, - serialized_end=4841, -) - - -_REPLYCONTROL = _descriptor.Descriptor( - name='ReplyControl', - full_name='bilibili.main.community.reply.v1.ReplyControl', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='action', full_name='bilibili.main.community.reply.v1.ReplyControl.action', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upLike', full_name='bilibili.main.community.reply.v1.ReplyControl.upLike', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upReply', full_name='bilibili.main.community.reply.v1.ReplyControl.upReply', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='showFollowBtn', full_name='bilibili.main.community.reply.v1.ReplyControl.showFollowBtn', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='isAssist', full_name='bilibili.main.community.reply.v1.ReplyControl.isAssist', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='labelText', full_name='bilibili.main.community.reply.v1.ReplyControl.labelText', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='following', full_name='bilibili.main.community.reply.v1.ReplyControl.following', index=6, - number=7, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='followed', full_name='bilibili.main.community.reply.v1.ReplyControl.followed', index=7, - number=8, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='blocked', full_name='bilibili.main.community.reply.v1.ReplyControl.blocked', index=8, - number=9, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='hasFoldedReply', full_name='bilibili.main.community.reply.v1.ReplyControl.hasFoldedReply', index=9, - number=10, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='isFoldedReply', full_name='bilibili.main.community.reply.v1.ReplyControl.isFoldedReply', index=10, - number=11, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='isUpTop', full_name='bilibili.main.community.reply.v1.ReplyControl.isUpTop', index=11, - number=12, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='isAdminTop', full_name='bilibili.main.community.reply.v1.ReplyControl.isAdminTop', index=12, - number=13, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='isVoteTop', full_name='bilibili.main.community.reply.v1.ReplyControl.isVoteTop', index=13, - number=14, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='maxLine', full_name='bilibili.main.community.reply.v1.ReplyControl.maxLine', index=14, - number=15, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='invisible', full_name='bilibili.main.community.reply.v1.ReplyControl.invisible', index=15, - number=16, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_contractor', full_name='bilibili.main.community.reply.v1.ReplyControl.is_contractor', index=16, - number=17, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_note', full_name='bilibili.main.community.reply.v1.ReplyControl.is_note', index=17, - number=18, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4844, - serialized_end=5200, -) - - -_URL = _descriptor.Descriptor( - name='Url', - full_name='bilibili.main.community.reply.v1.Url', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='title', full_name='bilibili.main.community.reply.v1.Url.title', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='state', full_name='bilibili.main.community.reply.v1.Url.state', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='prefixIcon', full_name='bilibili.main.community.reply.v1.Url.prefixIcon', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='appUrlSchema', full_name='bilibili.main.community.reply.v1.Url.appUrlSchema', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='appName', full_name='bilibili.main.community.reply.v1.Url.appName', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='appPackageName', full_name='bilibili.main.community.reply.v1.Url.appPackageName', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='clickReport', full_name='bilibili.main.community.reply.v1.Url.clickReport', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5203, - serialized_end=5342, -) - - -_TOPIC = _descriptor.Descriptor( - name='Topic', - full_name='bilibili.main.community.reply.v1.Topic', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='link', full_name='bilibili.main.community.reply.v1.Topic.link', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='id', full_name='bilibili.main.community.reply.v1.Topic.id', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5344, - serialized_end=5377, -) - - -_EMOTE = _descriptor.Descriptor( - name='Emote', - full_name='bilibili.main.community.reply.v1.Emote', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='size', full_name='bilibili.main.community.reply.v1.Emote.size', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='url', full_name='bilibili.main.community.reply.v1.Emote.url', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5379, - serialized_end=5413, -) - - -_VOTE = _descriptor.Descriptor( - name='Vote', - full_name='bilibili.main.community.reply.v1.Vote', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='bilibili.main.community.reply.v1.Vote.id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='title', full_name='bilibili.main.community.reply.v1.Vote.title', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='count', full_name='bilibili.main.community.reply.v1.Vote.count', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5415, - serialized_end=5463, -) - - -_MEMBER = _descriptor.Descriptor( - name='Member', - full_name='bilibili.main.community.reply.v1.Member', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='mid', full_name='bilibili.main.community.reply.v1.Member.mid', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='name', full_name='bilibili.main.community.reply.v1.Member.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='sex', full_name='bilibili.main.community.reply.v1.Member.sex', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='face', full_name='bilibili.main.community.reply.v1.Member.face', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='level', full_name='bilibili.main.community.reply.v1.Member.level', index=4, - number=5, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='officialVerifyType', full_name='bilibili.main.community.reply.v1.Member.officialVerifyType', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vipType', full_name='bilibili.main.community.reply.v1.Member.vipType', index=6, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vipStatus', full_name='bilibili.main.community.reply.v1.Member.vipStatus', index=7, - number=8, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vipThemeType', full_name='bilibili.main.community.reply.v1.Member.vipThemeType', index=8, - number=9, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vipLabelPath', full_name='bilibili.main.community.reply.v1.Member.vipLabelPath', index=9, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='garbPendantImage', full_name='bilibili.main.community.reply.v1.Member.garbPendantImage', index=10, - number=11, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='garbCardImage', full_name='bilibili.main.community.reply.v1.Member.garbCardImage', index=11, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='garbCardImageWithFocus', full_name='bilibili.main.community.reply.v1.Member.garbCardImageWithFocus', index=12, - number=13, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='garbCardJumpUrl', full_name='bilibili.main.community.reply.v1.Member.garbCardJumpUrl', index=13, - number=14, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='garbCardNumber', full_name='bilibili.main.community.reply.v1.Member.garbCardNumber', index=14, - number=15, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='garbCardFanColor', full_name='bilibili.main.community.reply.v1.Member.garbCardFanColor', index=15, - number=16, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='garbCardIsFan', full_name='bilibili.main.community.reply.v1.Member.garbCardIsFan', index=16, - number=17, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fansMedalName', full_name='bilibili.main.community.reply.v1.Member.fansMedalName', index=17, - number=18, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fansMedalLevel', full_name='bilibili.main.community.reply.v1.Member.fansMedalLevel', index=18, - number=19, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fansMedalColor', full_name='bilibili.main.community.reply.v1.Member.fansMedalColor', index=19, - number=20, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vip_nickname_color', full_name='bilibili.main.community.reply.v1.Member.vip_nickname_color', index=20, - number=21, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vip_avatar_subscript', full_name='bilibili.main.community.reply.v1.Member.vip_avatar_subscript', index=21, - number=22, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vip_label_text', full_name='bilibili.main.community.reply.v1.Member.vip_label_text', index=22, - number=23, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vip_label_theme', full_name='bilibili.main.community.reply.v1.Member.vip_label_theme', index=23, - number=24, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5466, - serialized_end=6008, -) - - -_SEARCHITEMPREHOOKREQ = _descriptor.Descriptor( - name='SearchItemPreHookReq', - full_name='bilibili.main.community.reply.v1.SearchItemPreHookReq', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='oid', full_name='bilibili.main.community.reply.v1.SearchItemPreHookReq.oid', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.SearchItemPreHookReq.type', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6010, - serialized_end=6059, -) - - -_SEARCHITEMPREHOOKREPLY = _descriptor.Descriptor( - name='SearchItemPreHookReply', - full_name='bilibili.main.community.reply.v1.SearchItemPreHookReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='placeholderText', full_name='bilibili.main.community.reply.v1.SearchItemPreHookReply.placeholderText', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='backgroundText', full_name='bilibili.main.community.reply.v1.SearchItemPreHookReply.backgroundText', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='orderedType', full_name='bilibili.main.community.reply.v1.SearchItemPreHookReply.orderedType', index=2, - number=3, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6062, - serialized_end=6206, -) - - -_SEARCHITEMREQ = _descriptor.Descriptor( - name='SearchItemReq', - full_name='bilibili.main.community.reply.v1.SearchItemReq', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.SearchItemReq.cursor', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='oid', full_name='bilibili.main.community.reply.v1.SearchItemReq.oid', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.SearchItemReq.type', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='keyword', full_name='bilibili.main.community.reply.v1.SearchItemReq.keyword', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6209, - serialized_end=6339, -) - - -_SEARCHITEMREPLYEXTRAINFO = _descriptor.Descriptor( - name='SearchItemReplyExtraInfo', - full_name='bilibili.main.community.reply.v1.SearchItemReplyExtraInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='eventId', full_name='bilibili.main.community.reply.v1.SearchItemReplyExtraInfo.eventId', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6341, - serialized_end=6384, -) - - -_SEARCHITEMREPLY = _descriptor.Descriptor( - name='SearchItemReply', - full_name='bilibili.main.community.reply.v1.SearchItemReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='cursor', full_name='bilibili.main.community.reply.v1.SearchItemReply.cursor', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='items', full_name='bilibili.main.community.reply.v1.SearchItemReply.items', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='extra', full_name='bilibili.main.community.reply.v1.SearchItemReply.extra', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6387, - serialized_end=6613, -) - - -_SEARCHITEMCURSORREQ = _descriptor.Descriptor( - name='SearchItemCursorReq', - full_name='bilibili.main.community.reply.v1.SearchItemCursorReq', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='next', full_name='bilibili.main.community.reply.v1.SearchItemCursorReq.next', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='itemType', full_name='bilibili.main.community.reply.v1.SearchItemCursorReq.itemType', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6615, - serialized_end=6718, -) - - -_SEARCHITEMCURSORREPLY = _descriptor.Descriptor( - name='SearchItemCursorReply', - full_name='bilibili.main.community.reply.v1.SearchItemCursorReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='hasNext', full_name='bilibili.main.community.reply.v1.SearchItemCursorReply.hasNext', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='next', full_name='bilibili.main.community.reply.v1.SearchItemCursorReply.next', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6720, - serialized_end=6774, -) - - -_SEARCHITEM = _descriptor.Descriptor( - name='SearchItem', - full_name='bilibili.main.community.reply.v1.SearchItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='bilibili.main.community.reply.v1.SearchItem.url', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='goods', full_name='bilibili.main.community.reply.v1.SearchItem.goods', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='video', full_name='bilibili.main.community.reply.v1.SearchItem.video', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='article', full_name='bilibili.main.community.reply.v1.SearchItem.article', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='item', full_name='bilibili.main.community.reply.v1.SearchItem.item', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=6777, - serialized_end=7018, -) - - -_GOODSSEARCHITEM = _descriptor.Descriptor( - name='GoodsSearchItem', - full_name='bilibili.main.community.reply.v1.GoodsSearchItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='bilibili.main.community.reply.v1.GoodsSearchItem.id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='name', full_name='bilibili.main.community.reply.v1.GoodsSearchItem.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='price', full_name='bilibili.main.community.reply.v1.GoodsSearchItem.price', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='income', full_name='bilibili.main.community.reply.v1.GoodsSearchItem.income', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='img', full_name='bilibili.main.community.reply.v1.GoodsSearchItem.img', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='label', full_name='bilibili.main.community.reply.v1.GoodsSearchItem.label', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7020, - serialized_end=7122, -) - - -_VIDEOSEARCHITEM = _descriptor.Descriptor( - name='VideoSearchItem', - full_name='bilibili.main.community.reply.v1.VideoSearchItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='bilibili.main.community.reply.v1.VideoSearchItem.type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='ugc', full_name='bilibili.main.community.reply.v1.VideoSearchItem.ugc', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pgc', full_name='bilibili.main.community.reply.v1.VideoSearchItem.pgc', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='video_item', full_name='bilibili.main.community.reply.v1.VideoSearchItem.video_item', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=7125, - serialized_end=7366, -) - - -_UGCVIDEOSEARCHITEM = _descriptor.Descriptor( - name='UGCVideoSearchItem', - full_name='bilibili.main.community.reply.v1.UGCVideoSearchItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='title', full_name='bilibili.main.community.reply.v1.UGCVideoSearchItem.title', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upNickname', full_name='bilibili.main.community.reply.v1.UGCVideoSearchItem.upNickname', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='duration', full_name='bilibili.main.community.reply.v1.UGCVideoSearchItem.duration', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cover', full_name='bilibili.main.community.reply.v1.UGCVideoSearchItem.cover', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7368, - serialized_end=7456, -) - - -_PGCVIDEOSEARCHITEM = _descriptor.Descriptor( - name='PGCVideoSearchItem', - full_name='bilibili.main.community.reply.v1.PGCVideoSearchItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='title', full_name='bilibili.main.community.reply.v1.PGCVideoSearchItem.title', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='category', full_name='bilibili.main.community.reply.v1.PGCVideoSearchItem.category', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cover', full_name='bilibili.main.community.reply.v1.PGCVideoSearchItem.cover', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7458, - serialized_end=7526, -) - - -_ARTICLESEARCHITEM = _descriptor.Descriptor( - name='ArticleSearchItem', - full_name='bilibili.main.community.reply.v1.ArticleSearchItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='title', full_name='bilibili.main.community.reply.v1.ArticleSearchItem.title', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upNickname', full_name='bilibili.main.community.reply.v1.ArticleSearchItem.upNickname', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='covers', full_name='bilibili.main.community.reply.v1.ArticleSearchItem.covers', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=7528, - serialized_end=7598, -) - -_CM.fields_by_name['sourceContent'].message_type = google_dot_protobuf_dot_any__pb2._ANY -_DIALOGLISTREQ.fields_by_name['cursor'].message_type = _CURSORREQ -_DIALOGLISTREPLY.fields_by_name['cursor'].message_type = _CURSORREPLY -_DIALOGLISTREPLY.fields_by_name['subjectControl'].message_type = _SUBJECTCONTROL -_DIALOGLISTREPLY.fields_by_name['replies'].message_type = _REPLYINFO -_DIALOGLISTREPLY.fields_by_name['activity'].message_type = _ACTIVITY -_DETAILLISTREQ.fields_by_name['cursor'].message_type = _CURSORREQ -_DETAILLISTREQ.fields_by_name['scene'].enum_type = _DETAILLISTSCENE -_DETAILLISTREPLY.fields_by_name['cursor'].message_type = _CURSORREPLY -_DETAILLISTREPLY.fields_by_name['subjectControl'].message_type = _SUBJECTCONTROL -_DETAILLISTREPLY.fields_by_name['root'].message_type = _REPLYINFO -_DETAILLISTREPLY.fields_by_name['activity'].message_type = _ACTIVITY -_MAINLISTREQ.fields_by_name['cursor'].message_type = _CURSORREQ -_PREVIEWLISTREQ.fields_by_name['cursor'].message_type = _CURSORREQ -_PREVIEWLISTREPLY.fields_by_name['cursor'].message_type = _CURSORREPLY -_PREVIEWLISTREPLY.fields_by_name['replies'].message_type = _REPLYINFO -_PREVIEWLISTREPLY.fields_by_name['subjectControl'].message_type = _SUBJECTCONTROL -_PREVIEWLISTREPLY.fields_by_name['upTop'].message_type = _REPLYINFO -_PREVIEWLISTREPLY.fields_by_name['adminTop'].message_type = _REPLYINFO -_PREVIEWLISTREPLY.fields_by_name['voteTop'].message_type = _REPLYINFO -_MAINLISTREPLY.fields_by_name['cursor'].message_type = _CURSORREPLY -_MAINLISTREPLY.fields_by_name['replies'].message_type = _REPLYINFO -_MAINLISTREPLY.fields_by_name['subjectControl'].message_type = _SUBJECTCONTROL -_MAINLISTREPLY.fields_by_name['upTop'].message_type = _REPLYINFO -_MAINLISTREPLY.fields_by_name['adminTop'].message_type = _REPLYINFO -_MAINLISTREPLY.fields_by_name['voteTop'].message_type = _REPLYINFO -_MAINLISTREPLY.fields_by_name['notice'].message_type = _NOTICE -_MAINLISTREPLY.fields_by_name['lottery'].message_type = _LOTTERY -_MAINLISTREPLY.fields_by_name['activity'].message_type = _ACTIVITY -_MAINLISTREPLY.fields_by_name['upSelection'].message_type = _UPSELECTION -_MAINLISTREPLY.fields_by_name['cm'].message_type = _CM -_MAINLISTREPLY.fields_by_name['effects'].message_type = _EFFECTS -_LOTTERY.fields_by_name['content'].message_type = _CONTENT -_LOTTERY.fields_by_name['member'].message_type = _MEMBER -_LOTTERY.fields_by_name['replyControl'].message_type = _REPLYCONTROL -_CURSORREQ.fields_by_name['mode'].enum_type = _MODE -_CURSORREPLY.fields_by_name['mode'].enum_type = _MODE -_REPLYINFO.fields_by_name['replies'].message_type = _REPLYINFO -_REPLYINFO.fields_by_name['content'].message_type = _CONTENT -_REPLYINFO.fields_by_name['member'].message_type = _MEMBER -_REPLYINFO.fields_by_name['replyControl'].message_type = _REPLYCONTROL -_CONTENT_MENBERENTRY.fields_by_name['value'].message_type = _MEMBER -_CONTENT_MENBERENTRY.containing_type = _CONTENT -_CONTENT_EMOTEENTRY.fields_by_name['value'].message_type = _EMOTE -_CONTENT_EMOTEENTRY.containing_type = _CONTENT -_CONTENT_TOPICENTRY.fields_by_name['value'].message_type = _TOPIC -_CONTENT_TOPICENTRY.containing_type = _CONTENT -_CONTENT_URLENTRY.fields_by_name['value'].message_type = _URL -_CONTENT_URLENTRY.containing_type = _CONTENT -_CONTENT.fields_by_name['menber'].message_type = _CONTENT_MENBERENTRY -_CONTENT.fields_by_name['emote'].message_type = _CONTENT_EMOTEENTRY -_CONTENT.fields_by_name['topic'].message_type = _CONTENT_TOPICENTRY -_CONTENT.fields_by_name['url'].message_type = _CONTENT_URLENTRY -_CONTENT.fields_by_name['vote'].message_type = _VOTE -_SEARCHITEMPREHOOKREPLY.fields_by_name['orderedType'].enum_type = _SEARCHITEMTYPE -_SEARCHITEMREQ.fields_by_name['cursor'].message_type = _SEARCHITEMCURSORREQ -_SEARCHITEMREPLY.fields_by_name['cursor'].message_type = _SEARCHITEMCURSORREPLY -_SEARCHITEMREPLY.fields_by_name['items'].message_type = _SEARCHITEM -_SEARCHITEMREPLY.fields_by_name['extra'].message_type = _SEARCHITEMREPLYEXTRAINFO -_SEARCHITEMCURSORREQ.fields_by_name['itemType'].enum_type = _SEARCHITEMTYPE -_SEARCHITEM.fields_by_name['goods'].message_type = _GOODSSEARCHITEM -_SEARCHITEM.fields_by_name['video'].message_type = _VIDEOSEARCHITEM -_SEARCHITEM.fields_by_name['article'].message_type = _ARTICLESEARCHITEM -_SEARCHITEM.oneofs_by_name['item'].fields.append( - _SEARCHITEM.fields_by_name['goods']) -_SEARCHITEM.fields_by_name['goods'].containing_oneof = _SEARCHITEM.oneofs_by_name['item'] -_SEARCHITEM.oneofs_by_name['item'].fields.append( - _SEARCHITEM.fields_by_name['video']) -_SEARCHITEM.fields_by_name['video'].containing_oneof = _SEARCHITEM.oneofs_by_name['item'] -_SEARCHITEM.oneofs_by_name['item'].fields.append( - _SEARCHITEM.fields_by_name['article']) -_SEARCHITEM.fields_by_name['article'].containing_oneof = _SEARCHITEM.oneofs_by_name['item'] -_VIDEOSEARCHITEM.fields_by_name['type'].enum_type = _SEARCHITEMVIDEOSUBTYPE -_VIDEOSEARCHITEM.fields_by_name['ugc'].message_type = _UGCVIDEOSEARCHITEM -_VIDEOSEARCHITEM.fields_by_name['pgc'].message_type = _PGCVIDEOSEARCHITEM -_VIDEOSEARCHITEM.oneofs_by_name['video_item'].fields.append( - _VIDEOSEARCHITEM.fields_by_name['ugc']) -_VIDEOSEARCHITEM.fields_by_name['ugc'].containing_oneof = _VIDEOSEARCHITEM.oneofs_by_name['video_item'] -_VIDEOSEARCHITEM.oneofs_by_name['video_item'].fields.append( - _VIDEOSEARCHITEM.fields_by_name['pgc']) -_VIDEOSEARCHITEM.fields_by_name['pgc'].containing_oneof = _VIDEOSEARCHITEM.oneofs_by_name['video_item'] -DESCRIPTOR.message_types_by_name['CM'] = _CM -DESCRIPTOR.message_types_by_name['DialogListReq'] = _DIALOGLISTREQ -DESCRIPTOR.message_types_by_name['DialogListReply'] = _DIALOGLISTREPLY -DESCRIPTOR.message_types_by_name['DetailListReq'] = _DETAILLISTREQ -DESCRIPTOR.message_types_by_name['DetailListReply'] = _DETAILLISTREPLY -DESCRIPTOR.message_types_by_name['MainListReq'] = _MAINLISTREQ -DESCRIPTOR.message_types_by_name['PreviewListReq'] = _PREVIEWLISTREQ -DESCRIPTOR.message_types_by_name['ReplyExtra'] = _REPLYEXTRA -DESCRIPTOR.message_types_by_name['PreviewListReply'] = _PREVIEWLISTREPLY -DESCRIPTOR.message_types_by_name['MainListReply'] = _MAINLISTREPLY -DESCRIPTOR.message_types_by_name['Effects'] = _EFFECTS -DESCRIPTOR.message_types_by_name['UpSelection'] = _UPSELECTION -DESCRIPTOR.message_types_by_name['Notice'] = _NOTICE -DESCRIPTOR.message_types_by_name['Activity'] = _ACTIVITY -DESCRIPTOR.message_types_by_name['Lottery'] = _LOTTERY -DESCRIPTOR.message_types_by_name['CursorReq'] = _CURSORREQ -DESCRIPTOR.message_types_by_name['CursorReply'] = _CURSORREPLY -DESCRIPTOR.message_types_by_name['SubjectControl'] = _SUBJECTCONTROL -DESCRIPTOR.message_types_by_name['ReplyInfo'] = _REPLYINFO -DESCRIPTOR.message_types_by_name['Content'] = _CONTENT -DESCRIPTOR.message_types_by_name['ReplyControl'] = _REPLYCONTROL -DESCRIPTOR.message_types_by_name['Url'] = _URL -DESCRIPTOR.message_types_by_name['Topic'] = _TOPIC -DESCRIPTOR.message_types_by_name['Emote'] = _EMOTE -DESCRIPTOR.message_types_by_name['Vote'] = _VOTE -DESCRIPTOR.message_types_by_name['Member'] = _MEMBER -DESCRIPTOR.message_types_by_name['SearchItemPreHookReq'] = _SEARCHITEMPREHOOKREQ -DESCRIPTOR.message_types_by_name['SearchItemPreHookReply'] = _SEARCHITEMPREHOOKREPLY -DESCRIPTOR.message_types_by_name['SearchItemReq'] = _SEARCHITEMREQ -DESCRIPTOR.message_types_by_name['SearchItemReplyExtraInfo'] = _SEARCHITEMREPLYEXTRAINFO -DESCRIPTOR.message_types_by_name['SearchItemReply'] = _SEARCHITEMREPLY -DESCRIPTOR.message_types_by_name['SearchItemCursorReq'] = _SEARCHITEMCURSORREQ -DESCRIPTOR.message_types_by_name['SearchItemCursorReply'] = _SEARCHITEMCURSORREPLY -DESCRIPTOR.message_types_by_name['SearchItem'] = _SEARCHITEM -DESCRIPTOR.message_types_by_name['GoodsSearchItem'] = _GOODSSEARCHITEM -DESCRIPTOR.message_types_by_name['VideoSearchItem'] = _VIDEOSEARCHITEM -DESCRIPTOR.message_types_by_name['UGCVideoSearchItem'] = _UGCVIDEOSEARCHITEM -DESCRIPTOR.message_types_by_name['PGCVideoSearchItem'] = _PGCVIDEOSEARCHITEM -DESCRIPTOR.message_types_by_name['ArticleSearchItem'] = _ARTICLESEARCHITEM -DESCRIPTOR.enum_types_by_name['DetailListScene'] = _DETAILLISTSCENE -DESCRIPTOR.enum_types_by_name['Mode'] = _MODE -DESCRIPTOR.enum_types_by_name['SearchItemType'] = _SEARCHITEMTYPE -DESCRIPTOR.enum_types_by_name['SearchItemVideoSubType'] = _SEARCHITEMVIDEOSUBTYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CM = _reflection.GeneratedProtocolMessageType('CM', (_message.Message,), { - 'DESCRIPTOR' : _CM, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.CM) - }) -_sym_db.RegisterMessage(CM) - -DialogListReq = _reflection.GeneratedProtocolMessageType('DialogListReq', (_message.Message,), { - 'DESCRIPTOR' : _DIALOGLISTREQ, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.DialogListReq) - }) -_sym_db.RegisterMessage(DialogListReq) - -DialogListReply = _reflection.GeneratedProtocolMessageType('DialogListReply', (_message.Message,), { - 'DESCRIPTOR' : _DIALOGLISTREPLY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.DialogListReply) - }) -_sym_db.RegisterMessage(DialogListReply) - -DetailListReq = _reflection.GeneratedProtocolMessageType('DetailListReq', (_message.Message,), { - 'DESCRIPTOR' : _DETAILLISTREQ, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.DetailListReq) - }) -_sym_db.RegisterMessage(DetailListReq) - -DetailListReply = _reflection.GeneratedProtocolMessageType('DetailListReply', (_message.Message,), { - 'DESCRIPTOR' : _DETAILLISTREPLY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.DetailListReply) - }) -_sym_db.RegisterMessage(DetailListReply) - -MainListReq = _reflection.GeneratedProtocolMessageType('MainListReq', (_message.Message,), { - 'DESCRIPTOR' : _MAINLISTREQ, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.MainListReq) - }) -_sym_db.RegisterMessage(MainListReq) - -PreviewListReq = _reflection.GeneratedProtocolMessageType('PreviewListReq', (_message.Message,), { - 'DESCRIPTOR' : _PREVIEWLISTREQ, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.PreviewListReq) - }) -_sym_db.RegisterMessage(PreviewListReq) - -ReplyExtra = _reflection.GeneratedProtocolMessageType('ReplyExtra', (_message.Message,), { - 'DESCRIPTOR' : _REPLYEXTRA, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.ReplyExtra) - }) -_sym_db.RegisterMessage(ReplyExtra) - -PreviewListReply = _reflection.GeneratedProtocolMessageType('PreviewListReply', (_message.Message,), { - 'DESCRIPTOR' : _PREVIEWLISTREPLY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.PreviewListReply) - }) -_sym_db.RegisterMessage(PreviewListReply) - -MainListReply = _reflection.GeneratedProtocolMessageType('MainListReply', (_message.Message,), { - 'DESCRIPTOR' : _MAINLISTREPLY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.MainListReply) - }) -_sym_db.RegisterMessage(MainListReply) - -Effects = _reflection.GeneratedProtocolMessageType('Effects', (_message.Message,), { - 'DESCRIPTOR' : _EFFECTS, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Effects) - }) -_sym_db.RegisterMessage(Effects) - -UpSelection = _reflection.GeneratedProtocolMessageType('UpSelection', (_message.Message,), { - 'DESCRIPTOR' : _UPSELECTION, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.UpSelection) - }) -_sym_db.RegisterMessage(UpSelection) - -Notice = _reflection.GeneratedProtocolMessageType('Notice', (_message.Message,), { - 'DESCRIPTOR' : _NOTICE, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Notice) - }) -_sym_db.RegisterMessage(Notice) - -Activity = _reflection.GeneratedProtocolMessageType('Activity', (_message.Message,), { - 'DESCRIPTOR' : _ACTIVITY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Activity) - }) -_sym_db.RegisterMessage(Activity) - -Lottery = _reflection.GeneratedProtocolMessageType('Lottery', (_message.Message,), { - 'DESCRIPTOR' : _LOTTERY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Lottery) - }) -_sym_db.RegisterMessage(Lottery) - -CursorReq = _reflection.GeneratedProtocolMessageType('CursorReq', (_message.Message,), { - 'DESCRIPTOR' : _CURSORREQ, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.CursorReq) - }) -_sym_db.RegisterMessage(CursorReq) - -CursorReply = _reflection.GeneratedProtocolMessageType('CursorReply', (_message.Message,), { - 'DESCRIPTOR' : _CURSORREPLY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.CursorReply) - }) -_sym_db.RegisterMessage(CursorReply) - -SubjectControl = _reflection.GeneratedProtocolMessageType('SubjectControl', (_message.Message,), { - 'DESCRIPTOR' : _SUBJECTCONTROL, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SubjectControl) - }) -_sym_db.RegisterMessage(SubjectControl) - -ReplyInfo = _reflection.GeneratedProtocolMessageType('ReplyInfo', (_message.Message,), { - 'DESCRIPTOR' : _REPLYINFO, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.ReplyInfo) - }) -_sym_db.RegisterMessage(ReplyInfo) - -Content = _reflection.GeneratedProtocolMessageType('Content', (_message.Message,), { - - 'MenberEntry' : _reflection.GeneratedProtocolMessageType('MenberEntry', (_message.Message,), { - 'DESCRIPTOR' : _CONTENT_MENBERENTRY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Content.MenberEntry) - }) - , - - 'EmoteEntry' : _reflection.GeneratedProtocolMessageType('EmoteEntry', (_message.Message,), { - 'DESCRIPTOR' : _CONTENT_EMOTEENTRY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Content.EmoteEntry) - }) - , - - 'TopicEntry' : _reflection.GeneratedProtocolMessageType('TopicEntry', (_message.Message,), { - 'DESCRIPTOR' : _CONTENT_TOPICENTRY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Content.TopicEntry) - }) - , - - 'UrlEntry' : _reflection.GeneratedProtocolMessageType('UrlEntry', (_message.Message,), { - 'DESCRIPTOR' : _CONTENT_URLENTRY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Content.UrlEntry) - }) - , - 'DESCRIPTOR' : _CONTENT, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Content) - }) -_sym_db.RegisterMessage(Content) -_sym_db.RegisterMessage(Content.MenberEntry) -_sym_db.RegisterMessage(Content.EmoteEntry) -_sym_db.RegisterMessage(Content.TopicEntry) -_sym_db.RegisterMessage(Content.UrlEntry) - -ReplyControl = _reflection.GeneratedProtocolMessageType('ReplyControl', (_message.Message,), { - 'DESCRIPTOR' : _REPLYCONTROL, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.ReplyControl) - }) -_sym_db.RegisterMessage(ReplyControl) - -Url = _reflection.GeneratedProtocolMessageType('Url', (_message.Message,), { - 'DESCRIPTOR' : _URL, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Url) - }) -_sym_db.RegisterMessage(Url) - -Topic = _reflection.GeneratedProtocolMessageType('Topic', (_message.Message,), { - 'DESCRIPTOR' : _TOPIC, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Topic) - }) -_sym_db.RegisterMessage(Topic) - -Emote = _reflection.GeneratedProtocolMessageType('Emote', (_message.Message,), { - 'DESCRIPTOR' : _EMOTE, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Emote) - }) -_sym_db.RegisterMessage(Emote) - -Vote = _reflection.GeneratedProtocolMessageType('Vote', (_message.Message,), { - 'DESCRIPTOR' : _VOTE, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Vote) - }) -_sym_db.RegisterMessage(Vote) - -Member = _reflection.GeneratedProtocolMessageType('Member', (_message.Message,), { - 'DESCRIPTOR' : _MEMBER, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.Member) - }) -_sym_db.RegisterMessage(Member) - -SearchItemPreHookReq = _reflection.GeneratedProtocolMessageType('SearchItemPreHookReq', (_message.Message,), { - 'DESCRIPTOR' : _SEARCHITEMPREHOOKREQ, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SearchItemPreHookReq) - }) -_sym_db.RegisterMessage(SearchItemPreHookReq) - -SearchItemPreHookReply = _reflection.GeneratedProtocolMessageType('SearchItemPreHookReply', (_message.Message,), { - 'DESCRIPTOR' : _SEARCHITEMPREHOOKREPLY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SearchItemPreHookReply) - }) -_sym_db.RegisterMessage(SearchItemPreHookReply) - -SearchItemReq = _reflection.GeneratedProtocolMessageType('SearchItemReq', (_message.Message,), { - 'DESCRIPTOR' : _SEARCHITEMREQ, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SearchItemReq) - }) -_sym_db.RegisterMessage(SearchItemReq) - -SearchItemReplyExtraInfo = _reflection.GeneratedProtocolMessageType('SearchItemReplyExtraInfo', (_message.Message,), { - 'DESCRIPTOR' : _SEARCHITEMREPLYEXTRAINFO, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SearchItemReplyExtraInfo) - }) -_sym_db.RegisterMessage(SearchItemReplyExtraInfo) - -SearchItemReply = _reflection.GeneratedProtocolMessageType('SearchItemReply', (_message.Message,), { - 'DESCRIPTOR' : _SEARCHITEMREPLY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SearchItemReply) - }) -_sym_db.RegisterMessage(SearchItemReply) - -SearchItemCursorReq = _reflection.GeneratedProtocolMessageType('SearchItemCursorReq', (_message.Message,), { - 'DESCRIPTOR' : _SEARCHITEMCURSORREQ, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SearchItemCursorReq) - }) -_sym_db.RegisterMessage(SearchItemCursorReq) - -SearchItemCursorReply = _reflection.GeneratedProtocolMessageType('SearchItemCursorReply', (_message.Message,), { - 'DESCRIPTOR' : _SEARCHITEMCURSORREPLY, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SearchItemCursorReply) - }) -_sym_db.RegisterMessage(SearchItemCursorReply) - -SearchItem = _reflection.GeneratedProtocolMessageType('SearchItem', (_message.Message,), { - 'DESCRIPTOR' : _SEARCHITEM, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.SearchItem) - }) -_sym_db.RegisterMessage(SearchItem) - -GoodsSearchItem = _reflection.GeneratedProtocolMessageType('GoodsSearchItem', (_message.Message,), { - 'DESCRIPTOR' : _GOODSSEARCHITEM, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.GoodsSearchItem) - }) -_sym_db.RegisterMessage(GoodsSearchItem) - -VideoSearchItem = _reflection.GeneratedProtocolMessageType('VideoSearchItem', (_message.Message,), { - 'DESCRIPTOR' : _VIDEOSEARCHITEM, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.VideoSearchItem) - }) -_sym_db.RegisterMessage(VideoSearchItem) - -UGCVideoSearchItem = _reflection.GeneratedProtocolMessageType('UGCVideoSearchItem', (_message.Message,), { - 'DESCRIPTOR' : _UGCVIDEOSEARCHITEM, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.UGCVideoSearchItem) - }) -_sym_db.RegisterMessage(UGCVideoSearchItem) - -PGCVideoSearchItem = _reflection.GeneratedProtocolMessageType('PGCVideoSearchItem', (_message.Message,), { - 'DESCRIPTOR' : _PGCVIDEOSEARCHITEM, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.PGCVideoSearchItem) - }) -_sym_db.RegisterMessage(PGCVideoSearchItem) - -ArticleSearchItem = _reflection.GeneratedProtocolMessageType('ArticleSearchItem', (_message.Message,), { - 'DESCRIPTOR' : _ARTICLESEARCHITEM, - '__module__' : 'bilibili.main.community.reply.v1.reply_pb2' - # @@protoc_insertion_point(class_scope:bilibili.main.community.reply.v1.ArticleSearchItem) - }) -_sym_db.RegisterMessage(ArticleSearchItem) - - -_CONTENT_MENBERENTRY._options = None -_CONTENT_EMOTEENTRY._options = None -_CONTENT_TOPICENTRY._options = None -_CONTENT_URLENTRY._options = None - -_REPLY = _descriptor.ServiceDescriptor( - name='Reply', - full_name='bilibili.main.community.reply.v1.Reply', - file=DESCRIPTOR, - index=0, - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_start=7860, - serialized_end=8570, - methods=[ - _descriptor.MethodDescriptor( - name='MainList', - full_name='bilibili.main.community.reply.v1.Reply.MainList', - index=0, - containing_service=None, - input_type=_MAINLISTREQ, - output_type=_MAINLISTREPLY, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='DetailList', - full_name='bilibili.main.community.reply.v1.Reply.DetailList', - index=1, - containing_service=None, - input_type=_DETAILLISTREQ, - output_type=_DETAILLISTREPLY, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='DialogList', - full_name='bilibili.main.community.reply.v1.Reply.DialogList', - index=2, - containing_service=None, - input_type=_DIALOGLISTREQ, - output_type=_DIALOGLISTREPLY, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PreviewList', - full_name='bilibili.main.community.reply.v1.Reply.PreviewList', - index=3, - containing_service=None, - input_type=_PREVIEWLISTREQ, - output_type=_PREVIEWLISTREPLY, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='SearchItemPreHook', - full_name='bilibili.main.community.reply.v1.Reply.SearchItemPreHook', - index=4, - containing_service=None, - input_type=_SEARCHITEMPREHOOKREQ, - output_type=_SEARCHITEMPREHOOKREPLY, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='SearchItem', - full_name='bilibili.main.community.reply.v1.Reply.SearchItem', - index=5, - containing_service=None, - input_type=_SEARCHITEMREQ, - output_type=_SEARCHITEMREPLY, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), -]) -_sym_db.RegisterServiceDescriptor(_REPLY) - -DESCRIPTOR.services_by_name['Reply'] = _REPLY - -# @@protoc_insertion_point(module_scope)