app/lib/generated/grpc/party_room_server/index.pb.dart

1360 lines
42 KiB
Dart
Raw Normal View History

2024-01-07 14:57:49 +08:00
//
// 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:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
2024-01-13 13:54:32 +08:00
import 'index.pbenum.dart';
2024-01-07 18:52:06 +08:00
export 'index.pbenum.dart';
class Empty extends $pb.GeneratedMessage {
factory Empty() => create();
Empty._() : super();
2024-02-06 20:19:53 +08:00
factory Empty.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory Empty.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'Empty',
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')
2024-01-07 18:52:06 +08:00
Empty clone() => Empty()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Empty copyWith(void Function(Empty) updates) =>
super.copyWith((message) => updates(message as Empty)) as Empty;
2024-01-07 18:52:06 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Empty create() => Empty._();
Empty createEmptyInstance() => create();
static $pb.PbList<Empty> createRepeated() => $pb.PbList<Empty>();
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static Empty getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Empty>(create);
2024-01-07 18:52:06 +08:00
static Empty? _defaultInstance;
}
2024-01-13 13:54:32 +08:00
class BaseRespData extends $pb.GeneratedMessage {
factory BaseRespData({
$core.int? code,
$core.String? message,
}) {
final $result = create();
if (code != null) {
$result.code = code;
}
if (message != null) {
$result.message = message;
}
return $result;
}
BaseRespData._() : super();
2024-02-06 20:19:53 +08:00
factory BaseRespData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory BaseRespData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'BaseRespData',
createEmptyInstance: create)
2024-01-13 13:54:32 +08:00
..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3)
..aOS(2, _omitFieldNames ? '' : 'message')
2024-02-06 20:19:53 +08:00
..hasRequiredFields = false;
2024-01-13 13:54:32 +08:00
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
2024-01-13 13:54:32 +08:00
BaseRespData clone() => BaseRespData()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
BaseRespData copyWith(void Function(BaseRespData) updates) =>
super.copyWith((message) => updates(message as BaseRespData))
as BaseRespData;
2024-01-13 13:54:32 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BaseRespData create() => BaseRespData._();
BaseRespData createEmptyInstance() => create();
2024-02-06 20:19:53 +08:00
static $pb.PbList<BaseRespData> createRepeated() =>
$pb.PbList<BaseRespData>();
2024-01-13 13:54:32 +08:00
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static BaseRespData getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<BaseRespData>(create);
2024-01-13 13:54:32 +08:00
static BaseRespData? _defaultInstance;
@$pb.TagNumber(1)
$core.int get code => $_getIZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set code($core.int v) {
$_setSignedInt32(0, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(1)
$core.bool hasCode() => $_has(0);
@$pb.TagNumber(1)
void clearCode() => clearField(1);
@$pb.TagNumber(2)
$core.String get message => $_getSZ(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set message($core.String v) {
$_setString(1, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(2)
$core.bool hasMessage() => $_has(1);
@$pb.TagNumber(2)
void clearMessage() => clearField(2);
}
class BasePageRespData extends $pb.GeneratedMessage {
factory BasePageRespData({
$core.int? code,
$core.String? message,
$core.bool? hasNext,
$fixnum.Int64? curPageNum,
$fixnum.Int64? pageSize,
}) {
final $result = create();
if (code != null) {
$result.code = code;
}
if (message != null) {
$result.message = message;
}
if (hasNext != null) {
$result.hasNext = hasNext;
}
if (curPageNum != null) {
$result.curPageNum = curPageNum;
}
if (pageSize != null) {
$result.pageSize = pageSize;
}
return $result;
}
BasePageRespData._() : super();
2024-02-06 20:19:53 +08:00
factory BasePageRespData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory BasePageRespData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'BasePageRespData',
createEmptyInstance: create)
2024-01-13 13:54:32 +08:00
..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3)
..aOS(2, _omitFieldNames ? '' : 'message')
..aOB(3, _omitFieldNames ? '' : 'hasNext', protoName: 'hasNext')
2024-02-06 20:19:53 +08:00
..a<$fixnum.Int64>(
4, _omitFieldNames ? '' : 'curPageNum', $pb.PbFieldType.OU6,
protoName: 'curPageNum', defaultOrMaker: $fixnum.Int64.ZERO)
2024-01-13 13:54:32 +08:00
..aInt64(5, _omitFieldNames ? '' : 'pageSize', protoName: 'pageSize')
2024-02-06 20:19:53 +08:00
..hasRequiredFields = false;
2024-01-13 13:54:32 +08:00
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
2024-01-13 13:54:32 +08:00
BasePageRespData clone() => BasePageRespData()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
BasePageRespData copyWith(void Function(BasePageRespData) updates) =>
super.copyWith((message) => updates(message as BasePageRespData))
as BasePageRespData;
2024-01-13 13:54:32 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BasePageRespData create() => BasePageRespData._();
BasePageRespData createEmptyInstance() => create();
2024-02-06 20:19:53 +08:00
static $pb.PbList<BasePageRespData> createRepeated() =>
$pb.PbList<BasePageRespData>();
2024-01-13 13:54:32 +08:00
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static BasePageRespData getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<BasePageRespData>(create);
2024-01-13 13:54:32 +08:00
static BasePageRespData? _defaultInstance;
@$pb.TagNumber(1)
$core.int get code => $_getIZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set code($core.int v) {
$_setSignedInt32(0, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(1)
$core.bool hasCode() => $_has(0);
@$pb.TagNumber(1)
void clearCode() => clearField(1);
@$pb.TagNumber(2)
$core.String get message => $_getSZ(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set message($core.String v) {
$_setString(1, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(2)
$core.bool hasMessage() => $_has(1);
@$pb.TagNumber(2)
void clearMessage() => clearField(2);
@$pb.TagNumber(3)
$core.bool get hasNext => $_getBF(2);
@$pb.TagNumber(3)
2024-02-06 20:19:53 +08:00
set hasNext($core.bool v) {
$_setBool(2, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(3)
$core.bool hasHasNext() => $_has(2);
@$pb.TagNumber(3)
void clearHasNext() => clearField(3);
@$pb.TagNumber(4)
$fixnum.Int64 get curPageNum => $_getI64(3);
@$pb.TagNumber(4)
2024-02-06 20:19:53 +08:00
set curPageNum($fixnum.Int64 v) {
$_setInt64(3, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(4)
$core.bool hasCurPageNum() => $_has(3);
@$pb.TagNumber(4)
void clearCurPageNum() => clearField(4);
@$pb.TagNumber(5)
$fixnum.Int64 get pageSize => $_getI64(4);
@$pb.TagNumber(5)
2024-02-06 20:19:53 +08:00
set pageSize($fixnum.Int64 v) {
$_setInt64(4, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(5)
$core.bool hasPageSize() => $_has(4);
@$pb.TagNumber(5)
void clearPageSize() => clearField(5);
}
2024-01-07 14:57:49 +08:00
class PingData extends $pb.GeneratedMessage {
factory PingData({
$core.String? data,
$fixnum.Int64? clientVersion,
$fixnum.Int64? serverVersion,
}) {
final $result = create();
if (data != null) {
$result.data = data;
}
if (clientVersion != null) {
$result.clientVersion = clientVersion;
}
if (serverVersion != null) {
$result.serverVersion = serverVersion;
}
return $result;
}
PingData._() : super();
2024-02-06 20:19:53 +08:00
factory PingData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory PingData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'PingData',
createEmptyInstance: create)
2024-01-07 14:57:49 +08:00
..aOS(1, _omitFieldNames ? '' : 'data')
2024-02-06 20:19:53 +08:00
..a<$fixnum.Int64>(
2, _omitFieldNames ? '' : 'clientVersion', $pb.PbFieldType.OS6,
protoName: 'clientVersion', defaultOrMaker: $fixnum.Int64.ZERO)
..a<$fixnum.Int64>(
3, _omitFieldNames ? '' : 'serverVersion', $pb.PbFieldType.OS6,
protoName: 'serverVersion', 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')
2024-01-07 14:57:49 +08:00
PingData clone() => PingData()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
PingData copyWith(void Function(PingData) updates) =>
super.copyWith((message) => updates(message as PingData)) as PingData;
2024-01-07 14:57:49 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static PingData create() => PingData._();
PingData createEmptyInstance() => create();
static $pb.PbList<PingData> createRepeated() => $pb.PbList<PingData>();
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static PingData getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PingData>(create);
2024-01-07 14:57:49 +08:00
static PingData? _defaultInstance;
@$pb.TagNumber(1)
$core.String get data => $_getSZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set data($core.String v) {
$_setString(0, v);
}
2024-01-07 14:57:49 +08:00
@$pb.TagNumber(1)
$core.bool hasData() => $_has(0);
@$pb.TagNumber(1)
void clearData() => clearField(1);
@$pb.TagNumber(2)
$fixnum.Int64 get clientVersion => $_getI64(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set clientVersion($fixnum.Int64 v) {
$_setInt64(1, v);
}
2024-01-07 14:57:49 +08:00
@$pb.TagNumber(2)
$core.bool hasClientVersion() => $_has(1);
@$pb.TagNumber(2)
void clearClientVersion() => clearField(2);
@$pb.TagNumber(3)
$fixnum.Int64 get serverVersion => $_getI64(2);
@$pb.TagNumber(3)
2024-02-06 20:19:53 +08:00
set serverVersion($fixnum.Int64 v) {
$_setInt64(2, v);
}
2024-01-07 14:57:49 +08:00
@$pb.TagNumber(3)
$core.bool hasServerVersion() => $_has(2);
@$pb.TagNumber(3)
void clearServerVersion() => clearField(3);
}
2024-01-07 18:52:06 +08:00
class RoomTypesData extends $pb.GeneratedMessage {
factory RoomTypesData({
$core.Iterable<RoomType>? roomTypes,
}) {
final $result = create();
if (roomTypes != null) {
$result.roomTypes.addAll(roomTypes);
}
return $result;
}
RoomTypesData._() : super();
2024-02-06 20:19:53 +08:00
factory RoomTypesData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory RoomTypesData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RoomTypesData',
createEmptyInstance: create)
..pc<RoomType>(1, _omitFieldNames ? '' : 'roomTypes', $pb.PbFieldType.PM,
protoName: 'roomTypes', subBuilder: RoomType.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')
2024-01-07 18:52:06 +08:00
RoomTypesData clone() => RoomTypesData()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RoomTypesData copyWith(void Function(RoomTypesData) updates) =>
super.copyWith((message) => updates(message as RoomTypesData))
as RoomTypesData;
2024-01-07 18:52:06 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RoomTypesData create() => RoomTypesData._();
RoomTypesData createEmptyInstance() => create();
2024-02-06 20:19:53 +08:00
static $pb.PbList<RoomTypesData> createRepeated() =>
$pb.PbList<RoomTypesData>();
2024-01-07 18:52:06 +08:00
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static RoomTypesData getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RoomTypesData>(create);
2024-01-07 18:52:06 +08:00
static RoomTypesData? _defaultInstance;
@$pb.TagNumber(1)
$core.List<RoomType> get roomTypes => $_getList(0);
}
class RoomType extends $pb.GeneratedMessage {
factory RoomType({
$core.String? id,
$core.String? name,
$core.String? icon,
$core.String? desc,
$core.Iterable<RoomSubtype>? subTypes,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (name != null) {
$result.name = name;
}
if (icon != null) {
$result.icon = icon;
}
if (desc != null) {
$result.desc = desc;
}
if (subTypes != null) {
$result.subTypes.addAll(subTypes);
}
return $result;
}
RoomType._() : super();
2024-02-06 20:19:53 +08:00
factory RoomType.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory RoomType.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RoomType',
createEmptyInstance: create)
2024-01-07 18:52:06 +08:00
..aOS(1, _omitFieldNames ? '' : 'id')
..aOS(2, _omitFieldNames ? '' : 'name')
..aOS(3, _omitFieldNames ? '' : 'icon')
..aOS(4, _omitFieldNames ? '' : 'desc')
2024-02-06 20:19:53 +08:00
..pc<RoomSubtype>(5, _omitFieldNames ? '' : 'subTypes', $pb.PbFieldType.PM,
protoName: 'subTypes', subBuilder: RoomSubtype.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')
2024-01-07 18:52:06 +08:00
RoomType clone() => RoomType()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RoomType copyWith(void Function(RoomType) updates) =>
super.copyWith((message) => updates(message as RoomType)) as RoomType;
2024-01-07 18:52:06 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RoomType create() => RoomType._();
RoomType createEmptyInstance() => create();
static $pb.PbList<RoomType> createRepeated() => $pb.PbList<RoomType>();
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static RoomType getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RoomType>(create);
2024-01-07 18:52:06 +08:00
static RoomType? _defaultInstance;
@$pb.TagNumber(1)
$core.String get id => $_getSZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set id($core.String v) {
$_setString(0, v);
}
2024-01-07 18:52:06 +08:00
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => clearField(1);
@$pb.TagNumber(2)
$core.String get name => $_getSZ(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set name($core.String v) {
$_setString(1, v);
}
2024-01-07 18:52:06 +08:00
@$pb.TagNumber(2)
$core.bool hasName() => $_has(1);
@$pb.TagNumber(2)
void clearName() => clearField(2);
@$pb.TagNumber(3)
$core.String get icon => $_getSZ(2);
@$pb.TagNumber(3)
2024-02-06 20:19:53 +08:00
set icon($core.String v) {
$_setString(2, v);
}
2024-01-07 18:52:06 +08:00
@$pb.TagNumber(3)
$core.bool hasIcon() => $_has(2);
@$pb.TagNumber(3)
void clearIcon() => clearField(3);
@$pb.TagNumber(4)
$core.String get desc => $_getSZ(3);
@$pb.TagNumber(4)
2024-02-06 20:19:53 +08:00
set desc($core.String v) {
$_setString(3, v);
}
2024-01-07 18:52:06 +08:00
@$pb.TagNumber(4)
$core.bool hasDesc() => $_has(3);
@$pb.TagNumber(4)
void clearDesc() => clearField(4);
@$pb.TagNumber(5)
$core.List<RoomSubtype> get subTypes => $_getList(4);
}
class RoomSubtype extends $pb.GeneratedMessage {
factory RoomSubtype({
$core.String? id,
$core.String? name,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (name != null) {
$result.name = name;
}
return $result;
}
RoomSubtype._() : super();
2024-02-06 20:19:53 +08:00
factory RoomSubtype.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory RoomSubtype.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RoomSubtype',
createEmptyInstance: create)
2024-01-07 18:52:06 +08:00
..aOS(1, _omitFieldNames ? '' : 'id')
..aOS(2, _omitFieldNames ? '' : 'name')
2024-02-06 20:19:53 +08:00
..hasRequiredFields = false;
2024-01-07 18:52:06 +08:00
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
2024-01-07 18:52:06 +08:00
RoomSubtype clone() => RoomSubtype()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RoomSubtype copyWith(void Function(RoomSubtype) updates) =>
super.copyWith((message) => updates(message as RoomSubtype))
as RoomSubtype;
2024-01-07 18:52:06 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RoomSubtype create() => RoomSubtype._();
RoomSubtype createEmptyInstance() => create();
static $pb.PbList<RoomSubtype> createRepeated() => $pb.PbList<RoomSubtype>();
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static RoomSubtype getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RoomSubtype>(create);
2024-01-07 18:52:06 +08:00
static RoomSubtype? _defaultInstance;
@$pb.TagNumber(1)
$core.String get id => $_getSZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set id($core.String v) {
$_setString(0, v);
}
2024-01-07 18:52:06 +08:00
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => clearField(1);
@$pb.TagNumber(2)
$core.String get name => $_getSZ(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set name($core.String v) {
$_setString(1, v);
}
2024-01-07 18:52:06 +08:00
@$pb.TagNumber(2)
$core.bool hasName() => $_has(1);
@$pb.TagNumber(2)
void clearName() => clearField(2);
}
2024-01-13 13:54:32 +08:00
class RoomData extends $pb.GeneratedMessage {
factory RoomData({
$core.String? id,
$core.String? roomTypeID,
$core.Iterable<$core.String>? roomSubTypeIds,
$core.String? owner,
$core.int? maxPlayer,
$fixnum.Int64? createTime,
$core.int? curPlayer,
RoomStatus? status,
$core.String? deviceUUID,
2024-01-13 17:29:41 +08:00
$core.String? announcement,
2024-01-13 20:00:06 +08:00
$core.String? avatar,
2024-01-14 20:47:15 +08:00
$fixnum.Int64? updateTime,
2024-01-13 13:54:32 +08:00
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (roomTypeID != null) {
$result.roomTypeID = roomTypeID;
}
if (roomSubTypeIds != null) {
$result.roomSubTypeIds.addAll(roomSubTypeIds);
}
if (owner != null) {
$result.owner = owner;
}
if (maxPlayer != null) {
$result.maxPlayer = maxPlayer;
}
if (createTime != null) {
$result.createTime = createTime;
}
if (curPlayer != null) {
$result.curPlayer = curPlayer;
}
if (status != null) {
$result.status = status;
}
if (deviceUUID != null) {
$result.deviceUUID = deviceUUID;
}
2024-01-13 17:29:41 +08:00
if (announcement != null) {
$result.announcement = announcement;
}
2024-01-13 20:00:06 +08:00
if (avatar != null) {
$result.avatar = avatar;
}
2024-01-14 20:47:15 +08:00
if (updateTime != null) {
$result.updateTime = updateTime;
}
2024-01-13 13:54:32 +08:00
return $result;
}
RoomData._() : super();
2024-02-06 20:19:53 +08:00
factory RoomData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory RoomData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RoomData',
createEmptyInstance: create)
2024-01-13 13:54:32 +08:00
..aOS(1, _omitFieldNames ? '' : 'id')
..aOS(2, _omitFieldNames ? '' : 'roomTypeID', protoName: 'roomTypeID')
2024-02-06 20:19:53 +08:00
..pPS(3, _omitFieldNames ? '' : 'roomSubTypeIds',
protoName: 'roomSubTypeIds')
2024-01-13 13:54:32 +08:00
..aOS(4, _omitFieldNames ? '' : 'owner')
2024-02-06 20:19:53 +08:00
..a<$core.int>(5, _omitFieldNames ? '' : 'maxPlayer', $pb.PbFieldType.O3,
protoName: 'maxPlayer')
2024-01-13 13:54:32 +08:00
..aInt64(6, _omitFieldNames ? '' : 'createTime', protoName: 'createTime')
2024-02-06 20:19:53 +08:00
..a<$core.int>(7, _omitFieldNames ? '' : 'curPlayer', $pb.PbFieldType.O3,
protoName: 'curPlayer')
..e<RoomStatus>(8, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE,
defaultOrMaker: RoomStatus.All,
valueOf: RoomStatus.valueOf,
enumValues: RoomStatus.values)
2024-01-13 13:54:32 +08:00
..aOS(9, _omitFieldNames ? '' : 'deviceUUID', protoName: 'deviceUUID')
2024-01-13 17:29:41 +08:00
..aOS(10, _omitFieldNames ? '' : 'announcement')
2024-01-13 20:00:06 +08:00
..aOS(11, _omitFieldNames ? '' : 'avatar')
2024-01-14 20:47:15 +08:00
..aInt64(12, _omitFieldNames ? '' : 'updateTime', protoName: 'updateTime')
2024-02-06 20:19:53 +08:00
..hasRequiredFields = false;
2024-01-13 13:54:32 +08:00
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
2024-01-13 13:54:32 +08:00
RoomData clone() => RoomData()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RoomData copyWith(void Function(RoomData) updates) =>
super.copyWith((message) => updates(message as RoomData)) as RoomData;
2024-01-13 13:54:32 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RoomData create() => RoomData._();
RoomData createEmptyInstance() => create();
static $pb.PbList<RoomData> createRepeated() => $pb.PbList<RoomData>();
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static RoomData getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RoomData>(create);
2024-01-13 13:54:32 +08:00
static RoomData? _defaultInstance;
@$pb.TagNumber(1)
$core.String get id => $_getSZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set id($core.String v) {
$_setString(0, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => clearField(1);
@$pb.TagNumber(2)
$core.String get roomTypeID => $_getSZ(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set roomTypeID($core.String v) {
$_setString(1, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(2)
$core.bool hasRoomTypeID() => $_has(1);
@$pb.TagNumber(2)
void clearRoomTypeID() => clearField(2);
@$pb.TagNumber(3)
$core.List<$core.String> get roomSubTypeIds => $_getList(2);
@$pb.TagNumber(4)
$core.String get owner => $_getSZ(3);
@$pb.TagNumber(4)
2024-02-06 20:19:53 +08:00
set owner($core.String v) {
$_setString(3, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(4)
$core.bool hasOwner() => $_has(3);
@$pb.TagNumber(4)
void clearOwner() => clearField(4);
@$pb.TagNumber(5)
$core.int get maxPlayer => $_getIZ(4);
@$pb.TagNumber(5)
2024-02-06 20:19:53 +08:00
set maxPlayer($core.int v) {
$_setSignedInt32(4, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(5)
$core.bool hasMaxPlayer() => $_has(4);
@$pb.TagNumber(5)
void clearMaxPlayer() => clearField(5);
@$pb.TagNumber(6)
$fixnum.Int64 get createTime => $_getI64(5);
@$pb.TagNumber(6)
2024-02-06 20:19:53 +08:00
set createTime($fixnum.Int64 v) {
$_setInt64(5, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(6)
$core.bool hasCreateTime() => $_has(5);
@$pb.TagNumber(6)
void clearCreateTime() => clearField(6);
@$pb.TagNumber(7)
$core.int get curPlayer => $_getIZ(6);
@$pb.TagNumber(7)
2024-02-06 20:19:53 +08:00
set curPlayer($core.int v) {
$_setSignedInt32(6, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(7)
$core.bool hasCurPlayer() => $_has(6);
@$pb.TagNumber(7)
void clearCurPlayer() => clearField(7);
@$pb.TagNumber(8)
RoomStatus get status => $_getN(7);
@$pb.TagNumber(8)
2024-02-06 20:19:53 +08:00
set status(RoomStatus v) {
setField(8, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(8)
$core.bool hasStatus() => $_has(7);
@$pb.TagNumber(8)
void clearStatus() => clearField(8);
@$pb.TagNumber(9)
$core.String get deviceUUID => $_getSZ(8);
@$pb.TagNumber(9)
2024-02-06 20:19:53 +08:00
set deviceUUID($core.String v) {
$_setString(8, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(9)
$core.bool hasDeviceUUID() => $_has(8);
@$pb.TagNumber(9)
void clearDeviceUUID() => clearField(9);
2024-01-13 17:29:41 +08:00
@$pb.TagNumber(10)
$core.String get announcement => $_getSZ(9);
@$pb.TagNumber(10)
2024-02-06 20:19:53 +08:00
set announcement($core.String v) {
$_setString(9, v);
}
2024-01-13 17:29:41 +08:00
@$pb.TagNumber(10)
$core.bool hasAnnouncement() => $_has(9);
@$pb.TagNumber(10)
void clearAnnouncement() => clearField(10);
2024-01-13 20:00:06 +08:00
@$pb.TagNumber(11)
$core.String get avatar => $_getSZ(10);
@$pb.TagNumber(11)
2024-02-06 20:19:53 +08:00
set avatar($core.String v) {
$_setString(10, v);
}
2024-01-13 20:00:06 +08:00
@$pb.TagNumber(11)
$core.bool hasAvatar() => $_has(10);
@$pb.TagNumber(11)
void clearAvatar() => clearField(11);
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(12)
$fixnum.Int64 get updateTime => $_getI64(11);
@$pb.TagNumber(12)
2024-02-06 20:19:53 +08:00
set updateTime($fixnum.Int64 v) {
$_setInt64(11, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(12)
$core.bool hasUpdateTime() => $_has(11);
@$pb.TagNumber(12)
void clearUpdateTime() => clearField(12);
2024-01-13 13:54:32 +08:00
}
class RoomListPageReqData extends $pb.GeneratedMessage {
factory RoomListPageReqData({
$core.String? typeID,
$core.String? subTypeID,
RoomStatus? status,
RoomSortType? sort,
$fixnum.Int64? pageNum,
}) {
final $result = create();
if (typeID != null) {
$result.typeID = typeID;
}
if (subTypeID != null) {
$result.subTypeID = subTypeID;
}
if (status != null) {
$result.status = status;
}
if (sort != null) {
$result.sort = sort;
}
if (pageNum != null) {
$result.pageNum = pageNum;
}
return $result;
}
RoomListPageReqData._() : super();
2024-02-06 20:19:53 +08:00
factory RoomListPageReqData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory RoomListPageReqData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RoomListPageReqData',
createEmptyInstance: create)
2024-01-13 13:54:32 +08:00
..aOS(1, _omitFieldNames ? '' : 'typeID', protoName: 'typeID')
..aOS(2, _omitFieldNames ? '' : 'subTypeID', protoName: 'subTypeID')
2024-02-06 20:19:53 +08:00
..e<RoomStatus>(3, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE,
defaultOrMaker: RoomStatus.All,
valueOf: RoomStatus.valueOf,
enumValues: RoomStatus.values)
..e<RoomSortType>(4, _omitFieldNames ? '' : 'sort', $pb.PbFieldType.OE,
defaultOrMaker: RoomSortType.Default,
valueOf: RoomSortType.valueOf,
enumValues: RoomSortType.values)
..a<$fixnum.Int64>(5, _omitFieldNames ? '' : 'pageNum', $pb.PbFieldType.OU6,
protoName: 'pageNum', 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')
2024-01-13 13:54:32 +08:00
RoomListPageReqData clone() => RoomListPageReqData()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RoomListPageReqData copyWith(void Function(RoomListPageReqData) updates) =>
super.copyWith((message) => updates(message as RoomListPageReqData))
as RoomListPageReqData;
2024-01-13 13:54:32 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RoomListPageReqData create() => RoomListPageReqData._();
RoomListPageReqData createEmptyInstance() => create();
2024-02-06 20:19:53 +08:00
static $pb.PbList<RoomListPageReqData> createRepeated() =>
$pb.PbList<RoomListPageReqData>();
2024-01-13 13:54:32 +08:00
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static RoomListPageReqData getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RoomListPageReqData>(create);
2024-01-13 13:54:32 +08:00
static RoomListPageReqData? _defaultInstance;
@$pb.TagNumber(1)
$core.String get typeID => $_getSZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set typeID($core.String v) {
$_setString(0, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(1)
$core.bool hasTypeID() => $_has(0);
@$pb.TagNumber(1)
void clearTypeID() => clearField(1);
@$pb.TagNumber(2)
$core.String get subTypeID => $_getSZ(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set subTypeID($core.String v) {
$_setString(1, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(2)
$core.bool hasSubTypeID() => $_has(1);
@$pb.TagNumber(2)
void clearSubTypeID() => clearField(2);
@$pb.TagNumber(3)
RoomStatus get status => $_getN(2);
@$pb.TagNumber(3)
2024-02-06 20:19:53 +08:00
set status(RoomStatus v) {
setField(3, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(3)
$core.bool hasStatus() => $_has(2);
@$pb.TagNumber(3)
void clearStatus() => clearField(3);
@$pb.TagNumber(4)
RoomSortType get sort => $_getN(3);
@$pb.TagNumber(4)
2024-02-06 20:19:53 +08:00
set sort(RoomSortType v) {
setField(4, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(4)
$core.bool hasSort() => $_has(3);
@$pb.TagNumber(4)
void clearSort() => clearField(4);
@$pb.TagNumber(5)
$fixnum.Int64 get pageNum => $_getI64(4);
@$pb.TagNumber(5)
2024-02-06 20:19:53 +08:00
set pageNum($fixnum.Int64 v) {
$_setInt64(4, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(5)
$core.bool hasPageNum() => $_has(4);
@$pb.TagNumber(5)
void clearPageNum() => clearField(5);
}
class RoomListData extends $pb.GeneratedMessage {
factory RoomListData({
BasePageRespData? pageData,
$core.Iterable<RoomData>? rooms,
}) {
final $result = create();
if (pageData != null) {
$result.pageData = pageData;
}
if (rooms != null) {
$result.rooms.addAll(rooms);
}
return $result;
}
RoomListData._() : super();
2024-02-06 20:19:53 +08:00
factory RoomListData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory RoomListData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RoomListData',
createEmptyInstance: create)
..aOM<BasePageRespData>(1, _omitFieldNames ? '' : 'pageData',
protoName: 'pageData', subBuilder: BasePageRespData.create)
..pc<RoomData>(2, _omitFieldNames ? '' : 'rooms', $pb.PbFieldType.PM,
subBuilder: RoomData.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')
2024-01-13 13:54:32 +08:00
RoomListData clone() => RoomListData()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RoomListData copyWith(void Function(RoomListData) updates) =>
super.copyWith((message) => updates(message as RoomListData))
as RoomListData;
2024-01-13 13:54:32 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RoomListData create() => RoomListData._();
RoomListData createEmptyInstance() => create();
2024-02-06 20:19:53 +08:00
static $pb.PbList<RoomListData> createRepeated() =>
$pb.PbList<RoomListData>();
2024-01-13 13:54:32 +08:00
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static RoomListData getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RoomListData>(create);
2024-01-13 13:54:32 +08:00
static RoomListData? _defaultInstance;
@$pb.TagNumber(1)
BasePageRespData get pageData => $_getN(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set pageData(BasePageRespData v) {
setField(1, v);
}
2024-01-13 13:54:32 +08:00
@$pb.TagNumber(1)
$core.bool hasPageData() => $_has(0);
@$pb.TagNumber(1)
void clearPageData() => clearField(1);
@$pb.TagNumber(1)
BasePageRespData ensurePageData() => $_ensure(0);
@$pb.TagNumber(2)
$core.List<RoomData> get rooms => $_getList(1);
}
2024-01-14 20:47:15 +08:00
class PreUser extends $pb.GeneratedMessage {
factory PreUser({
$core.String? userName,
$core.String? deviceUUID,
$core.String? roomID,
}) {
final $result = create();
if (userName != null) {
$result.userName = userName;
}
if (deviceUUID != null) {
$result.deviceUUID = deviceUUID;
}
if (roomID != null) {
$result.roomID = roomID;
}
return $result;
}
PreUser._() : super();
2024-02-06 20:19:53 +08:00
factory PreUser.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory PreUser.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'PreUser',
createEmptyInstance: create)
2024-01-14 20:47:15 +08:00
..aOS(1, _omitFieldNames ? '' : 'userName', protoName: 'userName')
..aOS(2, _omitFieldNames ? '' : 'deviceUUID', protoName: 'deviceUUID')
..aOS(3, _omitFieldNames ? '' : 'roomID', protoName: 'roomID')
2024-02-06 20:19:53 +08:00
..hasRequiredFields = false;
2024-01-14 20:47:15 +08:00
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
2024-01-14 20:47:15 +08:00
PreUser clone() => PreUser()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
PreUser copyWith(void Function(PreUser) updates) =>
super.copyWith((message) => updates(message as PreUser)) as PreUser;
2024-01-14 20:47:15 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static PreUser create() => PreUser._();
PreUser createEmptyInstance() => create();
static $pb.PbList<PreUser> createRepeated() => $pb.PbList<PreUser>();
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static PreUser getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PreUser>(create);
2024-01-14 20:47:15 +08:00
static PreUser? _defaultInstance;
@$pb.TagNumber(1)
$core.String get userName => $_getSZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set userName($core.String v) {
$_setString(0, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(1)
$core.bool hasUserName() => $_has(0);
@$pb.TagNumber(1)
void clearUserName() => clearField(1);
@$pb.TagNumber(2)
$core.String get deviceUUID => $_getSZ(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set deviceUUID($core.String v) {
$_setString(1, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(2)
$core.bool hasDeviceUUID() => $_has(1);
@$pb.TagNumber(2)
void clearDeviceUUID() => clearField(2);
@$pb.TagNumber(3)
$core.String get roomID => $_getSZ(2);
@$pb.TagNumber(3)
2024-02-06 20:19:53 +08:00
set roomID($core.String v) {
$_setString(2, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(3)
$core.bool hasRoomID() => $_has(2);
@$pb.TagNumber(3)
void clearRoomID() => clearField(3);
}
class RoomUserData extends $pb.GeneratedMessage {
factory RoomUserData({
$core.String? id,
$core.String? playerName,
$core.String? avatar,
RoomUserStatus? status,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (playerName != null) {
$result.playerName = playerName;
}
if (avatar != null) {
$result.avatar = avatar;
}
if (status != null) {
$result.status = status;
}
return $result;
}
RoomUserData._() : super();
2024-02-06 20:19:53 +08:00
factory RoomUserData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory RoomUserData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RoomUserData',
createEmptyInstance: create)
2024-01-14 20:47:15 +08:00
..aOS(1, _omitFieldNames ? '' : 'id')
..aOS(2, _omitFieldNames ? '' : 'playerName', protoName: 'playerName')
..aOS(3, _omitFieldNames ? '' : 'Avatar', protoName: 'Avatar')
2024-02-06 20:19:53 +08:00
..e<RoomUserStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE,
defaultOrMaker: RoomUserStatus.RoomUserStatusJoin,
valueOf: RoomUserStatus.valueOf,
enumValues: RoomUserStatus.values)
..hasRequiredFields = false;
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
2024-01-14 20:47:15 +08:00
RoomUserData clone() => RoomUserData()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RoomUserData copyWith(void Function(RoomUserData) updates) =>
super.copyWith((message) => updates(message as RoomUserData))
as RoomUserData;
2024-01-14 20:47:15 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RoomUserData create() => RoomUserData._();
RoomUserData createEmptyInstance() => create();
2024-02-06 20:19:53 +08:00
static $pb.PbList<RoomUserData> createRepeated() =>
$pb.PbList<RoomUserData>();
2024-01-14 20:47:15 +08:00
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static RoomUserData getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RoomUserData>(create);
2024-01-14 20:47:15 +08:00
static RoomUserData? _defaultInstance;
@$pb.TagNumber(1)
$core.String get id => $_getSZ(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set id($core.String v) {
$_setString(0, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => clearField(1);
@$pb.TagNumber(2)
$core.String get playerName => $_getSZ(1);
@$pb.TagNumber(2)
2024-02-06 20:19:53 +08:00
set playerName($core.String v) {
$_setString(1, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(2)
$core.bool hasPlayerName() => $_has(1);
@$pb.TagNumber(2)
void clearPlayerName() => clearField(2);
@$pb.TagNumber(3)
$core.String get avatar => $_getSZ(2);
@$pb.TagNumber(3)
2024-02-06 20:19:53 +08:00
set avatar($core.String v) {
$_setString(2, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(3)
$core.bool hasAvatar() => $_has(2);
@$pb.TagNumber(3)
void clearAvatar() => clearField(3);
@$pb.TagNumber(4)
RoomUserStatus get status => $_getN(3);
@$pb.TagNumber(4)
2024-02-06 20:19:53 +08:00
set status(RoomUserStatus v) {
setField(4, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(4)
$core.bool hasStatus() => $_has(3);
@$pb.TagNumber(4)
void clearStatus() => clearField(4);
}
class RoomUpdateMessage extends $pb.GeneratedMessage {
factory RoomUpdateMessage({
RoomData? roomData,
$core.Iterable<RoomUserData>? usersData,
RoomUpdateType? roomUpdateType,
}) {
final $result = create();
if (roomData != null) {
$result.roomData = roomData;
}
if (usersData != null) {
$result.usersData.addAll(usersData);
}
if (roomUpdateType != null) {
$result.roomUpdateType = roomUpdateType;
}
return $result;
}
RoomUpdateMessage._() : super();
2024-02-06 20:19:53 +08:00
factory RoomUpdateMessage.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory RoomUpdateMessage.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RoomUpdateMessage',
createEmptyInstance: create)
..aOM<RoomData>(1, _omitFieldNames ? '' : 'roomData',
protoName: 'roomData', subBuilder: RoomData.create)
..pc<RoomUserData>(
2, _omitFieldNames ? '' : 'usersData', $pb.PbFieldType.PM,
protoName: 'usersData', subBuilder: RoomUserData.create)
..e<RoomUpdateType>(
3, _omitFieldNames ? '' : 'roomUpdateType', $pb.PbFieldType.OE,
protoName: 'roomUpdateType',
defaultOrMaker: RoomUpdateType.RoomUpdateData,
valueOf: RoomUpdateType.valueOf,
enumValues: RoomUpdateType.values)
..hasRequiredFields = false;
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
2024-01-14 20:47:15 +08:00
RoomUpdateMessage clone() => RoomUpdateMessage()..mergeFromMessage(this);
2024-02-06 20:19:53 +08:00
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RoomUpdateMessage copyWith(void Function(RoomUpdateMessage) updates) =>
super.copyWith((message) => updates(message as RoomUpdateMessage))
as RoomUpdateMessage;
2024-01-14 20:47:15 +08:00
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RoomUpdateMessage create() => RoomUpdateMessage._();
RoomUpdateMessage createEmptyInstance() => create();
2024-02-06 20:19:53 +08:00
static $pb.PbList<RoomUpdateMessage> createRepeated() =>
$pb.PbList<RoomUpdateMessage>();
2024-01-14 20:47:15 +08:00
@$core.pragma('dart2js:noInline')
2024-02-06 20:19:53 +08:00
static RoomUpdateMessage getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RoomUpdateMessage>(create);
2024-01-14 20:47:15 +08:00
static RoomUpdateMessage? _defaultInstance;
@$pb.TagNumber(1)
RoomData get roomData => $_getN(0);
@$pb.TagNumber(1)
2024-02-06 20:19:53 +08:00
set roomData(RoomData v) {
setField(1, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(1)
$core.bool hasRoomData() => $_has(0);
@$pb.TagNumber(1)
void clearRoomData() => clearField(1);
@$pb.TagNumber(1)
RoomData ensureRoomData() => $_ensure(0);
@$pb.TagNumber(2)
$core.List<RoomUserData> get usersData => $_getList(1);
@$pb.TagNumber(3)
RoomUpdateType get roomUpdateType => $_getN(2);
@$pb.TagNumber(3)
2024-02-06 20:19:53 +08:00
set roomUpdateType(RoomUpdateType v) {
setField(3, v);
}
2024-01-14 20:47:15 +08:00
@$pb.TagNumber(3)
$core.bool hasRoomUpdateType() => $_has(2);
@$pb.TagNumber(3)
void clearRoomUpdateType() => clearField(3);
}
2024-01-07 14:57:49 +08:00
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
2024-02-06 20:19:53 +08:00
const _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');