mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-24 17:31:06 +08:00

This is serializing it into bytes via protobuf. The idea is to avoid the expensive parsing of the markdown multiple times, and instead just cache the result.
96 lines
3.0 KiB
Dart
96 lines
3.0 KiB
Dart
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
///
|
|
// Generated code. Do not modify.
|
|
// source: markdown.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,deprecated_member_use_from_same_package
|
|
|
|
import 'dart:convert' as $convert;
|
|
import 'dart:core' as $core;
|
|
import 'dart:typed_data' as $typed_data;
|
|
|
|
@$core.Deprecated('Use nodeListDescriptor instead')
|
|
const NodeList$json = const {
|
|
'1': 'NodeList',
|
|
'2': const [
|
|
const {
|
|
'1': 'node',
|
|
'3': 1,
|
|
'4': 3,
|
|
'5': 11,
|
|
'6': '.gitjournal.Node',
|
|
'10': 'node'
|
|
},
|
|
],
|
|
};
|
|
|
|
/// Descriptor for `NodeList`. Decode as a `google.protobuf.DescriptorProto`.
|
|
final $typed_data.Uint8List nodeListDescriptor = $convert.base64Decode(
|
|
'CghOb2RlTGlzdBIkCgRub2RlGAEgAygLMhAuZ2l0am91cm5hbC5Ob2RlUgRub2Rl');
|
|
@$core.Deprecated('Use nodeDescriptor instead')
|
|
const Node$json = const {
|
|
'1': 'Node',
|
|
'2': const [
|
|
const {
|
|
'1': 'element',
|
|
'3': 1,
|
|
'4': 1,
|
|
'5': 11,
|
|
'6': '.gitjournal.Element',
|
|
'9': 0,
|
|
'10': 'element'
|
|
},
|
|
const {'1': 'text', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'text'},
|
|
],
|
|
'8': const [
|
|
const {'1': 'value'},
|
|
],
|
|
};
|
|
|
|
/// Descriptor for `Node`. Decode as a `google.protobuf.DescriptorProto`.
|
|
final $typed_data.Uint8List nodeDescriptor = $convert.base64Decode(
|
|
'CgROb2RlEi8KB2VsZW1lbnQYASABKAsyEy5naXRqb3VybmFsLkVsZW1lbnRIAFIHZWxlbWVudBIUCgR0ZXh0GAIgASgJSABSBHRleHRCBwoFdmFsdWU=');
|
|
@$core.Deprecated('Use elementDescriptor instead')
|
|
const Element$json = const {
|
|
'1': 'Element',
|
|
'2': const [
|
|
const {'1': 'tag', '3': 1, '4': 1, '5': 9, '10': 'tag'},
|
|
const {
|
|
'1': 'attributes',
|
|
'3': 2,
|
|
'4': 3,
|
|
'5': 11,
|
|
'6': '.gitjournal.Element.AttributesEntry',
|
|
'10': 'attributes'
|
|
},
|
|
const {
|
|
'1': 'children',
|
|
'3': 3,
|
|
'4': 3,
|
|
'5': 11,
|
|
'6': '.gitjournal.Node',
|
|
'10': 'children'
|
|
},
|
|
const {'1': 'generatedId', '3': 4, '4': 1, '5': 9, '10': 'generatedId'},
|
|
],
|
|
'3': const [Element_AttributesEntry$json],
|
|
};
|
|
|
|
@$core.Deprecated('Use elementDescriptor instead')
|
|
const Element_AttributesEntry$json = const {
|
|
'1': 'AttributesEntry',
|
|
'2': const [
|
|
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
|
const {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'},
|
|
],
|
|
'7': const {'7': true},
|
|
};
|
|
|
|
/// Descriptor for `Element`. Decode as a `google.protobuf.DescriptorProto`.
|
|
final $typed_data.Uint8List elementDescriptor = $convert.base64Decode(
|
|
'CgdFbGVtZW50EhAKA3RhZxgBIAEoCVIDdGFnEkMKCmF0dHJpYnV0ZXMYAiADKAsyIy5naXRqb3VybmFsLkVsZW1lbnQuQXR0cmlidXRlc0VudHJ5UgphdHRyaWJ1dGVzEiwKCGNoaWxkcmVuGAMgAygLMhAuZ2l0am91cm5hbC5Ob2RlUghjaGlsZHJlbhIgCgtnZW5lcmF0ZWRJZBgEIAEoCVILZ2VuZXJhdGVkSWQaPQoPQXR0cmlidXRlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE=');
|