| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380 |
- ///
- // Generated code. Do not modify.
- // source: GoogleAuthenticatorImport.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:fixnum/fixnum.dart' as $fixnum;
- import 'package:protobuf/protobuf.dart' as $pb;
- import 'GoogleAuthenticatorImport.pbenum.dart';
- export 'GoogleAuthenticatorImport.pbenum.dart';
- class GoogleAuthenticatorImport_OtpParameters extends $pb.GeneratedMessage {
- static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'GoogleAuthenticatorImport.OtpParameters',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'KeePassOTP'),
- createEmptyInstance: create)
- ..a<$core.List<$core.int>>(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'secret',
- $pb.PbFieldType.OY)
- ..aOS(
- 2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'name')
- ..aOS(
- 3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'issuer')
- ..e<GoogleAuthenticatorImport_Algorithm>(
- 4,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'algorithm',
- $pb.PbFieldType.OE,
- defaultOrMaker:
- GoogleAuthenticatorImport_Algorithm.ALGORITHM_UNSPECIFIED,
- valueOf: GoogleAuthenticatorImport_Algorithm.valueOf,
- enumValues: GoogleAuthenticatorImport_Algorithm.values)
- ..e<GoogleAuthenticatorImport_DigitCount>(
- 5,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'digits',
- $pb.PbFieldType.OE,
- defaultOrMaker:
- GoogleAuthenticatorImport_DigitCount.DIGIT_COUNT_UNSPECIFIED,
- valueOf: GoogleAuthenticatorImport_DigitCount.valueOf,
- enumValues: GoogleAuthenticatorImport_DigitCount.values)
- ..e<GoogleAuthenticatorImport_OtpType>(
- 6,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'type',
- $pb.PbFieldType.OE,
- defaultOrMaker: GoogleAuthenticatorImport_OtpType.OTP_TYPE_UNSPECIFIED,
- valueOf: GoogleAuthenticatorImport_OtpType.valueOf,
- enumValues: GoogleAuthenticatorImport_OtpType.values)
- ..aInt64(
- 7,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'counter')
- ..hasRequiredFields = false;
- GoogleAuthenticatorImport_OtpParameters._() : super();
- factory GoogleAuthenticatorImport_OtpParameters({
- $core.List<$core.int>? secret,
- $core.String? name,
- $core.String? issuer,
- GoogleAuthenticatorImport_Algorithm? algorithm,
- GoogleAuthenticatorImport_DigitCount? digits,
- GoogleAuthenticatorImport_OtpType? type,
- $fixnum.Int64? counter,
- }) {
- final _result = create();
- if (secret != null) {
- _result.secret = secret;
- }
- if (name != null) {
- _result.name = name;
- }
- if (issuer != null) {
- _result.issuer = issuer;
- }
- if (algorithm != null) {
- _result.algorithm = algorithm;
- }
- if (digits != null) {
- _result.digits = digits;
- }
- if (type != null) {
- _result.type = type;
- }
- if (counter != null) {
- _result.counter = counter;
- }
- return _result;
- }
- factory GoogleAuthenticatorImport_OtpParameters.fromBuffer(
- $core.List<$core.int> i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
- create()..mergeFromBuffer(i, r);
- factory GoogleAuthenticatorImport_OtpParameters.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')
- GoogleAuthenticatorImport_OtpParameters clone() =>
- GoogleAuthenticatorImport_OtpParameters()..mergeFromMessage(this);
- @$core.Deprecated('Using this can add significant overhead to your binary. '
- 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
- 'Will be removed in next major version')
- GoogleAuthenticatorImport_OtpParameters copyWith(
- void Function(GoogleAuthenticatorImport_OtpParameters) updates) =>
- super.copyWith((message) =>
- updates(message as GoogleAuthenticatorImport_OtpParameters))
- as GoogleAuthenticatorImport_OtpParameters; // ignore: deprecated_member_use
- $pb.BuilderInfo get info_ => _i;
- @$core.pragma('dart2js:noInline')
- static GoogleAuthenticatorImport_OtpParameters create() =>
- GoogleAuthenticatorImport_OtpParameters._();
- GoogleAuthenticatorImport_OtpParameters createEmptyInstance() => create();
- static $pb.PbList<GoogleAuthenticatorImport_OtpParameters> createRepeated() =>
- $pb.PbList<GoogleAuthenticatorImport_OtpParameters>();
- @$core.pragma('dart2js:noInline')
- static GoogleAuthenticatorImport_OtpParameters getDefault() =>
- _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<
- GoogleAuthenticatorImport_OtpParameters>(create);
- static GoogleAuthenticatorImport_OtpParameters? _defaultInstance;
- @$pb.TagNumber(1)
- $core.List<$core.int> get secret => $_getN(0);
- @$pb.TagNumber(1)
- set secret($core.List<$core.int> v) {
- $_setBytes(0, v);
- }
- @$pb.TagNumber(1)
- $core.bool hasSecret() => $_has(0);
- @$pb.TagNumber(1)
- void clearSecret() => clearField(1);
- @$pb.TagNumber(2)
- $core.String get name => $_getSZ(1);
- @$pb.TagNumber(2)
- set name($core.String v) {
- $_setString(1, v);
- }
- @$pb.TagNumber(2)
- $core.bool hasName() => $_has(1);
- @$pb.TagNumber(2)
- void clearName() => clearField(2);
- @$pb.TagNumber(3)
- $core.String get issuer => $_getSZ(2);
- @$pb.TagNumber(3)
- set issuer($core.String v) {
- $_setString(2, v);
- }
- @$pb.TagNumber(3)
- $core.bool hasIssuer() => $_has(2);
- @$pb.TagNumber(3)
- void clearIssuer() => clearField(3);
- @$pb.TagNumber(4)
- GoogleAuthenticatorImport_Algorithm get algorithm => $_getN(3);
- @$pb.TagNumber(4)
- set algorithm(GoogleAuthenticatorImport_Algorithm v) {
- setField(4, v);
- }
- @$pb.TagNumber(4)
- $core.bool hasAlgorithm() => $_has(3);
- @$pb.TagNumber(4)
- void clearAlgorithm() => clearField(4);
- @$pb.TagNumber(5)
- GoogleAuthenticatorImport_DigitCount get digits => $_getN(4);
- @$pb.TagNumber(5)
- set digits(GoogleAuthenticatorImport_DigitCount v) {
- setField(5, v);
- }
- @$pb.TagNumber(5)
- $core.bool hasDigits() => $_has(4);
- @$pb.TagNumber(5)
- void clearDigits() => clearField(5);
- @$pb.TagNumber(6)
- GoogleAuthenticatorImport_OtpType get type => $_getN(5);
- @$pb.TagNumber(6)
- set type(GoogleAuthenticatorImport_OtpType v) {
- setField(6, v);
- }
- @$pb.TagNumber(6)
- $core.bool hasType() => $_has(5);
- @$pb.TagNumber(6)
- void clearType() => clearField(6);
- @$pb.TagNumber(7)
- $fixnum.Int64 get counter => $_getI64(6);
- @$pb.TagNumber(7)
- set counter($fixnum.Int64 v) {
- $_setInt64(6, v);
- }
- @$pb.TagNumber(7)
- $core.bool hasCounter() => $_has(6);
- @$pb.TagNumber(7)
- void clearCounter() => clearField(7);
- }
- class GoogleAuthenticatorImport extends $pb.GeneratedMessage {
- static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'GoogleAuthenticatorImport',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'KeePassOTP'),
- createEmptyInstance: create)
- ..pc<GoogleAuthenticatorImport_OtpParameters>(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'otpParameters',
- $pb.PbFieldType.PM,
- subBuilder: GoogleAuthenticatorImport_OtpParameters.create)
- ..a<$core.int>(
- 2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'version',
- $pb.PbFieldType.O3)
- ..a<$core.int>(
- 3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'batchSize',
- $pb.PbFieldType.O3)
- ..a<$core.int>(
- 4,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'batchIndex',
- $pb.PbFieldType.O3)
- ..a<$core.int>(
- 5,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'batchId',
- $pb.PbFieldType.O3)
- ..hasRequiredFields = false;
- GoogleAuthenticatorImport._() : super();
- factory GoogleAuthenticatorImport({
- $core.Iterable<GoogleAuthenticatorImport_OtpParameters>? otpParameters,
- $core.int? version,
- $core.int? batchSize,
- $core.int? batchIndex,
- $core.int? batchId,
- }) {
- final _result = create();
- if (otpParameters != null) {
- _result.otpParameters.addAll(otpParameters);
- }
- if (version != null) {
- _result.version = version;
- }
- if (batchSize != null) {
- _result.batchSize = batchSize;
- }
- if (batchIndex != null) {
- _result.batchIndex = batchIndex;
- }
- if (batchId != null) {
- _result.batchId = batchId;
- }
- return _result;
- }
- factory GoogleAuthenticatorImport.fromBuffer($core.List<$core.int> i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
- create()..mergeFromBuffer(i, r);
- factory GoogleAuthenticatorImport.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')
- GoogleAuthenticatorImport clone() =>
- GoogleAuthenticatorImport()..mergeFromMessage(this);
- @$core.Deprecated('Using this can add significant overhead to your binary. '
- 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
- 'Will be removed in next major version')
- GoogleAuthenticatorImport copyWith(
- void Function(GoogleAuthenticatorImport) updates) =>
- super.copyWith((message) => updates(message as GoogleAuthenticatorImport))
- as GoogleAuthenticatorImport; // ignore: deprecated_member_use
- $pb.BuilderInfo get info_ => _i;
- @$core.pragma('dart2js:noInline')
- static GoogleAuthenticatorImport create() => GoogleAuthenticatorImport._();
- GoogleAuthenticatorImport createEmptyInstance() => create();
- static $pb.PbList<GoogleAuthenticatorImport> createRepeated() =>
- $pb.PbList<GoogleAuthenticatorImport>();
- @$core.pragma('dart2js:noInline')
- static GoogleAuthenticatorImport getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor<GoogleAuthenticatorImport>(create);
- static GoogleAuthenticatorImport? _defaultInstance;
- @$pb.TagNumber(1)
- $core.List<GoogleAuthenticatorImport_OtpParameters> get otpParameters =>
- $_getList(0);
- @$pb.TagNumber(2)
- $core.int get version => $_getIZ(1);
- @$pb.TagNumber(2)
- set version($core.int v) {
- $_setSignedInt32(1, v);
- }
- @$pb.TagNumber(2)
- $core.bool hasVersion() => $_has(1);
- @$pb.TagNumber(2)
- void clearVersion() => clearField(2);
- @$pb.TagNumber(3)
- $core.int get batchSize => $_getIZ(2);
- @$pb.TagNumber(3)
- set batchSize($core.int v) {
- $_setSignedInt32(2, v);
- }
- @$pb.TagNumber(3)
- $core.bool hasBatchSize() => $_has(2);
- @$pb.TagNumber(3)
- void clearBatchSize() => clearField(3);
- @$pb.TagNumber(4)
- $core.int get batchIndex => $_getIZ(3);
- @$pb.TagNumber(4)
- set batchIndex($core.int v) {
- $_setSignedInt32(3, v);
- }
- @$pb.TagNumber(4)
- $core.bool hasBatchIndex() => $_has(3);
- @$pb.TagNumber(4)
- void clearBatchIndex() => clearField(4);
- @$pb.TagNumber(5)
- $core.int get batchId => $_getIZ(4);
- @$pb.TagNumber(5)
- set batchId($core.int v) {
- $_setSignedInt32(4, v);
- }
- @$pb.TagNumber(5)
- $core.bool hasBatchId() => $_has(4);
- @$pb.TagNumber(5)
- void clearBatchId() => clearField(5);
- }
|