-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathsearch.proto
2330 lines (2200 loc) · 35.4 KB
/
search.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
syntax = "proto3";
package bilibili.polymer.app.search.v1;
import "bilibili/app/archive/middleware/v1/preload.proto";
import "bilibili/pagination/pagination.proto";
//
service Search {
// 搜索所有类型结果
rpc SearchAll(SearchAllRequest) returns (SearchAllResponse);
// 搜索指定类型结果
rpc SearchByType(SearchByTypeRequest) returns (SearchByTypeResponse);
//
rpc SearchComic(SearchComicRequest) returns (SearchComicResponse);
}
//
message Args {
//
int32 online = 1;
//
string rname = 2;
//
int64 room_id = 3;
//
string tname = 4;
//
int64 up_id = 5;
//
string up_name = 6;
//
int64 rid = 7;
//
int64 tid = 8;
//
int64 aid = 9;
}
//
message Avatar {
//
string cover = 1;
//
string event = 2;
//
string event_v2 = 3;
//
string text = 4;
//
int64 up_id = 5;
//
string uri = 6;
//
int32 face_nft_new = 7;
//
NftFaceIcon nft_face_icon = 8;
}
//
message AvItem {
//
string title = 1;
//
string cover = 2;
//
string uri = 3;
//
string ctime_label = 4;
//
string duration = 5;
//
int32 play = 6;
//
int64 danmaku = 7;
//
int32 ctime = 8;
//
string goto = 9;
//
string param = 10;
//
int32 position = 11;
//
string ctime_label_v2 = 12;
}
//
message Background {
//
int32 show = 1;
//
string bg_pic_url = 2;
//
string fg_pic_url = 3;
}
//
message Badge {
//
string text = 1;
//
string bg_cover = 2;
}
//
message Badge2 {
//
string bg_cover = 1;
//
string text = 2;
}
//
message BottomButton {
//
string desc = 1;
//
string link = 2;
}
//
message BrandADAccount {
//
string param = 1;
//
string goto = 2;
//
int64 mid = 3;
//
string name = 4;
//
string face = 5;
//
string sign = 6;
//
Relation relation = 7;
//
int64 roomid = 8;
//
int64 live_status = 9;
//
string live_link = 10;
//
OfficialVerify official_verify = 11;
//
VipInfo vip = 12;
//
string uri = 13;
//
int32 face_nft_new = 14;
}
//
message BrandADArc {
//
string param = 1;
//
string goto = 2;
//
int64 aid = 3;
//
int64 play = 4;
//
int64 reply = 5;
//
string duration = 6;
//
string author = 7;
//
string title = 8;
//
string uri = 9;
//
string cover = 10;
}
//
message Button {
//
string text = 1;
//
string param = 2;
//
string uri = 3;
//
string event = 4;
//
int32 selected = 5;
//
int32 type = 6;
//
string event_v2 = 7;
//
Relation relation = 8;
}
//
message ButtonMeta {
//
string icon = 1;
//
string text = 2;
//
string button_status = 3;
//
string toast = 4;
}
//
message CardBusinessBadge {
//
GotoIcon goto_icon = 1;
//
ReasonStyle badge_style = 2;
}
//
enum CategorySort {
CATEGORY_SORT_DEFAULT = 0; //
CATEGORY_SORT_PUBLISH_TIME = 1; //
CATEGORY_SORT_CLICK_COUNT = 2; //
CATEGORY_SORT_COMMENT_COUNT = 3; //
CATEGORY_SORT_LIKE_COUNT = 4; //
}
//
message ChannelLabel {
//
string text = 1;
//
string uri = 2;
}
//
message ChannelMixedItem {
//
int64 id = 1;
//
int32 cover_left_icon1 = 2;
//
string cover_left_text1 = 3;
//
string cover = 4;
//
string goto = 5;
//
string param = 6;
//
string uri = 7;
//
string title = 8;
//
Badge2 badge = 9;
}
//
message CheckMore {
//
string content = 1;
//
string uri = 2;
}
//
message CloudGameParams {
//
int64 source_from = 1;
//
string scene = 2;
}
//
message DetailsRelationItem {
//
string title = 1;
//
string cover = 2;
//
string cover_left_text = 3;
//
ReasonStyle cover_badge_style = 4;
//
string module_pos = 5;
//
string goto = 6;
//
string param = 7;
//
string uri = 8;
//
int32 position = 9;
//
string cover_left_text_v2 = 10;
//
ReasonStyle cover_badge_style_v2 = 11;
}
//
message DislikeReason {
//
int32 id = 1;
//
string name = 2;
}
//
message DisplayOption {
//
int32 video_title_row = 1;
//
int32 search_page_visual_opti = 2;
}
//
message DyTopic {
//
string title = 1;
//
string uri = 2;
}
//
message EasterEgg {
//
int32 id = 1;
//
int32 show_count = 2;
//
int32 type = 3;
//
string url = 4;
//
int32 close_count = 5;
//
int32 mask_transparency = 6;
//
string mask_color = 7;
//
int32 pic_type = 8;
//
int32 show_time = 9;
//
string source_url = 10;
//
string source_md5 = 11;
//
int32 source_size = 12;
}
//
message Episode {
//
string uri = 1;
//
string param = 2;
//
string index = 3;
//
repeated ReasonStyle badges = 4;
//
int32 position = 5;
}
//
message EpisodeNew {
//
string title = 1;
//
string uri = 2;
//
string param = 3;
//
int32 is_new = 4;
//
repeated ReasonStyle badges = 5;
//
int32 type = 6;
//
int32 position = 7;
//
string cover = 8;
//
string label = 9;
}
//
message ExtraLink {
//
string text = 1;
//
string uri = 2;
}
//
message FollowButton {
//
string icon = 1;
//
map<string, string> texts = 2;
//
string status_report = 3;
}
//
message FullTextResult {
//
int32 type = 1;
//
string show_text = 2;
//
int64 jump_start_progress = 3;
//
string jump_uri = 4;
}
//
message GotoIcon {
//
string icon_url = 1;
//
string icon_night_url = 2;
//
int32 icon_width = 3;
//
int32 icon_height = 4;
}
//
message InlineProgressBar {
//
string icon_drag = 1;
//
string icon_drag_hash = 2;
//
string icon_stop = 3;
//
string icon_stop_hash = 4;
}
//
message InlineThreePointPanel {
//
int32 panel_type = 1;
//
string share_id = 2;
//
string share_origin = 3;
//
repeated ShareButtonItem functional_buttons = 4;
}
message Item {
//
string uri = 1;
//
string param = 2;
//
string goto = 3;
//
string linktype = 4;
//
int32 position = 5;
//
string trackid = 6;
//
oneof card_item {
//
SearchSpecialCard special = 7;
//
SearchArticleCard article = 8;
//
SearchBannerCard banner = 9;
//
SearchLiveCard live = 10;
//
SearchGameCard game = 11;
//
SearchPurchaseCard purchase = 12;
//
SearchRecommendWordCard recommend_word = 13;
//
SearchDynamicCard dynamic = 14;
//
SearchNoResultSuggestWordCard suggest_keyword = 15;
//
SearchSpecialGuideCard special_guide = 16;
//
SearchComicCard comic = 17;
//
SearchNewChannelCard channel_new = 18;
//
SearchOgvCard ogv_card = 19;
//
SearchOgvRelationCard bangumi_relates = 20;
//
SearchOgvRecommendCard find_more = 21;
//
SearchSportCard esport = 22;
//
SearchAuthorNewCard author_new = 23;
//
SearchTipsCard tips = 24;
//
SearchAdCard cm = 25;
//
SearchPediaCard pedia_card = 26;
//
SearchUgcInlineCard ugc_inline = 27;
//
SearchLiveInlineCard live_inline = 28;
//
SearchTopGameCard top_game = 29;
//
SearchOlympicGameCard sports = 30;
//
SearchOlympicWikiCard pedia_card_inline = 31;
//
SearchRecommendTipCard recommend_tips = 32;
//
SearchCollectionCard collection_card = 33;
//
SearchOgvChannelCard ogv_channel = 34;
//
SearchOgvInlineCard ogv_inline = 35;
//
SearchUpperCard author = 36;
//
SearchVideoCard av = 37;
//
SearchBangumiCard bangumi = 38;
//
SearchSportInlineCard esports_inline = 39;
}
}
//
message LikeResource {
//
string url = 1;
//
string content_hash = 2;
}
//
message LiveBadgeResource {
//
string text = 1;
//
string animation_url = 2;
//
string animation_url_hash = 3;
//
string background_color_light = 4;
//
string background_color_night = 5;
//
int64 alpha_light = 6;
//
int64 alpha_night = 7;
//
string font_color = 8;
}
//
message Mask {
//
Avatar avatar = 1;
//
Button button = 2;
}
//
message MatchInfoObj {
//
int64 id = 1;
//
int32 status = 2;
//
string match_stage = 3;
//
MatchTeam team1 = 4;
//
MatchTeam team2 = 5;
//
MatchItem match_label = 6;
//
MatchItem match_time = 7;
//
MatchItem match_button = 8;
}
//
message MatchItem {
//
int32 state = 1;
//
string text = 2;
//
string text_color = 3;
//
string text_color_night = 4;
//
string uri = 5;
//
string live_link = 6;
//
Texts texts = 7;
}
//
message MatchTeam {
//
int64 id = 1;
//
string title = 2;
//
string cover = 3;
//
int32 score = 4;
}
//
message Nav {
//
string name = 1;
//
int32 total = 2;
//
int32 pages = 3;
//
int32 type = 4;
}
//
message Navigation {
//
int64 id = 1;
//
repeated Navigation children = 2;
//
repeated Navigation inline_children = 3;
//
string title = 4;
//
string uri = 5;
//
NavigationButton button = 6;
}
//
message NavigationButton {
//
int64 type = 1;
//
string text = 2;
//
string uri = 3;
}
//
message NftFaceIcon {
//
int32 region_type = 1;
//
string icon = 2;
//
int32 show_status = 3;
}
//
message Notice {
//
int64 mid = 1;
//
int64 notice_id = 2;
//
string content = 3;
//
string url = 4;
//
int64 notice_type = 5;
//
string icon = 6;
//
string icon_night = 7;
//
string text_color = 8;
//
string text_color_night = 9;
//
string bg_color = 10;
//
string bg_color_night = 11;
}
//
message OfficialVerify {
//
int32 type = 1;
//
string desc = 2;
}
//
message OgvCardUI {
//
string background_image = 1;
//
string gaussian_blur_value = 2;
//
string module_color = 3;
}
//
message OgvClipInfo {
//
int64 play_start_time = 1;
//
int64 play_end_time = 2;
}
//
message OgvRecommendWord {
//
string title = 1;
//
string goto = 2;
//
string param = 3;
//
string uri = 4;
}
//
message PediaCover {
//
int64 cover_type = 1;
//
string cover_sun_url = 2;
//
string cover_night_url = 3;
//
int32 cover_width = 4;
//
int32 cover_height = 5;
}
//
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;
//
int32 duration = 10;
//
int64 season_id = 11;
//
int32 report_required_play_duration = 12;
//
int32 report_required_time = 13;
//
int32 manual_play = 14;
//
bool hide_play_button = 15;
//
int32 content_mode = 16;
//
int32 report_history = 17;
}
//
message PlayerWidget {
//
string title = 1;
//
string desc = 2;
}
//
message RankInfo {
//
string search_night_icon_url = 1;
//
string search_day_icon_url = 2;
//
string search_bkg_night_color = 3;
//
string search_bkg_day_color = 4;
//
string search_font_night_color = 5;
//
string search_font_day_color = 6;
//
string rank_content = 7;
//
string rank_link = 8;
}
//
message RcmdReason {
//
string content = 1;
}
//
message ReasonStyle {
//
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 RecommendWord {
//
string param = 1;
//
string type = 2;
//
string title = 3;
//
string from_source = 4;
}
//
message Relation {
//
int32 status = 1;
}
//
message RightTopLiveBadge {
//
int32 live_status = 1;
//
LiveBadgeResource in_live = 2;
//
string live_stats_desc = 3;
}
//
message SearchAdCard {
//
string json_str = 1;
}
//
message SearchAllRequest {
//
string keyword = 1;
//
int32 order = 2;
//
string tid_list = 3;
//
string duration_list = 4;
//
string extra_word = 5;
//
string from_source = 6;
//
int32 is_org_query = 7;
//
int32 local_time = 8;
//
string ad_extra = 9;
//
bilibili.pagination.Pagination pagination = 10;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 11;
}
//
message SearchAllResponse {
//
string keyword = 1;
//
string trackid = 2;
//
repeated Nav nav = 3;
//
repeated Item item = 4;
//
EasterEgg easter_egg = 5;
//
string exp_str = 6;
//
repeated string extra_word_list = 7;
//
string org_extra_word = 8;
//
int64 select_bar_type = 9;
//
int64 new_search_exp_num = 10;
//
bilibili.pagination.PaginationReply pagination = 11;
//
DisplayOption app_display_option = 12;
//
map<string, string> annotation = 13;
}
//
message SearchArticleCard {
//
string title = 1;
//
string cover = 2;
//
int32 play = 3;
//
int32 like = 4;
//
int32 reply = 5;
//
repeated string image_urls = 6;
//
string author = 7;
//
int32 template_id = 8;
//
int64 id = 9;
//
int64 mid = 10;
//
string name = 11;
//
string desc = 12;
//
int32 view = 13;
}
//
message SearchAuthorNewCard {
//
string title = 1;
//
string cover = 2;
//
int32 live_face = 3;
//
string live_uri = 4;
//
string live_link = 5;
//
int32 fans = 6;
//
int32 level = 7;
//
string sign = 8;
//
bool is_up = 9;
//
int32 archives = 10;
//
int64 mid = 11;
//
int64 roomid = 12;
//
Relation relation = 13;
//
OfficialVerify official_verify = 14;
//
int32 face_nft_new = 15;
//
NftFaceIcon nft_face_icon = 16;
//
int32 is_senior_member = 17;
//
Background background = 18;
//
int32 av_style = 19;
//
Space space = 20;