GoogleAuthenticatorImport.pb.dart 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. ///
  2. // Generated code. Do not modify.
  3. // source: GoogleAuthenticatorImport.proto
  4. //
  5. // @dart = 2.12
  6. // 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
  7. import 'dart:core' as $core;
  8. import 'package:fixnum/fixnum.dart' as $fixnum;
  9. import 'package:protobuf/protobuf.dart' as $pb;
  10. import 'GoogleAuthenticatorImport.pbenum.dart';
  11. export 'GoogleAuthenticatorImport.pbenum.dart';
  12. class GoogleAuthenticatorImport_OtpParameters extends $pb.GeneratedMessage {
  13. static final $pb.BuilderInfo _i = $pb.BuilderInfo(
  14. const $core.bool.fromEnvironment('protobuf.omit_message_names')
  15. ? ''
  16. : 'GoogleAuthenticatorImport.OtpParameters',
  17. package: const $pb.PackageName(
  18. const $core.bool.fromEnvironment('protobuf.omit_message_names')
  19. ? ''
  20. : 'KeePassOTP'),
  21. createEmptyInstance: create)
  22. ..a<$core.List<$core.int>>(
  23. 1,
  24. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  25. ? ''
  26. : 'secret',
  27. $pb.PbFieldType.OY)
  28. ..aOS(
  29. 2,
  30. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  31. ? ''
  32. : 'name')
  33. ..aOS(
  34. 3,
  35. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  36. ? ''
  37. : 'issuer')
  38. ..e<GoogleAuthenticatorImport_Algorithm>(
  39. 4,
  40. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  41. ? ''
  42. : 'algorithm',
  43. $pb.PbFieldType.OE,
  44. defaultOrMaker:
  45. GoogleAuthenticatorImport_Algorithm.ALGORITHM_UNSPECIFIED,
  46. valueOf: GoogleAuthenticatorImport_Algorithm.valueOf,
  47. enumValues: GoogleAuthenticatorImport_Algorithm.values)
  48. ..e<GoogleAuthenticatorImport_DigitCount>(
  49. 5,
  50. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  51. ? ''
  52. : 'digits',
  53. $pb.PbFieldType.OE,
  54. defaultOrMaker:
  55. GoogleAuthenticatorImport_DigitCount.DIGIT_COUNT_UNSPECIFIED,
  56. valueOf: GoogleAuthenticatorImport_DigitCount.valueOf,
  57. enumValues: GoogleAuthenticatorImport_DigitCount.values)
  58. ..e<GoogleAuthenticatorImport_OtpType>(
  59. 6,
  60. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  61. ? ''
  62. : 'type',
  63. $pb.PbFieldType.OE,
  64. defaultOrMaker: GoogleAuthenticatorImport_OtpType.OTP_TYPE_UNSPECIFIED,
  65. valueOf: GoogleAuthenticatorImport_OtpType.valueOf,
  66. enumValues: GoogleAuthenticatorImport_OtpType.values)
  67. ..aInt64(
  68. 7,
  69. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  70. ? ''
  71. : 'counter')
  72. ..hasRequiredFields = false;
  73. GoogleAuthenticatorImport_OtpParameters._() : super();
  74. factory GoogleAuthenticatorImport_OtpParameters({
  75. $core.List<$core.int>? secret,
  76. $core.String? name,
  77. $core.String? issuer,
  78. GoogleAuthenticatorImport_Algorithm? algorithm,
  79. GoogleAuthenticatorImport_DigitCount? digits,
  80. GoogleAuthenticatorImport_OtpType? type,
  81. $fixnum.Int64? counter,
  82. }) {
  83. final _result = create();
  84. if (secret != null) {
  85. _result.secret = secret;
  86. }
  87. if (name != null) {
  88. _result.name = name;
  89. }
  90. if (issuer != null) {
  91. _result.issuer = issuer;
  92. }
  93. if (algorithm != null) {
  94. _result.algorithm = algorithm;
  95. }
  96. if (digits != null) {
  97. _result.digits = digits;
  98. }
  99. if (type != null) {
  100. _result.type = type;
  101. }
  102. if (counter != null) {
  103. _result.counter = counter;
  104. }
  105. return _result;
  106. }
  107. factory GoogleAuthenticatorImport_OtpParameters.fromBuffer(
  108. $core.List<$core.int> i,
  109. [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
  110. create()..mergeFromBuffer(i, r);
  111. factory GoogleAuthenticatorImport_OtpParameters.fromJson($core.String i,
  112. [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
  113. create()..mergeFromJson(i, r);
  114. @$core.Deprecated('Using this can add significant overhead to your binary. '
  115. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  116. 'Will be removed in next major version')
  117. GoogleAuthenticatorImport_OtpParameters clone() =>
  118. GoogleAuthenticatorImport_OtpParameters()..mergeFromMessage(this);
  119. @$core.Deprecated('Using this can add significant overhead to your binary. '
  120. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  121. 'Will be removed in next major version')
  122. GoogleAuthenticatorImport_OtpParameters copyWith(
  123. void Function(GoogleAuthenticatorImport_OtpParameters) updates) =>
  124. super.copyWith((message) =>
  125. updates(message as GoogleAuthenticatorImport_OtpParameters))
  126. as GoogleAuthenticatorImport_OtpParameters; // ignore: deprecated_member_use
  127. $pb.BuilderInfo get info_ => _i;
  128. @$core.pragma('dart2js:noInline')
  129. static GoogleAuthenticatorImport_OtpParameters create() =>
  130. GoogleAuthenticatorImport_OtpParameters._();
  131. GoogleAuthenticatorImport_OtpParameters createEmptyInstance() => create();
  132. static $pb.PbList<GoogleAuthenticatorImport_OtpParameters> createRepeated() =>
  133. $pb.PbList<GoogleAuthenticatorImport_OtpParameters>();
  134. @$core.pragma('dart2js:noInline')
  135. static GoogleAuthenticatorImport_OtpParameters getDefault() =>
  136. _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<
  137. GoogleAuthenticatorImport_OtpParameters>(create);
  138. static GoogleAuthenticatorImport_OtpParameters? _defaultInstance;
  139. @$pb.TagNumber(1)
  140. $core.List<$core.int> get secret => $_getN(0);
  141. @$pb.TagNumber(1)
  142. set secret($core.List<$core.int> v) {
  143. $_setBytes(0, v);
  144. }
  145. @$pb.TagNumber(1)
  146. $core.bool hasSecret() => $_has(0);
  147. @$pb.TagNumber(1)
  148. void clearSecret() => clearField(1);
  149. @$pb.TagNumber(2)
  150. $core.String get name => $_getSZ(1);
  151. @$pb.TagNumber(2)
  152. set name($core.String v) {
  153. $_setString(1, v);
  154. }
  155. @$pb.TagNumber(2)
  156. $core.bool hasName() => $_has(1);
  157. @$pb.TagNumber(2)
  158. void clearName() => clearField(2);
  159. @$pb.TagNumber(3)
  160. $core.String get issuer => $_getSZ(2);
  161. @$pb.TagNumber(3)
  162. set issuer($core.String v) {
  163. $_setString(2, v);
  164. }
  165. @$pb.TagNumber(3)
  166. $core.bool hasIssuer() => $_has(2);
  167. @$pb.TagNumber(3)
  168. void clearIssuer() => clearField(3);
  169. @$pb.TagNumber(4)
  170. GoogleAuthenticatorImport_Algorithm get algorithm => $_getN(3);
  171. @$pb.TagNumber(4)
  172. set algorithm(GoogleAuthenticatorImport_Algorithm v) {
  173. setField(4, v);
  174. }
  175. @$pb.TagNumber(4)
  176. $core.bool hasAlgorithm() => $_has(3);
  177. @$pb.TagNumber(4)
  178. void clearAlgorithm() => clearField(4);
  179. @$pb.TagNumber(5)
  180. GoogleAuthenticatorImport_DigitCount get digits => $_getN(4);
  181. @$pb.TagNumber(5)
  182. set digits(GoogleAuthenticatorImport_DigitCount v) {
  183. setField(5, v);
  184. }
  185. @$pb.TagNumber(5)
  186. $core.bool hasDigits() => $_has(4);
  187. @$pb.TagNumber(5)
  188. void clearDigits() => clearField(5);
  189. @$pb.TagNumber(6)
  190. GoogleAuthenticatorImport_OtpType get type => $_getN(5);
  191. @$pb.TagNumber(6)
  192. set type(GoogleAuthenticatorImport_OtpType v) {
  193. setField(6, v);
  194. }
  195. @$pb.TagNumber(6)
  196. $core.bool hasType() => $_has(5);
  197. @$pb.TagNumber(6)
  198. void clearType() => clearField(6);
  199. @$pb.TagNumber(7)
  200. $fixnum.Int64 get counter => $_getI64(6);
  201. @$pb.TagNumber(7)
  202. set counter($fixnum.Int64 v) {
  203. $_setInt64(6, v);
  204. }
  205. @$pb.TagNumber(7)
  206. $core.bool hasCounter() => $_has(6);
  207. @$pb.TagNumber(7)
  208. void clearCounter() => clearField(7);
  209. }
  210. class GoogleAuthenticatorImport extends $pb.GeneratedMessage {
  211. static final $pb.BuilderInfo _i = $pb.BuilderInfo(
  212. const $core.bool.fromEnvironment('protobuf.omit_message_names')
  213. ? ''
  214. : 'GoogleAuthenticatorImport',
  215. package: const $pb.PackageName(
  216. const $core.bool.fromEnvironment('protobuf.omit_message_names')
  217. ? ''
  218. : 'KeePassOTP'),
  219. createEmptyInstance: create)
  220. ..pc<GoogleAuthenticatorImport_OtpParameters>(
  221. 1,
  222. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  223. ? ''
  224. : 'otpParameters',
  225. $pb.PbFieldType.PM,
  226. subBuilder: GoogleAuthenticatorImport_OtpParameters.create)
  227. ..a<$core.int>(
  228. 2,
  229. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  230. ? ''
  231. : 'version',
  232. $pb.PbFieldType.O3)
  233. ..a<$core.int>(
  234. 3,
  235. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  236. ? ''
  237. : 'batchSize',
  238. $pb.PbFieldType.O3)
  239. ..a<$core.int>(
  240. 4,
  241. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  242. ? ''
  243. : 'batchIndex',
  244. $pb.PbFieldType.O3)
  245. ..a<$core.int>(
  246. 5,
  247. const $core.bool.fromEnvironment('protobuf.omit_field_names')
  248. ? ''
  249. : 'batchId',
  250. $pb.PbFieldType.O3)
  251. ..hasRequiredFields = false;
  252. GoogleAuthenticatorImport._() : super();
  253. factory GoogleAuthenticatorImport({
  254. $core.Iterable<GoogleAuthenticatorImport_OtpParameters>? otpParameters,
  255. $core.int? version,
  256. $core.int? batchSize,
  257. $core.int? batchIndex,
  258. $core.int? batchId,
  259. }) {
  260. final _result = create();
  261. if (otpParameters != null) {
  262. _result.otpParameters.addAll(otpParameters);
  263. }
  264. if (version != null) {
  265. _result.version = version;
  266. }
  267. if (batchSize != null) {
  268. _result.batchSize = batchSize;
  269. }
  270. if (batchIndex != null) {
  271. _result.batchIndex = batchIndex;
  272. }
  273. if (batchId != null) {
  274. _result.batchId = batchId;
  275. }
  276. return _result;
  277. }
  278. factory GoogleAuthenticatorImport.fromBuffer($core.List<$core.int> i,
  279. [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
  280. create()..mergeFromBuffer(i, r);
  281. factory GoogleAuthenticatorImport.fromJson($core.String i,
  282. [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
  283. create()..mergeFromJson(i, r);
  284. @$core.Deprecated('Using this can add significant overhead to your binary. '
  285. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  286. 'Will be removed in next major version')
  287. GoogleAuthenticatorImport clone() =>
  288. GoogleAuthenticatorImport()..mergeFromMessage(this);
  289. @$core.Deprecated('Using this can add significant overhead to your binary. '
  290. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  291. 'Will be removed in next major version')
  292. GoogleAuthenticatorImport copyWith(
  293. void Function(GoogleAuthenticatorImport) updates) =>
  294. super.copyWith((message) => updates(message as GoogleAuthenticatorImport))
  295. as GoogleAuthenticatorImport; // ignore: deprecated_member_use
  296. $pb.BuilderInfo get info_ => _i;
  297. @$core.pragma('dart2js:noInline')
  298. static GoogleAuthenticatorImport create() => GoogleAuthenticatorImport._();
  299. GoogleAuthenticatorImport createEmptyInstance() => create();
  300. static $pb.PbList<GoogleAuthenticatorImport> createRepeated() =>
  301. $pb.PbList<GoogleAuthenticatorImport>();
  302. @$core.pragma('dart2js:noInline')
  303. static GoogleAuthenticatorImport getDefault() => _defaultInstance ??=
  304. $pb.GeneratedMessage.$_defaultFor<GoogleAuthenticatorImport>(create);
  305. static GoogleAuthenticatorImport? _defaultInstance;
  306. @$pb.TagNumber(1)
  307. $core.List<GoogleAuthenticatorImport_OtpParameters> get otpParameters =>
  308. $_getList(0);
  309. @$pb.TagNumber(2)
  310. $core.int get version => $_getIZ(1);
  311. @$pb.TagNumber(2)
  312. set version($core.int v) {
  313. $_setSignedInt32(1, v);
  314. }
  315. @$pb.TagNumber(2)
  316. $core.bool hasVersion() => $_has(1);
  317. @$pb.TagNumber(2)
  318. void clearVersion() => clearField(2);
  319. @$pb.TagNumber(3)
  320. $core.int get batchSize => $_getIZ(2);
  321. @$pb.TagNumber(3)
  322. set batchSize($core.int v) {
  323. $_setSignedInt32(2, v);
  324. }
  325. @$pb.TagNumber(3)
  326. $core.bool hasBatchSize() => $_has(2);
  327. @$pb.TagNumber(3)
  328. void clearBatchSize() => clearField(3);
  329. @$pb.TagNumber(4)
  330. $core.int get batchIndex => $_getIZ(3);
  331. @$pb.TagNumber(4)
  332. set batchIndex($core.int v) {
  333. $_setSignedInt32(3, v);
  334. }
  335. @$pb.TagNumber(4)
  336. $core.bool hasBatchIndex() => $_has(3);
  337. @$pb.TagNumber(4)
  338. void clearBatchIndex() => clearField(4);
  339. @$pb.TagNumber(5)
  340. $core.int get batchId => $_getIZ(4);
  341. @$pb.TagNumber(5)
  342. set batchId($core.int v) {
  343. $_setSignedInt32(4, v);
  344. }
  345. @$pb.TagNumber(5)
  346. $core.bool hasBatchId() => $_has(4);
  347. @$pb.TagNumber(5)
  348. void clearBatchId() => clearField(5);
  349. }