|
|
|
//
|
|
|
|
// Generated code. Do not modify.
|
|
|
|
// source: auth.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 AuthReq extends $pb.GeneratedMessage {
|
|
|
|
|
|
|
|
factory AuthReq({
|
|
|
|
$core.String? uid,
|
|
|
|
$core.String? token,
|
|
|
|
}) {
|
|
|
|
final $result = create();
|
|
|
|
if (uid != null) {
|
|
|
|
$result.uid = uid;
|
|
|
|
}
|
|
|
|
if (token != null) {
|
|
|
|
$result.token = token;
|
|
|
|
}
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
AuthReq._() : super();
|
|
|
|
factory AuthReq.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
|
|
|
factory AuthReq.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
|
|
|
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AuthReq', createEmptyInstance: create)
|
|
|
|
..aOS(1, _omitFieldNames ? '' : 'uid')
|
|
|
|
..aOS(2, _omitFieldNames ? '' : 'token')
|
|
|
|
..hasRequiredFields = false
|
|
|
|
;
|
|
|
|
|
|
|
|
@$core.Deprecated(
|
|
|
|
'Using this can add significant overhead to your binary. '
|
|
|
|
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
|
|
|
'Will be removed in next major version')
|
|
|
|
AuthReq clone() => AuthReq()..mergeFromMessage(this);
|
|
|
|
@$core.Deprecated(
|
|
|
|
'Using this can add significant overhead to your binary. '
|
|
|
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
|
|
|
'Will be removed in next major version')
|
|
|
|
AuthReq copyWith(void Function(AuthReq) updates) => super.copyWith((message) => updates(message as AuthReq)) as AuthReq;
|
|
|
|
|
|
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
|
|
static AuthReq create() => AuthReq._();
|
|
|
|
AuthReq createEmptyInstance() => create();
|
|
|
|
static $pb.PbList<AuthReq> createRepeated() => $pb.PbList<AuthReq>();
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
|
|
static AuthReq getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AuthReq>(create);
|
|
|
|
static AuthReq? _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 token => $_getSZ(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
|
|
set token($core.String v) { $_setString(1, v); }
|
|
|
|
@$pb.TagNumber(2)
|
|
|
|
$core.bool hasToken() => $_has(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
|
|
void clearToken() => clearField(2);
|
|
|
|
}
|
|
|
|
|
|
|
|
class AuthResp extends $pb.GeneratedMessage {
|
|
|
|
factory AuthResp({
|
|
|
|
$core.String? uid,
|
|
|
|
$core.int? code,
|
|
|
|
$core.String? message,
|
|
|
|
}) {
|
|
|
|
final $result = create();
|
|
|
|
if (uid != null) {
|
|
|
|
$result.uid = uid;
|
|
|
|
}
|
|
|
|
if (code != null) {
|
|
|
|
$result.code = code;
|
|
|
|
}
|
|
|
|
if (message != null) {
|
|
|
|
$result.message = message;
|
|
|
|
}
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
AuthResp._() : super();
|
|
|
|
factory AuthResp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
|
|
|
factory AuthResp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
|
|
|
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AuthResp', createEmptyInstance: create)
|
|
|
|
..aOS(1, _omitFieldNames ? '' : 'uid')
|
|
|
|
..a<$core.int>(2, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OU3)
|
|
|
|
..aOS(3, _omitFieldNames ? '' : 'message')
|
|
|
|
..hasRequiredFields = false
|
|
|
|
;
|
|
|
|
|
|
|
|
@$core.Deprecated(
|
|
|
|
'Using this can add significant overhead to your binary. '
|
|
|
|
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
|
|
|
'Will be removed in next major version')
|
|
|
|
AuthResp clone() => AuthResp()..mergeFromMessage(this);
|
|
|
|
@$core.Deprecated(
|
|
|
|
'Using this can add significant overhead to your binary. '
|
|
|
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
|
|
|
'Will be removed in next major version')
|
|
|
|
AuthResp copyWith(void Function(AuthResp) updates) => super.copyWith((message) => updates(message as AuthResp)) as AuthResp;
|
|
|
|
|
|
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
|
|
static AuthResp create() => AuthResp._();
|
|
|
|
AuthResp createEmptyInstance() => create();
|
|
|
|
static $pb.PbList<AuthResp> createRepeated() => $pb.PbList<AuthResp>();
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
|
|
static AuthResp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AuthResp>(create);
|
|
|
|
static AuthResp? _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.int get code => $_getIZ(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
|
|
set code($core.int v) { $_setUnsignedInt32(1, v); }
|
|
|
|
@$pb.TagNumber(2)
|
|
|
|
$core.bool hasCode() => $_has(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
|
|
void clearCode() => clearField(2);
|
|
|
|
|
|
|
|
@$pb.TagNumber(3)
|
|
|
|
$core.String get message => $_getSZ(2);
|
|
|
|
@$pb.TagNumber(3)
|
|
|
|
set message($core.String v) { $_setString(2, v); }
|
|
|
|
@$pb.TagNumber(3)
|
|
|
|
$core.bool hasMessage() => $_has(2);
|
|
|
|
@$pb.TagNumber(3)
|
|
|
|
void clearMessage() => clearField(3);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
|
|
|
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|