mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 07:54:44 +08:00
feat:riverpod 迁移
This commit is contained in:
@ -1,159 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: chat.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'chat.pbenum.dart';
|
||||
|
||||
export 'chat.pbenum.dart';
|
||||
|
||||
class ChatMessage extends $pb.GeneratedMessage {
|
||||
factory ChatMessage({
|
||||
$core.String? senderID,
|
||||
$core.String? receiverID,
|
||||
ReceiverType? receiverType,
|
||||
MessageType? messageType,
|
||||
$core.String? data,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (senderID != null) {
|
||||
$result.senderID = senderID;
|
||||
}
|
||||
if (receiverID != null) {
|
||||
$result.receiverID = receiverID;
|
||||
}
|
||||
if (receiverType != null) {
|
||||
$result.receiverType = receiverType;
|
||||
}
|
||||
if (messageType != null) {
|
||||
$result.messageType = messageType;
|
||||
}
|
||||
if (data != null) {
|
||||
$result.data = data;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
ChatMessage._() : super();
|
||||
factory ChatMessage.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory ChatMessage.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ChatMessage',
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'senderID', protoName: 'senderID')
|
||||
..aOS(2, _omitFieldNames ? '' : 'receiverID', protoName: 'receiverID')
|
||||
..e<ReceiverType>(
|
||||
3, _omitFieldNames ? '' : 'receiverType', $pb.PbFieldType.OE,
|
||||
protoName: 'receiverType',
|
||||
defaultOrMaker: ReceiverType.RoomMsg,
|
||||
valueOf: ReceiverType.valueOf,
|
||||
enumValues: ReceiverType.values)
|
||||
..e<MessageType>(
|
||||
4, _omitFieldNames ? '' : 'messageType', $pb.PbFieldType.OE,
|
||||
protoName: 'messageType',
|
||||
defaultOrMaker: MessageType.System,
|
||||
valueOf: MessageType.valueOf,
|
||||
enumValues: MessageType.values)
|
||||
..aOS(5, _omitFieldNames ? '' : 'data')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
ChatMessage clone() => ChatMessage()..mergeFromMessage(this);
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
ChatMessage copyWith(void Function(ChatMessage) updates) =>
|
||||
super.copyWith((message) => updates(message as ChatMessage))
|
||||
as ChatMessage;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ChatMessage create() => ChatMessage._();
|
||||
ChatMessage createEmptyInstance() => create();
|
||||
static $pb.PbList<ChatMessage> createRepeated() => $pb.PbList<ChatMessage>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ChatMessage getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ChatMessage>(create);
|
||||
static ChatMessage? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get senderID => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set senderID($core.String v) {
|
||||
$_setString(0, v);
|
||||
}
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSenderID() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSenderID() => clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get receiverID => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set receiverID($core.String v) {
|
||||
$_setString(1, v);
|
||||
}
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasReceiverID() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearReceiverID() => clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
ReceiverType get receiverType => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set receiverType(ReceiverType v) {
|
||||
setField(3, v);
|
||||
}
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasReceiverType() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearReceiverType() => clearField(3);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
MessageType get messageType => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set messageType(MessageType v) {
|
||||
setField(4, v);
|
||||
}
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasMessageType() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearMessageType() => clearField(4);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$core.String get data => $_getSZ(4);
|
||||
@$pb.TagNumber(5)
|
||||
set data($core.String v) {
|
||||
$_setString(4, v);
|
||||
}
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasData() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearData() => clearField(5);
|
||||
}
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
@ -1,58 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: chat.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class ReceiverType extends $pb.ProtobufEnum {
|
||||
static const ReceiverType RoomMsg =
|
||||
ReceiverType._(0, _omitEnumNames ? '' : 'RoomMsg');
|
||||
static const ReceiverType PrivateMsg =
|
||||
ReceiverType._(1, _omitEnumNames ? '' : 'PrivateMsg');
|
||||
|
||||
static const $core.List<ReceiverType> values = <ReceiverType>[
|
||||
RoomMsg,
|
||||
PrivateMsg,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, ReceiverType> _byValue =
|
||||
$pb.ProtobufEnum.initByValue(values);
|
||||
static ReceiverType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const ReceiverType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
class MessageType extends $pb.ProtobufEnum {
|
||||
static const MessageType System =
|
||||
MessageType._(0, _omitEnumNames ? '' : 'System');
|
||||
static const MessageType Text =
|
||||
MessageType._(1, _omitEnumNames ? '' : 'Text');
|
||||
static const MessageType Image =
|
||||
MessageType._(2, _omitEnumNames ? '' : 'Image');
|
||||
static const MessageType Markdown =
|
||||
MessageType._(3, _omitEnumNames ? '' : 'Markdown');
|
||||
|
||||
static const $core.List<MessageType> values = <MessageType>[
|
||||
System,
|
||||
Text,
|
||||
Image,
|
||||
Markdown,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, MessageType> _byValue =
|
||||
$pb.ProtobufEnum.initByValue(values);
|
||||
static MessageType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const MessageType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
@ -1,88 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: chat.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:async' as $async;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:grpc/service_api.dart' as $grpc;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'chat.pb.dart' as $1;
|
||||
import 'index.pb.dart' as $0;
|
||||
|
||||
export 'chat.pb.dart';
|
||||
|
||||
@$pb.GrpcServiceName('ChatService')
|
||||
class ChatServiceClient extends $grpc.Client {
|
||||
static final _$listenMessage = $grpc.ClientMethod<$0.PreUser, $1.ChatMessage>(
|
||||
'/ChatService/ListenMessage',
|
||||
($0.PreUser value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $1.ChatMessage.fromBuffer(value));
|
||||
static final _$sendMessage =
|
||||
$grpc.ClientMethod<$1.ChatMessage, $0.BaseRespData>(
|
||||
'/ChatService/SendMessage',
|
||||
($1.ChatMessage value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.BaseRespData.fromBuffer(value));
|
||||
|
||||
ChatServiceClient($grpc.ClientChannel channel,
|
||||
{$grpc.CallOptions? options,
|
||||
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
||||
: super(channel, options: options, interceptors: interceptors);
|
||||
|
||||
$grpc.ResponseStream<$1.ChatMessage> listenMessage($0.PreUser request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createStreamingCall(
|
||||
_$listenMessage, $async.Stream.fromIterable([request]),
|
||||
options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.BaseRespData> sendMessage($1.ChatMessage request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$sendMessage, request, options: options);
|
||||
}
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('ChatService')
|
||||
abstract class ChatServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'ChatService';
|
||||
|
||||
ChatServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.PreUser, $1.ChatMessage>(
|
||||
'ListenMessage',
|
||||
listenMessage_Pre,
|
||||
false,
|
||||
true,
|
||||
($core.List<$core.int> value) => $0.PreUser.fromBuffer(value),
|
||||
($1.ChatMessage value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$1.ChatMessage, $0.BaseRespData>(
|
||||
'SendMessage',
|
||||
sendMessage_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $1.ChatMessage.fromBuffer(value),
|
||||
($0.BaseRespData value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Stream<$1.ChatMessage> listenMessage_Pre(
|
||||
$grpc.ServiceCall call, $async.Future<$0.PreUser> request) async* {
|
||||
yield* listenMessage(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.BaseRespData> sendMessage_Pre(
|
||||
$grpc.ServiceCall call, $async.Future<$1.ChatMessage> request) async {
|
||||
return sendMessage(call, await request);
|
||||
}
|
||||
|
||||
$async.Stream<$1.ChatMessage> listenMessage(
|
||||
$grpc.ServiceCall call, $0.PreUser request);
|
||||
$async.Future<$0.BaseRespData> sendMessage(
|
||||
$grpc.ServiceCall call, $1.ChatMessage request);
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: chat.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use receiverTypeDescriptor instead')
|
||||
const ReceiverType$json = {
|
||||
'1': 'ReceiverType',
|
||||
'2': [
|
||||
{'1': 'RoomMsg', '2': 0},
|
||||
{'1': 'PrivateMsg', '2': 1},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ReceiverType`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List receiverTypeDescriptor = $convert.base64Decode(
|
||||
'CgxSZWNlaXZlclR5cGUSCwoHUm9vbU1zZxAAEg4KClByaXZhdGVNc2cQAQ==');
|
||||
|
||||
@$core.Deprecated('Use messageTypeDescriptor instead')
|
||||
const MessageType$json = {
|
||||
'1': 'MessageType',
|
||||
'2': [
|
||||
{'1': 'System', '2': 0},
|
||||
{'1': 'Text', '2': 1},
|
||||
{'1': 'Image', '2': 2},
|
||||
{'1': 'Markdown', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `MessageType`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List messageTypeDescriptor = $convert.base64Decode(
|
||||
'CgtNZXNzYWdlVHlwZRIKCgZTeXN0ZW0QABIICgRUZXh0EAESCQoFSW1hZ2UQAhIMCghNYXJrZG'
|
||||
'93bhAD');
|
||||
|
||||
@$core.Deprecated('Use chatMessageDescriptor instead')
|
||||
const ChatMessage$json = {
|
||||
'1': 'ChatMessage',
|
||||
'2': [
|
||||
{'1': 'senderID', '3': 1, '4': 1, '5': 9, '10': 'senderID'},
|
||||
{'1': 'receiverID', '3': 2, '4': 1, '5': 9, '10': 'receiverID'},
|
||||
{
|
||||
'1': 'receiverType',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.ReceiverType',
|
||||
'10': 'receiverType'
|
||||
},
|
||||
{
|
||||
'1': 'messageType',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.MessageType',
|
||||
'10': 'messageType'
|
||||
},
|
||||
{'1': 'data', '3': 5, '4': 1, '5': 9, '10': 'data'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ChatMessage`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List chatMessageDescriptor = $convert.base64Decode(
|
||||
'CgtDaGF0TWVzc2FnZRIaCghzZW5kZXJJRBgBIAEoCVIIc2VuZGVySUQSHgoKcmVjZWl2ZXJJRB'
|
||||
'gCIAEoCVIKcmVjZWl2ZXJJRBIxCgxyZWNlaXZlclR5cGUYAyABKA4yDS5SZWNlaXZlclR5cGVS'
|
||||
'DHJlY2VpdmVyVHlwZRIuCgttZXNzYWdlVHlwZRgEIAEoDjIMLk1lc3NhZ2VUeXBlUgttZXNzYW'
|
||||
'dlVHlwZRISCgRkYXRhGAUgASgJUgRkYXRh');
|
File diff suppressed because it is too large
Load Diff
@ -1,115 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: index.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class RoomStatus extends $pb.ProtobufEnum {
|
||||
static const RoomStatus All = RoomStatus._(0, _omitEnumNames ? '' : 'All');
|
||||
static const RoomStatus Open = RoomStatus._(1, _omitEnumNames ? '' : 'Open');
|
||||
static const RoomStatus Private =
|
||||
RoomStatus._(2, _omitEnumNames ? '' : 'Private');
|
||||
static const RoomStatus Full = RoomStatus._(3, _omitEnumNames ? '' : 'Full');
|
||||
static const RoomStatus Closed =
|
||||
RoomStatus._(4, _omitEnumNames ? '' : 'Closed');
|
||||
static const RoomStatus WillOffline =
|
||||
RoomStatus._(5, _omitEnumNames ? '' : 'WillOffline');
|
||||
static const RoomStatus Offline =
|
||||
RoomStatus._(6, _omitEnumNames ? '' : 'Offline');
|
||||
|
||||
static const $core.List<RoomStatus> values = <RoomStatus>[
|
||||
All,
|
||||
Open,
|
||||
Private,
|
||||
Full,
|
||||
Closed,
|
||||
WillOffline,
|
||||
Offline,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, RoomStatus> _byValue =
|
||||
$pb.ProtobufEnum.initByValue(values);
|
||||
static RoomStatus? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const RoomStatus._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
class RoomSortType extends $pb.ProtobufEnum {
|
||||
static const RoomSortType Default =
|
||||
RoomSortType._(0, _omitEnumNames ? '' : 'Default');
|
||||
static const RoomSortType MostPlayerNumber =
|
||||
RoomSortType._(1, _omitEnumNames ? '' : 'MostPlayerNumber');
|
||||
static const RoomSortType MinimumPlayerNumber =
|
||||
RoomSortType._(2, _omitEnumNames ? '' : 'MinimumPlayerNumber');
|
||||
static const RoomSortType RecentlyCreated =
|
||||
RoomSortType._(3, _omitEnumNames ? '' : 'RecentlyCreated');
|
||||
static const RoomSortType OldestCreated =
|
||||
RoomSortType._(4, _omitEnumNames ? '' : 'OldestCreated');
|
||||
|
||||
static const $core.List<RoomSortType> values = <RoomSortType>[
|
||||
Default,
|
||||
MostPlayerNumber,
|
||||
MinimumPlayerNumber,
|
||||
RecentlyCreated,
|
||||
OldestCreated,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, RoomSortType> _byValue =
|
||||
$pb.ProtobufEnum.initByValue(values);
|
||||
static RoomSortType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const RoomSortType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
class RoomUserStatus extends $pb.ProtobufEnum {
|
||||
static const RoomUserStatus RoomUserStatusJoin =
|
||||
RoomUserStatus._(0, _omitEnumNames ? '' : 'RoomUserStatusJoin');
|
||||
static const RoomUserStatus RoomUserStatusLostOffline =
|
||||
RoomUserStatus._(1, _omitEnumNames ? '' : 'RoomUserStatusLostOffline');
|
||||
static const RoomUserStatus RoomUserStatusLeave =
|
||||
RoomUserStatus._(2, _omitEnumNames ? '' : 'RoomUserStatusLeave');
|
||||
static const RoomUserStatus RoomUserStatusWaitingConnect =
|
||||
RoomUserStatus._(3, _omitEnumNames ? '' : 'RoomUserStatusWaitingConnect');
|
||||
|
||||
static const $core.List<RoomUserStatus> values = <RoomUserStatus>[
|
||||
RoomUserStatusJoin,
|
||||
RoomUserStatusLostOffline,
|
||||
RoomUserStatusLeave,
|
||||
RoomUserStatusWaitingConnect,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, RoomUserStatus> _byValue =
|
||||
$pb.ProtobufEnum.initByValue(values);
|
||||
static RoomUserStatus? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const RoomUserStatus._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
class RoomUpdateType extends $pb.ProtobufEnum {
|
||||
static const RoomUpdateType RoomUpdateData =
|
||||
RoomUpdateType._(0, _omitEnumNames ? '' : 'RoomUpdateData');
|
||||
static const RoomUpdateType RoomClose =
|
||||
RoomUpdateType._(1, _omitEnumNames ? '' : 'RoomClose');
|
||||
|
||||
static const $core.List<RoomUpdateType> values = <RoomUpdateType>[
|
||||
RoomUpdateData,
|
||||
RoomClose,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, RoomUpdateType> _byValue =
|
||||
$pb.ProtobufEnum.initByValue(values);
|
||||
static RoomUpdateType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const RoomUpdateType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
@ -1,206 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: index.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:async' as $async;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:grpc/service_api.dart' as $grpc;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'index.pb.dart' as $0;
|
||||
|
||||
export 'index.pb.dart';
|
||||
|
||||
@$pb.GrpcServiceName('IndexService')
|
||||
class IndexServiceClient extends $grpc.Client {
|
||||
static final _$pingServer = $grpc.ClientMethod<$0.PingData, $0.PingData>(
|
||||
'/IndexService/PingServer',
|
||||
($0.PingData value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.PingData.fromBuffer(value));
|
||||
static final _$getRoomTypes = $grpc.ClientMethod<$0.Empty, $0.RoomTypesData>(
|
||||
'/IndexService/GetRoomTypes',
|
||||
($0.Empty value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.RoomTypesData.fromBuffer(value));
|
||||
static final _$createRoom = $grpc.ClientMethod<$0.RoomData, $0.RoomData>(
|
||||
'/IndexService/CreateRoom',
|
||||
($0.RoomData value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.RoomData.fromBuffer(value));
|
||||
static final _$getRoomList =
|
||||
$grpc.ClientMethod<$0.RoomListPageReqData, $0.RoomListData>(
|
||||
'/IndexService/GetRoomList',
|
||||
($0.RoomListPageReqData value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.RoomListData.fromBuffer(value));
|
||||
static final _$touchUser = $grpc.ClientMethod<$0.PreUser, $0.RoomData>(
|
||||
'/IndexService/TouchUser',
|
||||
($0.PreUser value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.RoomData.fromBuffer(value));
|
||||
static final _$joinRoom =
|
||||
$grpc.ClientMethod<$0.PreUser, $0.RoomUpdateMessage>(
|
||||
'/IndexService/JoinRoom',
|
||||
($0.PreUser value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) =>
|
||||
$0.RoomUpdateMessage.fromBuffer(value));
|
||||
static final _$leaveRoom = $grpc.ClientMethod<$0.PreUser, $0.BaseRespData>(
|
||||
'/IndexService/LeaveRoom',
|
||||
($0.PreUser value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.BaseRespData.fromBuffer(value));
|
||||
|
||||
IndexServiceClient($grpc.ClientChannel channel,
|
||||
{$grpc.CallOptions? options,
|
||||
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
||||
: super(channel, options: options, interceptors: interceptors);
|
||||
|
||||
$grpc.ResponseFuture<$0.PingData> pingServer($0.PingData request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$pingServer, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.RoomTypesData> getRoomTypes($0.Empty request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$getRoomTypes, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.RoomData> createRoom($0.RoomData request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$createRoom, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.RoomListData> getRoomList(
|
||||
$0.RoomListPageReqData request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$getRoomList, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.RoomData> touchUser($0.PreUser request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$touchUser, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseStream<$0.RoomUpdateMessage> joinRoom($0.PreUser request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createStreamingCall(
|
||||
_$joinRoom, $async.Stream.fromIterable([request]),
|
||||
options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.BaseRespData> leaveRoom($0.PreUser request,
|
||||
{$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$leaveRoom, request, options: options);
|
||||
}
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('IndexService')
|
||||
abstract class IndexServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'IndexService';
|
||||
|
||||
IndexServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.PingData, $0.PingData>(
|
||||
'PingServer',
|
||||
pingServer_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.PingData.fromBuffer(value),
|
||||
($0.PingData value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.Empty, $0.RoomTypesData>(
|
||||
'GetRoomTypes',
|
||||
getRoomTypes_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
|
||||
($0.RoomTypesData value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.RoomData, $0.RoomData>(
|
||||
'CreateRoom',
|
||||
createRoom_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.RoomData.fromBuffer(value),
|
||||
($0.RoomData value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.RoomListPageReqData, $0.RoomListData>(
|
||||
'GetRoomList',
|
||||
getRoomList_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) =>
|
||||
$0.RoomListPageReqData.fromBuffer(value),
|
||||
($0.RoomListData value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.PreUser, $0.RoomData>(
|
||||
'TouchUser',
|
||||
touchUser_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.PreUser.fromBuffer(value),
|
||||
($0.RoomData value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.PreUser, $0.RoomUpdateMessage>(
|
||||
'JoinRoom',
|
||||
joinRoom_Pre,
|
||||
false,
|
||||
true,
|
||||
($core.List<$core.int> value) => $0.PreUser.fromBuffer(value),
|
||||
($0.RoomUpdateMessage value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.PreUser, $0.BaseRespData>(
|
||||
'LeaveRoom',
|
||||
leaveRoom_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.PreUser.fromBuffer(value),
|
||||
($0.BaseRespData value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Future<$0.PingData> pingServer_Pre(
|
||||
$grpc.ServiceCall call, $async.Future<$0.PingData> request) async {
|
||||
return pingServer(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.RoomTypesData> getRoomTypes_Pre(
|
||||
$grpc.ServiceCall call, $async.Future<$0.Empty> request) async {
|
||||
return getRoomTypes(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.RoomData> createRoom_Pre(
|
||||
$grpc.ServiceCall call, $async.Future<$0.RoomData> request) async {
|
||||
return createRoom(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.RoomListData> getRoomList_Pre($grpc.ServiceCall call,
|
||||
$async.Future<$0.RoomListPageReqData> request) async {
|
||||
return getRoomList(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.RoomData> touchUser_Pre(
|
||||
$grpc.ServiceCall call, $async.Future<$0.PreUser> request) async {
|
||||
return touchUser(call, await request);
|
||||
}
|
||||
|
||||
$async.Stream<$0.RoomUpdateMessage> joinRoom_Pre(
|
||||
$grpc.ServiceCall call, $async.Future<$0.PreUser> request) async* {
|
||||
yield* joinRoom(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.BaseRespData> leaveRoom_Pre(
|
||||
$grpc.ServiceCall call, $async.Future<$0.PreUser> request) async {
|
||||
return leaveRoom(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.PingData> pingServer(
|
||||
$grpc.ServiceCall call, $0.PingData request);
|
||||
$async.Future<$0.RoomTypesData> getRoomTypes(
|
||||
$grpc.ServiceCall call, $0.Empty request);
|
||||
$async.Future<$0.RoomData> createRoom(
|
||||
$grpc.ServiceCall call, $0.RoomData request);
|
||||
$async.Future<$0.RoomListData> getRoomList(
|
||||
$grpc.ServiceCall call, $0.RoomListPageReqData request);
|
||||
$async.Future<$0.RoomData> touchUser(
|
||||
$grpc.ServiceCall call, $0.PreUser request);
|
||||
$async.Stream<$0.RoomUpdateMessage> joinRoom(
|
||||
$grpc.ServiceCall call, $0.PreUser request);
|
||||
$async.Future<$0.BaseRespData> leaveRoom(
|
||||
$grpc.ServiceCall call, $0.PreUser request);
|
||||
}
|
@ -1,354 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: index.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use roomStatusDescriptor instead')
|
||||
const RoomStatus$json = {
|
||||
'1': 'RoomStatus',
|
||||
'2': [
|
||||
{'1': 'All', '2': 0},
|
||||
{'1': 'Open', '2': 1},
|
||||
{'1': 'Private', '2': 2},
|
||||
{'1': 'Full', '2': 3},
|
||||
{'1': 'Closed', '2': 4},
|
||||
{'1': 'WillOffline', '2': 5},
|
||||
{'1': 'Offline', '2': 6},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomStatus`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List roomStatusDescriptor = $convert.base64Decode(
|
||||
'CgpSb29tU3RhdHVzEgcKA0FsbBAAEggKBE9wZW4QARILCgdQcml2YXRlEAISCAoERnVsbBADEg'
|
||||
'oKBkNsb3NlZBAEEg8KC1dpbGxPZmZsaW5lEAUSCwoHT2ZmbGluZRAG');
|
||||
|
||||
@$core.Deprecated('Use roomSortTypeDescriptor instead')
|
||||
const RoomSortType$json = {
|
||||
'1': 'RoomSortType',
|
||||
'2': [
|
||||
{'1': 'Default', '2': 0},
|
||||
{'1': 'MostPlayerNumber', '2': 1},
|
||||
{'1': 'MinimumPlayerNumber', '2': 2},
|
||||
{'1': 'RecentlyCreated', '2': 3},
|
||||
{'1': 'OldestCreated', '2': 4},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomSortType`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List roomSortTypeDescriptor = $convert.base64Decode(
|
||||
'CgxSb29tU29ydFR5cGUSCwoHRGVmYXVsdBAAEhQKEE1vc3RQbGF5ZXJOdW1iZXIQARIXChNNaW'
|
||||
'5pbXVtUGxheWVyTnVtYmVyEAISEwoPUmVjZW50bHlDcmVhdGVkEAMSEQoNT2xkZXN0Q3JlYXRl'
|
||||
'ZBAE');
|
||||
|
||||
@$core.Deprecated('Use roomUserStatusDescriptor instead')
|
||||
const RoomUserStatus$json = {
|
||||
'1': 'RoomUserStatus',
|
||||
'2': [
|
||||
{'1': 'RoomUserStatusJoin', '2': 0},
|
||||
{'1': 'RoomUserStatusLostOffline', '2': 1},
|
||||
{'1': 'RoomUserStatusLeave', '2': 2},
|
||||
{'1': 'RoomUserStatusWaitingConnect', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomUserStatus`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List roomUserStatusDescriptor = $convert.base64Decode(
|
||||
'Cg5Sb29tVXNlclN0YXR1cxIWChJSb29tVXNlclN0YXR1c0pvaW4QABIdChlSb29tVXNlclN0YX'
|
||||
'R1c0xvc3RPZmZsaW5lEAESFwoTUm9vbVVzZXJTdGF0dXNMZWF2ZRACEiAKHFJvb21Vc2VyU3Rh'
|
||||
'dHVzV2FpdGluZ0Nvbm5lY3QQAw==');
|
||||
|
||||
@$core.Deprecated('Use roomUpdateTypeDescriptor instead')
|
||||
const RoomUpdateType$json = {
|
||||
'1': 'RoomUpdateType',
|
||||
'2': [
|
||||
{'1': 'RoomUpdateData', '2': 0},
|
||||
{'1': 'RoomClose', '2': 1},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomUpdateType`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List roomUpdateTypeDescriptor = $convert.base64Decode(
|
||||
'Cg5Sb29tVXBkYXRlVHlwZRISCg5Sb29tVXBkYXRlRGF0YRAAEg0KCVJvb21DbG9zZRAB');
|
||||
|
||||
@$core.Deprecated('Use emptyDescriptor instead')
|
||||
const Empty$json = {
|
||||
'1': 'Empty',
|
||||
};
|
||||
|
||||
/// Descriptor for `Empty`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List emptyDescriptor =
|
||||
$convert.base64Decode('CgVFbXB0eQ==');
|
||||
|
||||
@$core.Deprecated('Use baseRespDataDescriptor instead')
|
||||
const BaseRespData$json = {
|
||||
'1': 'BaseRespData',
|
||||
'2': [
|
||||
{'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'},
|
||||
{'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BaseRespData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List baseRespDataDescriptor = $convert.base64Decode(
|
||||
'CgxCYXNlUmVzcERhdGESEgoEY29kZRgBIAEoBVIEY29kZRIYCgdtZXNzYWdlGAIgASgJUgdtZX'
|
||||
'NzYWdl');
|
||||
|
||||
@$core.Deprecated('Use basePageRespDataDescriptor instead')
|
||||
const BasePageRespData$json = {
|
||||
'1': 'BasePageRespData',
|
||||
'2': [
|
||||
{'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'},
|
||||
{'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'},
|
||||
{'1': 'hasNext', '3': 3, '4': 1, '5': 8, '10': 'hasNext'},
|
||||
{'1': 'curPageNum', '3': 4, '4': 1, '5': 4, '10': 'curPageNum'},
|
||||
{'1': 'pageSize', '3': 5, '4': 1, '5': 3, '10': 'pageSize'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BasePageRespData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List basePageRespDataDescriptor = $convert.base64Decode(
|
||||
'ChBCYXNlUGFnZVJlc3BEYXRhEhIKBGNvZGUYASABKAVSBGNvZGUSGAoHbWVzc2FnZRgCIAEoCV'
|
||||
'IHbWVzc2FnZRIYCgdoYXNOZXh0GAMgASgIUgdoYXNOZXh0Eh4KCmN1clBhZ2VOdW0YBCABKARS'
|
||||
'CmN1clBhZ2VOdW0SGgoIcGFnZVNpemUYBSABKANSCHBhZ2VTaXpl');
|
||||
|
||||
@$core.Deprecated('Use pingDataDescriptor instead')
|
||||
const PingData$json = {
|
||||
'1': 'PingData',
|
||||
'2': [
|
||||
{'1': 'data', '3': 1, '4': 1, '5': 9, '10': 'data'},
|
||||
{'1': 'clientVersion', '3': 2, '4': 1, '5': 18, '10': 'clientVersion'},
|
||||
{'1': 'serverVersion', '3': 3, '4': 1, '5': 18, '10': 'serverVersion'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `PingData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List pingDataDescriptor = $convert.base64Decode(
|
||||
'CghQaW5nRGF0YRISCgRkYXRhGAEgASgJUgRkYXRhEiQKDWNsaWVudFZlcnNpb24YAiABKBJSDW'
|
||||
'NsaWVudFZlcnNpb24SJAoNc2VydmVyVmVyc2lvbhgDIAEoElINc2VydmVyVmVyc2lvbg==');
|
||||
|
||||
@$core.Deprecated('Use roomTypesDataDescriptor instead')
|
||||
const RoomTypesData$json = {
|
||||
'1': 'RoomTypesData',
|
||||
'2': [
|
||||
{
|
||||
'1': 'roomTypes',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.RoomType',
|
||||
'10': 'roomTypes'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomTypesData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List roomTypesDataDescriptor = $convert.base64Decode(
|
||||
'Cg1Sb29tVHlwZXNEYXRhEicKCXJvb21UeXBlcxgBIAMoCzIJLlJvb21UeXBlUglyb29tVHlwZX'
|
||||
'M=');
|
||||
|
||||
@$core.Deprecated('Use roomTypeDescriptor instead')
|
||||
const RoomType$json = {
|
||||
'1': 'RoomType',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
|
||||
{'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},
|
||||
{'1': 'icon', '3': 3, '4': 1, '5': 9, '10': 'icon'},
|
||||
{'1': 'desc', '3': 4, '4': 1, '5': 9, '10': 'desc'},
|
||||
{
|
||||
'1': 'subTypes',
|
||||
'3': 5,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.RoomSubtype',
|
||||
'10': 'subTypes'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomType`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List roomTypeDescriptor = $convert.base64Decode(
|
||||
'CghSb29tVHlwZRIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRISCgRpY29uGA'
|
||||
'MgASgJUgRpY29uEhIKBGRlc2MYBCABKAlSBGRlc2MSKAoIc3ViVHlwZXMYBSADKAsyDC5Sb29t'
|
||||
'U3VidHlwZVIIc3ViVHlwZXM=');
|
||||
|
||||
@$core.Deprecated('Use roomSubtypeDescriptor instead')
|
||||
const RoomSubtype$json = {
|
||||
'1': 'RoomSubtype',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
|
||||
{'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomSubtype`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List roomSubtypeDescriptor = $convert.base64Decode(
|
||||
'CgtSb29tU3VidHlwZRIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZQ==');
|
||||
|
||||
@$core.Deprecated('Use roomDataDescriptor instead')
|
||||
const RoomData$json = {
|
||||
'1': 'RoomData',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
|
||||
{'1': 'roomTypeID', '3': 2, '4': 1, '5': 9, '10': 'roomTypeID'},
|
||||
{'1': 'roomSubTypeIds', '3': 3, '4': 3, '5': 9, '10': 'roomSubTypeIds'},
|
||||
{'1': 'owner', '3': 4, '4': 1, '5': 9, '10': 'owner'},
|
||||
{'1': 'maxPlayer', '3': 5, '4': 1, '5': 5, '10': 'maxPlayer'},
|
||||
{'1': 'createTime', '3': 6, '4': 1, '5': 3, '10': 'createTime'},
|
||||
{'1': 'curPlayer', '3': 7, '4': 1, '5': 5, '10': 'curPlayer'},
|
||||
{
|
||||
'1': 'status',
|
||||
'3': 8,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.RoomStatus',
|
||||
'10': 'status'
|
||||
},
|
||||
{'1': 'deviceUUID', '3': 9, '4': 1, '5': 9, '10': 'deviceUUID'},
|
||||
{'1': 'announcement', '3': 10, '4': 1, '5': 9, '10': 'announcement'},
|
||||
{'1': 'avatar', '3': 11, '4': 1, '5': 9, '10': 'avatar'},
|
||||
{'1': 'updateTime', '3': 12, '4': 1, '5': 3, '10': 'updateTime'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List roomDataDescriptor = $convert.base64Decode(
|
||||
'CghSb29tRGF0YRIOCgJpZBgBIAEoCVICaWQSHgoKcm9vbVR5cGVJRBgCIAEoCVIKcm9vbVR5cG'
|
||||
'VJRBImCg5yb29tU3ViVHlwZUlkcxgDIAMoCVIOcm9vbVN1YlR5cGVJZHMSFAoFb3duZXIYBCAB'
|
||||
'KAlSBW93bmVyEhwKCW1heFBsYXllchgFIAEoBVIJbWF4UGxheWVyEh4KCmNyZWF0ZVRpbWUYBi'
|
||||
'ABKANSCmNyZWF0ZVRpbWUSHAoJY3VyUGxheWVyGAcgASgFUgljdXJQbGF5ZXISIwoGc3RhdHVz'
|
||||
'GAggASgOMgsuUm9vbVN0YXR1c1IGc3RhdHVzEh4KCmRldmljZVVVSUQYCSABKAlSCmRldmljZV'
|
||||
'VVSUQSIgoMYW5ub3VuY2VtZW50GAogASgJUgxhbm5vdW5jZW1lbnQSFgoGYXZhdGFyGAsgASgJ'
|
||||
'UgZhdmF0YXISHgoKdXBkYXRlVGltZRgMIAEoA1IKdXBkYXRlVGltZQ==');
|
||||
|
||||
@$core.Deprecated('Use roomListPageReqDataDescriptor instead')
|
||||
const RoomListPageReqData$json = {
|
||||
'1': 'RoomListPageReqData',
|
||||
'2': [
|
||||
{'1': 'typeID', '3': 1, '4': 1, '5': 9, '10': 'typeID'},
|
||||
{'1': 'subTypeID', '3': 2, '4': 1, '5': 9, '10': 'subTypeID'},
|
||||
{
|
||||
'1': 'status',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.RoomStatus',
|
||||
'10': 'status'
|
||||
},
|
||||
{'1': 'sort', '3': 4, '4': 1, '5': 14, '6': '.RoomSortType', '10': 'sort'},
|
||||
{'1': 'pageNum', '3': 5, '4': 1, '5': 4, '10': 'pageNum'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomListPageReqData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List roomListPageReqDataDescriptor = $convert.base64Decode(
|
||||
'ChNSb29tTGlzdFBhZ2VSZXFEYXRhEhYKBnR5cGVJRBgBIAEoCVIGdHlwZUlEEhwKCXN1YlR5cG'
|
||||
'VJRBgCIAEoCVIJc3ViVHlwZUlEEiMKBnN0YXR1cxgDIAEoDjILLlJvb21TdGF0dXNSBnN0YXR1'
|
||||
'cxIhCgRzb3J0GAQgASgOMg0uUm9vbVNvcnRUeXBlUgRzb3J0EhgKB3BhZ2VOdW0YBSABKARSB3'
|
||||
'BhZ2VOdW0=');
|
||||
|
||||
@$core.Deprecated('Use roomListDataDescriptor instead')
|
||||
const RoomListData$json = {
|
||||
'1': 'RoomListData',
|
||||
'2': [
|
||||
{
|
||||
'1': 'pageData',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.BasePageRespData',
|
||||
'10': 'pageData'
|
||||
},
|
||||
{'1': 'rooms', '3': 2, '4': 3, '5': 11, '6': '.RoomData', '10': 'rooms'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomListData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List roomListDataDescriptor = $convert.base64Decode(
|
||||
'CgxSb29tTGlzdERhdGESLQoIcGFnZURhdGEYASABKAsyES5CYXNlUGFnZVJlc3BEYXRhUghwYW'
|
||||
'dlRGF0YRIfCgVyb29tcxgCIAMoCzIJLlJvb21EYXRhUgVyb29tcw==');
|
||||
|
||||
@$core.Deprecated('Use preUserDescriptor instead')
|
||||
const PreUser$json = {
|
||||
'1': 'PreUser',
|
||||
'2': [
|
||||
{'1': 'userName', '3': 1, '4': 1, '5': 9, '10': 'userName'},
|
||||
{'1': 'deviceUUID', '3': 2, '4': 1, '5': 9, '10': 'deviceUUID'},
|
||||
{'1': 'roomID', '3': 3, '4': 1, '5': 9, '10': 'roomID'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `PreUser`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List preUserDescriptor = $convert.base64Decode(
|
||||
'CgdQcmVVc2VyEhoKCHVzZXJOYW1lGAEgASgJUgh1c2VyTmFtZRIeCgpkZXZpY2VVVUlEGAIgAS'
|
||||
'gJUgpkZXZpY2VVVUlEEhYKBnJvb21JRBgDIAEoCVIGcm9vbUlE');
|
||||
|
||||
@$core.Deprecated('Use roomUserDataDescriptor instead')
|
||||
const RoomUserData$json = {
|
||||
'1': 'RoomUserData',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
|
||||
{'1': 'playerName', '3': 2, '4': 1, '5': 9, '10': 'playerName'},
|
||||
{'1': 'Avatar', '3': 3, '4': 1, '5': 9, '10': 'Avatar'},
|
||||
{
|
||||
'1': 'status',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.RoomUserStatus',
|
||||
'10': 'status'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomUserData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List roomUserDataDescriptor = $convert.base64Decode(
|
||||
'CgxSb29tVXNlckRhdGESDgoCaWQYASABKAlSAmlkEh4KCnBsYXllck5hbWUYAiABKAlSCnBsYX'
|
||||
'llck5hbWUSFgoGQXZhdGFyGAMgASgJUgZBdmF0YXISJwoGc3RhdHVzGAQgASgOMg8uUm9vbVVz'
|
||||
'ZXJTdGF0dXNSBnN0YXR1cw==');
|
||||
|
||||
@$core.Deprecated('Use roomUpdateMessageDescriptor instead')
|
||||
const RoomUpdateMessage$json = {
|
||||
'1': 'RoomUpdateMessage',
|
||||
'2': [
|
||||
{
|
||||
'1': 'roomData',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.RoomData',
|
||||
'10': 'roomData'
|
||||
},
|
||||
{
|
||||
'1': 'usersData',
|
||||
'3': 2,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.RoomUserData',
|
||||
'10': 'usersData'
|
||||
},
|
||||
{
|
||||
'1': 'roomUpdateType',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.RoomUpdateType',
|
||||
'10': 'roomUpdateType'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RoomUpdateMessage`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List roomUpdateMessageDescriptor = $convert.base64Decode(
|
||||
'ChFSb29tVXBkYXRlTWVzc2FnZRIlCghyb29tRGF0YRgBIAEoCzIJLlJvb21EYXRhUghyb29tRG'
|
||||
'F0YRIrCgl1c2Vyc0RhdGEYAiADKAsyDS5Sb29tVXNlckRhdGFSCXVzZXJzRGF0YRI3Cg5yb29t'
|
||||
'VXBkYXRlVHlwZRgDIAEoDjIPLlJvb21VcGRhdGVUeXBlUg5yb29tVXBkYXRlVHlwZQ==');
|
Reference in New Issue
Block a user