补充注释 (#624)

This commit is contained in:
陈寒彤 2023-02-27 19:33:51 +04:00 committed by GitHub
parent d1b3e0c0fb
commit 387d5d0b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 59 additions and 58 deletions

View File

@ -13,6 +13,6 @@ message PlayerArgs {
// url是否强制使用域名 // url是否强制使用域名
// 0:使 1:http域名 2:https域名 // 0:使 1:http域名 2:https域名
int64 force_host = 4; int64 force_host = 4;
// //
int64 voice_balance = 5; int64 voice_balance = 5;
} }

View File

@ -6,8 +6,8 @@ package bilibili.metadata.device;
// gRPC头部:x-bili-device-bin // gRPC头部:x-bili-device-bin
message Device { message Device {
// id // id
// HD OTT TV野版 HD // HD OTT TV野版 HD
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 30
int32 app_id = 1; int32 app_id = 1;
// id // id
int32 build = 2; int32 build = 2;
@ -36,6 +36,6 @@ message Device {
string version_name = 13; string version_name = 13;
// , // ,
string fp = 14; string fp = 14;
// //
int64 fts = 15; int64 fts = 15;
} }

View File

@ -13,7 +13,7 @@ message Metadata {
string device = 3; string device = 3;
// id // id
int32 build = 4; int32 build = 4;
// // APP分发渠
string channel = 5; string channel = 5;
// buvid // buvid
string buvid = 6; string buvid = 6;

View File

@ -19,6 +19,6 @@ message Restriction {
ModeType mode = 3; ModeType mode = 3;
// app review状态 // app review状态
bool review = 4; bool review = 4;
// //
bool disable_rcmd = 5; bool disable_rcmd = 5;
} }

View File

@ -2,7 +2,7 @@ syntax = "proto3";
package bilibili.pagination; package bilibili.pagination;
// //
message FeedPagination { message FeedPagination {
// //
int32 page_size = 1; int32 page_size = 1;
@ -12,7 +12,7 @@ message FeedPagination {
bool is_refresh = 3; bool is_refresh = 3;
} }
// //
message FeedPaginationReply { message FeedPaginationReply {
// //
string next_offset = 1; string next_offset = 1;
@ -22,7 +22,7 @@ message FeedPaginationReply {
string last_read_offset = 3; string last_read_offset = 3;
} }
// //
message Pagination { message Pagination {
// //
int32 page_size = 1; int32 page_size = 1;
@ -30,7 +30,7 @@ message Pagination {
string next = 2; string next = 2;
} }
// //
message PaginationReply { message PaginationReply {
// //
string next = 1; string next = 1;

View File

@ -22,15 +22,15 @@ message BadgeInfo {
string bg_color_night = 3; string bg_color_night = 3;
// //
string text_color = 4; string text_color = 4;
// // ?
GradientColor bg_gradient_color = 5; GradientColor bg_gradient_color = 5;
} }
// // Dialog组件:
message BottomDisplay { message BottomDisplay {
// //
TextInfo title = 1; TextInfo title = 1;
// //
string icon = 2; string icon = 2;
} }
@ -68,34 +68,35 @@ message ButtonInfo {
map<string, string> order_report_params = 15; map<string, string> order_report_params = 15;
} }
// // . code = 0 , message
message CastTips { message CastTips {
// //
int32 code = 1; int32 code = 1;
// //
string message = 2; string message = 2;
} }
// // /
message ClipInfo { message ClipInfo {
// //
int64 material_no = 1; int64 material_no = 1;
// // DASH分段始
int32 start = 2; int32 start = 2;
// // DASH分段终
int32 end = 3; int32 end = 3;
// // Clip类型
ClipType clip_type = 4; ClipType clip_type = 4;
// // /
string toast_text = 5; string toast_text = 5;
// //
MultiView multi_view = 6; MultiView multi_view = 6;
} }
// /: Clip类型
enum ClipType { enum ClipType {
NT_UNKNOWN = 0; // NT_UNKNOWN = 0; //
CLIP_TYPE_OP = 1; // CLIP_TYPE_OP = 1; // OP
CLIP_TYPE_ED = 2; // CLIP_TYPE_ED = 2; // ED
CLIP_TYPE_HE = 3; // CLIP_TYPE_HE = 3; //
CLIP_TYPE_MULTI_VIEW = 4; // CLIP_TYPE_MULTI_VIEW = 4; //
} }
@ -176,7 +177,7 @@ message DashItem {
uint32 codecid = 5; uint32 codecid = 5;
// md5 // md5
string md5 = 6; string md5 = 6;
// //
uint64 size = 7; uint64 size = 7;
// //
string frame_rate = 8; string frame_rate = 8;
@ -252,13 +253,13 @@ message DialogConfig {
bool is_force_halfscreen_enable = 4; bool is_force_halfscreen_enable = 4;
} }
// //
message Dimension { message Dimension {
// //
int32 width = 1; int32 width = 1;
// //
int32 height = 2; int32 height = 2;
// //
int32 rotate = 3; int32 rotate = 3;
} }
@ -276,7 +277,7 @@ message DolbyItem {
DashItem audio = 2; DashItem audio = 2;
} }
// // DRM技术类型
enum DrmTechType { enum DrmTechType {
NON = 0; // NON = 0; //
FAIR_PLAY = 1; // FAIR_PLAY = 1; //
@ -296,7 +297,7 @@ message Event {
Shake shake = 1; Shake shake = 1;
} }
// // ?
message FreyaConfig { message FreyaConfig {
// //
string desc = 1; string desc = 1;
@ -312,7 +313,7 @@ message FreyaConfig {
int32 full_screen_number = 6; int32 full_screen_number = 6;
} }
// //
message GradientColor { message GradientColor {
// //
string start_color = 1; string start_color = 1;
@ -320,7 +321,7 @@ message GradientColor {
string end_color = 2; string end_color = 2;
} }
// //
message HighDefinitionTrialInfo { message HighDefinitionTrialInfo {
// //
bool trial_able = 1; bool trial_able = 1;
@ -376,7 +377,7 @@ message MultiView {
int64 avid = 4; int64 avid = 4;
} }
// // 广:
message PayTip { message PayTip {
// //
string title = 1; string title = 1;
@ -482,19 +483,19 @@ message PlayViewBusinessInfo {
string playback_speed_color = 4; string playback_speed_color = 4;
// //
ContinuePlayInfo continue_play_info = 5; ContinuePlayInfo continue_play_info = 5;
// // /
repeated ClipInfo clip_info = 6; repeated ClipInfo clip_info = 6;
// //
InlineType inline_type = 7; InlineType inline_type = 7;
// //
int32 ep_whole_duration = 8; int32 ep_whole_duration = 8;
// //
Dimension dimension = 9; Dimension dimension = 9;
// //
map<int32, QualityExtInfo> quality_ext_map = 10; map<int32, QualityExtInfo> quality_ext_map = 10;
// //
map<string, int32> exp_map = 11; map<string, int32> exp_map = 11;
// // DRM技术类型
DrmTechType drm_tech_type = 12; DrmTechType drm_tech_type = 12;
} }
@ -578,21 +579,21 @@ message PopWin {
string pop_type = 9; string pop_type = 9;
} }
// // 广:
message PromptBar { message PromptBar {
// // , : "本片含大会员专享内容"
TextInfo title = 1; TextInfo title = 1;
// // , : "成为大会员可免费看全部剧集"
TextInfo sub_title = 2; TextInfo sub_title = 2;
// // icon
string sub_title_icon = 3; string sub_title_icon = 3;
// //
string bg_image = 4; string bg_image = 4;
// //
GradientColor bg_gradient_color = 5; GradientColor bg_gradient_color = 5;
// //
repeated ButtonInfo button = 6; repeated ButtonInfo button = 6;
// //
Report report = 7; Report report = 7;
// //
string full_screen_ip_icon = 8; string full_screen_ip_icon = 8;
@ -600,9 +601,9 @@ message PromptBar {
GradientColor full_screen_bg_gradient_color = 9; GradientColor full_screen_bg_gradient_color = 9;
} }
// //
message QualityExtInfo { message QualityExtInfo {
// //
bool trial_support = 1; bool trial_support = 1;
} }

View File

@ -7,9 +7,9 @@ import "bilibili/pagination/pagination.proto";
// //
service Search { service Search {
// //
rpc SearchAll(SearchAllRequest) returns (SearchAllResponse); rpc SearchAll(SearchAllRequest) returns (SearchAllResponse);
// //
rpc SearchByType(SearchByTypeRequest) returns (SearchByTypeResponse); rpc SearchByType(SearchByTypeRequest) returns (SearchByTypeResponse);
// //
rpc SearchComic(SearchComicRequest) returns (SearchComicResponse); rpc SearchComic(SearchComicRequest) returns (SearchComicResponse);
@ -1098,9 +1098,9 @@ message SearchBannerCard {
// //
message SearchByTypeRequest { message SearchByTypeRequest {
// // , 7
int32 type = 1; int32 type = 1;
// //
string keyword = 2; string keyword = 2;
// //
int32 category_sort = 3; int32 category_sort = 3;
@ -1118,21 +1118,21 @@ message SearchByTypeRequest {
// //
message SearchByTypeResponse { message SearchByTypeResponse {
// // id
string trackid = 1; string trackid = 1;
// //
int32 pages = 2; int32 pages = 2;
// //
string exp_str = 3; string exp_str = 3;
// //
string keyword = 4; string keyword = 4;
// //
int32 result_is_recommend = 5; int32 result_is_recommend = 5;
// //
repeated Item items = 6; repeated Item items = 6;
// //
bilibili.pagination.PaginationReply pagination = 7; bilibili.pagination.PaginationReply pagination = 7;
// //
map<string, string> annotation = 8; map<string, string> annotation = 8;
} }