update 【gRPC API】 proto files
This commit is contained in:
@@ -36,4 +36,6 @@ message Device {
|
||||
string version_name = 13;
|
||||
// 设备指纹, 不区分本地或远程设备指纹,作为推送目标的索引
|
||||
string fp = 14;
|
||||
//
|
||||
int64 fts = 15;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,15 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.metadata.fawkes;
|
||||
|
||||
//
|
||||
message FawkesReply {
|
||||
// 客户端在fawkes系统中对应的已发布最新的config版本号
|
||||
string config = 1;
|
||||
// 客户端在fawkes系统中对应的已发布最新的ff版本号
|
||||
string ff = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message FawkesReq {
|
||||
// 客户端在fawkes系统的唯一名
|
||||
string appkey = 1;
|
||||
@@ -10,10 +19,3 @@ message FawkesReq {
|
||||
// 启动id
|
||||
string session_id = 3;
|
||||
}
|
||||
|
||||
message FawkesReply {
|
||||
// 客户端在fawkes系统中对应的已发布最新的config版本号
|
||||
string config = 1;
|
||||
// 客户端在fawkes系统中对应的已发布最新的ff版本号
|
||||
string ff = 2;
|
||||
}
|
||||
|
||||
@@ -2,16 +2,6 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.metadata.locale;
|
||||
|
||||
// Defined by https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
|
||||
message LocaleIds {
|
||||
// A language designator is a code that represents a language.
|
||||
string language = 1;
|
||||
// Writing systems.
|
||||
string script = 2;
|
||||
// A region designator is a code that represents a country or an area.
|
||||
string region = 3;
|
||||
}
|
||||
|
||||
// 区域标识
|
||||
// gRPC头部:x-bili-locale-bin
|
||||
message Locale {
|
||||
@@ -24,3 +14,13 @@ message Locale {
|
||||
// 时区
|
||||
string timezone = 4;
|
||||
}
|
||||
|
||||
// Defined by https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
|
||||
message LocaleIds {
|
||||
// A language designator is a code that represents a language.
|
||||
string language = 1;
|
||||
// Writing systems.
|
||||
string script = 2;
|
||||
// A region designator is a code that represents a country or an area.
|
||||
string region = 3;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,17 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.metadata.network;
|
||||
|
||||
// 网络类型标识
|
||||
// gRPC头部:x-bili-network-bin
|
||||
message Network {
|
||||
// 网络类型
|
||||
NetworkType type = 1;
|
||||
// 免流类型
|
||||
TFType tf = 2;
|
||||
// 运营商
|
||||
string oid = 3;
|
||||
}
|
||||
|
||||
// 网络类型
|
||||
enum NetworkType {
|
||||
NT_UNKNOWN = 0; // 未知
|
||||
@@ -22,14 +33,3 @@ enum TFType {
|
||||
T_CARD = 5; // 电信卡
|
||||
T_PKG = 6; // 电信包
|
||||
}
|
||||
|
||||
// 网络类型标识
|
||||
// gRPC头部:x-bili-network-bin
|
||||
message Network {
|
||||
// 网络类型
|
||||
NetworkType type = 1;
|
||||
// 免流类型
|
||||
TFType tf = 2;
|
||||
// 运营商
|
||||
string oid = 3;
|
||||
}
|
||||
|
||||
17
grpc_api/bilibili/metadata/parabox/pararbox.proto
Normal file
17
grpc_api/bilibili/metadata/parabox/pararbox.proto
Normal file
@@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.metadata.parabox;
|
||||
|
||||
//
|
||||
message Exp {
|
||||
//
|
||||
int64 id = 1;
|
||||
//
|
||||
int32 bucket = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message Exps {
|
||||
//
|
||||
repeated Exp exps = 1;
|
||||
}
|
||||
@@ -19,4 +19,6 @@ message Restriction {
|
||||
ModeType mode = 3;
|
||||
// app 审核review状态
|
||||
bool review = 4;
|
||||
//
|
||||
bool disable_rcmd = 5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user