diff --git a/lib/common/widgets/self_sized_horizontal_list.dart b/lib/common/widgets/self_sized_horizontal_list.dart index 7634620e..ef8507e9 100644 --- a/lib/common/widgets/self_sized_horizontal_list.dart +++ b/lib/common/widgets/self_sized_horizontal_list.dart @@ -3,10 +3,11 @@ import 'package:flutter/material.dart'; /// https://stackoverflow.com/a/76605401 class SelfSizedHorizontalList extends StatefulWidget { - final Widget Function(int) childBuilder; + final Widget Function(int index) childBuilder; final int itemCount; final double gapSize; final EdgeInsetsGeometry? padding; + final ScrollController? controller; const SelfSizedHorizontalList({ super.key, @@ -14,6 +15,7 @@ class SelfSizedHorizontalList extends StatefulWidget { required this.itemCount, this.gapSize = 5, this.padding, + this.controller, }); @override @@ -50,6 +52,7 @@ class _SelfSizedHorizontalListState extends State { return SizedBox( height: height, child: ListView.separated( + controller: widget.controller, padding: widget.padding, scrollDirection: Axis.horizontal, itemCount: widget.itemCount, diff --git a/lib/grpc/grpc_repo.dart b/lib/grpc/grpc_repo.dart index 5eee472e..20db782a 100644 --- a/lib/grpc/grpc_repo.dart +++ b/lib/grpc/grpc_repo.dart @@ -10,6 +10,8 @@ import 'package:PiliPlus/grpc/app/show/popular/v1/popular.pb.dart'; import 'package:PiliPlus/grpc/device/device.pb.dart'; import 'package:PiliPlus/grpc/dm/v1/dm.pb.dart'; import 'package:PiliPlus/grpc/fawkes/fawkes.pb.dart'; +import 'package:PiliPlus/grpc/im/interfaces/v1/im.pb.dart'; +import 'package:PiliPlus/grpc/im/type/im.pb.dart'; import 'package:PiliPlus/grpc/locale/locale.pb.dart'; import 'package:PiliPlus/grpc/metadata/metadata.pb.dart'; import 'package:PiliPlus/grpc/network/network.pb.dart' as network; @@ -23,6 +25,7 @@ import 'package:archive/archive.dart'; import 'package:dio/dio.dart'; import 'package:fixnum/src/int64.dart'; import 'package:protobuf/protobuf.dart' show GeneratedMessage; +import 'package:uuid/uuid.dart'; class GrpcUrl { static const playerOnline = @@ -37,6 +40,8 @@ class GrpcUrl { static const dynSpace = '/bilibili.app.dynamic.v2.Dynamic/DynSpace'; static const dynRed = '/bilibili.app.dynamic.v1.Dynamic/DynRed'; static const dmSegMobile = '/bilibili.community.service.dm.v1.DM/DmSegMobile'; + static const sendMsg = '/bilibili.im.interface.v1.ImInterface/SendMsg'; + static const shareList = '/bilibili.im.interface.v1.ImInterface/ShareList'; } class GrpcRepo { @@ -306,4 +311,39 @@ class GrpcRepo { oid: Int64(cid), segmentIndex: Int64(segmentIndex), type: type), DmSegMobileReply.fromBuffer); } + + static Future sendMsg({ + required int senderUid, + required int receiverId, + int receiverType = 1, + required String content, + MsgType msgType = MsgType.EN_MSG_TYPE_TEXT, + }) async { + final devId = Uuid().v4(); + return await _request( + GrpcUrl.sendMsg, + ReqSendMsg( + msg: Msg( + senderUid: Int64(senderUid), + receiverType: RecverType.EN_RECVER_TYPE_PEER, + receiverId: Int64(receiverId), + msgType: msgType, + content: content, + timestamp: Int64(DateTime.now().millisecondsSinceEpoch ~/ 1000), + msgStatus: 0, + newFaceVersion: 1, + ), + devId: devId, + ), + RspSendMsg.fromBuffer, + ); + } + + static Future shareList({int size = 10}) async { + return await _request( + GrpcUrl.shareList, + ReqShareList(size: size), + RspShareList.fromBuffer, + ); + } } diff --git a/lib/grpc/im/interfaces/v1/im.pb.dart b/lib/grpc/im/interfaces/v1/im.pb.dart new file mode 100644 index 00000000..bb4d28f2 --- /dev/null +++ b/lib/grpc/im/interfaces/v1/im.pb.dart @@ -0,0 +1,3703 @@ +// +// Generated code. Do not modify. +// source: bilibili/im/interfaces/v1/im.proto +// +// @dart = 3.3 + +// 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 '../../type/im.pb.dart' as $1; + +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + +export 'im.pbenum.dart'; + +/// 空请求 +class DummyReq extends $pb.GeneratedMessage { + factory DummyReq({ + $core.int? idl, + }) { + final $result = create(); + if (idl != null) { + $result.idl = idl; + } + return $result; + } + DummyReq._() : super(); + factory DummyReq.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DummyReq.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DummyReq', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'idl', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DummyReq clone() => DummyReq()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DummyReq copyWith(void Function(DummyReq) updates) => super.copyWith((message) => updates(message as DummyReq)) as DummyReq; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DummyReq create() => DummyReq._(); + DummyReq createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DummyReq getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DummyReq? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get idl => $_getIZ(0); + @$pb.TagNumber(1) + set idl($core.int v) { $_setUnsignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasIdl() => $_has(0); + @$pb.TagNumber(1) + void clearIdl() => $_clearField(1); +} + +/// 空响应 +class DummyRsp extends $pb.GeneratedMessage { + factory DummyRsp() => create(); + DummyRsp._() : super(); + factory DummyRsp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DummyRsp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DummyRsp', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: 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') + DummyRsp clone() => DummyRsp()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DummyRsp copyWith(void Function(DummyRsp) updates) => super.copyWith((message) => updates(message as DummyRsp)) as DummyRsp; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DummyRsp create() => DummyRsp._(); + DummyRsp createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DummyRsp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DummyRsp? _defaultInstance; +} + +/// 表情资源信息 +class EmotionInfo extends $pb.GeneratedMessage { + factory EmotionInfo({ + $core.String? text, + $core.String? url, + $core.int? size, + $core.String? gifUrl, + }) { + final $result = create(); + if (text != null) { + $result.text = text; + } + if (url != null) { + $result.url = url; + } + if (size != null) { + $result.size = size; + } + if (gifUrl != null) { + $result.gifUrl = gifUrl; + } + return $result; + } + EmotionInfo._() : super(); + factory EmotionInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory EmotionInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EmotionInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'text') + ..aOS(2, _omitFieldNames ? '' : 'url') + ..a<$core.int>(3, _omitFieldNames ? '' : 'size', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'gifUrl') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + EmotionInfo clone() => EmotionInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + EmotionInfo copyWith(void Function(EmotionInfo) updates) => super.copyWith((message) => updates(message as EmotionInfo)) as EmotionInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static EmotionInfo create() => EmotionInfo._(); + EmotionInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static EmotionInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EmotionInfo? _defaultInstance; + + /// 表情 + @$pb.TagNumber(1) + $core.String get text => $_getSZ(0); + @$pb.TagNumber(1) + set text($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasText() => $_has(0); + @$pb.TagNumber(1) + void clearText() => $_clearField(1); + + /// 表情url + @$pb.TagNumber(2) + $core.String get url => $_getSZ(1); + @$pb.TagNumber(2) + set url($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasUrl() => $_has(1); + @$pb.TagNumber(2) + void clearUrl() => $_clearField(2); + + /// 表情大小 + /// 0:未知 1:min 2:max + @$pb.TagNumber(3) + $core.int get size => $_getIZ(2); + @$pb.TagNumber(3) + set size($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasSize() => $_has(2); + @$pb.TagNumber(3) + void clearSize() => $_clearField(3); + + /// gif url + @$pb.TagNumber(4) + $core.String get gifUrl => $_getSZ(3); + @$pb.TagNumber(4) + set gifUrl($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasGifUrl() => $_has(3); + @$pb.TagNumber(4) + void clearGifUrl() => $_clearField(4); +} + +class MsgDetail extends $pb.GeneratedMessage { + factory MsgDetail({ + $fixnum.Int64? msgKey, + $fixnum.Int64? seqno, + }) { + final $result = create(); + if (msgKey != null) { + $result.msgKey = msgKey; + } + if (seqno != null) { + $result.seqno = seqno; + } + return $result; + } + MsgDetail._() : super(); + factory MsgDetail.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory MsgDetail.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MsgDetail', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'msgKey') + ..aInt64(2, _omitFieldNames ? '' : 'seqno') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MsgDetail clone() => MsgDetail()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MsgDetail copyWith(void Function(MsgDetail) updates) => super.copyWith((message) => updates(message as MsgDetail)) as MsgDetail; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static MsgDetail create() => MsgDetail._(); + MsgDetail createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MsgDetail getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MsgDetail? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get msgKey => $_getI64(0); + @$pb.TagNumber(1) + set msgKey($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasMsgKey() => $_has(0); + @$pb.TagNumber(1) + void clearMsgKey() => $_clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get seqno => $_getI64(1); + @$pb.TagNumber(2) + set seqno($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasSeqno() => $_has(1); + @$pb.TagNumber(2) + void clearSeqno() => $_clearField(2); +} + +class MsgFeedUnreadRsp extends $pb.GeneratedMessage { + factory MsgFeedUnreadRsp({ + $pb.PbMap<$core.String, $fixnum.Int64>? unread, + }) { + final $result = create(); + if (unread != null) { + $result.unread.addAll(unread); + } + return $result; + } + MsgFeedUnreadRsp._() : super(); + factory MsgFeedUnreadRsp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory MsgFeedUnreadRsp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MsgFeedUnreadRsp', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..m<$core.String, $fixnum.Int64>(1, _omitFieldNames ? '' : 'unread', entryClassName: 'MsgFeedUnreadRsp.UnreadEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.O6, packageName: const $pb.PackageName('bilibili.im.interface.v1')) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MsgFeedUnreadRsp clone() => MsgFeedUnreadRsp()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MsgFeedUnreadRsp copyWith(void Function(MsgFeedUnreadRsp) updates) => super.copyWith((message) => updates(message as MsgFeedUnreadRsp)) as MsgFeedUnreadRsp; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static MsgFeedUnreadRsp create() => MsgFeedUnreadRsp._(); + MsgFeedUnreadRsp createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MsgFeedUnreadRsp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MsgFeedUnreadRsp? _defaultInstance; + + @$pb.TagNumber(1) + $pb.PbMap<$core.String, $fixnum.Int64> get unread => $_getMap(0); +} + +/// 更新应援团小助手消息已拉取进度-请求 +class ReqAckAssisMsg extends $pb.GeneratedMessage { + factory ReqAckAssisMsg({ + $fixnum.Int64? ackSeqno, + }) { + final $result = create(); + if (ackSeqno != null) { + $result.ackSeqno = ackSeqno; + } + return $result; + } + ReqAckAssisMsg._() : super(); + factory ReqAckAssisMsg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqAckAssisMsg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqAckAssisMsg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'ackSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqAckAssisMsg clone() => ReqAckAssisMsg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqAckAssisMsg copyWith(void Function(ReqAckAssisMsg) updates) => super.copyWith((message) => updates(message as ReqAckAssisMsg)) as ReqAckAssisMsg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqAckAssisMsg create() => ReqAckAssisMsg._(); + ReqAckAssisMsg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqAckAssisMsg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqAckAssisMsg? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get ackSeqno => $_getI64(0); + @$pb.TagNumber(1) + set ackSeqno($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasAckSeqno() => $_has(0); + @$pb.TagNumber(1) + void clearAckSeqno() => $_clearField(1); +} + +/// 拉取已读消息-请求 +class ReqAckSessions extends $pb.GeneratedMessage { + factory ReqAckSessions({ + $fixnum.Int64? beginTs, + $core.int? endTs, + $core.int? size, + }) { + final $result = create(); + if (beginTs != null) { + $result.beginTs = beginTs; + } + if (endTs != null) { + $result.endTs = endTs; + } + if (size != null) { + $result.size = size; + } + return $result; + } + ReqAckSessions._() : super(); + factory ReqAckSessions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqAckSessions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqAckSessions', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'beginTs', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'endTs', $pb.PbFieldType.OU3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'size', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqAckSessions clone() => ReqAckSessions()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqAckSessions copyWith(void Function(ReqAckSessions) updates) => super.copyWith((message) => updates(message as ReqAckSessions)) as ReqAckSessions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqAckSessions create() => ReqAckSessions._(); + ReqAckSessions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqAckSessions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqAckSessions? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get beginTs => $_getI64(0); + @$pb.TagNumber(1) + set beginTs($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasBeginTs() => $_has(0); + @$pb.TagNumber(1) + void clearBeginTs() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get endTs => $_getIZ(1); + @$pb.TagNumber(2) + set endTs($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasEndTs() => $_has(1); + @$pb.TagNumber(2) + void clearEndTs() => $_clearField(2); + + @$pb.TagNumber(3) + $core.int get size => $_getIZ(2); + @$pb.TagNumber(3) + set size($core.int v) { $_setUnsignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasSize() => $_has(2); + @$pb.TagNumber(3) + void clearSize() => $_clearField(3); +} + +/// 批量删除会话-请求 +class ReqBatRmSess extends $pb.GeneratedMessage { + factory ReqBatRmSess() => create(); + ReqBatRmSess._() : super(); + factory ReqBatRmSess.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqBatRmSess.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqBatRmSess', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: 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') + ReqBatRmSess clone() => ReqBatRmSess()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqBatRmSess copyWith(void Function(ReqBatRmSess) updates) => super.copyWith((message) => updates(message as ReqBatRmSess)) as ReqBatRmSess; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqBatRmSess create() => ReqBatRmSess._(); + ReqBatRmSess createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqBatRmSess getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqBatRmSess? _defaultInstance; +} + +class ReqCloseClearUnreadUI extends $pb.GeneratedMessage { + factory ReqCloseClearUnreadUI() => create(); + ReqCloseClearUnreadUI._() : super(); + factory ReqCloseClearUnreadUI.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqCloseClearUnreadUI.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqCloseClearUnreadUI', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: 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') + ReqCloseClearUnreadUI clone() => ReqCloseClearUnreadUI()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqCloseClearUnreadUI copyWith(void Function(ReqCloseClearUnreadUI) updates) => super.copyWith((message) => updates(message as ReqCloseClearUnreadUI)) as ReqCloseClearUnreadUI; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqCloseClearUnreadUI create() => ReqCloseClearUnreadUI._(); + ReqCloseClearUnreadUI createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqCloseClearUnreadUI getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqCloseClearUnreadUI? _defaultInstance; +} + +class ReqGetMsg extends $pb.GeneratedMessage { + factory ReqGetMsg({ + $fixnum.Int64? talkerId, + $core.int? sessionType, + $core.Iterable? msgDetail, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + if (msgDetail != null) { + $result.msgDetail.addAll(msgDetail); + } + return $result; + } + ReqGetMsg._() : super(); + factory ReqGetMsg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqGetMsg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqGetMsg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'talkerId') + ..a<$core.int>(2, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.O3) + ..pc(3, _omitFieldNames ? '' : 'msgDetail', $pb.PbFieldType.PM, subBuilder: MsgDetail.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') + ReqGetMsg clone() => ReqGetMsg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqGetMsg copyWith(void Function(ReqGetMsg) updates) => super.copyWith((message) => updates(message as ReqGetMsg)) as ReqGetMsg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqGetMsg create() => ReqGetMsg._(); + ReqGetMsg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqGetMsg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqGetMsg? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get sessionType => $_getIZ(1); + @$pb.TagNumber(2) + set sessionType($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSessionType() => $_has(1); + @$pb.TagNumber(2) + void clearSessionType() => $_clearField(2); + + @$pb.TagNumber(3) + $pb.PbList get msgDetail => $_getList(2); +} + +/// 拉取会话记录列表-请求 +class ReqGetSessions extends $pb.GeneratedMessage { + factory ReqGetSessions({ + $fixnum.Int64? beginTs, + $fixnum.Int64? endTs, + $core.int? size, + $core.int? sessionType, + $core.int? unfollowFold, + $core.int? groupFold, + $core.int? sortRule, + $core.int? teenagerMode, + $core.int? lessonsMode, + }) { + final $result = create(); + if (beginTs != null) { + $result.beginTs = beginTs; + } + if (endTs != null) { + $result.endTs = endTs; + } + if (size != null) { + $result.size = size; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + if (unfollowFold != null) { + $result.unfollowFold = unfollowFold; + } + if (groupFold != null) { + $result.groupFold = groupFold; + } + if (sortRule != null) { + $result.sortRule = sortRule; + } + if (teenagerMode != null) { + $result.teenagerMode = teenagerMode; + } + if (lessonsMode != null) { + $result.lessonsMode = lessonsMode; + } + return $result; + } + ReqGetSessions._() : super(); + factory ReqGetSessions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqGetSessions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqGetSessions', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'beginTs', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'endTs', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(3, _omitFieldNames ? '' : 'size', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.OU3) + ..a<$core.int>(5, _omitFieldNames ? '' : 'unfollowFold', $pb.PbFieldType.OU3) + ..a<$core.int>(6, _omitFieldNames ? '' : 'groupFold', $pb.PbFieldType.OU3) + ..a<$core.int>(7, _omitFieldNames ? '' : 'sortRule', $pb.PbFieldType.OU3) + ..a<$core.int>(8, _omitFieldNames ? '' : 'teenagerMode', $pb.PbFieldType.OU3) + ..a<$core.int>(9, _omitFieldNames ? '' : 'lessonsMode', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqGetSessions clone() => ReqGetSessions()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqGetSessions copyWith(void Function(ReqGetSessions) updates) => super.copyWith((message) => updates(message as ReqGetSessions)) as ReqGetSessions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqGetSessions create() => ReqGetSessions._(); + ReqGetSessions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqGetSessions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqGetSessions? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get beginTs => $_getI64(0); + @$pb.TagNumber(1) + set beginTs($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasBeginTs() => $_has(0); + @$pb.TagNumber(1) + void clearBeginTs() => $_clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get endTs => $_getI64(1); + @$pb.TagNumber(2) + set endTs($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasEndTs() => $_has(1); + @$pb.TagNumber(2) + void clearEndTs() => $_clearField(2); + + @$pb.TagNumber(3) + $core.int get size => $_getIZ(2); + @$pb.TagNumber(3) + set size($core.int v) { $_setUnsignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasSize() => $_has(2); + @$pb.TagNumber(3) + void clearSize() => $_clearField(3); + + @$pb.TagNumber(4) + $core.int get sessionType => $_getIZ(3); + @$pb.TagNumber(4) + set sessionType($core.int v) { $_setUnsignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasSessionType() => $_has(3); + @$pb.TagNumber(4) + void clearSessionType() => $_clearField(4); + + @$pb.TagNumber(5) + $core.int get unfollowFold => $_getIZ(4); + @$pb.TagNumber(5) + set unfollowFold($core.int v) { $_setUnsignedInt32(4, v); } + @$pb.TagNumber(5) + $core.bool hasUnfollowFold() => $_has(4); + @$pb.TagNumber(5) + void clearUnfollowFold() => $_clearField(5); + + @$pb.TagNumber(6) + $core.int get groupFold => $_getIZ(5); + @$pb.TagNumber(6) + set groupFold($core.int v) { $_setUnsignedInt32(5, v); } + @$pb.TagNumber(6) + $core.bool hasGroupFold() => $_has(5); + @$pb.TagNumber(6) + void clearGroupFold() => $_clearField(6); + + @$pb.TagNumber(7) + $core.int get sortRule => $_getIZ(6); + @$pb.TagNumber(7) + set sortRule($core.int v) { $_setUnsignedInt32(6, v); } + @$pb.TagNumber(7) + $core.bool hasSortRule() => $_has(6); + @$pb.TagNumber(7) + void clearSortRule() => $_clearField(7); + + /// 青少年模式 + @$pb.TagNumber(8) + $core.int get teenagerMode => $_getIZ(7); + @$pb.TagNumber(8) + set teenagerMode($core.int v) { $_setUnsignedInt32(7, v); } + @$pb.TagNumber(8) + $core.bool hasTeenagerMode() => $_has(7); + @$pb.TagNumber(8) + void clearTeenagerMode() => $_clearField(8); + + /// 课堂模式 + @$pb.TagNumber(9) + $core.int get lessonsMode => $_getIZ(8); + @$pb.TagNumber(9) + set lessonsMode($core.int v) { $_setUnsignedInt32(8, v); } + @$pb.TagNumber(9) + $core.bool hasLessonsMode() => $_has(8); + @$pb.TagNumber(9) + void clearLessonsMode() => $_clearField(9); +} + +/// -请求 +class ReqGetSpecificSessions extends $pb.GeneratedMessage { + factory ReqGetSpecificSessions({ + $core.Iterable? talkerSessions, + }) { + final $result = create(); + if (talkerSessions != null) { + $result.talkerSessions.addAll(talkerSessions); + } + return $result; + } + ReqGetSpecificSessions._() : super(); + factory ReqGetSpecificSessions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqGetSpecificSessions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqGetSpecificSessions', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'talkerSessions', $pb.PbFieldType.PM, subBuilder: SimpleSession.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') + ReqGetSpecificSessions clone() => ReqGetSpecificSessions()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqGetSpecificSessions copyWith(void Function(ReqGetSpecificSessions) updates) => super.copyWith((message) => updates(message as ReqGetSpecificSessions)) as ReqGetSpecificSessions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqGetSpecificSessions create() => ReqGetSpecificSessions._(); + ReqGetSpecificSessions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqGetSpecificSessions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqGetSpecificSessions? _defaultInstance; + + /// 具体会话详情 + @$pb.TagNumber(1) + $pb.PbList get talkerSessions => $_getList(0); +} + +/// 应援团消息助手-请求 +class ReqGroupAssisMsg extends $pb.GeneratedMessage { + factory ReqGroupAssisMsg({ + $fixnum.Int64? clientSeqno, + $core.int? size, + }) { + final $result = create(); + if (clientSeqno != null) { + $result.clientSeqno = clientSeqno; + } + if (size != null) { + $result.size = size; + } + return $result; + } + ReqGroupAssisMsg._() : super(); + factory ReqGroupAssisMsg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqGroupAssisMsg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqGroupAssisMsg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'clientSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'size', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqGroupAssisMsg clone() => ReqGroupAssisMsg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqGroupAssisMsg copyWith(void Function(ReqGroupAssisMsg) updates) => super.copyWith((message) => updates(message as ReqGroupAssisMsg)) as ReqGroupAssisMsg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqGroupAssisMsg create() => ReqGroupAssisMsg._(); + ReqGroupAssisMsg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqGroupAssisMsg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqGroupAssisMsg? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get clientSeqno => $_getI64(0); + @$pb.TagNumber(1) + set clientSeqno($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasClientSeqno() => $_has(0); + @$pb.TagNumber(1) + void clearClientSeqno() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get size => $_getIZ(1); + @$pb.TagNumber(2) + set size($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSize() => $_has(1); + @$pb.TagNumber(2) + void clearSize() => $_clearField(2); +} + +class ReqLiveInfo extends $pb.GeneratedMessage { + factory ReqLiveInfo({ + $fixnum.Int64? uid, + $fixnum.Int64? talkerId, + }) { + final $result = create(); + if (uid != null) { + $result.uid = uid; + } + if (talkerId != null) { + $result.talkerId = talkerId; + } + return $result; + } + ReqLiveInfo._() : super(); + factory ReqLiveInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqLiveInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqLiveInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'uid') + ..aInt64(2, _omitFieldNames ? '' : 'talkerId') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqLiveInfo clone() => ReqLiveInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqLiveInfo copyWith(void Function(ReqLiveInfo) updates) => super.copyWith((message) => updates(message as ReqLiveInfo)) as ReqLiveInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqLiveInfo create() => ReqLiveInfo._(); + ReqLiveInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqLiveInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqLiveInfo? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get uid => $_getI64(0); + @$pb.TagNumber(1) + set uid($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasUid() => $_has(0); + @$pb.TagNumber(1) + void clearUid() => $_clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get talkerId => $_getI64(1); + @$pb.TagNumber(2) + set talkerId($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasTalkerId() => $_has(1); + @$pb.TagNumber(2) + void clearTalkerId() => $_clearField(2); +} + +/// 拉取新消息-请求 +class ReqNewSessions extends $pb.GeneratedMessage { + factory ReqNewSessions({ + $fixnum.Int64? beginTs, + $core.int? size, + $core.int? teenagerMode, + $core.int? lessonsMode, + }) { + final $result = create(); + if (beginTs != null) { + $result.beginTs = beginTs; + } + if (size != null) { + $result.size = size; + } + if (teenagerMode != null) { + $result.teenagerMode = teenagerMode; + } + if (lessonsMode != null) { + $result.lessonsMode = lessonsMode; + } + return $result; + } + ReqNewSessions._() : super(); + factory ReqNewSessions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqNewSessions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqNewSessions', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'beginTs', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'size', $pb.PbFieldType.OU3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'teenagerMode', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'lessonsMode', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqNewSessions clone() => ReqNewSessions()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqNewSessions copyWith(void Function(ReqNewSessions) updates) => super.copyWith((message) => updates(message as ReqNewSessions)) as ReqNewSessions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqNewSessions create() => ReqNewSessions._(); + ReqNewSessions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqNewSessions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqNewSessions? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get beginTs => $_getI64(0); + @$pb.TagNumber(1) + set beginTs($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasBeginTs() => $_has(0); + @$pb.TagNumber(1) + void clearBeginTs() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get size => $_getIZ(1); + @$pb.TagNumber(2) + set size($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSize() => $_has(1); + @$pb.TagNumber(2) + void clearSize() => $_clearField(2); + + @$pb.TagNumber(3) + $core.int get teenagerMode => $_getIZ(2); + @$pb.TagNumber(3) + set teenagerMode($core.int v) { $_setUnsignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasTeenagerMode() => $_has(2); + @$pb.TagNumber(3) + void clearTeenagerMode() => $_clearField(3); + + /// 课堂模式 + @$pb.TagNumber(4) + $core.int get lessonsMode => $_getIZ(3); + @$pb.TagNumber(4) + set lessonsMode($core.int v) { $_setUnsignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasLessonsMode() => $_has(3); + @$pb.TagNumber(4) + void clearLessonsMode() => $_clearField(4); +} + +/// 同步关系-请求 +class ReqRelationSync extends $pb.GeneratedMessage { + factory ReqRelationSync({ + $fixnum.Int64? clientRelationOplogSeqno, + }) { + final $result = create(); + if (clientRelationOplogSeqno != null) { + $result.clientRelationOplogSeqno = clientRelationOplogSeqno; + } + return $result; + } + ReqRelationSync._() : super(); + factory ReqRelationSync.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqRelationSync.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqRelationSync', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'clientRelationOplogSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqRelationSync clone() => ReqRelationSync()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqRelationSync copyWith(void Function(ReqRelationSync) updates) => super.copyWith((message) => updates(message as ReqRelationSync)) as ReqRelationSync; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqRelationSync create() => ReqRelationSync._(); + ReqRelationSync createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqRelationSync getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqRelationSync? _defaultInstance; + + /// 客户端当前seqno + @$pb.TagNumber(1) + $fixnum.Int64 get clientRelationOplogSeqno => $_getI64(0); + @$pb.TagNumber(1) + set clientRelationOplogSeqno($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasClientRelationOplogSeqno() => $_has(0); + @$pb.TagNumber(1) + void clearClientRelationOplogSeqno() => $_clearField(1); +} + +/// 删除会话记录-请求 +class ReqRemoveSession extends $pb.GeneratedMessage { + factory ReqRemoveSession({ + $fixnum.Int64? talkerId, + $core.int? sessionType, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + return $result; + } + ReqRemoveSession._() : super(); + factory ReqRemoveSession.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqRemoveSession.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqRemoveSession', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqRemoveSession clone() => ReqRemoveSession()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqRemoveSession copyWith(void Function(ReqRemoveSession) updates) => super.copyWith((message) => updates(message as ReqRemoveSession)) as ReqRemoveSession; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqRemoveSession create() => ReqRemoveSession._(); + ReqRemoveSession createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqRemoveSession getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqRemoveSession? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get sessionType => $_getIZ(1); + @$pb.TagNumber(2) + set sessionType($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSessionType() => $_has(1); + @$pb.TagNumber(2) + void clearSessionType() => $_clearField(2); +} + +/// 发送消息-请求 +class ReqSendMsg extends $pb.GeneratedMessage { + factory ReqSendMsg({ + $1.Msg? msg, + $core.String? cookie, + $core.String? cookie2, + $core.int? errorCode, + $core.String? devId, + }) { + final $result = create(); + if (msg != null) { + $result.msg = msg; + } + if (cookie != null) { + $result.cookie = cookie; + } + if (cookie2 != null) { + $result.cookie2 = cookie2; + } + if (errorCode != null) { + $result.errorCode = errorCode; + } + if (devId != null) { + $result.devId = devId; + } + return $result; + } + ReqSendMsg._() : super(); + factory ReqSendMsg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqSendMsg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqSendMsg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aOM<$1.Msg>(1, _omitFieldNames ? '' : 'msg', subBuilder: $1.Msg.create) + ..aOS(2, _omitFieldNames ? '' : 'cookie') + ..aOS(3, _omitFieldNames ? '' : 'cookie2') + ..a<$core.int>(4, _omitFieldNames ? '' : 'errorCode', $pb.PbFieldType.O3) + ..aOS(5, _omitFieldNames ? '' : 'devId') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqSendMsg clone() => ReqSendMsg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqSendMsg copyWith(void Function(ReqSendMsg) updates) => super.copyWith((message) => updates(message as ReqSendMsg)) as ReqSendMsg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqSendMsg create() => ReqSendMsg._(); + ReqSendMsg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqSendMsg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqSendMsg? _defaultInstance; + + /// 消息内容 + @$pb.TagNumber(1) + $1.Msg get msg => $_getN(0); + @$pb.TagNumber(1) + set msg($1.Msg v) { $_setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasMsg() => $_has(0); + @$pb.TagNumber(1) + void clearMsg() => $_clearField(1); + @$pb.TagNumber(1) + $1.Msg ensureMsg() => $_ensure(0); + + @$pb.TagNumber(2) + $core.String get cookie => $_getSZ(1); + @$pb.TagNumber(2) + set cookie($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasCookie() => $_has(1); + @$pb.TagNumber(2) + void clearCookie() => $_clearField(2); + + @$pb.TagNumber(3) + $core.String get cookie2 => $_getSZ(2); + @$pb.TagNumber(3) + set cookie2($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasCookie2() => $_has(2); + @$pb.TagNumber(3) + void clearCookie2() => $_clearField(3); + + @$pb.TagNumber(4) + $core.int get errorCode => $_getIZ(3); + @$pb.TagNumber(4) + set errorCode($core.int v) { $_setSignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasErrorCode() => $_has(3); + @$pb.TagNumber(4) + void clearErrorCode() => $_clearField(4); + + @$pb.TagNumber(5) + $core.String get devId => $_getSZ(4); + @$pb.TagNumber(5) + set devId($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) + $core.bool hasDevId() => $_has(4); + @$pb.TagNumber(5) + void clearDevId() => $_clearField(5); +} + +/// 拉取会话详情-请求 +class ReqSessionDetail extends $pb.GeneratedMessage { + factory ReqSessionDetail({ + $fixnum.Int64? talkerId, + $core.int? sessionType, + $fixnum.Int64? uid, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + if (uid != null) { + $result.uid = uid; + } + return $result; + } + ReqSessionDetail._() : super(); + factory ReqSessionDetail.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqSessionDetail.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqSessionDetail', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'uid', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqSessionDetail clone() => ReqSessionDetail()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqSessionDetail copyWith(void Function(ReqSessionDetail) updates) => super.copyWith((message) => updates(message as ReqSessionDetail)) as ReqSessionDetail; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqSessionDetail create() => ReqSessionDetail._(); + ReqSessionDetail createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqSessionDetail getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqSessionDetail? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get sessionType => $_getIZ(1); + @$pb.TagNumber(2) + set sessionType($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSessionType() => $_has(1); + @$pb.TagNumber(2) + void clearSessionType() => $_clearField(2); + + @$pb.TagNumber(3) + $fixnum.Int64 get uid => $_getI64(2); + @$pb.TagNumber(3) + set uid($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasUid() => $_has(2); + @$pb.TagNumber(3) + void clearUid() => $_clearField(3); +} + +/// 批量拉取会话详情-请求 +class ReqSessionDetails extends $pb.GeneratedMessage { + factory ReqSessionDetails({ + $core.Iterable? sessIds, + }) { + final $result = create(); + if (sessIds != null) { + $result.sessIds.addAll(sessIds); + } + return $result; + } + ReqSessionDetails._() : super(); + factory ReqSessionDetails.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqSessionDetails.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqSessionDetails', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'sessIds', $pb.PbFieldType.PM, subBuilder: ReqSessionDetail.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') + ReqSessionDetails clone() => ReqSessionDetails()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqSessionDetails copyWith(void Function(ReqSessionDetails) updates) => super.copyWith((message) => updates(message as ReqSessionDetails)) as ReqSessionDetails; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqSessionDetails create() => ReqSessionDetails._(); + ReqSessionDetails createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqSessionDetails getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqSessionDetails? _defaultInstance; + + /// 会话详情请求列表 + @$pb.TagNumber(1) + $pb.PbList get sessIds => $_getList(0); +} + +/// 同步版本拉取消息-请求 +class ReqSessionMsg extends $pb.GeneratedMessage { + factory ReqSessionMsg({ + $fixnum.Int64? talkerId, + $core.int? sessionType, + $fixnum.Int64? endSeqno, + $fixnum.Int64? beginSeqno, + $core.int? size, + $core.int? order, + $core.String? devId, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + if (endSeqno != null) { + $result.endSeqno = endSeqno; + } + if (beginSeqno != null) { + $result.beginSeqno = beginSeqno; + } + if (size != null) { + $result.size = size; + } + if (order != null) { + $result.order = order; + } + if (devId != null) { + $result.devId = devId; + } + return $result; + } + ReqSessionMsg._() : super(); + factory ReqSessionMsg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqSessionMsg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqSessionMsg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.O3) + ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'endSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'beginSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(5, _omitFieldNames ? '' : 'size', $pb.PbFieldType.O3) + ..a<$core.int>(6, _omitFieldNames ? '' : 'order', $pb.PbFieldType.O3) + ..aOS(7, _omitFieldNames ? '' : 'devId') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqSessionMsg clone() => ReqSessionMsg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqSessionMsg copyWith(void Function(ReqSessionMsg) updates) => super.copyWith((message) => updates(message as ReqSessionMsg)) as ReqSessionMsg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqSessionMsg create() => ReqSessionMsg._(); + ReqSessionMsg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqSessionMsg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqSessionMsg? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get sessionType => $_getIZ(1); + @$pb.TagNumber(2) + set sessionType($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSessionType() => $_has(1); + @$pb.TagNumber(2) + void clearSessionType() => $_clearField(2); + + @$pb.TagNumber(3) + $fixnum.Int64 get endSeqno => $_getI64(2); + @$pb.TagNumber(3) + set endSeqno($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasEndSeqno() => $_has(2); + @$pb.TagNumber(3) + void clearEndSeqno() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get beginSeqno => $_getI64(3); + @$pb.TagNumber(4) + set beginSeqno($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasBeginSeqno() => $_has(3); + @$pb.TagNumber(4) + void clearBeginSeqno() => $_clearField(4); + + @$pb.TagNumber(5) + $core.int get size => $_getIZ(4); + @$pb.TagNumber(5) + set size($core.int v) { $_setSignedInt32(4, v); } + @$pb.TagNumber(5) + $core.bool hasSize() => $_has(4); + @$pb.TagNumber(5) + void clearSize() => $_clearField(5); + + @$pb.TagNumber(6) + $core.int get order => $_getIZ(5); + @$pb.TagNumber(6) + set order($core.int v) { $_setSignedInt32(5, v); } + @$pb.TagNumber(6) + $core.bool hasOrder() => $_has(5); + @$pb.TagNumber(6) + void clearOrder() => $_clearField(6); + + @$pb.TagNumber(7) + $core.String get devId => $_getSZ(6); + @$pb.TagNumber(7) + set devId($core.String v) { $_setString(6, v); } + @$pb.TagNumber(7) + $core.bool hasDevId() => $_has(6); + @$pb.TagNumber(7) + void clearDevId() => $_clearField(7); +} + +/// 置顶聊天-请求 +class ReqSetTop extends $pb.GeneratedMessage { + factory ReqSetTop({ + $fixnum.Int64? talkerId, + $core.int? sessionType, + $core.int? opType, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + if (opType != null) { + $result.opType = opType; + } + return $result; + } + ReqSetTop._() : super(); + factory ReqSetTop.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqSetTop.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqSetTop', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.OU3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'opType', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqSetTop clone() => ReqSetTop()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqSetTop copyWith(void Function(ReqSetTop) updates) => super.copyWith((message) => updates(message as ReqSetTop)) as ReqSetTop; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqSetTop create() => ReqSetTop._(); + ReqSetTop createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqSetTop getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqSetTop? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get sessionType => $_getIZ(1); + @$pb.TagNumber(2) + set sessionType($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSessionType() => $_has(1); + @$pb.TagNumber(2) + void clearSessionType() => $_clearField(2); + + /// + /// 0:置顶 1:取消置顶 + @$pb.TagNumber(3) + $core.int get opType => $_getIZ(2); + @$pb.TagNumber(3) + set opType($core.int v) { $_setUnsignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasOpType() => $_has(2); + @$pb.TagNumber(3) + void clearOpType() => $_clearField(3); +} + +/// 拉取最近私信分享列表-请求 +class ReqShareList extends $pb.GeneratedMessage { + factory ReqShareList({ + $core.int? size, + }) { + final $result = create(); + if (size != null) { + $result.size = size; + } + return $result; + } + ReqShareList._() : super(); + factory ReqShareList.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqShareList.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqShareList', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'size', $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') + ReqShareList clone() => ReqShareList()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqShareList copyWith(void Function(ReqShareList) updates) => super.copyWith((message) => updates(message as ReqShareList)) as ReqShareList; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqShareList create() => ReqShareList._(); + ReqShareList createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqShareList getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqShareList? _defaultInstance; + + /// 分页大小 最大20 + @$pb.TagNumber(1) + $core.int get size => $_getIZ(0); + @$pb.TagNumber(1) + set size($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasSize() => $_has(0); + @$pb.TagNumber(1) + void clearSize() => $_clearField(1); +} + +class ReqShowClearUnreadUI extends $pb.GeneratedMessage { + factory ReqShowClearUnreadUI({ + $core.int? unreadType, + $core.int? showUnfollowList, + $core.int? showDustbin, + }) { + final $result = create(); + if (unreadType != null) { + $result.unreadType = unreadType; + } + if (showUnfollowList != null) { + $result.showUnfollowList = showUnfollowList; + } + if (showDustbin != null) { + $result.showDustbin = showDustbin; + } + return $result; + } + ReqShowClearUnreadUI._() : super(); + factory ReqShowClearUnreadUI.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqShowClearUnreadUI.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqShowClearUnreadUI', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'unreadType', $pb.PbFieldType.O3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'showUnfollowList', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'showDustbin', $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') + ReqShowClearUnreadUI clone() => ReqShowClearUnreadUI()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqShowClearUnreadUI copyWith(void Function(ReqShowClearUnreadUI) updates) => super.copyWith((message) => updates(message as ReqShowClearUnreadUI)) as ReqShowClearUnreadUI; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqShowClearUnreadUI create() => ReqShowClearUnreadUI._(); + ReqShowClearUnreadUI createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqShowClearUnreadUI getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqShowClearUnreadUI? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get unreadType => $_getIZ(0); + @$pb.TagNumber(1) + set unreadType($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasUnreadType() => $_has(0); + @$pb.TagNumber(1) + void clearUnreadType() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get showUnfollowList => $_getIZ(1); + @$pb.TagNumber(2) + set showUnfollowList($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasShowUnfollowList() => $_has(1); + @$pb.TagNumber(2) + void clearShowUnfollowList() => $_clearField(2); + + @$pb.TagNumber(4) + $core.int get showDustbin => $_getIZ(2); + @$pb.TagNumber(4) + set showDustbin($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(4) + $core.bool hasShowDustbin() => $_has(2); + @$pb.TagNumber(4) + void clearShowDustbin() => $_clearField(4); +} + +/// 未读私信数-请求 +class ReqSingleUnread extends $pb.GeneratedMessage { + factory ReqSingleUnread({ + $core.int? unreadType, + $core.int? showUnfollowList, + $fixnum.Int64? uid, + $core.int? showDustbin, + }) { + final $result = create(); + if (unreadType != null) { + $result.unreadType = unreadType; + } + if (showUnfollowList != null) { + $result.showUnfollowList = showUnfollowList; + } + if (uid != null) { + $result.uid = uid; + } + if (showDustbin != null) { + $result.showDustbin = showDustbin; + } + return $result; + } + ReqSingleUnread._() : super(); + factory ReqSingleUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqSingleUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqSingleUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'unreadType', $pb.PbFieldType.O3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'showUnfollowList', $pb.PbFieldType.O3) + ..aInt64(3, _omitFieldNames ? '' : 'uid') + ..a<$core.int>(4, _omitFieldNames ? '' : 'showDustbin', $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') + ReqSingleUnread clone() => ReqSingleUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqSingleUnread copyWith(void Function(ReqSingleUnread) updates) => super.copyWith((message) => updates(message as ReqSingleUnread)) as ReqSingleUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqSingleUnread create() => ReqSingleUnread._(); + ReqSingleUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqSingleUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqSingleUnread? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get unreadType => $_getIZ(0); + @$pb.TagNumber(1) + set unreadType($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasUnreadType() => $_has(0); + @$pb.TagNumber(1) + void clearUnreadType() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get showUnfollowList => $_getIZ(1); + @$pb.TagNumber(2) + set showUnfollowList($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasShowUnfollowList() => $_has(1); + @$pb.TagNumber(2) + void clearShowUnfollowList() => $_clearField(2); + + @$pb.TagNumber(3) + $fixnum.Int64 get uid => $_getI64(2); + @$pb.TagNumber(3) + set uid($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasUid() => $_has(2); + @$pb.TagNumber(3) + void clearUid() => $_clearField(3); + + @$pb.TagNumber(4) + $core.int get showDustbin => $_getIZ(3); + @$pb.TagNumber(4) + set showDustbin($core.int v) { $_setSignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasShowDustbin() => $_has(3); + @$pb.TagNumber(4) + void clearShowDustbin() => $_clearField(4); +} + +/// -请求 +class ReqSpecificSingleUnread extends $pb.GeneratedMessage { + factory ReqSpecificSingleUnread({ + $core.Iterable? talkerSessions, + }) { + final $result = create(); + if (talkerSessions != null) { + $result.talkerSessions.addAll(talkerSessions); + } + return $result; + } + ReqSpecificSingleUnread._() : super(); + factory ReqSpecificSingleUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqSpecificSingleUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqSpecificSingleUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'talkerSessions', $pb.PbFieldType.PM, subBuilder: SimpleSession.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') + ReqSpecificSingleUnread clone() => ReqSpecificSingleUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqSpecificSingleUnread copyWith(void Function(ReqSpecificSingleUnread) updates) => super.copyWith((message) => updates(message as ReqSpecificSingleUnread)) as ReqSpecificSingleUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqSpecificSingleUnread create() => ReqSpecificSingleUnread._(); + ReqSpecificSingleUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqSpecificSingleUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqSpecificSingleUnread? _defaultInstance; + + /// 具体会话详情 + @$pb.TagNumber(1) + $pb.PbList get talkerSessions => $_getList(0); +} + +/// 确认同步进度-请求 +class ReqSyncAck extends $pb.GeneratedMessage { + factory ReqSyncAck({ + $fixnum.Int64? clientSeqno, + }) { + final $result = create(); + if (clientSeqno != null) { + $result.clientSeqno = clientSeqno; + } + return $result; + } + ReqSyncAck._() : super(); + factory ReqSyncAck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqSyncAck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqSyncAck', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'clientSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqSyncAck clone() => ReqSyncAck()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqSyncAck copyWith(void Function(ReqSyncAck) updates) => super.copyWith((message) => updates(message as ReqSyncAck)) as ReqSyncAck; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqSyncAck create() => ReqSyncAck._(); + ReqSyncAck createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqSyncAck getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqSyncAck? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get clientSeqno => $_getI64(0); + @$pb.TagNumber(1) + set clientSeqno($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasClientSeqno() => $_has(0); + @$pb.TagNumber(1) + void clearClientSeqno() => $_clearField(1); +} + +class ReqTotalUnread extends $pb.GeneratedMessage { + factory ReqTotalUnread({ + $core.int? unreadType, + $core.int? showUnfollowList, + $fixnum.Int64? uid, + $core.int? showDustbin, + $core.int? singleunreadOn, + $core.int? msgfeedOn, + $core.int? sysupOn, + }) { + final $result = create(); + if (unreadType != null) { + $result.unreadType = unreadType; + } + if (showUnfollowList != null) { + $result.showUnfollowList = showUnfollowList; + } + if (uid != null) { + $result.uid = uid; + } + if (showDustbin != null) { + $result.showDustbin = showDustbin; + } + if (singleunreadOn != null) { + $result.singleunreadOn = singleunreadOn; + } + if (msgfeedOn != null) { + $result.msgfeedOn = msgfeedOn; + } + if (sysupOn != null) { + $result.sysupOn = sysupOn; + } + return $result; + } + ReqTotalUnread._() : super(); + factory ReqTotalUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqTotalUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqTotalUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'unreadType', $pb.PbFieldType.O3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'showUnfollowList', $pb.PbFieldType.O3) + ..aInt64(3, _omitFieldNames ? '' : 'uid') + ..a<$core.int>(4, _omitFieldNames ? '' : 'showDustbin', $pb.PbFieldType.O3) + ..a<$core.int>(5, _omitFieldNames ? '' : 'singleunreadOn', $pb.PbFieldType.O3) + ..a<$core.int>(6, _omitFieldNames ? '' : 'msgfeedOn', $pb.PbFieldType.O3) + ..a<$core.int>(7, _omitFieldNames ? '' : 'sysupOn', $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') + ReqTotalUnread clone() => ReqTotalUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqTotalUnread copyWith(void Function(ReqTotalUnread) updates) => super.copyWith((message) => updates(message as ReqTotalUnread)) as ReqTotalUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqTotalUnread create() => ReqTotalUnread._(); + ReqTotalUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqTotalUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqTotalUnread? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get unreadType => $_getIZ(0); + @$pb.TagNumber(1) + set unreadType($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasUnreadType() => $_has(0); + @$pb.TagNumber(1) + void clearUnreadType() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get showUnfollowList => $_getIZ(1); + @$pb.TagNumber(2) + set showUnfollowList($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasShowUnfollowList() => $_has(1); + @$pb.TagNumber(2) + void clearShowUnfollowList() => $_clearField(2); + + @$pb.TagNumber(3) + $fixnum.Int64 get uid => $_getI64(2); + @$pb.TagNumber(3) + set uid($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasUid() => $_has(2); + @$pb.TagNumber(3) + void clearUid() => $_clearField(3); + + @$pb.TagNumber(4) + $core.int get showDustbin => $_getIZ(3); + @$pb.TagNumber(4) + set showDustbin($core.int v) { $_setSignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasShowDustbin() => $_has(3); + @$pb.TagNumber(4) + void clearShowDustbin() => $_clearField(4); + + @$pb.TagNumber(5) + $core.int get singleunreadOn => $_getIZ(4); + @$pb.TagNumber(5) + set singleunreadOn($core.int v) { $_setSignedInt32(4, v); } + @$pb.TagNumber(5) + $core.bool hasSingleunreadOn() => $_has(4); + @$pb.TagNumber(5) + void clearSingleunreadOn() => $_clearField(5); + + @$pb.TagNumber(6) + $core.int get msgfeedOn => $_getIZ(5); + @$pb.TagNumber(6) + set msgfeedOn($core.int v) { $_setSignedInt32(5, v); } + @$pb.TagNumber(6) + $core.bool hasMsgfeedOn() => $_has(5); + @$pb.TagNumber(6) + void clearMsgfeedOn() => $_clearField(6); + + @$pb.TagNumber(7) + $core.int get sysupOn => $_getIZ(6); + @$pb.TagNumber(7) + set sysupOn($core.int v) { $_setSignedInt32(6, v); } + @$pb.TagNumber(7) + $core.bool hasSysupOn() => $_has(6); + @$pb.TagNumber(7) + void clearSysupOn() => $_clearField(7); +} + +/// 更新已读进度-请求 +class ReqUpdateAck extends $pb.GeneratedMessage { + factory ReqUpdateAck({ + $fixnum.Int64? talkerId, + $core.int? sessionType, + $fixnum.Int64? ackSeqno, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + if (ackSeqno != null) { + $result.ackSeqno = ackSeqno; + } + return $result; + } + ReqUpdateAck._() : super(); + factory ReqUpdateAck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqUpdateAck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqUpdateAck', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'ackSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReqUpdateAck clone() => ReqUpdateAck()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqUpdateAck copyWith(void Function(ReqUpdateAck) updates) => super.copyWith((message) => updates(message as ReqUpdateAck)) as ReqUpdateAck; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqUpdateAck create() => ReqUpdateAck._(); + ReqUpdateAck createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqUpdateAck getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqUpdateAck? _defaultInstance; + + /// 聊天对象uid,可以为用户id或者为群id + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + /// 会话类型 + @$pb.TagNumber(2) + $core.int get sessionType => $_getIZ(1); + @$pb.TagNumber(2) + set sessionType($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSessionType() => $_has(1); + @$pb.TagNumber(2) + void clearSessionType() => $_clearField(2); + + /// 已读的最大seqno + @$pb.TagNumber(3) + $fixnum.Int64 get ackSeqno => $_getI64(2); + @$pb.TagNumber(3) + set ackSeqno($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasAckSeqno() => $_has(2); + @$pb.TagNumber(3) + void clearAckSeqno() => $_clearField(3); +} + +class ReqUpdateIntercept extends $pb.GeneratedMessage { + factory ReqUpdateIntercept({ + $fixnum.Int64? uid, + $fixnum.Int64? talkerId, + $core.int? status, + }) { + final $result = create(); + if (uid != null) { + $result.uid = uid; + } + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (status != null) { + $result.status = status; + } + return $result; + } + ReqUpdateIntercept._() : super(); + factory ReqUpdateIntercept.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqUpdateIntercept.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqUpdateIntercept', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'uid') + ..aInt64(2, _omitFieldNames ? '' : 'talkerId') + ..a<$core.int>(3, _omitFieldNames ? '' : 'status', $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') + ReqUpdateIntercept clone() => ReqUpdateIntercept()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqUpdateIntercept copyWith(void Function(ReqUpdateIntercept) updates) => super.copyWith((message) => updates(message as ReqUpdateIntercept)) as ReqUpdateIntercept; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqUpdateIntercept create() => ReqUpdateIntercept._(); + ReqUpdateIntercept createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqUpdateIntercept getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqUpdateIntercept? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get uid => $_getI64(0); + @$pb.TagNumber(1) + set uid($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasUid() => $_has(0); + @$pb.TagNumber(1) + void clearUid() => $_clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get talkerId => $_getI64(1); + @$pb.TagNumber(2) + set talkerId($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasTalkerId() => $_has(1); + @$pb.TagNumber(2) + void clearTalkerId() => $_clearField(2); + + @$pb.TagNumber(3) + $core.int get status => $_getIZ(2); + @$pb.TagNumber(3) + set status($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasStatus() => $_has(2); + @$pb.TagNumber(3) + void clearStatus() => $_clearField(3); +} + +class ReqUpdateTotalUnread extends $pb.GeneratedMessage { + factory ReqUpdateTotalUnread() => create(); + ReqUpdateTotalUnread._() : super(); + factory ReqUpdateTotalUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReqUpdateTotalUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReqUpdateTotalUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: 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') + ReqUpdateTotalUnread clone() => ReqUpdateTotalUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReqUpdateTotalUnread copyWith(void Function(ReqUpdateTotalUnread) updates) => super.copyWith((message) => updates(message as ReqUpdateTotalUnread)) as ReqUpdateTotalUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReqUpdateTotalUnread create() => ReqUpdateTotalUnread._(); + ReqUpdateTotalUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReqUpdateTotalUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReqUpdateTotalUnread? _defaultInstance; +} + +class RspCloseClearUnreadUI extends $pb.GeneratedMessage { + factory RspCloseClearUnreadUI() => create(); + RspCloseClearUnreadUI._() : super(); + factory RspCloseClearUnreadUI.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspCloseClearUnreadUI.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspCloseClearUnreadUI', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: 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') + RspCloseClearUnreadUI clone() => RspCloseClearUnreadUI()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspCloseClearUnreadUI copyWith(void Function(RspCloseClearUnreadUI) updates) => super.copyWith((message) => updates(message as RspCloseClearUnreadUI)) as RspCloseClearUnreadUI; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspCloseClearUnreadUI create() => RspCloseClearUnreadUI._(); + RspCloseClearUnreadUI createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspCloseClearUnreadUI getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspCloseClearUnreadUI? _defaultInstance; +} + +class RspGetMsg extends $pb.GeneratedMessage { + factory RspGetMsg({ + $core.Iterable<$1.Msg>? msg, + }) { + final $result = create(); + if (msg != null) { + $result.msg.addAll(msg); + } + return $result; + } + RspGetMsg._() : super(); + factory RspGetMsg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspGetMsg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspGetMsg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..pc<$1.Msg>(1, _omitFieldNames ? '' : 'msg', $pb.PbFieldType.PM, subBuilder: $1.Msg.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') + RspGetMsg clone() => RspGetMsg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspGetMsg copyWith(void Function(RspGetMsg) updates) => super.copyWith((message) => updates(message as RspGetMsg)) as RspGetMsg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspGetMsg create() => RspGetMsg._(); + RspGetMsg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspGetMsg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspGetMsg? _defaultInstance; + + @$pb.TagNumber(1) + $pb.PbList<$1.Msg> get msg => $_getList(0); +} + +class RspLiveInfo extends $pb.GeneratedMessage { + factory RspLiveInfo({ + $fixnum.Int64? liveStatus, + $core.String? jumpUrl, + }) { + final $result = create(); + if (liveStatus != null) { + $result.liveStatus = liveStatus; + } + if (jumpUrl != null) { + $result.jumpUrl = jumpUrl; + } + return $result; + } + RspLiveInfo._() : super(); + factory RspLiveInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspLiveInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspLiveInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'liveStatus') + ..aOS(2, _omitFieldNames ? '' : 'jumpUrl') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RspLiveInfo clone() => RspLiveInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspLiveInfo copyWith(void Function(RspLiveInfo) updates) => super.copyWith((message) => updates(message as RspLiveInfo)) as RspLiveInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspLiveInfo create() => RspLiveInfo._(); + RspLiveInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspLiveInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspLiveInfo? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get liveStatus => $_getI64(0); + @$pb.TagNumber(1) + set liveStatus($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasLiveStatus() => $_has(0); + @$pb.TagNumber(1) + void clearLiveStatus() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get jumpUrl => $_getSZ(1); + @$pb.TagNumber(2) + set jumpUrl($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasJumpUrl() => $_has(1); + @$pb.TagNumber(2) + void clearJumpUrl() => $_clearField(2); +} + +/// 我创建的应援团未读数-响应 +class RspMyGroupUnread extends $pb.GeneratedMessage { + factory RspMyGroupUnread({ + $core.int? unreadCount, + }) { + final $result = create(); + if (unreadCount != null) { + $result.unreadCount = unreadCount; + } + return $result; + } + RspMyGroupUnread._() : super(); + factory RspMyGroupUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspMyGroupUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspMyGroupUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'unreadCount', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RspMyGroupUnread clone() => RspMyGroupUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspMyGroupUnread copyWith(void Function(RspMyGroupUnread) updates) => super.copyWith((message) => updates(message as RspMyGroupUnread)) as RspMyGroupUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspMyGroupUnread create() => RspMyGroupUnread._(); + RspMyGroupUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspMyGroupUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspMyGroupUnread? _defaultInstance; + + /// 未读消息数 + @$pb.TagNumber(1) + $core.int get unreadCount => $_getIZ(0); + @$pb.TagNumber(1) + set unreadCount($core.int v) { $_setUnsignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasUnreadCount() => $_has(0); + @$pb.TagNumber(1) + void clearUnreadCount() => $_clearField(1); +} + +/// 同步关系-响应 +class RspRelationSync extends $pb.GeneratedMessage { + factory RspRelationSync({ + $core.int? full, + $core.Iterable<$1.RelationLog>? relationLogs, + $core.Iterable<$1.FriendRelation>? friendList, + $fixnum.Int64? serverRelationOplogSeqno, + $core.Iterable<$1.GroupRelation>? groupList, + }) { + final $result = create(); + if (full != null) { + $result.full = full; + } + if (relationLogs != null) { + $result.relationLogs.addAll(relationLogs); + } + if (friendList != null) { + $result.friendList.addAll(friendList); + } + if (serverRelationOplogSeqno != null) { + $result.serverRelationOplogSeqno = serverRelationOplogSeqno; + } + if (groupList != null) { + $result.groupList.addAll(groupList); + } + return $result; + } + RspRelationSync._() : super(); + factory RspRelationSync.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspRelationSync.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspRelationSync', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'full', $pb.PbFieldType.O3) + ..pc<$1.RelationLog>(2, _omitFieldNames ? '' : 'relationLogs', $pb.PbFieldType.PM, subBuilder: $1.RelationLog.create) + ..pc<$1.FriendRelation>(3, _omitFieldNames ? '' : 'friendList', $pb.PbFieldType.PM, subBuilder: $1.FriendRelation.create) + ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'serverRelationOplogSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..pc<$1.GroupRelation>(5, _omitFieldNames ? '' : 'groupList', $pb.PbFieldType.PM, subBuilder: $1.GroupRelation.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') + RspRelationSync clone() => RspRelationSync()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspRelationSync copyWith(void Function(RspRelationSync) updates) => super.copyWith((message) => updates(message as RspRelationSync)) as RspRelationSync; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspRelationSync create() => RspRelationSync._(); + RspRelationSync createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspRelationSync getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspRelationSync? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get full => $_getIZ(0); + @$pb.TagNumber(1) + set full($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasFull() => $_has(0); + @$pb.TagNumber(1) + void clearFull() => $_clearField(1); + + /// 增量日志 + @$pb.TagNumber(2) + $pb.PbList<$1.RelationLog> get relationLogs => $_getList(1); + + /// 全量列表 + @$pb.TagNumber(3) + $pb.PbList<$1.FriendRelation> get friendList => $_getList(2); + + /// 服务器端最大的relation seqno + @$pb.TagNumber(4) + $fixnum.Int64 get serverRelationOplogSeqno => $_getI64(3); + @$pb.TagNumber(4) + set serverRelationOplogSeqno($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasServerRelationOplogSeqno() => $_has(3); + @$pb.TagNumber(4) + void clearServerRelationOplogSeqno() => $_clearField(4); + + /// 全量列表 + @$pb.TagNumber(5) + $pb.PbList<$1.GroupRelation> get groupList => $_getList(4); +} + +/// 发送消息-响应 +class RspSendMsg extends $pb.GeneratedMessage { + factory RspSendMsg({ + $fixnum.Int64? msgKey, + $core.Iterable? eInfos, + $core.String? msgContent, + $1.KeyHitInfos? keyHitInfos, + }) { + final $result = create(); + if (msgKey != null) { + $result.msgKey = msgKey; + } + if (eInfos != null) { + $result.eInfos.addAll(eInfos); + } + if (msgContent != null) { + $result.msgContent = msgContent; + } + if (keyHitInfos != null) { + $result.keyHitInfos = keyHitInfos; + } + return $result; + } + RspSendMsg._() : super(); + factory RspSendMsg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspSendMsg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspSendMsg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'msgKey', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..pc(2, _omitFieldNames ? '' : 'eInfos', $pb.PbFieldType.PM, subBuilder: EmotionInfo.create) + ..aOS(3, _omitFieldNames ? '' : 'msgContent') + ..aOM<$1.KeyHitInfos>(4, _omitFieldNames ? '' : 'keyHitInfos', subBuilder: $1.KeyHitInfos.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') + RspSendMsg clone() => RspSendMsg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspSendMsg copyWith(void Function(RspSendMsg) updates) => super.copyWith((message) => updates(message as RspSendMsg)) as RspSendMsg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspSendMsg create() => RspSendMsg._(); + RspSendMsg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspSendMsg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspSendMsg? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get msgKey => $_getI64(0); + @$pb.TagNumber(1) + set msgKey($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasMsgKey() => $_has(0); + @$pb.TagNumber(1) + void clearMsgKey() => $_clearField(1); + + /// 表情资源信息 + @$pb.TagNumber(2) + $pb.PbList get eInfos => $_getList(1); + + @$pb.TagNumber(3) + $core.String get msgContent => $_getSZ(2); + @$pb.TagNumber(3) + set msgContent($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasMsgContent() => $_has(2); + @$pb.TagNumber(3) + void clearMsgContent() => $_clearField(3); + + @$pb.TagNumber(4) + $1.KeyHitInfos get keyHitInfos => $_getN(3); + @$pb.TagNumber(4) + set keyHitInfos($1.KeyHitInfos v) { $_setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasKeyHitInfos() => $_has(3); + @$pb.TagNumber(4) + void clearKeyHitInfos() => $_clearField(4); + @$pb.TagNumber(4) + $1.KeyHitInfos ensureKeyHitInfos() => $_ensure(3); +} + +/// 批量拉取会话详情-响应 +class RspSessionDetails extends $pb.GeneratedMessage { + factory RspSessionDetails({ + $core.Iterable<$1.SessionInfo>? sessInfos, + }) { + final $result = create(); + if (sessInfos != null) { + $result.sessInfos.addAll(sessInfos); + } + return $result; + } + RspSessionDetails._() : super(); + factory RspSessionDetails.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspSessionDetails.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspSessionDetails', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..pc<$1.SessionInfo>(1, _omitFieldNames ? '' : 'sessInfos', $pb.PbFieldType.PM, subBuilder: $1.SessionInfo.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') + RspSessionDetails clone() => RspSessionDetails()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspSessionDetails copyWith(void Function(RspSessionDetails) updates) => super.copyWith((message) => updates(message as RspSessionDetails)) as RspSessionDetails; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspSessionDetails create() => RspSessionDetails._(); + RspSessionDetails createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspSessionDetails getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspSessionDetails? _defaultInstance; + + /// 会话详情列表 + @$pb.TagNumber(1) + $pb.PbList<$1.SessionInfo> get sessInfos => $_getList(0); +} + +/// 同步版本拉取消息-响应 +class RspSessionMsg extends $pb.GeneratedMessage { + factory RspSessionMsg({ + $core.Iterable<$1.Msg>? messages, + $core.int? hasMore, + $fixnum.Int64? minSeqno, + $fixnum.Int64? maxSeqno, + $core.Iterable? eInfos, + }) { + final $result = create(); + if (messages != null) { + $result.messages.addAll(messages); + } + if (hasMore != null) { + $result.hasMore = hasMore; + } + if (minSeqno != null) { + $result.minSeqno = minSeqno; + } + if (maxSeqno != null) { + $result.maxSeqno = maxSeqno; + } + if (eInfos != null) { + $result.eInfos.addAll(eInfos); + } + return $result; + } + RspSessionMsg._() : super(); + factory RspSessionMsg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspSessionMsg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspSessionMsg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..pc<$1.Msg>(1, _omitFieldNames ? '' : 'messages', $pb.PbFieldType.PM, subBuilder: $1.Msg.create) + ..a<$core.int>(2, _omitFieldNames ? '' : 'hasMore', $pb.PbFieldType.O3) + ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'minSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'maxSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..pc(5, _omitFieldNames ? '' : 'eInfos', $pb.PbFieldType.PM, subBuilder: EmotionInfo.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') + RspSessionMsg clone() => RspSessionMsg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspSessionMsg copyWith(void Function(RspSessionMsg) updates) => super.copyWith((message) => updates(message as RspSessionMsg)) as RspSessionMsg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspSessionMsg create() => RspSessionMsg._(); + RspSessionMsg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspSessionMsg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspSessionMsg? _defaultInstance; + + @$pb.TagNumber(1) + $pb.PbList<$1.Msg> get messages => $_getList(0); + + @$pb.TagNumber(2) + $core.int get hasMore => $_getIZ(1); + @$pb.TagNumber(2) + set hasMore($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasHasMore() => $_has(1); + @$pb.TagNumber(2) + void clearHasMore() => $_clearField(2); + + @$pb.TagNumber(3) + $fixnum.Int64 get minSeqno => $_getI64(2); + @$pb.TagNumber(3) + set minSeqno($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasMinSeqno() => $_has(2); + @$pb.TagNumber(3) + void clearMinSeqno() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get maxSeqno => $_getI64(3); + @$pb.TagNumber(4) + set maxSeqno($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasMaxSeqno() => $_has(3); + @$pb.TagNumber(4) + void clearMaxSeqno() => $_clearField(4); + + /// 表情资源信息 + @$pb.TagNumber(5) + $pb.PbList get eInfos => $_getList(4); +} + +/// 拉取消息-响应 +class RspSessions extends $pb.GeneratedMessage { + factory RspSessions({ + $core.Iterable<$1.SessionInfo>? sessionList, + $core.int? hasMore, + $core.bool? antiDisturbCleaning, + $core.int? isAddressListEmpty, + $pb.PbMap<$core.int, $fixnum.Int64>? systemMsg, + $core.bool? showLevel, + }) { + final $result = create(); + if (sessionList != null) { + $result.sessionList.addAll(sessionList); + } + if (hasMore != null) { + $result.hasMore = hasMore; + } + if (antiDisturbCleaning != null) { + $result.antiDisturbCleaning = antiDisturbCleaning; + } + if (isAddressListEmpty != null) { + $result.isAddressListEmpty = isAddressListEmpty; + } + if (systemMsg != null) { + $result.systemMsg.addAll(systemMsg); + } + if (showLevel != null) { + $result.showLevel = showLevel; + } + return $result; + } + RspSessions._() : super(); + factory RspSessions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspSessions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspSessions', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..pc<$1.SessionInfo>(1, _omitFieldNames ? '' : 'sessionList', $pb.PbFieldType.PM, subBuilder: $1.SessionInfo.create) + ..a<$core.int>(2, _omitFieldNames ? '' : 'hasMore', $pb.PbFieldType.OU3) + ..aOB(3, _omitFieldNames ? '' : 'antiDisturbCleaning') + ..a<$core.int>(4, _omitFieldNames ? '' : 'isAddressListEmpty', $pb.PbFieldType.O3) + ..m<$core.int, $fixnum.Int64>(5, _omitFieldNames ? '' : 'systemMsg', entryClassName: 'RspSessions.SystemMsgEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.O6, packageName: const $pb.PackageName('bilibili.im.interface.v1')) + ..aOB(6, _omitFieldNames ? '' : 'showLevel') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RspSessions clone() => RspSessions()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspSessions copyWith(void Function(RspSessions) updates) => super.copyWith((message) => updates(message as RspSessions)) as RspSessions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspSessions create() => RspSessions._(); + RspSessions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspSessions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspSessions? _defaultInstance; + + @$pb.TagNumber(1) + $pb.PbList<$1.SessionInfo> get sessionList => $_getList(0); + + @$pb.TagNumber(2) + $core.int get hasMore => $_getIZ(1); + @$pb.TagNumber(2) + set hasMore($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasHasMore() => $_has(1); + @$pb.TagNumber(2) + void clearHasMore() => $_clearField(2); + + /// 标记反垃圾会话是否在清理中 + @$pb.TagNumber(3) + $core.bool get antiDisturbCleaning => $_getBF(2); + @$pb.TagNumber(3) + set antiDisturbCleaning($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) + $core.bool hasAntiDisturbCleaning() => $_has(2); + @$pb.TagNumber(3) + void clearAntiDisturbCleaning() => $_clearField(3); + + /// 当session_list为空时,会返回该字段用于判断通讯录是否为空,1表示空,0表示非空 + @$pb.TagNumber(4) + $core.int get isAddressListEmpty => $_getIZ(3); + @$pb.TagNumber(4) + set isAddressListEmpty($core.int v) { $_setSignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasIsAddressListEmpty() => $_has(3); + @$pb.TagNumber(4) + void clearIsAddressListEmpty() => $_clearField(4); + + @$pb.TagNumber(5) + $pb.PbMap<$core.int, $fixnum.Int64> get systemMsg => $_getMap(4); + + @$pb.TagNumber(6) + $core.bool get showLevel => $_getBF(5); + @$pb.TagNumber(6) + set showLevel($core.bool v) { $_setBool(5, v); } + @$pb.TagNumber(6) + $core.bool hasShowLevel() => $_has(5); + @$pb.TagNumber(6) + void clearShowLevel() => $_clearField(6); +} + +/// 拉取最近私信分享列表-响应 +class RspShareList extends $pb.GeneratedMessage { + factory RspShareList({ + $core.Iterable? sessionList, + $core.int? isAddressListEmpty, + }) { + final $result = create(); + if (sessionList != null) { + $result.sessionList.addAll(sessionList); + } + if (isAddressListEmpty != null) { + $result.isAddressListEmpty = isAddressListEmpty; + } + return $result; + } + RspShareList._() : super(); + factory RspShareList.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspShareList.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspShareList', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'sessionList', $pb.PbFieldType.PM, subBuilder: ShareSessionInfo.create) + ..a<$core.int>(2, _omitFieldNames ? '' : 'IsAddressListEmpty', $pb.PbFieldType.O3, protoName: 'IsAddressListEmpty') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RspShareList clone() => RspShareList()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspShareList copyWith(void Function(RspShareList) updates) => super.copyWith((message) => updates(message as RspShareList)) as RspShareList; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspShareList create() => RspShareList._(); + RspShareList createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspShareList getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspShareList? _defaultInstance; + + /// 最近会话列表 + @$pb.TagNumber(1) + $pb.PbList get sessionList => $_getList(0); + + @$pb.TagNumber(2) + $core.int get isAddressListEmpty => $_getIZ(1); + @$pb.TagNumber(2) + set isAddressListEmpty($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasIsAddressListEmpty() => $_has(1); + @$pb.TagNumber(2) + void clearIsAddressListEmpty() => $_clearField(2); +} + +class RspShowClearUnreadUI extends $pb.GeneratedMessage { + factory RspShowClearUnreadUI({ + $core.bool? display, + $core.String? text, + }) { + final $result = create(); + if (display != null) { + $result.display = display; + } + if (text != null) { + $result.text = text; + } + return $result; + } + RspShowClearUnreadUI._() : super(); + factory RspShowClearUnreadUI.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspShowClearUnreadUI.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspShowClearUnreadUI', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'display') + ..aOS(2, _omitFieldNames ? '' : 'text') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RspShowClearUnreadUI clone() => RspShowClearUnreadUI()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspShowClearUnreadUI copyWith(void Function(RspShowClearUnreadUI) updates) => super.copyWith((message) => updates(message as RspShowClearUnreadUI)) as RspShowClearUnreadUI; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspShowClearUnreadUI create() => RspShowClearUnreadUI._(); + RspShowClearUnreadUI createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspShowClearUnreadUI getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspShowClearUnreadUI? _defaultInstance; + + @$pb.TagNumber(1) + $core.bool get display => $_getBF(0); + @$pb.TagNumber(1) + set display($core.bool v) { $_setBool(0, v); } + @$pb.TagNumber(1) + $core.bool hasDisplay() => $_has(0); + @$pb.TagNumber(1) + void clearDisplay() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get text => $_getSZ(1); + @$pb.TagNumber(2) + set text($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasText() => $_has(1); + @$pb.TagNumber(2) + void clearText() => $_clearField(2); +} + +/// 未读私信数-响应 +class RspSingleUnread extends $pb.GeneratedMessage { + factory RspSingleUnread({ + $fixnum.Int64? unfollowUnread, + $fixnum.Int64? followUnread, + $core.int? unfollowPushMsg, + $core.int? dustbinPushMsg, + $fixnum.Int64? dustbinUnread, + $fixnum.Int64? bizMsgUnfollowUnread, + $fixnum.Int64? bizMsgFollowUnread, + }) { + final $result = create(); + if (unfollowUnread != null) { + $result.unfollowUnread = unfollowUnread; + } + if (followUnread != null) { + $result.followUnread = followUnread; + } + if (unfollowPushMsg != null) { + $result.unfollowPushMsg = unfollowPushMsg; + } + if (dustbinPushMsg != null) { + $result.dustbinPushMsg = dustbinPushMsg; + } + if (dustbinUnread != null) { + $result.dustbinUnread = dustbinUnread; + } + if (bizMsgUnfollowUnread != null) { + $result.bizMsgUnfollowUnread = bizMsgUnfollowUnread; + } + if (bizMsgFollowUnread != null) { + $result.bizMsgFollowUnread = bizMsgFollowUnread; + } + return $result; + } + RspSingleUnread._() : super(); + factory RspSingleUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspSingleUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspSingleUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'unfollowUnread', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'followUnread', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(3, _omitFieldNames ? '' : 'unfollowPushMsg', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'dustbinPushMsg', $pb.PbFieldType.O3) + ..aInt64(5, _omitFieldNames ? '' : 'dustbinUnread') + ..aInt64(6, _omitFieldNames ? '' : 'bizMsgUnfollowUnread') + ..aInt64(7, _omitFieldNames ? '' : 'bizMsgFollowUnread') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RspSingleUnread clone() => RspSingleUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspSingleUnread copyWith(void Function(RspSingleUnread) updates) => super.copyWith((message) => updates(message as RspSingleUnread)) as RspSingleUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspSingleUnread create() => RspSingleUnread._(); + RspSingleUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspSingleUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspSingleUnread? _defaultInstance; + + /// 未关注用户私信数 + @$pb.TagNumber(1) + $fixnum.Int64 get unfollowUnread => $_getI64(0); + @$pb.TagNumber(1) + set unfollowUnread($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasUnfollowUnread() => $_has(0); + @$pb.TagNumber(1) + void clearUnfollowUnread() => $_clearField(1); + + /// 已关注用户私信数 + @$pb.TagNumber(2) + $fixnum.Int64 get followUnread => $_getI64(1); + @$pb.TagNumber(2) + set followUnread($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasFollowUnread() => $_has(1); + @$pb.TagNumber(2) + void clearFollowUnread() => $_clearField(2); + + /// 未关注人列表是否有新业务通知 + @$pb.TagNumber(3) + $core.int get unfollowPushMsg => $_getIZ(2); + @$pb.TagNumber(3) + set unfollowPushMsg($core.int v) { $_setUnsignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasUnfollowPushMsg() => $_has(2); + @$pb.TagNumber(3) + void clearUnfollowPushMsg() => $_clearField(3); + + @$pb.TagNumber(4) + $core.int get dustbinPushMsg => $_getIZ(3); + @$pb.TagNumber(4) + set dustbinPushMsg($core.int v) { $_setSignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasDustbinPushMsg() => $_has(3); + @$pb.TagNumber(4) + void clearDustbinPushMsg() => $_clearField(4); + + @$pb.TagNumber(5) + $fixnum.Int64 get dustbinUnread => $_getI64(4); + @$pb.TagNumber(5) + set dustbinUnread($fixnum.Int64 v) { $_setInt64(4, v); } + @$pb.TagNumber(5) + $core.bool hasDustbinUnread() => $_has(4); + @$pb.TagNumber(5) + void clearDustbinUnread() => $_clearField(5); + + @$pb.TagNumber(6) + $fixnum.Int64 get bizMsgUnfollowUnread => $_getI64(5); + @$pb.TagNumber(6) + set bizMsgUnfollowUnread($fixnum.Int64 v) { $_setInt64(5, v); } + @$pb.TagNumber(6) + $core.bool hasBizMsgUnfollowUnread() => $_has(5); + @$pb.TagNumber(6) + void clearBizMsgUnfollowUnread() => $_clearField(6); + + @$pb.TagNumber(7) + $fixnum.Int64 get bizMsgFollowUnread => $_getI64(6); + @$pb.TagNumber(7) + set bizMsgFollowUnread($fixnum.Int64 v) { $_setInt64(6, v); } + @$pb.TagNumber(7) + $core.bool hasBizMsgFollowUnread() => $_has(6); + @$pb.TagNumber(7) + void clearBizMsgFollowUnread() => $_clearField(7); +} + +/// -响应 +class RspSpecificSingleUnread extends $pb.GeneratedMessage { + factory RspSpecificSingleUnread({ + $pb.PbMap<$fixnum.Int64, $fixnum.Int64>? talkerUnreadCnt, + $fixnum.Int64? allUnreadCnt, + }) { + final $result = create(); + if (talkerUnreadCnt != null) { + $result.talkerUnreadCnt.addAll(talkerUnreadCnt); + } + if (allUnreadCnt != null) { + $result.allUnreadCnt = allUnreadCnt; + } + return $result; + } + RspSpecificSingleUnread._() : super(); + factory RspSpecificSingleUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspSpecificSingleUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspSpecificSingleUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..m<$fixnum.Int64, $fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerUnreadCnt', protoName: 'talkerUnreadCnt', entryClassName: 'RspSpecificSingleUnread.TalkerUnreadCntEntry', keyFieldType: $pb.PbFieldType.OU6, valueFieldType: $pb.PbFieldType.OU6, packageName: const $pb.PackageName('bilibili.im.interface.v1')) + ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'allUnreadCnt', $pb.PbFieldType.OU6, protoName: 'allUnreadCnt', defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RspSpecificSingleUnread clone() => RspSpecificSingleUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspSpecificSingleUnread copyWith(void Function(RspSpecificSingleUnread) updates) => super.copyWith((message) => updates(message as RspSpecificSingleUnread)) as RspSpecificSingleUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspSpecificSingleUnread create() => RspSpecificSingleUnread._(); + RspSpecificSingleUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspSpecificSingleUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspSpecificSingleUnread? _defaultInstance; + + /// key -> 用户uid, value ->未读数 + @$pb.TagNumber(1) + $pb.PbMap<$fixnum.Int64, $fixnum.Int64> get talkerUnreadCnt => $_getMap(0); + + /// 总未读数 + @$pb.TagNumber(2) + $fixnum.Int64 get allUnreadCnt => $_getI64(1); + @$pb.TagNumber(2) + set allUnreadCnt($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasAllUnreadCnt() => $_has(1); + @$pb.TagNumber(2) + void clearAllUnreadCnt() => $_clearField(2); +} + +/// 确认同步进度-响应 +class RspSyncAck extends $pb.GeneratedMessage { + factory RspSyncAck() => create(); + RspSyncAck._() : super(); + factory RspSyncAck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspSyncAck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspSyncAck', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: 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') + RspSyncAck clone() => RspSyncAck()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspSyncAck copyWith(void Function(RspSyncAck) updates) => super.copyWith((message) => updates(message as RspSyncAck)) as RspSyncAck; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspSyncAck create() => RspSyncAck._(); + RspSyncAck createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspSyncAck getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspSyncAck? _defaultInstance; +} + +class RspTotalUnread extends $pb.GeneratedMessage { + factory RspTotalUnread({ + SessionSingleUnreadRsp? sessionSingleUnread, + MsgFeedUnreadRsp? msgFeedUnread, + SysMsgInterfaceLastMsgRsp? sysMsgInterfaceLastMsg, + $core.int? totalUnread, + }) { + final $result = create(); + if (sessionSingleUnread != null) { + $result.sessionSingleUnread = sessionSingleUnread; + } + if (msgFeedUnread != null) { + $result.msgFeedUnread = msgFeedUnread; + } + if (sysMsgInterfaceLastMsg != null) { + $result.sysMsgInterfaceLastMsg = sysMsgInterfaceLastMsg; + } + if (totalUnread != null) { + $result.totalUnread = totalUnread; + } + return $result; + } + RspTotalUnread._() : super(); + factory RspTotalUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspTotalUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspTotalUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'sessionSingleUnread', subBuilder: SessionSingleUnreadRsp.create) + ..aOM(2, _omitFieldNames ? '' : 'msgFeedUnread', subBuilder: MsgFeedUnreadRsp.create) + ..aOM(3, _omitFieldNames ? '' : 'sysMsgInterfaceLastMsg', subBuilder: SysMsgInterfaceLastMsgRsp.create) + ..a<$core.int>(4, _omitFieldNames ? '' : 'totalUnread', $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') + RspTotalUnread clone() => RspTotalUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspTotalUnread copyWith(void Function(RspTotalUnread) updates) => super.copyWith((message) => updates(message as RspTotalUnread)) as RspTotalUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspTotalUnread create() => RspTotalUnread._(); + RspTotalUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspTotalUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspTotalUnread? _defaultInstance; + + @$pb.TagNumber(1) + SessionSingleUnreadRsp get sessionSingleUnread => $_getN(0); + @$pb.TagNumber(1) + set sessionSingleUnread(SessionSingleUnreadRsp v) { $_setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasSessionSingleUnread() => $_has(0); + @$pb.TagNumber(1) + void clearSessionSingleUnread() => $_clearField(1); + @$pb.TagNumber(1) + SessionSingleUnreadRsp ensureSessionSingleUnread() => $_ensure(0); + + @$pb.TagNumber(2) + MsgFeedUnreadRsp get msgFeedUnread => $_getN(1); + @$pb.TagNumber(2) + set msgFeedUnread(MsgFeedUnreadRsp v) { $_setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasMsgFeedUnread() => $_has(1); + @$pb.TagNumber(2) + void clearMsgFeedUnread() => $_clearField(2); + @$pb.TagNumber(2) + MsgFeedUnreadRsp ensureMsgFeedUnread() => $_ensure(1); + + @$pb.TagNumber(3) + SysMsgInterfaceLastMsgRsp get sysMsgInterfaceLastMsg => $_getN(2); + @$pb.TagNumber(3) + set sysMsgInterfaceLastMsg(SysMsgInterfaceLastMsgRsp v) { $_setField(3, v); } + @$pb.TagNumber(3) + $core.bool hasSysMsgInterfaceLastMsg() => $_has(2); + @$pb.TagNumber(3) + void clearSysMsgInterfaceLastMsg() => $_clearField(3); + @$pb.TagNumber(3) + SysMsgInterfaceLastMsgRsp ensureSysMsgInterfaceLastMsg() => $_ensure(2); + + @$pb.TagNumber(4) + $core.int get totalUnread => $_getIZ(3); + @$pb.TagNumber(4) + set totalUnread($core.int v) { $_setSignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasTotalUnread() => $_has(3); + @$pb.TagNumber(4) + void clearTotalUnread() => $_clearField(4); +} + +class RspUpdateTotalUnread extends $pb.GeneratedMessage { + factory RspUpdateTotalUnread() => create(); + RspUpdateTotalUnread._() : super(); + factory RspUpdateTotalUnread.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RspUpdateTotalUnread.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RspUpdateTotalUnread', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: 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') + RspUpdateTotalUnread clone() => RspUpdateTotalUnread()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RspUpdateTotalUnread copyWith(void Function(RspUpdateTotalUnread) updates) => super.copyWith((message) => updates(message as RspUpdateTotalUnread)) as RspUpdateTotalUnread; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RspUpdateTotalUnread create() => RspUpdateTotalUnread._(); + RspUpdateTotalUnread createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RspUpdateTotalUnread getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RspUpdateTotalUnread? _defaultInstance; +} + +class SessionSingleUnreadRsp extends $pb.GeneratedMessage { + factory SessionSingleUnreadRsp({ + $fixnum.Int64? unfollowUnread, + $fixnum.Int64? followUnread, + $core.int? unfollowPushMsg, + $core.int? dustbinPushMsg, + $fixnum.Int64? dustbinUnread, + }) { + final $result = create(); + if (unfollowUnread != null) { + $result.unfollowUnread = unfollowUnread; + } + if (followUnread != null) { + $result.followUnread = followUnread; + } + if (unfollowPushMsg != null) { + $result.unfollowPushMsg = unfollowPushMsg; + } + if (dustbinPushMsg != null) { + $result.dustbinPushMsg = dustbinPushMsg; + } + if (dustbinUnread != null) { + $result.dustbinUnread = dustbinUnread; + } + return $result; + } + SessionSingleUnreadRsp._() : super(); + factory SessionSingleUnreadRsp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SessionSingleUnreadRsp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SessionSingleUnreadRsp', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'unfollowUnread') + ..aInt64(2, _omitFieldNames ? '' : 'followUnread') + ..a<$core.int>(3, _omitFieldNames ? '' : 'unfollowPushMsg', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'dustbinPushMsg', $pb.PbFieldType.O3) + ..aInt64(5, _omitFieldNames ? '' : 'dustbinUnread') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SessionSingleUnreadRsp clone() => SessionSingleUnreadRsp()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SessionSingleUnreadRsp copyWith(void Function(SessionSingleUnreadRsp) updates) => super.copyWith((message) => updates(message as SessionSingleUnreadRsp)) as SessionSingleUnreadRsp; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SessionSingleUnreadRsp create() => SessionSingleUnreadRsp._(); + SessionSingleUnreadRsp createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SessionSingleUnreadRsp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SessionSingleUnreadRsp? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get unfollowUnread => $_getI64(0); + @$pb.TagNumber(1) + set unfollowUnread($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasUnfollowUnread() => $_has(0); + @$pb.TagNumber(1) + void clearUnfollowUnread() => $_clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get followUnread => $_getI64(1); + @$pb.TagNumber(2) + set followUnread($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasFollowUnread() => $_has(1); + @$pb.TagNumber(2) + void clearFollowUnread() => $_clearField(2); + + @$pb.TagNumber(3) + $core.int get unfollowPushMsg => $_getIZ(2); + @$pb.TagNumber(3) + set unfollowPushMsg($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasUnfollowPushMsg() => $_has(2); + @$pb.TagNumber(3) + void clearUnfollowPushMsg() => $_clearField(3); + + @$pb.TagNumber(4) + $core.int get dustbinPushMsg => $_getIZ(3); + @$pb.TagNumber(4) + set dustbinPushMsg($core.int v) { $_setSignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasDustbinPushMsg() => $_has(3); + @$pb.TagNumber(4) + void clearDustbinPushMsg() => $_clearField(4); + + @$pb.TagNumber(5) + $fixnum.Int64 get dustbinUnread => $_getI64(4); + @$pb.TagNumber(5) + set dustbinUnread($fixnum.Int64 v) { $_setInt64(4, v); } + @$pb.TagNumber(5) + $core.bool hasDustbinUnread() => $_has(4); + @$pb.TagNumber(5) + void clearDustbinUnread() => $_clearField(5); +} + +/// 会话信息,用于私信分享 +class ShareSessionInfo extends $pb.GeneratedMessage { + factory ShareSessionInfo({ + $fixnum.Int64? talkerId, + $core.String? talkerUname, + $core.String? talkerIcon, + $core.int? officialType, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (talkerUname != null) { + $result.talkerUname = talkerUname; + } + if (talkerIcon != null) { + $result.talkerIcon = talkerIcon; + } + if (officialType != null) { + $result.officialType = officialType; + } + return $result; + } + ShareSessionInfo._() : super(); + factory ShareSessionInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ShareSessionInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ShareSessionInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOS(2, _omitFieldNames ? '' : 'talkerUname') + ..aOS(3, _omitFieldNames ? '' : 'talkerIcon') + ..a<$core.int>(4, _omitFieldNames ? '' : 'officialType', $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') + ShareSessionInfo clone() => ShareSessionInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ShareSessionInfo copyWith(void Function(ShareSessionInfo) updates) => super.copyWith((message) => updates(message as ShareSessionInfo)) as ShareSessionInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ShareSessionInfo create() => ShareSessionInfo._(); + ShareSessionInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ShareSessionInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ShareSessionInfo? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get talkerUname => $_getSZ(1); + @$pb.TagNumber(2) + set talkerUname($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasTalkerUname() => $_has(1); + @$pb.TagNumber(2) + void clearTalkerUname() => $_clearField(2); + + @$pb.TagNumber(3) + $core.String get talkerIcon => $_getSZ(2); + @$pb.TagNumber(3) + set talkerIcon($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasTalkerIcon() => $_has(2); + @$pb.TagNumber(3) + void clearTalkerIcon() => $_clearField(3); + + /// 认证信息 + /// -1: 无认证 0:个人认证 1:机构认证 + @$pb.TagNumber(4) + $core.int get officialType => $_getIZ(3); + @$pb.TagNumber(4) + set officialType($core.int v) { $_setSignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasOfficialType() => $_has(3); + @$pb.TagNumber(4) + void clearOfficialType() => $_clearField(4); +} + +class SimpleSession extends $pb.GeneratedMessage { + factory SimpleSession({ + $fixnum.Int64? talkerId, + $core.int? sessionType, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + return $result; + } + SimpleSession._() : super(); + factory SimpleSession.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SimpleSession.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SimpleSession', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SimpleSession clone() => SimpleSession()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SimpleSession copyWith(void Function(SimpleSession) updates) => super.copyWith((message) => updates(message as SimpleSession)) as SimpleSession; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SimpleSession create() => SimpleSession._(); + SimpleSession createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SimpleSession getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SimpleSession? _defaultInstance; + + /// 聊天对象uid,可以为用户id或者为群id + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + /// 会话类型 + @$pb.TagNumber(2) + $core.int get sessionType => $_getIZ(1); + @$pb.TagNumber(2) + set sessionType($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSessionType() => $_has(1); + @$pb.TagNumber(2) + void clearSessionType() => $_clearField(2); +} + +class SysMsgInterfaceLastMsgRsp extends $pb.GeneratedMessage { + factory SysMsgInterfaceLastMsgRsp({ + $core.int? unread, + $core.String? title, + $core.String? time, + $fixnum.Int64? id, + }) { + final $result = create(); + if (unread != null) { + $result.unread = unread; + } + if (title != null) { + $result.title = title; + } + if (time != null) { + $result.time = time; + } + if (id != null) { + $result.id = id; + } + return $result; + } + SysMsgInterfaceLastMsgRsp._() : super(); + factory SysMsgInterfaceLastMsgRsp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SysMsgInterfaceLastMsgRsp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SysMsgInterfaceLastMsgRsp', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.interface.v1'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'unread', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'title') + ..aOS(3, _omitFieldNames ? '' : 'time') + ..aInt64(4, _omitFieldNames ? '' : 'id') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SysMsgInterfaceLastMsgRsp clone() => SysMsgInterfaceLastMsgRsp()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SysMsgInterfaceLastMsgRsp copyWith(void Function(SysMsgInterfaceLastMsgRsp) updates) => super.copyWith((message) => updates(message as SysMsgInterfaceLastMsgRsp)) as SysMsgInterfaceLastMsgRsp; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SysMsgInterfaceLastMsgRsp create() => SysMsgInterfaceLastMsgRsp._(); + SysMsgInterfaceLastMsgRsp createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SysMsgInterfaceLastMsgRsp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SysMsgInterfaceLastMsgRsp? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get unread => $_getIZ(0); + @$pb.TagNumber(1) + set unread($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasUnread() => $_has(0); + @$pb.TagNumber(1) + void clearUnread() => $_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); + + @$pb.TagNumber(3) + $core.String get time => $_getSZ(2); + @$pb.TagNumber(3) + set time($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasTime() => $_has(2); + @$pb.TagNumber(3) + void clearTime() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get id => $_getI64(3); + @$pb.TagNumber(4) + set id($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasId() => $_has(3); + @$pb.TagNumber(4) + void clearId() => $_clearField(4); +} + + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/grpc/im/interfaces/v1/im.pbenum.dart b/lib/grpc/im/interfaces/v1/im.pbenum.dart new file mode 100644 index 00000000..a6c56a66 --- /dev/null +++ b/lib/grpc/im/interfaces/v1/im.pbenum.dart @@ -0,0 +1,76 @@ +// +// Generated code. Do not modify. +// source: bilibili/im/interfaces/v1/im.proto +// +// @dart = 3.3 + +// 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; + +class ENUM_FOLD extends $pb.ProtobufEnum { + static const ENUM_FOLD FOLD_NO = ENUM_FOLD._(0, _omitEnumNames ? '' : 'FOLD_NO'); + static const ENUM_FOLD FOLD_YES = ENUM_FOLD._(1, _omitEnumNames ? '' : 'FOLD_YES'); + static const ENUM_FOLD FOLD_UNKNOWN = ENUM_FOLD._(2, _omitEnumNames ? '' : 'FOLD_UNKNOWN'); + + static const $core.List values = [ + FOLD_NO, + FOLD_YES, + FOLD_UNKNOWN, + ]; + + static final $core.Map<$core.int, ENUM_FOLD> _byValue = $pb.ProtobufEnum.initByValue(values); + static ENUM_FOLD? valueOf($core.int value) => _byValue[value]; + + const ENUM_FOLD._(super.v, super.n); +} + +class ENUM_UNREAD_TYPE extends $pb.ProtobufEnum { + static const ENUM_UNREAD_TYPE UNREAD_TYPE_ALL = ENUM_UNREAD_TYPE._(0, _omitEnumNames ? '' : 'UNREAD_TYPE_ALL'); + static const ENUM_UNREAD_TYPE UNREAD_TYPE_FOLLOW = ENUM_UNREAD_TYPE._(1, _omitEnumNames ? '' : 'UNREAD_TYPE_FOLLOW'); + static const ENUM_UNREAD_TYPE UNREAD_TYPE_UNFOLLOW = ENUM_UNREAD_TYPE._(2, _omitEnumNames ? '' : 'UNREAD_TYPE_UNFOLLOW'); + static const ENUM_UNREAD_TYPE UNREAD_TYPE_DUSTBIN = ENUM_UNREAD_TYPE._(3, _omitEnumNames ? '' : 'UNREAD_TYPE_DUSTBIN'); + + static const $core.List values = [ + UNREAD_TYPE_ALL, + UNREAD_TYPE_FOLLOW, + UNREAD_TYPE_UNFOLLOW, + UNREAD_TYPE_DUSTBIN, + ]; + + static final $core.Map<$core.int, ENUM_UNREAD_TYPE> _byValue = $pb.ProtobufEnum.initByValue(values); + static ENUM_UNREAD_TYPE? valueOf($core.int value) => _byValue[value]; + + const ENUM_UNREAD_TYPE._(super.v, super.n); +} + +class SESSION_TYPE extends $pb.ProtobufEnum { + static const SESSION_TYPE UNKNOWN = SESSION_TYPE._(0, _omitEnumNames ? '' : 'UNKNOWN'); + static const SESSION_TYPE UN_FOLD_SESSION = SESSION_TYPE._(1, _omitEnumNames ? '' : 'UN_FOLD_SESSION'); + static const SESSION_TYPE UN_FOLLOW_SINGLE_SESSION = SESSION_TYPE._(2, _omitEnumNames ? '' : 'UN_FOLLOW_SINGLE_SESSION'); + static const SESSION_TYPE MY_GROUP_SESSION = SESSION_TYPE._(3, _omitEnumNames ? '' : 'MY_GROUP_SESSION'); + static const SESSION_TYPE ALL_SESSION = SESSION_TYPE._(4, _omitEnumNames ? '' : 'ALL_SESSION'); + static const SESSION_TYPE DUSTBIN_SESSION = SESSION_TYPE._(5, _omitEnumNames ? '' : 'DUSTBIN_SESSION'); + + static const $core.List values = [ + UNKNOWN, + UN_FOLD_SESSION, + UN_FOLLOW_SINGLE_SESSION, + MY_GROUP_SESSION, + ALL_SESSION, + DUSTBIN_SESSION, + ]; + + static final $core.Map<$core.int, SESSION_TYPE> _byValue = $pb.ProtobufEnum.initByValue(values); + static SESSION_TYPE? valueOf($core.int value) => _byValue[value]; + + const SESSION_TYPE._(super.v, super.n); +} + + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/grpc/im/interfaces/v1/im.pbjson.dart b/lib/grpc/im/interfaces/v1/im.pbjson.dart new file mode 100644 index 00000000..a919e9fa --- /dev/null +++ b/lib/grpc/im/interfaces/v1/im.pbjson.dart @@ -0,0 +1,867 @@ +// +// Generated code. Do not modify. +// source: bilibili/im/interfaces/v1/im.proto +// +// @dart = 3.3 + +// 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 eNUM_FOLDDescriptor instead') +const ENUM_FOLD$json = { + '1': 'ENUM_FOLD', + '2': [ + {'1': 'FOLD_NO', '2': 0}, + {'1': 'FOLD_YES', '2': 1}, + {'1': 'FOLD_UNKNOWN', '2': 2}, + ], +}; + +/// Descriptor for `ENUM_FOLD`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List eNUM_FOLDDescriptor = $convert.base64Decode( + 'CglFTlVNX0ZPTEQSCwoHRk9MRF9OTxAAEgwKCEZPTERfWUVTEAESEAoMRk9MRF9VTktOT1dOEA' + 'I='); + +@$core.Deprecated('Use eNUM_UNREAD_TYPEDescriptor instead') +const ENUM_UNREAD_TYPE$json = { + '1': 'ENUM_UNREAD_TYPE', + '2': [ + {'1': 'UNREAD_TYPE_ALL', '2': 0}, + {'1': 'UNREAD_TYPE_FOLLOW', '2': 1}, + {'1': 'UNREAD_TYPE_UNFOLLOW', '2': 2}, + {'1': 'UNREAD_TYPE_DUSTBIN', '2': 3}, + ], +}; + +/// Descriptor for `ENUM_UNREAD_TYPE`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List eNUM_UNREAD_TYPEDescriptor = $convert.base64Decode( + 'ChBFTlVNX1VOUkVBRF9UWVBFEhMKD1VOUkVBRF9UWVBFX0FMTBAAEhYKElVOUkVBRF9UWVBFX0' + 'ZPTExPVxABEhgKFFVOUkVBRF9UWVBFX1VORk9MTE9XEAISFwoTVU5SRUFEX1RZUEVfRFVTVEJJ' + 'ThAD'); + +@$core.Deprecated('Use sESSION_TYPEDescriptor instead') +const SESSION_TYPE$json = { + '1': 'SESSION_TYPE', + '2': [ + {'1': 'UNKNOWN', '2': 0}, + {'1': 'UN_FOLD_SESSION', '2': 1}, + {'1': 'UN_FOLLOW_SINGLE_SESSION', '2': 2}, + {'1': 'MY_GROUP_SESSION', '2': 3}, + {'1': 'ALL_SESSION', '2': 4}, + {'1': 'DUSTBIN_SESSION', '2': 5}, + ], +}; + +/// Descriptor for `SESSION_TYPE`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List sESSION_TYPEDescriptor = $convert.base64Decode( + 'CgxTRVNTSU9OX1RZUEUSCwoHVU5LTk9XThAAEhMKD1VOX0ZPTERfU0VTU0lPThABEhwKGFVOX0' + 'ZPTExPV19TSU5HTEVfU0VTU0lPThACEhQKEE1ZX0dST1VQX1NFU1NJT04QAxIPCgtBTExfU0VT' + 'U0lPThAEEhMKD0RVU1RCSU5fU0VTU0lPThAF'); + +@$core.Deprecated('Use dummyReqDescriptor instead') +const DummyReq$json = { + '1': 'DummyReq', + '2': [ + {'1': 'idl', '3': 1, '4': 1, '5': 13, '10': 'idl'}, + ], +}; + +/// Descriptor for `DummyReq`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dummyReqDescriptor = $convert.base64Decode( + 'CghEdW1teVJlcRIQCgNpZGwYASABKA1SA2lkbA=='); + +@$core.Deprecated('Use dummyRspDescriptor instead') +const DummyRsp$json = { + '1': 'DummyRsp', + '9': [ + {'1': 1, '2': 2}, + ], +}; + +/// Descriptor for `DummyRsp`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dummyRspDescriptor = $convert.base64Decode( + 'CghEdW1teVJzcEoECAEQAg=='); + +@$core.Deprecated('Use emotionInfoDescriptor instead') +const EmotionInfo$json = { + '1': 'EmotionInfo', + '2': [ + {'1': 'text', '3': 1, '4': 1, '5': 9, '10': 'text'}, + {'1': 'url', '3': 2, '4': 1, '5': 9, '10': 'url'}, + {'1': 'size', '3': 3, '4': 1, '5': 5, '10': 'size'}, + {'1': 'gif_url', '3': 4, '4': 1, '5': 9, '10': 'gifUrl'}, + ], +}; + +/// Descriptor for `EmotionInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List emotionInfoDescriptor = $convert.base64Decode( + 'CgtFbW90aW9uSW5mbxISCgR0ZXh0GAEgASgJUgR0ZXh0EhAKA3VybBgCIAEoCVIDdXJsEhIKBH' + 'NpemUYAyABKAVSBHNpemUSFwoHZ2lmX3VybBgEIAEoCVIGZ2lmVXJs'); + +@$core.Deprecated('Use msgDetailDescriptor instead') +const MsgDetail$json = { + '1': 'MsgDetail', + '2': [ + {'1': 'msg_key', '3': 1, '4': 1, '5': 3, '10': 'msgKey'}, + {'1': 'seqno', '3': 2, '4': 1, '5': 3, '10': 'seqno'}, + ], +}; + +/// Descriptor for `MsgDetail`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List msgDetailDescriptor = $convert.base64Decode( + 'CglNc2dEZXRhaWwSFwoHbXNnX2tleRgBIAEoA1IGbXNnS2V5EhQKBXNlcW5vGAIgASgDUgVzZX' + 'Fubw=='); + +@$core.Deprecated('Use msgFeedUnreadRspDescriptor instead') +const MsgFeedUnreadRsp$json = { + '1': 'MsgFeedUnreadRsp', + '2': [ + {'1': 'unread', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.MsgFeedUnreadRsp.UnreadEntry', '10': 'unread'}, + ], + '3': [MsgFeedUnreadRsp_UnreadEntry$json], +}; + +@$core.Deprecated('Use msgFeedUnreadRspDescriptor instead') +const MsgFeedUnreadRsp_UnreadEntry$json = { + '1': 'UnreadEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 3, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `MsgFeedUnreadRsp`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List msgFeedUnreadRspDescriptor = $convert.base64Decode( + 'ChBNc2dGZWVkVW5yZWFkUnNwEk4KBnVucmVhZBgBIAMoCzI2LmJpbGliaWxpLmltLmludGVyZm' + 'FjZS52MS5Nc2dGZWVkVW5yZWFkUnNwLlVucmVhZEVudHJ5UgZ1bnJlYWQaOQoLVW5yZWFkRW50' + 'cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKANSBXZhbHVlOgI4AQ=='); + +@$core.Deprecated('Use reqAckAssisMsgDescriptor instead') +const ReqAckAssisMsg$json = { + '1': 'ReqAckAssisMsg', + '2': [ + {'1': 'ack_seqno', '3': 1, '4': 1, '5': 4, '10': 'ackSeqno'}, + ], +}; + +/// Descriptor for `ReqAckAssisMsg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqAckAssisMsgDescriptor = $convert.base64Decode( + 'Cg5SZXFBY2tBc3Npc01zZxIbCglhY2tfc2Vxbm8YASABKARSCGFja1NlcW5v'); + +@$core.Deprecated('Use reqAckSessionsDescriptor instead') +const ReqAckSessions$json = { + '1': 'ReqAckSessions', + '2': [ + {'1': 'begin_ts', '3': 1, '4': 1, '5': 4, '10': 'beginTs'}, + {'1': 'end_ts', '3': 2, '4': 1, '5': 13, '10': 'endTs'}, + {'1': 'size', '3': 3, '4': 1, '5': 13, '10': 'size'}, + ], +}; + +/// Descriptor for `ReqAckSessions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqAckSessionsDescriptor = $convert.base64Decode( + 'Cg5SZXFBY2tTZXNzaW9ucxIZCghiZWdpbl90cxgBIAEoBFIHYmVnaW5UcxIVCgZlbmRfdHMYAi' + 'ABKA1SBWVuZFRzEhIKBHNpemUYAyABKA1SBHNpemU='); + +@$core.Deprecated('Use reqBatRmSessDescriptor instead') +const ReqBatRmSess$json = { + '1': 'ReqBatRmSess', +}; + +/// Descriptor for `ReqBatRmSess`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqBatRmSessDescriptor = $convert.base64Decode( + 'CgxSZXFCYXRSbVNlc3M='); + +@$core.Deprecated('Use reqCloseClearUnreadUIDescriptor instead') +const ReqCloseClearUnreadUI$json = { + '1': 'ReqCloseClearUnreadUI', +}; + +/// Descriptor for `ReqCloseClearUnreadUI`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqCloseClearUnreadUIDescriptor = $convert.base64Decode( + 'ChVSZXFDbG9zZUNsZWFyVW5yZWFkVUk='); + +@$core.Deprecated('Use reqGetMsgDescriptor instead') +const ReqGetMsg$json = { + '1': 'ReqGetMsg', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 3, '10': 'talkerId'}, + {'1': 'session_type', '3': 2, '4': 1, '5': 5, '10': 'sessionType'}, + {'1': 'msg_detail', '3': 3, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.MsgDetail', '10': 'msgDetail'}, + ], +}; + +/// Descriptor for `ReqGetMsg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqGetMsgDescriptor = $convert.base64Decode( + 'CglSZXFHZXRNc2cSGwoJdGFsa2VyX2lkGAEgASgDUgh0YWxrZXJJZBIhCgxzZXNzaW9uX3R5cG' + 'UYAiABKAVSC3Nlc3Npb25UeXBlEkIKCm1zZ19kZXRhaWwYAyADKAsyIy5iaWxpYmlsaS5pbS5p' + 'bnRlcmZhY2UudjEuTXNnRGV0YWlsUgltc2dEZXRhaWw='); + +@$core.Deprecated('Use reqGetSessionsDescriptor instead') +const ReqGetSessions$json = { + '1': 'ReqGetSessions', + '2': [ + {'1': 'begin_ts', '3': 1, '4': 1, '5': 4, '10': 'beginTs'}, + {'1': 'end_ts', '3': 2, '4': 1, '5': 4, '10': 'endTs'}, + {'1': 'size', '3': 3, '4': 1, '5': 13, '10': 'size'}, + {'1': 'session_type', '3': 4, '4': 1, '5': 13, '10': 'sessionType'}, + {'1': 'unfollow_fold', '3': 5, '4': 1, '5': 13, '10': 'unfollowFold'}, + {'1': 'group_fold', '3': 6, '4': 1, '5': 13, '10': 'groupFold'}, + {'1': 'sort_rule', '3': 7, '4': 1, '5': 13, '10': 'sortRule'}, + {'1': 'teenager_mode', '3': 8, '4': 1, '5': 13, '10': 'teenagerMode'}, + {'1': 'lessons_mode', '3': 9, '4': 1, '5': 13, '10': 'lessonsMode'}, + ], +}; + +/// Descriptor for `ReqGetSessions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqGetSessionsDescriptor = $convert.base64Decode( + 'Cg5SZXFHZXRTZXNzaW9ucxIZCghiZWdpbl90cxgBIAEoBFIHYmVnaW5UcxIVCgZlbmRfdHMYAi' + 'ABKARSBWVuZFRzEhIKBHNpemUYAyABKA1SBHNpemUSIQoMc2Vzc2lvbl90eXBlGAQgASgNUgtz' + 'ZXNzaW9uVHlwZRIjCg11bmZvbGxvd19mb2xkGAUgASgNUgx1bmZvbGxvd0ZvbGQSHQoKZ3JvdX' + 'BfZm9sZBgGIAEoDVIJZ3JvdXBGb2xkEhsKCXNvcnRfcnVsZRgHIAEoDVIIc29ydFJ1bGUSIwoN' + 'dGVlbmFnZXJfbW9kZRgIIAEoDVIMdGVlbmFnZXJNb2RlEiEKDGxlc3NvbnNfbW9kZRgJIAEoDV' + 'ILbGVzc29uc01vZGU='); + +@$core.Deprecated('Use reqGetSpecificSessionsDescriptor instead') +const ReqGetSpecificSessions$json = { + '1': 'ReqGetSpecificSessions', + '2': [ + {'1': 'talker_sessions', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.SimpleSession', '10': 'talkerSessions'}, + ], +}; + +/// Descriptor for `ReqGetSpecificSessions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqGetSpecificSessionsDescriptor = $convert.base64Decode( + 'ChZSZXFHZXRTcGVjaWZpY1Nlc3Npb25zElAKD3RhbGtlcl9zZXNzaW9ucxgBIAMoCzInLmJpbG' + 'liaWxpLmltLmludGVyZmFjZS52MS5TaW1wbGVTZXNzaW9uUg50YWxrZXJTZXNzaW9ucw=='); + +@$core.Deprecated('Use reqGroupAssisMsgDescriptor instead') +const ReqGroupAssisMsg$json = { + '1': 'ReqGroupAssisMsg', + '2': [ + {'1': 'client_seqno', '3': 1, '4': 1, '5': 4, '10': 'clientSeqno'}, + {'1': 'size', '3': 2, '4': 1, '5': 13, '10': 'size'}, + ], +}; + +/// Descriptor for `ReqGroupAssisMsg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqGroupAssisMsgDescriptor = $convert.base64Decode( + 'ChBSZXFHcm91cEFzc2lzTXNnEiEKDGNsaWVudF9zZXFubxgBIAEoBFILY2xpZW50U2Vxbm8SEg' + 'oEc2l6ZRgCIAEoDVIEc2l6ZQ=='); + +@$core.Deprecated('Use reqLiveInfoDescriptor instead') +const ReqLiveInfo$json = { + '1': 'ReqLiveInfo', + '2': [ + {'1': 'uid', '3': 1, '4': 1, '5': 3, '10': 'uid'}, + {'1': 'talker_id', '3': 2, '4': 1, '5': 3, '10': 'talkerId'}, + ], +}; + +/// Descriptor for `ReqLiveInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqLiveInfoDescriptor = $convert.base64Decode( + 'CgtSZXFMaXZlSW5mbxIQCgN1aWQYASABKANSA3VpZBIbCgl0YWxrZXJfaWQYAiABKANSCHRhbG' + 'tlcklk'); + +@$core.Deprecated('Use reqNewSessionsDescriptor instead') +const ReqNewSessions$json = { + '1': 'ReqNewSessions', + '2': [ + {'1': 'begin_ts', '3': 1, '4': 1, '5': 4, '10': 'beginTs'}, + {'1': 'size', '3': 2, '4': 1, '5': 13, '10': 'size'}, + {'1': 'teenager_mode', '3': 3, '4': 1, '5': 13, '10': 'teenagerMode'}, + {'1': 'lessons_mode', '3': 4, '4': 1, '5': 13, '10': 'lessonsMode'}, + ], +}; + +/// Descriptor for `ReqNewSessions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqNewSessionsDescriptor = $convert.base64Decode( + 'Cg5SZXFOZXdTZXNzaW9ucxIZCghiZWdpbl90cxgBIAEoBFIHYmVnaW5UcxISCgRzaXplGAIgAS' + 'gNUgRzaXplEiMKDXRlZW5hZ2VyX21vZGUYAyABKA1SDHRlZW5hZ2VyTW9kZRIhCgxsZXNzb25z' + 'X21vZGUYBCABKA1SC2xlc3NvbnNNb2Rl'); + +@$core.Deprecated('Use reqRelationSyncDescriptor instead') +const ReqRelationSync$json = { + '1': 'ReqRelationSync', + '2': [ + {'1': 'client_relation_oplog_seqno', '3': 1, '4': 1, '5': 4, '10': 'clientRelationOplogSeqno'}, + ], +}; + +/// Descriptor for `ReqRelationSync`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqRelationSyncDescriptor = $convert.base64Decode( + 'Cg9SZXFSZWxhdGlvblN5bmMSPQobY2xpZW50X3JlbGF0aW9uX29wbG9nX3NlcW5vGAEgASgEUh' + 'hjbGllbnRSZWxhdGlvbk9wbG9nU2Vxbm8='); + +@$core.Deprecated('Use reqRemoveSessionDescriptor instead') +const ReqRemoveSession$json = { + '1': 'ReqRemoveSession', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 4, '10': 'talkerId'}, + {'1': 'session_type', '3': 2, '4': 1, '5': 13, '10': 'sessionType'}, + ], +}; + +/// Descriptor for `ReqRemoveSession`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqRemoveSessionDescriptor = $convert.base64Decode( + 'ChBSZXFSZW1vdmVTZXNzaW9uEhsKCXRhbGtlcl9pZBgBIAEoBFIIdGFsa2VySWQSIQoMc2Vzc2' + 'lvbl90eXBlGAIgASgNUgtzZXNzaW9uVHlwZQ=='); + +@$core.Deprecated('Use reqSendMsgDescriptor instead') +const ReqSendMsg$json = { + '1': 'ReqSendMsg', + '2': [ + {'1': 'msg', '3': 1, '4': 1, '5': 11, '6': '.bilibili.im.type.Msg', '10': 'msg'}, + {'1': 'cookie', '3': 2, '4': 1, '5': 9, '10': 'cookie'}, + {'1': 'cookie2', '3': 3, '4': 1, '5': 9, '10': 'cookie2'}, + {'1': 'error_code', '3': 4, '4': 1, '5': 5, '10': 'errorCode'}, + {'1': 'dev_id', '3': 5, '4': 1, '5': 9, '10': 'devId'}, + ], +}; + +/// Descriptor for `ReqSendMsg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqSendMsgDescriptor = $convert.base64Decode( + 'CgpSZXFTZW5kTXNnEicKA21zZxgBIAEoCzIVLmJpbGliaWxpLmltLnR5cGUuTXNnUgNtc2cSFg' + 'oGY29va2llGAIgASgJUgZjb29raWUSGAoHY29va2llMhgDIAEoCVIHY29va2llMhIdCgplcnJv' + 'cl9jb2RlGAQgASgFUgllcnJvckNvZGUSFQoGZGV2X2lkGAUgASgJUgVkZXZJZA=='); + +@$core.Deprecated('Use reqSessionDetailDescriptor instead') +const ReqSessionDetail$json = { + '1': 'ReqSessionDetail', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 4, '10': 'talkerId'}, + {'1': 'session_type', '3': 2, '4': 1, '5': 13, '10': 'sessionType'}, + {'1': 'uid', '3': 3, '4': 1, '5': 4, '10': 'uid'}, + ], +}; + +/// Descriptor for `ReqSessionDetail`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqSessionDetailDescriptor = $convert.base64Decode( + 'ChBSZXFTZXNzaW9uRGV0YWlsEhsKCXRhbGtlcl9pZBgBIAEoBFIIdGFsa2VySWQSIQoMc2Vzc2' + 'lvbl90eXBlGAIgASgNUgtzZXNzaW9uVHlwZRIQCgN1aWQYAyABKARSA3VpZA=='); + +@$core.Deprecated('Use reqSessionDetailsDescriptor instead') +const ReqSessionDetails$json = { + '1': 'ReqSessionDetails', + '2': [ + {'1': 'sess_ids', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.ReqSessionDetail', '10': 'sessIds'}, + ], +}; + +/// Descriptor for `ReqSessionDetails`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqSessionDetailsDescriptor = $convert.base64Decode( + 'ChFSZXFTZXNzaW9uRGV0YWlscxJFCghzZXNzX2lkcxgBIAMoCzIqLmJpbGliaWxpLmltLmludG' + 'VyZmFjZS52MS5SZXFTZXNzaW9uRGV0YWlsUgdzZXNzSWRz'); + +@$core.Deprecated('Use reqSessionMsgDescriptor instead') +const ReqSessionMsg$json = { + '1': 'ReqSessionMsg', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 4, '10': 'talkerId'}, + {'1': 'session_type', '3': 2, '4': 1, '5': 5, '10': 'sessionType'}, + {'1': 'end_seqno', '3': 3, '4': 1, '5': 4, '10': 'endSeqno'}, + {'1': 'begin_seqno', '3': 4, '4': 1, '5': 4, '10': 'beginSeqno'}, + {'1': 'size', '3': 5, '4': 1, '5': 5, '10': 'size'}, + {'1': 'order', '3': 6, '4': 1, '5': 5, '10': 'order'}, + {'1': 'dev_id', '3': 7, '4': 1, '5': 9, '10': 'devId'}, + ], +}; + +/// Descriptor for `ReqSessionMsg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqSessionMsgDescriptor = $convert.base64Decode( + 'Cg1SZXFTZXNzaW9uTXNnEhsKCXRhbGtlcl9pZBgBIAEoBFIIdGFsa2VySWQSIQoMc2Vzc2lvbl' + '90eXBlGAIgASgFUgtzZXNzaW9uVHlwZRIbCgllbmRfc2Vxbm8YAyABKARSCGVuZFNlcW5vEh8K' + 'C2JlZ2luX3NlcW5vGAQgASgEUgpiZWdpblNlcW5vEhIKBHNpemUYBSABKAVSBHNpemUSFAoFb3' + 'JkZXIYBiABKAVSBW9yZGVyEhUKBmRldl9pZBgHIAEoCVIFZGV2SWQ='); + +@$core.Deprecated('Use reqSetTopDescriptor instead') +const ReqSetTop$json = { + '1': 'ReqSetTop', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 4, '10': 'talkerId'}, + {'1': 'session_type', '3': 2, '4': 1, '5': 13, '10': 'sessionType'}, + {'1': 'op_type', '3': 3, '4': 1, '5': 13, '10': 'opType'}, + ], +}; + +/// Descriptor for `ReqSetTop`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqSetTopDescriptor = $convert.base64Decode( + 'CglSZXFTZXRUb3ASGwoJdGFsa2VyX2lkGAEgASgEUgh0YWxrZXJJZBIhCgxzZXNzaW9uX3R5cG' + 'UYAiABKA1SC3Nlc3Npb25UeXBlEhcKB29wX3R5cGUYAyABKA1SBm9wVHlwZQ=='); + +@$core.Deprecated('Use reqShareListDescriptor instead') +const ReqShareList$json = { + '1': 'ReqShareList', + '2': [ + {'1': 'size', '3': 1, '4': 1, '5': 5, '10': 'size'}, + ], +}; + +/// Descriptor for `ReqShareList`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqShareListDescriptor = $convert.base64Decode( + 'CgxSZXFTaGFyZUxpc3QSEgoEc2l6ZRgBIAEoBVIEc2l6ZQ=='); + +@$core.Deprecated('Use reqShowClearUnreadUIDescriptor instead') +const ReqShowClearUnreadUI$json = { + '1': 'ReqShowClearUnreadUI', + '2': [ + {'1': 'unread_type', '3': 1, '4': 1, '5': 5, '10': 'unreadType'}, + {'1': 'show_unfollow_list', '3': 2, '4': 1, '5': 5, '10': 'showUnfollowList'}, + {'1': 'show_dustbin', '3': 4, '4': 1, '5': 5, '10': 'showDustbin'}, + ], +}; + +/// Descriptor for `ReqShowClearUnreadUI`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqShowClearUnreadUIDescriptor = $convert.base64Decode( + 'ChRSZXFTaG93Q2xlYXJVbnJlYWRVSRIfCgt1bnJlYWRfdHlwZRgBIAEoBVIKdW5yZWFkVHlwZR' + 'IsChJzaG93X3VuZm9sbG93X2xpc3QYAiABKAVSEHNob3dVbmZvbGxvd0xpc3QSIQoMc2hvd19k' + 'dXN0YmluGAQgASgFUgtzaG93RHVzdGJpbg=='); + +@$core.Deprecated('Use reqSingleUnreadDescriptor instead') +const ReqSingleUnread$json = { + '1': 'ReqSingleUnread', + '2': [ + {'1': 'unread_type', '3': 1, '4': 1, '5': 5, '10': 'unreadType'}, + {'1': 'show_unfollow_list', '3': 2, '4': 1, '5': 5, '10': 'showUnfollowList'}, + {'1': 'uid', '3': 3, '4': 1, '5': 3, '10': 'uid'}, + {'1': 'show_dustbin', '3': 4, '4': 1, '5': 5, '10': 'showDustbin'}, + ], +}; + +/// Descriptor for `ReqSingleUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqSingleUnreadDescriptor = $convert.base64Decode( + 'Cg9SZXFTaW5nbGVVbnJlYWQSHwoLdW5yZWFkX3R5cGUYASABKAVSCnVucmVhZFR5cGUSLAoSc2' + 'hvd191bmZvbGxvd19saXN0GAIgASgFUhBzaG93VW5mb2xsb3dMaXN0EhAKA3VpZBgDIAEoA1ID' + 'dWlkEiEKDHNob3dfZHVzdGJpbhgEIAEoBVILc2hvd0R1c3RiaW4='); + +@$core.Deprecated('Use reqSpecificSingleUnreadDescriptor instead') +const ReqSpecificSingleUnread$json = { + '1': 'ReqSpecificSingleUnread', + '2': [ + {'1': 'talker_sessions', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.SimpleSession', '10': 'talkerSessions'}, + ], +}; + +/// Descriptor for `ReqSpecificSingleUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqSpecificSingleUnreadDescriptor = $convert.base64Decode( + 'ChdSZXFTcGVjaWZpY1NpbmdsZVVucmVhZBJQCg90YWxrZXJfc2Vzc2lvbnMYASADKAsyJy5iaW' + 'xpYmlsaS5pbS5pbnRlcmZhY2UudjEuU2ltcGxlU2Vzc2lvblIOdGFsa2VyU2Vzc2lvbnM='); + +@$core.Deprecated('Use reqSyncAckDescriptor instead') +const ReqSyncAck$json = { + '1': 'ReqSyncAck', + '2': [ + {'1': 'client_seqno', '3': 1, '4': 1, '5': 4, '10': 'clientSeqno'}, + ], +}; + +/// Descriptor for `ReqSyncAck`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqSyncAckDescriptor = $convert.base64Decode( + 'CgpSZXFTeW5jQWNrEiEKDGNsaWVudF9zZXFubxgBIAEoBFILY2xpZW50U2Vxbm8='); + +@$core.Deprecated('Use reqTotalUnreadDescriptor instead') +const ReqTotalUnread$json = { + '1': 'ReqTotalUnread', + '2': [ + {'1': 'unread_type', '3': 1, '4': 1, '5': 5, '10': 'unreadType'}, + {'1': 'show_unfollow_list', '3': 2, '4': 1, '5': 5, '10': 'showUnfollowList'}, + {'1': 'uid', '3': 3, '4': 1, '5': 3, '10': 'uid'}, + {'1': 'show_dustbin', '3': 4, '4': 1, '5': 5, '10': 'showDustbin'}, + {'1': 'singleunread_on', '3': 5, '4': 1, '5': 5, '10': 'singleunreadOn'}, + {'1': 'msgfeed_on', '3': 6, '4': 1, '5': 5, '10': 'msgfeedOn'}, + {'1': 'sysup_on', '3': 7, '4': 1, '5': 5, '10': 'sysupOn'}, + ], +}; + +/// Descriptor for `ReqTotalUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqTotalUnreadDescriptor = $convert.base64Decode( + 'Cg5SZXFUb3RhbFVucmVhZBIfCgt1bnJlYWRfdHlwZRgBIAEoBVIKdW5yZWFkVHlwZRIsChJzaG' + '93X3VuZm9sbG93X2xpc3QYAiABKAVSEHNob3dVbmZvbGxvd0xpc3QSEAoDdWlkGAMgASgDUgN1' + 'aWQSIQoMc2hvd19kdXN0YmluGAQgASgFUgtzaG93RHVzdGJpbhInCg9zaW5nbGV1bnJlYWRfb2' + '4YBSABKAVSDnNpbmdsZXVucmVhZE9uEh0KCm1zZ2ZlZWRfb24YBiABKAVSCW1zZ2ZlZWRPbhIZ' + 'CghzeXN1cF9vbhgHIAEoBVIHc3lzdXBPbg=='); + +@$core.Deprecated('Use reqUpdateAckDescriptor instead') +const ReqUpdateAck$json = { + '1': 'ReqUpdateAck', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 4, '10': 'talkerId'}, + {'1': 'session_type', '3': 2, '4': 1, '5': 13, '10': 'sessionType'}, + {'1': 'ack_seqno', '3': 3, '4': 1, '5': 4, '10': 'ackSeqno'}, + ], +}; + +/// Descriptor for `ReqUpdateAck`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqUpdateAckDescriptor = $convert.base64Decode( + 'CgxSZXFVcGRhdGVBY2sSGwoJdGFsa2VyX2lkGAEgASgEUgh0YWxrZXJJZBIhCgxzZXNzaW9uX3' + 'R5cGUYAiABKA1SC3Nlc3Npb25UeXBlEhsKCWFja19zZXFubxgDIAEoBFIIYWNrU2Vxbm8='); + +@$core.Deprecated('Use reqUpdateInterceptDescriptor instead') +const ReqUpdateIntercept$json = { + '1': 'ReqUpdateIntercept', + '2': [ + {'1': 'uid', '3': 1, '4': 1, '5': 3, '10': 'uid'}, + {'1': 'talker_id', '3': 2, '4': 1, '5': 3, '10': 'talkerId'}, + {'1': 'status', '3': 3, '4': 1, '5': 5, '10': 'status'}, + ], +}; + +/// Descriptor for `ReqUpdateIntercept`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqUpdateInterceptDescriptor = $convert.base64Decode( + 'ChJSZXFVcGRhdGVJbnRlcmNlcHQSEAoDdWlkGAEgASgDUgN1aWQSGwoJdGFsa2VyX2lkGAIgAS' + 'gDUgh0YWxrZXJJZBIWCgZzdGF0dXMYAyABKAVSBnN0YXR1cw=='); + +@$core.Deprecated('Use reqUpdateTotalUnreadDescriptor instead') +const ReqUpdateTotalUnread$json = { + '1': 'ReqUpdateTotalUnread', +}; + +/// Descriptor for `ReqUpdateTotalUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reqUpdateTotalUnreadDescriptor = $convert.base64Decode( + 'ChRSZXFVcGRhdGVUb3RhbFVucmVhZA=='); + +@$core.Deprecated('Use rspCloseClearUnreadUIDescriptor instead') +const RspCloseClearUnreadUI$json = { + '1': 'RspCloseClearUnreadUI', +}; + +/// Descriptor for `RspCloseClearUnreadUI`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspCloseClearUnreadUIDescriptor = $convert.base64Decode( + 'ChVSc3BDbG9zZUNsZWFyVW5yZWFkVUk='); + +@$core.Deprecated('Use rspGetMsgDescriptor instead') +const RspGetMsg$json = { + '1': 'RspGetMsg', + '2': [ + {'1': 'msg', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.type.Msg', '10': 'msg'}, + ], +}; + +/// Descriptor for `RspGetMsg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspGetMsgDescriptor = $convert.base64Decode( + 'CglSc3BHZXRNc2cSJwoDbXNnGAEgAygLMhUuYmlsaWJpbGkuaW0udHlwZS5Nc2dSA21zZw=='); + +@$core.Deprecated('Use rspLiveInfoDescriptor instead') +const RspLiveInfo$json = { + '1': 'RspLiveInfo', + '2': [ + {'1': 'live_status', '3': 1, '4': 1, '5': 3, '10': 'liveStatus'}, + {'1': 'jump_url', '3': 2, '4': 1, '5': 9, '10': 'jumpUrl'}, + ], +}; + +/// Descriptor for `RspLiveInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspLiveInfoDescriptor = $convert.base64Decode( + 'CgtSc3BMaXZlSW5mbxIfCgtsaXZlX3N0YXR1cxgBIAEoA1IKbGl2ZVN0YXR1cxIZCghqdW1wX3' + 'VybBgCIAEoCVIHanVtcFVybA=='); + +@$core.Deprecated('Use rspMyGroupUnreadDescriptor instead') +const RspMyGroupUnread$json = { + '1': 'RspMyGroupUnread', + '2': [ + {'1': 'unread_count', '3': 1, '4': 1, '5': 13, '10': 'unreadCount'}, + ], +}; + +/// Descriptor for `RspMyGroupUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspMyGroupUnreadDescriptor = $convert.base64Decode( + 'ChBSc3BNeUdyb3VwVW5yZWFkEiEKDHVucmVhZF9jb3VudBgBIAEoDVILdW5yZWFkQ291bnQ='); + +@$core.Deprecated('Use rspRelationSyncDescriptor instead') +const RspRelationSync$json = { + '1': 'RspRelationSync', + '2': [ + {'1': 'full', '3': 1, '4': 1, '5': 5, '10': 'full'}, + {'1': 'relation_logs', '3': 2, '4': 3, '5': 11, '6': '.bilibili.im.type.RelationLog', '10': 'relationLogs'}, + {'1': 'friend_list', '3': 3, '4': 3, '5': 11, '6': '.bilibili.im.type.FriendRelation', '10': 'friendList'}, + {'1': 'server_relation_oplog_seqno', '3': 4, '4': 1, '5': 4, '10': 'serverRelationOplogSeqno'}, + {'1': 'group_list', '3': 5, '4': 3, '5': 11, '6': '.bilibili.im.type.GroupRelation', '10': 'groupList'}, + ], +}; + +/// Descriptor for `RspRelationSync`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspRelationSyncDescriptor = $convert.base64Decode( + 'Cg9Sc3BSZWxhdGlvblN5bmMSEgoEZnVsbBgBIAEoBVIEZnVsbBJCCg1yZWxhdGlvbl9sb2dzGA' + 'IgAygLMh0uYmlsaWJpbGkuaW0udHlwZS5SZWxhdGlvbkxvZ1IMcmVsYXRpb25Mb2dzEkEKC2Zy' + 'aWVuZF9saXN0GAMgAygLMiAuYmlsaWJpbGkuaW0udHlwZS5GcmllbmRSZWxhdGlvblIKZnJpZW' + '5kTGlzdBI9ChtzZXJ2ZXJfcmVsYXRpb25fb3Bsb2dfc2Vxbm8YBCABKARSGHNlcnZlclJlbGF0' + 'aW9uT3Bsb2dTZXFubxI+Cgpncm91cF9saXN0GAUgAygLMh8uYmlsaWJpbGkuaW0udHlwZS5Hcm' + '91cFJlbGF0aW9uUglncm91cExpc3Q='); + +@$core.Deprecated('Use rspSendMsgDescriptor instead') +const RspSendMsg$json = { + '1': 'RspSendMsg', + '2': [ + {'1': 'msg_key', '3': 1, '4': 1, '5': 4, '10': 'msgKey'}, + {'1': 'e_infos', '3': 2, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.EmotionInfo', '10': 'eInfos'}, + {'1': 'msg_content', '3': 3, '4': 1, '5': 9, '10': 'msgContent'}, + {'1': 'key_hit_infos', '3': 4, '4': 1, '5': 11, '6': '.bilibili.im.type.KeyHitInfos', '10': 'keyHitInfos'}, + ], +}; + +/// Descriptor for `RspSendMsg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspSendMsgDescriptor = $convert.base64Decode( + 'CgpSc3BTZW5kTXNnEhcKB21zZ19rZXkYASABKARSBm1zZ0tleRI+CgdlX2luZm9zGAIgAygLMi' + 'UuYmlsaWJpbGkuaW0uaW50ZXJmYWNlLnYxLkVtb3Rpb25JbmZvUgZlSW5mb3MSHwoLbXNnX2Nv' + 'bnRlbnQYAyABKAlSCm1zZ0NvbnRlbnQSQQoNa2V5X2hpdF9pbmZvcxgEIAEoCzIdLmJpbGliaW' + 'xpLmltLnR5cGUuS2V5SGl0SW5mb3NSC2tleUhpdEluZm9z'); + +@$core.Deprecated('Use rspSessionDetailsDescriptor instead') +const RspSessionDetails$json = { + '1': 'RspSessionDetails', + '2': [ + {'1': 'sess_infos', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.type.SessionInfo', '10': 'sessInfos'}, + ], +}; + +/// Descriptor for `RspSessionDetails`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspSessionDetailsDescriptor = $convert.base64Decode( + 'ChFSc3BTZXNzaW9uRGV0YWlscxI8CgpzZXNzX2luZm9zGAEgAygLMh0uYmlsaWJpbGkuaW0udH' + 'lwZS5TZXNzaW9uSW5mb1IJc2Vzc0luZm9z'); + +@$core.Deprecated('Use rspSessionMsgDescriptor instead') +const RspSessionMsg$json = { + '1': 'RspSessionMsg', + '2': [ + {'1': 'messages', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.type.Msg', '10': 'messages'}, + {'1': 'has_more', '3': 2, '4': 1, '5': 5, '10': 'hasMore'}, + {'1': 'min_seqno', '3': 3, '4': 1, '5': 4, '10': 'minSeqno'}, + {'1': 'max_seqno', '3': 4, '4': 1, '5': 4, '10': 'maxSeqno'}, + {'1': 'e_infos', '3': 5, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.EmotionInfo', '10': 'eInfos'}, + ], +}; + +/// Descriptor for `RspSessionMsg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspSessionMsgDescriptor = $convert.base64Decode( + 'Cg1Sc3BTZXNzaW9uTXNnEjEKCG1lc3NhZ2VzGAEgAygLMhUuYmlsaWJpbGkuaW0udHlwZS5Nc2' + 'dSCG1lc3NhZ2VzEhkKCGhhc19tb3JlGAIgASgFUgdoYXNNb3JlEhsKCW1pbl9zZXFubxgDIAEo' + 'BFIIbWluU2Vxbm8SGwoJbWF4X3NlcW5vGAQgASgEUghtYXhTZXFubxI+CgdlX2luZm9zGAUgAy' + 'gLMiUuYmlsaWJpbGkuaW0uaW50ZXJmYWNlLnYxLkVtb3Rpb25JbmZvUgZlSW5mb3M='); + +@$core.Deprecated('Use rspSessionsDescriptor instead') +const RspSessions$json = { + '1': 'RspSessions', + '2': [ + {'1': 'session_list', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.type.SessionInfo', '10': 'sessionList'}, + {'1': 'has_more', '3': 2, '4': 1, '5': 13, '10': 'hasMore'}, + {'1': 'anti_disturb_cleaning', '3': 3, '4': 1, '5': 8, '10': 'antiDisturbCleaning'}, + {'1': 'is_address_list_empty', '3': 4, '4': 1, '5': 5, '10': 'isAddressListEmpty'}, + {'1': 'system_msg', '3': 5, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.RspSessions.SystemMsgEntry', '10': 'systemMsg'}, + {'1': 'show_level', '3': 6, '4': 1, '5': 8, '10': 'showLevel'}, + ], + '3': [RspSessions_SystemMsgEntry$json], +}; + +@$core.Deprecated('Use rspSessionsDescriptor instead') +const RspSessions_SystemMsgEntry$json = { + '1': 'SystemMsgEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 5, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 3, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `RspSessions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspSessionsDescriptor = $convert.base64Decode( + 'CgtSc3BTZXNzaW9ucxJACgxzZXNzaW9uX2xpc3QYASADKAsyHS5iaWxpYmlsaS5pbS50eXBlLl' + 'Nlc3Npb25JbmZvUgtzZXNzaW9uTGlzdBIZCghoYXNfbW9yZRgCIAEoDVIHaGFzTW9yZRIyChVh' + 'bnRpX2Rpc3R1cmJfY2xlYW5pbmcYAyABKAhSE2FudGlEaXN0dXJiQ2xlYW5pbmcSMQoVaXNfYW' + 'RkcmVzc19saXN0X2VtcHR5GAQgASgFUhJpc0FkZHJlc3NMaXN0RW1wdHkSUwoKc3lzdGVtX21z' + 'ZxgFIAMoCzI0LmJpbGliaWxpLmltLmludGVyZmFjZS52MS5Sc3BTZXNzaW9ucy5TeXN0ZW1Nc2' + 'dFbnRyeVIJc3lzdGVtTXNnEh0KCnNob3dfbGV2ZWwYBiABKAhSCXNob3dMZXZlbBo8Cg5TeXN0' + 'ZW1Nc2dFbnRyeRIQCgNrZXkYASABKAVSA2tleRIUCgV2YWx1ZRgCIAEoA1IFdmFsdWU6AjgB'); + +@$core.Deprecated('Use rspShareListDescriptor instead') +const RspShareList$json = { + '1': 'RspShareList', + '2': [ + {'1': 'session_list', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.ShareSessionInfo', '10': 'sessionList'}, + {'1': 'IsAddressListEmpty', '3': 2, '4': 1, '5': 5, '10': 'IsAddressListEmpty'}, + ], +}; + +/// Descriptor for `RspShareList`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspShareListDescriptor = $convert.base64Decode( + 'CgxSc3BTaGFyZUxpc3QSTQoMc2Vzc2lvbl9saXN0GAEgAygLMiouYmlsaWJpbGkuaW0uaW50ZX' + 'JmYWNlLnYxLlNoYXJlU2Vzc2lvbkluZm9SC3Nlc3Npb25MaXN0Ei4KEklzQWRkcmVzc0xpc3RF' + 'bXB0eRgCIAEoBVISSXNBZGRyZXNzTGlzdEVtcHR5'); + +@$core.Deprecated('Use rspShowClearUnreadUIDescriptor instead') +const RspShowClearUnreadUI$json = { + '1': 'RspShowClearUnreadUI', + '2': [ + {'1': 'display', '3': 1, '4': 1, '5': 8, '10': 'display'}, + {'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'}, + ], +}; + +/// Descriptor for `RspShowClearUnreadUI`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspShowClearUnreadUIDescriptor = $convert.base64Decode( + 'ChRSc3BTaG93Q2xlYXJVbnJlYWRVSRIYCgdkaXNwbGF5GAEgASgIUgdkaXNwbGF5EhIKBHRleH' + 'QYAiABKAlSBHRleHQ='); + +@$core.Deprecated('Use rspSingleUnreadDescriptor instead') +const RspSingleUnread$json = { + '1': 'RspSingleUnread', + '2': [ + {'1': 'unfollow_unread', '3': 1, '4': 1, '5': 4, '10': 'unfollowUnread'}, + {'1': 'follow_unread', '3': 2, '4': 1, '5': 4, '10': 'followUnread'}, + {'1': 'unfollow_push_msg', '3': 3, '4': 1, '5': 13, '10': 'unfollowPushMsg'}, + {'1': 'dustbin_push_msg', '3': 4, '4': 1, '5': 5, '10': 'dustbinPushMsg'}, + {'1': 'dustbin_unread', '3': 5, '4': 1, '5': 3, '10': 'dustbinUnread'}, + {'1': 'biz_msg_unfollow_unread', '3': 6, '4': 1, '5': 3, '10': 'bizMsgUnfollowUnread'}, + {'1': 'biz_msg_follow_unread', '3': 7, '4': 1, '5': 3, '10': 'bizMsgFollowUnread'}, + ], +}; + +/// Descriptor for `RspSingleUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspSingleUnreadDescriptor = $convert.base64Decode( + 'Cg9Sc3BTaW5nbGVVbnJlYWQSJwoPdW5mb2xsb3dfdW5yZWFkGAEgASgEUg51bmZvbGxvd1Vucm' + 'VhZBIjCg1mb2xsb3dfdW5yZWFkGAIgASgEUgxmb2xsb3dVbnJlYWQSKgoRdW5mb2xsb3dfcHVz' + 'aF9tc2cYAyABKA1SD3VuZm9sbG93UHVzaE1zZxIoChBkdXN0YmluX3B1c2hfbXNnGAQgASgFUg' + '5kdXN0YmluUHVzaE1zZxIlCg5kdXN0YmluX3VucmVhZBgFIAEoA1INZHVzdGJpblVucmVhZBI1' + 'ChdiaXpfbXNnX3VuZm9sbG93X3VucmVhZBgGIAEoA1IUYml6TXNnVW5mb2xsb3dVbnJlYWQSMQ' + 'oVYml6X21zZ19mb2xsb3dfdW5yZWFkGAcgASgDUhJiaXpNc2dGb2xsb3dVbnJlYWQ='); + +@$core.Deprecated('Use rspSpecificSingleUnreadDescriptor instead') +const RspSpecificSingleUnread$json = { + '1': 'RspSpecificSingleUnread', + '2': [ + {'1': 'talkerUnreadCnt', '3': 1, '4': 3, '5': 11, '6': '.bilibili.im.interface.v1.RspSpecificSingleUnread.TalkerUnreadCntEntry', '10': 'talkerUnreadCnt'}, + {'1': 'allUnreadCnt', '3': 2, '4': 1, '5': 4, '10': 'allUnreadCnt'}, + ], + '3': [RspSpecificSingleUnread_TalkerUnreadCntEntry$json], +}; + +@$core.Deprecated('Use rspSpecificSingleUnreadDescriptor instead') +const RspSpecificSingleUnread_TalkerUnreadCntEntry$json = { + '1': 'TalkerUnreadCntEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 4, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 4, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `RspSpecificSingleUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspSpecificSingleUnreadDescriptor = $convert.base64Decode( + 'ChdSc3BTcGVjaWZpY1NpbmdsZVVucmVhZBJwCg90YWxrZXJVbnJlYWRDbnQYASADKAsyRi5iaW' + 'xpYmlsaS5pbS5pbnRlcmZhY2UudjEuUnNwU3BlY2lmaWNTaW5nbGVVbnJlYWQuVGFsa2VyVW5y' + 'ZWFkQ250RW50cnlSD3RhbGtlclVucmVhZENudBIiCgxhbGxVbnJlYWRDbnQYAiABKARSDGFsbF' + 'VucmVhZENudBpCChRUYWxrZXJVbnJlYWRDbnRFbnRyeRIQCgNrZXkYASABKARSA2tleRIUCgV2' + 'YWx1ZRgCIAEoBFIFdmFsdWU6AjgB'); + +@$core.Deprecated('Use rspSyncAckDescriptor instead') +const RspSyncAck$json = { + '1': 'RspSyncAck', +}; + +/// Descriptor for `RspSyncAck`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspSyncAckDescriptor = $convert.base64Decode( + 'CgpSc3BTeW5jQWNr'); + +@$core.Deprecated('Use rspTotalUnreadDescriptor instead') +const RspTotalUnread$json = { + '1': 'RspTotalUnread', + '2': [ + {'1': 'session_single_unread', '3': 1, '4': 1, '5': 11, '6': '.bilibili.im.interface.v1.SessionSingleUnreadRsp', '10': 'sessionSingleUnread'}, + {'1': 'msg_feed_unread', '3': 2, '4': 1, '5': 11, '6': '.bilibili.im.interface.v1.MsgFeedUnreadRsp', '10': 'msgFeedUnread'}, + {'1': 'sys_msg_interface_last_msg', '3': 3, '4': 1, '5': 11, '6': '.bilibili.im.interface.v1.SysMsgInterfaceLastMsgRsp', '10': 'sysMsgInterfaceLastMsg'}, + {'1': 'total_unread', '3': 4, '4': 1, '5': 5, '10': 'totalUnread'}, + ], +}; + +/// Descriptor for `RspTotalUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspTotalUnreadDescriptor = $convert.base64Decode( + 'Cg5Sc3BUb3RhbFVucmVhZBJkChVzZXNzaW9uX3NpbmdsZV91bnJlYWQYASABKAsyMC5iaWxpYm' + 'lsaS5pbS5pbnRlcmZhY2UudjEuU2Vzc2lvblNpbmdsZVVucmVhZFJzcFITc2Vzc2lvblNpbmds' + 'ZVVucmVhZBJSCg9tc2dfZmVlZF91bnJlYWQYAiABKAsyKi5iaWxpYmlsaS5pbS5pbnRlcmZhY2' + 'UudjEuTXNnRmVlZFVucmVhZFJzcFINbXNnRmVlZFVucmVhZBJvChpzeXNfbXNnX2ludGVyZmFj' + 'ZV9sYXN0X21zZxgDIAEoCzIzLmJpbGliaWxpLmltLmludGVyZmFjZS52MS5TeXNNc2dJbnRlcm' + 'ZhY2VMYXN0TXNnUnNwUhZzeXNNc2dJbnRlcmZhY2VMYXN0TXNnEiEKDHRvdGFsX3VucmVhZBgE' + 'IAEoBVILdG90YWxVbnJlYWQ='); + +@$core.Deprecated('Use rspUpdateTotalUnreadDescriptor instead') +const RspUpdateTotalUnread$json = { + '1': 'RspUpdateTotalUnread', +}; + +/// Descriptor for `RspUpdateTotalUnread`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rspUpdateTotalUnreadDescriptor = $convert.base64Decode( + 'ChRSc3BVcGRhdGVUb3RhbFVucmVhZA=='); + +@$core.Deprecated('Use sessionSingleUnreadRspDescriptor instead') +const SessionSingleUnreadRsp$json = { + '1': 'SessionSingleUnreadRsp', + '2': [ + {'1': 'unfollow_unread', '3': 1, '4': 1, '5': 3, '10': 'unfollowUnread'}, + {'1': 'follow_unread', '3': 2, '4': 1, '5': 3, '10': 'followUnread'}, + {'1': 'unfollow_push_msg', '3': 3, '4': 1, '5': 5, '10': 'unfollowPushMsg'}, + {'1': 'dustbin_push_msg', '3': 4, '4': 1, '5': 5, '10': 'dustbinPushMsg'}, + {'1': 'dustbin_unread', '3': 5, '4': 1, '5': 3, '10': 'dustbinUnread'}, + ], +}; + +/// Descriptor for `SessionSingleUnreadRsp`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List sessionSingleUnreadRspDescriptor = $convert.base64Decode( + 'ChZTZXNzaW9uU2luZ2xlVW5yZWFkUnNwEicKD3VuZm9sbG93X3VucmVhZBgBIAEoA1IOdW5mb2' + 'xsb3dVbnJlYWQSIwoNZm9sbG93X3VucmVhZBgCIAEoA1IMZm9sbG93VW5yZWFkEioKEXVuZm9s' + 'bG93X3B1c2hfbXNnGAMgASgFUg91bmZvbGxvd1B1c2hNc2cSKAoQZHVzdGJpbl9wdXNoX21zZx' + 'gEIAEoBVIOZHVzdGJpblB1c2hNc2cSJQoOZHVzdGJpbl91bnJlYWQYBSABKANSDWR1c3RiaW5V' + 'bnJlYWQ='); + +@$core.Deprecated('Use shareSessionInfoDescriptor instead') +const ShareSessionInfo$json = { + '1': 'ShareSessionInfo', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 4, '10': 'talkerId'}, + {'1': 'talker_uname', '3': 2, '4': 1, '5': 9, '10': 'talkerUname'}, + {'1': 'talker_icon', '3': 3, '4': 1, '5': 9, '10': 'talkerIcon'}, + {'1': 'official_type', '3': 4, '4': 1, '5': 5, '10': 'officialType'}, + ], +}; + +/// Descriptor for `ShareSessionInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List shareSessionInfoDescriptor = $convert.base64Decode( + 'ChBTaGFyZVNlc3Npb25JbmZvEhsKCXRhbGtlcl9pZBgBIAEoBFIIdGFsa2VySWQSIQoMdGFsa2' + 'VyX3VuYW1lGAIgASgJUgt0YWxrZXJVbmFtZRIfCgt0YWxrZXJfaWNvbhgDIAEoCVIKdGFsa2Vy' + 'SWNvbhIjCg1vZmZpY2lhbF90eXBlGAQgASgFUgxvZmZpY2lhbFR5cGU='); + +@$core.Deprecated('Use simpleSessionDescriptor instead') +const SimpleSession$json = { + '1': 'SimpleSession', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 4, '10': 'talkerId'}, + {'1': 'session_type', '3': 2, '4': 1, '5': 13, '10': 'sessionType'}, + ], +}; + +/// Descriptor for `SimpleSession`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List simpleSessionDescriptor = $convert.base64Decode( + 'Cg1TaW1wbGVTZXNzaW9uEhsKCXRhbGtlcl9pZBgBIAEoBFIIdGFsa2VySWQSIQoMc2Vzc2lvbl' + '90eXBlGAIgASgNUgtzZXNzaW9uVHlwZQ=='); + +@$core.Deprecated('Use sysMsgInterfaceLastMsgRspDescriptor instead') +const SysMsgInterfaceLastMsgRsp$json = { + '1': 'SysMsgInterfaceLastMsgRsp', + '2': [ + {'1': 'unread', '3': 1, '4': 1, '5': 5, '10': 'unread'}, + {'1': 'title', '3': 2, '4': 1, '5': 9, '10': 'title'}, + {'1': 'time', '3': 3, '4': 1, '5': 9, '10': 'time'}, + {'1': 'id', '3': 4, '4': 1, '5': 3, '10': 'id'}, + ], +}; + +/// Descriptor for `SysMsgInterfaceLastMsgRsp`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List sysMsgInterfaceLastMsgRspDescriptor = $convert.base64Decode( + 'ChlTeXNNc2dJbnRlcmZhY2VMYXN0TXNnUnNwEhYKBnVucmVhZBgBIAEoBVIGdW5yZWFkEhQKBX' + 'RpdGxlGAIgASgJUgV0aXRsZRISCgR0aW1lGAMgASgJUgR0aW1lEg4KAmlkGAQgASgDUgJpZA=='); + diff --git a/lib/grpc/im/type/im.pb.dart b/lib/grpc/im/type/im.pb.dart new file mode 100644 index 00000000..395c49d8 --- /dev/null +++ b/lib/grpc/im/type/im.pb.dart @@ -0,0 +1,1737 @@ +// +// Generated code. Do not modify. +// source: bilibili/im/type/im.proto +// +// @dart = 3.3 + +// 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 'im.pbenum.dart'; + +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + +export 'im.pbenum.dart'; + +class AccountInfo extends $pb.GeneratedMessage { + factory AccountInfo({ + $core.String? name, + $core.String? picUrl, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (picUrl != null) { + $result.picUrl = picUrl; + } + return $result; + } + AccountInfo._() : super(); + factory AccountInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AccountInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AccountInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'picUrl') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AccountInfo clone() => AccountInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AccountInfo copyWith(void Function(AccountInfo) updates) => super.copyWith((message) => updates(message as AccountInfo)) as AccountInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AccountInfo create() => AccountInfo._(); + AccountInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AccountInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static AccountInfo? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get picUrl => $_getSZ(1); + @$pb.TagNumber(2) + set picUrl($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasPicUrl() => $_has(1); + @$pb.TagNumber(2) + void clearPicUrl() => $_clearField(2); +} + +class FriendRelation extends $pb.GeneratedMessage { + factory FriendRelation({ + $fixnum.Int64? uid, + $core.String? userName, + $core.String? face, + $core.int? vipLevel, + }) { + final $result = create(); + if (uid != null) { + $result.uid = uid; + } + if (userName != null) { + $result.userName = userName; + } + if (face != null) { + $result.face = face; + } + if (vipLevel != null) { + $result.vipLevel = vipLevel; + } + return $result; + } + FriendRelation._() : super(); + factory FriendRelation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory FriendRelation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FriendRelation', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'uid', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOS(2, _omitFieldNames ? '' : 'userName') + ..aOS(3, _omitFieldNames ? '' : 'face') + ..a<$core.int>(4, _omitFieldNames ? '' : 'vipLevel', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FriendRelation clone() => FriendRelation()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FriendRelation copyWith(void Function(FriendRelation) updates) => super.copyWith((message) => updates(message as FriendRelation)) as FriendRelation; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FriendRelation create() => FriendRelation._(); + FriendRelation createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FriendRelation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static FriendRelation? _defaultInstance; + + /// 用户mid + @$pb.TagNumber(1) + $fixnum.Int64 get uid => $_getI64(0); + @$pb.TagNumber(1) + set uid($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasUid() => $_has(0); + @$pb.TagNumber(1) + void clearUid() => $_clearField(1); + + /// 用户昵称 + @$pb.TagNumber(2) + $core.String get userName => $_getSZ(1); + @$pb.TagNumber(2) + set userName($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasUserName() => $_has(1); + @$pb.TagNumber(2) + void clearUserName() => $_clearField(2); + + /// 头像url + @$pb.TagNumber(3) + $core.String get face => $_getSZ(2); + @$pb.TagNumber(3) + set face($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasFace() => $_has(2); + @$pb.TagNumber(3) + void clearFace() => $_clearField(3); + + /// vip类型 + /// 0:无 1:月度大会员 2:年度大会员 + @$pb.TagNumber(4) + $core.int get vipLevel => $_getIZ(3); + @$pb.TagNumber(4) + set vipLevel($core.int v) { $_setUnsignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasVipLevel() => $_has(3); + @$pb.TagNumber(4) + void clearVipLevel() => $_clearField(4); +} + +class GroupRelation extends $pb.GeneratedMessage { + factory GroupRelation({ + $fixnum.Int64? groupId, + $fixnum.Int64? ownerUid, + $core.int? groupType, + $core.int? groupLevel, + $core.String? groupCover, + $core.String? groupName, + $core.String? groupNotice, + $core.int? status, + $core.int? memberRole, + $core.String? fansMedalName, + $fixnum.Int64? roomId, + }) { + final $result = create(); + if (groupId != null) { + $result.groupId = groupId; + } + if (ownerUid != null) { + $result.ownerUid = ownerUid; + } + if (groupType != null) { + $result.groupType = groupType; + } + if (groupLevel != null) { + $result.groupLevel = groupLevel; + } + if (groupCover != null) { + $result.groupCover = groupCover; + } + if (groupName != null) { + $result.groupName = groupName; + } + if (groupNotice != null) { + $result.groupNotice = groupNotice; + } + if (status != null) { + $result.status = status; + } + if (memberRole != null) { + $result.memberRole = memberRole; + } + if (fansMedalName != null) { + $result.fansMedalName = fansMedalName; + } + if (roomId != null) { + $result.roomId = roomId; + } + return $result; + } + GroupRelation._() : super(); + factory GroupRelation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GroupRelation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GroupRelation', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'groupId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'ownerUid', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(3, _omitFieldNames ? '' : 'groupType', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'groupLevel', $pb.PbFieldType.OU3) + ..aOS(5, _omitFieldNames ? '' : 'groupCover') + ..aOS(6, _omitFieldNames ? '' : 'groupName') + ..aOS(7, _omitFieldNames ? '' : 'groupNotice') + ..a<$core.int>(8, _omitFieldNames ? '' : 'status', $pb.PbFieldType.O3) + ..a<$core.int>(9, _omitFieldNames ? '' : 'memberRole', $pb.PbFieldType.O3) + ..aOS(10, _omitFieldNames ? '' : 'fansMedalName') + ..a<$fixnum.Int64>(11, _omitFieldNames ? '' : 'roomId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GroupRelation clone() => GroupRelation()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GroupRelation copyWith(void Function(GroupRelation) updates) => super.copyWith((message) => updates(message as GroupRelation)) as GroupRelation; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GroupRelation create() => GroupRelation._(); + GroupRelation createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GroupRelation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GroupRelation? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get groupId => $_getI64(0); + @$pb.TagNumber(1) + set groupId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasGroupId() => $_has(0); + @$pb.TagNumber(1) + void clearGroupId() => $_clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get ownerUid => $_getI64(1); + @$pb.TagNumber(2) + set ownerUid($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasOwnerUid() => $_has(1); + @$pb.TagNumber(2) + void clearOwnerUid() => $_clearField(2); + + @$pb.TagNumber(3) + $core.int get groupType => $_getIZ(2); + @$pb.TagNumber(3) + set groupType($core.int v) { $_setUnsignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasGroupType() => $_has(2); + @$pb.TagNumber(3) + void clearGroupType() => $_clearField(3); + + @$pb.TagNumber(4) + $core.int get groupLevel => $_getIZ(3); + @$pb.TagNumber(4) + set groupLevel($core.int v) { $_setUnsignedInt32(3, v); } + @$pb.TagNumber(4) + $core.bool hasGroupLevel() => $_has(3); + @$pb.TagNumber(4) + void clearGroupLevel() => $_clearField(4); + + @$pb.TagNumber(5) + $core.String get groupCover => $_getSZ(4); + @$pb.TagNumber(5) + set groupCover($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) + $core.bool hasGroupCover() => $_has(4); + @$pb.TagNumber(5) + void clearGroupCover() => $_clearField(5); + + @$pb.TagNumber(6) + $core.String get groupName => $_getSZ(5); + @$pb.TagNumber(6) + set groupName($core.String v) { $_setString(5, v); } + @$pb.TagNumber(6) + $core.bool hasGroupName() => $_has(5); + @$pb.TagNumber(6) + void clearGroupName() => $_clearField(6); + + @$pb.TagNumber(7) + $core.String get groupNotice => $_getSZ(6); + @$pb.TagNumber(7) + set groupNotice($core.String v) { $_setString(6, v); } + @$pb.TagNumber(7) + $core.bool hasGroupNotice() => $_has(6); + @$pb.TagNumber(7) + void clearGroupNotice() => $_clearField(7); + + @$pb.TagNumber(8) + $core.int get status => $_getIZ(7); + @$pb.TagNumber(8) + set status($core.int v) { $_setSignedInt32(7, v); } + @$pb.TagNumber(8) + $core.bool hasStatus() => $_has(7); + @$pb.TagNumber(8) + void clearStatus() => $_clearField(8); + + @$pb.TagNumber(9) + $core.int get memberRole => $_getIZ(8); + @$pb.TagNumber(9) + set memberRole($core.int v) { $_setSignedInt32(8, v); } + @$pb.TagNumber(9) + $core.bool hasMemberRole() => $_has(8); + @$pb.TagNumber(9) + void clearMemberRole() => $_clearField(9); + + @$pb.TagNumber(10) + $core.String get fansMedalName => $_getSZ(9); + @$pb.TagNumber(10) + set fansMedalName($core.String v) { $_setString(9, v); } + @$pb.TagNumber(10) + $core.bool hasFansMedalName() => $_has(9); + @$pb.TagNumber(10) + void clearFansMedalName() => $_clearField(10); + + @$pb.TagNumber(11) + $fixnum.Int64 get roomId => $_getI64(10); + @$pb.TagNumber(11) + set roomId($fixnum.Int64 v) { $_setInt64(10, v); } + @$pb.TagNumber(11) + $core.bool hasRoomId() => $_has(10); + @$pb.TagNumber(11) + void clearRoomId() => $_clearField(11); +} + +/// 关键词高亮文本 +class HighText extends $pb.GeneratedMessage { + factory HighText({ + $core.String? title, + $core.String? url, + $core.int? index, + }) { + final $result = create(); + if (title != null) { + $result.title = title; + } + if (url != null) { + $result.url = url; + } + if (index != null) { + $result.index = index; + } + return $result; + } + HighText._() : super(); + factory HighText.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory HighText.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'HighText', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'title') + ..aOS(2, _omitFieldNames ? '' : 'url') + ..a<$core.int>(3, _omitFieldNames ? '' : 'index', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + HighText clone() => HighText()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + HighText copyWith(void Function(HighText) updates) => super.copyWith((message) => updates(message as HighText)) as HighText; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static HighText create() => HighText._(); + HighText createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static HighText getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static HighText? _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 url => $_getSZ(1); + @$pb.TagNumber(2) + set url($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasUrl() => $_has(1); + @$pb.TagNumber(2) + void clearUrl() => $_clearField(2); + + /// 表示高亮文本应该高亮第几个匹配的文本,ps:比如,“有疑问请联系客服,联系客服时,请说明具体的情况”,一共有2个匹配的文本,要高亮第一个匹配的,则index=1 + @$pb.TagNumber(3) + $core.int get index => $_getIZ(2); + @$pb.TagNumber(3) + set index($core.int v) { $_setUnsignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasIndex() => $_has(2); + @$pb.TagNumber(3) + void clearIndex() => $_clearField(3); +} + +class ImgInfo extends $pb.GeneratedMessage { + factory ImgInfo({ + $core.String? url, + $core.int? width, + $core.int? height, + $core.String? imageType, + }) { + final $result = create(); + if (url != null) { + $result.url = url; + } + if (width != null) { + $result.width = width; + } + if (height != null) { + $result.height = height; + } + if (imageType != null) { + $result.imageType = imageType; + } + return $result; + } + ImgInfo._() : super(); + factory ImgInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ImgInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ImgInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'url') + ..a<$core.int>(2, _omitFieldNames ? '' : 'width', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'height', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'imageType', protoName: 'imageType') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ImgInfo clone() => ImgInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ImgInfo copyWith(void Function(ImgInfo) updates) => super.copyWith((message) => updates(message as ImgInfo)) as ImgInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ImgInfo create() => ImgInfo._(); + ImgInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ImgInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ImgInfo? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get url => $_getSZ(0); + @$pb.TagNumber(1) + set url($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasUrl() => $_has(0); + @$pb.TagNumber(1) + void clearUrl() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get width => $_getIZ(1); + @$pb.TagNumber(2) + set width($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasWidth() => $_has(1); + @$pb.TagNumber(2) + void clearWidth() => $_clearField(2); + + @$pb.TagNumber(3) + $core.int get height => $_getIZ(2); + @$pb.TagNumber(3) + set height($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasHeight() => $_has(2); + @$pb.TagNumber(3) + void clearHeight() => $_clearField(3); + + @$pb.TagNumber(4) + $core.String get imageType => $_getSZ(3); + @$pb.TagNumber(4) + set imageType($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasImageType() => $_has(3); + @$pb.TagNumber(4) + void clearImageType() => $_clearField(4); +} + +/// 关键词命中信息 +class KeyHitInfos extends $pb.GeneratedMessage { + factory KeyHitInfos({ + $core.String? toast, + $core.int? ruleId, + $core.Iterable? highText, + }) { + final $result = create(); + if (toast != null) { + $result.toast = toast; + } + if (ruleId != null) { + $result.ruleId = ruleId; + } + if (highText != null) { + $result.highText.addAll(highText); + } + return $result; + } + KeyHitInfos._() : super(); + factory KeyHitInfos.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory KeyHitInfos.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'KeyHitInfos', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'toast') + ..a<$core.int>(2, _omitFieldNames ? '' : 'ruleId', $pb.PbFieldType.OU3) + ..pc(3, _omitFieldNames ? '' : 'highText', $pb.PbFieldType.PM, subBuilder: HighText.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') + KeyHitInfos clone() => KeyHitInfos()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + KeyHitInfos copyWith(void Function(KeyHitInfos) updates) => super.copyWith((message) => updates(message as KeyHitInfos)) as KeyHitInfos; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static KeyHitInfos create() => KeyHitInfos._(); + KeyHitInfos createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static KeyHitInfos getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static KeyHitInfos? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get toast => $_getSZ(0); + @$pb.TagNumber(1) + set toast($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasToast() => $_has(0); + @$pb.TagNumber(1) + void clearToast() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get ruleId => $_getIZ(1); + @$pb.TagNumber(2) + set ruleId($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasRuleId() => $_has(1); + @$pb.TagNumber(2) + void clearRuleId() => $_clearField(2); + + @$pb.TagNumber(3) + $pb.PbList get highText => $_getList(2); +} + +class Medal extends $pb.GeneratedMessage { + factory Medal({ + $fixnum.Int64? uid, + $core.int? medalId, + $core.int? level, + $core.String? medalName, + $core.int? score, + $core.int? intimacy, + $core.int? masterStatus, + $core.int? isReceive, + $fixnum.Int64? medalColorStart, + $fixnum.Int64? medalColorEnd, + $fixnum.Int64? medalColorBorder, + $fixnum.Int64? medalColorName, + $fixnum.Int64? medalColorLevel, + $fixnum.Int64? guardLevel, + }) { + final $result = create(); + if (uid != null) { + $result.uid = uid; + } + if (medalId != null) { + $result.medalId = medalId; + } + if (level != null) { + $result.level = level; + } + if (medalName != null) { + $result.medalName = medalName; + } + if (score != null) { + $result.score = score; + } + if (intimacy != null) { + $result.intimacy = intimacy; + } + if (masterStatus != null) { + $result.masterStatus = masterStatus; + } + if (isReceive != null) { + $result.isReceive = isReceive; + } + if (medalColorStart != null) { + $result.medalColorStart = medalColorStart; + } + if (medalColorEnd != null) { + $result.medalColorEnd = medalColorEnd; + } + if (medalColorBorder != null) { + $result.medalColorBorder = medalColorBorder; + } + if (medalColorName != null) { + $result.medalColorName = medalColorName; + } + if (medalColorLevel != null) { + $result.medalColorLevel = medalColorLevel; + } + if (guardLevel != null) { + $result.guardLevel = guardLevel; + } + return $result; + } + Medal._() : super(); + factory Medal.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Medal.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Medal', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'uid') + ..a<$core.int>(2, _omitFieldNames ? '' : 'medalId', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'level', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'medalName') + ..a<$core.int>(5, _omitFieldNames ? '' : 'score', $pb.PbFieldType.O3) + ..a<$core.int>(6, _omitFieldNames ? '' : 'intimacy', $pb.PbFieldType.O3) + ..a<$core.int>(7, _omitFieldNames ? '' : 'masterStatus', $pb.PbFieldType.O3) + ..a<$core.int>(8, _omitFieldNames ? '' : 'isReceive', $pb.PbFieldType.O3) + ..aInt64(9, _omitFieldNames ? '' : 'medalColorStart') + ..aInt64(10, _omitFieldNames ? '' : 'medalColorEnd') + ..aInt64(11, _omitFieldNames ? '' : 'medalColorBorder') + ..aInt64(12, _omitFieldNames ? '' : 'medalColorName') + ..aInt64(13, _omitFieldNames ? '' : 'medalColorLevel') + ..aInt64(14, _omitFieldNames ? '' : 'guardLevel') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Medal clone() => Medal()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Medal copyWith(void Function(Medal) updates) => super.copyWith((message) => updates(message as Medal)) as Medal; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Medal create() => Medal._(); + Medal createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Medal getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Medal? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get uid => $_getI64(0); + @$pb.TagNumber(1) + set uid($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasUid() => $_has(0); + @$pb.TagNumber(1) + void clearUid() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get medalId => $_getIZ(1); + @$pb.TagNumber(2) + set medalId($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasMedalId() => $_has(1); + @$pb.TagNumber(2) + void clearMedalId() => $_clearField(2); + + @$pb.TagNumber(3) + $core.int get level => $_getIZ(2); + @$pb.TagNumber(3) + set level($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasLevel() => $_has(2); + @$pb.TagNumber(3) + void clearLevel() => $_clearField(3); + + @$pb.TagNumber(4) + $core.String get medalName => $_getSZ(3); + @$pb.TagNumber(4) + set medalName($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasMedalName() => $_has(3); + @$pb.TagNumber(4) + void clearMedalName() => $_clearField(4); + + @$pb.TagNumber(5) + $core.int get score => $_getIZ(4); + @$pb.TagNumber(5) + set score($core.int v) { $_setSignedInt32(4, v); } + @$pb.TagNumber(5) + $core.bool hasScore() => $_has(4); + @$pb.TagNumber(5) + void clearScore() => $_clearField(5); + + @$pb.TagNumber(6) + $core.int get intimacy => $_getIZ(5); + @$pb.TagNumber(6) + set intimacy($core.int v) { $_setSignedInt32(5, v); } + @$pb.TagNumber(6) + $core.bool hasIntimacy() => $_has(5); + @$pb.TagNumber(6) + void clearIntimacy() => $_clearField(6); + + @$pb.TagNumber(7) + $core.int get masterStatus => $_getIZ(6); + @$pb.TagNumber(7) + set masterStatus($core.int v) { $_setSignedInt32(6, v); } + @$pb.TagNumber(7) + $core.bool hasMasterStatus() => $_has(6); + @$pb.TagNumber(7) + void clearMasterStatus() => $_clearField(7); + + @$pb.TagNumber(8) + $core.int get isReceive => $_getIZ(7); + @$pb.TagNumber(8) + set isReceive($core.int v) { $_setSignedInt32(7, v); } + @$pb.TagNumber(8) + $core.bool hasIsReceive() => $_has(7); + @$pb.TagNumber(8) + void clearIsReceive() => $_clearField(8); + + @$pb.TagNumber(9) + $fixnum.Int64 get medalColorStart => $_getI64(8); + @$pb.TagNumber(9) + set medalColorStart($fixnum.Int64 v) { $_setInt64(8, v); } + @$pb.TagNumber(9) + $core.bool hasMedalColorStart() => $_has(8); + @$pb.TagNumber(9) + void clearMedalColorStart() => $_clearField(9); + + @$pb.TagNumber(10) + $fixnum.Int64 get medalColorEnd => $_getI64(9); + @$pb.TagNumber(10) + set medalColorEnd($fixnum.Int64 v) { $_setInt64(9, v); } + @$pb.TagNumber(10) + $core.bool hasMedalColorEnd() => $_has(9); + @$pb.TagNumber(10) + void clearMedalColorEnd() => $_clearField(10); + + @$pb.TagNumber(11) + $fixnum.Int64 get medalColorBorder => $_getI64(10); + @$pb.TagNumber(11) + set medalColorBorder($fixnum.Int64 v) { $_setInt64(10, v); } + @$pb.TagNumber(11) + $core.bool hasMedalColorBorder() => $_has(10); + @$pb.TagNumber(11) + void clearMedalColorBorder() => $_clearField(11); + + @$pb.TagNumber(12) + $fixnum.Int64 get medalColorName => $_getI64(11); + @$pb.TagNumber(12) + set medalColorName($fixnum.Int64 v) { $_setInt64(11, v); } + @$pb.TagNumber(12) + $core.bool hasMedalColorName() => $_has(11); + @$pb.TagNumber(12) + void clearMedalColorName() => $_clearField(12); + + @$pb.TagNumber(13) + $fixnum.Int64 get medalColorLevel => $_getI64(12); + @$pb.TagNumber(13) + set medalColorLevel($fixnum.Int64 v) { $_setInt64(12, v); } + @$pb.TagNumber(13) + $core.bool hasMedalColorLevel() => $_has(12); + @$pb.TagNumber(13) + void clearMedalColorLevel() => $_clearField(13); + + @$pb.TagNumber(14) + $fixnum.Int64 get guardLevel => $_getI64(13); + @$pb.TagNumber(14) + set guardLevel($fixnum.Int64 v) { $_setInt64(13, v); } + @$pb.TagNumber(14) + $core.bool hasGuardLevel() => $_has(13); + @$pb.TagNumber(14) + void clearGuardLevel() => $_clearField(14); +} + +class Msg extends $pb.GeneratedMessage { + factory Msg({ + $fixnum.Int64? senderUid, + RecverType? receiverType, + $fixnum.Int64? receiverId, + $fixnum.Int64? cliMsgId, + MsgType? msgType, + $core.String? content, + $fixnum.Int64? msgSeqno, + $fixnum.Int64? timestamp, + $core.Iterable<$fixnum.Int64>? atUids, + $core.Iterable<$fixnum.Int64>? recverIds, + $fixnum.Int64? msgKey, + $core.int? msgStatus, + $core.bool? sysCancel, + $core.String? notifyCode, + MsgSource? msgSource, + $core.int? newFaceVersion, + KeyHitInfos? keyHitInfos, + }) { + final $result = create(); + if (senderUid != null) { + $result.senderUid = senderUid; + } + if (receiverType != null) { + $result.receiverType = receiverType; + } + if (receiverId != null) { + $result.receiverId = receiverId; + } + if (cliMsgId != null) { + $result.cliMsgId = cliMsgId; + } + if (msgType != null) { + $result.msgType = msgType; + } + if (content != null) { + $result.content = content; + } + if (msgSeqno != null) { + $result.msgSeqno = msgSeqno; + } + if (timestamp != null) { + $result.timestamp = timestamp; + } + if (atUids != null) { + $result.atUids.addAll(atUids); + } + if (recverIds != null) { + $result.recverIds.addAll(recverIds); + } + if (msgKey != null) { + $result.msgKey = msgKey; + } + if (msgStatus != null) { + $result.msgStatus = msgStatus; + } + if (sysCancel != null) { + $result.sysCancel = sysCancel; + } + if (notifyCode != null) { + $result.notifyCode = notifyCode; + } + if (msgSource != null) { + $result.msgSource = msgSource; + } + if (newFaceVersion != null) { + $result.newFaceVersion = newFaceVersion; + } + if (keyHitInfos != null) { + $result.keyHitInfos = keyHitInfos; + } + return $result; + } + Msg._() : super(); + factory Msg.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Msg.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Msg', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'senderUid', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..e(2, _omitFieldNames ? '' : 'receiverType', $pb.PbFieldType.OE, defaultOrMaker: RecverType.EN_NO_MEANING, valueOf: RecverType.valueOf, enumValues: RecverType.values) + ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'receiverId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'cliMsgId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..e(5, _omitFieldNames ? '' : 'msgType', $pb.PbFieldType.OE, defaultOrMaker: MsgType.EN_INVALID_MSG_TYPE, valueOf: MsgType.valueOf, enumValues: MsgType.values) + ..aOS(6, _omitFieldNames ? '' : 'content') + ..a<$fixnum.Int64>(7, _omitFieldNames ? '' : 'msgSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(8, _omitFieldNames ? '' : 'timestamp', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..p<$fixnum.Int64>(9, _omitFieldNames ? '' : 'atUids', $pb.PbFieldType.KU6) + ..p<$fixnum.Int64>(10, _omitFieldNames ? '' : 'recverIds', $pb.PbFieldType.KU6) + ..a<$fixnum.Int64>(11, _omitFieldNames ? '' : 'msgKey', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(12, _omitFieldNames ? '' : 'msgStatus', $pb.PbFieldType.OU3) + ..aOB(13, _omitFieldNames ? '' : 'sysCancel') + ..aOS(14, _omitFieldNames ? '' : 'notifyCode') + ..e(15, _omitFieldNames ? '' : 'msgSource', $pb.PbFieldType.OE, defaultOrMaker: MsgSource.EN_MSG_SOURCE_UNKONW, valueOf: MsgSource.valueOf, enumValues: MsgSource.values) + ..a<$core.int>(16, _omitFieldNames ? '' : 'newFaceVersion', $pb.PbFieldType.O3) + ..aOM(17, _omitFieldNames ? '' : 'keyHitInfos', subBuilder: KeyHitInfos.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') + Msg clone() => Msg()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Msg copyWith(void Function(Msg) updates) => super.copyWith((message) => updates(message as Msg)) as Msg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Msg create() => Msg._(); + Msg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Msg getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Msg? _defaultInstance; + + /// 发送方mid + @$pb.TagNumber(1) + $fixnum.Int64 get senderUid => $_getI64(0); + @$pb.TagNumber(1) + set senderUid($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasSenderUid() => $_has(0); + @$pb.TagNumber(1) + void clearSenderUid() => $_clearField(1); + + /// 接收方类型 + @$pb.TagNumber(2) + RecverType get receiverType => $_getN(1); + @$pb.TagNumber(2) + set receiverType(RecverType v) { $_setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasReceiverType() => $_has(1); + @$pb.TagNumber(2) + void clearReceiverType() => $_clearField(2); + + /// 接收方mid + @$pb.TagNumber(3) + $fixnum.Int64 get receiverId => $_getI64(2); + @$pb.TagNumber(3) + set receiverId($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasReceiverId() => $_has(2); + @$pb.TagNumber(3) + void clearReceiverId() => $_clearField(3); + + /// 客户端的序列id,用于服务端去重 + @$pb.TagNumber(4) + $fixnum.Int64 get cliMsgId => $_getI64(3); + @$pb.TagNumber(4) + set cliMsgId($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasCliMsgId() => $_has(3); + @$pb.TagNumber(4) + void clearCliMsgId() => $_clearField(4); + + /// 消息类型 + @$pb.TagNumber(5) + MsgType get msgType => $_getN(4); + @$pb.TagNumber(5) + set msgType(MsgType v) { $_setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasMsgType() => $_has(4); + @$pb.TagNumber(5) + void clearMsgType() => $_clearField(5); + + /// 消息内容 + @$pb.TagNumber(6) + $core.String get content => $_getSZ(5); + @$pb.TagNumber(6) + set content($core.String v) { $_setString(5, v); } + @$pb.TagNumber(6) + $core.bool hasContent() => $_has(5); + @$pb.TagNumber(6) + void clearContent() => $_clearField(6); + + /// 服务端的序列号x + @$pb.TagNumber(7) + $fixnum.Int64 get msgSeqno => $_getI64(6); + @$pb.TagNumber(7) + set msgSeqno($fixnum.Int64 v) { $_setInt64(6, v); } + @$pb.TagNumber(7) + $core.bool hasMsgSeqno() => $_has(6); + @$pb.TagNumber(7) + void clearMsgSeqno() => $_clearField(7); + + /// 消息发送时间(服务端时间) + @$pb.TagNumber(8) + $fixnum.Int64 get timestamp => $_getI64(7); + @$pb.TagNumber(8) + set timestamp($fixnum.Int64 v) { $_setInt64(7, v); } + @$pb.TagNumber(8) + $core.bool hasTimestamp() => $_has(7); + @$pb.TagNumber(8) + void clearTimestamp() => $_clearField(8); + + /// @用户列表 + @$pb.TagNumber(9) + $pb.PbList<$fixnum.Int64> get atUids => $_getList(8); + + /// 多人消息 + @$pb.TagNumber(10) + $pb.PbList<$fixnum.Int64> get recverIds => $_getList(9); + + /// 消息唯一标示 + @$pb.TagNumber(11) + $fixnum.Int64 get msgKey => $_getI64(10); + @$pb.TagNumber(11) + set msgKey($fixnum.Int64 v) { $_setInt64(10, v); } + @$pb.TagNumber(11) + $core.bool hasMsgKey() => $_has(10); + @$pb.TagNumber(11) + void clearMsgKey() => $_clearField(11); + + /// 消息状态 + @$pb.TagNumber(12) + $core.int get msgStatus => $_getIZ(11); + @$pb.TagNumber(12) + set msgStatus($core.int v) { $_setUnsignedInt32(11, v); } + @$pb.TagNumber(12) + $core.bool hasMsgStatus() => $_has(11); + @$pb.TagNumber(12) + void clearMsgStatus() => $_clearField(12); + + /// 是否为系统撤销 + @$pb.TagNumber(13) + $core.bool get sysCancel => $_getBF(12); + @$pb.TagNumber(13) + set sysCancel($core.bool v) { $_setBool(12, v); } + @$pb.TagNumber(13) + $core.bool hasSysCancel() => $_has(12); + @$pb.TagNumber(13) + void clearSysCancel() => $_clearField(13); + + /// 通知码 + @$pb.TagNumber(14) + $core.String get notifyCode => $_getSZ(13); + @$pb.TagNumber(14) + set notifyCode($core.String v) { $_setString(13, v); } + @$pb.TagNumber(14) + $core.bool hasNotifyCode() => $_has(13); + @$pb.TagNumber(14) + void clearNotifyCode() => $_clearField(14); + + /// 消息来源 + @$pb.TagNumber(15) + MsgSource get msgSource => $_getN(14); + @$pb.TagNumber(15) + set msgSource(MsgSource v) { $_setField(15, v); } + @$pb.TagNumber(15) + $core.bool hasMsgSource() => $_has(14); + @$pb.TagNumber(15) + void clearMsgSource() => $_clearField(15); + + /// 如果msg.content有表情字符,则该参数需要置为1 + @$pb.TagNumber(16) + $core.int get newFaceVersion => $_getIZ(15); + @$pb.TagNumber(16) + set newFaceVersion($core.int v) { $_setSignedInt32(15, v); } + @$pb.TagNumber(16) + $core.bool hasNewFaceVersion() => $_has(15); + @$pb.TagNumber(16) + void clearNewFaceVersion() => $_clearField(16); + + /// 命中关键词信息 + @$pb.TagNumber(17) + KeyHitInfos get keyHitInfos => $_getN(16); + @$pb.TagNumber(17) + set keyHitInfos(KeyHitInfos v) { $_setField(17, v); } + @$pb.TagNumber(17) + $core.bool hasKeyHitInfos() => $_has(16); + @$pb.TagNumber(17) + void clearKeyHitInfos() => $_clearField(17); + @$pb.TagNumber(17) + KeyHitInfos ensureKeyHitInfos() => $_ensure(16); +} + +class RelationLog extends $pb.GeneratedMessage { + factory RelationLog({ + RelationLogType? logType, + $fixnum.Int64? oplogSeqno, + FriendRelation? friendRelation, + GroupRelation? groupRelation, + }) { + final $result = create(); + if (logType != null) { + $result.logType = logType; + } + if (oplogSeqno != null) { + $result.oplogSeqno = oplogSeqno; + } + if (friendRelation != null) { + $result.friendRelation = friendRelation; + } + if (groupRelation != null) { + $result.groupRelation = groupRelation; + } + return $result; + } + RelationLog._() : super(); + factory RelationLog.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RelationLog.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RelationLog', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'logType', $pb.PbFieldType.OE, defaultOrMaker: RelationLogType.EN_INVALID_LOG_TYPE, valueOf: RelationLogType.valueOf, enumValues: RelationLogType.values) + ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'oplogSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM(3, _omitFieldNames ? '' : 'friendRelation', subBuilder: FriendRelation.create) + ..aOM(4, _omitFieldNames ? '' : 'groupRelation', subBuilder: GroupRelation.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') + RelationLog clone() => RelationLog()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RelationLog copyWith(void Function(RelationLog) updates) => super.copyWith((message) => updates(message as RelationLog)) as RelationLog; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RelationLog create() => RelationLog._(); + RelationLog createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RelationLog getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RelationLog? _defaultInstance; + + /// 操作类型 + @$pb.TagNumber(1) + RelationLogType get logType => $_getN(0); + @$pb.TagNumber(1) + set logType(RelationLogType v) { $_setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasLogType() => $_has(0); + @$pb.TagNumber(1) + void clearLogType() => $_clearField(1); + + /// 操作seqno + @$pb.TagNumber(2) + $fixnum.Int64 get oplogSeqno => $_getI64(1); + @$pb.TagNumber(2) + set oplogSeqno($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasOplogSeqno() => $_has(1); + @$pb.TagNumber(2) + void clearOplogSeqno() => $_clearField(2); + + /// 好友信息 + @$pb.TagNumber(3) + FriendRelation get friendRelation => $_getN(2); + @$pb.TagNumber(3) + set friendRelation(FriendRelation v) { $_setField(3, v); } + @$pb.TagNumber(3) + $core.bool hasFriendRelation() => $_has(2); + @$pb.TagNumber(3) + void clearFriendRelation() => $_clearField(3); + @$pb.TagNumber(3) + FriendRelation ensureFriendRelation() => $_ensure(2); + + /// 群信息 + @$pb.TagNumber(4) + GroupRelation get groupRelation => $_getN(3); + @$pb.TagNumber(4) + set groupRelation(GroupRelation v) { $_setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasGroupRelation() => $_has(3); + @$pb.TagNumber(4) + void clearGroupRelation() => $_clearField(4); + @$pb.TagNumber(4) + GroupRelation ensureGroupRelation() => $_ensure(3); +} + +/// 会话详情 +class SessionInfo extends $pb.GeneratedMessage { + factory SessionInfo({ + $fixnum.Int64? talkerId, + $core.int? sessionType, + $fixnum.Int64? atSeqno, + $fixnum.Int64? topTs, + $core.String? groupName, + $core.String? groupCover, + $core.int? isFollow, + $core.int? isDnd, + $fixnum.Int64? ackSeqno, + $fixnum.Int64? ackTs, + $fixnum.Int64? sessionTs, + $core.int? unreadCount, + Msg? lastMsg, + $core.int? groupType, + $core.int? canFold, + $core.int? status, + $fixnum.Int64? maxSeqno, + $core.int? newPushMsg, + $core.int? setting, + $core.int? isGuardian, + $core.int? isIntercept, + $core.int? isTrust, + $core.int? systemMsgType, + AccountInfo? accountInfo, + $core.int? liveStatus, + $core.int? bizMsgUnreadCount, + UserLabel? userLabel, + }) { + final $result = create(); + if (talkerId != null) { + $result.talkerId = talkerId; + } + if (sessionType != null) { + $result.sessionType = sessionType; + } + if (atSeqno != null) { + $result.atSeqno = atSeqno; + } + if (topTs != null) { + $result.topTs = topTs; + } + if (groupName != null) { + $result.groupName = groupName; + } + if (groupCover != null) { + $result.groupCover = groupCover; + } + if (isFollow != null) { + $result.isFollow = isFollow; + } + if (isDnd != null) { + $result.isDnd = isDnd; + } + if (ackSeqno != null) { + $result.ackSeqno = ackSeqno; + } + if (ackTs != null) { + $result.ackTs = ackTs; + } + if (sessionTs != null) { + $result.sessionTs = sessionTs; + } + if (unreadCount != null) { + $result.unreadCount = unreadCount; + } + if (lastMsg != null) { + $result.lastMsg = lastMsg; + } + if (groupType != null) { + $result.groupType = groupType; + } + if (canFold != null) { + $result.canFold = canFold; + } + if (status != null) { + $result.status = status; + } + if (maxSeqno != null) { + $result.maxSeqno = maxSeqno; + } + if (newPushMsg != null) { + $result.newPushMsg = newPushMsg; + } + if (setting != null) { + $result.setting = setting; + } + if (isGuardian != null) { + $result.isGuardian = isGuardian; + } + if (isIntercept != null) { + $result.isIntercept = isIntercept; + } + if (isTrust != null) { + $result.isTrust = isTrust; + } + if (systemMsgType != null) { + $result.systemMsgType = systemMsgType; + } + if (accountInfo != null) { + $result.accountInfo = accountInfo; + } + if (liveStatus != null) { + $result.liveStatus = liveStatus; + } + if (bizMsgUnreadCount != null) { + $result.bizMsgUnreadCount = bizMsgUnreadCount; + } + if (userLabel != null) { + $result.userLabel = userLabel; + } + return $result; + } + SessionInfo._() : super(); + factory SessionInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SessionInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SessionInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'talkerId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'sessionType', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'atSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'topTs', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOS(5, _omitFieldNames ? '' : 'groupName') + ..aOS(6, _omitFieldNames ? '' : 'groupCover') + ..a<$core.int>(7, _omitFieldNames ? '' : 'isFollow', $pb.PbFieldType.OU3) + ..a<$core.int>(8, _omitFieldNames ? '' : 'isDnd', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>(9, _omitFieldNames ? '' : 'ackSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(10, _omitFieldNames ? '' : 'ackTs', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(11, _omitFieldNames ? '' : 'sessionTs', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(12, _omitFieldNames ? '' : 'unreadCount', $pb.PbFieldType.OU3) + ..aOM(13, _omitFieldNames ? '' : 'lastMsg', subBuilder: Msg.create) + ..a<$core.int>(14, _omitFieldNames ? '' : 'groupType', $pb.PbFieldType.OU3) + ..a<$core.int>(15, _omitFieldNames ? '' : 'canFold', $pb.PbFieldType.OU3) + ..a<$core.int>(16, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>(17, _omitFieldNames ? '' : 'maxSeqno', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(18, _omitFieldNames ? '' : 'newPushMsg', $pb.PbFieldType.OU3) + ..a<$core.int>(19, _omitFieldNames ? '' : 'setting', $pb.PbFieldType.OU3) + ..a<$core.int>(20, _omitFieldNames ? '' : 'isGuardian', $pb.PbFieldType.OU3) + ..a<$core.int>(21, _omitFieldNames ? '' : 'isIntercept', $pb.PbFieldType.O3) + ..a<$core.int>(22, _omitFieldNames ? '' : 'isTrust', $pb.PbFieldType.O3) + ..a<$core.int>(23, _omitFieldNames ? '' : 'systemMsgType', $pb.PbFieldType.O3) + ..aOM(24, _omitFieldNames ? '' : 'accountInfo', subBuilder: AccountInfo.create) + ..a<$core.int>(25, _omitFieldNames ? '' : 'liveStatus', $pb.PbFieldType.O3) + ..a<$core.int>(26, _omitFieldNames ? '' : 'bizMsgUnreadCount', $pb.PbFieldType.O3) + ..aOM(27, _omitFieldNames ? '' : 'userLabel', subBuilder: UserLabel.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') + SessionInfo clone() => SessionInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SessionInfo copyWith(void Function(SessionInfo) updates) => super.copyWith((message) => updates(message as SessionInfo)) as SessionInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SessionInfo create() => SessionInfo._(); + SessionInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SessionInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SessionInfo? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get talkerId => $_getI64(0); + @$pb.TagNumber(1) + set talkerId($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasTalkerId() => $_has(0); + @$pb.TagNumber(1) + void clearTalkerId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.int get sessionType => $_getIZ(1); + @$pb.TagNumber(2) + set sessionType($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasSessionType() => $_has(1); + @$pb.TagNumber(2) + void clearSessionType() => $_clearField(2); + + @$pb.TagNumber(3) + $fixnum.Int64 get atSeqno => $_getI64(2); + @$pb.TagNumber(3) + set atSeqno($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasAtSeqno() => $_has(2); + @$pb.TagNumber(3) + void clearAtSeqno() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get topTs => $_getI64(3); + @$pb.TagNumber(4) + set topTs($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasTopTs() => $_has(3); + @$pb.TagNumber(4) + void clearTopTs() => $_clearField(4); + + @$pb.TagNumber(5) + $core.String get groupName => $_getSZ(4); + @$pb.TagNumber(5) + set groupName($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) + $core.bool hasGroupName() => $_has(4); + @$pb.TagNumber(5) + void clearGroupName() => $_clearField(5); + + @$pb.TagNumber(6) + $core.String get groupCover => $_getSZ(5); + @$pb.TagNumber(6) + set groupCover($core.String v) { $_setString(5, v); } + @$pb.TagNumber(6) + $core.bool hasGroupCover() => $_has(5); + @$pb.TagNumber(6) + void clearGroupCover() => $_clearField(6); + + @$pb.TagNumber(7) + $core.int get isFollow => $_getIZ(6); + @$pb.TagNumber(7) + set isFollow($core.int v) { $_setUnsignedInt32(6, v); } + @$pb.TagNumber(7) + $core.bool hasIsFollow() => $_has(6); + @$pb.TagNumber(7) + void clearIsFollow() => $_clearField(7); + + @$pb.TagNumber(8) + $core.int get isDnd => $_getIZ(7); + @$pb.TagNumber(8) + set isDnd($core.int v) { $_setUnsignedInt32(7, v); } + @$pb.TagNumber(8) + $core.bool hasIsDnd() => $_has(7); + @$pb.TagNumber(8) + void clearIsDnd() => $_clearField(8); + + @$pb.TagNumber(9) + $fixnum.Int64 get ackSeqno => $_getI64(8); + @$pb.TagNumber(9) + set ackSeqno($fixnum.Int64 v) { $_setInt64(8, v); } + @$pb.TagNumber(9) + $core.bool hasAckSeqno() => $_has(8); + @$pb.TagNumber(9) + void clearAckSeqno() => $_clearField(9); + + @$pb.TagNumber(10) + $fixnum.Int64 get ackTs => $_getI64(9); + @$pb.TagNumber(10) + set ackTs($fixnum.Int64 v) { $_setInt64(9, v); } + @$pb.TagNumber(10) + $core.bool hasAckTs() => $_has(9); + @$pb.TagNumber(10) + void clearAckTs() => $_clearField(10); + + @$pb.TagNumber(11) + $fixnum.Int64 get sessionTs => $_getI64(10); + @$pb.TagNumber(11) + set sessionTs($fixnum.Int64 v) { $_setInt64(10, v); } + @$pb.TagNumber(11) + $core.bool hasSessionTs() => $_has(10); + @$pb.TagNumber(11) + void clearSessionTs() => $_clearField(11); + + @$pb.TagNumber(12) + $core.int get unreadCount => $_getIZ(11); + @$pb.TagNumber(12) + set unreadCount($core.int v) { $_setUnsignedInt32(11, v); } + @$pb.TagNumber(12) + $core.bool hasUnreadCount() => $_has(11); + @$pb.TagNumber(12) + void clearUnreadCount() => $_clearField(12); + + @$pb.TagNumber(13) + Msg get lastMsg => $_getN(12); + @$pb.TagNumber(13) + set lastMsg(Msg v) { $_setField(13, v); } + @$pb.TagNumber(13) + $core.bool hasLastMsg() => $_has(12); + @$pb.TagNumber(13) + void clearLastMsg() => $_clearField(13); + @$pb.TagNumber(13) + Msg ensureLastMsg() => $_ensure(12); + + @$pb.TagNumber(14) + $core.int get groupType => $_getIZ(13); + @$pb.TagNumber(14) + set groupType($core.int v) { $_setUnsignedInt32(13, v); } + @$pb.TagNumber(14) + $core.bool hasGroupType() => $_has(13); + @$pb.TagNumber(14) + void clearGroupType() => $_clearField(14); + + @$pb.TagNumber(15) + $core.int get canFold => $_getIZ(14); + @$pb.TagNumber(15) + set canFold($core.int v) { $_setUnsignedInt32(14, v); } + @$pb.TagNumber(15) + $core.bool hasCanFold() => $_has(14); + @$pb.TagNumber(15) + void clearCanFold() => $_clearField(15); + + @$pb.TagNumber(16) + $core.int get status => $_getIZ(15); + @$pb.TagNumber(16) + set status($core.int v) { $_setUnsignedInt32(15, v); } + @$pb.TagNumber(16) + $core.bool hasStatus() => $_has(15); + @$pb.TagNumber(16) + void clearStatus() => $_clearField(16); + + @$pb.TagNumber(17) + $fixnum.Int64 get maxSeqno => $_getI64(16); + @$pb.TagNumber(17) + set maxSeqno($fixnum.Int64 v) { $_setInt64(16, v); } + @$pb.TagNumber(17) + $core.bool hasMaxSeqno() => $_has(16); + @$pb.TagNumber(17) + void clearMaxSeqno() => $_clearField(17); + + /// 会话是否有业务通知 + @$pb.TagNumber(18) + $core.int get newPushMsg => $_getIZ(17); + @$pb.TagNumber(18) + set newPushMsg($core.int v) { $_setUnsignedInt32(17, v); } + @$pb.TagNumber(18) + $core.bool hasNewPushMsg() => $_has(17); + @$pb.TagNumber(18) + void clearNewPushMsg() => $_clearField(18); + + /// 接收方是否设置接受推送 + @$pb.TagNumber(19) + $core.int get setting => $_getIZ(18); + @$pb.TagNumber(19) + set setting($core.int v) { $_setUnsignedInt32(18, v); } + @$pb.TagNumber(19) + $core.bool hasSetting() => $_has(18); + @$pb.TagNumber(19) + void clearSetting() => $_clearField(19); + + @$pb.TagNumber(20) + $core.int get isGuardian => $_getIZ(19); + @$pb.TagNumber(20) + set isGuardian($core.int v) { $_setUnsignedInt32(19, v); } + @$pb.TagNumber(20) + $core.bool hasIsGuardian() => $_has(19); + @$pb.TagNumber(20) + void clearIsGuardian() => $_clearField(20); + + @$pb.TagNumber(21) + $core.int get isIntercept => $_getIZ(20); + @$pb.TagNumber(21) + set isIntercept($core.int v) { $_setSignedInt32(20, v); } + @$pb.TagNumber(21) + $core.bool hasIsIntercept() => $_has(20); + @$pb.TagNumber(21) + void clearIsIntercept() => $_clearField(21); + + @$pb.TagNumber(22) + $core.int get isTrust => $_getIZ(21); + @$pb.TagNumber(22) + set isTrust($core.int v) { $_setSignedInt32(21, v); } + @$pb.TagNumber(22) + $core.bool hasIsTrust() => $_has(21); + @$pb.TagNumber(22) + void clearIsTrust() => $_clearField(22); + + @$pb.TagNumber(23) + $core.int get systemMsgType => $_getIZ(22); + @$pb.TagNumber(23) + set systemMsgType($core.int v) { $_setSignedInt32(22, v); } + @$pb.TagNumber(23) + $core.bool hasSystemMsgType() => $_has(22); + @$pb.TagNumber(23) + void clearSystemMsgType() => $_clearField(23); + + @$pb.TagNumber(24) + AccountInfo get accountInfo => $_getN(23); + @$pb.TagNumber(24) + set accountInfo(AccountInfo v) { $_setField(24, v); } + @$pb.TagNumber(24) + $core.bool hasAccountInfo() => $_has(23); + @$pb.TagNumber(24) + void clearAccountInfo() => $_clearField(24); + @$pb.TagNumber(24) + AccountInfo ensureAccountInfo() => $_ensure(23); + + @$pb.TagNumber(25) + $core.int get liveStatus => $_getIZ(24); + @$pb.TagNumber(25) + set liveStatus($core.int v) { $_setSignedInt32(24, v); } + @$pb.TagNumber(25) + $core.bool hasLiveStatus() => $_has(24); + @$pb.TagNumber(25) + void clearLiveStatus() => $_clearField(25); + + @$pb.TagNumber(26) + $core.int get bizMsgUnreadCount => $_getIZ(25); + @$pb.TagNumber(26) + set bizMsgUnreadCount($core.int v) { $_setSignedInt32(25, v); } + @$pb.TagNumber(26) + $core.bool hasBizMsgUnreadCount() => $_has(25); + @$pb.TagNumber(26) + void clearBizMsgUnreadCount() => $_clearField(26); + + @$pb.TagNumber(27) + UserLabel get userLabel => $_getN(26); + @$pb.TagNumber(27) + set userLabel(UserLabel v) { $_setField(27, v); } + @$pb.TagNumber(27) + $core.bool hasUserLabel() => $_has(26); + @$pb.TagNumber(27) + void clearUserLabel() => $_clearField(27); + @$pb.TagNumber(27) + UserLabel ensureUserLabel() => $_ensure(26); +} + +class UserLabel extends $pb.GeneratedMessage { + factory UserLabel({ + $core.int? labelType, + Medal? medal, + $core.int? guardianRelation, + }) { + final $result = create(); + if (labelType != null) { + $result.labelType = labelType; + } + if (medal != null) { + $result.medal = medal; + } + if (guardianRelation != null) { + $result.guardianRelation = guardianRelation; + } + return $result; + } + UserLabel._() : super(); + factory UserLabel.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UserLabel.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UserLabel', package: const $pb.PackageName(_omitMessageNames ? '' : 'bilibili.im.type'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'labelType', $pb.PbFieldType.O3) + ..aOM(2, _omitFieldNames ? '' : 'medal', subBuilder: Medal.create) + ..a<$core.int>(3, _omitFieldNames ? '' : 'guardianRelation', $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') + UserLabel clone() => UserLabel()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UserLabel copyWith(void Function(UserLabel) updates) => super.copyWith((message) => updates(message as UserLabel)) as UserLabel; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UserLabel create() => UserLabel._(); + UserLabel createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UserLabel getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UserLabel? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get labelType => $_getIZ(0); + @$pb.TagNumber(1) + set labelType($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasLabelType() => $_has(0); + @$pb.TagNumber(1) + void clearLabelType() => $_clearField(1); + + @$pb.TagNumber(2) + Medal get medal => $_getN(1); + @$pb.TagNumber(2) + set medal(Medal v) { $_setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasMedal() => $_has(1); + @$pb.TagNumber(2) + void clearMedal() => $_clearField(2); + @$pb.TagNumber(2) + Medal ensureMedal() => $_ensure(1); + + @$pb.TagNumber(3) + $core.int get guardianRelation => $_getIZ(2); + @$pb.TagNumber(3) + set guardianRelation($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasGuardianRelation() => $_has(2); + @$pb.TagNumber(3) + void clearGuardianRelation() => $_clearField(3); +} + + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/grpc/im/type/im.pbenum.dart b/lib/grpc/im/type/im.pbenum.dart new file mode 100644 index 00000000..55f35e39 --- /dev/null +++ b/lib/grpc/im/type/im.pbenum.dart @@ -0,0 +1,309 @@ +// +// Generated code. Do not modify. +// source: bilibili/im/type/im.proto +// +// @dart = 3.3 + +// 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; + +class CmdId extends $pb.ProtobufEnum { + static const CmdId EN_CMD_ID_INVALID = CmdId._(0, _omitEnumNames ? '' : 'EN_CMD_ID_INVALID'); + /// msg_svr + static const CmdId EN_CMD_ID_SEND_MSG = CmdId._(200001, _omitEnumNames ? '' : 'EN_CMD_ID_SEND_MSG'); + /// sync_msg_svr + static const CmdId EN_CMD_ID_SYNC_MSG = CmdId._(500001, _omitEnumNames ? '' : 'EN_CMD_ID_SYNC_MSG'); + static const CmdId EN_CMD_ID_SYNC_RELATION = CmdId._(500002, _omitEnumNames ? '' : 'EN_CMD_ID_SYNC_RELATION'); + static const CmdId EN_CMD_ID_SYNC_ACK = CmdId._(500003, _omitEnumNames ? '' : 'EN_CMD_ID_SYNC_ACK'); + static const CmdId EN_CMD_ID_SYNC_FETCH_SESSION_MSGS = CmdId._(500006, _omitEnumNames ? '' : 'EN_CMD_ID_SYNC_FETCH_SESSION_MSGS'); + /// session_svr + static const CmdId EN_CMD_ID_SESSION_SVR_GET_SESSIONS = CmdId._(1000001, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_GET_SESSIONS'); + static const CmdId EN_CMD_ID_SESSION_SVR_NEW_SESSIONS = CmdId._(1000002, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_NEW_SESSIONS'); + static const CmdId EN_CMD_ID_SESSION_SVR_ACK_SESSIONS = CmdId._(1000003, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_ACK_SESSIONS'); + static const CmdId EN_CMD_ID_SESSION_SVR_UPDATE_ACK = CmdId._(1000004, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_UPDATE_ACK'); + static const CmdId EN_CMD_ID_SESSION_SVR_SET_TOP = CmdId._(1000005, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_SET_TOP'); + static const CmdId EN_CMD_ID_SESSION_SVR_REMOVE_SESSION = CmdId._(1000007, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_REMOVE_SESSION'); + static const CmdId EN_CMD_ID_SESSION_SVR_SINGLE_UNREAD = CmdId._(1000008, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_SINGLE_UNREAD'); + static const CmdId EN_CMD_ID_SESSION_SVR_MY_GROUP_UNREAD = CmdId._(1000009, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_MY_GROUP_UNREAD'); + static const CmdId EN_CMD_ID_SESSION_SVR_UPDATE_UNFLW_READ = CmdId._(1000010, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_UPDATE_UNFLW_READ'); + static const CmdId EN_CMD_ID_SESSION_SVR_GROUP_ASSIS_MSG = CmdId._(1000011, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_GROUP_ASSIS_MSG'); + static const CmdId EN_CMD_ID_SESSION_SVR_ACK_ASSIS_MSG = CmdId._(1000012, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_ACK_ASSIS_MSG'); + static const CmdId EN_CMD_ID_SESSION_SVR_SESSION_DETAIL = CmdId._(1000015, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_SESSION_DETAIL'); + static const CmdId EN_CMD_ID_SESSION_SVR_BATCH_SESS_DETAIL = CmdId._(1000016, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_BATCH_SESS_DETAIL'); + static const CmdId EN_CMD_ID_SESSION_SVR_BATCH_RM_SESSIONS = CmdId._(1000017, _omitEnumNames ? '' : 'EN_CMD_ID_SESSION_SVR_BATCH_RM_SESSIONS'); + + static const $core.List values = [ + EN_CMD_ID_INVALID, + EN_CMD_ID_SEND_MSG, + EN_CMD_ID_SYNC_MSG, + EN_CMD_ID_SYNC_RELATION, + EN_CMD_ID_SYNC_ACK, + EN_CMD_ID_SYNC_FETCH_SESSION_MSGS, + EN_CMD_ID_SESSION_SVR_GET_SESSIONS, + EN_CMD_ID_SESSION_SVR_NEW_SESSIONS, + EN_CMD_ID_SESSION_SVR_ACK_SESSIONS, + EN_CMD_ID_SESSION_SVR_UPDATE_ACK, + EN_CMD_ID_SESSION_SVR_SET_TOP, + EN_CMD_ID_SESSION_SVR_REMOVE_SESSION, + EN_CMD_ID_SESSION_SVR_SINGLE_UNREAD, + EN_CMD_ID_SESSION_SVR_MY_GROUP_UNREAD, + EN_CMD_ID_SESSION_SVR_UPDATE_UNFLW_READ, + EN_CMD_ID_SESSION_SVR_GROUP_ASSIS_MSG, + EN_CMD_ID_SESSION_SVR_ACK_ASSIS_MSG, + EN_CMD_ID_SESSION_SVR_SESSION_DETAIL, + EN_CMD_ID_SESSION_SVR_BATCH_SESS_DETAIL, + EN_CMD_ID_SESSION_SVR_BATCH_RM_SESSIONS, + ]; + + static final $core.Map<$core.int, CmdId> _byValue = $pb.ProtobufEnum.initByValue(values); + static CmdId? valueOf($core.int value) => _byValue[value]; + + const CmdId._(super.v, super.n); +} + +class ENUM_BIZ_MSG_TYPE extends $pb.ProtobufEnum { + static const ENUM_BIZ_MSG_TYPE BIZ_MSG_TYPE_NORMAL = ENUM_BIZ_MSG_TYPE._(0, _omitEnumNames ? '' : 'BIZ_MSG_TYPE_NORMAL'); + static const ENUM_BIZ_MSG_TYPE BIZ_MSG_TYPE_CARD_VIDEO = ENUM_BIZ_MSG_TYPE._(1, _omitEnumNames ? '' : 'BIZ_MSG_TYPE_CARD_VIDEO'); + + static const $core.List values = [ + BIZ_MSG_TYPE_NORMAL, + BIZ_MSG_TYPE_CARD_VIDEO, + ]; + + static final $core.Map<$core.int, ENUM_BIZ_MSG_TYPE> _byValue = $pb.ProtobufEnum.initByValue(values); + static ENUM_BIZ_MSG_TYPE? valueOf($core.int value) => _byValue[value]; + + const ENUM_BIZ_MSG_TYPE._(super.v, super.n); +} + +/// 消息来源 +class MsgSource extends $pb.ProtobufEnum { + static const MsgSource EN_MSG_SOURCE_UNKONW = MsgSource._(0, _omitEnumNames ? '' : 'EN_MSG_SOURCE_UNKONW'); + static const MsgSource EN_MSG_SOURCE_IOS = MsgSource._(1, _omitEnumNames ? '' : 'EN_MSG_SOURCE_IOS'); + static const MsgSource EN_MSG_SOURCE_ANDRIOD = MsgSource._(2, _omitEnumNames ? '' : 'EN_MSG_SOURCE_ANDRIOD'); + static const MsgSource EN_MSG_SOURCE_H5 = MsgSource._(3, _omitEnumNames ? '' : 'EN_MSG_SOURCE_H5'); + static const MsgSource EN_MSG_SOURCE_PC = MsgSource._(4, _omitEnumNames ? '' : 'EN_MSG_SOURCE_PC'); + static const MsgSource EN_MSG_SOURCE_BACKSTAGE = MsgSource._(5, _omitEnumNames ? '' : 'EN_MSG_SOURCE_BACKSTAGE'); + static const MsgSource EN_MSG_SOURCE_BIZ = MsgSource._(6, _omitEnumNames ? '' : 'EN_MSG_SOURCE_BIZ'); + static const MsgSource EN_MSG_SOURCE_WEB = MsgSource._(7, _omitEnumNames ? '' : 'EN_MSG_SOURCE_WEB'); + static const MsgSource EN_MSG_SOURCE_AUTOREPLY_BY_FOLLOWED = MsgSource._(8, _omitEnumNames ? '' : 'EN_MSG_SOURCE_AUTOREPLY_BY_FOLLOWED'); + static const MsgSource EN_MSG_SOURCE_AUTOREPLY_BY_RECEIVE_MSG = MsgSource._(9, _omitEnumNames ? '' : 'EN_MSG_SOURCE_AUTOREPLY_BY_RECEIVE_MSG'); + static const MsgSource EN_MSG_SOURCE_AUTOREPLY_BY_KEYWORDS = MsgSource._(10, _omitEnumNames ? '' : 'EN_MSG_SOURCE_AUTOREPLY_BY_KEYWORDS'); + static const MsgSource EN_MSG_SOURCE_AUTOREPLY_BY_VOYAGE = MsgSource._(11, _omitEnumNames ? '' : 'EN_MSG_SOURCE_AUTOREPLY_BY_VOYAGE'); + static const MsgSource EN_MSG_SOURCE_VC_ATTACH_MSG = MsgSource._(12, _omitEnumNames ? '' : 'EN_MSG_SOURCE_VC_ATTACH_MSG'); + + static const $core.List values = [ + EN_MSG_SOURCE_UNKONW, + EN_MSG_SOURCE_IOS, + EN_MSG_SOURCE_ANDRIOD, + EN_MSG_SOURCE_H5, + EN_MSG_SOURCE_PC, + EN_MSG_SOURCE_BACKSTAGE, + EN_MSG_SOURCE_BIZ, + EN_MSG_SOURCE_WEB, + EN_MSG_SOURCE_AUTOREPLY_BY_FOLLOWED, + EN_MSG_SOURCE_AUTOREPLY_BY_RECEIVE_MSG, + EN_MSG_SOURCE_AUTOREPLY_BY_KEYWORDS, + EN_MSG_SOURCE_AUTOREPLY_BY_VOYAGE, + EN_MSG_SOURCE_VC_ATTACH_MSG, + ]; + + static final $core.Map<$core.int, MsgSource> _byValue = $pb.ProtobufEnum.initByValue(values); + static MsgSource? valueOf($core.int value) => _byValue[value]; + + const MsgSource._(super.v, super.n); +} + +/// 消息类型 +class MsgType extends $pb.ProtobufEnum { + /// 基础消息类型 + static const MsgType EN_INVALID_MSG_TYPE = MsgType._(0, _omitEnumNames ? '' : 'EN_INVALID_MSG_TYPE'); + static const MsgType EN_MSG_TYPE_TEXT = MsgType._(1, _omitEnumNames ? '' : 'EN_MSG_TYPE_TEXT'); + static const MsgType EN_MSG_TYPE_PIC = MsgType._(2, _omitEnumNames ? '' : 'EN_MSG_TYPE_PIC'); + static const MsgType EN_MSG_TYPE_AUDIO = MsgType._(3, _omitEnumNames ? '' : 'EN_MSG_TYPE_AUDIO'); + static const MsgType EN_MSG_TYPE_SHARE = MsgType._(4, _omitEnumNames ? '' : 'EN_MSG_TYPE_SHARE'); + static const MsgType EN_MSG_TYPE_DRAW_BACK = MsgType._(5, _omitEnumNames ? '' : 'EN_MSG_TYPE_DRAW_BACK'); + static const MsgType EN_MSG_TYPE_CUSTOM_FACE = MsgType._(6, _omitEnumNames ? '' : 'EN_MSG_TYPE_CUSTOM_FACE'); + static const MsgType EN_MSG_TYPE_SHARE_V2 = MsgType._(7, _omitEnumNames ? '' : 'EN_MSG_TYPE_SHARE_V2'); + static const MsgType EN_MSG_TYPE_SYS_CANCEL = MsgType._(8, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_CANCEL'); + static const MsgType EN_MSG_TYPE_MINI_PROGRAM = MsgType._(9, _omitEnumNames ? '' : 'EN_MSG_TYPE_MINI_PROGRAM'); + /// 扩展消息类型 + static const MsgType EN_MSG_TYPE_NOTIFY_MSG = MsgType._(10, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_MSG'); + static const MsgType EN_MSG_TYPE_VIDEO_CARD = MsgType._(11, _omitEnumNames ? '' : 'EN_MSG_TYPE_VIDEO_CARD'); + static const MsgType EN_MSG_TYPE_ARTICLE_CARD = MsgType._(12, _omitEnumNames ? '' : 'EN_MSG_TYPE_ARTICLE_CARD'); + static const MsgType EN_MSG_TYPE_PICTURE_CARD = MsgType._(13, _omitEnumNames ? '' : 'EN_MSG_TYPE_PICTURE_CARD'); + static const MsgType EN_MSG_TYPE_COMMON_SHARE_CARD = MsgType._(14, _omitEnumNames ? '' : 'EN_MSG_TYPE_COMMON_SHARE_CARD'); + static const MsgType EN_MSG_TYPE_BIZ_MSG_TYPE = MsgType._(50, _omitEnumNames ? '' : 'EN_MSG_TYPE_BIZ_MSG_TYPE'); + static const MsgType EN_MSG_TYPE_MODIFY_MSG_TYPE = MsgType._(51, _omitEnumNames ? '' : 'EN_MSG_TYPE_MODIFY_MSG_TYPE'); + /// 功能类系统消息类型 + static const MsgType EN_MSG_TYPE_GROUP_MEMBER_CHANGED = MsgType._(101, _omitEnumNames ? '' : 'EN_MSG_TYPE_GROUP_MEMBER_CHANGED'); + static const MsgType EN_MSG_TYPE_GROUP_STATUS_CHANGED = MsgType._(102, _omitEnumNames ? '' : 'EN_MSG_TYPE_GROUP_STATUS_CHANGED'); + static const MsgType EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED = MsgType._(103, _omitEnumNames ? '' : 'EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED'); + static const MsgType EN_MSG_TYPE_GROUP_LIST_CHANGED = MsgType._(104, _omitEnumNames ? '' : 'EN_MSG_TYPE_GROUP_LIST_CHANGED'); + static const MsgType EM_MSG_TYPE_FRIEND_LIST_CHANGED = MsgType._(105, _omitEnumNames ? '' : 'EM_MSG_TYPE_FRIEND_LIST_CHANGED'); + static const MsgType EN_MSG_TYPE_GROUP_DETAIL_CHANGED = MsgType._(106, _omitEnumNames ? '' : 'EN_MSG_TYPE_GROUP_DETAIL_CHANGED'); + static const MsgType EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED = MsgType._(107, _omitEnumNames ? '' : 'EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED'); + static const MsgType EN_MSG_TYPE_NOTICE_WATCH_LIST = MsgType._(108, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTICE_WATCH_LIST'); + static const MsgType EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED = MsgType._(109, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED'); + static const MsgType EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED = MsgType._(110, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED'); + static const MsgType EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED = MsgType._(111, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED'); + static const MsgType EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED = MsgType._(112, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED'); + static const MsgType EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2 = MsgType._(113, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2'); + static const MsgType EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2 = MsgType._(114, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2'); + static const MsgType EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2 = MsgType._(115, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2'); + static const MsgType EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI = MsgType._(116, _omitEnumNames ? '' : 'EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI'); + static const MsgType EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI = MsgType._(117, _omitEnumNames ? '' : 'EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI'); + static const MsgType EN_MSG_TYPE_NOTIFY_ANTI_DISTURB = MsgType._(118, _omitEnumNames ? '' : 'EN_MSG_TYPE_NOTIFY_ANTI_DISTURB'); + /// 系统通知栏消息类型 + static const MsgType EN_MSG_TYPE_SYS_GROUP_DISSOLVED = MsgType._(201, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_DISSOLVED'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_JOINED = MsgType._(202, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_JOINED'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED = MsgType._(203, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED = MsgType._(204, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED = MsgType._(205, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF = MsgType._(206, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY = MsgType._(207, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED = MsgType._(208, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED'); + static const MsgType EN_MSG_TYPE_SYS_FRIEND_APPLY = MsgType._(210, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_FRIEND_APPLY'); + static const MsgType EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK = MsgType._(211, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING = MsgType._(212, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING'); + static const MsgType EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY = MsgType._(213, _omitEnumNames ? '' : 'EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY'); + /// 聊天窗口通知消息类型 + static const MsgType EN_MSG_TYPE_CHAT_MEMBER_JOINED = MsgType._(301, _omitEnumNames ? '' : 'EN_MSG_TYPE_CHAT_MEMBER_JOINED'); + static const MsgType EN_MSG_TYPE_CHAT_MEMBER_EXITED = MsgType._(302, _omitEnumNames ? '' : 'EN_MSG_TYPE_CHAT_MEMBER_EXITED'); + static const MsgType EN_MSG_TYPE_CHAT_GROUP_FREEZED = MsgType._(303, _omitEnumNames ? '' : 'EN_MSG_TYPE_CHAT_GROUP_FREEZED'); + static const MsgType EN_MSG_TYPE_CHAT_GROUP_DISSOLVED = MsgType._(304, _omitEnumNames ? '' : 'EN_MSG_TYPE_CHAT_GROUP_DISSOLVED'); + static const MsgType EN_MSG_TYPE_CHAT_GROUP_CREATED = MsgType._(305, _omitEnumNames ? '' : 'EN_MSG_TYPE_CHAT_GROUP_CREATED'); + static const MsgType EN_MSG_TYPE_CHAT_POPUP_SESSION = MsgType._(306, _omitEnumNames ? '' : 'EN_MSG_TYPE_CHAT_POPUP_SESSION'); + + static const $core.List values = [ + EN_INVALID_MSG_TYPE, + EN_MSG_TYPE_TEXT, + EN_MSG_TYPE_PIC, + EN_MSG_TYPE_AUDIO, + EN_MSG_TYPE_SHARE, + EN_MSG_TYPE_DRAW_BACK, + EN_MSG_TYPE_CUSTOM_FACE, + EN_MSG_TYPE_SHARE_V2, + EN_MSG_TYPE_SYS_CANCEL, + EN_MSG_TYPE_MINI_PROGRAM, + EN_MSG_TYPE_NOTIFY_MSG, + EN_MSG_TYPE_VIDEO_CARD, + EN_MSG_TYPE_ARTICLE_CARD, + EN_MSG_TYPE_PICTURE_CARD, + EN_MSG_TYPE_COMMON_SHARE_CARD, + EN_MSG_TYPE_BIZ_MSG_TYPE, + EN_MSG_TYPE_MODIFY_MSG_TYPE, + EN_MSG_TYPE_GROUP_MEMBER_CHANGED, + EN_MSG_TYPE_GROUP_STATUS_CHANGED, + EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED, + EN_MSG_TYPE_GROUP_LIST_CHANGED, + EM_MSG_TYPE_FRIEND_LIST_CHANGED, + EN_MSG_TYPE_GROUP_DETAIL_CHANGED, + EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED, + EN_MSG_TYPE_NOTICE_WATCH_LIST, + EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED, + EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED, + EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED, + EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED, + EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2, + EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2, + EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2, + EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI, + EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI, + EN_MSG_TYPE_NOTIFY_ANTI_DISTURB, + EN_MSG_TYPE_SYS_GROUP_DISSOLVED, + EN_MSG_TYPE_SYS_GROUP_JOINED, + EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED, + EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED, + EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED, + EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF, + EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY, + EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED, + EN_MSG_TYPE_SYS_FRIEND_APPLY, + EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK, + EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING, + EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY, + EN_MSG_TYPE_CHAT_MEMBER_JOINED, + EN_MSG_TYPE_CHAT_MEMBER_EXITED, + EN_MSG_TYPE_CHAT_GROUP_FREEZED, + EN_MSG_TYPE_CHAT_GROUP_DISSOLVED, + EN_MSG_TYPE_CHAT_GROUP_CREATED, + EN_MSG_TYPE_CHAT_POPUP_SESSION, + ]; + + static final $core.Map<$core.int, MsgType> _byValue = $pb.ProtobufEnum.initByValue(values); + static MsgType? valueOf($core.int value) => _byValue[value]; + + const MsgType._(super.v, super.n); +} + +/// 接收方类型 +class RecverType extends $pb.ProtobufEnum { + static const RecverType EN_NO_MEANING = RecverType._(0, _omitEnumNames ? '' : 'EN_NO_MEANING'); + static const RecverType EN_RECVER_TYPE_PEER = RecverType._(1, _omitEnumNames ? '' : 'EN_RECVER_TYPE_PEER'); + static const RecverType EN_RECVER_TYPE_GROUP = RecverType._(2, _omitEnumNames ? '' : 'EN_RECVER_TYPE_GROUP'); + static const RecverType EN_RECVER_TYPE_PEERS = RecverType._(3, _omitEnumNames ? '' : 'EN_RECVER_TYPE_PEERS'); + + static const $core.List values = [ + EN_NO_MEANING, + EN_RECVER_TYPE_PEER, + EN_RECVER_TYPE_GROUP, + EN_RECVER_TYPE_PEERS, + ]; + + static final $core.Map<$core.int, RecverType> _byValue = $pb.ProtobufEnum.initByValue(values); + static RecverType? valueOf($core.int value) => _byValue[value]; + + const RecverType._(super.v, super.n); +} + +class RelationLogType extends $pb.ProtobufEnum { + static const RelationLogType EN_INVALID_LOG_TYPE = RelationLogType._(0, _omitEnumNames ? '' : 'EN_INVALID_LOG_TYPE'); + static const RelationLogType EN_ADD_FRIEND = RelationLogType._(1, _omitEnumNames ? '' : 'EN_ADD_FRIEND'); + static const RelationLogType EN_REMOVE_FRIEND = RelationLogType._(2, _omitEnumNames ? '' : 'EN_REMOVE_FRIEND'); + static const RelationLogType EN_JOIN_GROUP = RelationLogType._(3, _omitEnumNames ? '' : 'EN_JOIN_GROUP'); + static const RelationLogType EN_EXIT_GROUP = RelationLogType._(4, _omitEnumNames ? '' : 'EN_EXIT_GROUP'); + + static const $core.List values = [ + EN_INVALID_LOG_TYPE, + EN_ADD_FRIEND, + EN_REMOVE_FRIEND, + EN_JOIN_GROUP, + EN_EXIT_GROUP, + ]; + + static final $core.Map<$core.int, RelationLogType> _byValue = $pb.ProtobufEnum.initByValue(values); + static RelationLogType? valueOf($core.int value) => _byValue[value]; + + const RelationLogType._(super.v, super.n); +} + +class SESSION_TYPE extends $pb.ProtobufEnum { + static const SESSION_TYPE INVALID_SESSION_TYPE = SESSION_TYPE._(0, _omitEnumNames ? '' : 'INVALID_SESSION_TYPE'); + static const SESSION_TYPE UN_FOLD_SESSION = SESSION_TYPE._(1, _omitEnumNames ? '' : 'UN_FOLD_SESSION'); + static const SESSION_TYPE UN_FOLLOW_SINGLE_SESSION = SESSION_TYPE._(2, _omitEnumNames ? '' : 'UN_FOLLOW_SINGLE_SESSION'); + static const SESSION_TYPE MY_GROUP_SESSION = SESSION_TYPE._(3, _omitEnumNames ? '' : 'MY_GROUP_SESSION'); + static const SESSION_TYPE ALL_SESSION = SESSION_TYPE._(4, _omitEnumNames ? '' : 'ALL_SESSION'); + + static const $core.List values = [ + INVALID_SESSION_TYPE, + UN_FOLD_SESSION, + UN_FOLLOW_SINGLE_SESSION, + MY_GROUP_SESSION, + ALL_SESSION, + ]; + + static final $core.Map<$core.int, SESSION_TYPE> _byValue = $pb.ProtobufEnum.initByValue(values); + static SESSION_TYPE? valueOf($core.int value) => _byValue[value]; + + const SESSION_TYPE._(super.v, super.n); +} + + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/grpc/im/type/im.pbjson.dart b/lib/grpc/im/type/im.pbjson.dart new file mode 100644 index 00000000..0cf621bc --- /dev/null +++ b/lib/grpc/im/type/im.pbjson.dart @@ -0,0 +1,522 @@ +// +// Generated code. Do not modify. +// source: bilibili/im/type/im.proto +// +// @dart = 3.3 + +// 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 cmdIdDescriptor instead') +const CmdId$json = { + '1': 'CmdId', + '2': [ + {'1': 'EN_CMD_ID_INVALID', '2': 0}, + {'1': 'EN_CMD_ID_SEND_MSG', '2': 200001}, + {'1': 'EN_CMD_ID_SYNC_MSG', '2': 500001}, + {'1': 'EN_CMD_ID_SYNC_RELATION', '2': 500002}, + {'1': 'EN_CMD_ID_SYNC_ACK', '2': 500003}, + {'1': 'EN_CMD_ID_SYNC_FETCH_SESSION_MSGS', '2': 500006}, + {'1': 'EN_CMD_ID_SESSION_SVR_GET_SESSIONS', '2': 1000001}, + {'1': 'EN_CMD_ID_SESSION_SVR_NEW_SESSIONS', '2': 1000002}, + {'1': 'EN_CMD_ID_SESSION_SVR_ACK_SESSIONS', '2': 1000003}, + {'1': 'EN_CMD_ID_SESSION_SVR_UPDATE_ACK', '2': 1000004}, + {'1': 'EN_CMD_ID_SESSION_SVR_SET_TOP', '2': 1000005}, + {'1': 'EN_CMD_ID_SESSION_SVR_REMOVE_SESSION', '2': 1000007}, + {'1': 'EN_CMD_ID_SESSION_SVR_SINGLE_UNREAD', '2': 1000008}, + {'1': 'EN_CMD_ID_SESSION_SVR_MY_GROUP_UNREAD', '2': 1000009}, + {'1': 'EN_CMD_ID_SESSION_SVR_UPDATE_UNFLW_READ', '2': 1000010}, + {'1': 'EN_CMD_ID_SESSION_SVR_GROUP_ASSIS_MSG', '2': 1000011}, + {'1': 'EN_CMD_ID_SESSION_SVR_ACK_ASSIS_MSG', '2': 1000012}, + {'1': 'EN_CMD_ID_SESSION_SVR_SESSION_DETAIL', '2': 1000015}, + {'1': 'EN_CMD_ID_SESSION_SVR_BATCH_SESS_DETAIL', '2': 1000016}, + {'1': 'EN_CMD_ID_SESSION_SVR_BATCH_RM_SESSIONS', '2': 1000017}, + ], +}; + +/// Descriptor for `CmdId`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List cmdIdDescriptor = $convert.base64Decode( + 'CgVDbWRJZBIVChFFTl9DTURfSURfSU5WQUxJRBAAEhgKEkVOX0NNRF9JRF9TRU5EX01TRxDBmg' + 'wSGAoSRU5fQ01EX0lEX1NZTkNfTVNHEKHCHhIdChdFTl9DTURfSURfU1lOQ19SRUxBVElPThCi' + 'wh4SGAoSRU5fQ01EX0lEX1NZTkNfQUNLEKPCHhInCiFFTl9DTURfSURfU1lOQ19GRVRDSF9TRV' + 'NTSU9OX01TR1MQpsIeEigKIkVOX0NNRF9JRF9TRVNTSU9OX1NWUl9HRVRfU0VTU0lPTlMQwYQ9' + 'EigKIkVOX0NNRF9JRF9TRVNTSU9OX1NWUl9ORVdfU0VTU0lPTlMQwoQ9EigKIkVOX0NNRF9JRF' + '9TRVNTSU9OX1NWUl9BQ0tfU0VTU0lPTlMQw4Q9EiYKIEVOX0NNRF9JRF9TRVNTSU9OX1NWUl9V' + 'UERBVEVfQUNLEMSEPRIjCh1FTl9DTURfSURfU0VTU0lPTl9TVlJfU0VUX1RPUBDFhD0SKgokRU' + '5fQ01EX0lEX1NFU1NJT05fU1ZSX1JFTU9WRV9TRVNTSU9OEMeEPRIpCiNFTl9DTURfSURfU0VT' + 'U0lPTl9TVlJfU0lOR0xFX1VOUkVBRBDIhD0SKwolRU5fQ01EX0lEX1NFU1NJT05fU1ZSX01ZX0' + 'dST1VQX1VOUkVBRBDJhD0SLQonRU5fQ01EX0lEX1NFU1NJT05fU1ZSX1VQREFURV9VTkZMV19S' + 'RUFEEMqEPRIrCiVFTl9DTURfSURfU0VTU0lPTl9TVlJfR1JPVVBfQVNTSVNfTVNHEMuEPRIpCi' + 'NFTl9DTURfSURfU0VTU0lPTl9TVlJfQUNLX0FTU0lTX01TRxDMhD0SKgokRU5fQ01EX0lEX1NF' + 'U1NJT05fU1ZSX1NFU1NJT05fREVUQUlMEM+EPRItCidFTl9DTURfSURfU0VTU0lPTl9TVlJfQk' + 'FUQ0hfU0VTU19ERVRBSUwQ0IQ9Ei0KJ0VOX0NNRF9JRF9TRVNTSU9OX1NWUl9CQVRDSF9STV9T' + 'RVNTSU9OUxDRhD0='); + +@$core.Deprecated('Use eNUM_BIZ_MSG_TYPEDescriptor instead') +const ENUM_BIZ_MSG_TYPE$json = { + '1': 'ENUM_BIZ_MSG_TYPE', + '2': [ + {'1': 'BIZ_MSG_TYPE_NORMAL', '2': 0}, + {'1': 'BIZ_MSG_TYPE_CARD_VIDEO', '2': 1}, + ], +}; + +/// Descriptor for `ENUM_BIZ_MSG_TYPE`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List eNUM_BIZ_MSG_TYPEDescriptor = $convert.base64Decode( + 'ChFFTlVNX0JJWl9NU0dfVFlQRRIXChNCSVpfTVNHX1RZUEVfTk9STUFMEAASGwoXQklaX01TR1' + '9UWVBFX0NBUkRfVklERU8QAQ=='); + +@$core.Deprecated('Use msgSourceDescriptor instead') +const MsgSource$json = { + '1': 'MsgSource', + '2': [ + {'1': 'EN_MSG_SOURCE_UNKONW', '2': 0}, + {'1': 'EN_MSG_SOURCE_IOS', '2': 1}, + {'1': 'EN_MSG_SOURCE_ANDRIOD', '2': 2}, + {'1': 'EN_MSG_SOURCE_H5', '2': 3}, + {'1': 'EN_MSG_SOURCE_PC', '2': 4}, + {'1': 'EN_MSG_SOURCE_BACKSTAGE', '2': 5}, + {'1': 'EN_MSG_SOURCE_BIZ', '2': 6}, + {'1': 'EN_MSG_SOURCE_WEB', '2': 7}, + {'1': 'EN_MSG_SOURCE_AUTOREPLY_BY_FOLLOWED', '2': 8}, + {'1': 'EN_MSG_SOURCE_AUTOREPLY_BY_RECEIVE_MSG', '2': 9}, + {'1': 'EN_MSG_SOURCE_AUTOREPLY_BY_KEYWORDS', '2': 10}, + {'1': 'EN_MSG_SOURCE_AUTOREPLY_BY_VOYAGE', '2': 11}, + {'1': 'EN_MSG_SOURCE_VC_ATTACH_MSG', '2': 12}, + ], +}; + +/// Descriptor for `MsgSource`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List msgSourceDescriptor = $convert.base64Decode( + 'CglNc2dTb3VyY2USGAoURU5fTVNHX1NPVVJDRV9VTktPTlcQABIVChFFTl9NU0dfU09VUkNFX0' + 'lPUxABEhkKFUVOX01TR19TT1VSQ0VfQU5EUklPRBACEhQKEEVOX01TR19TT1VSQ0VfSDUQAxIU' + 'ChBFTl9NU0dfU09VUkNFX1BDEAQSGwoXRU5fTVNHX1NPVVJDRV9CQUNLU1RBR0UQBRIVChFFTl' + '9NU0dfU09VUkNFX0JJWhAGEhUKEUVOX01TR19TT1VSQ0VfV0VCEAcSJwojRU5fTVNHX1NPVVJD' + 'RV9BVVRPUkVQTFlfQllfRk9MTE9XRUQQCBIqCiZFTl9NU0dfU09VUkNFX0FVVE9SRVBMWV9CWV' + '9SRUNFSVZFX01TRxAJEicKI0VOX01TR19TT1VSQ0VfQVVUT1JFUExZX0JZX0tFWVdPUkRTEAoS' + 'JQohRU5fTVNHX1NPVVJDRV9BVVRPUkVQTFlfQllfVk9ZQUdFEAsSHwobRU5fTVNHX1NPVVJDRV' + '9WQ19BVFRBQ0hfTVNHEAw='); + +@$core.Deprecated('Use msgTypeDescriptor instead') +const MsgType$json = { + '1': 'MsgType', + '2': [ + {'1': 'EN_INVALID_MSG_TYPE', '2': 0}, + {'1': 'EN_MSG_TYPE_TEXT', '2': 1}, + {'1': 'EN_MSG_TYPE_PIC', '2': 2}, + {'1': 'EN_MSG_TYPE_AUDIO', '2': 3}, + {'1': 'EN_MSG_TYPE_SHARE', '2': 4}, + {'1': 'EN_MSG_TYPE_DRAW_BACK', '2': 5}, + {'1': 'EN_MSG_TYPE_CUSTOM_FACE', '2': 6}, + {'1': 'EN_MSG_TYPE_SHARE_V2', '2': 7}, + {'1': 'EN_MSG_TYPE_SYS_CANCEL', '2': 8}, + {'1': 'EN_MSG_TYPE_MINI_PROGRAM', '2': 9}, + {'1': 'EN_MSG_TYPE_NOTIFY_MSG', '2': 10}, + {'1': 'EN_MSG_TYPE_VIDEO_CARD', '2': 11}, + {'1': 'EN_MSG_TYPE_ARTICLE_CARD', '2': 12}, + {'1': 'EN_MSG_TYPE_PICTURE_CARD', '2': 13}, + {'1': 'EN_MSG_TYPE_COMMON_SHARE_CARD', '2': 14}, + {'1': 'EN_MSG_TYPE_BIZ_MSG_TYPE', '2': 50}, + {'1': 'EN_MSG_TYPE_MODIFY_MSG_TYPE', '2': 51}, + {'1': 'EN_MSG_TYPE_GROUP_MEMBER_CHANGED', '2': 101}, + {'1': 'EN_MSG_TYPE_GROUP_STATUS_CHANGED', '2': 102}, + {'1': 'EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED', '2': 103}, + {'1': 'EN_MSG_TYPE_GROUP_LIST_CHANGED', '2': 104}, + {'1': 'EM_MSG_TYPE_FRIEND_LIST_CHANGED', '2': 105}, + {'1': 'EN_MSG_TYPE_GROUP_DETAIL_CHANGED', '2': 106}, + {'1': 'EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED', '2': 107}, + {'1': 'EN_MSG_TYPE_NOTICE_WATCH_LIST', '2': 108}, + {'1': 'EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED', '2': 109}, + {'1': 'EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED', '2': 110}, + {'1': 'EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED', '2': 111}, + {'1': 'EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED', '2': 112}, + {'1': 'EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2', '2': 113}, + {'1': 'EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2', '2': 114}, + {'1': 'EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2', '2': 115}, + {'1': 'EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI', '2': 116}, + {'1': 'EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI', '2': 117}, + {'1': 'EN_MSG_TYPE_NOTIFY_ANTI_DISTURB', '2': 118}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_DISSOLVED', '2': 201}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_JOINED', '2': 202}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED', '2': 203}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED', '2': 204}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED', '2': 205}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF', '2': 206}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY', '2': 207}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED', '2': 208}, + {'1': 'EN_MSG_TYPE_SYS_FRIEND_APPLY', '2': 210}, + {'1': 'EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK', '2': 211}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING', '2': 212}, + {'1': 'EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY', '2': 213}, + {'1': 'EN_MSG_TYPE_CHAT_MEMBER_JOINED', '2': 301}, + {'1': 'EN_MSG_TYPE_CHAT_MEMBER_EXITED', '2': 302}, + {'1': 'EN_MSG_TYPE_CHAT_GROUP_FREEZED', '2': 303}, + {'1': 'EN_MSG_TYPE_CHAT_GROUP_DISSOLVED', '2': 304}, + {'1': 'EN_MSG_TYPE_CHAT_GROUP_CREATED', '2': 305}, + {'1': 'EN_MSG_TYPE_CHAT_POPUP_SESSION', '2': 306}, + ], +}; + +/// Descriptor for `MsgType`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List msgTypeDescriptor = $convert.base64Decode( + 'CgdNc2dUeXBlEhcKE0VOX0lOVkFMSURfTVNHX1RZUEUQABIUChBFTl9NU0dfVFlQRV9URVhUEA' + 'ESEwoPRU5fTVNHX1RZUEVfUElDEAISFQoRRU5fTVNHX1RZUEVfQVVESU8QAxIVChFFTl9NU0df' + 'VFlQRV9TSEFSRRAEEhkKFUVOX01TR19UWVBFX0RSQVdfQkFDSxAFEhsKF0VOX01TR19UWVBFX0' + 'NVU1RPTV9GQUNFEAYSGAoURU5fTVNHX1RZUEVfU0hBUkVfVjIQBxIaChZFTl9NU0dfVFlQRV9T' + 'WVNfQ0FOQ0VMEAgSHAoYRU5fTVNHX1RZUEVfTUlOSV9QUk9HUkFNEAkSGgoWRU5fTVNHX1RZUE' + 'VfTk9USUZZX01TRxAKEhoKFkVOX01TR19UWVBFX1ZJREVPX0NBUkQQCxIcChhFTl9NU0dfVFlQ' + 'RV9BUlRJQ0xFX0NBUkQQDBIcChhFTl9NU0dfVFlQRV9QSUNUVVJFX0NBUkQQDRIhCh1FTl9NU0' + 'dfVFlQRV9DT01NT05fU0hBUkVfQ0FSRBAOEhwKGEVOX01TR19UWVBFX0JJWl9NU0dfVFlQRRAy' + 'Eh8KG0VOX01TR19UWVBFX01PRElGWV9NU0dfVFlQRRAzEiQKIEVOX01TR19UWVBFX0dST1VQX0' + '1FTUJFUl9DSEFOR0VEEGUSJAogRU5fTVNHX1RZUEVfR1JPVVBfU1RBVFVTX0NIQU5HRUQQZhIl' + 'CiFFTl9NU0dfVFlQRV9HUk9VUF9EWU5BTUlDX0NIQU5HRUQQZxIiCh5FTl9NU0dfVFlQRV9HUk' + '9VUF9MSVNUX0NIQU5HRUQQaBIjCh9FTV9NU0dfVFlQRV9GUklFTkRfTElTVF9DSEFOR0VEEGkS' + 'JAogRU5fTVNHX1RZUEVfR1JPVVBfREVUQUlMX0NIQU5HRUQQahIpCiVFTl9NU0dfVFlQRV9HUk' + '9VUF9NRU1CRVJfUk9MRV9DSEFOR0VEEGsSIQodRU5fTVNHX1RZUEVfTk9USUNFX1dBVENIX0xJ' + 'U1QQbBIpCiVFTl9NU0dfVFlQRV9OT1RJRllfTkVXX1JFUExZX1JFQ0lFVkVEEG0SJgoiRU5fTV' + 'NHX1RZUEVfTk9USUZZX05FV19BVF9SRUNJRVZFRBBuEioKJkVOX01TR19UWVBFX05PVElGWV9O' + 'RVdfUFJBSVNFX1JFQ0lFVkVEEG8SJgoiRU5fTVNHX1RZUEVfTk9USUZZX05FV19VUF9SRUNJRV' + 'ZFRBBwEiwKKEVOX01TR19UWVBFX05PVElGWV9ORVdfUkVQTFlfUkVDSUVWRURfVjIQcRIpCiVF' + 'Tl9NU0dfVFlQRV9OT1RJRllfTkVXX0FUX1JFQ0lFVkVEX1YyEHISLQopRU5fTVNHX1RZUEVfTk' + '9USUZZX05FV19QUkFJU0VfUkVDSUVWRURfVjIQcxIqCiZFTl9NU0dfVFlQRV9HUk9VUF9ERVRB' + 'SUxfQ0hBTkdFRF9NVUxUSRB0Ei8KK0VOX01TR19UWVBFX0dST1VQX01FTUJFUl9ST0xFX0NIQU' + '5HRURfTVVMVEkQdRIjCh9FTl9NU0dfVFlQRV9OT1RJRllfQU5USV9ESVNUVVJCEHYSJAofRU5f' + 'TVNHX1RZUEVfU1lTX0dST1VQX0RJU1NPTFZFRBDJARIhChxFTl9NU0dfVFlQRV9TWVNfR1JPVV' + 'BfSk9JTkVEEMoBEigKI0VOX01TR19UWVBFX1NZU19HUk9VUF9NRU1CRVJfRVhJVEVEEMsBEiYK' + 'IUVOX01TR19UWVBFX1NZU19HUk9VUF9BRE1JTl9GSVJFRBDMARIoCiNFTl9NU0dfVFlQRV9TWV' + 'NfR1JPVVBfTUVNQkVSX0tJQ0tFRBDNARIpCiRFTl9NU0dfVFlQRV9TWVNfR1JPVVBfQURNSU5f' + 'S0lDS19PRkYQzgESJQogRU5fTVNHX1RZUEVfU1lTX0dST1VQX0FETUlOX0RVVFkQzwESJwoiRU' + '5fTVNHX1RZUEVfU1lTX0dST1VQX0FVVE9fQ1JFQVRFRBDQARIhChxFTl9NU0dfVFlQRV9TWVNf' + 'RlJJRU5EX0FQUExZENIBEiUKIEVOX01TR19UWVBFX1NZU19GUklFTkRfQVBQTFlfQUNLENMBEi' + 'wKJ0VOX01TR19UWVBFX1NZU19HUk9VUF9BUFBMWV9GT1JfSk9JTklORxDUARI0Ci9FTl9NU0df' + 'VFlQRV9TWVNfR1JPVVBfQURNSU5fQUNDRVBURURfVVNFUl9BUFBMWRDVARIjCh5FTl9NU0dfVF' + 'lQRV9DSEFUX01FTUJFUl9KT0lORUQQrQISIwoeRU5fTVNHX1RZUEVfQ0hBVF9NRU1CRVJfRVhJ' + 'VEVEEK4CEiMKHkVOX01TR19UWVBFX0NIQVRfR1JPVVBfRlJFRVpFRBCvAhIlCiBFTl9NU0dfVF' + 'lQRV9DSEFUX0dST1VQX0RJU1NPTFZFRBCwAhIjCh5FTl9NU0dfVFlQRV9DSEFUX0dST1VQX0NS' + 'RUFURUQQsQISIwoeRU5fTVNHX1RZUEVfQ0hBVF9QT1BVUF9TRVNTSU9OELIC'); + +@$core.Deprecated('Use recverTypeDescriptor instead') +const RecverType$json = { + '1': 'RecverType', + '2': [ + {'1': 'EN_NO_MEANING', '2': 0}, + {'1': 'EN_RECVER_TYPE_PEER', '2': 1}, + {'1': 'EN_RECVER_TYPE_GROUP', '2': 2}, + {'1': 'EN_RECVER_TYPE_PEERS', '2': 3}, + ], +}; + +/// Descriptor for `RecverType`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List recverTypeDescriptor = $convert.base64Decode( + 'CgpSZWN2ZXJUeXBlEhEKDUVOX05PX01FQU5JTkcQABIXChNFTl9SRUNWRVJfVFlQRV9QRUVSEA' + 'ESGAoURU5fUkVDVkVSX1RZUEVfR1JPVVAQAhIYChRFTl9SRUNWRVJfVFlQRV9QRUVSUxAD'); + +@$core.Deprecated('Use relationLogTypeDescriptor instead') +const RelationLogType$json = { + '1': 'RelationLogType', + '2': [ + {'1': 'EN_INVALID_LOG_TYPE', '2': 0}, + {'1': 'EN_ADD_FRIEND', '2': 1}, + {'1': 'EN_REMOVE_FRIEND', '2': 2}, + {'1': 'EN_JOIN_GROUP', '2': 3}, + {'1': 'EN_EXIT_GROUP', '2': 4}, + ], +}; + +/// Descriptor for `RelationLogType`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List relationLogTypeDescriptor = $convert.base64Decode( + 'Cg9SZWxhdGlvbkxvZ1R5cGUSFwoTRU5fSU5WQUxJRF9MT0dfVFlQRRAAEhEKDUVOX0FERF9GUk' + 'lFTkQQARIUChBFTl9SRU1PVkVfRlJJRU5EEAISEQoNRU5fSk9JTl9HUk9VUBADEhEKDUVOX0VY' + 'SVRfR1JPVVAQBA=='); + +@$core.Deprecated('Use sESSION_TYPEDescriptor instead') +const SESSION_TYPE$json = { + '1': 'SESSION_TYPE', + '2': [ + {'1': 'INVALID_SESSION_TYPE', '2': 0}, + {'1': 'UN_FOLD_SESSION', '2': 1}, + {'1': 'UN_FOLLOW_SINGLE_SESSION', '2': 2}, + {'1': 'MY_GROUP_SESSION', '2': 3}, + {'1': 'ALL_SESSION', '2': 4}, + ], +}; + +/// Descriptor for `SESSION_TYPE`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List sESSION_TYPEDescriptor = $convert.base64Decode( + 'CgxTRVNTSU9OX1RZUEUSGAoUSU5WQUxJRF9TRVNTSU9OX1RZUEUQABITCg9VTl9GT0xEX1NFU1' + 'NJT04QARIcChhVTl9GT0xMT1dfU0lOR0xFX1NFU1NJT04QAhIUChBNWV9HUk9VUF9TRVNTSU9O' + 'EAMSDwoLQUxMX1NFU1NJT04QBA=='); + +@$core.Deprecated('Use accountInfoDescriptor instead') +const AccountInfo$json = { + '1': 'AccountInfo', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + {'1': 'pic_url', '3': 2, '4': 1, '5': 9, '10': 'picUrl'}, + ], +}; + +/// Descriptor for `AccountInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List accountInfoDescriptor = $convert.base64Decode( + 'CgtBY2NvdW50SW5mbxISCgRuYW1lGAEgASgJUgRuYW1lEhcKB3BpY191cmwYAiABKAlSBnBpY1' + 'VybA=='); + +@$core.Deprecated('Use friendRelationDescriptor instead') +const FriendRelation$json = { + '1': 'FriendRelation', + '2': [ + {'1': 'uid', '3': 1, '4': 1, '5': 4, '10': 'uid'}, + {'1': 'user_name', '3': 2, '4': 1, '5': 9, '10': 'userName'}, + {'1': 'face', '3': 3, '4': 1, '5': 9, '10': 'face'}, + {'1': 'vip_level', '3': 4, '4': 1, '5': 13, '10': 'vipLevel'}, + ], +}; + +/// Descriptor for `FriendRelation`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List friendRelationDescriptor = $convert.base64Decode( + 'Cg5GcmllbmRSZWxhdGlvbhIQCgN1aWQYASABKARSA3VpZBIbCgl1c2VyX25hbWUYAiABKAlSCH' + 'VzZXJOYW1lEhIKBGZhY2UYAyABKAlSBGZhY2USGwoJdmlwX2xldmVsGAQgASgNUgh2aXBMZXZl' + 'bA=='); + +@$core.Deprecated('Use groupRelationDescriptor instead') +const GroupRelation$json = { + '1': 'GroupRelation', + '2': [ + {'1': 'group_id', '3': 1, '4': 1, '5': 4, '10': 'groupId'}, + {'1': 'owner_uid', '3': 2, '4': 1, '5': 4, '10': 'ownerUid'}, + {'1': 'group_type', '3': 3, '4': 1, '5': 13, '10': 'groupType'}, + {'1': 'group_level', '3': 4, '4': 1, '5': 13, '10': 'groupLevel'}, + {'1': 'group_cover', '3': 5, '4': 1, '5': 9, '10': 'groupCover'}, + {'1': 'group_name', '3': 6, '4': 1, '5': 9, '10': 'groupName'}, + {'1': 'group_notice', '3': 7, '4': 1, '5': 9, '10': 'groupNotice'}, + {'1': 'status', '3': 8, '4': 1, '5': 5, '10': 'status'}, + {'1': 'member_role', '3': 9, '4': 1, '5': 5, '10': 'memberRole'}, + {'1': 'fans_medal_name', '3': 10, '4': 1, '5': 9, '10': 'fansMedalName'}, + {'1': 'room_id', '3': 11, '4': 1, '5': 4, '10': 'roomId'}, + ], +}; + +/// Descriptor for `GroupRelation`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List groupRelationDescriptor = $convert.base64Decode( + 'Cg1Hcm91cFJlbGF0aW9uEhkKCGdyb3VwX2lkGAEgASgEUgdncm91cElkEhsKCW93bmVyX3VpZB' + 'gCIAEoBFIIb3duZXJVaWQSHQoKZ3JvdXBfdHlwZRgDIAEoDVIJZ3JvdXBUeXBlEh8KC2dyb3Vw' + 'X2xldmVsGAQgASgNUgpncm91cExldmVsEh8KC2dyb3VwX2NvdmVyGAUgASgJUgpncm91cENvdm' + 'VyEh0KCmdyb3VwX25hbWUYBiABKAlSCWdyb3VwTmFtZRIhCgxncm91cF9ub3RpY2UYByABKAlS' + 'C2dyb3VwTm90aWNlEhYKBnN0YXR1cxgIIAEoBVIGc3RhdHVzEh8KC21lbWJlcl9yb2xlGAkgAS' + 'gFUgptZW1iZXJSb2xlEiYKD2ZhbnNfbWVkYWxfbmFtZRgKIAEoCVINZmFuc01lZGFsTmFtZRIX' + 'Cgdyb29tX2lkGAsgASgEUgZyb29tSWQ='); + +@$core.Deprecated('Use highTextDescriptor instead') +const HighText$json = { + '1': 'HighText', + '2': [ + {'1': 'title', '3': 1, '4': 1, '5': 9, '10': 'title'}, + {'1': 'url', '3': 2, '4': 1, '5': 9, '10': 'url'}, + {'1': 'index', '3': 3, '4': 1, '5': 13, '10': 'index'}, + ], +}; + +/// Descriptor for `HighText`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List highTextDescriptor = $convert.base64Decode( + 'CghIaWdoVGV4dBIUCgV0aXRsZRgBIAEoCVIFdGl0bGUSEAoDdXJsGAIgASgJUgN1cmwSFAoFaW' + '5kZXgYAyABKA1SBWluZGV4'); + +@$core.Deprecated('Use imgInfoDescriptor instead') +const ImgInfo$json = { + '1': 'ImgInfo', + '2': [ + {'1': 'url', '3': 1, '4': 1, '5': 9, '10': 'url'}, + {'1': 'width', '3': 2, '4': 1, '5': 5, '10': 'width'}, + {'1': 'height', '3': 3, '4': 1, '5': 5, '10': 'height'}, + {'1': 'imageType', '3': 4, '4': 1, '5': 9, '10': 'imageType'}, + ], +}; + +/// Descriptor for `ImgInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List imgInfoDescriptor = $convert.base64Decode( + 'CgdJbWdJbmZvEhAKA3VybBgBIAEoCVIDdXJsEhQKBXdpZHRoGAIgASgFUgV3aWR0aBIWCgZoZW' + 'lnaHQYAyABKAVSBmhlaWdodBIcCglpbWFnZVR5cGUYBCABKAlSCWltYWdlVHlwZQ=='); + +@$core.Deprecated('Use keyHitInfosDescriptor instead') +const KeyHitInfos$json = { + '1': 'KeyHitInfos', + '2': [ + {'1': 'toast', '3': 1, '4': 1, '5': 9, '10': 'toast'}, + {'1': 'rule_id', '3': 2, '4': 1, '5': 13, '10': 'ruleId'}, + {'1': 'high_text', '3': 3, '4': 3, '5': 11, '6': '.bilibili.im.type.HighText', '10': 'highText'}, + ], +}; + +/// Descriptor for `KeyHitInfos`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List keyHitInfosDescriptor = $convert.base64Decode( + 'CgtLZXlIaXRJbmZvcxIUCgV0b2FzdBgBIAEoCVIFdG9hc3QSFwoHcnVsZV9pZBgCIAEoDVIGcn' + 'VsZUlkEjcKCWhpZ2hfdGV4dBgDIAMoCzIaLmJpbGliaWxpLmltLnR5cGUuSGlnaFRleHRSCGhp' + 'Z2hUZXh0'); + +@$core.Deprecated('Use medalDescriptor instead') +const Medal$json = { + '1': 'Medal', + '2': [ + {'1': 'uid', '3': 1, '4': 1, '5': 3, '10': 'uid'}, + {'1': 'medal_id', '3': 2, '4': 1, '5': 5, '10': 'medalId'}, + {'1': 'level', '3': 3, '4': 1, '5': 5, '10': 'level'}, + {'1': 'medal_name', '3': 4, '4': 1, '5': 9, '10': 'medalName'}, + {'1': 'score', '3': 5, '4': 1, '5': 5, '10': 'score'}, + {'1': 'intimacy', '3': 6, '4': 1, '5': 5, '10': 'intimacy'}, + {'1': 'master_status', '3': 7, '4': 1, '5': 5, '10': 'masterStatus'}, + {'1': 'is_receive', '3': 8, '4': 1, '5': 5, '10': 'isReceive'}, + {'1': 'medal_color_start', '3': 9, '4': 1, '5': 3, '10': 'medalColorStart'}, + {'1': 'medal_color_end', '3': 10, '4': 1, '5': 3, '10': 'medalColorEnd'}, + {'1': 'medal_color_border', '3': 11, '4': 1, '5': 3, '10': 'medalColorBorder'}, + {'1': 'medal_color_name', '3': 12, '4': 1, '5': 3, '10': 'medalColorName'}, + {'1': 'medal_color_level', '3': 13, '4': 1, '5': 3, '10': 'medalColorLevel'}, + {'1': 'guard_level', '3': 14, '4': 1, '5': 3, '10': 'guardLevel'}, + ], +}; + +/// Descriptor for `Medal`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List medalDescriptor = $convert.base64Decode( + 'CgVNZWRhbBIQCgN1aWQYASABKANSA3VpZBIZCghtZWRhbF9pZBgCIAEoBVIHbWVkYWxJZBIUCg' + 'VsZXZlbBgDIAEoBVIFbGV2ZWwSHQoKbWVkYWxfbmFtZRgEIAEoCVIJbWVkYWxOYW1lEhQKBXNj' + 'b3JlGAUgASgFUgVzY29yZRIaCghpbnRpbWFjeRgGIAEoBVIIaW50aW1hY3kSIwoNbWFzdGVyX3' + 'N0YXR1cxgHIAEoBVIMbWFzdGVyU3RhdHVzEh0KCmlzX3JlY2VpdmUYCCABKAVSCWlzUmVjZWl2' + 'ZRIqChFtZWRhbF9jb2xvcl9zdGFydBgJIAEoA1IPbWVkYWxDb2xvclN0YXJ0EiYKD21lZGFsX2' + 'NvbG9yX2VuZBgKIAEoA1INbWVkYWxDb2xvckVuZBIsChJtZWRhbF9jb2xvcl9ib3JkZXIYCyAB' + 'KANSEG1lZGFsQ29sb3JCb3JkZXISKAoQbWVkYWxfY29sb3JfbmFtZRgMIAEoA1IObWVkYWxDb2' + 'xvck5hbWUSKgoRbWVkYWxfY29sb3JfbGV2ZWwYDSABKANSD21lZGFsQ29sb3JMZXZlbBIfCgtn' + 'dWFyZF9sZXZlbBgOIAEoA1IKZ3VhcmRMZXZlbA=='); + +@$core.Deprecated('Use msgDescriptor instead') +const Msg$json = { + '1': 'Msg', + '2': [ + {'1': 'sender_uid', '3': 1, '4': 1, '5': 4, '10': 'senderUid'}, + {'1': 'receiver_type', '3': 2, '4': 1, '5': 14, '6': '.bilibili.im.type.RecverType', '10': 'receiverType'}, + {'1': 'receiver_id', '3': 3, '4': 1, '5': 4, '10': 'receiverId'}, + {'1': 'cli_msg_id', '3': 4, '4': 1, '5': 4, '10': 'cliMsgId'}, + {'1': 'msg_type', '3': 5, '4': 1, '5': 14, '6': '.bilibili.im.type.MsgType', '10': 'msgType'}, + {'1': 'content', '3': 6, '4': 1, '5': 9, '10': 'content'}, + {'1': 'msg_seqno', '3': 7, '4': 1, '5': 4, '10': 'msgSeqno'}, + {'1': 'timestamp', '3': 8, '4': 1, '5': 4, '10': 'timestamp'}, + {'1': 'at_uids', '3': 9, '4': 3, '5': 4, '10': 'atUids'}, + {'1': 'recver_ids', '3': 10, '4': 3, '5': 4, '10': 'recverIds'}, + {'1': 'msg_key', '3': 11, '4': 1, '5': 4, '10': 'msgKey'}, + {'1': 'msg_status', '3': 12, '4': 1, '5': 13, '10': 'msgStatus'}, + {'1': 'sys_cancel', '3': 13, '4': 1, '5': 8, '10': 'sysCancel'}, + {'1': 'notify_code', '3': 14, '4': 1, '5': 9, '10': 'notifyCode'}, + {'1': 'msg_source', '3': 15, '4': 1, '5': 14, '6': '.bilibili.im.type.MsgSource', '10': 'msgSource'}, + {'1': 'new_face_version', '3': 16, '4': 1, '5': 5, '10': 'newFaceVersion'}, + {'1': 'key_hit_infos', '3': 17, '4': 1, '5': 11, '6': '.bilibili.im.type.KeyHitInfos', '10': 'keyHitInfos'}, + ], +}; + +/// Descriptor for `Msg`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List msgDescriptor = $convert.base64Decode( + 'CgNNc2cSHQoKc2VuZGVyX3VpZBgBIAEoBFIJc2VuZGVyVWlkEkEKDXJlY2VpdmVyX3R5cGUYAi' + 'ABKA4yHC5iaWxpYmlsaS5pbS50eXBlLlJlY3ZlclR5cGVSDHJlY2VpdmVyVHlwZRIfCgtyZWNl' + 'aXZlcl9pZBgDIAEoBFIKcmVjZWl2ZXJJZBIcCgpjbGlfbXNnX2lkGAQgASgEUghjbGlNc2dJZB' + 'I0Cghtc2dfdHlwZRgFIAEoDjIZLmJpbGliaWxpLmltLnR5cGUuTXNnVHlwZVIHbXNnVHlwZRIY' + 'Cgdjb250ZW50GAYgASgJUgdjb250ZW50EhsKCW1zZ19zZXFubxgHIAEoBFIIbXNnU2Vxbm8SHA' + 'oJdGltZXN0YW1wGAggASgEUgl0aW1lc3RhbXASFwoHYXRfdWlkcxgJIAMoBFIGYXRVaWRzEh0K' + 'CnJlY3Zlcl9pZHMYCiADKARSCXJlY3ZlcklkcxIXCgdtc2dfa2V5GAsgASgEUgZtc2dLZXkSHQ' + 'oKbXNnX3N0YXR1cxgMIAEoDVIJbXNnU3RhdHVzEh0KCnN5c19jYW5jZWwYDSABKAhSCXN5c0Nh' + 'bmNlbBIfCgtub3RpZnlfY29kZRgOIAEoCVIKbm90aWZ5Q29kZRI6Cgptc2dfc291cmNlGA8gAS' + 'gOMhsuYmlsaWJpbGkuaW0udHlwZS5Nc2dTb3VyY2VSCW1zZ1NvdXJjZRIoChBuZXdfZmFjZV92' + 'ZXJzaW9uGBAgASgFUg5uZXdGYWNlVmVyc2lvbhJBCg1rZXlfaGl0X2luZm9zGBEgASgLMh0uYm' + 'lsaWJpbGkuaW0udHlwZS5LZXlIaXRJbmZvc1ILa2V5SGl0SW5mb3M='); + +@$core.Deprecated('Use relationLogDescriptor instead') +const RelationLog$json = { + '1': 'RelationLog', + '2': [ + {'1': 'log_type', '3': 1, '4': 1, '5': 14, '6': '.bilibili.im.type.RelationLogType', '10': 'logType'}, + {'1': 'oplog_seqno', '3': 2, '4': 1, '5': 4, '10': 'oplogSeqno'}, + {'1': 'friend_relation', '3': 3, '4': 1, '5': 11, '6': '.bilibili.im.type.FriendRelation', '10': 'friendRelation'}, + {'1': 'group_relation', '3': 4, '4': 1, '5': 11, '6': '.bilibili.im.type.GroupRelation', '10': 'groupRelation'}, + ], +}; + +/// Descriptor for `RelationLog`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List relationLogDescriptor = $convert.base64Decode( + 'CgtSZWxhdGlvbkxvZxI8Cghsb2dfdHlwZRgBIAEoDjIhLmJpbGliaWxpLmltLnR5cGUuUmVsYX' + 'Rpb25Mb2dUeXBlUgdsb2dUeXBlEh8KC29wbG9nX3NlcW5vGAIgASgEUgpvcGxvZ1NlcW5vEkkK' + 'D2ZyaWVuZF9yZWxhdGlvbhgDIAEoCzIgLmJpbGliaWxpLmltLnR5cGUuRnJpZW5kUmVsYXRpb2' + '5SDmZyaWVuZFJlbGF0aW9uEkYKDmdyb3VwX3JlbGF0aW9uGAQgASgLMh8uYmlsaWJpbGkuaW0u' + 'dHlwZS5Hcm91cFJlbGF0aW9uUg1ncm91cFJlbGF0aW9u'); + +@$core.Deprecated('Use sessionInfoDescriptor instead') +const SessionInfo$json = { + '1': 'SessionInfo', + '2': [ + {'1': 'talker_id', '3': 1, '4': 1, '5': 4, '10': 'talkerId'}, + {'1': 'session_type', '3': 2, '4': 1, '5': 13, '10': 'sessionType'}, + {'1': 'at_seqno', '3': 3, '4': 1, '5': 4, '10': 'atSeqno'}, + {'1': 'top_ts', '3': 4, '4': 1, '5': 4, '10': 'topTs'}, + {'1': 'group_name', '3': 5, '4': 1, '5': 9, '10': 'groupName'}, + {'1': 'group_cover', '3': 6, '4': 1, '5': 9, '10': 'groupCover'}, + {'1': 'is_follow', '3': 7, '4': 1, '5': 13, '10': 'isFollow'}, + {'1': 'is_dnd', '3': 8, '4': 1, '5': 13, '10': 'isDnd'}, + {'1': 'ack_seqno', '3': 9, '4': 1, '5': 4, '10': 'ackSeqno'}, + {'1': 'ack_ts', '3': 10, '4': 1, '5': 4, '10': 'ackTs'}, + {'1': 'session_ts', '3': 11, '4': 1, '5': 4, '10': 'sessionTs'}, + {'1': 'unread_count', '3': 12, '4': 1, '5': 13, '10': 'unreadCount'}, + {'1': 'last_msg', '3': 13, '4': 1, '5': 11, '6': '.bilibili.im.type.Msg', '10': 'lastMsg'}, + {'1': 'group_type', '3': 14, '4': 1, '5': 13, '10': 'groupType'}, + {'1': 'can_fold', '3': 15, '4': 1, '5': 13, '10': 'canFold'}, + {'1': 'status', '3': 16, '4': 1, '5': 13, '10': 'status'}, + {'1': 'max_seqno', '3': 17, '4': 1, '5': 4, '10': 'maxSeqno'}, + {'1': 'new_push_msg', '3': 18, '4': 1, '5': 13, '10': 'newPushMsg'}, + {'1': 'setting', '3': 19, '4': 1, '5': 13, '10': 'setting'}, + {'1': 'is_guardian', '3': 20, '4': 1, '5': 13, '10': 'isGuardian'}, + {'1': 'is_intercept', '3': 21, '4': 1, '5': 5, '10': 'isIntercept'}, + {'1': 'is_trust', '3': 22, '4': 1, '5': 5, '10': 'isTrust'}, + {'1': 'system_msg_type', '3': 23, '4': 1, '5': 5, '10': 'systemMsgType'}, + {'1': 'account_info', '3': 24, '4': 1, '5': 11, '6': '.bilibili.im.type.AccountInfo', '10': 'accountInfo'}, + {'1': 'live_status', '3': 25, '4': 1, '5': 5, '10': 'liveStatus'}, + {'1': 'biz_msg_unread_count', '3': 26, '4': 1, '5': 5, '10': 'bizMsgUnreadCount'}, + {'1': 'user_label', '3': 27, '4': 1, '5': 11, '6': '.bilibili.im.type.UserLabel', '10': 'userLabel'}, + ], +}; + +/// Descriptor for `SessionInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List sessionInfoDescriptor = $convert.base64Decode( + 'CgtTZXNzaW9uSW5mbxIbCgl0YWxrZXJfaWQYASABKARSCHRhbGtlcklkEiEKDHNlc3Npb25fdH' + 'lwZRgCIAEoDVILc2Vzc2lvblR5cGUSGQoIYXRfc2Vxbm8YAyABKARSB2F0U2Vxbm8SFQoGdG9w' + 'X3RzGAQgASgEUgV0b3BUcxIdCgpncm91cF9uYW1lGAUgASgJUglncm91cE5hbWUSHwoLZ3JvdX' + 'BfY292ZXIYBiABKAlSCmdyb3VwQ292ZXISGwoJaXNfZm9sbG93GAcgASgNUghpc0ZvbGxvdxIV' + 'CgZpc19kbmQYCCABKA1SBWlzRG5kEhsKCWFja19zZXFubxgJIAEoBFIIYWNrU2Vxbm8SFQoGYW' + 'NrX3RzGAogASgEUgVhY2tUcxIdCgpzZXNzaW9uX3RzGAsgASgEUglzZXNzaW9uVHMSIQoMdW5y' + 'ZWFkX2NvdW50GAwgASgNUgt1bnJlYWRDb3VudBIwCghsYXN0X21zZxgNIAEoCzIVLmJpbGliaW' + 'xpLmltLnR5cGUuTXNnUgdsYXN0TXNnEh0KCmdyb3VwX3R5cGUYDiABKA1SCWdyb3VwVHlwZRIZ' + 'CghjYW5fZm9sZBgPIAEoDVIHY2FuRm9sZBIWCgZzdGF0dXMYECABKA1SBnN0YXR1cxIbCgltYX' + 'hfc2Vxbm8YESABKARSCG1heFNlcW5vEiAKDG5ld19wdXNoX21zZxgSIAEoDVIKbmV3UHVzaE1z' + 'ZxIYCgdzZXR0aW5nGBMgASgNUgdzZXR0aW5nEh8KC2lzX2d1YXJkaWFuGBQgASgNUgppc0d1YX' + 'JkaWFuEiEKDGlzX2ludGVyY2VwdBgVIAEoBVILaXNJbnRlcmNlcHQSGQoIaXNfdHJ1c3QYFiAB' + 'KAVSB2lzVHJ1c3QSJgoPc3lzdGVtX21zZ190eXBlGBcgASgFUg1zeXN0ZW1Nc2dUeXBlEkAKDG' + 'FjY291bnRfaW5mbxgYIAEoCzIdLmJpbGliaWxpLmltLnR5cGUuQWNjb3VudEluZm9SC2FjY291' + 'bnRJbmZvEh8KC2xpdmVfc3RhdHVzGBkgASgFUgpsaXZlU3RhdHVzEi8KFGJpel9tc2dfdW5yZW' + 'FkX2NvdW50GBogASgFUhFiaXpNc2dVbnJlYWRDb3VudBI6Cgp1c2VyX2xhYmVsGBsgASgLMhsu' + 'YmlsaWJpbGkuaW0udHlwZS5Vc2VyTGFiZWxSCXVzZXJMYWJlbA=='); + +@$core.Deprecated('Use userLabelDescriptor instead') +const UserLabel$json = { + '1': 'UserLabel', + '2': [ + {'1': 'label_type', '3': 1, '4': 1, '5': 5, '10': 'labelType'}, + {'1': 'medal', '3': 2, '4': 1, '5': 11, '6': '.bilibili.im.type.Medal', '10': 'medal'}, + {'1': 'guardian_relation', '3': 3, '4': 1, '5': 5, '10': 'guardianRelation'}, + ], +}; + +/// Descriptor for `UserLabel`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List userLabelDescriptor = $convert.base64Decode( + 'CglVc2VyTGFiZWwSHQoKbGFiZWxfdHlwZRgBIAEoBVIJbGFiZWxUeXBlEi0KBW1lZGFsGAIgAS' + 'gLMhcuYmlsaWJpbGkuaW0udHlwZS5NZWRhbFIFbWVkYWwSKwoRZ3VhcmRpYW5fcmVsYXRpb24Y' + 'AyABKAVSEGd1YXJkaWFuUmVsYXRpb24='); + diff --git a/lib/http/msg.dart b/lib/http/msg.dart index 53ba7bd0..3f6216a3 100644 --- a/lib/http/msg.dart +++ b/lib/http/msg.dart @@ -523,16 +523,19 @@ class MsgHttp { dynamic content, }) async { String csrf = Accounts.main.csrf; + final devId = getDevId(); Map base = { - 'msg[sender_uid]': senderUid, - 'msg[receiver_id]': receiverId, - 'msg[receiver_type]': receiverType ?? 1, - 'msg[msg_type]': msgType ?? 1, - 'msg[msg_status]': 0, - 'msg[dev_id]': getDevId(), - 'msg[timestamp]': DateTime.now().millisecondsSinceEpoch ~/ 1000, - 'msg[new_face_version]': 1, - 'msg[content]': content, + 'msg': { + 'sender_uid': senderUid, + 'receiver_id': receiverId, + 'receiver_type': receiverType ?? 1, + 'msg_type': msgType ?? 1, + 'msg_status': 0, + 'dev_id': devId, + 'timestamp': DateTime.now().millisecondsSinceEpoch ~/ 1000, + 'new_face_version': 1, + 'content': content, + }, 'from_firework': 0, 'build': 0, 'mobi_app': 'web', @@ -540,15 +543,20 @@ class MsgHttp { 'csrf': csrf, }; Map params = await WbiSign.makSign(base); - var res = await Request().post(Api.sendMsg, - queryParameters: { - 'w_sender_uid': params['msg[sender_uid]'], - 'w_receiver_id': params['msg[receiver_id]'], - 'w_dev_id': params['msg[dev_id]'], - 'w_rid': params['w_rid'], - 'wts': params['wts'], - }, - data: FormData.fromMap(base)); + var res = await Request().post( + Api.sendMsg, + queryParameters: { + 'w_sender_uid': senderUid, + 'w_receiver_id': receiverId, + 'w_dev_id': devId, + 'w_rid': params['w_rid'], + 'wts': params['wts'], + }, + data: base, + options: Options( + contentType: Headers.formUrlEncodedContentType, + ), + ); if (res.data['code'] == 0) { return { 'status': true, diff --git a/lib/pages/bangumi/introduction/controller.dart b/lib/pages/bangumi/introduction/controller.dart index 3f2e98a7..9bce8064 100644 --- a/lib/pages/bangumi/introduction/controller.dart +++ b/lib/pages/bangumi/introduction/controller.dart @@ -265,6 +265,7 @@ class BangumiIntroController mainAxisSize: MainAxisSize.min, children: [ ListTile( + dense: true, title: const Text( '复制链接', style: TextStyle(fontSize: 14), @@ -275,6 +276,7 @@ class BangumiIntroController }, ), ListTile( + dense: true, title: const Text( '其它app打开', style: TextStyle(fontSize: 14), @@ -285,6 +287,7 @@ class BangumiIntroController }, ), ListTile( + dense: true, title: const Text( '分享视频', style: TextStyle(fontSize: 14), @@ -295,6 +298,7 @@ class BangumiIntroController }, ), ListTile( + dense: true, title: const Text( '分享至动态', style: TextStyle(fontSize: 14), @@ -334,6 +338,29 @@ class BangumiIntroController ); }, ), + ListTile( + dense: true, + title: const Text( + '分享至消息', + style: TextStyle(fontSize: 14), + ), + onTap: () { + Get.back(); + try { + EpisodeItem item = bangumiItem!.episodes! + .firstWhere((item) => item.epId == epId); + PageUtils.pmShareVideo( + id: epId!, + source: 16, + cover: item.cover!, + title: '${bangumiItem!.title!} ${item.showTitle}', + url: item.shareUrl, + ); + } catch (e) { + SmartDialog.showToast(e.toString()); + } + }, + ), ], ), ); diff --git a/lib/pages/fan/controller.dart b/lib/pages/fan/controller.dart index 76121cfe..54e2aa76 100644 --- a/lib/pages/fan/controller.dart +++ b/lib/pages/fan/controller.dart @@ -4,28 +4,17 @@ import 'package:PiliPlus/http/video.dart'; import 'package:PiliPlus/models/fans/result.dart'; import 'package:PiliPlus/pages/common/common_list_controller.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; -import 'package:get/get.dart'; -import 'package:PiliPlus/utils/storage.dart'; class FansController extends CommonListController { + FansController(this.mid); int ps = 20; int total = 0; - late int? mid; - late String? name; - dynamic userInfo; - late bool isOwner = false; + int mid; @override void onInit() { super.onInit(); - userInfo = GStorage.userInfo.get('userInfoCache'); - mid = Get.parameters['mid'] != null - ? int.parse(Get.parameters['mid']!) - : userInfo?.mid; - isOwner = mid == userInfo?.mid; - name = Get.parameters['name'] ?? userInfo?.uname; - queryData(); } diff --git a/lib/pages/fan/view.dart b/lib/pages/fan/view.dart index 4b429887..a0d8be94 100644 --- a/lib/pages/fan/view.dart +++ b/lib/pages/fan/view.dart @@ -4,6 +4,8 @@ import 'package:PiliPlus/common/widgets/network_img_layer.dart'; import 'package:PiliPlus/common/widgets/refresh_indicator.dart'; import 'package:PiliPlus/http/loading_state.dart'; import 'package:PiliPlus/models/fans/result.dart'; +import 'package:PiliPlus/pages/video/detail/share/view.dart' show UserModel; +import 'package:PiliPlus/utils/storage.dart'; import 'package:PiliPlus/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; @@ -13,31 +15,44 @@ import '../../utils/grid.dart'; import 'controller.dart'; class FansPage extends StatefulWidget { - const FansPage({super.key}); + const FansPage({ + super.key, + this.mid, + this.onSelect, + }); + + final int? mid; + final ValueChanged? onSelect; @override State createState() => _FansPageState(); } class _FansPageState extends State { - late String mid; + late int mid; + String? name; + late bool isOwner; late FansController _fansController; @override void initState() { super.initState(); - mid = Get.parameters['mid']!; - _fansController = Get.put(FansController(), tag: Utils.makeHeroTag(mid)); + final userInfo = GStorage.userInfo.get('userInfoCache'); + mid = widget.mid ?? + (Get.parameters['mid'] != null + ? int.parse(Get.parameters['mid']!) + : userInfo?.mid); + isOwner = mid == userInfo?.mid; + name = Get.parameters['name'] ?? userInfo?.uname; + _fansController = Get.put(FansController(mid), tag: Utils.makeHeroTag(mid)); } @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: Text( - _fansController.isOwner ? '我的粉丝' : '${_fansController.name}的粉丝', - ), - ), + appBar: widget.onSelect != null + ? null + : AppBar(title: Text(isOwner ? '我的粉丝' : '$name的粉丝')), body: SafeArea( bottom: false, child: refreshIndicator( @@ -86,22 +101,33 @@ class _FansPageState extends State { String heroTag = Utils.makeHeroTag(item.mid); return ListTile( onTap: () { + if (widget.onSelect != null) { + widget.onSelect!(UserModel( + mid: item.mid!, + name: item.uname!, + avatar: item.face!, + )); + return; + } Get.toNamed( '/member?mid=${item.mid}', arguments: {'face': item.face, 'heroTag': heroTag}, ); }, - onLongPress: _fansController.isOwner - ? () { - showConfirmDialog( - context: context, - title: '确定移除 ${item.uname} ?', - onConfirm: () { - _fansController.onRemoveFan(index, item.mid!); - }, - ); - } - : null, + onLongPress: widget.onSelect != null + ? null + : isOwner + ? () { + showConfirmDialog( + context: context, + title: '确定移除 ${item.uname} ?', + onConfirm: () { + _fansController.onRemoveFan( + index, item.mid!); + }, + ); + } + : null, leading: Hero( tag: heroTag, child: NetworkImgLayer( diff --git a/lib/pages/follow/child_controller.dart b/lib/pages/follow/child_controller.dart index 444dfae4..10cbdc49 100644 --- a/lib/pages/follow/child_controller.dart +++ b/lib/pages/follow/child_controller.dart @@ -16,7 +16,7 @@ extension OrderTypeExt on OrderType { class FollowChildController extends CommonListController { FollowChildController(this.controller, this.mid, this.tagid); - final FollowController controller; + final FollowController? controller; final int? tagid; final int mid; @@ -35,15 +35,17 @@ class FollowChildController @override bool customHandleResponse(bool isRefresh, Success response) { - try { - if (controller.isOwner && - tagid == null && - isRefresh && - controller.followState.value is Success) { - controller.tabs[0].count = response.response.total; - controller.tabs.refresh(); - } - } catch (_) {} + if (controller != null) { + try { + if (controller!.isOwner && + tagid == null && + isRefresh && + controller!.followState.value is Success) { + controller!.tabs[0].count = response.response.total; + controller!.tabs.refresh(); + } + } catch (_) {} + } return false; } diff --git a/lib/pages/follow/child_view.dart b/lib/pages/follow/child_view.dart index bfe7f02c..f1dd03a0 100644 --- a/lib/pages/follow/child_view.dart +++ b/lib/pages/follow/child_view.dart @@ -6,6 +6,7 @@ import 'package:PiliPlus/models/follow/result.dart'; import 'package:PiliPlus/pages/follow/child_controller.dart'; import 'package:PiliPlus/pages/follow/controller.dart'; import 'package:PiliPlus/pages/follow/widgets/follow_item.dart'; +import 'package:PiliPlus/pages/video/detail/share/view.dart' show UserModel; import 'package:PiliPlus/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; @@ -13,14 +14,16 @@ import 'package:get/get.dart'; class FollowChildPage extends StatefulWidget { const FollowChildPage({ super.key, - required this.controller, + this.controller, required this.mid, this.tagid, + this.onSelect, }); - final FollowController controller; + final FollowController? controller; final int mid; final int? tagid; + final ValueChanged? onSelect; @override State createState() => _FollowChildPageState(); @@ -35,7 +38,8 @@ class _FollowChildPageState extends State @override Widget build(BuildContext context) { super.build(context); - if (widget.controller.isOwner && widget.tagid == null) { + if (widget.onSelect != null || + (widget.controller?.isOwner == true && widget.tagid == null)) { return Scaffold( backgroundColor: Colors.transparent, body: _child, @@ -90,7 +94,8 @@ class _FollowChildPageState extends State } return FollowItem( item: loadingState.response![index], - isOwner: widget.controller.isOwner, + isOwner: widget.controller?.isOwner, + onSelect: widget.onSelect, callback: (attr) { List list = (_followController.loadingState.value as Success) @@ -113,5 +118,6 @@ class _FollowChildPageState extends State } @override - bool get wantKeepAlive => widget.controller.tabController != null; + bool get wantKeepAlive => + widget.onSelect != null || widget.controller?.tabController != null; } diff --git a/lib/pages/follow/widgets/follow_item.dart b/lib/pages/follow/widgets/follow_item.dart index b29fab49..9d0dac9a 100644 --- a/lib/pages/follow/widgets/follow_item.dart +++ b/lib/pages/follow/widgets/follow_item.dart @@ -1,3 +1,4 @@ +import 'package:PiliPlus/pages/video/detail/share/view.dart' show UserModel; import 'package:PiliPlus/utils/request_utils.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; @@ -10,12 +11,14 @@ class FollowItem extends StatelessWidget { final FollowItemModel item; final bool? isOwner; final ValueChanged? callback; + final ValueChanged? onSelect; const FollowItem({ super.key, required this.item, this.callback, this.isOwner, + this.onSelect, }); @override @@ -23,9 +26,19 @@ class FollowItem extends StatelessWidget { String heroTag = Utils.makeHeroTag(item.mid); return ListTile( onTap: () { - feedBack(); - Get.toNamed('/member?mid=${item.mid}', - arguments: {'face': item.face, 'heroTag': heroTag}); + if (onSelect != null) { + onSelect!.call( + UserModel( + mid: item.mid!, + name: item.uname!, + avatar: item.face!, + ), + ); + } else { + feedBack(); + Get.toNamed('/member?mid=${item.mid}', + arguments: {'face': item.face, 'heroTag': heroTag}); + } }, leading: Stack( clipBehavior: Clip.none, diff --git a/lib/pages/follow_search/controller.dart b/lib/pages/follow_search/controller.dart index 5ea0cf8c..799f980b 100644 --- a/lib/pages/follow_search/controller.dart +++ b/lib/pages/follow_search/controller.dart @@ -2,11 +2,11 @@ import 'package:PiliPlus/http/loading_state.dart'; import 'package:PiliPlus/http/member.dart'; import 'package:PiliPlus/models/follow/result.dart'; import 'package:PiliPlus/pages/common/common_search_controller.dart'; -import 'package:get/get.dart'; class FollowSearchController extends CommonSearchController { - dynamic mid = Get.arguments['mid']; + FollowSearchController(this.mid); + final int mid; @override Future> customGetData() => diff --git a/lib/pages/follow_search/view.dart b/lib/pages/follow_search/view.dart index 44cf2f6c..70fc202c 100644 --- a/lib/pages/follow_search/view.dart +++ b/lib/pages/follow_search/view.dart @@ -8,7 +8,9 @@ import 'package:get/get.dart'; import 'controller.dart'; class FollowSearchPage extends CommonSearchPage { - const FollowSearchPage({super.key}); + const FollowSearchPage({super.key, this.mid}); + + final int? mid; @override State createState() => _FollowSearchPageState(); @@ -17,8 +19,8 @@ class FollowSearchPage extends CommonSearchPage { class _FollowSearchPageState extends CommonSearchPageState { @override - final FollowSearchController controller = Get.put( - FollowSearchController(), + late final FollowSearchController controller = Get.put( + FollowSearchController(widget.mid ?? Get.arguments['mid']), tag: Utils.generateRandomString(8), ); @@ -34,7 +36,14 @@ class _FollowSearchPageState extends CommonSearchPageState { useSafeArea: true, isScrollControlled: true, clipBehavior: Clip.hardEdge, - backgroundColor: Theme.of(context).colorScheme.surface, constraints: BoxConstraints( maxWidth: min(640, min(Get.width, Get.height)), ), diff --git a/lib/pages/video/detail/contact/view.dart b/lib/pages/video/detail/contact/view.dart new file mode 100644 index 00000000..c4dc0082 --- /dev/null +++ b/lib/pages/video/detail/contact/view.dart @@ -0,0 +1,70 @@ +import 'package:PiliPlus/common/widgets/scroll_physics.dart'; +import 'package:PiliPlus/pages/fan/index.dart'; +import 'package:PiliPlus/pages/follow/child_view.dart'; +import 'package:PiliPlus/pages/follow_search/view.dart'; +import 'package:PiliPlus/pages/video/detail/share/view.dart' show UserModel; +import 'package:PiliPlus/utils/storage.dart'; +import 'package:flutter/material.dart'; +import 'package:get/get.dart'; + +class ContactPage extends StatefulWidget { + const ContactPage({super.key}); + + @override + State createState() => _ContactPageState(); +} + +class _ContactPageState extends State + with SingleTickerProviderStateMixin { + final mid = Accounts.main.mid; + late final _controller = TabController(length: 2, vsync: this); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + void onSelect(UserModel userModel) { + Get.back(result: userModel); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('通讯录'), + bottom: TabBar( + controller: _controller, + tabs: const [ + Tab(text: '我的关注'), + Tab(text: '我的粉丝'), + ], + ), + actions: [ + IconButton( + onPressed: () async { + UserModel? userModel = await Get.dialog( + FollowSearchPage(mid: mid), + useSafeArea: false, + transitionDuration: const Duration(milliseconds: 120), + ); + if (userModel != null) { + Get.back(result: userModel); + } + }, + icon: const Icon(Icons.search), + ), + const SizedBox(width: 16), + ], + ), + body: tabBarView( + controller: _controller, + children: [ + FollowChildPage(mid: mid, onSelect: onSelect), + FansPage(mid: mid, onSelect: onSelect), + ], + ), + ); + } +} diff --git a/lib/pages/video/detail/introduction/controller.dart b/lib/pages/video/detail/introduction/controller.dart index 8423e7af..1b9a2c1c 100644 --- a/lib/pages/video/detail/introduction/controller.dart +++ b/lib/pages/video/detail/introduction/controller.dart @@ -444,6 +444,7 @@ class VideoIntroController extends GetxController { mainAxisSize: MainAxisSize.min, children: [ ListTile( + dense: true, title: const Text( '复制链接', style: TextStyle(fontSize: 14), @@ -454,6 +455,7 @@ class VideoIntroController extends GetxController { }, ), ListTile( + dense: true, title: const Text( '其它app打开', style: TextStyle(fontSize: 14), @@ -464,6 +466,7 @@ class VideoIntroController extends GetxController { }, ), ListTile( + dense: true, title: const Text( '分享视频', style: TextStyle(fontSize: 14), @@ -476,6 +479,7 @@ class VideoIntroController extends GetxController { }, ), ListTile( + dense: true, title: const Text( '分享至动态', style: TextStyle(fontSize: 14), @@ -496,6 +500,28 @@ class VideoIntroController extends GetxController { ); }, ), + ListTile( + dense: true, + title: const Text( + '分享至消息', + style: TextStyle(fontSize: 14), + ), + onTap: () { + Get.back(); + try { + PageUtils.pmShareVideo( + author: videoDetail.value.owner!.name!, + id: videoDetail.value.aid!, + source: 5, + cover: videoDetail.value.pic!, + title: videoDetail.value.title!, + bvid: videoDetail.value.bvid!, + ); + } catch (e) { + SmartDialog.showToast(e.toString()); + } + }, + ), ], ), ); diff --git a/lib/pages/video/detail/share/view.dart b/lib/pages/video/detail/share/view.dart new file mode 100644 index 00000000..387805a9 --- /dev/null +++ b/lib/pages/video/detail/share/view.dart @@ -0,0 +1,275 @@ +import 'package:PiliPlus/common/widgets/icon_button.dart'; +import 'package:PiliPlus/common/widgets/network_img_layer.dart'; +import 'package:PiliPlus/common/widgets/self_sized_horizontal_list.dart'; +import 'package:PiliPlus/pages/video/detail/contact/view.dart'; +import 'package:PiliPlus/utils/extension.dart'; +import 'package:PiliPlus/utils/request_utils.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; +import 'package:get/get.dart'; + +class UserModel { + const UserModel({ + required this.mid, + required this.name, + required this.avatar, + }); + + final int mid; + final String name; + final String avatar; + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (other is UserModel) { + return mid == other.mid; + } + return false; + } + + @override + int get hashCode => mid.hashCode; +} + +class ShareVideoPanel extends StatefulWidget { + const ShareVideoPanel({ + super.key, + this.author, + required this.id, + required this.source, + required this.cover, + required this.title, + this.bvid, + this.url, + this.authorId, + this.sourceDesc, + this.userList, + }); + + final String? author; + final int id; + final int source; + final String cover; + final String title; + final String? bvid; + final String? url; + final int? authorId; + final String? sourceDesc; + final List? userList; + + @override + State createState() => _ShareVideoPanelState(); +} + +class _ShareVideoPanelState extends State { + int _selectedIndex = -1; + final List _userList = []; + final ScrollController _scrollController = ScrollController(); + final FocusNode _focusNode = FocusNode(); + final TextEditingController _controller = TextEditingController(); + + @override + void dispose() { + _focusNode.dispose(); + _controller.dispose(); + _scrollController.dispose(); + super.dispose(); + } + + @override + void initState() { + super.initState(); + if (widget.userList?.isNotEmpty == true) { + _userList.addAll(widget.userList!); + } + } + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.all(12) + + MediaQuery.paddingOf(context) + + MediaQuery.of(context).viewInsets, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text('分享给'), + iconButton( + size: 32, + iconSize: 18, + tooltip: '关闭', + context: context, + icon: Icons.clear, + onPressed: Get.back, + ), + ], + ), + const SizedBox(height: 5), + Row( + children: [ + Expanded( + child: SelfSizedHorizontalList( + gapSize: 10, + itemCount: _userList.length, + controller: _scrollController, + childBuilder: (index) { + return GestureDetector( + onTap: () { + _selectedIndex = index; + setState(() {}); + }, + behavior: HitTestBehavior.opaque, + child: SizedBox( + width: 65, + child: Column( + children: [ + Container( + decoration: index == _selectedIndex + ? BoxDecoration( + shape: BoxShape.circle, + border: Border.all( + width: 1.5, + color: Theme.of(context) + .colorScheme + .primary, + ), + ) + : null, + width: 50, + height: 50, + alignment: Alignment.center, + child: NetworkImgLayer( + width: 40, + height: 40, + src: _userList[index].avatar, + type: 'avatar', + ), + ), + const SizedBox(height: 2), + Text( + _userList[index].name, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: TextStyle(fontSize: 12), + ), + ], + ), + ), + ); + }, + ), + ), + GestureDetector( + onTap: () async { + _focusNode.unfocus(); + UserModel? userModel = await Get.dialog( + const ContactPage(), + useSafeArea: false, + transitionDuration: const Duration(milliseconds: 120), + ); + if (userModel != null) { + _userList.remove(userModel); + _userList.insert(0, userModel); + _selectedIndex = 0; + _scrollController.jumpToTop(); + setState(() {}); + } + }, + behavior: HitTestBehavior.opaque, + child: SizedBox( + width: 65, + child: Column( + children: [ + Container( + width: 50, + height: 50, + alignment: Alignment.center, + child: Container( + width: 40, + height: 40, + decoration: BoxDecoration( + shape: BoxShape.circle, + color: Theme.of(context) + .colorScheme + .secondaryContainer, + ), + child: Icon( + Icons.person_add_alt, + color: Theme.of(context) + .colorScheme + .onSecondaryContainer, + ), + ), + ), + const SizedBox(height: 2), + const Text('更多', style: TextStyle(fontSize: 12)), + ], + ), + ), + ), + ], + ), + const SizedBox(height: 12), + Row( + children: [ + Expanded( + child: TextField( + controller: _controller, + focusNode: _focusNode, + decoration: InputDecoration( + hintText: '说说你的想法吧...', + hintStyle: const TextStyle(fontSize: 14), + border: OutlineInputBorder( + borderSide: BorderSide.none, + borderRadius: BorderRadius.circular(25), + ), + filled: true, + isDense: true, + contentPadding: + const EdgeInsets.symmetric(horizontal: 16, vertical: 8), + fillColor: Theme.of(context).colorScheme.onInverseSurface, + ), + ), + ), + const SizedBox(width: 12), + FilledButton.tonal( + onPressed: () { + if (_selectedIndex == -1) { + SmartDialog.showToast('请选择分享的用户'); + return; + } + RequestUtils.pmShareVideo( + receiverId: _userList[_selectedIndex].mid, + author: widget.author, + id: widget.id, + source: widget.source, + cover: widget.cover, + title: widget.title, + bvid: widget.bvid, + url: widget.url, + authorId: widget.authorId, + sourceDesc: widget.sourceDesc, + message: _controller.text, + ); + }, + style: FilledButton.styleFrom( + tapTargetSize: MaterialTapTargetSize.shrinkWrap, + visualDensity: + const VisualDensity(horizontal: -2, vertical: -1), + ), + child: const Text('发送'), + ), + ], + ), + ], + ), + ); + } +} diff --git a/lib/pages/video/detail/view_v.dart b/lib/pages/video/detail/view_v.dart index 645eb130..e6c0252c 100644 --- a/lib/pages/video/detail/view_v.dart +++ b/lib/pages/video/detail/view_v.dart @@ -2288,7 +2288,6 @@ class _VideoDetailPageVState extends State void onShowMemberPage(mid) { videoDetailController.childKey.currentState?.showBottomSheet( shape: const RoundedRectangleBorder(), - backgroundColor: themeData.colorScheme.surface, (context) { return HorizontalMemberPage( mid: mid, diff --git a/lib/pages/whisper_detail/controller.dart b/lib/pages/whisper_detail/controller.dart index 8c72e6ba..53f9be52 100644 --- a/lib/pages/whisper_detail/controller.dart +++ b/lib/pages/whisper_detail/controller.dart @@ -71,7 +71,7 @@ class WhisperDetailController Future sendMsg({ required String message, - dynamic picMsg, + Map? picMsg, required VoidCallback onClearText, int? msgType, int? index, @@ -95,8 +95,11 @@ class WhisperDetailController var result = await MsgHttp.sendMsg( senderUid: ownerMid, receiverId: int.parse(mid!), - content: - msgType == 5 ? message : jsonEncode(picMsg ?? {"content": message}), + content: msgType == 5 + ? message + : jsonEncode( + picMsg ?? {"content": message}, + ), msgType: msgType ?? (picMsg != null ? 2 : 1), ); SmartDialog.dismiss(); diff --git a/lib/pages/whisper_detail/view.dart b/lib/pages/whisper_detail/view.dart index 4cd53a8c..e4fd964c 100644 --- a/lib/pages/whisper_detail/view.dart +++ b/lib/pages/whisper_detail/view.dart @@ -273,7 +273,7 @@ class _WhisperDetailPageState ); if (pickedFile != null) { SmartDialog.showLoading(msg: '正在上传图片'); - dynamic result = await MsgHttp.uploadBfs( + final result = await MsgHttp.uploadBfs( path: pickedFile.path, biz: 'im', ); @@ -281,8 +281,8 @@ class _WhisperDetailPageState String mimeType = lookupMimeType(pickedFile.path) ?.split('/') .getOrNull(1) ?? - 'png'; - dynamic picMsg = { + 'jpg'; + Map picMsg = { 'url': result['data']['image_url'], 'height': result['data']['image_height'], 'width': result['data']['image_width'], diff --git a/lib/pages/whisper_detail/widget/chat_item.dart b/lib/pages/whisper_detail/widget/chat_item.dart index 8d9b2846..6a91bc0c 100644 --- a/lib/pages/whisper_detail/widget/chat_item.dart +++ b/lib/pages/whisper_detail/widget/chat_item.dart @@ -181,27 +181,38 @@ class ChatItem extends StatelessWidget { children: [ GestureDetector( onTap: () async { - dynamic aid = content['id']; - if (aid is String) { - aid = int.tryParse(aid); - } - dynamic bvid = content["bvid"]; - if (aid == null && bvid == null) { - SmartDialog.showToast('null'); + if (content['source'] == 16) { + PageUtils.viewBangumi(epId: content['id']); return; } - bvid ??= IdUtils.av2bv(aid); - SmartDialog.showLoading(); - final int cid = await SearchHttp.ab2c(bvid: bvid); - SmartDialog.dismiss().then( - (e) => PageUtils.toVideoPage( - 'bvid=$bvid&cid=$cid', - arguments: { - 'pic': content['thumb'], - 'heroTag': Utils.makeHeroTag(bvid), - }, - ), - ); + + if (content['source'] == 5) { + dynamic aid = content['id']; + if (aid is String) { + aid = int.tryParse(aid); + } + dynamic bvid = content["bvid"]; + if (aid == null && bvid == null) { + SmartDialog.showToast('null'); + return; + } + bvid ??= IdUtils.av2bv(aid); + SmartDialog.showLoading(); + final int cid = await SearchHttp.ab2c(bvid: bvid); + SmartDialog.dismiss().then( + (e) => PageUtils.toVideoPage( + 'bvid=$bvid&cid=$cid', + arguments: { + 'pic': content['thumb'], + 'heroTag': Utils.makeHeroTag(bvid), + }, + ), + ); + return; + } + + SmartDialog.showToast( + 'unsupported source type: ${content['source']}'); }, child: NetworkImgLayer( width: 220, diff --git a/lib/utils/page_utils.dart b/lib/utils/page_utils.dart index 55774693..45b48636 100644 --- a/lib/utils/page_utils.dart +++ b/lib/utils/page_utils.dart @@ -1,14 +1,17 @@ import 'dart:math'; import 'package:PiliPlus/common/widgets/interactiveviewer_gallery/interactiveviewer_gallery.dart'; +import 'package:PiliPlus/grpc/grpc_repo.dart'; import 'package:PiliPlus/http/dynamics.dart'; import 'package:PiliPlus/http/search.dart'; import 'package:PiliPlus/models/bangumi/info.dart'; import 'package:PiliPlus/models/common/search_type.dart'; import 'package:PiliPlus/models/dynamics/result.dart'; import 'package:PiliPlus/models/live/item.dart'; +import 'package:PiliPlus/pages/video/detail/contact/view.dart'; import 'package:PiliPlus/pages/video/detail/introduction/widgets/fav_panel.dart'; import 'package:PiliPlus/pages/video/detail/introduction/widgets/menu_row.dart'; +import 'package:PiliPlus/pages/video/detail/share/view.dart'; import 'package:PiliPlus/services/shutdown_timer_service.dart'; import 'package:PiliPlus/utils/app_scheme.dart'; import 'package:PiliPlus/utils/extension.dart'; @@ -25,6 +28,60 @@ import 'package:get/get.dart'; import 'package:url_launcher/url_launcher.dart'; class PageUtils { + static void pmShareVideo({ + String? author, + required int id, + required int source, + required String cover, + required String title, + String? bvid, + String? url, + int? authorId, + String? sourceDesc, + }) async { + List userList = []; + + final shareListRes = await GrpcRepo.shareList(size: 3); + if (shareListRes['status'] && shareListRes['data'].sessionList.isNotEmpty) { + userList.addAll(shareListRes['data'] + .sessionList + .map((item) => UserModel( + mid: item.talkerId.toInt(), + name: item.talkerUname, + avatar: item.talkerIcon, + )) + .toList()); + } else { + UserModel? userModel = await Get.dialog( + const ContactPage(), + useSafeArea: false, + transitionDuration: const Duration(milliseconds: 120), + ); + if (userModel != null) { + userList.add(userModel); + } + } + + showModalBottomSheet( + context: Get.context!, + builder: (context) => ShareVideoPanel( + author: author, + id: id, + source: source, + cover: cover, + title: title, + bvid: bvid, + url: url, + authorId: authorId, + sourceDesc: sourceDesc, + userList: userList, + ), + useSafeArea: true, + enableDrag: false, + isScrollControlled: true, + ); + } + static void scheduleExit(BuildContext context, isFullScreen, [bool isLive = false]) { if (!context.mounted) { @@ -255,7 +312,6 @@ class PageUtils { context: context, useSafeArea: true, isScrollControlled: true, - backgroundColor: Theme.of(context).colorScheme.surface, sheetAnimationStyle: AnimationStyle(curve: Curves.ease), constraints: BoxConstraints( maxWidth: min(640, min(Get.width, Get.height)), diff --git a/lib/utils/request_utils.dart b/lib/utils/request_utils.dart index 9128f714..8138bbf5 100644 --- a/lib/utils/request_utils.dart +++ b/lib/utils/request_utils.dart @@ -1,10 +1,14 @@ +import 'dart:convert'; import 'dart:math'; import 'package:PiliPlus/common/widgets/radio_widget.dart'; import 'package:PiliPlus/grpc/app/main/community/reply/v1/reply.pb.dart'; +import 'package:PiliPlus/grpc/grpc_repo.dart'; +import 'package:PiliPlus/grpc/im/type/im.pbenum.dart'; import 'package:PiliPlus/http/dynamics.dart'; import 'package:PiliPlus/http/loading_state.dart'; import 'package:PiliPlus/http/member.dart'; +import 'package:PiliPlus/http/msg.dart'; import 'package:PiliPlus/http/user.dart'; import 'package:PiliPlus/http/video.dart'; import 'package:PiliPlus/models/dynamics/result.dart'; @@ -21,6 +25,82 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:get/get.dart'; class RequestUtils { + // 1:小视频(已弃用) + // 2:相簿 + // 3:纯文字 + // 4:直播(此类型不常用,见分享其他内容消息) + // 5:视频 + // 6:专栏 + // 7:番剧(id 为 season_id) + // 8:音乐 + // 9:国产动画(id 为 AV 号) + // 10:图片 + // 11:动态 + // 16:番剧(id 为 epid) + // 17:番剧 + // https://github.com/SocialSisterYi/bilibili-API-collect/tree/master/docs/message/private_msg_content.md + static Future pmShareVideo({ + required int receiverId, + String? author, + required int id, + required int source, + required String cover, + required String title, + String? bvid, + String? url, + int? authorId, + String? sourceDesc, + String? message, + ValueChanged? callback, + }) async { + SmartDialog.showLoading(); + + final ownerMid = Accounts.main.mid; + final videoRes = await GrpcRepo.sendMsg( + senderUid: ownerMid, + receiverId: receiverId, + content: jsonEncode( + { + if (author != null) "author": author, + "headline": title, + "id": id, + "source": source, + "thumb": cover, + "title": title, + if (bvid != null) "bvid": bvid, + // pgc + if (url != null) "url": url, + if (authorId != null) "author_id": authorId, + if (sourceDesc != null) "source_desc": sourceDesc, + }, + ), + msgType: MsgType.EN_MSG_TYPE_SHARE_V2, + ); + + if (videoRes['status']) { + if (message?.isNotEmpty == true) { + var textRes = await MsgHttp.sendMsg( + senderUid: ownerMid, + receiverId: receiverId, + content: jsonEncode({"content": message}), + msgType: 1, + ); + Get.back(); + if (textRes['status']) { + SmartDialog.showToast('分享成功'); + } else { + SmartDialog.showToast('视频分享成功,但消息分享失败: ${textRes['msg']}'); + } + } else { + Get.back(); + SmartDialog.showToast('分享成功'); + } + } else { + SmartDialog.showToast('分享失败: ${videoRes['msg']}'); + } + SmartDialog.dismiss(); + } + static Future actionRelationMod({ required BuildContext context, required dynamic mid, @@ -92,7 +172,6 @@ class RequestUtils { context: context, useSafeArea: true, isScrollControlled: true, - backgroundColor: Theme.of(context).colorScheme.surface, sheetAnimationStyle: AnimationStyle(curve: Curves.ease), constraints: BoxConstraints( maxWidth: min(640, min(Get.width, Get.height)), diff --git a/lib/utils/theme_utils.dart b/lib/utils/theme_utils.dart index fb2de4d9..b4bdee7d 100644 --- a/lib/utils/theme_utils.dart +++ b/lib/utils/theme_utils.dart @@ -91,6 +91,15 @@ class ThemeUtils { fontWeight: fontWeight, ), ), + bottomSheetTheme: BottomSheetThemeData( + backgroundColor: colorScheme.surface, + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.only( + topLeft: Radius.circular(18), + topRight: Radius.circular(18), + ), + ), + ), ); if (isDark && GStorage.isPureBlackTheme) { themeData = darkenTheme(themeData); diff --git a/pubspec.lock b/pubspec.lock index 5964b82c..9e5a2602 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1452,10 +1452,10 @@ packages: dependency: "direct main" description: name: protobuf - sha256: "68645b24e0716782e58948f8467fd42a880f255096a821f9e7d0ec625b00c84d" + sha256: fbb0c37d435641d0b84813c1dad41e6fa61ddc880a320bce16b3063ecec35aa6 url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "4.0.0" pub_semver: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index e56484ae..b0696790 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -122,7 +122,7 @@ dependencies: git: url: https://github.com/orz12/auto_orientation.git ref: master - protobuf: ^3.1.0 + protobuf: ^4.0.0 animations: ^2.0.11 # 获取appx信息