You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

273 lines
9.9 KiB

//
// Generated code. Do not modify.
// source: message.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 'message.pbenum.dart';
export 'message.pbenum.dart';
class MsgData extends $pb.GeneratedMessage {
factory MsgData({
4 months ago
$core.String? to,
$core.String? from,
$core.int? ctime,
MsgType? type,
$core.List<$core.int>? data,
}) {
final $result = create();
if (to != null) {
$result.to = to;
}
if (from != null) {
$result.from = from;
}
if (ctime != null) {
$result.ctime = ctime;
}
if (type != null) {
$result.type = type;
}
if (data != null) {
$result.data = data;
}
return $result;
}
MsgData._() : super();
factory MsgData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory MsgData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MsgData', createEmptyInstance: create)
4 months ago
..aOS(1, _omitFieldNames ? '' : 'to')
..aOS(2, _omitFieldNames ? '' : 'from')
..a<$core.int>(3, _omitFieldNames ? '' : 'ctime', $pb.PbFieldType.OU3)
..e<MsgType>(4, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: MsgType.SINGLE_TEXT, valueOf: MsgType.valueOf, enumValues: MsgType.values)
..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
MsgData clone() => MsgData()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
MsgData copyWith(void Function(MsgData) updates) => super.copyWith((message) => updates(message as MsgData)) as MsgData;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static MsgData create() => MsgData._();
MsgData createEmptyInstance() => create();
static $pb.PbList<MsgData> createRepeated() => $pb.PbList<MsgData>();
@$core.pragma('dart2js:noInline')
static MsgData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MsgData>(create);
static MsgData? _defaultInstance;
@$pb.TagNumber(1)
4 months ago
$core.String get to => $_getSZ(0);
@$pb.TagNumber(1)
4 months ago
set to($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasTo() => $_has(0);
@$pb.TagNumber(1)
void clearTo() => clearField(1);
@$pb.TagNumber(2)
4 months ago
$core.String get from => $_getSZ(1);
@$pb.TagNumber(2)
4 months ago
set from($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasFrom() => $_has(1);
@$pb.TagNumber(2)
void clearFrom() => clearField(2);
@$pb.TagNumber(3)
$core.int get ctime => $_getIZ(2);
@$pb.TagNumber(3)
set ctime($core.int v) { $_setUnsignedInt32(2, v); }
@$pb.TagNumber(3)
$core.bool hasCtime() => $_has(2);
@$pb.TagNumber(3)
void clearCtime() => clearField(3);
@$pb.TagNumber(4)
MsgType get type => $_getN(3);
@$pb.TagNumber(4)
set type(MsgType v) { setField(4, v); }
@$pb.TagNumber(4)
$core.bool hasType() => $_has(3);
@$pb.TagNumber(4)
void clearType() => clearField(4);
@$pb.TagNumber(5)
$core.List<$core.int> get data => $_getN(4);
@$pb.TagNumber(5)
set data($core.List<$core.int> v) { $_setBytes(4, v); }
@$pb.TagNumber(5)
$core.bool hasData() => $_has(4);
@$pb.TagNumber(5)
void clearData() => clearField(5);
}
class MsgNotify extends $pb.GeneratedMessage {
factory MsgNotify({
$core.int? seq,
}) {
final $result = create();
if (seq != null) {
$result.seq = seq;
}
return $result;
}
MsgNotify._() : super();
factory MsgNotify.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory MsgNotify.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MsgNotify', createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'seq', $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')
MsgNotify clone() => MsgNotify()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
MsgNotify copyWith(void Function(MsgNotify) updates) => super.copyWith((message) => updates(message as MsgNotify)) as MsgNotify;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static MsgNotify create() => MsgNotify._();
MsgNotify createEmptyInstance() => create();
static $pb.PbList<MsgNotify> createRepeated() => $pb.PbList<MsgNotify>();
@$core.pragma('dart2js:noInline')
static MsgNotify getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MsgNotify>(create);
static MsgNotify? _defaultInstance;
@$pb.TagNumber(1)
$core.int get seq => $_getIZ(0);
@$pb.TagNumber(1)
set seq($core.int v) { $_setUnsignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasSeq() => $_has(0);
@$pb.TagNumber(1)
void clearSeq() => clearField(1);
}
class MsgSync extends $pb.GeneratedMessage {
factory MsgSync({
$core.int? seq,
}) {
final $result = create();
if (seq != null) {
$result.seq = seq;
}
return $result;
}
MsgSync._() : super();
factory MsgSync.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory MsgSync.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MsgSync', createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'seq', $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')
MsgSync clone() => MsgSync()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
MsgSync copyWith(void Function(MsgSync) updates) => super.copyWith((message) => updates(message as MsgSync)) as MsgSync;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static MsgSync create() => MsgSync._();
MsgSync createEmptyInstance() => create();
static $pb.PbList<MsgSync> createRepeated() => $pb.PbList<MsgSync>();
@$core.pragma('dart2js:noInline')
static MsgSync getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MsgSync>(create);
static MsgSync? _defaultInstance;
@$pb.TagNumber(1)
$core.int get seq => $_getIZ(0);
@$pb.TagNumber(1)
set seq($core.int v) { $_setUnsignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasSeq() => $_has(0);
@$pb.TagNumber(1)
void clearSeq() => clearField(1);
}
class MsgSyncData extends $pb.GeneratedMessage {
factory MsgSyncData({
$core.Iterable<MsgData>? messages,
}) {
final $result = create();
if (messages != null) {
$result.messages.addAll(messages);
}
return $result;
}
MsgSyncData._() : super();
factory MsgSyncData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory MsgSyncData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MsgSyncData', createEmptyInstance: create)
..pc<MsgData>(1, _omitFieldNames ? '' : 'messages', $pb.PbFieldType.PM, subBuilder: MsgData.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')
MsgSyncData clone() => MsgSyncData()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
MsgSyncData copyWith(void Function(MsgSyncData) updates) => super.copyWith((message) => updates(message as MsgSyncData)) as MsgSyncData;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static MsgSyncData create() => MsgSyncData._();
MsgSyncData createEmptyInstance() => create();
static $pb.PbList<MsgSyncData> createRepeated() => $pb.PbList<MsgSyncData>();
@$core.pragma('dart2js:noInline')
static MsgSyncData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MsgSyncData>(create);
static MsgSyncData? _defaultInstance;
@$pb.TagNumber(1)
$core.List<MsgData> get messages => $_getList(0);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');