refactor: popular [wip]

mod: grpc request
This commit is contained in:
bggRGjQaUbCoE
2024-10-10 16:33:20 +08:00
parent 2ccfd788e6
commit 6f86fe75ae
32 changed files with 8661 additions and 157 deletions

View File

@@ -0,0 +1,132 @@
//
// Generated code. Do not modify.
// source: bilibili/app/archive/middleware/v1/preload.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
/// 视频秒开参数
class PlayerArgs extends $pb.GeneratedMessage {
factory PlayerArgs({
$fixnum.Int64? qn,
$fixnum.Int64? fnver,
$fixnum.Int64? fnval,
$fixnum.Int64? forceHost,
$fixnum.Int64? voiceBalance,
}) {
final $result = create();
if (qn != null) {
$result.qn = qn;
}
if (fnver != null) {
$result.fnver = fnver;
}
if (fnval != null) {
$result.fnval = fnval;
}
if (forceHost != null) {
$result.forceHost = forceHost;
}
if (voiceBalance != null) {
$result.voiceBalance = voiceBalance;
}
return $result;
}
PlayerArgs._() : super();
factory PlayerArgs.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory PlayerArgs.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlayerArgs', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.archive.middleware.v1'), createEmptyInstance: create)
..aInt64(1, _omitFieldNames ? '' : 'qn')
..aInt64(2, _omitFieldNames ? '' : 'fnver')
..aInt64(3, _omitFieldNames ? '' : 'fnval')
..aInt64(4, _omitFieldNames ? '' : 'forceHost')
..aInt64(5, _omitFieldNames ? '' : 'voiceBalance')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
PlayerArgs clone() => PlayerArgs()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
PlayerArgs copyWith(void Function(PlayerArgs) updates) => super.copyWith((message) => updates(message as PlayerArgs)) as PlayerArgs;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static PlayerArgs create() => PlayerArgs._();
PlayerArgs createEmptyInstance() => create();
static $pb.PbList<PlayerArgs> createRepeated() => $pb.PbList<PlayerArgs>();
@$core.pragma('dart2js:noInline')
static PlayerArgs getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PlayerArgs>(create);
static PlayerArgs? _defaultInstance;
/// 清晰度
@$pb.TagNumber(1)
$fixnum.Int64 get qn => $_getI64(0);
@$pb.TagNumber(1)
set qn($fixnum.Int64 v) { $_setInt64(0, v); }
@$pb.TagNumber(1)
$core.bool hasQn() => $_has(0);
@$pb.TagNumber(1)
void clearQn() => clearField(1);
/// 流版本
@$pb.TagNumber(2)
$fixnum.Int64 get fnver => $_getI64(1);
@$pb.TagNumber(2)
set fnver($fixnum.Int64 v) { $_setInt64(1, v); }
@$pb.TagNumber(2)
$core.bool hasFnver() => $_has(1);
@$pb.TagNumber(2)
void clearFnver() => clearField(2);
/// 流类型
@$pb.TagNumber(3)
$fixnum.Int64 get fnval => $_getI64(2);
@$pb.TagNumber(3)
set fnval($fixnum.Int64 v) { $_setInt64(2, v); }
@$pb.TagNumber(3)
$core.bool hasFnval() => $_has(2);
@$pb.TagNumber(3)
void clearFnval() => clearField(3);
/// 返回url是否强制使用域名
/// 0:不强制使用域名 1:http域名 2:https域名
@$pb.TagNumber(4)
$fixnum.Int64 get forceHost => $_getI64(3);
@$pb.TagNumber(4)
set forceHost($fixnum.Int64 v) { $_setInt64(3, v); }
@$pb.TagNumber(4)
$core.bool hasForceHost() => $_has(3);
@$pb.TagNumber(4)
void clearForceHost() => clearField(4);
/// 音量均衡
@$pb.TagNumber(5)
$fixnum.Int64 get voiceBalance => $_getI64(4);
@$pb.TagNumber(5)
set voiceBalance($fixnum.Int64 v) { $_setInt64(4, v); }
@$pb.TagNumber(5)
$core.bool hasVoiceBalance() => $_has(4);
@$pb.TagNumber(5)
void clearVoiceBalance() => clearField(5);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: bilibili/app/archive/middleware/v1/preload.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

View File

@@ -0,0 +1,33 @@
//
// Generated code. Do not modify.
// source: bilibili/app/archive/middleware/v1/preload.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use playerArgsDescriptor instead')
const PlayerArgs$json = {
'1': 'PlayerArgs',
'2': [
{'1': 'qn', '3': 1, '4': 1, '5': 3, '10': 'qn'},
{'1': 'fnver', '3': 2, '4': 1, '5': 3, '10': 'fnver'},
{'1': 'fnval', '3': 3, '4': 1, '5': 3, '10': 'fnval'},
{'1': 'force_host', '3': 4, '4': 1, '5': 3, '10': 'forceHost'},
{'1': 'voice_balance', '3': 5, '4': 1, '5': 3, '10': 'voiceBalance'},
],
};
/// Descriptor for `PlayerArgs`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List playerArgsDescriptor = $convert.base64Decode(
'CgpQbGF5ZXJBcmdzEg4KAnFuGAEgASgDUgJxbhIUCgVmbnZlchgCIAEoA1IFZm52ZXISFAoFZm'
'52YWwYAyABKANSBWZudmFsEh0KCmZvcmNlX2hvc3QYBCABKANSCWZvcmNlSG9zdBIjCg12b2lj'
'ZV9iYWxhbmNlGAUgASgDUgx2b2ljZUJhbGFuY2U=');

View File

