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.

255 lines
7.4 KiB

3 years ago
///
// Generated code. Do not modify.
// source: user.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
class User extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'User',
createEmptyInstance: create)
..aOS(
1,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'uid')
..aOS(
2,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'username')
..aOS(
3,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'nickname')
..aOS(
4,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'avatar')
..aOS(
5,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'client')
..aOS(
6,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'subDomain',
protoName: 'subDomain')
..aOS(
7,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'extra')
..hasRequiredFields = false;
User._() : super();
factory User({
$core.String? uid,
$core.String? username,
$core.String? nickname,
$core.String? avatar,
$core.String? client,
$core.String? subDomain,
$core.String? extra,
}) {
final _result = create();
if (uid != null) {
_result.uid = uid;
}
if (username != null) {
_result.username = username;
}
if (nickname != null) {
_result.nickname = nickname;
}
if (avatar != null) {
_result.avatar = avatar;
}
if (client != null) {
_result.client = client;
}
if (subDomain != null) {
_result.subDomain = subDomain;
}
if (extra != null) {
_result.extra = extra;
}
return _result;
}
factory User.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory User.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
User clone() => User()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
User copyWith(void Function(User) updates) =>
super.copyWith((message) => updates(message as User))
as User; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static User create() => User._();
User createEmptyInstance() => create();
static $pb.PbList<User> createRepeated() => $pb.PbList<User>();
@$core.pragma('dart2js:noInline')
static User getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<User>(create);
static User? _defaultInstance;
@$pb.TagNumber(1)
$core.String get uid => $_getSZ(0);
@$pb.TagNumber(1)
set uid($core.String v) {
$_setString(0, v);
}
@$pb.TagNumber(1)
$core.bool hasUid() => $_has(0);
@$pb.TagNumber(1)
void clearUid() => clearField(1);
@$pb.TagNumber(2)
$core.String get username => $_getSZ(1);
@$pb.TagNumber(2)
set username($core.String v) {
$_setString(1, v);
}
@$pb.TagNumber(2)
$core.bool hasUsername() => $_has(1);
@$pb.TagNumber(2)
void clearUsername() => clearField(2);
@$pb.TagNumber(3)
$core.String get nickname => $_getSZ(2);
@$pb.TagNumber(3)
set nickname($core.String v) {
$_setString(2, v);
}
@$pb.TagNumber(3)
$core.bool hasNickname() => $_has(2);
@$pb.TagNumber(3)
void clearNickname() => clearField(3);
@$pb.TagNumber(4)
$core.String get avatar => $_getSZ(3);
@$pb.TagNumber(4)
set avatar($core.String v) {
$_setString(3, v);
}
@$pb.TagNumber(4)
$core.bool hasAvatar() => $_has(3);
@$pb.TagNumber(4)
void clearAvatar() => clearField(4);
@$pb.TagNumber(5)
$core.String get client => $_getSZ(4);
@$pb.TagNumber(5)
set client($core.String v) {
$_setString(4, v);
}
@$pb.TagNumber(5)
$core.bool hasClient() => $_has(4);
@$pb.TagNumber(5)
void clearClient() => clearField(5);
@$pb.TagNumber(6)
$core.String get subDomain => $_getSZ(5);
@$pb.TagNumber(6)
set subDomain($core.String v) {
$_setString(5, v);
}
@$pb.TagNumber(6)
$core.bool hasSubDomain() => $_has(5);
@$pb.TagNumber(6)
void clearSubDomain() => clearField(6);
@$pb.TagNumber(7)
$core.String get extra => $_getSZ(6);
@$pb.TagNumber(7)
set extra($core.String v) {
$_setString(6, v);
}
@$pb.TagNumber(7)
$core.bool hasExtra() => $_has(6);
@$pb.TagNumber(7)
void clearExtra() => clearField(7);
}
class UserList extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'UserList',
createEmptyInstance: create)
..pc<User>(
1,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'list',
$pb.PbFieldType.PM,
subBuilder: User.create)
..hasRequiredFields = false;
UserList._() : super();
factory UserList({
$core.Iterable<User>? list,
}) {
final _result = create();
if (list != null) {
_result.list.addAll(list);
}
return _result;
}
factory UserList.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory UserList.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
UserList clone() => UserList()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
UserList copyWith(void Function(UserList) updates) =>
super.copyWith((message) => updates(message as UserList))
as UserList; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UserList create() => UserList._();
UserList createEmptyInstance() => create();
static $pb.PbList<UserList> createRepeated() => $pb.PbList<UserList>();
@$core.pragma('dart2js:noInline')
static UserList getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UserList>(create);
static UserList? _defaultInstance;
@$pb.TagNumber(1)
$core.List<User> get list => $_getList(0);
}