77 lines
2.8 KiB
Dart
77 lines
2.8 KiB
Dart
|
|
//
|
||
|
|
// Generated code. Do not modify.
|
||
|
|
// source: internal/token.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 AuthToken extends $pb.GeneratedMessage {
|
||
|
|
factory AuthToken({
|
||
|
|
$core.String? uid,
|
||
|
|
$core.Iterable<$core.String>? homes,
|
||
|
|
}) {
|
||
|
|
final $result = create();
|
||
|
|
if (uid != null) {
|
||
|
|
$result.uid = uid;
|
||
|
|
}
|
||
|
|
if (homes != null) {
|
||
|
|
$result.homes.addAll(homes);
|
||
|
|
}
|
||
|
|
return $result;
|
||
|
|
}
|
||
|
|
AuthToken._() : super();
|
||
|
|
factory AuthToken.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||
|
|
factory AuthToken.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||
|
|
|
||
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AuthToken', package: const $pb.PackageName(_omitMessageNames ? '' : 'token'), createEmptyInstance: create)
|
||
|
|
..aOS(1, _omitFieldNames ? '' : 'uid')
|
||
|
|
..pPS(2, _omitFieldNames ? '' : 'homes')
|
||
|
|
..hasRequiredFields = false
|
||
|
|
;
|
||
|
|
|
||
|
|
@$core.Deprecated(
|
||
|
|
'Using this can add significant overhead to your binary. '
|
||
|
|
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||
|
|
'Will be removed in next major version')
|
||
|
|
AuthToken clone() => AuthToken()..mergeFromMessage(this);
|
||
|
|
@$core.Deprecated(
|
||
|
|
'Using this can add significant overhead to your binary. '
|
||
|
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||
|
|
'Will be removed in next major version')
|
||
|
|
AuthToken copyWith(void Function(AuthToken) updates) => super.copyWith((message) => updates(message as AuthToken)) as AuthToken;
|
||
|
|
|
||
|
|
$pb.BuilderInfo get info_ => _i;
|
||
|
|
|
||
|
|
@$core.pragma('dart2js:noInline')
|
||
|
|
static AuthToken create() => AuthToken._();
|
||
|
|
AuthToken createEmptyInstance() => create();
|
||
|
|
static $pb.PbList<AuthToken> createRepeated() => $pb.PbList<AuthToken>();
|
||
|
|
@$core.pragma('dart2js:noInline')
|
||
|
|
static AuthToken getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AuthToken>(create);
|
||
|
|
static AuthToken? _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.List<$core.String> get homes => $_getList(1);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||
|
|
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|