@@ -0,0 +1,471 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/ad.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
class AdInfo extends $pb.GeneratedMessage {
factory AdInfo({
$fixnum.Int64? creativeId,
$core.int? creativeType,
$core.int? cardType,
CreativeContent? creativeContent,
$core.String? adCb,
$fixnum.Int64? resource,
$core.int? source,
$core.String? requestId,
$core.bool? isAd,
$fixnum.Int64? cmMark,
$core.int? index,
$core.bool? isAdLoc,
$core.int? cardIndex,
$core.String? clientIp,
$core.List<$core.int>? extra,
$core.int? creativeStyle,
}) {
final $result = create();
if (creativeId != null) {
$result.creativeId = creativeId;
}
if (creativeType != null) {
$result.creativeType = creativeType;
}
if (cardType != null) {
$result.cardType = cardType;
}
if (creativeContent != null) {
$result.creativeContent = creativeContent;
}
if (adCb != null) {
$result.adCb = adCb;
}
if (resource != null) {
$result.resource = resource;
}
if (source != null) {
$result.source = source;
}
if (requestId != null) {
$result.requestId = requestId;
}
if (isAd != null) {
$result.isAd = isAd;
}
if (cmMark != null) {
$result.cmMark = cmMark;
}
if (index != null) {
$result.index = index;
}
if (isAdLoc != null) {
$result.isAdLoc = isAdLoc;
}
if (cardIndex != null) {
$result.cardIndex = cardIndex;
}
if (clientIp != null) {
$result.clientIp = clientIp;
}
if (extra != null) {
$result.extra = extra;
}
if (creativeStyle != null) {
$result.creativeStyle = creativeStyle;
}
return $result;
}
AdInfo._() : super();
factory AdInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory AdInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AdInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.card.v1'), createEmptyInstance: create)
..aInt64(1, _omitFieldNames ? '' : 'creativeId')
..a<$core.int>(2, _omitFieldNames ? '' : 'creativeType', $pb.PbFieldType.O3)
..a<$core.int>(3, _omitFieldNames ? '' : 'cardType', $pb.PbFieldType.O3)
..aOM<CreativeContent>(4, _omitFieldNames ? '' : 'creativeContent', subBuilder: CreativeContent.create)
..aOS(5, _omitFieldNames ? '' : 'adCb')
..aInt64(6, _omitFieldNames ? '' : 'resource')
..a<$core.int>(7, _omitFieldNames ? '' : 'source', $pb.PbFieldType.O3)
..aOS(8, _omitFieldNames ? '' : 'requestId')
..aOB(9, _omitFieldNames ? '' : 'isAd')
..aInt64(10, _omitFieldNames ? '' : 'cmMark')
..a<$core.int>(11, _omitFieldNames ? '' : 'index', $pb.PbFieldType.O3)
..aOB(12, _omitFieldNames ? '' : 'isAdLoc')
..a<$core.int>(13, _omitFieldNames ? '' : 'cardIndex', $pb.PbFieldType.O3)
..aOS(14, _omitFieldNames ? '' : 'clientIp')
..a<$core.List<$core.int>>(15, _omitFieldNames ? '' : 'extra', $pb.PbFieldType.OY)
..a<$core.int>(16, _omitFieldNames ? '' : 'creativeStyle', $pb.PbFieldType.O3)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
AdInfo clone() => AdInfo()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
AdInfo copyWith(void Function(AdInfo) updates) => super.copyWith((message) => updates(message as AdInfo)) as AdInfo;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static AdInfo create() => AdInfo._();
AdInfo createEmptyInstance() => create();
static $pb.PbList<AdInfo> createRepeated() => $pb.PbList<AdInfo>();
@$core.pragma('dart2js:noInline')
static AdInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AdInfo>(create);
static AdInfo? _defaultInstance;
@$pb.TagNumber(1)
$fixnum.Int64 get creativeId => $_getI64(0);
@$pb.TagNumber(1)
set creativeId($fixnum.Int64 v) { $_setInt64(0, v); }
@$pb.TagNumber(1)
$core.bool hasCreativeId() => $_has(0);
@$pb.TagNumber(1)
void clearCreativeId() => clearField(1);
@$pb.TagNumber(2)
$core.int get creativeType => $_getIZ(1);
@$pb.TagNumber(2)
set creativeType($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasCreativeType() => $_has(1);
@$pb.TagNumber(2)
void clearCreativeType() => clearField(2);
@$pb.TagNumber(3)
$core.int get cardType => $_getIZ(2);
@$pb.TagNumber(3)
set cardType($core.int v) { $_setSignedInt32(2, v); }
@$pb.TagNumber(3)
$core.bool hasCardType() => $_has(2);
@$pb.TagNumber(3)
void clearCardType() => clearField(3);
@$pb.TagNumber(4)
CreativeContent get creativeContent => $_getN(3);
@$pb.TagNumber(4)
set creativeContent(CreativeContent v) { setField(4, v); }
@$pb.TagNumber(4)
$core.bool hasCreativeContent() => $_has(3);
@$pb.TagNumber(4)
void clearCreativeContent() => clearField(4);
@$pb.TagNumber(4)
CreativeContent ensureCreativeContent() => $_ensure(3);
@$pb.TagNumber(5)
$core.String get adCb => $_getSZ(4);
@$pb.TagNumber(5)
set adCb($core.String v) { $_setString(4, v); }
@$pb.TagNumber(5)
$core.bool hasAdCb() => $_has(4);
@$pb.TagNumber(5)
void clearAdCb() => clearField(5);
@$pb.TagNumber(6)
$fixnum.Int64 get resource => $_getI64(5);
@$pb.TagNumber(6)
set resource($fixnum.Int64 v) { $_setInt64(5, v); }
@$pb.TagNumber(6)
$core.bool hasResource() => $_has(5);
@$pb.TagNumber(6)
void clearResource() => clearField(6);
@$pb.TagNumber(7)
$core.int get source => $_getIZ(6);
@$pb.TagNumber(7)
set source($core.int v) { $_setSignedInt32(6, v); }
@$pb.TagNumber(7)
$core.bool hasSource() => $_has(6);
@$pb.TagNumber(7)
void clearSource() => clearField(7);
@$pb.TagNumber(8)
$core.String get requestId => $_getSZ(7);
@$pb.TagNumber(8)
set requestId($core.String v) { $_setString(7, v); }
@$pb.TagNumber(8)
$core.bool hasRequestId() => $_has(7);
@$pb.TagNumber(8)
void clearRequestId() => clearField(8);
@$pb.TagNumber(9)
$core.bool get isAd => $_getBF(8);
@$pb.TagNumber(9)
set isAd($core.bool v) { $_setBool(8, v); }
@$pb.TagNumber(9)
$core.bool hasIsAd() => $_has(8);
@$pb.TagNumber(9)
void clearIsAd() => clearField(9);
@$pb.TagNumber(10)
$fixnum.Int64 get cmMark => $_getI64(9);
@$pb.TagNumber(10)
set cmMark($fixnum.Int64 v) { $_setInt64(9, v); }
@$pb.TagNumber(10)
$core.bool hasCmMark() => $_has(9);
@$pb.TagNumber(10)
void clearCmMark() => clearField(10);
@$pb.TagNumber(11)
$core.int get index => $_getIZ(10);
@$pb.TagNumber(11)
set index($core.int v) { $_setSignedInt32(10, v); }
@$pb.TagNumber(11)
$core.bool hasIndex() => $_has(10);
@$pb.TagNumber(11)
void clearIndex() => clearField(11);
@$pb.TagNumber(12)
$core.bool get isAdLoc => $_getBF(11);
@$pb.TagNumber(12)
set isAdLoc($core.bool v) { $_setBool(11, v); }
@$pb.TagNumber(12)
$core.bool hasIsAdLoc() => $_has(11);
@$pb.TagNumber(12)
void clearIsAdLoc() => clearField(12);
@$pb.TagNumber(13)
$core.int get cardIndex => $_getIZ(12);
@$pb.TagNumber(13)
set cardIndex($core.int v) { $_setSignedInt32(12, v); }
@$pb.TagNumber(13)
$core.bool hasCardIndex() => $_has(12);
@$pb.TagNumber(13)
void clearCardIndex() => clearField(13);
@$pb.TagNumber(14)
$core.String get clientIp => $_getSZ(13);
@$pb.TagNumber(14)
set clientIp($core.String v) { $_setString(13, v); }
@$pb.TagNumber(14)
$core.bool hasClientIp() => $_has(13);
@$pb.TagNumber(14)
void clearClientIp() => clearField(14);
@$pb.TagNumber(15)
$core.List<$core.int> get extra => $_getN(14);
@$pb.TagNumber(15)
set extra($core.List<$core.int> v) { $_setBytes(14, v); }
@$pb.TagNumber(15)
$core.bool hasExtra() => $_has(14);
@$pb.TagNumber(15)
void clearExtra() => clearField(15);
@$pb.TagNumber(16)
$core.int get creativeStyle => $_getIZ(15);
@$pb.TagNumber(16)
set creativeStyle($core.int v) { $_setSignedInt32(15, v); }
@$pb.TagNumber(16)
$core.bool hasCreativeStyle() => $_has(15);
@$pb.TagNumber(16)
void clearCreativeStyle() => clearField(16);
}
class CreativeContent extends $pb.GeneratedMessage {
factory CreativeContent({
$core.String? title,
$core.String? description,
$fixnum.Int64? videoId,
$core.String? username,
$core.String? imageUrl,
$core.String? imageMd5,
$core.String? logUrl,
$core.String? logMd5,
$core.String? url,
$core.String? clickUrl,
$core.String? showUrl,
}) {
final $result = create();
if (title != null) {
$result.title = title;
}
if (description != null) {
$result.description = description;
}
if (videoId != null) {
$result.videoId = videoId;
}
if (username != null) {
$result.username = username;
}
if (imageUrl != null) {
$result.imageUrl = imageUrl;
}
if (imageMd5 != null) {
$result.imageMd5 = imageMd5;
}
if (logUrl != null) {
$result.logUrl = logUrl;
}
if (logMd5 != null) {
$result.logMd5 = logMd5;
}
if (url != null) {
$result.url = url;
}
if (clickUrl != null) {
$result.clickUrl = clickUrl;
}
if (showUrl != null) {
$result.showUrl = showUrl;
}
return $result;
}
CreativeContent._() : super();
factory CreativeContent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory CreativeContent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreativeContent', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.card.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'title')
..aOS(2, _omitFieldNames ? '' : 'description')
..aInt64(3, _omitFieldNames ? '' : 'videoId')
..aOS(4, _omitFieldNames ? '' : 'username')
..aOS(5, _omitFieldNames ? '' : 'imageUrl')
..aOS(6, _omitFieldNames ? '' : 'imageMd5')
..aOS(7, _omitFieldNames ? '' : 'logUrl')
..aOS(8, _omitFieldNames ? '' : 'logMd5')
..aOS(9, _omitFieldNames ? '' : 'url')
..aOS(10, _omitFieldNames ? '' : 'clickUrl')
..aOS(11, _omitFieldNames ? '' : 'showUrl')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
CreativeContent clone() => CreativeContent()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
CreativeContent copyWith(void Function(CreativeContent) updates) => super.copyWith((message) => updates(message as CreativeContent)) as CreativeContent;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CreativeContent create() => CreativeContent._();
CreativeContent createEmptyInstance() => create();
static $pb.PbList<CreativeContent> createRepeated() => $pb.PbList<CreativeContent>();
@$core.pragma('dart2js:noInline')
static CreativeContent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CreativeContent>(create);
static CreativeContent? _defaultInstance;
@$pb.TagNumber(1)
$core.String get title => $_getSZ(0);
@$pb.TagNumber(1)
set title($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasTitle() => $_has(0);
@$pb.TagNumber(1)
void clearTitle() => clearField(1);
@$pb.TagNumber(2)
$core.String get description => $_getSZ(1);
@$pb.TagNumber(2)
set description($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasDescription() => $_has(1);
@$pb.TagNumber(2)
void clearDescription() => clearField(2);
@$pb.TagNumber(3)
$fixnum.Int64 get videoId => $_getI64(2);
@$pb.TagNumber(3)
set videoId($fixnum.Int64 v) { $_setInt64(2, v); }
@$pb.TagNumber(3)
$core.bool hasVideoId() => $_has(2);
@$pb.TagNumber(3)
void clearVideoId() => clearField(3);
@$pb.TagNumber(4)
$core.String get username => $_getSZ(3);
@$pb.TagNumber(4)
set username($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasUsername() => $_has(3);
@$pb.TagNumber(4)
void clearUsername() => clearField(4);
@$pb.TagNumber(5)
$core.String get imageUrl => $_getSZ(4);
@$pb.TagNumber(5)
set imageUrl($core.String v) { $_setString(4, v); }
@$pb.TagNumber(5)
$core.bool hasImageUrl() => $_has(4);
@$pb.TagNumber(5)
void clearImageUrl() => clearField(5);
@$pb.TagNumber(6)
$core.String get imageMd5 => $_getSZ(5);
@$pb.TagNumber(6)
set imageMd5($core.String v) { $_setString(5, v); }
@$pb.TagNumber(6)
$core.bool hasImageMd5() => $_has(5);
@$pb.TagNumber(6)
void clearImageMd5() => clearField(6);
@$pb.TagNumber(7)
$core.String get logUrl => $_getSZ(6);
@$pb.TagNumber(7)
set logUrl($core.String v) { $_setString(6, v); }
@$pb.TagNumber(7)
$core.bool hasLogUrl() => $_has(6);
@$pb.TagNumber(7)
void clearLogUrl() => clearField(7);
@$pb.TagNumber(8)
$core.String get logMd5 => $_getSZ(7);
@$pb.TagNumber(8)
set logMd5($core.String v) { $_setString(7, v); }
@$pb.TagNumber(8)
$core.bool hasLogMd5() => $_has(7);
@$pb.TagNumber(8)
void clearLogMd5() => clearField(8);
@$pb.TagNumber(9)
$core.String get url => $_getSZ(8);
@$pb.TagNumber(9)
set url($core.String v) { $_setString(8, v); }
@$pb.TagNumber(9)
$core.bool hasUrl() => $_has(8);
@$pb.TagNumber(9)
void clearUrl() => clearField(9);
@$pb.TagNumber(10)
$core.String get clickUrl => $_getSZ(9);
@$pb.TagNumber(10)
set clickUrl($core.String v) { $_setString(9, v); }
@$pb.TagNumber(10)
$core.bool hasClickUrl() => $_has(9);
@$pb.TagNumber(10)
void clearClickUrl() => clearField(10);
@$pb.TagNumber(11)
$core.String get showUrl => $_getSZ(10);
@$pb.TagNumber(11)
set showUrl($core.String v) { $_setString(10, v); }
@$pb.TagNumber(11)
$core.bool hasShowUrl() => $_has(10);
@$pb.TagNumber(11)
void clearShowUrl() => clearField(11);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/ad.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

View File

@@ -0,0 +1,78 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/ad.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use adInfoDescriptor instead')
const AdInfo$json = {
'1': 'AdInfo',
'2': [
{'1': 'creative_id', '3': 1, '4': 1, '5': 3, '10': 'creativeId'},
{'1': 'creative_type', '3': 2, '4': 1, '5': 5, '10': 'creativeType'},
{'1': 'card_type', '3': 3, '4': 1, '5': 5, '10': 'cardType'},
{'1': 'creative_content', '3': 4, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.CreativeContent', '10': 'creativeContent'},
{'1': 'ad_cb', '3': 5, '4': 1, '5': 9, '10': 'adCb'},
{'1': 'resource', '3': 6, '4': 1, '5': 3, '10': 'resource'},
{'1': 'source', '3': 7, '4': 1, '5': 5, '10': 'source'},
{'1': 'request_id', '3': 8, '4': 1, '5': 9, '10': 'requestId'},
{'1': 'is_ad', '3': 9, '4': 1, '5': 8, '10': 'isAd'},
{'1': 'cm_mark', '3': 10, '4': 1, '5': 3, '10': 'cmMark'},
{'1': 'index', '3': 11, '4': 1, '5': 5, '10': 'index'},
{'1': 'is_ad_loc', '3': 12, '4': 1, '5': 8, '10': 'isAdLoc'},
{'1': 'card_index', '3': 13, '4': 1, '5': 5, '10': 'cardIndex'},
{'1': 'client_ip', '3': 14, '4': 1, '5': 9, '10': 'clientIp'},
{'1': 'extra', '3': 15, '4': 1, '5': 12, '10': 'extra'},
{'1': 'creative_style', '3': 16, '4': 1, '5': 5, '10': 'creativeStyle'},
],
};
/// Descriptor for `AdInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List adInfoDescriptor = $convert.base64Decode(
'CgZBZEluZm8SHwoLY3JlYXRpdmVfaWQYASABKANSCmNyZWF0aXZlSWQSIwoNY3JlYXRpdmVfdH'
'lwZRgCIAEoBVIMY3JlYXRpdmVUeXBlEhsKCWNhcmRfdHlwZRgDIAEoBVIIY2FyZFR5cGUSUAoQ'
'Y3JlYXRpdmVfY29udGVudBgEIAEoCzIlLmJpbGliaWxpLmFwcC5jYXJkLnYxLkNyZWF0aXZlQ2'
'9udGVudFIPY3JlYXRpdmVDb250ZW50EhMKBWFkX2NiGAUgASgJUgRhZENiEhoKCHJlc291cmNl'
'GAYgASgDUghyZXNvdXJjZRIWCgZzb3VyY2UYByABKAVSBnNvdXJjZRIdCgpyZXF1ZXN0X2lkGA'
'ggASgJUglyZXF1ZXN0SWQSEwoFaXNfYWQYCSABKAhSBGlzQWQSFwoHY21fbWFyaxgKIAEoA1IG'
'Y21NYXJrEhQKBWluZGV4GAsgASgFUgVpbmRleBIaCglpc19hZF9sb2MYDCABKAhSB2lzQWRMb2'
'MSHQoKY2FyZF9pbmRleBgNIAEoBVIJY2FyZEluZGV4EhsKCWNsaWVudF9pcBgOIAEoCVIIY2xp'
'ZW50SXASFAoFZXh0cmEYDyABKAxSBWV4dHJhEiUKDmNyZWF0aXZlX3N0eWxlGBAgASgFUg1jcm'
'VhdGl2ZVN0eWxl');
@$core.Deprecated('Use creativeContentDescriptor instead')
const CreativeContent$json = {
'1': 'CreativeContent',
'2': [
{'1': 'title', '3': 1, '4': 1, '5': 9, '10': 'title'},
{'1': 'description', '3': 2, '4': 1, '5': 9, '10': 'description'},
{'1': 'video_id', '3': 3, '4': 1, '5': 3, '10': 'videoId'},
{'1': 'username', '3': 4, '4': 1, '5': 9, '10': 'username'},
{'1': 'image_url', '3': 5, '4': 1, '5': 9, '10': 'imageUrl'},
{'1': 'image_md5', '3': 6, '4': 1, '5': 9, '10': 'imageMd5'},
{'1': 'log_url', '3': 7, '4': 1, '5': 9, '10': 'logUrl'},
{'1': 'log_md5', '3': 8, '4': 1, '5': 9, '10': 'logMd5'},
{'1': 'url', '3': 9, '4': 1, '5': 9, '10': 'url'},
{'1': 'click_url', '3': 10, '4': 1, '5': 9, '10': 'clickUrl'},
{'1': 'show_url', '3': 11, '4': 1, '5': 9, '10': 'showUrl'},
],
};
/// Descriptor for `CreativeContent`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List creativeContentDescriptor = $convert.base64Decode(
'Cg9DcmVhdGl2ZUNvbnRlbnQSFAoFdGl0bGUYASABKAlSBXRpdGxlEiAKC2Rlc2NyaXB0aW9uGA'
'IgASgJUgtkZXNjcmlwdGlvbhIZCgh2aWRlb19pZBgDIAEoA1IHdmlkZW9JZBIaCgh1c2VybmFt'
'ZRgEIAEoCVIIdXNlcm5hbWUSGwoJaW1hZ2VfdXJsGAUgASgJUghpbWFnZVVybBIbCglpbWFnZV'
'9tZDUYBiABKAlSCGltYWdlTWQ1EhcKB2xvZ191cmwYByABKAlSBmxvZ1VybBIXCgdsb2dfbWQ1'
'GAggASgJUgZsb2dNZDUSEAoDdXJsGAkgASgJUgN1cmwSGwoJY2xpY2tfdXJsGAogASgJUghjbG'
'lja1VybBIZCghzaG93X3VybBgLIAEoCVIHc2hvd1VybA==');

View File

@@ -0,0 +1,268 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/card.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
import 'single.pb.dart' as $0;
enum Card_Item {
smallCoverV5,
largeCoverV1,
threeItemAllV2,
threeItemV1,
hotTopic,
threeItemHV5,
middleCoverV3,
largeCoverV4,
popularTopEntrance,
rcmdOneItem,
smallCoverV5Ad,
notSet
}
/// 卡片信息
class Card extends $pb.GeneratedMessage {
factory Card({
$0.SmallCoverV5? smallCoverV5,
$0.LargeCoverV1? largeCoverV1,
$0.ThreeItemAllV2? threeItemAllV2,
$0.ThreeItemV1? threeItemV1,
$0.HotTopic? hotTopic,
$0.DynamicHot? threeItemHV5,
$0.MiddleCoverV3? middleCoverV3,
$0.LargeCoverV4? largeCoverV4,
$0.PopularTopEntrance? popularTopEntrance,
$0.RcmdOneItem? rcmdOneItem,
$0.SmallCoverV5Ad? smallCoverV5Ad,
}) {
final $result = create();
if (smallCoverV5 != null) {
$result.smallCoverV5 = smallCoverV5;
}
if (largeCoverV1 != null) {
$result.largeCoverV1 = largeCoverV1;
}
if (threeItemAllV2 != null) {
$result.threeItemAllV2 = threeItemAllV2;
}
if (threeItemV1 != null) {
$result.threeItemV1 = threeItemV1;
}
if (hotTopic != null) {
$result.hotTopic = hotTopic;
}
if (threeItemHV5 != null) {
$result.threeItemHV5 = threeItemHV5;
}
if (middleCoverV3 != null) {
$result.middleCoverV3 = middleCoverV3;
}
if (largeCoverV4 != null) {
$result.largeCoverV4 = largeCoverV4;
}
if (popularTopEntrance != null) {
$result.popularTopEntrance = popularTopEntrance;
}
if (rcmdOneItem != null) {
$result.rcmdOneItem = rcmdOneItem;
}
if (smallCoverV5Ad != null) {
$result.smallCoverV5Ad = smallCoverV5Ad;
}
return $result;
}
Card._() : super();
factory Card.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Card.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static const $core.Map<$core.int, Card_Item> _Card_ItemByTag = {
1 : Card_Item.smallCoverV5,
2 : Card_Item.largeCoverV1,
3 : Card_Item.threeItemAllV2,
4 : Card_Item.threeItemV1,
5 : Card_Item.hotTopic,
6 : Card_Item.threeItemHV5,
7 : Card_Item.middleCoverV3,
8 : Card_Item.largeCoverV4,
9 : Card_Item.popularTopEntrance,
10 : Card_Item.rcmdOneItem,
11 : Card_Item.smallCoverV5Ad,
0 : Card_Item.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Card', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.card.v1'), createEmptyInstance: create)
..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
..aOM<$0.SmallCoverV5>(1, _omitFieldNames ? '' : 'smallCoverV5', subBuilder: $0.SmallCoverV5.create)
..aOM<$0.LargeCoverV1>(2, _omitFieldNames ? '' : 'largeCoverV1', subBuilder: $0.LargeCoverV1.create)
..aOM<$0.ThreeItemAllV2>(3, _omitFieldNames ? '' : 'threeItemAllV2', subBuilder: $0.ThreeItemAllV2.create)
..aOM<$0.ThreeItemV1>(4, _omitFieldNames ? '' : 'threeItemV1', subBuilder: $0.ThreeItemV1.create)
..aOM<$0.HotTopic>(5, _omitFieldNames ? '' : 'hotTopic', subBuilder: $0.HotTopic.create)
..aOM<$0.DynamicHot>(6, _omitFieldNames ? '' : 'threeItemHV5', subBuilder: $0.DynamicHot.create)
..aOM<$0.MiddleCoverV3>(7, _omitFieldNames ? '' : 'middleCoverV3', subBuilder: $0.MiddleCoverV3.create)
..aOM<$0.LargeCoverV4>(8, _omitFieldNames ? '' : 'largeCoverV4', subBuilder: $0.LargeCoverV4.create)
..aOM<$0.PopularTopEntrance>(9, _omitFieldNames ? '' : 'popularTopEntrance', subBuilder: $0.PopularTopEntrance.create)
..aOM<$0.RcmdOneItem>(10, _omitFieldNames ? '' : 'rcmdOneItem', subBuilder: $0.RcmdOneItem.create)
..aOM<$0.SmallCoverV5Ad>(11, _omitFieldNames ? '' : 'smallCoverV5Ad', subBuilder: $0.SmallCoverV5Ad.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Card clone() => Card()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Card copyWith(void Function(Card) updates) => super.copyWith((message) => updates(message as Card)) as Card;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Card create() => Card._();
Card createEmptyInstance() => create();
static $pb.PbList<Card> createRepeated() => $pb.PbList<Card>();
@$core.pragma('dart2js:noInline')
static Card getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Card>(create);
static Card? _defaultInstance;
Card_Item whichItem() => _Card_ItemByTag[$_whichOneof(0)]!;
void clearItem() => clearField($_whichOneof(0));
/// 小封面条目
@$pb.TagNumber(1)
$0.SmallCoverV5 get smallCoverV5 => $_getN(0);
@$pb.TagNumber(1)
set smallCoverV5($0.SmallCoverV5 v) { setField(1, v); }
@$pb.TagNumber(1)
$core.bool hasSmallCoverV5() => $_has(0);
@$pb.TagNumber(1)
void clearSmallCoverV5() => clearField(1);
@$pb.TagNumber(1)
$0.SmallCoverV5 ensureSmallCoverV5() => $_ensure(0);
@$pb.TagNumber(2)
$0.LargeCoverV1 get largeCoverV1 => $_getN(1);
@$pb.TagNumber(2)
set largeCoverV1($0.LargeCoverV1 v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasLargeCoverV1() => $_has(1);
@$pb.TagNumber(2)
void clearLargeCoverV1() => clearField(2);
@$pb.TagNumber(2)
$0.LargeCoverV1 ensureLargeCoverV1() => $_ensure(1);
@$pb.TagNumber(3)
$0.ThreeItemAllV2 get threeItemAllV2 => $_getN(2);
@$pb.TagNumber(3)
set threeItemAllV2($0.ThreeItemAllV2 v) { setField(3, v); }
@$pb.TagNumber(3)
$core.bool hasThreeItemAllV2() => $_has(2);
@$pb.TagNumber(3)
void clearThreeItemAllV2() => clearField(3);
@$pb.TagNumber(3)
$0.ThreeItemAllV2 ensureThreeItemAllV2() => $_ensure(2);
@$pb.TagNumber(4)
$0.ThreeItemV1 get threeItemV1 => $_getN(3);
@$pb.TagNumber(4)
set threeItemV1($0.ThreeItemV1 v) { setField(4, v); }
@$pb.TagNumber(4)
$core.bool hasThreeItemV1() => $_has(3);
@$pb.TagNumber(4)
void clearThreeItemV1() => clearField(4);
@$pb.TagNumber(4)
$0.ThreeItemV1 ensureThreeItemV1() => $_ensure(3);
@$pb.TagNumber(5)
$0.HotTopic get hotTopic => $_getN(4);
@$pb.TagNumber(5)
set hotTopic($0.HotTopic v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasHotTopic() => $_has(4);
@$pb.TagNumber(5)
void clearHotTopic() => clearField(5);
@$pb.TagNumber(5)
$0.HotTopic ensureHotTopic() => $_ensure(4);
@$pb.TagNumber(6)
$0.DynamicHot get threeItemHV5 => $_getN(5);
@$pb.TagNumber(6)
set threeItemHV5($0.DynamicHot v) { setField(6, v); }
@$pb.TagNumber(6)
$core.bool hasThreeItemHV5() => $_has(5);
@$pb.TagNumber(6)
void clearThreeItemHV5() => clearField(6);
@$pb.TagNumber(6)
$0.DynamicHot ensureThreeItemHV5() => $_ensure(5);
@$pb.TagNumber(7)
$0.MiddleCoverV3 get middleCoverV3 => $_getN(6);
@$pb.TagNumber(7)
set middleCoverV3($0.MiddleCoverV3 v) { setField(7, v); }
@$pb.TagNumber(7)
$core.bool hasMiddleCoverV3() => $_has(6);
@$pb.TagNumber(7)
void clearMiddleCoverV3() => clearField(7);
@$pb.TagNumber(7)
$0.MiddleCoverV3 ensureMiddleCoverV3() => $_ensure(6);
@$pb.TagNumber(8)
$0.LargeCoverV4 get largeCoverV4 => $_getN(7);
@$pb.TagNumber(8)
set largeCoverV4($0.LargeCoverV4 v) { setField(8, v); }
@$pb.TagNumber(8)
$core.bool hasLargeCoverV4() => $_has(7);
@$pb.TagNumber(8)
void clearLargeCoverV4() => clearField(8);
@$pb.TagNumber(8)
$0.LargeCoverV4 ensureLargeCoverV4() => $_ensure(7);
/// 热门列表顶部按钮
@$pb.TagNumber(9)
$0.PopularTopEntrance get popularTopEntrance => $_getN(8);
@$pb.TagNumber(9)
set popularTopEntrance($0.PopularTopEntrance v) { setField(9, v); }
@$pb.TagNumber(9)
$core.bool hasPopularTopEntrance() => $_has(8);
@$pb.TagNumber(9)
void clearPopularTopEntrance() => clearField(9);
@$pb.TagNumber(9)
$0.PopularTopEntrance ensurePopularTopEntrance() => $_ensure(8);
@$pb.TagNumber(10)
$0.RcmdOneItem get rcmdOneItem => $_getN(9);
@$pb.TagNumber(10)
set rcmdOneItem($0.RcmdOneItem v) { setField(10, v); }
@$pb.TagNumber(10)
$core.bool hasRcmdOneItem() => $_has(9);
@$pb.TagNumber(10)
void clearRcmdOneItem() => clearField(10);
@$pb.TagNumber(10)
$0.RcmdOneItem ensureRcmdOneItem() => $_ensure(9);
@$pb.TagNumber(11)
$0.SmallCoverV5Ad get smallCoverV5Ad => $_getN(10);
@$pb.TagNumber(11)
set smallCoverV5Ad($0.SmallCoverV5Ad v) { setField(11, v); }
@$pb.TagNumber(11)
$core.bool hasSmallCoverV5Ad() => $_has(10);
@$pb.TagNumber(11)
void clearSmallCoverV5Ad() => clearField(11);
@$pb.TagNumber(11)
$0.SmallCoverV5Ad ensureSmallCoverV5Ad() => $_ensure(10);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/card.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

View File

@@ -0,0 +1,55 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/card.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use cardDescriptor instead')
const Card$json = {
'1': 'Card',
'2': [
{'1': 'small_cover_v5', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.SmallCoverV5', '9': 0, '10': 'smallCoverV5'},
{'1': 'large_cover_v1', '3': 2, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.LargeCoverV1', '9': 0, '10': 'largeCoverV1'},
{'1': 'three_item_all_v2', '3': 3, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ThreeItemAllV2', '9': 0, '10': 'threeItemAllV2'},
{'1': 'three_item_v1', '3': 4, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ThreeItemV1', '9': 0, '10': 'threeItemV1'},
{'1': 'hot_topic', '3': 5, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.HotTopic', '9': 0, '10': 'hotTopic'},
{'1': 'three_item_h_v5', '3': 6, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.DynamicHot', '9': 0, '10': 'threeItemHV5'},
{'1': 'middle_cover_v3', '3': 7, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.MiddleCoverV3', '9': 0, '10': 'middleCoverV3'},
{'1': 'large_cover_v4', '3': 8, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.LargeCoverV4', '9': 0, '10': 'largeCoverV4'},
{'1': 'popular_top_entrance', '3': 9, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.PopularTopEntrance', '9': 0, '10': 'popularTopEntrance'},
{'1': 'rcmd_one_item', '3': 10, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.RcmdOneItem', '9': 0, '10': 'rcmdOneItem'},
{'1': 'small_cover_v5_ad', '3': 11, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.SmallCoverV5Ad', '9': 0, '10': 'smallCoverV5Ad'},
],
'8': [
{'1': 'item'},
],
};
/// Descriptor for `Card`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List cardDescriptor = $convert.base64Decode(
'CgRDYXJkEkoKDnNtYWxsX2NvdmVyX3Y1GAEgASgLMiIuYmlsaWJpbGkuYXBwLmNhcmQudjEuU2'
'1hbGxDb3ZlclY1SABSDHNtYWxsQ292ZXJWNRJKCg5sYXJnZV9jb3Zlcl92MRgCIAEoCzIiLmJp'
'bGliaWxpLmFwcC5jYXJkLnYxLkxhcmdlQ292ZXJWMUgAUgxsYXJnZUNvdmVyVjESUQoRdGhyZW'
'VfaXRlbV9hbGxfdjIYAyABKAsyJC5iaWxpYmlsaS5hcHAuY2FyZC52MS5UaHJlZUl0ZW1BbGxW'
'MkgAUg50aHJlZUl0ZW1BbGxWMhJHCg10aHJlZV9pdGVtX3YxGAQgASgLMiEuYmlsaWJpbGkuYX'
'BwLmNhcmQudjEuVGhyZWVJdGVtVjFIAFILdGhyZWVJdGVtVjESPQoJaG90X3RvcGljGAUgASgL'
'Mh4uYmlsaWJpbGkuYXBwLmNhcmQudjEuSG90VG9waWNIAFIIaG90VG9waWMSSQoPdGhyZWVfaX'
'RlbV9oX3Y1GAYgASgLMiAuYmlsaWJpbGkuYXBwLmNhcmQudjEuRHluYW1pY0hvdEgAUgx0aHJl'
'ZUl0ZW1IVjUSTQoPbWlkZGxlX2NvdmVyX3YzGAcgASgLMiMuYmlsaWJpbGkuYXBwLmNhcmQudj'
'EuTWlkZGxlQ292ZXJWM0gAUg1taWRkbGVDb3ZlclYzEkoKDmxhcmdlX2NvdmVyX3Y0GAggASgL'
'MiIuYmlsaWJpbGkuYXBwLmNhcmQudjEuTGFyZ2VDb3ZlclY0SABSDGxhcmdlQ292ZXJWNBJcCh'
'Rwb3B1bGFyX3RvcF9lbnRyYW5jZRgJIAEoCzIoLmJpbGliaWxpLmFwcC5jYXJkLnYxLlBvcHVs'
'YXJUb3BFbnRyYW5jZUgAUhJwb3B1bGFyVG9wRW50cmFuY2USRwoNcmNtZF9vbmVfaXRlbRgKIA'
'EoCzIhLmJpbGliaWxpLmFwcC5jYXJkLnYxLlJjbWRPbmVJdGVtSABSC3JjbWRPbmVJdGVtElEK'
'EXNtYWxsX2NvdmVyX3Y1X2FkGAsgASgLMiQuYmlsaWJpbGkuYXBwLmNhcmQudjEuU21hbGxDb3'
'ZlclY1QWRIAFIOc21hbGxDb3ZlclY1QWRCBgoEaXRlbQ==');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/common.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

View File

@@ -0,0 +1,423 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/common.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use argsDescriptor instead')
const Args$json = {
'1': 'Args',
'2': [
{'1': 'type', '3': 1, '4': 1, '5': 5, '10': 'type'},
{'1': 'up_id', '3': 2, '4': 1, '5': 3, '10': 'upId'},
{'1': 'up_name', '3': 3, '4': 1, '5': 9, '10': 'upName'},
{'1': 'rid', '3': 4, '4': 1, '5': 5, '10': 'rid'},
{'1': 'rname', '3': 5, '4': 1, '5': 9, '10': 'rname'},
{'1': 'tid', '3': 6, '4': 1, '5': 3, '10': 'tid'},
{'1': 'tname', '3': 7, '4': 1, '5': 9, '10': 'tname'},
{'1': 'track_id', '3': 8, '4': 1, '5': 9, '10': 'trackId'},
{'1': 'state', '3': 9, '4': 1, '5': 9, '10': 'state'},
{'1': 'converge_type', '3': 10, '4': 1, '5': 5, '10': 'convergeType'},
{'1': 'aid', '3': 11, '4': 1, '5': 3, '10': 'aid'},
],
};
/// Descriptor for `Args`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List argsDescriptor = $convert.base64Decode(
'CgRBcmdzEhIKBHR5cGUYASABKAVSBHR5cGUSEwoFdXBfaWQYAiABKANSBHVwSWQSFwoHdXBfbm'
'FtZRgDIAEoCVIGdXBOYW1lEhAKA3JpZBgEIAEoBVIDcmlkEhQKBXJuYW1lGAUgASgJUgVybmFt'
'ZRIQCgN0aWQYBiABKANSA3RpZBIUCgV0bmFtZRgHIAEoCVIFdG5hbWUSGQoIdHJhY2tfaWQYCC'
'ABKAlSB3RyYWNrSWQSFAoFc3RhdGUYCSABKAlSBXN0YXRlEiMKDWNvbnZlcmdlX3R5cGUYCiAB'
'KAVSDGNvbnZlcmdlVHlwZRIQCgNhaWQYCyABKANSA2FpZA==');
@$core.Deprecated('Use avatarDescriptor instead')
const Avatar$json = {
'1': 'Avatar',
'2': [
{'1': 'cover', '3': 1, '4': 1, '5': 9, '10': 'cover'},
{'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'},
{'1': 'uri', '3': 3, '4': 1, '5': 9, '10': 'uri'},
{'1': 'type', '3': 4, '4': 1, '5': 5, '10': 'type'},
{'1': 'event', '3': 5, '4': 1, '5': 9, '10': 'event'},
{'1': 'event_v2', '3': 6, '4': 1, '5': 9, '10': 'eventV2'},
{'1': 'defalut_cover', '3': 7, '4': 1, '5': 5, '10': 'defalutCover'},
],
};
/// Descriptor for `Avatar`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List avatarDescriptor = $convert.base64Decode(
'CgZBdmF0YXISFAoFY292ZXIYASABKAlSBWNvdmVyEhIKBHRleHQYAiABKAlSBHRleHQSEAoDdX'
'JpGAMgASgJUgN1cmkSEgoEdHlwZRgEIAEoBVIEdHlwZRIUCgVldmVudBgFIAEoCVIFZXZlbnQS'
'GQoIZXZlbnRfdjIYBiABKAlSB2V2ZW50VjISIwoNZGVmYWx1dF9jb3ZlchgHIAEoBVIMZGVmYW'
'x1dENvdmVy');
@$core.Deprecated('Use baseDescriptor instead')
const Base$json = {
'1': 'Base',
'2': [
{'1': 'card_type', '3': 1, '4': 1, '5': 9, '10': 'cardType'},
{'1': 'card_goto', '3': 2, '4': 1, '5': 9, '10': 'cardGoto'},
{'1': 'goto', '3': 3, '4': 1, '5': 9, '10': 'goto'},
{'1': 'param', '3': 4, '4': 1, '5': 9, '10': 'param'},
{'1': 'cover', '3': 5, '4': 1, '5': 9, '10': 'cover'},
{'1': 'title', '3': 6, '4': 1, '5': 9, '10': 'title'},
{'1': 'uri', '3': 7, '4': 1, '5': 9, '10': 'uri'},
{'1': 'three_point', '3': 8, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ThreePoint', '10': 'threePoint'},
{'1': 'args', '3': 9, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Args', '10': 'args'},
{'1': 'player_args', '3': 10, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.PlayerArgs', '10': 'playerArgs'},
{'1': 'idx', '3': 11, '4': 1, '5': 3, '10': 'idx'},
{'1': 'ad_info', '3': 12, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.AdInfo', '10': 'adInfo'},
{'1': 'mask', '3': 13, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Mask', '10': 'mask'},
{'1': 'from_type', '3': 14, '4': 1, '5': 9, '10': 'fromType'},
{'1': 'three_point_v2', '3': 15, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.ThreePointV2', '10': 'threePointV2'},
{'1': 'three_point_v3', '3': 16, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.ThreePointV3', '10': 'threePointV3'},
{'1': 'desc_button', '3': 17, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Button', '10': 'descButton'},
{'1': 'three_point_v4', '3': 18, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ThreePointV4', '10': 'threePointV4'},
{'1': 'up_args', '3': 19, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.UpArgs', '10': 'upArgs'},
],
};
/// Descriptor for `Base`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List baseDescriptor = $convert.base64Decode(
'CgRCYXNlEhsKCWNhcmRfdHlwZRgBIAEoCVIIY2FyZFR5cGUSGwoJY2FyZF9nb3RvGAIgASgJUg'
'hjYXJkR290bxISCgRnb3RvGAMgASgJUgRnb3RvEhQKBXBhcmFtGAQgASgJUgVwYXJhbRIUCgVj'
'b3ZlchgFIAEoCVIFY292ZXISFAoFdGl0bGUYBiABKAlSBXRpdGxlEhAKA3VyaRgHIAEoCVIDdX'
'JpEkEKC3RocmVlX3BvaW50GAggASgLMiAuYmlsaWJpbGkuYXBwLmNhcmQudjEuVGhyZWVQb2lu'
'dFIKdGhyZWVQb2ludBIuCgRhcmdzGAkgASgLMhouYmlsaWJpbGkuYXBwLmNhcmQudjEuQXJnc1'
'IEYXJncxJBCgtwbGF5ZXJfYXJncxgKIAEoCzIgLmJpbGliaWxpLmFwcC5jYXJkLnYxLlBsYXll'
'ckFyZ3NSCnBsYXllckFyZ3MSEAoDaWR4GAsgASgDUgNpZHgSNQoHYWRfaW5mbxgMIAEoCzIcLm'
'JpbGliaWxpLmFwcC5jYXJkLnYxLkFkSW5mb1IGYWRJbmZvEi4KBG1hc2sYDSABKAsyGi5iaWxp'
'YmlsaS5hcHAuY2FyZC52MS5NYXNrUgRtYXNrEhsKCWZyb21fdHlwZRgOIAEoCVIIZnJvbVR5cG'
'USSAoOdGhyZWVfcG9pbnRfdjIYDyADKAsyIi5iaWxpYmlsaS5hcHAuY2FyZC52MS5UaHJlZVBv'
'aW50VjJSDHRocmVlUG9pbnRWMhJICg50aHJlZV9wb2ludF92MxgQIAMoCzIiLmJpbGliaWxpLm'
'FwcC5jYXJkLnYxLlRocmVlUG9pbnRWM1IMdGhyZWVQb2ludFYzEj0KC2Rlc2NfYnV0dG9uGBEg'
'ASgLMhwuYmlsaWJpbGkuYXBwLmNhcmQudjEuQnV0dG9uUgpkZXNjQnV0dG9uEkgKDnRocmVlX3'
'BvaW50X3Y0GBIgASgLMiIuYmlsaWJpbGkuYXBwLmNhcmQudjEuVGhyZWVQb2ludFY0Ugx0aHJl'
'ZVBvaW50VjQSNQoHdXBfYXJncxgTIAEoCzIcLmJpbGliaWxpLmFwcC5jYXJkLnYxLlVwQXJnc1'
'IGdXBBcmdz');
@$core.Deprecated('Use buttonDescriptor instead')
const Button$json = {
'1': 'Button',
'2': [
{'1': 'text', '3': 1, '4': 1, '5': 9, '10': 'text'},
{'1': 'param', '3': 2, '4': 1, '5': 9, '10': 'param'},
{'1': 'uri', '3': 3, '4': 1, '5': 9, '10': 'uri'},
{'1': 'event', '3': 4, '4': 1, '5': 9, '10': 'event'},
{'1': 'selected', '3': 5, '4': 1, '5': 5, '10': 'selected'},
{'1': 'type', '3': 6, '4': 1, '5': 5, '10': 'type'},
{'1': 'event_v2', '3': 7, '4': 1, '5': 9, '10': 'eventV2'},
{'1': 'relation', '3': 8, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Relation', '10': 'relation'},
],
};
/// Descriptor for `Button`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List buttonDescriptor = $convert.base64Decode(
'CgZCdXR0b24SEgoEdGV4dBgBIAEoCVIEdGV4dBIUCgVwYXJhbRgCIAEoCVIFcGFyYW0SEAoDdX'
'JpGAMgASgJUgN1cmkSFAoFZXZlbnQYBCABKAlSBWV2ZW50EhoKCHNlbGVjdGVkGAUgASgFUghz'
'ZWxlY3RlZBISCgR0eXBlGAYgASgFUgR0eXBlEhkKCGV2ZW50X3YyGAcgASgJUgdldmVudFYyEj'
'oKCHJlbGF0aW9uGAggASgLMh4uYmlsaWJpbGkuYXBwLmNhcmQudjEuUmVsYXRpb25SCHJlbGF0'
'aW9u');
@$core.Deprecated('Use dislikeReasonDescriptor instead')
const DislikeReason$json = {
'1': 'DislikeReason',
'2': [
{'1': 'id', '3': 1, '4': 1, '5': 3, '10': 'id'},
{'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},
],
};
/// Descriptor for `DislikeReason`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List dislikeReasonDescriptor = $convert.base64Decode(
'Cg1EaXNsaWtlUmVhc29uEg4KAmlkGAEgASgDUgJpZBISCgRuYW1lGAIgASgJUgRuYW1l');
@$core.Deprecated('Use likeButtonDescriptor instead')
const LikeButton$json = {
'1': 'LikeButton',
'2': [
{'1': 'Aid', '3': 1, '4': 1, '5': 3, '10': 'Aid'},
{'1': 'count', '3': 2, '4': 1, '5': 5, '10': 'count'},
{'1': 'show_count', '3': 3, '4': 1, '5': 8, '10': 'showCount'},
{'1': 'event', '3': 4, '4': 1, '5': 9, '10': 'event'},
{'1': 'selected', '3': 5, '4': 1, '5': 5, '10': 'selected'},
{'1': 'event_v2', '3': 6, '4': 1, '5': 9, '10': 'eventV2'},
],
};
/// Descriptor for `LikeButton`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List likeButtonDescriptor = $convert.base64Decode(
'CgpMaWtlQnV0dG9uEhAKA0FpZBgBIAEoA1IDQWlkEhQKBWNvdW50GAIgASgFUgVjb3VudBIdCg'
'pzaG93X2NvdW50GAMgASgIUglzaG93Q291bnQSFAoFZXZlbnQYBCABKAlSBWV2ZW50EhoKCHNl'
'bGVjdGVkGAUgASgFUghzZWxlY3RlZBIZCghldmVudF92MhgGIAEoCVIHZXZlbnRWMg==');
@$core.Deprecated('Use maskDescriptor instead')
const Mask$json = {
'1': 'Mask',
'2': [
{'1': 'avatar', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Avatar', '10': 'avatar'},
{'1': 'button', '3': 2, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Button', '10': 'button'},
],
};
/// Descriptor for `Mask`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List maskDescriptor = $convert.base64Decode(
'CgRNYXNrEjQKBmF2YXRhchgBIAEoCzIcLmJpbGliaWxpLmFwcC5jYXJkLnYxLkF2YXRhclIGYX'
'ZhdGFyEjQKBmJ1dHRvbhgCIAEoCzIcLmJpbGliaWxpLmFwcC5jYXJkLnYxLkJ1dHRvblIGYnV0'
'dG9u');
@$core.Deprecated('Use playerArgsDescriptor instead')
const PlayerArgs$json = {
'1': 'PlayerArgs',
'2': [
{'1': 'is_live', '3': 1, '4': 1, '5': 5, '10': 'isLive'},
{'1': 'aid', '3': 2, '4': 1, '5': 3, '10': 'aid'},
{'1': 'cid', '3': 3, '4': 1, '5': 3, '10': 'cid'},
{'1': 'sub_type', '3': 4, '4': 1, '5': 5, '10': 'subType'},
{'1': 'room_id', '3': 5, '4': 1, '5': 3, '10': 'roomId'},
{'1': 'ep_id', '3': 7, '4': 1, '5': 3, '10': 'epId'},
{'1': 'is_preview', '3': 8, '4': 1, '5': 5, '10': 'isPreview'},
{'1': 'type', '3': 9, '4': 1, '5': 9, '10': 'type'},
{'1': 'duration', '3': 10, '4': 1, '5': 3, '10': 'duration'},
{'1': 'season_id', '3': 11, '4': 1, '5': 3, '10': 'seasonId'},
],
};
/// Descriptor for `PlayerArgs`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List playerArgsDescriptor = $convert.base64Decode(
'CgpQbGF5ZXJBcmdzEhcKB2lzX2xpdmUYASABKAVSBmlzTGl2ZRIQCgNhaWQYAiABKANSA2FpZB'
'IQCgNjaWQYAyABKANSA2NpZBIZCghzdWJfdHlwZRgEIAEoBVIHc3ViVHlwZRIXCgdyb29tX2lk'
'GAUgASgDUgZyb29tSWQSEwoFZXBfaWQYByABKANSBGVwSWQSHQoKaXNfcHJldmlldxgIIAEoBV'
'IJaXNQcmV2aWV3EhIKBHR5cGUYCSABKAlSBHR5cGUSGgoIZHVyYXRpb24YCiABKANSCGR1cmF0'
'aW9uEhsKCXNlYXNvbl9pZBgLIAEoA1IIc2Vhc29uSWQ=');
@$core.Deprecated('Use reasonStyleDescriptor instead')
const ReasonStyle$json = {
'1': 'ReasonStyle',
'2': [
{'1': 'text', '3': 1, '4': 1, '5': 9, '10': 'text'},
{'1': 'text_color', '3': 2, '4': 1, '5': 9, '10': 'textColor'},
{'1': 'bg_color', '3': 3, '4': 1, '5': 9, '10': 'bgColor'},
{'1': 'border_color', '3': 4, '4': 1, '5': 9, '10': 'borderColor'},
{'1': 'icon_url', '3': 5, '4': 1, '5': 9, '10': 'iconUrl'},
{'1': 'text_color_night', '3': 6, '4': 1, '5': 9, '10': 'textColorNight'},
{'1': 'bg_color_night', '3': 7, '4': 1, '5': 9, '10': 'bgColorNight'},
{'1': 'border_color_night', '3': 8, '4': 1, '5': 9, '10': 'borderColorNight'},
{'1': 'icon_night_url', '3': 9, '4': 1, '5': 9, '10': 'iconNightUrl'},
{'1': 'bg_style', '3': 10, '4': 1, '5': 5, '10': 'bgStyle'},
{'1': 'uri', '3': 11, '4': 1, '5': 9, '10': 'uri'},
{'1': 'icon_bg_url', '3': 12, '4': 1, '5': 9, '10': 'iconBgUrl'},
{'1': 'event', '3': 13, '4': 1, '5': 9, '10': 'event'},
{'1': 'event_v2', '3': 14, '4': 1, '5': 9, '10': 'eventV2'},
{'1': 'right_icon_type', '3': 15, '4': 1, '5': 5, '10': 'rightIconType'},
{'1': 'left_icon_type', '3': 16, '4': 1, '5': 9, '10': 'leftIconType'},
],
};
/// Descriptor for `ReasonStyle`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List reasonStyleDescriptor = $convert.base64Decode(
'CgtSZWFzb25TdHlsZRISCgR0ZXh0GAEgASgJUgR0ZXh0Eh0KCnRleHRfY29sb3IYAiABKAlSCX'
'RleHRDb2xvchIZCghiZ19jb2xvchgDIAEoCVIHYmdDb2xvchIhCgxib3JkZXJfY29sb3IYBCAB'
'KAlSC2JvcmRlckNvbG9yEhkKCGljb25fdXJsGAUgASgJUgdpY29uVXJsEigKEHRleHRfY29sb3'
'JfbmlnaHQYBiABKAlSDnRleHRDb2xvck5pZ2h0EiQKDmJnX2NvbG9yX25pZ2h0GAcgASgJUgxi'
'Z0NvbG9yTmlnaHQSLAoSYm9yZGVyX2NvbG9yX25pZ2h0GAggASgJUhBib3JkZXJDb2xvck5pZ2'
'h0EiQKDmljb25fbmlnaHRfdXJsGAkgASgJUgxpY29uTmlnaHRVcmwSGQoIYmdfc3R5bGUYCiAB'
'KAVSB2JnU3R5bGUSEAoDdXJpGAsgASgJUgN1cmkSHgoLaWNvbl9iZ191cmwYDCABKAlSCWljb2'
'5CZ1VybBIUCgVldmVudBgNIAEoCVIFZXZlbnQSGQoIZXZlbnRfdjIYDiABKAlSB2V2ZW50VjIS'
'JgoPcmlnaHRfaWNvbl90eXBlGA8gASgFUg1yaWdodEljb25UeXBlEiQKDmxlZnRfaWNvbl90eX'
'BlGBAgASgJUgxsZWZ0SWNvblR5cGU=');
@$core.Deprecated('Use relationDescriptor instead')
const Relation$json = {
'1': 'Relation',
'2': [
{'1': 'status', '3': 1, '4': 1, '5': 5, '10': 'status'},
{'1': 'is_follow', '3': 2, '4': 1, '5': 5, '10': 'isFollow'},
{'1': 'is_followed', '3': 3, '4': 1, '5': 5, '10': 'isFollowed'},
],
};
/// Descriptor for `Relation`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List relationDescriptor = $convert.base64Decode(
'CghSZWxhdGlvbhIWCgZzdGF0dXMYASABKAVSBnN0YXR1cxIbCglpc19mb2xsb3cYAiABKAVSCG'
'lzRm9sbG93Eh8KC2lzX2ZvbGxvd2VkGAMgASgFUgppc0ZvbGxvd2Vk');
@$core.Deprecated('Use sharePlaneDescriptor instead')
const SharePlane$json = {
'1': 'SharePlane',
'2': [
{'1': 'title', '3': 1, '4': 1, '5': 9, '10': 'title'},
{'1': 'share_subtitle', '3': 2, '4': 1, '5': 9, '10': 'shareSubtitle'},
{'1': 'desc', '3': 3, '4': 1, '5': 9, '10': 'desc'},
{'1': 'cover', '3': 4, '4': 1, '5': 9, '10': 'cover'},
{'1': 'aid', '3': 5, '4': 1, '5': 3, '10': 'aid'},
{'1': 'bvid', '3': 6, '4': 1, '5': 9, '10': 'bvid'},
{'1': 'share_to', '3': 7, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.SharePlane.ShareToEntry', '10': 'shareTo'},
{'1': 'author', '3': 8, '4': 1, '5': 9, '10': 'author'},
{'1': 'author_id', '3': 9, '4': 1, '5': 3, '10': 'authorId'},
{'1': 'short_link', '3': 10, '4': 1, '5': 9, '10': 'shortLink'},
{'1': 'play_number', '3': 11, '4': 1, '5': 9, '10': 'playNumber'},
{'1': 'first_cid', '3': 12, '4': 1, '5': 3, '10': 'firstCid'},
],
'3': [SharePlane_ShareToEntry$json],
};
@$core.Deprecated('Use sharePlaneDescriptor instead')
const SharePlane_ShareToEntry$json = {
'1': 'ShareToEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 8, '10': 'value'},
],
'7': {'7': true},
};
/// Descriptor for `SharePlane`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List sharePlaneDescriptor = $convert.base64Decode(
'CgpTaGFyZVBsYW5lEhQKBXRpdGxlGAEgASgJUgV0aXRsZRIlCg5zaGFyZV9zdWJ0aXRsZRgCIA'
'EoCVINc2hhcmVTdWJ0aXRsZRISCgRkZXNjGAMgASgJUgRkZXNjEhQKBWNvdmVyGAQgASgJUgVj'
'b3ZlchIQCgNhaWQYBSABKANSA2FpZBISCgRidmlkGAYgASgJUgRidmlkEkgKCHNoYXJlX3RvGA'
'cgAygLMi0uYmlsaWJpbGkuYXBwLmNhcmQudjEuU2hhcmVQbGFuZS5TaGFyZVRvRW50cnlSB3No'
'YXJlVG8SFgoGYXV0aG9yGAggASgJUgZhdXRob3ISGwoJYXV0aG9yX2lkGAkgASgDUghhdXRob3'
'JJZBIdCgpzaG9ydF9saW5rGAogASgJUglzaG9ydExpbmsSHwoLcGxheV9udW1iZXIYCyABKAlS'
'CnBsYXlOdW1iZXISGwoJZmlyc3RfY2lkGAwgASgDUghmaXJzdENpZBo6CgxTaGFyZVRvRW50cn'
'kSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAhSBXZhbHVlOgI4AQ==');
@$core.Deprecated('Use threePointDescriptor instead')
const ThreePoint$json = {
'1': 'ThreePoint',
'2': [
{'1': 'dislike_reasons', '3': 1, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.DislikeReason', '10': 'dislikeReasons'},
{'1': 'feedbacks', '3': 2, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.DislikeReason', '10': 'feedbacks'},
{'1': 'watch_later', '3': 3, '4': 1, '5': 5, '10': 'watchLater'},
],
};
/// Descriptor for `ThreePoint`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List threePointDescriptor = $convert.base64Decode(
'CgpUaHJlZVBvaW50EkwKD2Rpc2xpa2VfcmVhc29ucxgBIAMoCzIjLmJpbGliaWxpLmFwcC5jYX'
'JkLnYxLkRpc2xpa2VSZWFzb25SDmRpc2xpa2VSZWFzb25zEkEKCWZlZWRiYWNrcxgCIAMoCzIj'
'LmJpbGliaWxpLmFwcC5jYXJkLnYxLkRpc2xpa2VSZWFzb25SCWZlZWRiYWNrcxIfCgt3YXRjaF'
'9sYXRlchgDIAEoBVIKd2F0Y2hMYXRlcg==');
@$core.Deprecated('Use threePointV2Descriptor instead')
const ThreePointV2$json = {
'1': 'ThreePointV2',
'2': [
{'1': 'title', '3': 1, '4': 1, '5': 9, '10': 'title'},
{'1': 'subtitle', '3': 2, '4': 1, '5': 9, '10': 'subtitle'},
{'1': 'reasons', '3': 3, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.DislikeReason', '10': 'reasons'},
{'1': 'type', '3': 4, '4': 1, '5': 9, '10': 'type'},
{'1': 'id', '3': 5, '4': 1, '5': 3, '10': 'id'},
],
};
/// Descriptor for `ThreePointV2`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List threePointV2Descriptor = $convert.base64Decode(
'CgxUaHJlZVBvaW50VjISFAoFdGl0bGUYASABKAlSBXRpdGxlEhoKCHN1YnRpdGxlGAIgASgJUg'
'hzdWJ0aXRsZRI9CgdyZWFzb25zGAMgAygLMiMuYmlsaWJpbGkuYXBwLmNhcmQudjEuRGlzbGlr'
'ZVJlYXNvblIHcmVhc29ucxISCgR0eXBlGAQgASgJUgR0eXBlEg4KAmlkGAUgASgDUgJpZA==');
@$core.Deprecated('Use threePointV3Descriptor instead')
const ThreePointV3$json = {
'1': 'ThreePointV3',
'2': [
{'1': 'title', '3': 1, '4': 1, '5': 9, '10': 'title'},
{'1': 'selected_title', '3': 2, '4': 1, '5': 9, '10': 'selectedTitle'},
{'1': 'subtitle', '3': 3, '4': 1, '5': 9, '10': 'subtitle'},
{'1': 'reasons', '3': 4, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.DislikeReason', '10': 'reasons'},
{'1': 'type', '3': 5, '4': 1, '5': 9, '10': 'type'},
{'1': 'id', '3': 6, '4': 1, '5': 3, '10': 'id'},
{'1': 'selected', '3': 7, '4': 1, '5': 5, '10': 'selected'},
{'1': 'icon', '3': 8, '4': 1, '5': 9, '10': 'icon'},
{'1': 'selected_icon', '3': 9, '4': 1, '5': 9, '10': 'selectedIcon'},
{'1': 'url', '3': 10, '4': 1, '5': 9, '10': 'url'},
{'1': 'default_id', '3': 11, '4': 1, '5': 5, '10': 'defaultId'},
],
};
/// Descriptor for `ThreePointV3`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List threePointV3Descriptor = $convert.base64Decode(
'CgxUaHJlZVBvaW50VjMSFAoFdGl0bGUYASABKAlSBXRpdGxlEiUKDnNlbGVjdGVkX3RpdGxlGA'
'IgASgJUg1zZWxlY3RlZFRpdGxlEhoKCHN1YnRpdGxlGAMgASgJUghzdWJ0aXRsZRI9CgdyZWFz'
'b25zGAQgAygLMiMuYmlsaWJpbGkuYXBwLmNhcmQudjEuRGlzbGlrZVJlYXNvblIHcmVhc29ucx'
'ISCgR0eXBlGAUgASgJUgR0eXBlEg4KAmlkGAYgASgDUgJpZBIaCghzZWxlY3RlZBgHIAEoBVII'
'c2VsZWN0ZWQSEgoEaWNvbhgIIAEoCVIEaWNvbhIjCg1zZWxlY3RlZF9pY29uGAkgASgJUgxzZW'
'xlY3RlZEljb24SEAoDdXJsGAogASgJUgN1cmwSHQoKZGVmYXVsdF9pZBgLIAEoBVIJZGVmYXVs'
'dElk');
@$core.Deprecated('Use threePointV4Descriptor instead')
const ThreePointV4$json = {
'1': 'ThreePointV4',
'2': [
{'1': 'share_plane', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.SharePlane', '10': 'sharePlane'},
{'1': 'watch_later', '3': 2, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.WatchLater', '10': 'watchLater'},
],
};
/// Descriptor for `ThreePointV4`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List threePointV4Descriptor = $convert.base64Decode(
'CgxUaHJlZVBvaW50VjQSQQoLc2hhcmVfcGxhbmUYASABKAsyIC5iaWxpYmlsaS5hcHAuY2FyZC'
'52MS5TaGFyZVBsYW5lUgpzaGFyZVBsYW5lEkEKC3dhdGNoX2xhdGVyGAIgASgLMiAuYmlsaWJp'
'bGkuYXBwLmNhcmQudjEuV2F0Y2hMYXRlclIKd2F0Y2hMYXRlcg==');
@$core.Deprecated('Use upDescriptor instead')
const Up$json = {
'1': 'Up',
'2': [
{'1': 'id', '3': 1, '4': 1, '5': 3, '10': 'id'},
{'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},
{'1': 'desc', '3': 3, '4': 1, '5': 9, '10': 'desc'},
{'1': 'avatar', '3': 4, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Avatar', '10': 'avatar'},
{'1': 'official_icon', '3': 5, '4': 1, '5': 5, '10': 'officialIcon'},
{'1': 'desc_button', '3': 6, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Button', '10': 'descButton'},
{'1': 'cooperation', '3': 7, '4': 1, '5': 9, '10': 'cooperation'},
],
};
/// Descriptor for `Up`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List upDescriptor = $convert.base64Decode(
'CgJVcBIOCgJpZBgBIAEoA1ICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRISCgRkZXNjGAMgASgJUg'
'RkZXNjEjQKBmF2YXRhchgEIAEoCzIcLmJpbGliaWxpLmFwcC5jYXJkLnYxLkF2YXRhclIGYXZh'
'dGFyEiMKDW9mZmljaWFsX2ljb24YBSABKAVSDG9mZmljaWFsSWNvbhI9CgtkZXNjX2J1dHRvbh'
'gGIAEoCzIcLmJpbGliaWxpLmFwcC5jYXJkLnYxLkJ1dHRvblIKZGVzY0J1dHRvbhIgCgtjb29w'
'ZXJhdGlvbhgHIAEoCVILY29vcGVyYXRpb24=');
@$core.Deprecated('Use upArgsDescriptor instead')
const UpArgs$json = {
'1': 'UpArgs',
'2': [
{'1': 'up_id', '3': 1, '4': 1, '5': 3, '10': 'upId'},
{'1': 'up_name', '3': 2, '4': 1, '5': 9, '10': 'upName'},
{'1': 'up_face', '3': 3, '4': 1, '5': 9, '10': 'upFace'},
{'1': 'selected', '3': 4, '4': 1, '5': 3, '10': 'selected'},
],
};
/// Descriptor for `UpArgs`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List upArgsDescriptor = $convert.base64Decode(
'CgZVcEFyZ3MSEwoFdXBfaWQYASABKANSBHVwSWQSFwoHdXBfbmFtZRgCIAEoCVIGdXBOYW1lEh'
'cKB3VwX2ZhY2UYAyABKAlSBnVwRmFjZRIaCghzZWxlY3RlZBgEIAEoA1IIc2VsZWN0ZWQ=');
@$core.Deprecated('Use watchLaterDescriptor instead')
const WatchLater$json = {
'1': 'WatchLater',
'2': [
{'1': 'aid', '3': 1, '4': 1, '5': 3, '10': 'aid'},
{'1': 'bvid', '3': 2, '4': 1, '5': 9, '10': 'bvid'},
],
};
/// Descriptor for `WatchLater`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List watchLaterDescriptor = $convert.base64Decode(
'CgpXYXRjaExhdGVyEhAKA2FpZBgBIAEoA1IDYWlkEhIKBGJ2aWQYAiABKAlSBGJ2aWQ=');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/single.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

View File

@@ -0,0 +1,451 @@
//
// Generated code. Do not modify.
// source: bilibili/app/card/v1/single.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use smallCoverV5Descriptor instead')
const SmallCoverV5$json = {
'1': 'SmallCoverV5',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'cover_gif', '3': 2, '4': 1, '5': 9, '10': 'coverGif'},
{'1': 'up', '3': 3, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Up', '10': 'up'},
{'1': 'cover_right_text_1', '3': 4, '4': 1, '5': 9, '10': 'coverRightText1'},
{'1': 'right_desc_1', '3': 5, '4': 1, '5': 9, '10': 'rightDesc1'},
{'1': 'right_desc_2', '3': 6, '4': 1, '5': 9, '10': 'rightDesc2'},
{'1': 'rcmd_reason_style', '3': 7, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'rcmdReasonStyle'},
{'1': 'hotword_entrance', '3': 8, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.HotwordEntrance', '10': 'hotwordEntrance'},
{'1': 'corner_mark_style', '3': 9, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'cornerMarkStyle'},
{'1': 'right_icon_1', '3': 10, '4': 1, '5': 5, '10': 'rightIcon1'},
{'1': 'right_icon_2', '3': 11, '4': 1, '5': 5, '10': 'rightIcon2'},
{'1': 'left_corner_mark_style', '3': 12, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'leftCornerMarkStyle'},
{'1': 'cover_right_text_content_description', '3': 13, '4': 1, '5': 9, '10': 'coverRightTextContentDescription'},
{'1': 'right_desc1_content_description', '3': 14, '4': 1, '5': 9, '10': 'rightDesc1ContentDescription'},
],
};
/// Descriptor for `SmallCoverV5`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List smallCoverV5Descriptor = $convert.base64Decode(
'CgxTbWFsbENvdmVyVjUSLgoEYmFzZRgBIAEoCzIaLmJpbGliaWxpLmFwcC5jYXJkLnYxLkJhc2'
'VSBGJhc2USGwoJY292ZXJfZ2lmGAIgASgJUghjb3ZlckdpZhIoCgJ1cBgDIAEoCzIYLmJpbGli'
'aWxpLmFwcC5jYXJkLnYxLlVwUgJ1cBIrChJjb3Zlcl9yaWdodF90ZXh0XzEYBCABKAlSD2Nvdm'
'VyUmlnaHRUZXh0MRIgCgxyaWdodF9kZXNjXzEYBSABKAlSCnJpZ2h0RGVzYzESIAoMcmlnaHRf'
'ZGVzY18yGAYgASgJUgpyaWdodERlc2MyEk0KEXJjbWRfcmVhc29uX3N0eWxlGAcgASgLMiEuYm'
'lsaWJpbGkuYXBwLmNhcmQudjEuUmVhc29uU3R5bGVSD3JjbWRSZWFzb25TdHlsZRJQChBob3R3'
'b3JkX2VudHJhbmNlGAggASgLMiUuYmlsaWJpbGkuYXBwLmNhcmQudjEuSG90d29yZEVudHJhbm'
'NlUg9ob3R3b3JkRW50cmFuY2USTQoRY29ybmVyX21hcmtfc3R5bGUYCSABKAsyIS5iaWxpYmls'
'aS5hcHAuY2FyZC52MS5SZWFzb25TdHlsZVIPY29ybmVyTWFya1N0eWxlEiAKDHJpZ2h0X2ljb2'
'5fMRgKIAEoBVIKcmlnaHRJY29uMRIgCgxyaWdodF9pY29uXzIYCyABKAVSCnJpZ2h0SWNvbjIS'
'VgoWbGVmdF9jb3JuZXJfbWFya19zdHlsZRgMIAEoCzIhLmJpbGliaWxpLmFwcC5jYXJkLnYxLl'
'JlYXNvblN0eWxlUhNsZWZ0Q29ybmVyTWFya1N0eWxlEk4KJGNvdmVyX3JpZ2h0X3RleHRfY29u'
'dGVudF9kZXNjcmlwdGlvbhgNIAEoCVIgY292ZXJSaWdodFRleHRDb250ZW50RGVzY3JpcHRpb2'
'4SRQofcmlnaHRfZGVzYzFfY29udGVudF9kZXNjcmlwdGlvbhgOIAEoCVIccmlnaHREZXNjMUNv'
'bnRlbnREZXNjcmlwdGlvbg==');
@$core.Deprecated('Use smallCoverV5AdDescriptor instead')
const SmallCoverV5Ad$json = {
'1': 'SmallCoverV5Ad',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'cover_gif', '3': 2, '4': 1, '5': 9, '10': 'coverGif'},
{'1': 'up', '3': 3, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Up', '10': 'up'},
{'1': 'cover_right_text1', '3': 4, '4': 1, '5': 9, '10': 'coverRightText1'},
{'1': 'right_desc1', '3': 5, '4': 1, '5': 9, '10': 'rightDesc1'},
{'1': 'right_desc2', '3': 6, '4': 1, '5': 9, '10': 'rightDesc2'},
{'1': 'rcmd_reason_style', '3': 7, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'rcmdReasonStyle'},
{'1': 'hotword_entrance', '3': 8, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.HotwordEntrance', '10': 'hotwordEntrance'},
{'1': 'corner_mark_style', '3': 9, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'cornerMarkStyle'},
{'1': 'right_icon1', '3': 10, '4': 1, '5': 5, '10': 'rightIcon1'},
{'1': 'right_icon2', '3': 11, '4': 1, '5': 5, '10': 'rightIcon2'},
{'1': 'left_corner_mark_style', '3': 12, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'leftCornerMarkStyle'},
{'1': 'cover_right_text_content_description', '3': 13, '4': 1, '5': 9, '10': 'coverRightTextContentDescription'},
{'1': 'right_desc1_content_description', '3': 14, '4': 1, '5': 9, '10': 'rightDesc1ContentDescription'},
],
};
/// Descriptor for `SmallCoverV5Ad`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List smallCoverV5AdDescriptor = $convert.base64Decode(
'Cg5TbWFsbENvdmVyVjVBZBIuCgRiYXNlGAEgASgLMhouYmlsaWJpbGkuYXBwLmNhcmQudjEuQm'
'FzZVIEYmFzZRIbCgljb3Zlcl9naWYYAiABKAlSCGNvdmVyR2lmEigKAnVwGAMgASgLMhguYmls'
'aWJpbGkuYXBwLmNhcmQudjEuVXBSAnVwEioKEWNvdmVyX3JpZ2h0X3RleHQxGAQgASgJUg9jb3'
'ZlclJpZ2h0VGV4dDESHwoLcmlnaHRfZGVzYzEYBSABKAlSCnJpZ2h0RGVzYzESHwoLcmlnaHRf'
'ZGVzYzIYBiABKAlSCnJpZ2h0RGVzYzISTQoRcmNtZF9yZWFzb25fc3R5bGUYByABKAsyIS5iaW'
'xpYmlsaS5hcHAuY2FyZC52MS5SZWFzb25TdHlsZVIPcmNtZFJlYXNvblN0eWxlElAKEGhvdHdv'
'cmRfZW50cmFuY2UYCCABKAsyJS5iaWxpYmlsaS5hcHAuY2FyZC52MS5Ib3R3b3JkRW50cmFuY2'
'VSD2hvdHdvcmRFbnRyYW5jZRJNChFjb3JuZXJfbWFya19zdHlsZRgJIAEoCzIhLmJpbGliaWxp'
'LmFwcC5jYXJkLnYxLlJlYXNvblN0eWxlUg9jb3JuZXJNYXJrU3R5bGUSHwoLcmlnaHRfaWNvbj'
'EYCiABKAVSCnJpZ2h0SWNvbjESHwoLcmlnaHRfaWNvbjIYCyABKAVSCnJpZ2h0SWNvbjISVgoW'
'bGVmdF9jb3JuZXJfbWFya19zdHlsZRgMIAEoCzIhLmJpbGliaWxpLmFwcC5jYXJkLnYxLlJlYX'
'NvblN0eWxlUhNsZWZ0Q29ybmVyTWFya1N0eWxlEk4KJGNvdmVyX3JpZ2h0X3RleHRfY29udGVu'
'dF9kZXNjcmlwdGlvbhgNIAEoCVIgY292ZXJSaWdodFRleHRDb250ZW50RGVzY3JpcHRpb24SRQ'
'ofcmlnaHRfZGVzYzFfY29udGVudF9kZXNjcmlwdGlvbhgOIAEoCVIccmlnaHREZXNjMUNvbnRl'
'bnREZXNjcmlwdGlvbg==');
@$core.Deprecated('Use hotwordEntranceDescriptor instead')
const HotwordEntrance$json = {
'1': 'HotwordEntrance',
'2': [
{'1': 'hotword_id', '3': 1, '4': 1, '5': 3, '10': 'hotwordId'},
{'1': 'hot_text', '3': 2, '4': 1, '5': 9, '10': 'hotText'},
{'1': 'h5_url', '3': 3, '4': 1, '5': 9, '10': 'h5Url'},
{'1': 'icon', '3': 4, '4': 1, '5': 9, '10': 'icon'},
],
};
/// Descriptor for `HotwordEntrance`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List hotwordEntranceDescriptor = $convert.base64Decode(
'Cg9Ib3R3b3JkRW50cmFuY2USHQoKaG90d29yZF9pZBgBIAEoA1IJaG90d29yZElkEhkKCGhvdF'
'90ZXh0GAIgASgJUgdob3RUZXh0EhUKBmg1X3VybBgDIAEoCVIFaDVVcmwSEgoEaWNvbhgEIAEo'
'CVIEaWNvbg==');
@$core.Deprecated('Use largeCoverV1Descriptor instead')
const LargeCoverV1$json = {
'1': 'LargeCoverV1',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'cover_gif', '3': 2, '4': 1, '5': 9, '10': 'coverGif'},
{'1': 'avatar', '3': 3, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Avatar', '10': 'avatar'},
{'1': 'cover_left_text_1', '3': 4, '4': 1, '5': 9, '10': 'coverLeftText1'},
{'1': 'cover_left_text_2', '3': 5, '4': 1, '5': 9, '10': 'coverLeftText2'},
{'1': 'cover_left_text_3', '3': 6, '4': 1, '5': 9, '10': 'coverLeftText3'},
{'1': 'cover_badge', '3': 7, '4': 1, '5': 9, '10': 'coverBadge'},
{'1': 'top_rcmd_reason', '3': 8, '4': 1, '5': 9, '10': 'topRcmdReason'},
{'1': 'bottom_rcmd_reason', '3': 9, '4': 1, '5': 9, '10': 'bottomRcmdReason'},
{'1': 'desc', '3': 10, '4': 1, '5': 9, '10': 'desc'},
{'1': 'official_icon', '3': 11, '4': 1, '5': 5, '10': 'officialIcon'},
{'1': 'can_play', '3': 12, '4': 1, '5': 5, '10': 'canPlay'},
{'1': 'top_rcmd_reason_style', '3': 13, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'topRcmdReasonStyle'},
{'1': 'bottom_rcmd_reason_style', '3': 14, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'bottomRcmdReasonStyle'},
{'1': 'rcmd_reason_style_v2', '3': 15, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'rcmdReasonStyleV2'},
{'1': 'left_cover_badge_style', '3': 16, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'leftCoverBadgeStyle'},
{'1': 'right_cover_badge_style', '3': 17, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'rightCoverBadgeStyle'},
{'1': 'cover_badge_2', '3': 18, '4': 1, '5': 9, '10': 'coverBadge2'},
{'1': 'like_button', '3': 19, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.LikeButton', '10': 'likeButton'},
{'1': 'title_single_line', '3': 20, '4': 1, '5': 5, '10': 'titleSingleLine'},
{'1': 'cover_right_text', '3': 21, '4': 1, '5': 9, '10': 'coverRightText'},
],
};
/// Descriptor for `LargeCoverV1`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List largeCoverV1Descriptor = $convert.base64Decode(
'CgxMYXJnZUNvdmVyVjESLgoEYmFzZRgBIAEoCzIaLmJpbGliaWxpLmFwcC5jYXJkLnYxLkJhc2'
'VSBGJhc2USGwoJY292ZXJfZ2lmGAIgASgJUghjb3ZlckdpZhI0CgZhdmF0YXIYAyABKAsyHC5i'
'aWxpYmlsaS5hcHAuY2FyZC52MS5BdmF0YXJSBmF2YXRhchIpChFjb3Zlcl9sZWZ0X3RleHRfMR'
'gEIAEoCVIOY292ZXJMZWZ0VGV4dDESKQoRY292ZXJfbGVmdF90ZXh0XzIYBSABKAlSDmNvdmVy'
'TGVmdFRleHQyEikKEWNvdmVyX2xlZnRfdGV4dF8zGAYgASgJUg5jb3ZlckxlZnRUZXh0MxIfCg'
'tjb3Zlcl9iYWRnZRgHIAEoCVIKY292ZXJCYWRnZRImCg90b3BfcmNtZF9yZWFzb24YCCABKAlS'
'DXRvcFJjbWRSZWFzb24SLAoSYm90dG9tX3JjbWRfcmVhc29uGAkgASgJUhBib3R0b21SY21kUm'
'Vhc29uEhIKBGRlc2MYCiABKAlSBGRlc2MSIwoNb2ZmaWNpYWxfaWNvbhgLIAEoBVIMb2ZmaWNp'
'YWxJY29uEhkKCGNhbl9wbGF5GAwgASgFUgdjYW5QbGF5ElQKFXRvcF9yY21kX3JlYXNvbl9zdH'
'lsZRgNIAEoCzIhLmJpbGliaWxpLmFwcC5jYXJkLnYxLlJlYXNvblN0eWxlUhJ0b3BSY21kUmVh'
'c29uU3R5bGUSWgoYYm90dG9tX3JjbWRfcmVhc29uX3N0eWxlGA4gASgLMiEuYmlsaWJpbGkuYX'
'BwLmNhcmQudjEuUmVhc29uU3R5bGVSFWJvdHRvbVJjbWRSZWFzb25TdHlsZRJSChRyY21kX3Jl'
'YXNvbl9zdHlsZV92MhgPIAEoCzIhLmJpbGliaWxpLmFwcC5jYXJkLnYxLlJlYXNvblN0eWxlUh'
'FyY21kUmVhc29uU3R5bGVWMhJWChZsZWZ0X2NvdmVyX2JhZGdlX3N0eWxlGBAgASgLMiEuYmls'
'aWJpbGkuYXBwLmNhcmQudjEuUmVhc29uU3R5bGVSE2xlZnRDb3ZlckJhZGdlU3R5bGUSWAoXcm'
'lnaHRfY292ZXJfYmFkZ2Vfc3R5bGUYESABKAsyIS5iaWxpYmlsaS5hcHAuY2FyZC52MS5SZWFz'
'b25TdHlsZVIUcmlnaHRDb3ZlckJhZGdlU3R5bGUSIgoNY292ZXJfYmFkZ2VfMhgSIAEoCVILY2'
'92ZXJCYWRnZTISQQoLbGlrZV9idXR0b24YEyABKAsyIC5iaWxpYmlsaS5hcHAuY2FyZC52MS5M'
'aWtlQnV0dG9uUgpsaWtlQnV0dG9uEioKEXRpdGxlX3NpbmdsZV9saW5lGBQgASgFUg90aXRsZV'
'NpbmdsZUxpbmUSKAoQY292ZXJfcmlnaHRfdGV4dBgVIAEoCVIOY292ZXJSaWdodFRleHQ=');
@$core.Deprecated('Use threeItemAllV2Descriptor instead')
const ThreeItemAllV2$json = {
'1': 'ThreeItemAllV2',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'top_rcmd_reason_style', '3': 2, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'topRcmdReasonStyle'},
{'1': 'item', '3': 3, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.TwoItemHV1Item', '10': 'item'},
],
};
/// Descriptor for `ThreeItemAllV2`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List threeItemAllV2Descriptor = $convert.base64Decode(
'Cg5UaHJlZUl0ZW1BbGxWMhIuCgRiYXNlGAEgASgLMhouYmlsaWJpbGkuYXBwLmNhcmQudjEuQm'
'FzZVIEYmFzZRJUChV0b3BfcmNtZF9yZWFzb25fc3R5bGUYAiABKAsyIS5iaWxpYmlsaS5hcHAu'
'Y2FyZC52MS5SZWFzb25TdHlsZVISdG9wUmNtZFJlYXNvblN0eWxlEjgKBGl0ZW0YAyADKAsyJC'
'5iaWxpYmlsaS5hcHAuY2FyZC52MS5Ud29JdGVtSFYxSXRlbVIEaXRlbQ==');
@$core.Deprecated('Use twoItemHV1ItemDescriptor instead')
const TwoItemHV1Item$json = {
'1': 'TwoItemHV1Item',
'2': [
{'1': 'title', '3': 1, '4': 1, '5': 9, '10': 'title'},
{'1': 'cover', '3': 2, '4': 1, '5': 9, '10': 'cover'},
{'1': 'uri', '3': 3, '4': 1, '5': 9, '10': 'uri'},
{'1': 'param', '3': 4, '4': 1, '5': 9, '10': 'param'},
{'1': 'args', '3': 5, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Args', '10': 'args'},
{'1': 'goto', '3': 6, '4': 1, '5': 9, '10': 'goto'},
{'1': 'cover_left_text_1', '3': 7, '4': 1, '5': 9, '10': 'coverLeftText1'},
{'1': 'cover_left_icon_1', '3': 8, '4': 1, '5': 5, '10': 'coverLeftIcon1'},
{'1': 'cover_right_text', '3': 9, '4': 1, '5': 9, '10': 'coverRightText'},
],
};
/// Descriptor for `TwoItemHV1Item`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List twoItemHV1ItemDescriptor = $convert.base64Decode(
'Cg5Ud29JdGVtSFYxSXRlbRIUCgV0aXRsZRgBIAEoCVIFdGl0bGUSFAoFY292ZXIYAiABKAlSBW'
'NvdmVyEhAKA3VyaRgDIAEoCVIDdXJpEhQKBXBhcmFtGAQgASgJUgVwYXJhbRIuCgRhcmdzGAUg'
'ASgLMhouYmlsaWJpbGkuYXBwLmNhcmQudjEuQXJnc1IEYXJncxISCgRnb3RvGAYgASgJUgRnb3'
'RvEikKEWNvdmVyX2xlZnRfdGV4dF8xGAcgASgJUg5jb3ZlckxlZnRUZXh0MRIpChFjb3Zlcl9s'
'ZWZ0X2ljb25fMRgIIAEoBVIOY292ZXJMZWZ0SWNvbjESKAoQY292ZXJfcmlnaHRfdGV4dBgJIA'
'EoCVIOY292ZXJSaWdodFRleHQ=');
@$core.Deprecated('Use rcmdOneItemDescriptor instead')
const RcmdOneItem$json = {
'1': 'RcmdOneItem',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'topRcmdReasonStyle', '3': 2, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'topRcmdReasonStyle'},
{'1': 'item', '3': 3, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.SmallCoverRcmdItem', '10': 'item'},
],
};
/// Descriptor for `RcmdOneItem`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List rcmdOneItemDescriptor = $convert.base64Decode(
'CgtSY21kT25lSXRlbRIuCgRiYXNlGAEgASgLMhouYmlsaWJpbGkuYXBwLmNhcmQudjEuQmFzZV'
'IEYmFzZRJRChJ0b3BSY21kUmVhc29uU3R5bGUYAiABKAsyIS5iaWxpYmlsaS5hcHAuY2FyZC52'
'MS5SZWFzb25TdHlsZVISdG9wUmNtZFJlYXNvblN0eWxlEjwKBGl0ZW0YAyABKAsyKC5iaWxpYm'
'lsaS5hcHAuY2FyZC52MS5TbWFsbENvdmVyUmNtZEl0ZW1SBGl0ZW0=');
@$core.Deprecated('Use smallCoverRcmdItemDescriptor instead')
const SmallCoverRcmdItem$json = {
'1': 'SmallCoverRcmdItem',
'2': [
{'1': 'title', '3': 1, '4': 1, '5': 9, '10': 'title'},
{'1': 'cover', '3': 2, '4': 1, '5': 9, '10': 'cover'},
{'1': 'uri', '3': 3, '4': 1, '5': 9, '10': 'uri'},
{'1': 'param', '3': 4, '4': 1, '5': 9, '10': 'param'},
{'1': 'goto', '3': 5, '4': 1, '5': 9, '10': 'goto'},
{'1': 'coverRightText1', '3': 6, '4': 1, '5': 9, '10': 'coverRightText1'},
{'1': 'rightDesc1', '3': 7, '4': 1, '5': 9, '10': 'rightDesc1'},
{'1': 'rightDesc2', '3': 8, '4': 1, '5': 9, '10': 'rightDesc2'},
{'1': 'coverGif', '3': 9, '4': 1, '5': 9, '10': 'coverGif'},
{'1': 'rightIcon1', '3': 10, '4': 1, '5': 5, '10': 'rightIcon1'},
{'1': 'rightIcon2', '3': 11, '4': 1, '5': 5, '10': 'rightIcon2'},
{'1': 'cover_right_text_content_description', '3': 12, '4': 1, '5': 9, '10': 'coverRightTextContentDescription'},
{'1': 'right_desc1_content_description', '3': 13, '4': 1, '5': 9, '10': 'rightDesc1ContentDescription'},
],
};
/// Descriptor for `SmallCoverRcmdItem`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List smallCoverRcmdItemDescriptor = $convert.base64Decode(
'ChJTbWFsbENvdmVyUmNtZEl0ZW0SFAoFdGl0bGUYASABKAlSBXRpdGxlEhQKBWNvdmVyGAIgAS'
'gJUgVjb3ZlchIQCgN1cmkYAyABKAlSA3VyaRIUCgVwYXJhbRgEIAEoCVIFcGFyYW0SEgoEZ290'
'bxgFIAEoCVIEZ290bxIoCg9jb3ZlclJpZ2h0VGV4dDEYBiABKAlSD2NvdmVyUmlnaHRUZXh0MR'
'IeCgpyaWdodERlc2MxGAcgASgJUgpyaWdodERlc2MxEh4KCnJpZ2h0RGVzYzIYCCABKAlSCnJp'
'Z2h0RGVzYzISGgoIY292ZXJHaWYYCSABKAlSCGNvdmVyR2lmEh4KCnJpZ2h0SWNvbjEYCiABKA'
'VSCnJpZ2h0SWNvbjESHgoKcmlnaHRJY29uMhgLIAEoBVIKcmlnaHRJY29uMhJOCiRjb3Zlcl9y'
'aWdodF90ZXh0X2NvbnRlbnRfZGVzY3JpcHRpb24YDCABKAlSIGNvdmVyUmlnaHRUZXh0Q29udG'
'VudERlc2NyaXB0aW9uEkUKH3JpZ2h0X2Rlc2MxX2NvbnRlbnRfZGVzY3JpcHRpb24YDSABKAlS'
'HHJpZ2h0RGVzYzFDb250ZW50RGVzY3JpcHRpb24=');
@$core.Deprecated('Use threeItemV1Descriptor instead')
const ThreeItemV1$json = {
'1': 'ThreeItemV1',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'titleIcon', '3': 2, '4': 1, '5': 5, '10': 'titleIcon'},
{'1': 'moreUri', '3': 3, '4': 1, '5': 9, '10': 'moreUri'},
{'1': 'moreText', '3': 4, '4': 1, '5': 9, '10': 'moreText'},
{'1': 'items', '3': 5, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.ThreeItemV1Item', '10': 'items'},
],
};
/// Descriptor for `ThreeItemV1`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List threeItemV1Descriptor = $convert.base64Decode(
'CgtUaHJlZUl0ZW1WMRIuCgRiYXNlGAEgASgLMhouYmlsaWJpbGkuYXBwLmNhcmQudjEuQmFzZV'
'IEYmFzZRIcCgl0aXRsZUljb24YAiABKAVSCXRpdGxlSWNvbhIYCgdtb3JlVXJpGAMgASgJUgdt'
'b3JlVXJpEhoKCG1vcmVUZXh0GAQgASgJUghtb3JlVGV4dBI7CgVpdGVtcxgFIAMoCzIlLmJpbG'
'liaWxpLmFwcC5jYXJkLnYxLlRocmVlSXRlbVYxSXRlbVIFaXRlbXM=');
@$core.Deprecated('Use threeItemV1ItemDescriptor instead')
const ThreeItemV1Item$json = {
'1': 'ThreeItemV1Item',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'coverLeftText', '3': 2, '4': 1, '5': 9, '10': 'coverLeftText'},
{'1': 'coverLeftIcon', '3': 3, '4': 1, '5': 5, '10': 'coverLeftIcon'},
{'1': 'desc1', '3': 4, '4': 1, '5': 9, '10': 'desc1'},
{'1': 'desc2', '3': 5, '4': 1, '5': 9, '10': 'desc2'},
{'1': 'badge', '3': 6, '4': 1, '5': 9, '10': 'badge'},
],
};
/// Descriptor for `ThreeItemV1Item`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List threeItemV1ItemDescriptor = $convert.base64Decode(
'Cg9UaHJlZUl0ZW1WMUl0ZW0SLgoEYmFzZRgBIAEoCzIaLmJpbGliaWxpLmFwcC5jYXJkLnYxLk'
'Jhc2VSBGJhc2USJAoNY292ZXJMZWZ0VGV4dBgCIAEoCVINY292ZXJMZWZ0VGV4dBIkCg1jb3Zl'
'ckxlZnRJY29uGAMgASgFUg1jb3ZlckxlZnRJY29uEhQKBWRlc2MxGAQgASgJUgVkZXNjMRIUCg'
'VkZXNjMhgFIAEoCVIFZGVzYzISFAoFYmFkZ2UYBiABKAlSBWJhZGdl');
@$core.Deprecated('Use hotTopicItemDescriptor instead')
const HotTopicItem$json = {
'1': 'HotTopicItem',
'2': [
{'1': 'cover', '3': 1, '4': 1, '5': 9, '10': 'cover'},
{'1': 'uri', '3': 2, '4': 1, '5': 9, '10': 'uri'},
{'1': 'param', '3': 3, '4': 1, '5': 9, '10': 'param'},
{'1': 'name', '3': 4, '4': 1, '5': 9, '10': 'name'},
],
};
/// Descriptor for `HotTopicItem`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List hotTopicItemDescriptor = $convert.base64Decode(
'CgxIb3RUb3BpY0l0ZW0SFAoFY292ZXIYASABKAlSBWNvdmVyEhAKA3VyaRgCIAEoCVIDdXJpEh'
'QKBXBhcmFtGAMgASgJUgVwYXJhbRISCgRuYW1lGAQgASgJUgRuYW1l');
@$core.Deprecated('Use hotTopicDescriptor instead')
const HotTopic$json = {
'1': 'HotTopic',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'desc', '3': 2, '4': 1, '5': 9, '10': 'desc'},
{'1': 'items', '3': 3, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.HotTopicItem', '10': 'items'},
],
};
/// Descriptor for `HotTopic`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List hotTopicDescriptor = $convert.base64Decode(
'CghIb3RUb3BpYxIuCgRiYXNlGAEgASgLMhouYmlsaWJpbGkuYXBwLmNhcmQudjEuQmFzZVIEYm'
'FzZRISCgRkZXNjGAIgASgJUgRkZXNjEjgKBWl0ZW1zGAMgAygLMiIuYmlsaWJpbGkuYXBwLmNh'
'cmQudjEuSG90VG9waWNJdGVtUgVpdGVtcw==');
@$core.Deprecated('Use dynamicHotDescriptor instead')
const DynamicHot$json = {
'1': 'DynamicHot',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'top_left_title', '3': 2, '4': 1, '5': 9, '10': 'topLeftTitle'},
{'1': 'desc1', '3': 3, '4': 1, '5': 9, '10': 'desc1'},
{'1': 'desc2', '3': 4, '4': 1, '5': 9, '10': 'desc2'},
{'1': 'more_uri', '3': 5, '4': 1, '5': 9, '10': 'moreUri'},
{'1': 'more_text', '3': 6, '4': 1, '5': 9, '10': 'moreText'},
{'1': 'covers', '3': 7, '4': 3, '5': 9, '10': 'covers'},
{'1': 'cover_right_text', '3': 8, '4': 1, '5': 9, '10': 'coverRightText'},
{'1': 'top_rcmd_reason_style', '3': 9, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'topRcmdReasonStyle'},
],
};
/// Descriptor for `DynamicHot`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List dynamicHotDescriptor = $convert.base64Decode(
'CgpEeW5hbWljSG90Ei4KBGJhc2UYASABKAsyGi5iaWxpYmlsaS5hcHAuY2FyZC52MS5CYXNlUg'
'RiYXNlEiQKDnRvcF9sZWZ0X3RpdGxlGAIgASgJUgx0b3BMZWZ0VGl0bGUSFAoFZGVzYzEYAyAB'
'KAlSBWRlc2MxEhQKBWRlc2MyGAQgASgJUgVkZXNjMhIZCghtb3JlX3VyaRgFIAEoCVIHbW9yZV'
'VyaRIbCgltb3JlX3RleHQYBiABKAlSCG1vcmVUZXh0EhYKBmNvdmVycxgHIAMoCVIGY292ZXJz'
'EigKEGNvdmVyX3JpZ2h0X3RleHQYCCABKAlSDmNvdmVyUmlnaHRUZXh0ElQKFXRvcF9yY21kX3'
'JlYXNvbl9zdHlsZRgJIAEoCzIhLmJpbGliaWxpLmFwcC5jYXJkLnYxLlJlYXNvblN0eWxlUhJ0'
'b3BSY21kUmVhc29uU3R5bGU=');
@$core.Deprecated('Use middleCoverV3Descriptor instead')
const MiddleCoverV3$json = {
'1': 'MiddleCoverV3',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'desc1', '3': 2, '4': 1, '5': 9, '10': 'desc1'},
{'1': 'desc2', '3': 3, '4': 1, '5': 9, '10': 'desc2'},
{'1': 'cover_badge_style', '3': 4, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.ReasonStyle', '10': 'coverBadgeStyle'},
],
};
/// Descriptor for `MiddleCoverV3`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List middleCoverV3Descriptor = $convert.base64Decode(
'Cg1NaWRkbGVDb3ZlclYzEi4KBGJhc2UYASABKAsyGi5iaWxpYmlsaS5hcHAuY2FyZC52MS5CYX'
'NlUgRiYXNlEhQKBWRlc2MxGAIgASgJUgVkZXNjMRIUCgVkZXNjMhgDIAEoCVIFZGVzYzISTQoR'
'Y292ZXJfYmFkZ2Vfc3R5bGUYBCABKAsyIS5iaWxpYmlsaS5hcHAuY2FyZC52MS5SZWFzb25TdH'
'lsZVIPY292ZXJCYWRnZVN0eWxl');
@$core.Deprecated('Use largeCoverV4Descriptor instead')
const LargeCoverV4$json = {
'1': 'LargeCoverV4',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'cover_left_text_1', '3': 2, '4': 1, '5': 9, '10': 'coverLeftText1'},
{'1': 'cover_left_text_2', '3': 3, '4': 1, '5': 9, '10': 'coverLeftText2'},
{'1': 'cover_left_text_3', '3': 4, '4': 1, '5': 9, '10': 'coverLeftText3'},
{'1': 'cover_badge', '3': 5, '4': 1, '5': 9, '10': 'coverBadge'},
{'1': 'can_play', '3': 6, '4': 1, '5': 5, '10': 'canPlay'},
{'1': 'up', '3': 7, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Up', '10': 'up'},
{'1': 'short_link', '3': 8, '4': 1, '5': 9, '10': 'shortLink'},
{'1': 'share_subtitle', '3': 9, '4': 1, '5': 9, '10': 'shareSubtitle'},
{'1': 'play_number', '3': 10, '4': 1, '5': 9, '10': 'playNumber'},
{'1': 'bvid', '3': 11, '4': 1, '5': 9, '10': 'bvid'},
{'1': 'sub_param', '3': 12, '4': 1, '5': 9, '10': 'subParam'},
],
};
/// Descriptor for `LargeCoverV4`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List largeCoverV4Descriptor = $convert.base64Decode(
'CgxMYXJnZUNvdmVyVjQSLgoEYmFzZRgBIAEoCzIaLmJpbGliaWxpLmFwcC5jYXJkLnYxLkJhc2'
'VSBGJhc2USKQoRY292ZXJfbGVmdF90ZXh0XzEYAiABKAlSDmNvdmVyTGVmdFRleHQxEikKEWNv'
'dmVyX2xlZnRfdGV4dF8yGAMgASgJUg5jb3ZlckxlZnRUZXh0MhIpChFjb3Zlcl9sZWZ0X3RleH'
'RfMxgEIAEoCVIOY292ZXJMZWZ0VGV4dDMSHwoLY292ZXJfYmFkZ2UYBSABKAlSCmNvdmVyQmFk'
'Z2USGQoIY2FuX3BsYXkYBiABKAVSB2NhblBsYXkSKAoCdXAYByABKAsyGC5iaWxpYmlsaS5hcH'
'AuY2FyZC52MS5VcFICdXASHQoKc2hvcnRfbGluaxgIIAEoCVIJc2hvcnRMaW5rEiUKDnNoYXJl'
'X3N1YnRpdGxlGAkgASgJUg1zaGFyZVN1YnRpdGxlEh8KC3BsYXlfbnVtYmVyGAogASgJUgpwbG'
'F5TnVtYmVyEhIKBGJ2aWQYCyABKAlSBGJ2aWQSGwoJc3ViX3BhcmFtGAwgASgJUghzdWJQYXJh'
'bQ==');
@$core.Deprecated('Use popularTopEntranceDescriptor instead')
const PopularTopEntrance$json = {
'1': 'PopularTopEntrance',
'2': [
{'1': 'base', '3': 1, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Base', '10': 'base'},
{'1': 'items', '3': 2, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.EntranceItem', '10': 'items'},
],
};
/// Descriptor for `PopularTopEntrance`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List popularTopEntranceDescriptor = $convert.base64Decode(
'ChJQb3B1bGFyVG9wRW50cmFuY2USLgoEYmFzZRgBIAEoCzIaLmJpbGliaWxpLmFwcC5jYXJkLn'
'YxLkJhc2VSBGJhc2USOAoFaXRlbXMYAiADKAsyIi5iaWxpYmlsaS5hcHAuY2FyZC52MS5FbnRy'
'YW5jZUl0ZW1SBWl0ZW1z');
@$core.Deprecated('Use entranceItemDescriptor instead')
const EntranceItem$json = {
'1': 'EntranceItem',
'2': [
{'1': 'goto', '3': 1, '4': 1, '5': 9, '10': 'goto'},
{'1': 'icon', '3': 2, '4': 1, '5': 9, '10': 'icon'},
{'1': 'title', '3': 3, '4': 1, '5': 9, '10': 'title'},
{'1': 'module_id', '3': 4, '4': 1, '5': 9, '10': 'moduleId'},
{'1': 'uri', '3': 5, '4': 1, '5': 9, '10': 'uri'},
{'1': 'entrance_id', '3': 6, '4': 1, '5': 3, '10': 'entranceId'},
{'1': 'bubble', '3': 7, '4': 1, '5': 11, '6': '.bilibili.app.card.v1.Bubble', '10': 'bubble'},
{'1': 'entrance_type', '3': 8, '4': 1, '5': 5, '10': 'entranceType'},
],
};
/// Descriptor for `EntranceItem`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List entranceItemDescriptor = $convert.base64Decode(
'CgxFbnRyYW5jZUl0ZW0SEgoEZ290bxgBIAEoCVIEZ290bxISCgRpY29uGAIgASgJUgRpY29uEh'
'QKBXRpdGxlGAMgASgJUgV0aXRsZRIbCgltb2R1bGVfaWQYBCABKAlSCG1vZHVsZUlkEhAKA3Vy'
'aRgFIAEoCVIDdXJpEh8KC2VudHJhbmNlX2lkGAYgASgDUgplbnRyYW5jZUlkEjQKBmJ1YmJsZR'
'gHIAEoCzIcLmJpbGliaWxpLmFwcC5jYXJkLnYxLkJ1YmJsZVIGYnViYmxlEiMKDWVudHJhbmNl'
'X3R5cGUYCCABKAVSDGVudHJhbmNlVHlwZQ==');
@$core.Deprecated('Use bubbleDescriptor instead')
const Bubble$json = {
'1': 'Bubble',
'2': [
{'1': 'bubble_content', '3': 1, '4': 1, '5': 9, '10': 'bubbleContent'},
{'1': 'version', '3': 2, '4': 1, '5': 5, '10': 'version'},
{'1': 'stime', '3': 3, '4': 1, '5': 3, '10': 'stime'},
],
};
/// Descriptor for `Bubble`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List bubbleDescriptor = $convert.base64Decode(
'CgZCdWJibGUSJQoOYnViYmxlX2NvbnRlbnQYASABKAlSDWJ1YmJsZUNvbnRlbnQSGAoHdmVyc2'
'lvbhgCIAEoBVIHdmVyc2lvbhIUCgVzdGltZRgDIAEoA1IFc3RpbWU=');

View File

@@ -1,124 +0,0 @@
import 'dart:convert';
import 'package:PiliPalaX/grpc/device/device.pb.dart';
import 'package:PiliPalaX/grpc/fawkes/fawkes.pb.dart';
import 'package:PiliPalaX/grpc/locale/locale.pb.dart';
import 'package:PiliPalaX/grpc/metadata/metadata.pb.dart';
import 'package:PiliPalaX/grpc/network/network.pb.dart';
import 'package:PiliPalaX/grpc/app/playeronline/v1/playeronline.pbgrpc.dart';
import 'package:PiliPalaX/grpc/restriction/restriction.pb.dart';
import 'package:PiliPalaX/utils/storage.dart';
import 'package:PiliPalaX/utils/utils.dart';
import 'package:fixnum/src/int64.dart';
import 'package:grpc/grpc.dart';
class OnlineClient {
ClientChannel? _channel;
PlayerOnlineClient? _stub;
OnlineClient() {
_channel = ClientChannel(
'grpc.biliapi.net',
port: 443,
options: ChannelOptions(
credentials: ChannelCredentials.secure(),
),
);
_stub = PlayerOnlineClient(_channel!);
}
Future<void> playerOnline({
int aid = 0,
int cid = 0,
}) async {
try {
int mid = GStorage.userInfo.get('userInfoCache').mid;
String accessKey = GStorage.localCache
.get(LocalCacheKey.accessKey, defaultValue: {})['value'];
String traceId = Utils.genTraceId();
String eId = Utils.genAuroraEid(mid);
final metadata = {
'user-agent':
'Dalvik/2.1.0 (Linux; U; Android 12; android Build/android) 7380300 os/android model/android mobi_app/android build/7380300 channel/master innerVer/7380300 osVer/12 network/2 grpc-java-cronet/1.36.1',
'x-bili-gaia-vtoken': '',
'x-bili-aurora-eid': eId,
'x-bili-mid': mid.toString(),
'x-bili-aurora-zone': '',
'x-bili-trace-id': traceId,
'authorization': 'identify_v1 $accessKey',
'buvid': 'XX82B818F96FB2F312B3A1BA44DB41892FF99',
'bili-http-engine': 'cronet',
'te': 'trailers',
'x-bili-fawkes-req-bin': base64Encode((FawkesReq()
..appkey = 'android64'
..env = 'prod'
..sessionId = '5974f68d')
.writeToBuffer()),
'x-bili-metadata-bin': base64Encode((Metadata()
..accessKey = accessKey
..mobiApp = 'android'
..device = 'phone'
..build = 7380300
..channel = 'bili'
..buvid = 'XX82B818F96FB2F312B3A1BA44DB41892FF99'
..platform = 'android')
.writeToBuffer()),
'x-bili-device-bin': base64Encode((Device()
..appId = 1
..build = 7380300
..buvid = 'XX82B818F96FB2F312B3A1BA44DB41892FF99'
..mobiApp = 'android'
..platform = 'android'
..device = 'phone'
..channel = 'bili'
..brand = ''
..model = ''
..osver = ''
..fpLocal = ''
..fpRemote = ''
..versionName = ''
..fp = ''
..fts = Int64(123456789))
.writeToBuffer()),
'x-bili-network-bin': base64Encode((Network()
..type = NetworkType.WIFI
..tf = TFType.TF_UNKNOWN
..oid = 'CMCC')
.writeToBuffer()),
'x-bili-restriction-bin': base64Encode((Restriction()
..teenagersMode = false
..lessonsMode = false
..mode = ModeType.NORMAL
..review = false
..disableRcmd = false
..basicMode = false)
.writeToBuffer()),
'x-bili-locale-bin': base64Encode((Locale()
..cLocale = LocaleIds(language: 'CN')
..sLocale = LocaleIds(language: 'CN')
..simCode = ''
..timezone = 'Asia/Shanghai')
.writeToBuffer()),
'x-bili-exps-bin': '',
};
final options = CallOptions(
metadata: metadata,
);
final request = PlayerOnlineReq()
..aid = Int64(aid)
..cid = Int64(cid)
..playOpen = true;
final response = await _stub!.playerOnline(request, options: options);
print('Server response: ${response.totalText}');
} catch (e) {
print('Caught error: $e');
}
}
Future<void> shutdown() async {
await _channel?.shutdown();
}
}

View File

@@ -0,0 +1,751 @@
//
// Generated code. Do not modify.
// source: bilibili/app/show/popular/v1/popular.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
import '../../../archive/middleware/v1/preload.pb.dart' as $2;
import '../../../card/v1/card.pb.dart' as $1;
/// 气泡信息
class Bubble extends $pb.GeneratedMessage {
factory Bubble({
$core.String? bubbleContent,
$core.int? version,
$fixnum.Int64? stime,
}) {
final $result = create();
if (bubbleContent != null) {
$result.bubbleContent = bubbleContent;
}
if (version != null) {
$result.version = version;
}
if (stime != null) {
$result.stime = stime;
}
return $result;
}
Bubble._() : super();
factory Bubble.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Bubble.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Bubble', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.show.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'bubbleContent')
..a<$core.int>(2, _omitFieldNames ? '' : 'version', $pb.PbFieldType.O3)
..aInt64(3, _omitFieldNames ? '' : 'stime')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Bubble clone() => Bubble()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Bubble copyWith(void Function(Bubble) updates) => super.copyWith((message) => updates(message as Bubble)) as Bubble;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Bubble create() => Bubble._();
Bubble createEmptyInstance() => create();
static $pb.PbList<Bubble> createRepeated() => $pb.PbList<Bubble>();
@$core.pragma('dart2js:noInline')
static Bubble getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Bubble>(create);
static Bubble? _defaultInstance;
/// 文案
@$pb.TagNumber(1)
$core.String get bubbleContent => $_getSZ(0);
@$pb.TagNumber(1)
set bubbleContent($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasBubbleContent() => $_has(0);
@$pb.TagNumber(1)
void clearBubbleContent() => clearField(1);
/// 版本
@$pb.TagNumber(2)
$core.int get version => $_getIZ(1);
@$pb.TagNumber(2)
set version($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasVersion() => $_has(1);
@$pb.TagNumber(2)
void clearVersion() => clearField(2);
/// 起始时间
@$pb.TagNumber(3)
$fixnum.Int64 get stime => $_getI64(2);
@$pb.TagNumber(3)
set stime($fixnum.Int64 v) { $_setInt64(2, v); }
@$pb.TagNumber(3)
$core.bool hasStime() => $_has(2);
@$pb.TagNumber(3)
void clearStime() => clearField(3);
}
/// 配置信息
class Config extends $pb.GeneratedMessage {
factory Config({
$core.String? itemTitle,
$core.String? bottomText,
$core.String? bottomTextCover,
$core.String? bottomTextUrl,
$core.Iterable<EntranceShow>? topItems,
$core.String? headImage,
$core.Iterable<EntranceShow>? pageItems,
$core.int? hit,
}) {
final $result = create();
if (itemTitle != null) {
$result.itemTitle = itemTitle;
}
if (bottomText != null) {
$result.bottomText = bottomText;
}
if (bottomTextCover != null) {
$result.bottomTextCover = bottomTextCover;
}
if (bottomTextUrl != null) {
$result.bottomTextUrl = bottomTextUrl;
}
if (topItems != null) {
$result.topItems.addAll(topItems);
}
if (headImage != null) {
$result.headImage = headImage;
}
if (pageItems != null) {
$result.pageItems.addAll(pageItems);
}
if (hit != null) {
$result.hit = hit;
}
return $result;
}
Config._() : super();
factory Config.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Config.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Config', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.show.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'itemTitle')
..aOS(2, _omitFieldNames ? '' : 'bottomText')
..aOS(3, _omitFieldNames ? '' : 'bottomTextCover')
..aOS(4, _omitFieldNames ? '' : 'bottomTextUrl')
..pc<EntranceShow>(5, _omitFieldNames ? '' : 'topItems', $pb.PbFieldType.PM, subBuilder: EntranceShow.create)
..aOS(6, _omitFieldNames ? '' : 'headImage')
..pc<EntranceShow>(7, _omitFieldNames ? '' : 'pageItems', $pb.PbFieldType.PM, subBuilder: EntranceShow.create)
..a<$core.int>(8, _omitFieldNames ? '' : 'hit', $pb.PbFieldType.O3)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Config clone() => Config()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Config copyWith(void Function(Config) updates) => super.copyWith((message) => updates(message as Config)) as Config;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Config create() => Config._();
Config createEmptyInstance() => create();
static $pb.PbList<Config> createRepeated() => $pb.PbList<Config>();
@$core.pragma('dart2js:noInline')
static Config getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Config>(create);
static Config? _defaultInstance;
/// 标题
@$pb.TagNumber(1)
$core.String get itemTitle => $_getSZ(0);
@$pb.TagNumber(1)
set itemTitle($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasItemTitle() => $_has(0);
@$pb.TagNumber(1)
void clearItemTitle() => clearField(1);
/// 底部文案
@$pb.TagNumber(2)
$core.String get bottomText => $_getSZ(1);
@$pb.TagNumber(2)
set bottomText($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasBottomText() => $_has(1);
@$pb.TagNumber(2)
void clearBottomText() => clearField(2);
/// 底部图片url
@$pb.TagNumber(3)
$core.String get bottomTextCover => $_getSZ(2);
@$pb.TagNumber(3)
set bottomTextCover($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasBottomTextCover() => $_has(2);
@$pb.TagNumber(3)
void clearBottomTextCover() => clearField(3);
/// 底部跳转页url
@$pb.TagNumber(4)
$core.String get bottomTextUrl => $_getSZ(3);
@$pb.TagNumber(4)
set bottomTextUrl($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasBottomTextUrl() => $_has(3);
@$pb.TagNumber(4)
void clearBottomTextUrl() => clearField(4);
/// 顶部按钮信息列表
@$pb.TagNumber(5)
$core.List<EntranceShow> get topItems => $_getList(4);
/// 头图url
@$pb.TagNumber(6)
$core.String get headImage => $_getSZ(5);
@$pb.TagNumber(6)
set headImage($core.String v) { $_setString(5, v); }
@$pb.TagNumber(6)
$core.bool hasHeadImage() => $_has(5);
@$pb.TagNumber(6)
void clearHeadImage() => clearField(6);
/// 当前页按钮信息
@$pb.TagNumber(7)
$core.List<EntranceShow> get pageItems => $_getList(6);
@$pb.TagNumber(8)
$core.int get hit => $_getIZ(7);
@$pb.TagNumber(8)
set hit($core.int v) { $_setSignedInt32(7, v); }
@$pb.TagNumber(8)
$core.bool hasHit() => $_has(7);
@$pb.TagNumber(8)
void clearHit() => clearField(8);
}
/// 按钮信息
class EntranceShow extends $pb.GeneratedMessage {
factory EntranceShow({
$core.String? icon,
$core.String? title,
$core.String? moduleId,
$core.String? uri,
Bubble? bubble,
$fixnum.Int64? entranceId,
$core.String? topPhoto,
$core.int? entranceType,
}) {
final $result = create();
if (icon != null) {
$result.icon = icon;
}
if (title != null) {
$result.title = title;
}
if (moduleId != null) {
$result.moduleId = moduleId;
}
if (uri != null) {
$result.uri = uri;
}
if (bubble != null) {
$result.bubble = bubble;
}
if (entranceId != null) {
$result.entranceId = entranceId;
}
if (topPhoto != null) {
$result.topPhoto = topPhoto;
}
if (entranceType != null) {
$result.entranceType = entranceType;
}
return $result;
}
EntranceShow._() : super();
factory EntranceShow.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory EntranceShow.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EntranceShow', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.show.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'icon')
..aOS(2, _omitFieldNames ? '' : 'title')
..aOS(3, _omitFieldNames ? '' : 'moduleId')
..aOS(4, _omitFieldNames ? '' : 'uri')
..aOM<Bubble>(5, _omitFieldNames ? '' : 'bubble', subBuilder: Bubble.create)
..aInt64(6, _omitFieldNames ? '' : 'entranceId')
..aOS(7, _omitFieldNames ? '' : 'topPhoto')
..a<$core.int>(8, _omitFieldNames ? '' : 'entranceType', $pb.PbFieldType.O3)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
EntranceShow clone() => EntranceShow()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
EntranceShow copyWith(void Function(EntranceShow) updates) => super.copyWith((message) => updates(message as EntranceShow)) as EntranceShow;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static EntranceShow create() => EntranceShow._();
EntranceShow createEmptyInstance() => create();
static $pb.PbList<EntranceShow> createRepeated() => $pb.PbList<EntranceShow>();
@$core.pragma('dart2js:noInline')
static EntranceShow getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<EntranceShow>(create);
static EntranceShow? _defaultInstance;
/// 按钮图标url
@$pb.TagNumber(1)
$core.String get icon => $_getSZ(0);
@$pb.TagNumber(1)
set icon($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasIcon() => $_has(0);
@$pb.TagNumber(1)
void clearIcon() => clearField(1);
/// 按钮名
@$pb.TagNumber(2)
$core.String get title => $_getSZ(1);
@$pb.TagNumber(2)
set title($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasTitle() => $_has(1);
@$pb.TagNumber(2)
void clearTitle() => clearField(2);
/// 入口模块id
@$pb.TagNumber(3)
$core.String get moduleId => $_getSZ(2);
@$pb.TagNumber(3)
set moduleId($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasModuleId() => $_has(2);
@$pb.TagNumber(3)
void clearModuleId() => clearField(3);
/// 跳转uri
@$pb.TagNumber(4)
$core.String get uri => $_getSZ(3);
@$pb.TagNumber(4)
set uri($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasUri() => $_has(3);
@$pb.TagNumber(4)
void clearUri() => clearField(4);
/// 气泡信息
@$pb.TagNumber(5)
Bubble get bubble => $_getN(4);
@$pb.TagNumber(5)
set bubble(Bubble v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasBubble() => $_has(4);
@$pb.TagNumber(5)
void clearBubble() => clearField(5);
@$pb.TagNumber(5)
Bubble ensureBubble() => $_ensure(4);
/// 入口id
@$pb.TagNumber(6)
$fixnum.Int64 get entranceId => $_getI64(5);
@$pb.TagNumber(6)
set entranceId($fixnum.Int64 v) { $_setInt64(5, v); }
@$pb.TagNumber(6)
$core.bool hasEntranceId() => $_has(5);
@$pb.TagNumber(6)
void clearEntranceId() => clearField(6);
/// 头图url
@$pb.TagNumber(7)
$core.String get topPhoto => $_getSZ(6);
@$pb.TagNumber(7)
set topPhoto($core.String v) { $_setString(6, v); }
@$pb.TagNumber(7)
$core.bool hasTopPhoto() => $_has(6);
@$pb.TagNumber(7)
void clearTopPhoto() => clearField(7);
/// 入口类型
@$pb.TagNumber(8)
$core.int get entranceType => $_getIZ(7);
@$pb.TagNumber(8)
set entranceType($core.int v) { $_setSignedInt32(7, v); }
@$pb.TagNumber(8)
$core.bool hasEntranceType() => $_has(7);
@$pb.TagNumber(8)
void clearEntranceType() => clearField(8);
}
/// 热门列表-响应
class PopularReply extends $pb.GeneratedMessage {
factory PopularReply({
$core.Iterable<$1.Card>? items,
Config? config,
$core.String? ver,
}) {
final $result = create();
if (items != null) {
$result.items.addAll(items);
}
if (config != null) {
$result.config = config;
}
if (ver != null) {
$result.ver = ver;
}
return $result;
}
PopularReply._() : super();
factory PopularReply.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory PopularReply.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PopularReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.show.v1'), createEmptyInstance: create)
..pc<$1.Card>(1, _omitFieldNames ? '' : 'items', $pb.PbFieldType.PM, subBuilder: $1.Card.create)
..aOM<Config>(2, _omitFieldNames ? '' : 'config', subBuilder: Config.create)
..aOS(3, _omitFieldNames ? '' : 'ver')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
PopularReply clone() => PopularReply()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
PopularReply copyWith(void Function(PopularReply) updates) => super.copyWith((message) => updates(message as PopularReply)) as PopularReply;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static PopularReply create() => PopularReply._();
PopularReply createEmptyInstance() => create();
static $pb.PbList<PopularReply> createRepeated() => $pb.PbList<PopularReply>();
@$core.pragma('dart2js:noInline')
static PopularReply getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PopularReply>(create);
static PopularReply? _defaultInstance;
/// 卡片列表
@$pb.TagNumber(1)
$core.List<$1.Card> get items => $_getList(0);
/// 配置信息
@$pb.TagNumber(2)
Config get config => $_getN(1);
@$pb.TagNumber(2)
set config(Config v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasConfig() => $_has(1);
@$pb.TagNumber(2)
void clearConfig() => clearField(2);
@$pb.TagNumber(2)
Config ensureConfig() => $_ensure(1);
/// 版本
@$pb.TagNumber(3)
$core.String get ver => $_getSZ(2);
@$pb.TagNumber(3)
set ver($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasVer() => $_has(2);
@$pb.TagNumber(3)
void clearVer() => clearField(3);
}
/// 热门列表-请求
class PopularResultReq extends $pb.GeneratedMessage {
factory PopularResultReq({
$fixnum.Int64? idx,
$core.int? loginEvent,
$core.int? qn,
$core.int? fnver,
$core.int? fnval,
$core.int? forceHost,
$core.int? fourk,
$core.String? spmid,
$core.String? lastParam,
$core.String? ver,
$fixnum.Int64? entranceId,
$core.String? locationIds,
$core.int? sourceId,
$core.int? flush,
$2.PlayerArgs? playerArgs,
}) {
final $result = create();
if (idx != null) {
$result.idx = idx;
}
if (loginEvent != null) {
$result.loginEvent = loginEvent;
}
if (qn != null) {
$result.qn = qn;
}
if (fnver != null) {
$result.fnver = fnver;
}
if (fnval != null) {
$result.fnval = fnval;
}
if (forceHost != null) {
$result.forceHost = forceHost;
}
if (fourk != null) {
$result.fourk = fourk;
}
if (spmid != null) {
$result.spmid = spmid;
}
if (lastParam != null) {
$result.lastParam = lastParam;
}
if (ver != null) {
$result.ver = ver;
}
if (entranceId != null) {
$result.entranceId = entranceId;
}
if (locationIds != null) {
$result.locationIds = locationIds;
}
if (sourceId != null) {
$result.sourceId = sourceId;
}
if (flush != null) {
$result.flush = flush;
}
if (playerArgs != null) {
$result.playerArgs = playerArgs;
}
return $result;
}
PopularResultReq._() : super();
factory PopularResultReq.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory PopularResultReq.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PopularResultReq', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.app.show.v1'), createEmptyInstance: create)
..aInt64(1, _omitFieldNames ? '' : 'idx')
..a<$core.int>(2, _omitFieldNames ? '' : 'loginEvent', $pb.PbFieldType.O3)
..a<$core.int>(3, _omitFieldNames ? '' : 'qn', $pb.PbFieldType.O3)
..a<$core.int>(4, _omitFieldNames ? '' : 'fnver', $pb.PbFieldType.O3)
..a<$core.int>(5, _omitFieldNames ? '' : 'fnval', $pb.PbFieldType.O3)
..a<$core.int>(6, _omitFieldNames ? '' : 'forceHost', $pb.PbFieldType.O3)
..a<$core.int>(7, _omitFieldNames ? '' : 'fourk', $pb.PbFieldType.O3)
..aOS(8, _omitFieldNames ? '' : 'spmid')
..aOS(9, _omitFieldNames ? '' : 'lastParam')
..aOS(10, _omitFieldNames ? '' : 'ver')
..aInt64(11, _omitFieldNames ? '' : 'entranceId')
..aOS(12, _omitFieldNames ? '' : 'locationIds')
..a<$core.int>(13, _omitFieldNames ? '' : 'sourceId', $pb.PbFieldType.O3)
..a<$core.int>(14, _omitFieldNames ? '' : 'flush', $pb.PbFieldType.O3)
..aOM<$2.PlayerArgs>(15, _omitFieldNames ? '' : 'playerArgs', subBuilder: $2.PlayerArgs.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
PopularResultReq clone() => PopularResultReq()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
PopularResultReq copyWith(void Function(PopularResultReq) updates) => super.copyWith((message) => updates(message as PopularResultReq)) as PopularResultReq;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static PopularResultReq create() => PopularResultReq._();
PopularResultReq createEmptyInstance() => create();
static $pb.PbList<PopularResultReq> createRepeated() => $pb.PbList<PopularResultReq>();
@$core.pragma('dart2js:noInline')
static PopularResultReq getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PopularResultReq>(create);
static PopularResultReq? _defaultInstance;
/// 排位索引id为上此请求末尾项的idx
@$pb.TagNumber(1)
$fixnum.Int64 get idx => $_getI64(0);
@$pb.TagNumber(1)
set idx($fixnum.Int64 v) { $_setInt64(0, v); }
@$pb.TagNumber(1)
$core.bool hasIdx() => $_has(0);
@$pb.TagNumber(1)
void clearIdx() => clearField(1);
/// 登录标识
/// 1:未登陆用户第一页 2:登陆用户第一页
@$pb.TagNumber(2)
$core.int get loginEvent => $_getIZ(1);
@$pb.TagNumber(2)
set loginEvent($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasLoginEvent() => $_has(1);
@$pb.TagNumber(2)
void clearLoginEvent() => clearField(2);
/// 清晰度(旧版)
@$pb.TagNumber(3)
$core.int get qn => $_getIZ(2);
@$pb.TagNumber(3)
set qn($core.int v) { $_setSignedInt32(2, v); }
@$pb.TagNumber(3)
$core.bool hasQn() => $_has(2);
@$pb.TagNumber(3)
void clearQn() => clearField(3);
/// 视频流版本(旧版)
@$pb.TagNumber(4)
$core.int get fnver => $_getIZ(3);
@$pb.TagNumber(4)
set fnver($core.int v) { $_setSignedInt32(3, v); }
@$pb.TagNumber(4)
$core.bool hasFnver() => $_has(3);
@$pb.TagNumber(4)
void clearFnver() => clearField(4);
/// 视频流功能(旧版)
@$pb.TagNumber(5)
$core.int get fnval => $_getIZ(4);
@$pb.TagNumber(5)
set fnval($core.int v) { $_setSignedInt32(4, v); }
@$pb.TagNumber(5)
$core.bool hasFnval() => $_has(4);
@$pb.TagNumber(5)
void clearFnval() => clearField(5);
/// 是否强制使用域名(旧版)
@$pb.TagNumber(6)
$core.int get forceHost => $_getIZ(5);
@$pb.TagNumber(6)
set forceHost($core.int v) { $_setSignedInt32(5, v); }
@$pb.TagNumber(6)
$core.bool hasForceHost() => $_has(5);
@$pb.TagNumber(6)
void clearForceHost() => clearField(6);
/// 是否4K(旧版)
@$pb.TagNumber(7)
$core.int get fourk => $_getIZ(6);
@$pb.TagNumber(7)
set fourk($core.int v) { $_setSignedInt32(6, v); }
@$pb.TagNumber(7)
$core.bool hasFourk() => $_has(6);
@$pb.TagNumber(7)
void clearFourk() => clearField(7);
/// 当前页面spm
@$pb.TagNumber(8)
$core.String get spmid => $_getSZ(7);
@$pb.TagNumber(8)
set spmid($core.String v) { $_setString(7, v); }
@$pb.TagNumber(8)
$core.bool hasSpmid() => $_has(7);
@$pb.TagNumber(8)
void clearSpmid() => clearField(8);
/// 上此请求末尾项的param
@$pb.TagNumber(9)
$core.String get lastParam => $_getSZ(8);
@$pb.TagNumber(9)
set lastParam($core.String v) { $_setString(8, v); }
@$pb.TagNumber(9)
$core.bool hasLastParam() => $_has(8);
@$pb.TagNumber(9)
void clearLastParam() => clearField(9);
/// 上此请求的ver
@$pb.TagNumber(10)
$core.String get ver => $_getSZ(9);
@$pb.TagNumber(10)
set ver($core.String v) { $_setString(9, v); }
@$pb.TagNumber(10)
$core.bool hasVer() => $_has(9);
@$pb.TagNumber(10)
void clearVer() => clearField(10);
/// 分品类热门的入口ID
@$pb.TagNumber(11)
$fixnum.Int64 get entranceId => $_getI64(10);
@$pb.TagNumber(11)
set entranceId($fixnum.Int64 v) { $_setInt64(10, v); }
@$pb.TagNumber(11)
$core.bool hasEntranceId() => $_has(10);
@$pb.TagNumber(11)
void clearEntranceId() => clearField(11);
/// 热门定位id集合
@$pb.TagNumber(12)
$core.String get locationIds => $_getSZ(11);
@$pb.TagNumber(12)
set locationIds($core.String v) { $_setString(11, v); }
@$pb.TagNumber(12)
$core.bool hasLocationIds() => $_has(11);
@$pb.TagNumber(12)
void clearLocationIds() => clearField(12);
/// 0:tag页 1:中间页
@$pb.TagNumber(13)
$core.int get sourceId => $_getIZ(12);
@$pb.TagNumber(13)
set sourceId($core.int v) { $_setSignedInt32(12, v); }
@$pb.TagNumber(13)
$core.bool hasSourceId() => $_has(12);
@$pb.TagNumber(13)
void clearSourceId() => clearField(13);
/// 数据埋点上报
/// 0:代表手动刷新 1:代表自动刷新
@$pb.TagNumber(14)
$core.int get flush => $_getIZ(13);
@$pb.TagNumber(14)
set flush($core.int v) { $_setSignedInt32(13, v); }
@$pb.TagNumber(14)
$core.bool hasFlush() => $_has(13);
@$pb.TagNumber(14)
void clearFlush() => clearField(14);
/// 秒开参数
@$pb.TagNumber(15)
$2.PlayerArgs get playerArgs => $_getN(14);
@$pb.TagNumber(15)
set playerArgs($2.PlayerArgs v) { setField(15, v); }
@$pb.TagNumber(15)
$core.bool hasPlayerArgs() => $_has(14);
@$pb.TagNumber(15)
void clearPlayerArgs() => clearField(15);
@$pb.TagNumber(15)
$2.PlayerArgs ensurePlayerArgs() => $_ensure(14);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: bilibili/app/show/popular/v1/popular.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

View File

@@ -0,0 +1,59 @@
//
// Generated code. Do not modify.
// source: bilibili/app/show/popular/v1/popular.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'popular.pb.dart' as $0;
export 'popular.pb.dart';
@$pb.GrpcServiceName('bilibili.app.show.v1.Popular')
class PopularClient extends $grpc.Client {
static final _$index = $grpc.ClientMethod<$0.PopularResultReq, $0.PopularReply>(
'/bilibili.app.show.v1.Popular/Index',
($0.PopularResultReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.PopularReply.fromBuffer(value));
PopularClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$0.PopularReply> index($0.PopularResultReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$index, request, options: options);
}
}
@$pb.GrpcServiceName('bilibili.app.show.v1.Popular')
abstract class PopularServiceBase extends $grpc.Service {
$core.String get $name => 'bilibili.app.show.v1.Popular';
PopularServiceBase() {
$addMethod($grpc.ServiceMethod<$0.PopularResultReq, $0.PopularReply>(
'Index',
index_Pre,
false,
false,
($core.List<$core.int> value) => $0.PopularResultReq.fromBuffer(value),
($0.PopularReply value) => value.writeToBuffer()));
}
$async.Future<$0.PopularReply> index_Pre($grpc.ServiceCall call, $async.Future<$0.PopularResultReq> request) async {
return index(call, await request);
}
$async.Future<$0.PopularReply> index($grpc.ServiceCall call, $0.PopularResultReq request);
}

View File

@@ -0,0 +1,128 @@
//
// Generated code. Do not modify.
// source: bilibili/app/show/popular/v1/popular.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use bubbleDescriptor instead')
const Bubble$json = {
'1': 'Bubble',
'2': [
{'1': 'bubble_content', '3': 1, '4': 1, '5': 9, '10': 'bubbleContent'},
{'1': 'version', '3': 2, '4': 1, '5': 5, '10': 'version'},
{'1': 'stime', '3': 3, '4': 1, '5': 3, '10': 'stime'},
],
};
/// Descriptor for `Bubble`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List bubbleDescriptor = $convert.base64Decode(
'CgZCdWJibGUSJQoOYnViYmxlX2NvbnRlbnQYASABKAlSDWJ1YmJsZUNvbnRlbnQSGAoHdmVyc2'
'lvbhgCIAEoBVIHdmVyc2lvbhIUCgVzdGltZRgDIAEoA1IFc3RpbWU=');
@$core.Deprecated('Use configDescriptor instead')
const Config$json = {
'1': 'Config',
'2': [
{'1': 'item_title', '3': 1, '4': 1, '5': 9, '10': 'itemTitle'},
{'1': 'bottom_text', '3': 2, '4': 1, '5': 9, '10': 'bottomText'},
{'1': 'bottom_text_cover', '3': 3, '4': 1, '5': 9, '10': 'bottomTextCover'},
{'1': 'bottom_text_url', '3': 4, '4': 1, '5': 9, '10': 'bottomTextUrl'},
{'1': 'top_items', '3': 5, '4': 3, '5': 11, '6': '.bilibili.app.show.v1.EntranceShow', '10': 'topItems'},
{'1': 'head_image', '3': 6, '4': 1, '5': 9, '10': 'headImage'},
{'1': 'page_items', '3': 7, '4': 3, '5': 11, '6': '.bilibili.app.show.v1.EntranceShow', '10': 'pageItems'},
{'1': 'hit', '3': 8, '4': 1, '5': 5, '10': 'hit'},
],
};
/// Descriptor for `Config`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List configDescriptor = $convert.base64Decode(
'CgZDb25maWcSHQoKaXRlbV90aXRsZRgBIAEoCVIJaXRlbVRpdGxlEh8KC2JvdHRvbV90ZXh0GA'
'IgASgJUgpib3R0b21UZXh0EioKEWJvdHRvbV90ZXh0X2NvdmVyGAMgASgJUg9ib3R0b21UZXh0'
'Q292ZXISJgoPYm90dG9tX3RleHRfdXJsGAQgASgJUg1ib3R0b21UZXh0VXJsEj8KCXRvcF9pdG'
'VtcxgFIAMoCzIiLmJpbGliaWxpLmFwcC5zaG93LnYxLkVudHJhbmNlU2hvd1IIdG9wSXRlbXMS'
'HQoKaGVhZF9pbWFnZRgGIAEoCVIJaGVhZEltYWdlEkEKCnBhZ2VfaXRlbXMYByADKAsyIi5iaW'
'xpYmlsaS5hcHAuc2hvdy52MS5FbnRyYW5jZVNob3dSCXBhZ2VJdGVtcxIQCgNoaXQYCCABKAVS'
'A2hpdA==');
@$core.Deprecated('Use entranceShowDescriptor instead')
const EntranceShow$json = {
'1': 'EntranceShow',
'2': [
{'1': 'icon', '3': 1, '4': 1, '5': 9, '10': 'icon'},
{'1': 'title', '3': 2, '4': 1, '5': 9, '10': 'title'},
{'1': 'module_id', '3': 3, '4': 1, '5': 9, '10': 'moduleId'},
{'1': 'uri', '3': 4, '4': 1, '5': 9, '10': 'uri'},
{'1': 'bubble', '3': 5, '4': 1, '5': 11, '6': '.bilibili.app.show.v1.Bubble', '10': 'bubble'},
{'1': 'entrance_id', '3': 6, '4': 1, '5': 3, '10': 'entranceId'},
{'1': 'top_photo', '3': 7, '4': 1, '5': 9, '10': 'topPhoto'},
{'1': 'entrance_type', '3': 8, '4': 1, '5': 5, '10': 'entranceType'},
],
};
/// Descriptor for `EntranceShow`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List entranceShowDescriptor = $convert.base64Decode(
'CgxFbnRyYW5jZVNob3cSEgoEaWNvbhgBIAEoCVIEaWNvbhIUCgV0aXRsZRgCIAEoCVIFdGl0bG'
'USGwoJbW9kdWxlX2lkGAMgASgJUghtb2R1bGVJZBIQCgN1cmkYBCABKAlSA3VyaRI0CgZidWJi'
'bGUYBSABKAsyHC5iaWxpYmlsaS5hcHAuc2hvdy52MS5CdWJibGVSBmJ1YmJsZRIfCgtlbnRyYW'
'5jZV9pZBgGIAEoA1IKZW50cmFuY2VJZBIbCgl0b3BfcGhvdG8YByABKAlSCHRvcFBob3RvEiMK'
'DWVudHJhbmNlX3R5cGUYCCABKAVSDGVudHJhbmNlVHlwZQ==');
@$core.Deprecated('Use popularReplyDescriptor instead')
const PopularReply$json = {
'1': 'PopularReply',
'2': [
{'1': 'items', '3': 1, '4': 3, '5': 11, '6': '.bilibili.app.card.v1.Card', '10': 'items'},
{'1': 'config', '3': 2, '4': 1, '5': 11, '6': '.bilibili.app.show.v1.Config', '10': 'config'},
{'1': 'ver', '3': 3, '4': 1, '5': 9, '10': 'ver'},
],
};
/// Descriptor for `PopularReply`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List popularReplyDescriptor = $convert.base64Decode(
'CgxQb3B1bGFyUmVwbHkSMAoFaXRlbXMYASADKAsyGi5iaWxpYmlsaS5hcHAuY2FyZC52MS5DYX'
'JkUgVpdGVtcxI0CgZjb25maWcYAiABKAsyHC5iaWxpYmlsaS5hcHAuc2hvdy52MS5Db25maWdS'
'BmNvbmZpZxIQCgN2ZXIYAyABKAlSA3Zlcg==');
@$core.Deprecated('Use popularResultReqDescriptor instead')
const PopularResultReq$json = {
'1': 'PopularResultReq',
'2': [
{'1': 'idx', '3': 1, '4': 1, '5': 3, '10': 'idx'},
{'1': 'login_event', '3': 2, '4': 1, '5': 5, '10': 'loginEvent'},
{'1': 'qn', '3': 3, '4': 1, '5': 5, '10': 'qn'},
{'1': 'fnver', '3': 4, '4': 1, '5': 5, '10': 'fnver'},
{'1': 'fnval', '3': 5, '4': 1, '5': 5, '10': 'fnval'},
{'1': 'force_host', '3': 6, '4': 1, '5': 5, '10': 'forceHost'},
{'1': 'fourk', '3': 7, '4': 1, '5': 5, '10': 'fourk'},
{'1': 'spmid', '3': 8, '4': 1, '5': 9, '10': 'spmid'},
{'1': 'last_param', '3': 9, '4': 1, '5': 9, '10': 'lastParam'},
{'1': 'ver', '3': 10, '4': 1, '5': 9, '10': 'ver'},
{'1': 'entrance_id', '3': 11, '4': 1, '5': 3, '10': 'entranceId'},
{'1': 'location_ids', '3': 12, '4': 1, '5': 9, '10': 'locationIds'},
{'1': 'source_id', '3': 13, '4': 1, '5': 5, '10': 'sourceId'},
{'1': 'flush', '3': 14, '4': 1, '5': 5, '10': 'flush'},
{'1': 'player_args', '3': 15, '4': 1, '5': 11, '6': '.bilibili.app.archive.middleware.v1.PlayerArgs', '10': 'playerArgs'},
],
};
/// Descriptor for `PopularResultReq`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List popularResultReqDescriptor = $convert.base64Decode(
'ChBQb3B1bGFyUmVzdWx0UmVxEhAKA2lkeBgBIAEoA1IDaWR4Eh8KC2xvZ2luX2V2ZW50GAIgAS'
'gFUgpsb2dpbkV2ZW50Eg4KAnFuGAMgASgFUgJxbhIUCgVmbnZlchgEIAEoBVIFZm52ZXISFAoF'
'Zm52YWwYBSABKAVSBWZudmFsEh0KCmZvcmNlX2hvc3QYBiABKAVSCWZvcmNlSG9zdBIUCgVmb3'
'VyaxgHIAEoBVIFZm91cmsSFAoFc3BtaWQYCCABKAlSBXNwbWlkEh0KCmxhc3RfcGFyYW0YCSAB'
'KAlSCWxhc3RQYXJhbRIQCgN2ZXIYCiABKAlSA3ZlchIfCgtlbnRyYW5jZV9pZBgLIAEoA1IKZW'
'50cmFuY2VJZBIhCgxsb2NhdGlvbl9pZHMYDCABKAlSC2xvY2F0aW9uSWRzEhsKCXNvdXJjZV9p'
'ZBgNIAEoBVIIc291cmNlSWQSFAoFZmx1c2gYDiABKAVSBWZsdXNoEk8KC3BsYXllcl9hcmdzGA'
'8gASgLMi4uYmlsaWJpbGkuYXBwLmFyY2hpdmUubWlkZGxld2FyZS52MS5QbGF5ZXJBcmdzUgpw'
'bGF5ZXJBcmdz');

36
lib/grpc/grpc_client.dart Normal file
View File

@@ -0,0 +1,36 @@
import 'package:PiliPalaX/grpc/app/playeronline/v1/playeronline.pbgrpc.dart';
import 'package:PiliPalaX/grpc/app/show/popular/v1/popular.pbgrpc.dart';
import 'package:grpc/grpc.dart';
class GrpcClient {
ClientChannel? _channel;
PlayerOnlineClient? _playerOnlineClient;
PopularClient? _popularClient;
GrpcClient._internal() {
_channel = ClientChannel(
'grpc.biliapi.net',
port: 443,
options: const ChannelOptions(
credentials: ChannelCredentials.secure(),
),
);
}
static final GrpcClient _instance = GrpcClient._internal();
static GrpcClient get instance => _instance;
PlayerOnlineClient get playerOnlineClient {
_playerOnlineClient ??= PlayerOnlineClient(_channel!);
return _playerOnlineClient!;
}
PopularClient get popularClient {
_popularClient ??= PopularClient(_channel!);
return _popularClient!;
}
Future<void> shutdown() async {
await _channel?.shutdown();
}
}

132
lib/grpc/grpc_repo.dart Normal file
View File

@@ -0,0 +1,132 @@
import 'dart:convert';
import 'package:PiliPalaX/common/constants.dart';
import 'package:PiliPalaX/grpc/app/playeronline/v1/playeronline.pbgrpc.dart';
import 'package:PiliPalaX/grpc/app/show/popular/v1/popular.pb.dart';
import 'package:PiliPalaX/grpc/device/device.pb.dart';
import 'package:PiliPalaX/grpc/fawkes/fawkes.pb.dart';
import 'package:PiliPalaX/grpc/grpc_client.dart';
import 'package:PiliPalaX/grpc/locale/locale.pb.dart';
import 'package:PiliPalaX/grpc/metadata/metadata.pb.dart';
import 'package:PiliPalaX/grpc/network/network.pb.dart';
import 'package:PiliPalaX/grpc/restriction/restriction.pb.dart';
import 'package:PiliPalaX/utils/login.dart';
import 'package:PiliPalaX/utils/storage.dart';
import 'package:PiliPalaX/utils/utils.dart';
import 'package:fixnum/src/int64.dart';
import 'package:grpc/grpc.dart';
class GrpcRepo {
static final bool _isLogin = GStorage.userInfo.get('userInfoCache') != null;
static final int? _mid = GStorage.userInfo.get('userInfoCache')?.mid;
static final String? _accessKey = GStorage.localCache
.get(LocalCacheKey.accessKey, defaultValue: {})['value'];
static const _build = 1462100;
static const _biliChannel = 'bili';
static const _mobiApp = 'android';
static const _phone = 'phone';
static final _eId = _isLogin ? Utils.genAuroraEid(_mid!) : '';
static final _buvid = LoginUtils.buvid();
static final _traceId = Utils.genTraceId();
static final _sessionId = Utils.generateRandomString(8);
static Map<String, String> get metadata => {
'user-agent': '${Constants.userAgent} grpc-java-cronet/1.36.1',
'x-bili-gaia-vtoken': '',
'x-bili-aurora-eid': _isLogin ? _eId : '',
'x-bili-mid': _isLogin ? _mid.toString() : '0',
'x-bili-aurora-zone': '',
'x-bili-trace-id': _traceId,
if (_isLogin) 'authorization': 'identify_v1 $_accessKey',
'buvid': _buvid,
'bili-http-engine': 'cronet',
'te': 'trailers',
'x-bili-fawkes-req-bin': base64Encode((FawkesReq()
..appkey = _mobiApp
..env = 'prod'
..sessionId = _sessionId)
.writeToBuffer()),
'x-bili-metadata-bin': base64Encode((Metadata()
..accessKey = _accessKey ?? ''
..mobiApp = _mobiApp
..device = _phone
..build = _build
..channel = _biliChannel
..buvid = _buvid
..platform = _mobiApp)
.writeToBuffer()),
'x-bili-device-bin': base64Encode((Device()
..appId = 1
..build = _build
..buvid = _buvid
..mobiApp = _mobiApp
..platform = _mobiApp
..device = _phone
..channel = _biliChannel
..brand = _phone
..model = _phone
..osver = '14'
..fpLocal = ''
..fpRemote = ''
..versionName = _build.toString()
..fp = ''
..fts = Int64())
.writeToBuffer()),
'x-bili-network-bin': base64Encode((Network()
..type = NetworkType.WIFI
..tf = TFType.TF_UNKNOWN
..oid = '')
.writeToBuffer()),
'x-bili-restriction-bin': base64Encode((Restriction()
..teenagersMode = false
..lessonsMode = false
..mode = ModeType.NORMAL
..review = false
..disableRcmd = false
..basicMode = false)
.writeToBuffer()),
'x-bili-locale-bin': base64Encode((Locale()
..cLocale = LocaleIds(language: 'zh', region: 'CN')
..sLocale = LocaleIds(language: 'zh', region: 'CN')
..simCode = ''
..timezone = 'Asia/Shanghai')
.writeToBuffer()),
'x-bili-exps-bin': '',
};
static CallOptions get options => CallOptions(metadata: metadata);
static Future _request(Function request) async {
try {
return await request();
} catch (e) {
return {'status': false, 'msg': e.toString()};
}
}
static Future playerOnline({
int aid = 0,
int cid = 0,
}) async {
return await _request(() async {
final request = PlayerOnlineReq()
..aid = Int64(aid)
..cid = Int64(cid)
..playOpen = true;
final response = await GrpcClient.instance.playerOnlineClient
.playerOnline(request, options: options);
return {'status': true, 'data': response.totalNumberText};
});
}
static Future popular(int idx) async {
return await _request(() async {
final request = PopularResultReq()..idx = Int64(idx);
final response = await GrpcClient.instance.popularClient
.index(request, options: options);
response.items.retainWhere((item) => item.smallCoverV5.base.goto == 'av');
return {'status': true, 'data': response.items};
});
}
}