mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-05-17 12:45:58 +08:00
feat: Add support for YYYY-MM-DD in the YAML frontmatter
Fixes #972 This required regenerating the protobufs generated files, which seem to have tons of extra changes, and needed some manual changes to get them to compile. Overall, the entire protobuf idea wasn't the best in retrospect, and in the next version of GitJournal, I'll be going with a simple relational database instead.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -1,51 +1,27 @@
|
||||
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: analytics.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
|
||||
|
||||
// ignore_for_file: UNDEFINED_SHOWN_NAME
|
||||
// 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 Platform extends $pb.ProtobufEnum {
|
||||
static const Platform android = Platform._(
|
||||
0,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'android');
|
||||
static const Platform ios = Platform._(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'ios');
|
||||
static const Platform linux = Platform._(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'linux');
|
||||
static const Platform macos = Platform._(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'macos');
|
||||
static const Platform windows = Platform._(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'windows');
|
||||
static const Platform web = Platform._(
|
||||
5,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'web');
|
||||
static const Platform android =
|
||||
Platform._(0, _omitEnumNames ? '' : 'android');
|
||||
static const Platform ios = Platform._(1, _omitEnumNames ? '' : 'ios');
|
||||
static const Platform linux = Platform._(2, _omitEnumNames ? '' : 'linux');
|
||||
static const Platform macos = Platform._(3, _omitEnumNames ? '' : 'macos');
|
||||
static const Platform windows =
|
||||
Platform._(4, _omitEnumNames ? '' : 'windows');
|
||||
static const Platform web = Platform._(5, _omitEnumNames ? '' : 'web');
|
||||
|
||||
static const $core.List<Platform> values = <Platform>[
|
||||
android,
|
||||
@ -64,46 +40,22 @@ class Platform extends $pb.ProtobufEnum {
|
||||
}
|
||||
|
||||
class BrowserName extends $pb.ProtobufEnum {
|
||||
static const BrowserName unknown = BrowserName._(
|
||||
0,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'unknown');
|
||||
static const BrowserName firefox = BrowserName._(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'firefox');
|
||||
static const BrowserName samsungInternet = BrowserName._(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'samsungInternet');
|
||||
static const BrowserName opera = BrowserName._(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'opera');
|
||||
static const BrowserName msie = BrowserName._(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'msie');
|
||||
static const BrowserName edge = BrowserName._(
|
||||
5,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'edge');
|
||||
static const BrowserName chrome = BrowserName._(
|
||||
6,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'chrome');
|
||||
static const BrowserName safari = BrowserName._(
|
||||
7,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'safari');
|
||||
static const BrowserName unknown =
|
||||
BrowserName._(0, _omitEnumNames ? '' : 'unknown');
|
||||
static const BrowserName firefox =
|
||||
BrowserName._(1, _omitEnumNames ? '' : 'firefox');
|
||||
static const BrowserName samsungInternet =
|
||||
BrowserName._(2, _omitEnumNames ? '' : 'samsungInternet');
|
||||
static const BrowserName opera =
|
||||
BrowserName._(3, _omitEnumNames ? '' : 'opera');
|
||||
static const BrowserName msie =
|
||||
BrowserName._(4, _omitEnumNames ? '' : 'msie');
|
||||
static const BrowserName edge =
|
||||
BrowserName._(5, _omitEnumNames ? '' : 'edge');
|
||||
static const BrowserName chrome =
|
||||
BrowserName._(6, _omitEnumNames ? '' : 'chrome');
|
||||
static const BrowserName safari =
|
||||
BrowserName._(7, _omitEnumNames ? '' : 'safari');
|
||||
|
||||
static const $core.List<BrowserName> values = <BrowserName>[
|
||||
unknown,
|
||||
@ -122,3 +74,5 @@ class BrowserName extends $pb.ProtobufEnum {
|
||||
|
||||
const BrowserName._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
@ -1,66 +1,72 @@
|
||||
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: analytics.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
|
||||
|
||||
// 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:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use platformDescriptor instead')
|
||||
const Platform$json = const {
|
||||
const Platform$json = {
|
||||
'1': 'Platform',
|
||||
'2': const [
|
||||
const {'1': 'android', '2': 0},
|
||||
const {'1': 'ios', '2': 1},
|
||||
const {'1': 'linux', '2': 2},
|
||||
const {'1': 'macos', '2': 3},
|
||||
const {'1': 'windows', '2': 4},
|
||||
const {'1': 'web', '2': 5},
|
||||
'2': [
|
||||
{'1': 'android', '2': 0},
|
||||
{'1': 'ios', '2': 1},
|
||||
{'1': 'linux', '2': 2},
|
||||
{'1': 'macos', '2': 3},
|
||||
{'1': 'windows', '2': 4},
|
||||
{'1': 'web', '2': 5},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Platform`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List platformDescriptor = $convert.base64Decode(
|
||||
'CghQbGF0Zm9ybRILCgdhbmRyb2lkEAASBwoDaW9zEAESCQoFbGludXgQAhIJCgVtYWNvcxADEgsKB3dpbmRvd3MQBBIHCgN3ZWIQBQ==');
|
||||
'CghQbGF0Zm9ybRILCgdhbmRyb2lkEAASBwoDaW9zEAESCQoFbGludXgQAhIJCgVtYWNvcxADEg'
|
||||
'sKB3dpbmRvd3MQBBIHCgN3ZWIQBQ==');
|
||||
|
||||
@$core.Deprecated('Use browserNameDescriptor instead')
|
||||
const BrowserName$json = const {
|
||||
const BrowserName$json = {
|
||||
'1': 'BrowserName',
|
||||
'2': const [
|
||||
const {'1': 'unknown', '2': 0},
|
||||
const {'1': 'firefox', '2': 1},
|
||||
const {'1': 'samsungInternet', '2': 2},
|
||||
const {'1': 'opera', '2': 3},
|
||||
const {'1': 'msie', '2': 4},
|
||||
const {'1': 'edge', '2': 5},
|
||||
const {'1': 'chrome', '2': 6},
|
||||
const {'1': 'safari', '2': 7},
|
||||
'2': [
|
||||
{'1': 'unknown', '2': 0},
|
||||
{'1': 'firefox', '2': 1},
|
||||
{'1': 'samsungInternet', '2': 2},
|
||||
{'1': 'opera', '2': 3},
|
||||
{'1': 'msie', '2': 4},
|
||||
{'1': 'edge', '2': 5},
|
||||
{'1': 'chrome', '2': 6},
|
||||
{'1': 'safari', '2': 7},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BrowserName`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List browserNameDescriptor = $convert.base64Decode(
|
||||
'CgtCcm93c2VyTmFtZRILCgd1bmtub3duEAASCwoHZmlyZWZveBABEhMKD3NhbXN1bmdJbnRlcm5ldBACEgkKBW9wZXJhEAMSCAoEbXNpZRAEEggKBGVkZ2UQBRIKCgZjaHJvbWUQBhIKCgZzYWZhcmkQBw==');
|
||||
'CgtCcm93c2VyTmFtZRILCgd1bmtub3duEAASCwoHZmlyZWZveBABEhMKD3NhbXN1bmdJbnRlcm'
|
||||
'5ldBACEgkKBW9wZXJhEAMSCAoEbXNpZRAEEggKBGVkZ2UQBRIKCgZjaHJvbWUQBhIKCgZzYWZh'
|
||||
'cmkQBw==');
|
||||
|
||||
@$core.Deprecated('Use analyticsReplyDescriptor instead')
|
||||
const AnalyticsReply$json = const {
|
||||
const AnalyticsReply$json = {
|
||||
'1': 'AnalyticsReply',
|
||||
};
|
||||
|
||||
/// Descriptor for `AnalyticsReply`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List analyticsReplyDescriptor =
|
||||
$convert.base64Decode('Cg5BbmFseXRpY3NSZXBseQ==');
|
||||
|
||||
@$core.Deprecated('Use analyticsMessageDescriptor instead')
|
||||
const AnalyticsMessage$json = const {
|
||||
const AnalyticsMessage$json = {
|
||||
'1': 'AnalyticsMessage',
|
||||
'2': const [
|
||||
const {'1': 'appId', '3': 1, '4': 1, '5': 9, '10': 'appId'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'appId', '3': 1, '4': 1, '5': 9, '10': 'appId'},
|
||||
{
|
||||
'1': 'events',
|
||||
'3': 2,
|
||||
'4': 3,
|
||||
@ -68,7 +74,7 @@ const AnalyticsMessage$json = const {
|
||||
'6': '.gitjournal.Event',
|
||||
'10': 'events'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'deviceInfo',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
@ -76,7 +82,7 @@ const AnalyticsMessage$json = const {
|
||||
'6': '.gitjournal.DeviceInfo',
|
||||
'10': 'deviceInfo'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'packageInfo',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
@ -89,14 +95,18 @@ const AnalyticsMessage$json = const {
|
||||
|
||||
/// Descriptor for `AnalyticsMessage`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List analyticsMessageDescriptor = $convert.base64Decode(
|
||||
'ChBBbmFseXRpY3NNZXNzYWdlEhQKBWFwcElkGAEgASgJUgVhcHBJZBIpCgZldmVudHMYAiADKAsyES5naXRqb3VybmFsLkV2ZW50UgZldmVudHMSNgoKZGV2aWNlSW5mbxgDIAEoCzIWLmdpdGpvdXJuYWwuRGV2aWNlSW5mb1IKZGV2aWNlSW5mbxI5CgtwYWNrYWdlSW5mbxgEIAEoCzIXLmdpdGpvdXJuYWwuUGFja2FnZUluZm9SC3BhY2thZ2VJbmZv');
|
||||
'ChBBbmFseXRpY3NNZXNzYWdlEhQKBWFwcElkGAEgASgJUgVhcHBJZBIpCgZldmVudHMYAiADKA'
|
||||
'syES5naXRqb3VybmFsLkV2ZW50UgZldmVudHMSNgoKZGV2aWNlSW5mbxgDIAEoCzIWLmdpdGpv'
|
||||
'dXJuYWwuRGV2aWNlSW5mb1IKZGV2aWNlSW5mbxI5CgtwYWNrYWdlSW5mbxgEIAEoCzIXLmdpdG'
|
||||
'pvdXJuYWwuUGFja2FnZUluZm9SC3BhY2thZ2VJbmZv');
|
||||
|
||||
@$core.Deprecated('Use eventDescriptor instead')
|
||||
const Event$json = const {
|
||||
const Event$json = {
|
||||
'1': 'Event',
|
||||
'2': const [
|
||||
const {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
|
||||
const {'1': 'date', '3': 2, '4': 1, '5': 4, '10': 'date'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
|
||||
{'1': 'date', '3': 2, '4': 1, '5': 4, '10': 'date'},
|
||||
{
|
||||
'1': 'params',
|
||||
'3': 3,
|
||||
'4': 3,
|
||||
@ -104,9 +114,9 @@ const Event$json = const {
|
||||
'6': '.gitjournal.Event.ParamsEntry',
|
||||
'10': 'params'
|
||||
},
|
||||
const {'1': 'userId', '3': 4, '4': 1, '5': 9, '10': 'userId'},
|
||||
const {'1': 'pseudoId', '3': 5, '4': 1, '5': 9, '10': 'pseudoId'},
|
||||
const {
|
||||
{'1': 'userId', '3': 4, '4': 1, '5': 9, '10': 'userId'},
|
||||
{'1': 'pseudoId', '3': 5, '4': 1, '5': 9, '10': 'pseudoId'},
|
||||
{
|
||||
'1': 'userProperties',
|
||||
'3': 6,
|
||||
'4': 3,
|
||||
@ -114,39 +124,47 @@ const Event$json = const {
|
||||
'6': '.gitjournal.Event.UserPropertiesEntry',
|
||||
'10': 'userProperties'
|
||||
},
|
||||
const {'1': 'sessionID', '3': 7, '4': 1, '5': 13, '10': 'sessionID'},
|
||||
{'1': 'sessionID', '3': 7, '4': 1, '5': 13, '10': 'sessionID'},
|
||||
],
|
||||
'3': const [Event_ParamsEntry$json, Event_UserPropertiesEntry$json],
|
||||
'3': [Event_ParamsEntry$json, Event_UserPropertiesEntry$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use eventDescriptor instead')
|
||||
const Event_ParamsEntry$json = const {
|
||||
const Event_ParamsEntry$json = {
|
||||
'1': 'ParamsEntry',
|
||||
'2': const [
|
||||
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
const {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'},
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'},
|
||||
],
|
||||
'7': const {'7': true},
|
||||
'7': {'7': true},
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use eventDescriptor instead')
|
||||
const Event_UserPropertiesEntry$json = const {
|
||||
const Event_UserPropertiesEntry$json = {
|
||||
'1': 'UserPropertiesEntry',
|
||||
'2': const [
|
||||
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
const {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'},
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'},
|
||||
],
|
||||
'7': const {'7': true},
|
||||
'7': {'7': true},
|
||||
};
|
||||
|
||||
/// Descriptor for `Event`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List eventDescriptor = $convert.base64Decode(
|
||||
'CgVFdmVudBISCgRuYW1lGAEgASgJUgRuYW1lEhIKBGRhdGUYAiABKARSBGRhdGUSNQoGcGFyYW1zGAMgAygLMh0uZ2l0am91cm5hbC5FdmVudC5QYXJhbXNFbnRyeVIGcGFyYW1zEhYKBnVzZXJJZBgEIAEoCVIGdXNlcklkEhoKCHBzZXVkb0lkGAUgASgJUghwc2V1ZG9JZBJNCg51c2VyUHJvcGVydGllcxgGIAMoCzIlLmdpdGpvdXJuYWwuRXZlbnQuVXNlclByb3BlcnRpZXNFbnRyeVIOdXNlclByb3BlcnRpZXMSHAoJc2Vzc2lvbklEGAcgASgNUglzZXNzaW9uSUQaOQoLUGFyYW1zRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4ARpBChNVc2VyUHJvcGVydGllc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE=');
|
||||
'CgVFdmVudBISCgRuYW1lGAEgASgJUgRuYW1lEhIKBGRhdGUYAiABKARSBGRhdGUSNQoGcGFyYW'
|
||||
'1zGAMgAygLMh0uZ2l0am91cm5hbC5FdmVudC5QYXJhbXNFbnRyeVIGcGFyYW1zEhYKBnVzZXJJ'
|
||||
'ZBgEIAEoCVIGdXNlcklkEhoKCHBzZXVkb0lkGAUgASgJUghwc2V1ZG9JZBJNCg51c2VyUHJvcG'
|
||||
'VydGllcxgGIAMoCzIlLmdpdGpvdXJuYWwuRXZlbnQuVXNlclByb3BlcnRpZXNFbnRyeVIOdXNl'
|
||||
'clByb3BlcnRpZXMSHAoJc2Vzc2lvbklEGAcgASgNUglzZXNzaW9uSUQaOQoLUGFyYW1zRW50cn'
|
||||
'kSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4ARpBChNVc2VyUHJv'
|
||||
'cGVydGllc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOA'
|
||||
'E=');
|
||||
|
||||
@$core.Deprecated('Use deviceInfoDescriptor instead')
|
||||
const DeviceInfo$json = const {
|
||||
const DeviceInfo$json = {
|
||||
'1': 'DeviceInfo',
|
||||
'2': const [
|
||||
const {
|
||||
'2': [
|
||||
{
|
||||
'1': 'platform',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
@ -154,7 +172,7 @@ const DeviceInfo$json = const {
|
||||
'6': '.gitjournal.Platform',
|
||||
'10': 'platform'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'androidDeviceInfo',
|
||||
'3': 11,
|
||||
'4': 1,
|
||||
@ -163,7 +181,7 @@ const DeviceInfo$json = const {
|
||||
'9': 0,
|
||||
'10': 'androidDeviceInfo'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'iosDeviceInfo',
|
||||
'3': 12,
|
||||
'4': 1,
|
||||
@ -172,7 +190,7 @@ const DeviceInfo$json = const {
|
||||
'9': 0,
|
||||
'10': 'iosDeviceInfo'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'linuxDeviceInfo',
|
||||
'3': 13,
|
||||
'4': 1,
|
||||
@ -181,7 +199,7 @@ const DeviceInfo$json = const {
|
||||
'9': 0,
|
||||
'10': 'linuxDeviceInfo'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'macOSDeviceInfo',
|
||||
'3': 14,
|
||||
'4': 1,
|
||||
@ -190,7 +208,7 @@ const DeviceInfo$json = const {
|
||||
'9': 0,
|
||||
'10': 'macOSDeviceInfo'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'windowsDeviceInfo',
|
||||
'3': 15,
|
||||
'4': 1,
|
||||
@ -199,7 +217,7 @@ const DeviceInfo$json = const {
|
||||
'9': 0,
|
||||
'10': 'windowsDeviceInfo'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'webBrowserInfo',
|
||||
'3': 16,
|
||||
'4': 1,
|
||||
@ -209,64 +227,71 @@ const DeviceInfo$json = const {
|
||||
'10': 'webBrowserInfo'
|
||||
},
|
||||
],
|
||||
'8': const [
|
||||
const {'1': 'deviceInfo'},
|
||||
'8': [
|
||||
{'1': 'deviceInfo'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `DeviceInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List deviceInfoDescriptor = $convert.base64Decode(
|
||||
'CgpEZXZpY2VJbmZvEjAKCHBsYXRmb3JtGAEgASgOMhQuZ2l0am91cm5hbC5QbGF0Zm9ybVIIcGxhdGZvcm0STQoRYW5kcm9pZERldmljZUluZm8YCyABKAsyHS5naXRqb3VybmFsLkFuZHJvaWREZXZpY2VJbmZvSABSEWFuZHJvaWREZXZpY2VJbmZvEkEKDWlvc0RldmljZUluZm8YDCABKAsyGS5naXRqb3VybmFsLklvc0RldmljZUluZm9IAFINaW9zRGV2aWNlSW5mbxJHCg9saW51eERldmljZUluZm8YDSABKAsyGy5naXRqb3VybmFsLkxpbnV4RGV2aWNlSW5mb0gAUg9saW51eERldmljZUluZm8SRwoPbWFjT1NEZXZpY2VJbmZvGA4gASgLMhsuZ2l0am91cm5hbC5NYWNPU0RldmljZUluZm9IAFIPbWFjT1NEZXZpY2VJbmZvEk0KEXdpbmRvd3NEZXZpY2VJbmZvGA8gASgLMh0uZ2l0am91cm5hbC5XaW5kb3dzRGV2aWNlSW5mb0gAUhF3aW5kb3dzRGV2aWNlSW5mbxJECg53ZWJCcm93c2VySW5mbxgQIAEoCzIaLmdpdGpvdXJuYWwuV2ViQnJvd3NlckluZm9IAFIOd2ViQnJvd3NlckluZm9CDAoKZGV2aWNlSW5mbw==');
|
||||
'CgpEZXZpY2VJbmZvEjAKCHBsYXRmb3JtGAEgASgOMhQuZ2l0am91cm5hbC5QbGF0Zm9ybVIIcG'
|
||||
'xhdGZvcm0STQoRYW5kcm9pZERldmljZUluZm8YCyABKAsyHS5naXRqb3VybmFsLkFuZHJvaWRE'
|
||||
'ZXZpY2VJbmZvSABSEWFuZHJvaWREZXZpY2VJbmZvEkEKDWlvc0RldmljZUluZm8YDCABKAsyGS'
|
||||
'5naXRqb3VybmFsLklvc0RldmljZUluZm9IAFINaW9zRGV2aWNlSW5mbxJHCg9saW51eERldmlj'
|
||||
'ZUluZm8YDSABKAsyGy5naXRqb3VybmFsLkxpbnV4RGV2aWNlSW5mb0gAUg9saW51eERldmljZU'
|
||||
'luZm8SRwoPbWFjT1NEZXZpY2VJbmZvGA4gASgLMhsuZ2l0am91cm5hbC5NYWNPU0RldmljZUlu'
|
||||
'Zm9IAFIPbWFjT1NEZXZpY2VJbmZvEk0KEXdpbmRvd3NEZXZpY2VJbmZvGA8gASgLMh0uZ2l0am'
|
||||
'91cm5hbC5XaW5kb3dzRGV2aWNlSW5mb0gAUhF3aW5kb3dzRGV2aWNlSW5mbxJECg53ZWJCcm93'
|
||||
'c2VySW5mbxgQIAEoCzIaLmdpdGpvdXJuYWwuV2ViQnJvd3NlckluZm9IAFIOd2ViQnJvd3Nlck'
|
||||
'luZm9CDAoKZGV2aWNlSW5mbw==');
|
||||
|
||||
@$core.Deprecated('Use packageInfoDescriptor instead')
|
||||
const PackageInfo$json = const {
|
||||
const PackageInfo$json = {
|
||||
'1': 'PackageInfo',
|
||||
'2': const [
|
||||
const {'1': 'appName', '3': 1, '4': 1, '5': 9, '10': 'appName'},
|
||||
const {'1': 'packageName', '3': 2, '4': 1, '5': 9, '10': 'packageName'},
|
||||
const {'1': 'version', '3': 3, '4': 1, '5': 9, '10': 'version'},
|
||||
const {'1': 'buildNumber', '3': 4, '4': 1, '5': 9, '10': 'buildNumber'},
|
||||
const {
|
||||
'1': 'buildSignature',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'10': 'buildSignature'
|
||||
},
|
||||
const {'1': 'installSource', '3': 6, '4': 1, '5': 9, '10': 'installSource'},
|
||||
'2': [
|
||||
{'1': 'appName', '3': 1, '4': 1, '5': 9, '10': 'appName'},
|
||||
{'1': 'packageName', '3': 2, '4': 1, '5': 9, '10': 'packageName'},
|
||||
{'1': 'version', '3': 3, '4': 1, '5': 9, '10': 'version'},
|
||||
{'1': 'buildNumber', '3': 4, '4': 1, '5': 9, '10': 'buildNumber'},
|
||||
{'1': 'buildSignature', '3': 5, '4': 1, '5': 9, '10': 'buildSignature'},
|
||||
{'1': 'installSource', '3': 6, '4': 1, '5': 9, '10': 'installSource'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `PackageInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List packageInfoDescriptor = $convert.base64Decode(
|
||||
'CgtQYWNrYWdlSW5mbxIYCgdhcHBOYW1lGAEgASgJUgdhcHBOYW1lEiAKC3BhY2thZ2VOYW1lGAIgASgJUgtwYWNrYWdlTmFtZRIYCgd2ZXJzaW9uGAMgASgJUgd2ZXJzaW9uEiAKC2J1aWxkTnVtYmVyGAQgASgJUgtidWlsZE51bWJlchImCg5idWlsZFNpZ25hdHVyZRgFIAEoCVIOYnVpbGRTaWduYXR1cmUSJAoNaW5zdGFsbFNvdXJjZRgGIAEoCVINaW5zdGFsbFNvdXJjZQ==');
|
||||
'CgtQYWNrYWdlSW5mbxIYCgdhcHBOYW1lGAEgASgJUgdhcHBOYW1lEiAKC3BhY2thZ2VOYW1lGA'
|
||||
'IgASgJUgtwYWNrYWdlTmFtZRIYCgd2ZXJzaW9uGAMgASgJUgd2ZXJzaW9uEiAKC2J1aWxkTnVt'
|
||||
'YmVyGAQgASgJUgtidWlsZE51bWJlchImCg5idWlsZFNpZ25hdHVyZRgFIAEoCVIOYnVpbGRTaW'
|
||||
'duYXR1cmUSJAoNaW5zdGFsbFNvdXJjZRgGIAEoCVINaW5zdGFsbFNvdXJjZQ==');
|
||||
|
||||
@$core.Deprecated('Use androidBuildVersionDescriptor instead')
|
||||
const AndroidBuildVersion$json = const {
|
||||
const AndroidBuildVersion$json = {
|
||||
'1': 'AndroidBuildVersion',
|
||||
'2': const [
|
||||
const {'1': 'baseOS', '3': 1, '4': 1, '5': 9, '10': 'baseOS'},
|
||||
const {'1': 'codename', '3': 2, '4': 1, '5': 9, '10': 'codename'},
|
||||
const {'1': 'incremental', '3': 3, '4': 1, '5': 9, '10': 'incremental'},
|
||||
const {
|
||||
'1': 'previewSdkInt',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 13,
|
||||
'10': 'previewSdkInt'
|
||||
},
|
||||
const {'1': 'release', '3': 5, '4': 1, '5': 9, '10': 'release'},
|
||||
const {'1': 'sdkInt', '3': 6, '4': 1, '5': 13, '10': 'sdkInt'},
|
||||
const {'1': 'securityPatch', '3': 7, '4': 1, '5': 9, '10': 'securityPatch'},
|
||||
'2': [
|
||||
{'1': 'baseOS', '3': 1, '4': 1, '5': 9, '10': 'baseOS'},
|
||||
{'1': 'codename', '3': 2, '4': 1, '5': 9, '10': 'codename'},
|
||||
{'1': 'incremental', '3': 3, '4': 1, '5': 9, '10': 'incremental'},
|
||||
{'1': 'previewSdkInt', '3': 4, '4': 1, '5': 13, '10': 'previewSdkInt'},
|
||||
{'1': 'release', '3': 5, '4': 1, '5': 9, '10': 'release'},
|
||||
{'1': 'sdkInt', '3': 6, '4': 1, '5': 13, '10': 'sdkInt'},
|
||||
{'1': 'securityPatch', '3': 7, '4': 1, '5': 9, '10': 'securityPatch'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AndroidBuildVersion`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List androidBuildVersionDescriptor = $convert.base64Decode(
|
||||
'ChNBbmRyb2lkQnVpbGRWZXJzaW9uEhYKBmJhc2VPUxgBIAEoCVIGYmFzZU9TEhoKCGNvZGVuYW1lGAIgASgJUghjb2RlbmFtZRIgCgtpbmNyZW1lbnRhbBgDIAEoCVILaW5jcmVtZW50YWwSJAoNcHJldmlld1Nka0ludBgEIAEoDVINcHJldmlld1Nka0ludBIYCgdyZWxlYXNlGAUgASgJUgdyZWxlYXNlEhYKBnNka0ludBgGIAEoDVIGc2RrSW50EiQKDXNlY3VyaXR5UGF0Y2gYByABKAlSDXNlY3VyaXR5UGF0Y2g=');
|
||||
'ChNBbmRyb2lkQnVpbGRWZXJzaW9uEhYKBmJhc2VPUxgBIAEoCVIGYmFzZU9TEhoKCGNvZGVuYW'
|
||||
'1lGAIgASgJUghjb2RlbmFtZRIgCgtpbmNyZW1lbnRhbBgDIAEoCVILaW5jcmVtZW50YWwSJAoN'
|
||||
'cHJldmlld1Nka0ludBgEIAEoDVINcHJldmlld1Nka0ludBIYCgdyZWxlYXNlGAUgASgJUgdyZW'
|
||||
'xlYXNlEhYKBnNka0ludBgGIAEoDVIGc2RrSW50EiQKDXNlY3VyaXR5UGF0Y2gYByABKAlSDXNl'
|
||||
'Y3VyaXR5UGF0Y2g=');
|
||||
|
||||
@$core.Deprecated('Use androidDeviceInfoDescriptor instead')
|
||||
const AndroidDeviceInfo$json = const {
|
||||
const AndroidDeviceInfo$json = {
|
||||
'1': 'AndroidDeviceInfo',
|
||||
'2': const [
|
||||
const {
|
||||
'2': [
|
||||
{
|
||||
'1': 'version',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
@ -274,107 +299,99 @@ const AndroidDeviceInfo$json = const {
|
||||
'6': '.gitjournal.AndroidBuildVersion',
|
||||
'10': 'version'
|
||||
},
|
||||
const {'1': 'board', '3': 2, '4': 1, '5': 9, '10': 'board'},
|
||||
const {'1': 'bootloader', '3': 3, '4': 1, '5': 9, '10': 'bootloader'},
|
||||
const {'1': 'brand', '3': 4, '4': 1, '5': 9, '10': 'brand'},
|
||||
const {'1': 'device', '3': 5, '4': 1, '5': 9, '10': 'device'},
|
||||
const {'1': 'display', '3': 6, '4': 1, '5': 9, '10': 'display'},
|
||||
const {'1': 'fingerprint', '3': 7, '4': 1, '5': 9, '10': 'fingerprint'},
|
||||
const {'1': 'hardware', '3': 8, '4': 1, '5': 9, '10': 'hardware'},
|
||||
const {'1': 'host', '3': 9, '4': 1, '5': 9, '10': 'host'},
|
||||
const {'1': 'id', '3': 10, '4': 1, '5': 9, '10': 'id'},
|
||||
const {'1': 'manufacturer', '3': 11, '4': 1, '5': 9, '10': 'manufacturer'},
|
||||
const {'1': 'model', '3': 12, '4': 1, '5': 9, '10': 'model'},
|
||||
const {'1': 'product', '3': 13, '4': 1, '5': 9, '10': 'product'},
|
||||
const {
|
||||
{'1': 'board', '3': 2, '4': 1, '5': 9, '10': 'board'},
|
||||
{'1': 'bootloader', '3': 3, '4': 1, '5': 9, '10': 'bootloader'},
|
||||
{'1': 'brand', '3': 4, '4': 1, '5': 9, '10': 'brand'},
|
||||
{'1': 'device', '3': 5, '4': 1, '5': 9, '10': 'device'},
|
||||
{'1': 'display', '3': 6, '4': 1, '5': 9, '10': 'display'},
|
||||
{'1': 'fingerprint', '3': 7, '4': 1, '5': 9, '10': 'fingerprint'},
|
||||
{'1': 'hardware', '3': 8, '4': 1, '5': 9, '10': 'hardware'},
|
||||
{'1': 'host', '3': 9, '4': 1, '5': 9, '10': 'host'},
|
||||
{'1': 'id', '3': 10, '4': 1, '5': 9, '10': 'id'},
|
||||
{'1': 'manufacturer', '3': 11, '4': 1, '5': 9, '10': 'manufacturer'},
|
||||
{'1': 'model', '3': 12, '4': 1, '5': 9, '10': 'model'},
|
||||
{'1': 'product', '3': 13, '4': 1, '5': 9, '10': 'product'},
|
||||
{
|
||||
'1': 'supported32BitAbis',
|
||||
'3': 14,
|
||||
'4': 3,
|
||||
'5': 9,
|
||||
'10': 'supported32BitAbis'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'supported64BitAbis',
|
||||
'3': 15,
|
||||
'4': 3,
|
||||
'5': 9,
|
||||
'10': 'supported64BitAbis'
|
||||
},
|
||||
const {
|
||||
'1': 'supportedAbis',
|
||||
'3': 16,
|
||||
'4': 3,
|
||||
'5': 9,
|
||||
'10': 'supportedAbis'
|
||||
},
|
||||
const {'1': 'tags', '3': 17, '4': 1, '5': 9, '10': 'tags'},
|
||||
const {'1': 'type', '3': 18, '4': 1, '5': 9, '10': 'type'},
|
||||
const {
|
||||
{'1': 'supportedAbis', '3': 16, '4': 3, '5': 9, '10': 'supportedAbis'},
|
||||
{'1': 'tags', '3': 17, '4': 1, '5': 9, '10': 'tags'},
|
||||
{'1': 'type', '3': 18, '4': 1, '5': 9, '10': 'type'},
|
||||
{
|
||||
'1': 'isPhysicalDevice',
|
||||
'3': 19,
|
||||
'4': 1,
|
||||
'5': 8,
|
||||
'10': 'isPhysicalDevice'
|
||||
},
|
||||
const {'1': 'androidId', '3': 20, '4': 1, '5': 9, '10': 'androidId'},
|
||||
const {
|
||||
'1': 'systemFeatures',
|
||||
'3': 21,
|
||||
'4': 3,
|
||||
'5': 9,
|
||||
'10': 'systemFeatures'
|
||||
},
|
||||
{'1': 'androidId', '3': 20, '4': 1, '5': 9, '10': 'androidId'},
|
||||
{'1': 'systemFeatures', '3': 21, '4': 3, '5': 9, '10': 'systemFeatures'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AndroidDeviceInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List androidDeviceInfoDescriptor = $convert.base64Decode(
|
||||
'ChFBbmRyb2lkRGV2aWNlSW5mbxI5Cgd2ZXJzaW9uGAEgASgLMh8uZ2l0am91cm5hbC5BbmRyb2lkQnVpbGRWZXJzaW9uUgd2ZXJzaW9uEhQKBWJvYXJkGAIgASgJUgVib2FyZBIeCgpib290bG9hZGVyGAMgASgJUgpib290bG9hZGVyEhQKBWJyYW5kGAQgASgJUgVicmFuZBIWCgZkZXZpY2UYBSABKAlSBmRldmljZRIYCgdkaXNwbGF5GAYgASgJUgdkaXNwbGF5EiAKC2ZpbmdlcnByaW50GAcgASgJUgtmaW5nZXJwcmludBIaCghoYXJkd2FyZRgIIAEoCVIIaGFyZHdhcmUSEgoEaG9zdBgJIAEoCVIEaG9zdBIOCgJpZBgKIAEoCVICaWQSIgoMbWFudWZhY3R1cmVyGAsgASgJUgxtYW51ZmFjdHVyZXISFAoFbW9kZWwYDCABKAlSBW1vZGVsEhgKB3Byb2R1Y3QYDSABKAlSB3Byb2R1Y3QSLgoSc3VwcG9ydGVkMzJCaXRBYmlzGA4gAygJUhJzdXBwb3J0ZWQzMkJpdEFiaXMSLgoSc3VwcG9ydGVkNjRCaXRBYmlzGA8gAygJUhJzdXBwb3J0ZWQ2NEJpdEFiaXMSJAoNc3VwcG9ydGVkQWJpcxgQIAMoCVINc3VwcG9ydGVkQWJpcxISCgR0YWdzGBEgASgJUgR0YWdzEhIKBHR5cGUYEiABKAlSBHR5cGUSKgoQaXNQaHlzaWNhbERldmljZRgTIAEoCFIQaXNQaHlzaWNhbERldmljZRIcCglhbmRyb2lkSWQYFCABKAlSCWFuZHJvaWRJZBImCg5zeXN0ZW1GZWF0dXJlcxgVIAMoCVIOc3lzdGVtRmVhdHVyZXM=');
|
||||
'ChFBbmRyb2lkRGV2aWNlSW5mbxI5Cgd2ZXJzaW9uGAEgASgLMh8uZ2l0am91cm5hbC5BbmRyb2'
|
||||
'lkQnVpbGRWZXJzaW9uUgd2ZXJzaW9uEhQKBWJvYXJkGAIgASgJUgVib2FyZBIeCgpib290bG9h'
|
||||
'ZGVyGAMgASgJUgpib290bG9hZGVyEhQKBWJyYW5kGAQgASgJUgVicmFuZBIWCgZkZXZpY2UYBS'
|
||||
'ABKAlSBmRldmljZRIYCgdkaXNwbGF5GAYgASgJUgdkaXNwbGF5EiAKC2ZpbmdlcnByaW50GAcg'
|
||||
'ASgJUgtmaW5nZXJwcmludBIaCghoYXJkd2FyZRgIIAEoCVIIaGFyZHdhcmUSEgoEaG9zdBgJIA'
|
||||
'EoCVIEaG9zdBIOCgJpZBgKIAEoCVICaWQSIgoMbWFudWZhY3R1cmVyGAsgASgJUgxtYW51ZmFj'
|
||||
'dHVyZXISFAoFbW9kZWwYDCABKAlSBW1vZGVsEhgKB3Byb2R1Y3QYDSABKAlSB3Byb2R1Y3QSLg'
|
||||
'oSc3VwcG9ydGVkMzJCaXRBYmlzGA4gAygJUhJzdXBwb3J0ZWQzMkJpdEFiaXMSLgoSc3VwcG9y'
|
||||
'dGVkNjRCaXRBYmlzGA8gAygJUhJzdXBwb3J0ZWQ2NEJpdEFiaXMSJAoNc3VwcG9ydGVkQWJpcx'
|
||||
'gQIAMoCVINc3VwcG9ydGVkQWJpcxISCgR0YWdzGBEgASgJUgR0YWdzEhIKBHR5cGUYEiABKAlS'
|
||||
'BHR5cGUSKgoQaXNQaHlzaWNhbERldmljZRgTIAEoCFIQaXNQaHlzaWNhbERldmljZRIcCglhbm'
|
||||
'Ryb2lkSWQYFCABKAlSCWFuZHJvaWRJZBImCg5zeXN0ZW1GZWF0dXJlcxgVIAMoCVIOc3lzdGVt'
|
||||
'RmVhdHVyZXM=');
|
||||
|
||||
@$core.Deprecated('Use iosUtsnameDescriptor instead')
|
||||
const IosUtsname$json = const {
|
||||
const IosUtsname$json = {
|
||||
'1': 'IosUtsname',
|
||||
'2': const [
|
||||
const {'1': 'sysname', '3': 1, '4': 1, '5': 9, '10': 'sysname'},
|
||||
const {'1': 'nodename', '3': 2, '4': 1, '5': 9, '10': 'nodename'},
|
||||
const {'1': 'release', '3': 3, '4': 1, '5': 9, '10': 'release'},
|
||||
const {'1': 'version', '3': 4, '4': 1, '5': 9, '10': 'version'},
|
||||
const {'1': 'machine', '3': 5, '4': 1, '5': 9, '10': 'machine'},
|
||||
'2': [
|
||||
{'1': 'sysname', '3': 1, '4': 1, '5': 9, '10': 'sysname'},
|
||||
{'1': 'nodename', '3': 2, '4': 1, '5': 9, '10': 'nodename'},
|
||||
{'1': 'release', '3': 3, '4': 1, '5': 9, '10': 'release'},
|
||||
{'1': 'version', '3': 4, '4': 1, '5': 9, '10': 'version'},
|
||||
{'1': 'machine', '3': 5, '4': 1, '5': 9, '10': 'machine'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `IosUtsname`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List iosUtsnameDescriptor = $convert.base64Decode(
|
||||
'CgpJb3NVdHNuYW1lEhgKB3N5c25hbWUYASABKAlSB3N5c25hbWUSGgoIbm9kZW5hbWUYAiABKAlSCG5vZGVuYW1lEhgKB3JlbGVhc2UYAyABKAlSB3JlbGVhc2USGAoHdmVyc2lvbhgEIAEoCVIHdmVyc2lvbhIYCgdtYWNoaW5lGAUgASgJUgdtYWNoaW5l');
|
||||
'CgpJb3NVdHNuYW1lEhgKB3N5c25hbWUYASABKAlSB3N5c25hbWUSGgoIbm9kZW5hbWUYAiABKA'
|
||||
'lSCG5vZGVuYW1lEhgKB3JlbGVhc2UYAyABKAlSB3JlbGVhc2USGAoHdmVyc2lvbhgEIAEoCVIH'
|
||||
'dmVyc2lvbhIYCgdtYWNoaW5lGAUgASgJUgdtYWNoaW5l');
|
||||
|
||||
@$core.Deprecated('Use iosDeviceInfoDescriptor instead')
|
||||
const IosDeviceInfo$json = const {
|
||||
const IosDeviceInfo$json = {
|
||||
'1': 'IosDeviceInfo',
|
||||
'2': const [
|
||||
const {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
|
||||
const {'1': 'systemName', '3': 2, '4': 1, '5': 9, '10': 'systemName'},
|
||||
const {'1': 'systemVersion', '3': 3, '4': 1, '5': 9, '10': 'systemVersion'},
|
||||
const {'1': 'model', '3': 4, '4': 1, '5': 9, '10': 'model'},
|
||||
const {
|
||||
'1': 'localizedModel',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'10': 'localizedModel'
|
||||
},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
|
||||
{'1': 'systemName', '3': 2, '4': 1, '5': 9, '10': 'systemName'},
|
||||
{'1': 'systemVersion', '3': 3, '4': 1, '5': 9, '10': 'systemVersion'},
|
||||
{'1': 'model', '3': 4, '4': 1, '5': 9, '10': 'model'},
|
||||
{'1': 'localizedModel', '3': 5, '4': 1, '5': 9, '10': 'localizedModel'},
|
||||
{
|
||||
'1': 'identifierForVendor',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'10': 'identifierForVendor'
|
||||
},
|
||||
const {
|
||||
'1': 'isPhysicalDevice',
|
||||
'3': 7,
|
||||
'4': 1,
|
||||
'5': 8,
|
||||
'10': 'isPhysicalDevice'
|
||||
},
|
||||
const {
|
||||
{'1': 'isPhysicalDevice', '3': 7, '4': 1, '5': 8, '10': 'isPhysicalDevice'},
|
||||
{
|
||||
'1': 'utsname',
|
||||
'3': 8,
|
||||
'4': 1,
|
||||
@ -387,66 +404,72 @@ const IosDeviceInfo$json = const {
|
||||
|
||||
/// Descriptor for `IosDeviceInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List iosDeviceInfoDescriptor = $convert.base64Decode(
|
||||
'Cg1Jb3NEZXZpY2VJbmZvEhIKBG5hbWUYASABKAlSBG5hbWUSHgoKc3lzdGVtTmFtZRgCIAEoCVIKc3lzdGVtTmFtZRIkCg1zeXN0ZW1WZXJzaW9uGAMgASgJUg1zeXN0ZW1WZXJzaW9uEhQKBW1vZGVsGAQgASgJUgVtb2RlbBImCg5sb2NhbGl6ZWRNb2RlbBgFIAEoCVIObG9jYWxpemVkTW9kZWwSMAoTaWRlbnRpZmllckZvclZlbmRvchgGIAEoCVITaWRlbnRpZmllckZvclZlbmRvchIqChBpc1BoeXNpY2FsRGV2aWNlGAcgASgIUhBpc1BoeXNpY2FsRGV2aWNlEjAKB3V0c25hbWUYCCABKAsyFi5naXRqb3VybmFsLklvc1V0c25hbWVSB3V0c25hbWU=');
|
||||
'Cg1Jb3NEZXZpY2VJbmZvEhIKBG5hbWUYASABKAlSBG5hbWUSHgoKc3lzdGVtTmFtZRgCIAEoCV'
|
||||
'IKc3lzdGVtTmFtZRIkCg1zeXN0ZW1WZXJzaW9uGAMgASgJUg1zeXN0ZW1WZXJzaW9uEhQKBW1v'
|
||||
'ZGVsGAQgASgJUgVtb2RlbBImCg5sb2NhbGl6ZWRNb2RlbBgFIAEoCVIObG9jYWxpemVkTW9kZW'
|
||||
'wSMAoTaWRlbnRpZmllckZvclZlbmRvchgGIAEoCVITaWRlbnRpZmllckZvclZlbmRvchIqChBp'
|
||||
'c1BoeXNpY2FsRGV2aWNlGAcgASgIUhBpc1BoeXNpY2FsRGV2aWNlEjAKB3V0c25hbWUYCCABKA'
|
||||
'syFi5naXRqb3VybmFsLklvc1V0c25hbWVSB3V0c25hbWU=');
|
||||
|
||||
@$core.Deprecated('Use linuxDeviceInfoDescriptor instead')
|
||||
const LinuxDeviceInfo$json = const {
|
||||
const LinuxDeviceInfo$json = {
|
||||
'1': 'LinuxDeviceInfo',
|
||||
'2': const [
|
||||
const {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
|
||||
const {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'},
|
||||
const {'1': 'id', '3': 3, '4': 1, '5': 9, '10': 'id'},
|
||||
const {'1': 'idLike', '3': 4, '4': 3, '5': 9, '10': 'idLike'},
|
||||
const {
|
||||
'1': 'versionCodename',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'10': 'versionCodename'
|
||||
},
|
||||
const {'1': 'versionId', '3': 6, '4': 1, '5': 9, '10': 'versionId'},
|
||||
const {'1': 'prettyName', '3': 7, '4': 1, '5': 9, '10': 'prettyName'},
|
||||
const {'1': 'buildId', '3': 8, '4': 1, '5': 9, '10': 'buildId'},
|
||||
const {'1': 'variant', '3': 9, '4': 1, '5': 9, '10': 'variant'},
|
||||
const {'1': 'variantId', '3': 10, '4': 1, '5': 9, '10': 'variantId'},
|
||||
const {'1': 'machineId', '3': 11, '4': 1, '5': 9, '10': 'machineId'},
|
||||
'2': [
|
||||
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
|
||||
{'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'},
|
||||
{'1': 'id', '3': 3, '4': 1, '5': 9, '10': 'id'},
|
||||
{'1': 'idLike', '3': 4, '4': 3, '5': 9, '10': 'idLike'},
|
||||
{'1': 'versionCodename', '3': 5, '4': 1, '5': 9, '10': 'versionCodename'},
|
||||
{'1': 'versionId', '3': 6, '4': 1, '5': 9, '10': 'versionId'},
|
||||
{'1': 'prettyName', '3': 7, '4': 1, '5': 9, '10': 'prettyName'},
|
||||
{'1': 'buildId', '3': 8, '4': 1, '5': 9, '10': 'buildId'},
|
||||
{'1': 'variant', '3': 9, '4': 1, '5': 9, '10': 'variant'},
|
||||
{'1': 'variantId', '3': 10, '4': 1, '5': 9, '10': 'variantId'},
|
||||
{'1': 'machineId', '3': 11, '4': 1, '5': 9, '10': 'machineId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `LinuxDeviceInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List linuxDeviceInfoDescriptor = $convert.base64Decode(
|
||||
'Cg9MaW51eERldmljZUluZm8SEgoEbmFtZRgBIAEoCVIEbmFtZRIYCgd2ZXJzaW9uGAIgASgJUgd2ZXJzaW9uEg4KAmlkGAMgASgJUgJpZBIWCgZpZExpa2UYBCADKAlSBmlkTGlrZRIoCg92ZXJzaW9uQ29kZW5hbWUYBSABKAlSD3ZlcnNpb25Db2RlbmFtZRIcCgl2ZXJzaW9uSWQYBiABKAlSCXZlcnNpb25JZBIeCgpwcmV0dHlOYW1lGAcgASgJUgpwcmV0dHlOYW1lEhgKB2J1aWxkSWQYCCABKAlSB2J1aWxkSWQSGAoHdmFyaWFudBgJIAEoCVIHdmFyaWFudBIcCgl2YXJpYW50SWQYCiABKAlSCXZhcmlhbnRJZBIcCgltYWNoaW5lSWQYCyABKAlSCW1hY2hpbmVJZA==');
|
||||
'Cg9MaW51eERldmljZUluZm8SEgoEbmFtZRgBIAEoCVIEbmFtZRIYCgd2ZXJzaW9uGAIgASgJUg'
|
||||
'd2ZXJzaW9uEg4KAmlkGAMgASgJUgJpZBIWCgZpZExpa2UYBCADKAlSBmlkTGlrZRIoCg92ZXJz'
|
||||
'aW9uQ29kZW5hbWUYBSABKAlSD3ZlcnNpb25Db2RlbmFtZRIcCgl2ZXJzaW9uSWQYBiABKAlSCX'
|
||||
'ZlcnNpb25JZBIeCgpwcmV0dHlOYW1lGAcgASgJUgpwcmV0dHlOYW1lEhgKB2J1aWxkSWQYCCAB'
|
||||
'KAlSB2J1aWxkSWQSGAoHdmFyaWFudBgJIAEoCVIHdmFyaWFudBIcCgl2YXJpYW50SWQYCiABKA'
|
||||
'lSCXZhcmlhbnRJZBIcCgltYWNoaW5lSWQYCyABKAlSCW1hY2hpbmVJZA==');
|
||||
|
||||
@$core.Deprecated('Use macOSDeviceInfoDescriptor instead')
|
||||
const MacOSDeviceInfo$json = const {
|
||||
const MacOSDeviceInfo$json = {
|
||||
'1': 'MacOSDeviceInfo',
|
||||
'2': const [
|
||||
const {'1': 'computerName', '3': 1, '4': 1, '5': 9, '10': 'computerName'},
|
||||
const {'1': 'hostName', '3': 2, '4': 1, '5': 9, '10': 'hostName'},
|
||||
const {'1': 'arch', '3': 3, '4': 1, '5': 9, '10': 'arch'},
|
||||
const {'1': 'model', '3': 4, '4': 1, '5': 9, '10': 'model'},
|
||||
const {'1': 'kernelVersion', '3': 5, '4': 1, '5': 9, '10': 'kernelVersion'},
|
||||
const {'1': 'osRelease', '3': 6, '4': 1, '5': 9, '10': 'osRelease'},
|
||||
const {'1': 'activeCPUs', '3': 7, '4': 1, '5': 13, '10': 'activeCPUs'},
|
||||
const {'1': 'memorySize', '3': 8, '4': 1, '5': 4, '10': 'memorySize'},
|
||||
const {'1': 'cpuFrequency', '3': 9, '4': 1, '5': 4, '10': 'cpuFrequency'},
|
||||
'2': [
|
||||
{'1': 'computerName', '3': 1, '4': 1, '5': 9, '10': 'computerName'},
|
||||
{'1': 'hostName', '3': 2, '4': 1, '5': 9, '10': 'hostName'},
|
||||
{'1': 'arch', '3': 3, '4': 1, '5': 9, '10': 'arch'},
|
||||
{'1': 'model', '3': 4, '4': 1, '5': 9, '10': 'model'},
|
||||
{'1': 'kernelVersion', '3': 5, '4': 1, '5': 9, '10': 'kernelVersion'},
|
||||
{'1': 'osRelease', '3': 6, '4': 1, '5': 9, '10': 'osRelease'},
|
||||
{'1': 'activeCPUs', '3': 7, '4': 1, '5': 13, '10': 'activeCPUs'},
|
||||
{'1': 'memorySize', '3': 8, '4': 1, '5': 4, '10': 'memorySize'},
|
||||
{'1': 'cpuFrequency', '3': 9, '4': 1, '5': 4, '10': 'cpuFrequency'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `MacOSDeviceInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List macOSDeviceInfoDescriptor = $convert.base64Decode(
|
||||
'Cg9NYWNPU0RldmljZUluZm8SIgoMY29tcHV0ZXJOYW1lGAEgASgJUgxjb21wdXRlck5hbWUSGgoIaG9zdE5hbWUYAiABKAlSCGhvc3ROYW1lEhIKBGFyY2gYAyABKAlSBGFyY2gSFAoFbW9kZWwYBCABKAlSBW1vZGVsEiQKDWtlcm5lbFZlcnNpb24YBSABKAlSDWtlcm5lbFZlcnNpb24SHAoJb3NSZWxlYXNlGAYgASgJUglvc1JlbGVhc2USHgoKYWN0aXZlQ1BVcxgHIAEoDVIKYWN0aXZlQ1BVcxIeCgptZW1vcnlTaXplGAggASgEUgptZW1vcnlTaXplEiIKDGNwdUZyZXF1ZW5jeRgJIAEoBFIMY3B1RnJlcXVlbmN5');
|
||||
'Cg9NYWNPU0RldmljZUluZm8SIgoMY29tcHV0ZXJOYW1lGAEgASgJUgxjb21wdXRlck5hbWUSGg'
|
||||
'oIaG9zdE5hbWUYAiABKAlSCGhvc3ROYW1lEhIKBGFyY2gYAyABKAlSBGFyY2gSFAoFbW9kZWwY'
|
||||
'BCABKAlSBW1vZGVsEiQKDWtlcm5lbFZlcnNpb24YBSABKAlSDWtlcm5lbFZlcnNpb24SHAoJb3'
|
||||
'NSZWxlYXNlGAYgASgJUglvc1JlbGVhc2USHgoKYWN0aXZlQ1BVcxgHIAEoDVIKYWN0aXZlQ1BV'
|
||||
'cxIeCgptZW1vcnlTaXplGAggASgEUgptZW1vcnlTaXplEiIKDGNwdUZyZXF1ZW5jeRgJIAEoBF'
|
||||
'IMY3B1RnJlcXVlbmN5');
|
||||
|
||||
@$core.Deprecated('Use windowsDeviceInfoDescriptor instead')
|
||||
const WindowsDeviceInfo$json = const {
|
||||
const WindowsDeviceInfo$json = {
|
||||
'1': 'WindowsDeviceInfo',
|
||||
'2': const [
|
||||
const {'1': 'computerName', '3': 1, '4': 1, '5': 9, '10': 'computerName'},
|
||||
const {
|
||||
'1': 'numberOfCores',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 13,
|
||||
'10': 'numberOfCores'
|
||||
},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'computerName', '3': 1, '4': 1, '5': 9, '10': 'computerName'},
|
||||
{'1': 'numberOfCores', '3': 2, '4': 1, '5': 13, '10': 'numberOfCores'},
|
||||
{
|
||||
'1': 'systemMemoryInMegabytes',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
@ -458,12 +481,15 @@ const WindowsDeviceInfo$json = const {
|
||||
|
||||
/// Descriptor for `WindowsDeviceInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List windowsDeviceInfoDescriptor = $convert.base64Decode(
|
||||
'ChFXaW5kb3dzRGV2aWNlSW5mbxIiCgxjb21wdXRlck5hbWUYASABKAlSDGNvbXB1dGVyTmFtZRIkCg1udW1iZXJPZkNvcmVzGAIgASgNUg1udW1iZXJPZkNvcmVzEjgKF3N5c3RlbU1lbW9yeUluTWVnYWJ5dGVzGAMgASgNUhdzeXN0ZW1NZW1vcnlJbk1lZ2FieXRlcw==');
|
||||
'ChFXaW5kb3dzRGV2aWNlSW5mbxIiCgxjb21wdXRlck5hbWUYASABKAlSDGNvbXB1dGVyTmFtZR'
|
||||
'IkCg1udW1iZXJPZkNvcmVzGAIgASgNUg1udW1iZXJPZkNvcmVzEjgKF3N5c3RlbU1lbW9yeUlu'
|
||||
'TWVnYWJ5dGVzGAMgASgNUhdzeXN0ZW1NZW1vcnlJbk1lZ2FieXRlcw==');
|
||||
|
||||
@$core.Deprecated('Use webBrowserInfoDescriptor instead')
|
||||
const WebBrowserInfo$json = const {
|
||||
const WebBrowserInfo$json = {
|
||||
'1': 'WebBrowserInfo',
|
||||
'2': const [
|
||||
const {
|
||||
'2': [
|
||||
{
|
||||
'1': 'browserName',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
@ -471,35 +497,38 @@ const WebBrowserInfo$json = const {
|
||||
'6': '.gitjournal.BrowserName',
|
||||
'10': 'browserName'
|
||||
},
|
||||
const {'1': 'appCodeName', '3': 2, '4': 1, '5': 9, '10': 'appCodeName'},
|
||||
const {'1': 'appName', '3': 3, '4': 1, '5': 9, '10': 'appName'},
|
||||
const {'1': 'appVersion', '3': 4, '4': 1, '5': 9, '10': 'appVersion'},
|
||||
const {'1': 'deviceMemory', '3': 5, '4': 1, '5': 4, '10': 'deviceMemory'},
|
||||
const {'1': 'language', '3': 6, '4': 1, '5': 9, '10': 'language'},
|
||||
const {'1': 'languages', '3': 7, '4': 3, '5': 9, '10': 'languages'},
|
||||
const {'1': 'platform', '3': 8, '4': 1, '5': 9, '10': 'platform'},
|
||||
const {'1': 'product', '3': 9, '4': 1, '5': 9, '10': 'product'},
|
||||
const {'1': 'productSub', '3': 10, '4': 1, '5': 9, '10': 'productSub'},
|
||||
const {'1': 'userAgent', '3': 11, '4': 1, '5': 9, '10': 'userAgent'},
|
||||
const {'1': 'vendor', '3': 12, '4': 1, '5': 9, '10': 'vendor'},
|
||||
const {'1': 'vendorSub', '3': 13, '4': 1, '5': 9, '10': 'vendorSub'},
|
||||
const {
|
||||
{'1': 'appCodeName', '3': 2, '4': 1, '5': 9, '10': 'appCodeName'},
|
||||
{'1': 'appName', '3': 3, '4': 1, '5': 9, '10': 'appName'},
|
||||
{'1': 'appVersion', '3': 4, '4': 1, '5': 9, '10': 'appVersion'},
|
||||
{'1': 'deviceMemory', '3': 5, '4': 1, '5': 4, '10': 'deviceMemory'},
|
||||
{'1': 'language', '3': 6, '4': 1, '5': 9, '10': 'language'},
|
||||
{'1': 'languages', '3': 7, '4': 3, '5': 9, '10': 'languages'},
|
||||
{'1': 'platform', '3': 8, '4': 1, '5': 9, '10': 'platform'},
|
||||
{'1': 'product', '3': 9, '4': 1, '5': 9, '10': 'product'},
|
||||
{'1': 'productSub', '3': 10, '4': 1, '5': 9, '10': 'productSub'},
|
||||
{'1': 'userAgent', '3': 11, '4': 1, '5': 9, '10': 'userAgent'},
|
||||
{'1': 'vendor', '3': 12, '4': 1, '5': 9, '10': 'vendor'},
|
||||
{'1': 'vendorSub', '3': 13, '4': 1, '5': 9, '10': 'vendorSub'},
|
||||
{
|
||||
'1': 'hardwareConcurrency',
|
||||
'3': 14,
|
||||
'4': 1,
|
||||
'5': 13,
|
||||
'10': 'hardwareConcurrency'
|
||||
},
|
||||
const {
|
||||
'1': 'maxTouchPoints',
|
||||
'3': 15,
|
||||
'4': 1,
|
||||
'5': 13,
|
||||
'10': 'maxTouchPoints'
|
||||
},
|
||||
{'1': 'maxTouchPoints', '3': 15, '4': 1, '5': 13, '10': 'maxTouchPoints'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `WebBrowserInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List webBrowserInfoDescriptor = $convert.base64Decode(
|
||||
'Cg5XZWJCcm93c2VySW5mbxI5Cgticm93c2VyTmFtZRgBIAEoDjIXLmdpdGpvdXJuYWwuQnJvd3Nlck5hbWVSC2Jyb3dzZXJOYW1lEiAKC2FwcENvZGVOYW1lGAIgASgJUgthcHBDb2RlTmFtZRIYCgdhcHBOYW1lGAMgASgJUgdhcHBOYW1lEh4KCmFwcFZlcnNpb24YBCABKAlSCmFwcFZlcnNpb24SIgoMZGV2aWNlTWVtb3J5GAUgASgEUgxkZXZpY2VNZW1vcnkSGgoIbGFuZ3VhZ2UYBiABKAlSCGxhbmd1YWdlEhwKCWxhbmd1YWdlcxgHIAMoCVIJbGFuZ3VhZ2VzEhoKCHBsYXRmb3JtGAggASgJUghwbGF0Zm9ybRIYCgdwcm9kdWN0GAkgASgJUgdwcm9kdWN0Eh4KCnByb2R1Y3RTdWIYCiABKAlSCnByb2R1Y3RTdWISHAoJdXNlckFnZW50GAsgASgJUgl1c2VyQWdlbnQSFgoGdmVuZG9yGAwgASgJUgZ2ZW5kb3ISHAoJdmVuZG9yU3ViGA0gASgJUgl2ZW5kb3JTdWISMAoTaGFyZHdhcmVDb25jdXJyZW5jeRgOIAEoDVITaGFyZHdhcmVDb25jdXJyZW5jeRImCg5tYXhUb3VjaFBvaW50cxgPIAEoDVIObWF4VG91Y2hQb2ludHM=');
|
||||
'Cg5XZWJCcm93c2VySW5mbxI5Cgticm93c2VyTmFtZRgBIAEoDjIXLmdpdGpvdXJuYWwuQnJvd3'
|
||||
'Nlck5hbWVSC2Jyb3dzZXJOYW1lEiAKC2FwcENvZGVOYW1lGAIgASgJUgthcHBDb2RlTmFtZRIY'
|
||||
'CgdhcHBOYW1lGAMgASgJUgdhcHBOYW1lEh4KCmFwcFZlcnNpb24YBCABKAlSCmFwcFZlcnNpb2'
|
||||
'4SIgoMZGV2aWNlTWVtb3J5GAUgASgEUgxkZXZpY2VNZW1vcnkSGgoIbGFuZ3VhZ2UYBiABKAlS'
|
||||
'CGxhbmd1YWdlEhwKCWxhbmd1YWdlcxgHIAMoCVIJbGFuZ3VhZ2VzEhoKCHBsYXRmb3JtGAggAS'
|
||||
'gJUghwbGF0Zm9ybRIYCgdwcm9kdWN0GAkgASgJUgdwcm9kdWN0Eh4KCnByb2R1Y3RTdWIYCiAB'
|
||||
'KAlSCnByb2R1Y3RTdWISHAoJdXNlckFnZW50GAsgASgJUgl1c2VyQWdlbnQSFgoGdmVuZG9yGA'
|
||||
'wgASgJUgZ2ZW5kb3ISHAoJdmVuZG9yU3ViGA0gASgJUgl2ZW5kb3JTdWISMAoTaGFyZHdhcmVD'
|
||||
'b25jdXJyZW5jeRgOIAEoDVITaGFyZHdhcmVDb25jdXJyZW5jeRImCg5tYXhUb3VjaFBvaW50cx'
|
||||
'gPIAEoDVIObWF4VG91Y2hQb2ludHM=');
|
||||
|
@ -71,6 +71,8 @@ class NoteSerializationDateFormat extends GjSetting {
|
||||
Lk.settingsNoteMetaDataDateFormatIso8601, "iso8601");
|
||||
static const UnixTimeStamp = NoteSerializationDateFormat(
|
||||
Lk.settingsNoteMetaDataDateFormatUnixTimestamp, "unixTimestamp");
|
||||
static const YearMonthDay = NoteSerializationDateFormat(
|
||||
Lk.settingsNoteMetaDataDateFormatYearMonthDay, "yearMonthDay");
|
||||
static const None = NoteSerializationDateFormat(
|
||||
Lk.settingsNoteMetaDataDateFormatNone, "none");
|
||||
static const Default = Iso8601;
|
||||
@ -80,6 +82,7 @@ class NoteSerializationDateFormat extends GjSetting {
|
||||
static const options = <NoteSerializationDateFormat>[
|
||||
Iso8601,
|
||||
UnixTimeStamp,
|
||||
YearMonthDay,
|
||||
None,
|
||||
];
|
||||
|
||||
@ -192,6 +195,8 @@ class NoteSerializationSettings {
|
||||
return pb.DateFormat.None;
|
||||
case NoteSerializationDateFormat.UnixTimeStamp:
|
||||
return pb.DateFormat.UnixTimeStamp;
|
||||
case NoteSerializationDateFormat.YearMonthDay:
|
||||
return pb.DateFormat.YearMonthDay;
|
||||
case NoteSerializationDateFormat.Iso8601:
|
||||
default:
|
||||
return pb.DateFormat.Iso8601;
|
||||
@ -204,6 +209,8 @@ class NoteSerializationSettings {
|
||||
return NoteSerializationDateFormat.None;
|
||||
case pb.DateFormat.Iso8601:
|
||||
return NoteSerializationDateFormat.Iso8601;
|
||||
case pb.DateFormat.YearMonthDay:
|
||||
return NoteSerializationDateFormat.YearMonthDay;
|
||||
case pb.DateFormat.UnixTimeStamp:
|
||||
return NoteSerializationDateFormat.UnixTimeStamp;
|
||||
}
|
||||
@ -258,6 +265,9 @@ class NoteSerializer implements NoteSerializerInterface {
|
||||
case NoteSerializationDateFormat.Iso8601:
|
||||
props[settings.createdKey] = toIso8601WithTimezone(note.created);
|
||||
break;
|
||||
case NoteSerializationDateFormat.YearMonthDay:
|
||||
props[settings.createdKey] = toDateString(note.created);
|
||||
break;
|
||||
case NoteSerializationDateFormat.UnixTimeStamp:
|
||||
props[settings.createdKey] =
|
||||
toUnixTimeStamp(note.created, settings.unixTimestampMagnitude);
|
||||
@ -271,6 +281,9 @@ class NoteSerializer implements NoteSerializerInterface {
|
||||
case NoteSerializationDateFormat.Iso8601:
|
||||
props[settings.modifiedKey] = toIso8601WithTimezone(note.modified);
|
||||
break;
|
||||
case NoteSerializationDateFormat.YearMonthDay:
|
||||
props[settings.modifiedKey] = toDateString(note.modified);
|
||||
break;
|
||||
case NoteSerializationDateFormat.UnixTimeStamp:
|
||||
props[settings.modifiedKey] =
|
||||
toUnixTimeStamp(note.modified, settings.unixTimestampMagnitude);
|
||||
@ -374,8 +387,14 @@ class NoteSerializer implements NoteSerializerInterface {
|
||||
modified = parseUnixTimeStamp(val, settings.unixTimestampMagnitude);
|
||||
settings.modifiedFormat = NoteSerializationDateFormat.UnixTimeStamp;
|
||||
} else {
|
||||
modified = parseDateTime(val.toString());
|
||||
settings.modifiedFormat = NoteSerializationDateFormat.Iso8601;
|
||||
var str = val.toString();
|
||||
if (str.length == 10) {
|
||||
modified = parseDateTime(str);
|
||||
settings.modifiedFormat = NoteSerializationDateFormat.YearMonthDay;
|
||||
} else {
|
||||
modified = parseDateTime(str);
|
||||
settings.modifiedFormat = NoteSerializationDateFormat.Iso8601;
|
||||
}
|
||||
}
|
||||
settings.modifiedKey = possibleKey;
|
||||
|
||||
@ -397,8 +416,14 @@ class NoteSerializer implements NoteSerializerInterface {
|
||||
created = parseUnixTimeStamp(val, settings.unixTimestampMagnitude);
|
||||
settings.createdFormat = NoteSerializationDateFormat.UnixTimeStamp;
|
||||
} else {
|
||||
created = parseDateTime(val.toString());
|
||||
settings.createdFormat = NoteSerializationDateFormat.Iso8601;
|
||||
var str = val.toString();
|
||||
if (str.length == 10) {
|
||||
created = parseDateTime(val.toString());
|
||||
settings.createdFormat = NoteSerializationDateFormat.YearMonthDay;
|
||||
} else {
|
||||
created = parseDateTime(val.toString());
|
||||
settings.createdFormat = NoteSerializationDateFormat.Iso8601;
|
||||
}
|
||||
}
|
||||
settings.createdKey = possibleKey;
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: builders.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
|
||||
|
||||
// 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;
|
||||
|
||||
@ -15,76 +15,57 @@ import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class BlobCTimeBuilderData extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'BlobCTimeBuilderData',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..p<$core.List<$core.int>>(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'commitHashes',
|
||||
$pb.PbFieldType.PY,
|
||||
protoName: 'commitHashes')
|
||||
..p<$core.List<$core.int>>(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'treeHashes',
|
||||
$pb.PbFieldType.PY,
|
||||
protoName: 'treeHashes')
|
||||
..m<$core.String, TzDateTime>(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'map',
|
||||
entryClassName: 'BlobCTimeBuilderData.MapEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: TzDateTime.create,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..a<$core.List<$core.int>>(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'headHash',
|
||||
$pb.PbFieldType.OY,
|
||||
protoName: 'headHash')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
BlobCTimeBuilderData._() : super();
|
||||
factory BlobCTimeBuilderData({
|
||||
$core.Iterable<$core.List<$core.int>>? commitHashes,
|
||||
$core.Iterable<$core.List<$core.int>>? treeHashes,
|
||||
$core.Map<$core.String, TzDateTime>? map,
|
||||
$core.List<$core.int>? headHash,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (commitHashes != null) {
|
||||
_result.commitHashes.addAll(commitHashes);
|
||||
$result.commitHashes.addAll(commitHashes);
|
||||
}
|
||||
if (treeHashes != null) {
|
||||
_result.treeHashes.addAll(treeHashes);
|
||||
$result.treeHashes.addAll(treeHashes);
|
||||
}
|
||||
if (map != null) {
|
||||
_result.map.addAll(map);
|
||||
$result.map.addAll(map);
|
||||
}
|
||||
if (headHash != null) {
|
||||
_result.headHash = headHash;
|
||||
$result.headHash = headHash;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
BlobCTimeBuilderData._() : super();
|
||||
factory BlobCTimeBuilderData.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory BlobCTimeBuilderData.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'BlobCTimeBuilderData',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..p<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'commitHashes', $pb.PbFieldType.PY,
|
||||
protoName: 'commitHashes')
|
||||
..p<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'treeHashes', $pb.PbFieldType.PY,
|
||||
protoName: 'treeHashes')
|
||||
..m<$core.String, TzDateTime>(3, _omitFieldNames ? '' : 'map',
|
||||
entryClassName: 'BlobCTimeBuilderData.MapEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: TzDateTime.create,
|
||||
// valueDefaultOrMaker: TzDateTime.getDefault,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..a<$core.List<$core.int>>(
|
||||
4, _omitFieldNames ? '' : 'headHash', $pb.PbFieldType.OY,
|
||||
protoName: 'headHash')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -95,8 +76,10 @@ class BlobCTimeBuilderData extends $pb.GeneratedMessage {
|
||||
'Will be removed in next major version')
|
||||
BlobCTimeBuilderData copyWith(void Function(BlobCTimeBuilderData) updates) =>
|
||||
super.copyWith((message) => updates(message as BlobCTimeBuilderData))
|
||||
as BlobCTimeBuilderData; // ignore: deprecated_member_use
|
||||
as BlobCTimeBuilderData;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BlobCTimeBuilderData create() => BlobCTimeBuilderData._();
|
||||
BlobCTimeBuilderData createEmptyInstance() => create();
|
||||
@ -130,65 +113,50 @@ class BlobCTimeBuilderData extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class FileMTimeBuilderData extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'FileMTimeBuilderData',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..p<$core.List<$core.int>>(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'commitHashes',
|
||||
$pb.PbFieldType.PY,
|
||||
protoName: 'commitHashes')
|
||||
..m<$core.String, FileMTimeInfo>(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'map',
|
||||
entryClassName: 'FileMTimeBuilderData.MapEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: FileMTimeInfo.create,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..a<$core.List<$core.int>>(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'headHash',
|
||||
$pb.PbFieldType.OY,
|
||||
protoName: 'headHash')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
FileMTimeBuilderData._() : super();
|
||||
factory FileMTimeBuilderData({
|
||||
$core.Iterable<$core.List<$core.int>>? commitHashes,
|
||||
$core.Map<$core.String, FileMTimeInfo>? map,
|
||||
$core.List<$core.int>? headHash,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (commitHashes != null) {
|
||||
_result.commitHashes.addAll(commitHashes);
|
||||
$result.commitHashes.addAll(commitHashes);
|
||||
}
|
||||
if (map != null) {
|
||||
_result.map.addAll(map);
|
||||
$result.map.addAll(map);
|
||||
}
|
||||
if (headHash != null) {
|
||||
_result.headHash = headHash;
|
||||
$result.headHash = headHash;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
FileMTimeBuilderData._() : super();
|
||||
factory FileMTimeBuilderData.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory FileMTimeBuilderData.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'FileMTimeBuilderData',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..p<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'commitHashes', $pb.PbFieldType.PY,
|
||||
protoName: 'commitHashes')
|
||||
..m<$core.String, FileMTimeInfo>(3, _omitFieldNames ? '' : 'map',
|
||||
entryClassName: 'FileMTimeBuilderData.MapEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: FileMTimeInfo.create,
|
||||
// valueDefaultOrMaker: FileMTimeInfo.getDefault,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..a<$core.List<$core.int>>(
|
||||
4, _omitFieldNames ? '' : 'headHash', $pb.PbFieldType.OY,
|
||||
protoName: 'headHash')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -199,8 +167,10 @@ class FileMTimeBuilderData extends $pb.GeneratedMessage {
|
||||
'Will be removed in next major version')
|
||||
FileMTimeBuilderData copyWith(void Function(FileMTimeBuilderData) updates) =>
|
||||
super.copyWith((message) => updates(message as FileMTimeBuilderData))
|
||||
as FileMTimeBuilderData; // ignore: deprecated_member_use
|
||||
as FileMTimeBuilderData;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FileMTimeBuilderData create() => FileMTimeBuilderData._();
|
||||
FileMTimeBuilderData createEmptyInstance() => create();
|
||||
@ -231,50 +201,37 @@ class FileMTimeBuilderData extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class TzDateTime extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'TzDateTime',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$fixnum.Int64>(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'timestamp',
|
||||
$pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.int>(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'offset',
|
||||
$pb.PbFieldType.O3)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
TzDateTime._() : super();
|
||||
factory TzDateTime({
|
||||
$fixnum.Int64? timestamp,
|
||||
$core.int? offset,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (timestamp != null) {
|
||||
_result.timestamp = timestamp;
|
||||
$result.timestamp = timestamp;
|
||||
}
|
||||
if (offset != null) {
|
||||
_result.offset = offset;
|
||||
$result.offset = offset;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
TzDateTime._() : super();
|
||||
factory TzDateTime.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory TzDateTime.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'TzDateTime',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$fixnum.Int64>(
|
||||
1, _omitFieldNames ? '' : 'timestamp', $pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.int>(2, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -283,9 +240,10 @@ class TzDateTime extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
TzDateTime copyWith(void Function(TzDateTime) updates) =>
|
||||
super.copyWith((message) => updates(message as TzDateTime))
|
||||
as TzDateTime; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as TzDateTime)) as TzDateTime;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TzDateTime create() => TzDateTime._();
|
||||
TzDateTime createEmptyInstance() => create();
|
||||
@ -295,6 +253,7 @@ class TzDateTime extends $pb.GeneratedMessage {
|
||||
$pb.GeneratedMessage.$_defaultFor<TzDateTime>(create);
|
||||
static TzDateTime? _defaultInstance;
|
||||
|
||||
/// / in seconds
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get timestamp => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
@ -307,6 +266,7 @@ class TzDateTime extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
void clearTimestamp() => clearField(1);
|
||||
|
||||
/// / offset in seconds east of GMT
|
||||
@$pb.TagNumber(2)
|
||||
$core.int get offset => $_getIZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
@ -321,59 +281,42 @@ class TzDateTime extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class FileMTimeInfo extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'FileMTimeInfo',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'filePath',
|
||||
protoName: 'filePath')
|
||||
..a<$core.List<$core.int>>(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'hash',
|
||||
$pb.PbFieldType.OY)
|
||||
..aOM<TzDateTime>(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'dt',
|
||||
subBuilder: TzDateTime.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
FileMTimeInfo._() : super();
|
||||
factory FileMTimeInfo({
|
||||
$core.String? filePath,
|
||||
$core.List<$core.int>? hash,
|
||||
TzDateTime? dt,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (filePath != null) {
|
||||
_result.filePath = filePath;
|
||||
$result.filePath = filePath;
|
||||
}
|
||||
if (hash != null) {
|
||||
_result.hash = hash;
|
||||
$result.hash = hash;
|
||||
}
|
||||
if (dt != null) {
|
||||
_result.dt = dt;
|
||||
$result.dt = dt;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
FileMTimeInfo._() : super();
|
||||
factory FileMTimeInfo.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory FileMTimeInfo.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'FileMTimeInfo',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'filePath', protoName: 'filePath')
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'hash', $pb.PbFieldType.OY)
|
||||
..aOM<TzDateTime>(3, _omitFieldNames ? '' : 'dt',
|
||||
subBuilder: TzDateTime.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -383,8 +326,10 @@ class FileMTimeInfo extends $pb.GeneratedMessage {
|
||||
'Will be removed in next major version')
|
||||
FileMTimeInfo copyWith(void Function(FileMTimeInfo) updates) =>
|
||||
super.copyWith((message) => updates(message as FileMTimeInfo))
|
||||
as FileMTimeInfo; // ignore: deprecated_member_use
|
||||
as FileMTimeInfo;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FileMTimeInfo create() => FileMTimeInfo._();
|
||||
FileMTimeInfo createEmptyInstance() => create();
|
||||
@ -433,3 +378,7 @@ class FileMTimeInfo extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(3)
|
||||
TzDateTime ensureDt() => $_ensure(2);
|
||||
}
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
@ -1,10 +1,10 @@
|
||||
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: builders.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
|
||||
|
||||
// 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
|
||||
|
@ -1,25 +1,25 @@
|
||||
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: builders.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
|
||||
|
||||
// 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:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use blobCTimeBuilderDataDescriptor instead')
|
||||
const BlobCTimeBuilderData$json = const {
|
||||
const BlobCTimeBuilderData$json = {
|
||||
'1': 'BlobCTimeBuilderData',
|
||||
'2': const [
|
||||
const {'1': 'commitHashes', '3': 1, '4': 3, '5': 12, '10': 'commitHashes'},
|
||||
const {'1': 'treeHashes', '3': 2, '4': 3, '5': 12, '10': 'treeHashes'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'commitHashes', '3': 1, '4': 3, '5': 12, '10': 'commitHashes'},
|
||||
{'1': 'treeHashes', '3': 2, '4': 3, '5': 12, '10': 'treeHashes'},
|
||||
{
|
||||
'1': 'map',
|
||||
'3': 3,
|
||||
'4': 3,
|
||||
@ -27,17 +27,17 @@ const BlobCTimeBuilderData$json = const {
|
||||
'6': '.gitjournal.BlobCTimeBuilderData.MapEntry',
|
||||
'10': 'map'
|
||||
},
|
||||
const {'1': 'headHash', '3': 4, '4': 1, '5': 12, '10': 'headHash'},
|
||||
{'1': 'headHash', '3': 4, '4': 1, '5': 12, '10': 'headHash'},
|
||||
],
|
||||
'3': const [BlobCTimeBuilderData_MapEntry$json],
|
||||
'3': [BlobCTimeBuilderData_MapEntry$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use blobCTimeBuilderDataDescriptor instead')
|
||||
const BlobCTimeBuilderData_MapEntry$json = const {
|
||||
const BlobCTimeBuilderData_MapEntry$json = {
|
||||
'1': 'MapEntry',
|
||||
'2': const [
|
||||
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{
|
||||
'1': 'value',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
@ -46,18 +46,23 @@ const BlobCTimeBuilderData_MapEntry$json = const {
|
||||
'10': 'value'
|
||||
},
|
||||
],
|
||||
'7': const {'7': true},
|
||||
'7': {'7': true},
|
||||
};
|
||||
|
||||
/// Descriptor for `BlobCTimeBuilderData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List blobCTimeBuilderDataDescriptor = $convert.base64Decode(
|
||||
'ChRCbG9iQ1RpbWVCdWlsZGVyRGF0YRIiCgxjb21taXRIYXNoZXMYASADKAxSDGNvbW1pdEhhc2hlcxIeCgp0cmVlSGFzaGVzGAIgAygMUgp0cmVlSGFzaGVzEjsKA21hcBgDIAMoCzIpLmdpdGpvdXJuYWwuQmxvYkNUaW1lQnVpbGRlckRhdGEuTWFwRW50cnlSA21hcBIaCghoZWFkSGFzaBgEIAEoDFIIaGVhZEhhc2gaTgoITWFwRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSLAoFdmFsdWUYAiABKAsyFi5naXRqb3VybmFsLlR6RGF0ZVRpbWVSBXZhbHVlOgI4AQ==');
|
||||
'ChRCbG9iQ1RpbWVCdWlsZGVyRGF0YRIiCgxjb21taXRIYXNoZXMYASADKAxSDGNvbW1pdEhhc2'
|
||||
'hlcxIeCgp0cmVlSGFzaGVzGAIgAygMUgp0cmVlSGFzaGVzEjsKA21hcBgDIAMoCzIpLmdpdGpv'
|
||||
'dXJuYWwuQmxvYkNUaW1lQnVpbGRlckRhdGEuTWFwRW50cnlSA21hcBIaCghoZWFkSGFzaBgEIA'
|
||||
'EoDFIIaGVhZEhhc2gaTgoITWFwRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSLAoFdmFsdWUYAiAB'
|
||||
'KAsyFi5naXRqb3VybmFsLlR6RGF0ZVRpbWVSBXZhbHVlOgI4AQ==');
|
||||
|
||||
@$core.Deprecated('Use fileMTimeBuilderDataDescriptor instead')
|
||||
const FileMTimeBuilderData$json = const {
|
||||
const FileMTimeBuilderData$json = {
|
||||
'1': 'FileMTimeBuilderData',
|
||||
'2': const [
|
||||
const {'1': 'commitHashes', '3': 1, '4': 3, '5': 12, '10': 'commitHashes'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'commitHashes', '3': 1, '4': 3, '5': 12, '10': 'commitHashes'},
|
||||
{
|
||||
'1': 'map',
|
||||
'3': 3,
|
||||
'4': 3,
|
||||
@ -65,17 +70,17 @@ const FileMTimeBuilderData$json = const {
|
||||
'6': '.gitjournal.FileMTimeBuilderData.MapEntry',
|
||||
'10': 'map'
|
||||
},
|
||||
const {'1': 'headHash', '3': 4, '4': 1, '5': 12, '10': 'headHash'},
|
||||
{'1': 'headHash', '3': 4, '4': 1, '5': 12, '10': 'headHash'},
|
||||
],
|
||||
'3': const [FileMTimeBuilderData_MapEntry$json],
|
||||
'3': [FileMTimeBuilderData_MapEntry$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use fileMTimeBuilderDataDescriptor instead')
|
||||
const FileMTimeBuilderData_MapEntry$json = const {
|
||||
const FileMTimeBuilderData_MapEntry$json = {
|
||||
'1': 'MapEntry',
|
||||
'2': const [
|
||||
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{
|
||||
'1': 'value',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
@ -84,31 +89,38 @@ const FileMTimeBuilderData_MapEntry$json = const {
|
||||
'10': 'value'
|
||||
},
|
||||
],
|
||||
'7': const {'7': true},
|
||||
'7': {'7': true},
|
||||
};
|
||||
|
||||
/// Descriptor for `FileMTimeBuilderData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List fileMTimeBuilderDataDescriptor = $convert.base64Decode(
|
||||
'ChRGaWxlTVRpbWVCdWlsZGVyRGF0YRIiCgxjb21taXRIYXNoZXMYASADKAxSDGNvbW1pdEhhc2hlcxI7CgNtYXAYAyADKAsyKS5naXRqb3VybmFsLkZpbGVNVGltZUJ1aWxkZXJEYXRhLk1hcEVudHJ5UgNtYXASGgoIaGVhZEhhc2gYBCABKAxSCGhlYWRIYXNoGlEKCE1hcEVudHJ5EhAKA2tleRgBIAEoCVIDa2V5Ei8KBXZhbHVlGAIgASgLMhkuZ2l0am91cm5hbC5GaWxlTVRpbWVJbmZvUgV2YWx1ZToCOAE=');
|
||||
'ChRGaWxlTVRpbWVCdWlsZGVyRGF0YRIiCgxjb21taXRIYXNoZXMYASADKAxSDGNvbW1pdEhhc2'
|
||||
'hlcxI7CgNtYXAYAyADKAsyKS5naXRqb3VybmFsLkZpbGVNVGltZUJ1aWxkZXJEYXRhLk1hcEVu'
|
||||
'dHJ5UgNtYXASGgoIaGVhZEhhc2gYBCABKAxSCGhlYWRIYXNoGlEKCE1hcEVudHJ5EhAKA2tleR'
|
||||
'gBIAEoCVIDa2V5Ei8KBXZhbHVlGAIgASgLMhkuZ2l0am91cm5hbC5GaWxlTVRpbWVJbmZvUgV2'
|
||||
'YWx1ZToCOAE=');
|
||||
|
||||
@$core.Deprecated('Use tzDateTimeDescriptor instead')
|
||||
const TzDateTime$json = const {
|
||||
const TzDateTime$json = {
|
||||
'1': 'TzDateTime',
|
||||
'2': const [
|
||||
const {'1': 'timestamp', '3': 1, '4': 1, '5': 4, '10': 'timestamp'},
|
||||
const {'1': 'offset', '3': 2, '4': 1, '5': 5, '10': 'offset'},
|
||||
'2': [
|
||||
{'1': 'timestamp', '3': 1, '4': 1, '5': 4, '10': 'timestamp'},
|
||||
{'1': 'offset', '3': 2, '4': 1, '5': 5, '10': 'offset'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TzDateTime`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List tzDateTimeDescriptor = $convert.base64Decode(
|
||||
'CgpUekRhdGVUaW1lEhwKCXRpbWVzdGFtcBgBIAEoBFIJdGltZXN0YW1wEhYKBm9mZnNldBgCIAEoBVIGb2Zmc2V0');
|
||||
'CgpUekRhdGVUaW1lEhwKCXRpbWVzdGFtcBgBIAEoBFIJdGltZXN0YW1wEhYKBm9mZnNldBgCIA'
|
||||
'EoBVIGb2Zmc2V0');
|
||||
|
||||
@$core.Deprecated('Use fileMTimeInfoDescriptor instead')
|
||||
const FileMTimeInfo$json = const {
|
||||
const FileMTimeInfo$json = {
|
||||
'1': 'FileMTimeInfo',
|
||||
'2': const [
|
||||
const {'1': 'filePath', '3': 1, '4': 1, '5': 9, '10': 'filePath'},
|
||||
const {'1': 'hash', '3': 2, '4': 1, '5': 12, '10': 'hash'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'filePath', '3': 1, '4': 1, '5': 9, '10': 'filePath'},
|
||||
{'1': 'hash', '3': 2, '4': 1, '5': 12, '10': 'hash'},
|
||||
{
|
||||
'1': 'dt',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
@ -121,4 +133,5 @@ const FileMTimeInfo$json = const {
|
||||
|
||||
/// Descriptor for `FileMTimeInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List fileMTimeInfoDescriptor = $convert.base64Decode(
|
||||
'Cg1GaWxlTVRpbWVJbmZvEhoKCGZpbGVQYXRoGAEgASgJUghmaWxlUGF0aBISCgRoYXNoGAIgASgMUgRoYXNoEiYKAmR0GAMgASgLMhYuZ2l0am91cm5hbC5UekRhdGVUaW1lUgJkdA==');
|
||||
'Cg1GaWxlTVRpbWVJbmZvEhoKCGZpbGVQYXRoGAEgASgJUghmaWxlUGF0aBISCgRoYXNoGAIgAS'
|
||||
'gMUgRoYXNoEiYKAmR0GAMgASgLMhYuZ2l0am91cm5hbC5UekRhdGVUaW1lUgJkdA==');
|
||||
|
@ -1,13 +1,13 @@
|
||||
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: core.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
|
||||
|
||||
// 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;
|
||||
|
||||
@ -19,55 +19,6 @@ import 'core.pbenum.dart';
|
||||
export 'core.pbenum.dart';
|
||||
|
||||
class File extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'File',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'repoPath',
|
||||
protoName: 'repoPath')
|
||||
..a<$core.List<$core.int>>(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'hash',
|
||||
$pb.PbFieldType.OY)
|
||||
..aOS(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'filePath',
|
||||
protoName: 'filePath')
|
||||
..aOM<DateTimeAnyTz>(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'modified',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aOM<DateTimeAnyTz>(
|
||||
5,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'created',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aOM<DateTimeAnyTz>(
|
||||
6,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'fileLastModified',
|
||||
protoName: 'fileLastModified',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
File._() : super();
|
||||
factory File({
|
||||
$core.String? repoPath,
|
||||
$core.List<$core.int>? hash,
|
||||
@ -76,33 +27,51 @@ class File extends $pb.GeneratedMessage {
|
||||
DateTimeAnyTz? created,
|
||||
DateTimeAnyTz? fileLastModified,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (repoPath != null) {
|
||||
_result.repoPath = repoPath;
|
||||
$result.repoPath = repoPath;
|
||||
}
|
||||
if (hash != null) {
|
||||
_result.hash = hash;
|
||||
$result.hash = hash;
|
||||
}
|
||||
if (filePath != null) {
|
||||
_result.filePath = filePath;
|
||||
$result.filePath = filePath;
|
||||
}
|
||||
if (modified != null) {
|
||||
_result.modified = modified;
|
||||
$result.modified = modified;
|
||||
}
|
||||
if (created != null) {
|
||||
_result.created = created;
|
||||
$result.created = created;
|
||||
}
|
||||
if (fileLastModified != null) {
|
||||
_result.fileLastModified = fileLastModified;
|
||||
$result.fileLastModified = fileLastModified;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
File._() : super();
|
||||
factory File.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory File.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'File',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'repoPath', protoName: 'repoPath')
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'hash', $pb.PbFieldType.OY)
|
||||
..aOS(3, _omitFieldNames ? '' : 'filePath', protoName: 'filePath')
|
||||
..aOM<DateTimeAnyTz>(4, _omitFieldNames ? '' : 'modified',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aOM<DateTimeAnyTz>(5, _omitFieldNames ? '' : 'created',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aOM<DateTimeAnyTz>(6, _omitFieldNames ? '' : 'fileLastModified',
|
||||
protoName: 'fileLastModified', subBuilder: DateTimeAnyTz.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -111,9 +80,10 @@ class File extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
File copyWith(void Function(File) updates) =>
|
||||
super.copyWith((message) => updates(message as File))
|
||||
as File; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as File)) as File;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static File create() => File._();
|
||||
File createEmptyInstance() => create();
|
||||
@ -203,94 +173,6 @@ class File extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class Note extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'Note',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOM<File>(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'file',
|
||||
subBuilder: File.create)
|
||||
..aOS(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'title')
|
||||
..aOS(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'body')
|
||||
..e<NoteType>(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'type',
|
||||
$pb.PbFieldType.OE,
|
||||
defaultOrMaker: NoteType.Unknown,
|
||||
valueOf: NoteType.valueOf,
|
||||
enumValues: NoteType.values)
|
||||
..pPS(
|
||||
5,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'tags')
|
||||
..m<$core.String, Union>(
|
||||
6,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'extraProps',
|
||||
protoName: 'extraProps',
|
||||
entryClassName: 'Note.ExtraPropsEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: Union.create,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..e<NoteFileFormat>(
|
||||
7,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'fileFormat',
|
||||
$pb.PbFieldType.OE,
|
||||
protoName: 'fileFormat',
|
||||
defaultOrMaker: NoteFileFormat.Markdown,
|
||||
valueOf: NoteFileFormat.valueOf,
|
||||
enumValues: NoteFileFormat.values)
|
||||
..aOM<DateTimeAnyTz>(
|
||||
10,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'modified',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aOM<DateTimeAnyTz>(
|
||||
11,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'created',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aOM<NoteSerializationSettings>(
|
||||
12,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'serializerSettings',
|
||||
protoName: 'serializerSettings',
|
||||
subBuilder: NoteSerializationSettings.create)
|
||||
..pPS(
|
||||
13,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'propsList',
|
||||
protoName: 'propsList')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
Note._() : super();
|
||||
factory Note({
|
||||
File? file,
|
||||
$core.String? title,
|
||||
@ -304,48 +186,87 @@ class Note extends $pb.GeneratedMessage {
|
||||
NoteSerializationSettings? serializerSettings,
|
||||
$core.Iterable<$core.String>? propsList,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (file != null) {
|
||||
_result.file = file;
|
||||
$result.file = file;
|
||||
}
|
||||
if (title != null) {
|
||||
_result.title = title;
|
||||
$result.title = title;
|
||||
}
|
||||
if (body != null) {
|
||||
_result.body = body;
|
||||
$result.body = body;
|
||||
}
|
||||
if (type != null) {
|
||||
_result.type = type;
|
||||
$result.type = type;
|
||||
}
|
||||
if (tags != null) {
|
||||
_result.tags.addAll(tags);
|
||||
$result.tags.addAll(tags);
|
||||
}
|
||||
if (extraProps != null) {
|
||||
_result.extraProps.addAll(extraProps);
|
||||
$result.extraProps.addAll(extraProps);
|
||||
}
|
||||
if (fileFormat != null) {
|
||||
_result.fileFormat = fileFormat;
|
||||
$result.fileFormat = fileFormat;
|
||||
}
|
||||
if (modified != null) {
|
||||
_result.modified = modified;
|
||||
$result.modified = modified;
|
||||
}
|
||||
if (created != null) {
|
||||
_result.created = created;
|
||||
$result.created = created;
|
||||
}
|
||||
if (serializerSettings != null) {
|
||||
_result.serializerSettings = serializerSettings;
|
||||
$result.serializerSettings = serializerSettings;
|
||||
}
|
||||
if (propsList != null) {
|
||||
_result.propsList.addAll(propsList);
|
||||
$result.propsList.addAll(propsList);
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
Note._() : super();
|
||||
factory Note.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory Note.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Note',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOM<File>(1, _omitFieldNames ? '' : 'file', subBuilder: File.create)
|
||||
..aOS(2, _omitFieldNames ? '' : 'title')
|
||||
..aOS(3, _omitFieldNames ? '' : 'body')
|
||||
..e<NoteType>(4, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE,
|
||||
defaultOrMaker: NoteType.Unknown,
|
||||
valueOf: NoteType.valueOf,
|
||||
enumValues: NoteType.values)
|
||||
..pPS(5, _omitFieldNames ? '' : 'tags')
|
||||
..m<$core.String, Union>(6, _omitFieldNames ? '' : 'extraProps',
|
||||
protoName: 'extraProps',
|
||||
entryClassName: 'Note.ExtraPropsEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: Union.create,
|
||||
// valueDefaultOrMaker: Union.getDefault,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..e<NoteFileFormat>(
|
||||
7, _omitFieldNames ? '' : 'fileFormat', $pb.PbFieldType.OE,
|
||||
protoName: 'fileFormat',
|
||||
defaultOrMaker: NoteFileFormat.Markdown,
|
||||
valueOf: NoteFileFormat.valueOf,
|
||||
enumValues: NoteFileFormat.values)
|
||||
..aOM<DateTimeAnyTz>(10, _omitFieldNames ? '' : 'modified',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aOM<DateTimeAnyTz>(11, _omitFieldNames ? '' : 'created',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aOM<NoteSerializationSettings>(
|
||||
12, _omitFieldNames ? '' : 'serializerSettings',
|
||||
protoName: 'serializerSettings',
|
||||
subBuilder: NoteSerializationSettings.create)
|
||||
..pPS(13, _omitFieldNames ? '' : 'propsList', protoName: 'propsList')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -354,9 +275,10 @@ class Note extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
Note copyWith(void Function(Note) updates) =>
|
||||
super.copyWith((message) => updates(message as Note))
|
||||
as Note; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as Note)) as Note;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Note create() => Note._();
|
||||
Note createEmptyInstance() => create();
|
||||
@ -481,40 +403,31 @@ class Note extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class NoteList extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'NoteList',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..pc<Note>(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'notes',
|
||||
$pb.PbFieldType.PM,
|
||||
subBuilder: Note.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
NoteList._() : super();
|
||||
factory NoteList({
|
||||
$core.Iterable<Note>? notes,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (notes != null) {
|
||||
_result.notes.addAll(notes);
|
||||
$result.notes.addAll(notes);
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
NoteList._() : super();
|
||||
factory NoteList.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory NoteList.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'NoteList',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..pc<Note>(1, _omitFieldNames ? '' : 'notes', $pb.PbFieldType.PM,
|
||||
subBuilder: Note.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -523,9 +436,10 @@ class NoteList extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
NoteList copyWith(void Function(NoteList) updates) =>
|
||||
super.copyWith((message) => updates(message as NoteList))
|
||||
as NoteList; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as NoteList)) as NoteList;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static NoteList create() => NoteList._();
|
||||
NoteList createEmptyInstance() => create();
|
||||
@ -540,52 +454,41 @@ class NoteList extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class MdYamlDoc extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'MdYamlDoc',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'body')
|
||||
..m<$core.String, Union>(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'map',
|
||||
entryClassName: 'MdYamlDoc.MapEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: Union.create,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..hasRequiredFields = false;
|
||||
|
||||
MdYamlDoc._() : super();
|
||||
factory MdYamlDoc({
|
||||
$core.String? body,
|
||||
$core.Map<$core.String, Union>? map,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (body != null) {
|
||||
_result.body = body;
|
||||
$result.body = body;
|
||||
}
|
||||
if (map != null) {
|
||||
_result.map.addAll(map);
|
||||
$result.map.addAll(map);
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
MdYamlDoc._() : super();
|
||||
factory MdYamlDoc.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory MdYamlDoc.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'MdYamlDoc',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'body')
|
||||
..m<$core.String, Union>(2, _omitFieldNames ? '' : 'map',
|
||||
entryClassName: 'MdYamlDoc.MapEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: Union.create,
|
||||
// valueDefaultOrMaker: Union.getDefault,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -594,9 +497,10 @@ class MdYamlDoc extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
MdYamlDoc copyWith(void Function(MdYamlDoc) updates) =>
|
||||
super.copyWith((message) => updates(message as MdYamlDoc))
|
||||
as MdYamlDoc; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as MdYamlDoc)) as MdYamlDoc;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static MdYamlDoc create() => MdYamlDoc._();
|
||||
MdYamlDoc createEmptyInstance() => create();
|
||||
@ -632,77 +536,6 @@ enum Union_UnionOneof {
|
||||
}
|
||||
|
||||
class Union extends $pb.GeneratedMessage {
|
||||
static const $core.Map<$core.int, Union_UnionOneof> _Union_UnionOneofByTag = {
|
||||
1: Union_UnionOneof.booleanValue,
|
||||
2: Union_UnionOneof.stringValue,
|
||||
3: Union_UnionOneof.dateValue,
|
||||
4: Union_UnionOneof.intValue,
|
||||
7: Union_UnionOneof.isNull,
|
||||
0: Union_UnionOneof.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'Union',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 7])
|
||||
..aOB(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'booleanValue',
|
||||
protoName: 'booleanValue')
|
||||
..aOS(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'stringValue',
|
||||
protoName: 'stringValue')
|
||||
..aOM<DateTimeAnyTz>(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'dateValue',
|
||||
protoName: 'dateValue',
|
||||
subBuilder: DateTimeAnyTz.create)
|
||||
..aInt64(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'intValue',
|
||||
protoName: 'intValue')
|
||||
..pc<Union>(
|
||||
5,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'listValue',
|
||||
$pb.PbFieldType.PM,
|
||||
protoName: 'listValue',
|
||||
subBuilder: Union.create)
|
||||
..m<$core.String, Union>(
|
||||
6,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'mapValue',
|
||||
protoName: 'mapValue',
|
||||
entryClassName: 'Union.MapValueEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: Union.create,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..aOB(
|
||||
7,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'isNull',
|
||||
protoName: 'isNull')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
Union._() : super();
|
||||
factory Union({
|
||||
$core.bool? booleanValue,
|
||||
$core.String? stringValue,
|
||||
@ -712,36 +545,69 @@ class Union extends $pb.GeneratedMessage {
|
||||
$core.Map<$core.String, Union>? mapValue,
|
||||
$core.bool? isNull,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (booleanValue != null) {
|
||||
_result.booleanValue = booleanValue;
|
||||
$result.booleanValue = booleanValue;
|
||||
}
|
||||
if (stringValue != null) {
|
||||
_result.stringValue = stringValue;
|
||||
$result.stringValue = stringValue;
|
||||
}
|
||||
if (dateValue != null) {
|
||||
_result.dateValue = dateValue;
|
||||
$result.dateValue = dateValue;
|
||||
}
|
||||
if (intValue != null) {
|
||||
_result.intValue = intValue;
|
||||
$result.intValue = intValue;
|
||||
}
|
||||
if (listValue != null) {
|
||||
_result.listValue.addAll(listValue);
|
||||
$result.listValue.addAll(listValue);
|
||||
}
|
||||
if (mapValue != null) {
|
||||
_result.mapValue.addAll(mapValue);
|
||||
$result.mapValue.addAll(mapValue);
|
||||
}
|
||||
if (isNull != null) {
|
||||
_result.isNull = isNull;
|
||||
$result.isNull = isNull;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
Union._() : super();
|
||||
factory Union.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory Union.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static const $core.Map<$core.int, Union_UnionOneof> _Union_UnionOneofByTag = {
|
||||
1: Union_UnionOneof.booleanValue,
|
||||
2: Union_UnionOneof.stringValue,
|
||||
3: Union_UnionOneof.dateValue,
|
||||
4: Union_UnionOneof.intValue,
|
||||
7: Union_UnionOneof.isNull,
|
||||
0: Union_UnionOneof.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Union',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 7])
|
||||
..aOB(1, _omitFieldNames ? '' : 'booleanValue', protoName: 'booleanValue')
|
||||
..aOS(2, _omitFieldNames ? '' : 'stringValue', protoName: 'stringValue')
|
||||
..aOM<DateTimeAnyTz>(3, _omitFieldNames ? '' : 'dateValue',
|
||||
protoName: 'dateValue', subBuilder: DateTimeAnyTz.create)
|
||||
..aInt64(4, _omitFieldNames ? '' : 'intValue', protoName: 'intValue')
|
||||
..pc<Union>(5, _omitFieldNames ? '' : 'listValue', $pb.PbFieldType.PM,
|
||||
protoName: 'listValue', subBuilder: Union.create)
|
||||
..m<$core.String, Union>(6, _omitFieldNames ? '' : 'mapValue',
|
||||
protoName: 'mapValue',
|
||||
entryClassName: 'Union.MapValueEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OM,
|
||||
valueCreator: Union.create,
|
||||
// valueDefaultOrMaker: Union.getDefault,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..aOB(7, _omitFieldNames ? '' : 'isNull', protoName: 'isNull')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -750,9 +616,10 @@ class Union extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
Union copyWith(void Function(Union) updates) =>
|
||||
super.copyWith((message) => updates(message as Union))
|
||||
as Union; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as Union)) as Union;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Union create() => Union._();
|
||||
Union createEmptyInstance() => create();
|
||||
@ -836,50 +703,37 @@ class Union extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class DateTimeAnyTz extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'DateTimeAnyTz',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$fixnum.Int64>(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'timestamp',
|
||||
$pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.int>(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'offset',
|
||||
$pb.PbFieldType.O3)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
DateTimeAnyTz._() : super();
|
||||
factory DateTimeAnyTz({
|
||||
$fixnum.Int64? timestamp,
|
||||
$core.int? offset,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (timestamp != null) {
|
||||
_result.timestamp = timestamp;
|
||||
$result.timestamp = timestamp;
|
||||
}
|
||||
if (offset != null) {
|
||||
_result.offset = offset;
|
||||
$result.offset = offset;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
DateTimeAnyTz._() : super();
|
||||
factory DateTimeAnyTz.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory DateTimeAnyTz.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'DateTimeAnyTz',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$fixnum.Int64>(
|
||||
1, _omitFieldNames ? '' : 'timestamp', $pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.int>(2, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -889,8 +743,10 @@ class DateTimeAnyTz extends $pb.GeneratedMessage {
|
||||
'Will be removed in next major version')
|
||||
DateTimeAnyTz copyWith(void Function(DateTimeAnyTz) updates) =>
|
||||
super.copyWith((message) => updates(message as DateTimeAnyTz))
|
||||
as DateTimeAnyTz; // ignore: deprecated_member_use
|
||||
as DateTimeAnyTz;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static DateTimeAnyTz create() => DateTimeAnyTz._();
|
||||
DateTimeAnyTz createEmptyInstance() => create();
|
||||
@ -901,6 +757,7 @@ class DateTimeAnyTz extends $pb.GeneratedMessage {
|
||||
$pb.GeneratedMessage.$_defaultFor<DateTimeAnyTz>(create);
|
||||
static DateTimeAnyTz? _defaultInstance;
|
||||
|
||||
/// / in seconds
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get timestamp => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
@ -913,6 +770,7 @@ class DateTimeAnyTz extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
void clearTimestamp() => clearField(1);
|
||||
|
||||
/// / offset in seconds east of GMT
|
||||
@$pb.TagNumber(2)
|
||||
$core.int get offset => $_getIZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
@ -927,101 +785,6 @@ class DateTimeAnyTz extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class NoteSerializationSettings extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'NoteSerializationSettings',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'modifiedKey',
|
||||
protoName: 'modifiedKey')
|
||||
..aOS(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'createdKey',
|
||||
protoName: 'createdKey')
|
||||
..aOS(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'titleKey',
|
||||
protoName: 'titleKey')
|
||||
..aOS(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'typeKey',
|
||||
protoName: 'typeKey')
|
||||
..aOS(
|
||||
5,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'tagsKey',
|
||||
protoName: 'tagsKey')
|
||||
..aOB(
|
||||
6,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'tagsInString',
|
||||
protoName: 'tagsInString')
|
||||
..aOB(
|
||||
7,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'tagsHaveHash',
|
||||
protoName: 'tagsHaveHash')
|
||||
..aOB(
|
||||
8,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'emojify')
|
||||
..e<DateFormat>(
|
||||
9,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'modifiedFormat',
|
||||
$pb.PbFieldType.OE,
|
||||
protoName: 'modifiedFormat',
|
||||
defaultOrMaker: DateFormat.Iso8601,
|
||||
valueOf: DateFormat.valueOf,
|
||||
enumValues: DateFormat.values)
|
||||
..e<DateFormat>(
|
||||
10,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'createdFormat',
|
||||
$pb.PbFieldType.OE,
|
||||
protoName: 'createdFormat',
|
||||
defaultOrMaker: DateFormat.Iso8601,
|
||||
valueOf: DateFormat.valueOf,
|
||||
enumValues: DateFormat.values)
|
||||
..aOS(
|
||||
11,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'titleSettings',
|
||||
protoName: 'titleSettings')
|
||||
..e<UnixTimestampMagnitude>(
|
||||
12,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'unixTimestampMagnitude',
|
||||
$pb.PbFieldType.OE,
|
||||
protoName: 'unixTimestampMagnitude',
|
||||
defaultOrMaker: UnixTimestampMagnitude.Seconds,
|
||||
valueOf: UnixTimestampMagnitude.valueOf,
|
||||
enumValues: UnixTimestampMagnitude.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
NoteSerializationSettings._() : super();
|
||||
factory NoteSerializationSettings({
|
||||
$core.String? modifiedKey,
|
||||
$core.String? createdKey,
|
||||
@ -1036,51 +799,87 @@ class NoteSerializationSettings extends $pb.GeneratedMessage {
|
||||
$core.String? titleSettings,
|
||||
UnixTimestampMagnitude? unixTimestampMagnitude,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (modifiedKey != null) {
|
||||
_result.modifiedKey = modifiedKey;
|
||||
$result.modifiedKey = modifiedKey;
|
||||
}
|
||||
if (createdKey != null) {
|
||||
_result.createdKey = createdKey;
|
||||
$result.createdKey = createdKey;
|
||||
}
|
||||
if (titleKey != null) {
|
||||
_result.titleKey = titleKey;
|
||||
$result.titleKey = titleKey;
|
||||
}
|
||||
if (typeKey != null) {
|
||||
_result.typeKey = typeKey;
|
||||
$result.typeKey = typeKey;
|
||||
}
|
||||
if (tagsKey != null) {
|
||||
_result.tagsKey = tagsKey;
|
||||
$result.tagsKey = tagsKey;
|
||||
}
|
||||
if (tagsInString != null) {
|
||||
_result.tagsInString = tagsInString;
|
||||
$result.tagsInString = tagsInString;
|
||||
}
|
||||
if (tagsHaveHash != null) {
|
||||
_result.tagsHaveHash = tagsHaveHash;
|
||||
$result.tagsHaveHash = tagsHaveHash;
|
||||
}
|
||||
if (emojify != null) {
|
||||
_result.emojify = emojify;
|
||||
$result.emojify = emojify;
|
||||
}
|
||||
if (modifiedFormat != null) {
|
||||
_result.modifiedFormat = modifiedFormat;
|
||||
$result.modifiedFormat = modifiedFormat;
|
||||
}
|
||||
if (createdFormat != null) {
|
||||
_result.createdFormat = createdFormat;
|
||||
$result.createdFormat = createdFormat;
|
||||
}
|
||||
if (titleSettings != null) {
|
||||
_result.titleSettings = titleSettings;
|
||||
$result.titleSettings = titleSettings;
|
||||
}
|
||||
if (unixTimestampMagnitude != null) {
|
||||
_result.unixTimestampMagnitude = unixTimestampMagnitude;
|
||||
$result.unixTimestampMagnitude = unixTimestampMagnitude;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
NoteSerializationSettings._() : super();
|
||||
factory NoteSerializationSettings.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory NoteSerializationSettings.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'NoteSerializationSettings',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'modifiedKey', protoName: 'modifiedKey')
|
||||
..aOS(2, _omitFieldNames ? '' : 'createdKey', protoName: 'createdKey')
|
||||
..aOS(3, _omitFieldNames ? '' : 'titleKey', protoName: 'titleKey')
|
||||
..aOS(4, _omitFieldNames ? '' : 'typeKey', protoName: 'typeKey')
|
||||
..aOS(5, _omitFieldNames ? '' : 'tagsKey', protoName: 'tagsKey')
|
||||
..aOB(6, _omitFieldNames ? '' : 'tagsInString', protoName: 'tagsInString')
|
||||
..aOB(7, _omitFieldNames ? '' : 'tagsHaveHash', protoName: 'tagsHaveHash')
|
||||
..aOB(8, _omitFieldNames ? '' : 'emojify')
|
||||
..e<DateFormat>(
|
||||
9, _omitFieldNames ? '' : 'modifiedFormat', $pb.PbFieldType.OE,
|
||||
protoName: 'modifiedFormat',
|
||||
defaultOrMaker: DateFormat.Iso8601,
|
||||
valueOf: DateFormat.valueOf,
|
||||
enumValues: DateFormat.values)
|
||||
..e<DateFormat>(
|
||||
10, _omitFieldNames ? '' : 'createdFormat', $pb.PbFieldType.OE,
|
||||
protoName: 'createdFormat',
|
||||
defaultOrMaker: DateFormat.Iso8601,
|
||||
valueOf: DateFormat.valueOf,
|
||||
enumValues: DateFormat.values)
|
||||
..aOS(11, _omitFieldNames ? '' : 'titleSettings',
|
||||
protoName: 'titleSettings')
|
||||
..e<UnixTimestampMagnitude>(
|
||||
12, _omitFieldNames ? '' : 'unixTimestampMagnitude', $pb.PbFieldType.OE,
|
||||
protoName: 'unixTimestampMagnitude',
|
||||
defaultOrMaker: UnixTimestampMagnitude.Seconds,
|
||||
valueOf: UnixTimestampMagnitude.valueOf,
|
||||
enumValues: UnixTimestampMagnitude.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -1092,8 +891,10 @@ class NoteSerializationSettings extends $pb.GeneratedMessage {
|
||||
NoteSerializationSettings copyWith(
|
||||
void Function(NoteSerializationSettings) updates) =>
|
||||
super.copyWith((message) => updates(message as NoteSerializationSettings))
|
||||
as NoteSerializationSettings; // ignore: deprecated_member_use
|
||||
as NoteSerializationSettings;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static NoteSerializationSettings create() => NoteSerializationSettings._();
|
||||
NoteSerializationSettings createEmptyInstance() => create();
|
||||
@ -1248,3 +1049,7 @@ class NoteSerializationSettings extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(12)
|
||||
void clearUnixTimestampMagnitude() => clearField(12);
|
||||
}
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
@ -1,36 +1,25 @@
|
||||
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: core.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
|
||||
|
||||
// ignore_for_file: UNDEFINED_SHOWN_NAME
|
||||
// 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 NoteFileFormat extends $pb.ProtobufEnum {
|
||||
static const NoteFileFormat Markdown = NoteFileFormat._(
|
||||
0,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Markdown');
|
||||
static const NoteFileFormat OrgMode = NoteFileFormat._(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'OrgMode');
|
||||
static const NoteFileFormat Txt = NoteFileFormat._(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Txt');
|
||||
static const NoteFileFormat Markdown =
|
||||
NoteFileFormat._(0, _omitEnumNames ? '' : 'Markdown');
|
||||
static const NoteFileFormat OrgMode =
|
||||
NoteFileFormat._(1, _omitEnumNames ? '' : 'OrgMode');
|
||||
static const NoteFileFormat Txt =
|
||||
NoteFileFormat._(2, _omitEnumNames ? '' : 'Txt');
|
||||
|
||||
static const $core.List<NoteFileFormat> values = <NoteFileFormat>[
|
||||
Markdown,
|
||||
@ -46,26 +35,13 @@ class NoteFileFormat extends $pb.ProtobufEnum {
|
||||
}
|
||||
|
||||
class NoteType extends $pb.ProtobufEnum {
|
||||
static const NoteType Unknown = NoteType._(
|
||||
0,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Unknown');
|
||||
static const NoteType Checklist = NoteType._(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Checklist');
|
||||
static const NoteType Journal = NoteType._(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Journal');
|
||||
static const NoteType Org = NoteType._(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Org');
|
||||
static const NoteType Unknown =
|
||||
NoteType._(0, _omitEnumNames ? '' : 'Unknown');
|
||||
static const NoteType Checklist =
|
||||
NoteType._(1, _omitEnumNames ? '' : 'Checklist');
|
||||
static const NoteType Journal =
|
||||
NoteType._(2, _omitEnumNames ? '' : 'Journal');
|
||||
static const NoteType Org = NoteType._(3, _omitEnumNames ? '' : 'Org');
|
||||
|
||||
static const $core.List<NoteType> values = <NoteType>[
|
||||
Unknown,
|
||||
@ -82,16 +58,10 @@ class NoteType extends $pb.ProtobufEnum {
|
||||
}
|
||||
|
||||
class UnixTimestampMagnitude extends $pb.ProtobufEnum {
|
||||
static const UnixTimestampMagnitude Seconds = UnixTimestampMagnitude._(
|
||||
0,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Seconds');
|
||||
static const UnixTimestampMagnitude Milliseconds = UnixTimestampMagnitude._(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Milliseconds');
|
||||
static const UnixTimestampMagnitude Seconds =
|
||||
UnixTimestampMagnitude._(0, _omitEnumNames ? '' : 'Seconds');
|
||||
static const UnixTimestampMagnitude Milliseconds =
|
||||
UnixTimestampMagnitude._(1, _omitEnumNames ? '' : 'Milliseconds');
|
||||
|
||||
static const $core.List<UnixTimestampMagnitude> values =
|
||||
<UnixTimestampMagnitude>[
|
||||
@ -107,26 +77,19 @@ class UnixTimestampMagnitude extends $pb.ProtobufEnum {
|
||||
}
|
||||
|
||||
class DateFormat extends $pb.ProtobufEnum {
|
||||
static const DateFormat Iso8601 = DateFormat._(
|
||||
0,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'Iso8601');
|
||||
static const DateFormat UnixTimeStamp = DateFormat._(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'UnixTimeStamp');
|
||||
static const DateFormat None = DateFormat._(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
|
||||
? ''
|
||||
: 'None');
|
||||
static const DateFormat Iso8601 =
|
||||
DateFormat._(0, _omitEnumNames ? '' : 'Iso8601');
|
||||
static const DateFormat UnixTimeStamp =
|
||||
DateFormat._(1, _omitEnumNames ? '' : 'UnixTimeStamp');
|
||||
static const DateFormat None = DateFormat._(2, _omitEnumNames ? '' : 'None');
|
||||
static const DateFormat YearMonthDay =
|
||||
DateFormat._(3, _omitEnumNames ? '' : 'YearMonthDay');
|
||||
|
||||
static const $core.List<DateFormat> values = <DateFormat>[
|
||||
Iso8601,
|
||||
UnixTimeStamp,
|
||||
None,
|
||||
YearMonthDay,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, DateFormat> _byValue =
|
||||
@ -135,3 +98,5 @@ class DateFormat extends $pb.ProtobufEnum {
|
||||
|
||||
const DateFormat._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
@ -1,79 +1,87 @@
|
||||
// SPDX-FileCopyrightText: 2021 Vishesh Handa <me@vhanda.in>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: core.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
|
||||
|
||||
// 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:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use noteFileFormatDescriptor instead')
|
||||
const NoteFileFormat$json = const {
|
||||
const NoteFileFormat$json = {
|
||||
'1': 'NoteFileFormat',
|
||||
'2': const [
|
||||
const {'1': 'Markdown', '2': 0},
|
||||
const {'1': 'OrgMode', '2': 1},
|
||||
const {'1': 'Txt', '2': 2},
|
||||
'2': [
|
||||
{'1': 'Markdown', '2': 0},
|
||||
{'1': 'OrgMode', '2': 1},
|
||||
{'1': 'Txt', '2': 2},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `NoteFileFormat`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List noteFileFormatDescriptor = $convert.base64Decode(
|
||||
'Cg5Ob3RlRmlsZUZvcm1hdBIMCghNYXJrZG93bhAAEgsKB09yZ01vZGUQARIHCgNUeHQQAg==');
|
||||
|
||||
@$core.Deprecated('Use noteTypeDescriptor instead')
|
||||
const NoteType$json = const {
|
||||
const NoteType$json = {
|
||||
'1': 'NoteType',
|
||||
'2': const [
|
||||
const {'1': 'Unknown', '2': 0},
|
||||
const {'1': 'Checklist', '2': 1},
|
||||
const {'1': 'Journal', '2': 2},
|
||||
const {'1': 'Org', '2': 3},
|
||||
'2': [
|
||||
{'1': 'Unknown', '2': 0},
|
||||
{'1': 'Checklist', '2': 1},
|
||||
{'1': 'Journal', '2': 2},
|
||||
{'1': 'Org', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `NoteType`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List noteTypeDescriptor = $convert.base64Decode(
|
||||
'CghOb3RlVHlwZRILCgdVbmtub3duEAASDQoJQ2hlY2tsaXN0EAESCwoHSm91cm5hbBACEgcKA09yZxAD');
|
||||
'CghOb3RlVHlwZRILCgdVbmtub3duEAASDQoJQ2hlY2tsaXN0EAESCwoHSm91cm5hbBACEgcKA0'
|
||||
'9yZxAD');
|
||||
|
||||
@$core.Deprecated('Use unixTimestampMagnitudeDescriptor instead')
|
||||
const UnixTimestampMagnitude$json = const {
|
||||
const UnixTimestampMagnitude$json = {
|
||||
'1': 'UnixTimestampMagnitude',
|
||||
'2': const [
|
||||
const {'1': 'Seconds', '2': 0},
|
||||
const {'1': 'Milliseconds', '2': 1},
|
||||
'2': [
|
||||
{'1': 'Seconds', '2': 0},
|
||||
{'1': 'Milliseconds', '2': 1},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnixTimestampMagnitude`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List unixTimestampMagnitudeDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChZVbml4VGltZXN0YW1wTWFnbml0dWRlEgsKB1NlY29uZHMQABIQCgxNaWxsaXNlY29uZHMQAQ==');
|
||||
'ChZVbml4VGltZXN0YW1wTWFnbml0dWRlEgsKB1NlY29uZHMQABIQCgxNaWxsaXNlY29uZHMQAQ'
|
||||
'==');
|
||||
|
||||
@$core.Deprecated('Use dateFormatDescriptor instead')
|
||||
const DateFormat$json = const {
|
||||
const DateFormat$json = {
|
||||
'1': 'DateFormat',
|
||||
'2': const [
|
||||
const {'1': 'Iso8601', '2': 0},
|
||||
const {'1': 'UnixTimeStamp', '2': 1},
|
||||
const {'1': 'None', '2': 2},
|
||||
'2': [
|
||||
{'1': 'Iso8601', '2': 0},
|
||||
{'1': 'UnixTimeStamp', '2': 1},
|
||||
{'1': 'None', '2': 2},
|
||||
{'1': 'YearMonthDay', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `DateFormat`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List dateFormatDescriptor = $convert.base64Decode(
|
||||
'CgpEYXRlRm9ybWF0EgsKB0lzbzg2MDEQABIRCg1Vbml4VGltZVN0YW1wEAESCAoETm9uZRAC');
|
||||
'CgpEYXRlRm9ybWF0EgsKB0lzbzg2MDEQABIRCg1Vbml4VGltZVN0YW1wEAESCAoETm9uZRACEh'
|
||||
'AKDFllYXJNb250aERheRAD');
|
||||
|
||||
@$core.Deprecated('Use fileDescriptor instead')
|
||||
const File$json = const {
|
||||
const File$json = {
|
||||
'1': 'File',
|
||||
'2': const [
|
||||
const {'1': 'repoPath', '3': 1, '4': 1, '5': 9, '10': 'repoPath'},
|
||||
const {'1': 'hash', '3': 2, '4': 1, '5': 12, '10': 'hash'},
|
||||
const {'1': 'filePath', '3': 3, '4': 1, '5': 9, '10': 'filePath'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'repoPath', '3': 1, '4': 1, '5': 9, '10': 'repoPath'},
|
||||
{'1': 'hash', '3': 2, '4': 1, '5': 12, '10': 'hash'},
|
||||
{'1': 'filePath', '3': 3, '4': 1, '5': 9, '10': 'filePath'},
|
||||
{
|
||||
'1': 'modified',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
@ -81,7 +89,7 @@ const File$json = const {
|
||||
'6': '.gitjournal.DateTimeAnyTz',
|
||||
'10': 'modified'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'created',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
@ -89,7 +97,7 @@ const File$json = const {
|
||||
'6': '.gitjournal.DateTimeAnyTz',
|
||||
'10': 'created'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'fileLastModified',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
@ -102,12 +110,17 @@ const File$json = const {
|
||||
|
||||
/// Descriptor for `File`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List fileDescriptor = $convert.base64Decode(
|
||||
'CgRGaWxlEhoKCHJlcG9QYXRoGAEgASgJUghyZXBvUGF0aBISCgRoYXNoGAIgASgMUgRoYXNoEhoKCGZpbGVQYXRoGAMgASgJUghmaWxlUGF0aBI1Cghtb2RpZmllZBgEIAEoCzIZLmdpdGpvdXJuYWwuRGF0ZVRpbWVBbnlUelIIbW9kaWZpZWQSMwoHY3JlYXRlZBgFIAEoCzIZLmdpdGpvdXJuYWwuRGF0ZVRpbWVBbnlUelIHY3JlYXRlZBJFChBmaWxlTGFzdE1vZGlmaWVkGAYgASgLMhkuZ2l0am91cm5hbC5EYXRlVGltZUFueVR6UhBmaWxlTGFzdE1vZGlmaWVk');
|
||||
'CgRGaWxlEhoKCHJlcG9QYXRoGAEgASgJUghyZXBvUGF0aBISCgRoYXNoGAIgASgMUgRoYXNoEh'
|
||||
'oKCGZpbGVQYXRoGAMgASgJUghmaWxlUGF0aBI1Cghtb2RpZmllZBgEIAEoCzIZLmdpdGpvdXJu'
|
||||
'YWwuRGF0ZVRpbWVBbnlUelIIbW9kaWZpZWQSMwoHY3JlYXRlZBgFIAEoCzIZLmdpdGpvdXJuYW'
|
||||
'wuRGF0ZVRpbWVBbnlUelIHY3JlYXRlZBJFChBmaWxlTGFzdE1vZGlmaWVkGAYgASgLMhkuZ2l0'
|
||||
'am91cm5hbC5EYXRlVGltZUFueVR6UhBmaWxlTGFzdE1vZGlmaWVk');
|
||||
|
||||
@$core.Deprecated('Use noteDescriptor instead')
|
||||
const Note$json = const {
|
||||
const Note$json = {
|
||||
'1': 'Note',
|
||||
'2': const [
|
||||
const {
|
||||
'2': [
|
||||
{
|
||||
'1': 'file',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
@ -115,9 +128,9 @@ const Note$json = const {
|
||||
'6': '.gitjournal.File',
|
||||
'10': 'file'
|
||||
},
|
||||
const {'1': 'title', '3': 2, '4': 1, '5': 9, '10': 'title'},
|
||||
const {'1': 'body', '3': 3, '4': 1, '5': 9, '10': 'body'},
|
||||
const {
|
||||
{'1': 'title', '3': 2, '4': 1, '5': 9, '10': 'title'},
|
||||
{'1': 'body', '3': 3, '4': 1, '5': 9, '10': 'body'},
|
||||
{
|
||||
'1': 'type',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
@ -125,8 +138,8 @@ const Note$json = const {
|
||||
'6': '.gitjournal.NoteType',
|
||||
'10': 'type'
|
||||
},
|
||||
const {'1': 'tags', '3': 5, '4': 3, '5': 9, '10': 'tags'},
|
||||
const {
|
||||
{'1': 'tags', '3': 5, '4': 3, '5': 9, '10': 'tags'},
|
||||
{
|
||||
'1': 'extraProps',
|
||||
'3': 6,
|
||||
'4': 3,
|
||||
@ -134,7 +147,7 @@ const Note$json = const {
|
||||
'6': '.gitjournal.Note.ExtraPropsEntry',
|
||||
'10': 'extraProps'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'fileFormat',
|
||||
'3': 7,
|
||||
'4': 1,
|
||||
@ -142,8 +155,8 @@ const Note$json = const {
|
||||
'6': '.gitjournal.NoteFileFormat',
|
||||
'10': 'fileFormat'
|
||||
},
|
||||
const {'1': 'propsList', '3': 13, '4': 3, '5': 9, '10': 'propsList'},
|
||||
const {
|
||||
{'1': 'propsList', '3': 13, '4': 3, '5': 9, '10': 'propsList'},
|
||||
{
|
||||
'1': 'modified',
|
||||
'3': 10,
|
||||
'4': 1,
|
||||
@ -151,7 +164,7 @@ const Note$json = const {
|
||||
'6': '.gitjournal.DateTimeAnyTz',
|
||||
'10': 'modified'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'created',
|
||||
'3': 11,
|
||||
'4': 1,
|
||||
@ -159,7 +172,7 @@ const Note$json = const {
|
||||
'6': '.gitjournal.DateTimeAnyTz',
|
||||
'10': 'created'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'serializerSettings',
|
||||
'3': 12,
|
||||
'4': 1,
|
||||
@ -168,15 +181,15 @@ const Note$json = const {
|
||||
'10': 'serializerSettings'
|
||||
},
|
||||
],
|
||||
'3': const [Note_ExtraPropsEntry$json],
|
||||
'3': [Note_ExtraPropsEntry$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use noteDescriptor instead')
|
||||
const Note_ExtraPropsEntry$json = const {
|
||||
const Note_ExtraPropsEntry$json = {
|
||||
'1': 'ExtraPropsEntry',
|
||||
'2': const [
|
||||
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{
|
||||
'1': 'value',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
@ -185,17 +198,28 @@ const Note_ExtraPropsEntry$json = const {
|
||||
'10': 'value'
|
||||
},
|
||||
],
|
||||
'7': const {'7': true},
|
||||
'7': {'7': true},
|
||||
};
|
||||
|
||||
/// Descriptor for `Note`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List noteDescriptor = $convert.base64Decode(
|
||||
'CgROb3RlEiQKBGZpbGUYASABKAsyEC5naXRqb3VybmFsLkZpbGVSBGZpbGUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEhIKBGJvZHkYAyABKAlSBGJvZHkSKAoEdHlwZRgEIAEoDjIULmdpdGpvdXJuYWwuTm90ZVR5cGVSBHR5cGUSEgoEdGFncxgFIAMoCVIEdGFncxJACgpleHRyYVByb3BzGAYgAygLMiAuZ2l0am91cm5hbC5Ob3RlLkV4dHJhUHJvcHNFbnRyeVIKZXh0cmFQcm9wcxI6CgpmaWxlRm9ybWF0GAcgASgOMhouZ2l0am91cm5hbC5Ob3RlRmlsZUZvcm1hdFIKZmlsZUZvcm1hdBIcCglwcm9wc0xpc3QYDSADKAlSCXByb3BzTGlzdBI1Cghtb2RpZmllZBgKIAEoCzIZLmdpdGpvdXJuYWwuRGF0ZVRpbWVBbnlUelIIbW9kaWZpZWQSMwoHY3JlYXRlZBgLIAEoCzIZLmdpdGpvdXJuYWwuRGF0ZVRpbWVBbnlUelIHY3JlYXRlZBJVChJzZXJpYWxpemVyU2V0dGluZ3MYDCABKAsyJS5naXRqb3VybmFsLk5vdGVTZXJpYWxpemF0aW9uU2V0dGluZ3NSEnNlcmlhbGl6ZXJTZXR0aW5ncxpQCg9FeHRyYVByb3BzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSJwoFdmFsdWUYAiABKAsyES5naXRqb3VybmFsLlVuaW9uUgV2YWx1ZToCOAE=');
|
||||
'CgROb3RlEiQKBGZpbGUYASABKAsyEC5naXRqb3VybmFsLkZpbGVSBGZpbGUSFAoFdGl0bGUYAi'
|
||||
'ABKAlSBXRpdGxlEhIKBGJvZHkYAyABKAlSBGJvZHkSKAoEdHlwZRgEIAEoDjIULmdpdGpvdXJu'
|
||||
'YWwuTm90ZVR5cGVSBHR5cGUSEgoEdGFncxgFIAMoCVIEdGFncxJACgpleHRyYVByb3BzGAYgAy'
|
||||
'gLMiAuZ2l0am91cm5hbC5Ob3RlLkV4dHJhUHJvcHNFbnRyeVIKZXh0cmFQcm9wcxI6CgpmaWxl'
|
||||
'Rm9ybWF0GAcgASgOMhouZ2l0am91cm5hbC5Ob3RlRmlsZUZvcm1hdFIKZmlsZUZvcm1hdBIcCg'
|
||||
'lwcm9wc0xpc3QYDSADKAlSCXByb3BzTGlzdBI1Cghtb2RpZmllZBgKIAEoCzIZLmdpdGpvdXJu'
|
||||
'YWwuRGF0ZVRpbWVBbnlUelIIbW9kaWZpZWQSMwoHY3JlYXRlZBgLIAEoCzIZLmdpdGpvdXJuYW'
|
||||
'wuRGF0ZVRpbWVBbnlUelIHY3JlYXRlZBJVChJzZXJpYWxpemVyU2V0dGluZ3MYDCABKAsyJS5n'
|
||||
'aXRqb3VybmFsLk5vdGVTZXJpYWxpemF0aW9uU2V0dGluZ3NSEnNlcmlhbGl6ZXJTZXR0aW5ncx'
|
||||
'pQCg9FeHRyYVByb3BzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSJwoFdmFsdWUYAiABKAsyES5n'
|
||||
'aXRqb3VybmFsLlVuaW9uUgV2YWx1ZToCOAE=');
|
||||
|
||||
@$core.Deprecated('Use noteListDescriptor instead')
|
||||
const NoteList$json = const {
|
||||
const NoteList$json = {
|
||||
'1': 'NoteList',
|
||||
'2': const [
|
||||
const {
|
||||
'2': [
|
||||
{
|
||||
'1': 'notes',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
@ -209,12 +233,13 @@ const NoteList$json = const {
|
||||
/// Descriptor for `NoteList`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List noteListDescriptor = $convert.base64Decode(
|
||||
'CghOb3RlTGlzdBImCgVub3RlcxgBIAMoCzIQLmdpdGpvdXJuYWwuTm90ZVIFbm90ZXM=');
|
||||
|
||||
@$core.Deprecated('Use mdYamlDocDescriptor instead')
|
||||
const MdYamlDoc$json = const {
|
||||
const MdYamlDoc$json = {
|
||||
'1': 'MdYamlDoc',
|
||||
'2': const [
|
||||
const {'1': 'body', '3': 1, '4': 1, '5': 9, '10': 'body'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'body', '3': 1, '4': 1, '5': 9, '10': 'body'},
|
||||
{
|
||||
'1': 'map',
|
||||
'3': 2,
|
||||
'4': 3,
|
||||
@ -223,15 +248,15 @@ const MdYamlDoc$json = const {
|
||||
'10': 'map'
|
||||
},
|
||||
],
|
||||
'3': const [MdYamlDoc_MapEntry$json],
|
||||
'3': [MdYamlDoc_MapEntry$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use mdYamlDocDescriptor instead')
|
||||
const MdYamlDoc_MapEntry$json = const {
|
||||
const MdYamlDoc_MapEntry$json = {
|
||||
'1': 'MapEntry',
|
||||
'2': const [
|
||||
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{
|
||||
'1': 'value',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
@ -240,33 +265,22 @@ const MdYamlDoc_MapEntry$json = const {
|
||||
'10': 'value'
|
||||
},
|
||||
],
|
||||
'7': const {'7': true},
|
||||
'7': {'7': true},
|
||||
};
|
||||
|
||||
/// Descriptor for `MdYamlDoc`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List mdYamlDocDescriptor = $convert.base64Decode(
|
||||
'CglNZFlhbWxEb2MSEgoEYm9keRgBIAEoCVIEYm9keRIwCgNtYXAYAiADKAsyHi5naXRqb3VybmFsLk1kWWFtbERvYy5NYXBFbnRyeVIDbWFwGkkKCE1hcEVudHJ5EhAKA2tleRgBIAEoCVIDa2V5EicKBXZhbHVlGAIgASgLMhEuZ2l0am91cm5hbC5VbmlvblIFdmFsdWU6AjgB');
|
||||
'CglNZFlhbWxEb2MSEgoEYm9keRgBIAEoCVIEYm9keRIwCgNtYXAYAiADKAsyHi5naXRqb3Vybm'
|
||||
'FsLk1kWWFtbERvYy5NYXBFbnRyeVIDbWFwGkkKCE1hcEVudHJ5EhAKA2tleRgBIAEoCVIDa2V5'
|
||||
'EicKBXZhbHVlGAIgASgLMhEuZ2l0am91cm5hbC5VbmlvblIFdmFsdWU6AjgB');
|
||||
|
||||
@$core.Deprecated('Use unionDescriptor instead')
|
||||
const Union$json = const {
|
||||
const Union$json = {
|
||||
'1': 'Union',
|
||||
'2': const [
|
||||
const {
|
||||
'1': 'booleanValue',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 8,
|
||||
'9': 0,
|
||||
'10': 'booleanValue'
|
||||
},
|
||||
const {
|
||||
'1': 'stringValue',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'9': 0,
|
||||
'10': 'stringValue'
|
||||
},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'booleanValue', '3': 1, '4': 1, '5': 8, '9': 0, '10': 'booleanValue'},
|
||||
{'1': 'stringValue', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'stringValue'},
|
||||
{
|
||||
'1': 'dateValue',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
@ -275,9 +289,9 @@ const Union$json = const {
|
||||
'9': 0,
|
||||
'10': 'dateValue'
|
||||
},
|
||||
const {'1': 'intValue', '3': 4, '4': 1, '5': 3, '9': 0, '10': 'intValue'},
|
||||
const {'1': 'isNull', '3': 7, '4': 1, '5': 8, '9': 0, '10': 'isNull'},
|
||||
const {
|
||||
{'1': 'intValue', '3': 4, '4': 1, '5': 3, '9': 0, '10': 'intValue'},
|
||||
{'1': 'isNull', '3': 7, '4': 1, '5': 8, '9': 0, '10': 'isNull'},
|
||||
{
|
||||
'1': 'listValue',
|
||||
'3': 5,
|
||||
'4': 3,
|
||||
@ -285,7 +299,7 @@ const Union$json = const {
|
||||
'6': '.gitjournal.Union',
|
||||
'10': 'listValue'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'mapValue',
|
||||
'3': 6,
|
||||
'4': 3,
|
||||
@ -294,18 +308,18 @@ const Union$json = const {
|
||||
'10': 'mapValue'
|
||||
},
|
||||
],
|
||||
'3': const [Union_MapValueEntry$json],
|
||||
'8': const [
|
||||
const {'1': 'UnionOneof'},
|
||||
'3': [Union_MapValueEntry$json],
|
||||
'8': [
|
||||
{'1': 'UnionOneof'},
|
||||
],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use unionDescriptor instead')
|
||||
const Union_MapValueEntry$json = const {
|
||||
const Union_MapValueEntry$json = {
|
||||
'1': 'MapValueEntry',
|
||||
'2': const [
|
||||
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{
|
||||
'1': 'value',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
@ -314,37 +328,47 @@ const Union_MapValueEntry$json = const {
|
||||
'10': 'value'
|
||||
},
|
||||
],
|
||||
'7': const {'7': true},
|
||||
'7': {'7': true},
|
||||
};
|
||||
|
||||
/// Descriptor for `Union`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unionDescriptor = $convert.base64Decode(
|
||||
'CgVVbmlvbhIkCgxib29sZWFuVmFsdWUYASABKAhIAFIMYm9vbGVhblZhbHVlEiIKC3N0cmluZ1ZhbHVlGAIgASgJSABSC3N0cmluZ1ZhbHVlEjkKCWRhdGVWYWx1ZRgDIAEoCzIZLmdpdGpvdXJuYWwuRGF0ZVRpbWVBbnlUekgAUglkYXRlVmFsdWUSHAoIaW50VmFsdWUYBCABKANIAFIIaW50VmFsdWUSGAoGaXNOdWxsGAcgASgISABSBmlzTnVsbBIvCglsaXN0VmFsdWUYBSADKAsyES5naXRqb3VybmFsLlVuaW9uUglsaXN0VmFsdWUSOwoIbWFwVmFsdWUYBiADKAsyHy5naXRqb3VybmFsLlVuaW9uLk1hcFZhbHVlRW50cnlSCG1hcFZhbHVlGk4KDU1hcFZhbHVlRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSJwoFdmFsdWUYAiABKAsyES5naXRqb3VybmFsLlVuaW9uUgV2YWx1ZToCOAFCDAoKVW5pb25PbmVvZg==');
|
||||
'CgVVbmlvbhIkCgxib29sZWFuVmFsdWUYASABKAhIAFIMYm9vbGVhblZhbHVlEiIKC3N0cmluZ1'
|
||||
'ZhbHVlGAIgASgJSABSC3N0cmluZ1ZhbHVlEjkKCWRhdGVWYWx1ZRgDIAEoCzIZLmdpdGpvdXJu'
|
||||
'YWwuRGF0ZVRpbWVBbnlUekgAUglkYXRlVmFsdWUSHAoIaW50VmFsdWUYBCABKANIAFIIaW50Vm'
|
||||
'FsdWUSGAoGaXNOdWxsGAcgASgISABSBmlzTnVsbBIvCglsaXN0VmFsdWUYBSADKAsyES5naXRq'
|
||||
'b3VybmFsLlVuaW9uUglsaXN0VmFsdWUSOwoIbWFwVmFsdWUYBiADKAsyHy5naXRqb3VybmFsLl'
|
||||
'VuaW9uLk1hcFZhbHVlRW50cnlSCG1hcFZhbHVlGk4KDU1hcFZhbHVlRW50cnkSEAoDa2V5GAEg'
|
||||
'ASgJUgNrZXkSJwoFdmFsdWUYAiABKAsyES5naXRqb3VybmFsLlVuaW9uUgV2YWx1ZToCOAFCDA'
|
||||
'oKVW5pb25PbmVvZg==');
|
||||
|
||||
@$core.Deprecated('Use dateTimeAnyTzDescriptor instead')
|
||||
const DateTimeAnyTz$json = const {
|
||||
const DateTimeAnyTz$json = {
|
||||
'1': 'DateTimeAnyTz',
|
||||
'2': const [
|
||||
const {'1': 'timestamp', '3': 1, '4': 1, '5': 4, '10': 'timestamp'},
|
||||
const {'1': 'offset', '3': 2, '4': 1, '5': 5, '10': 'offset'},
|
||||
'2': [
|
||||
{'1': 'timestamp', '3': 1, '4': 1, '5': 4, '10': 'timestamp'},
|
||||
{'1': 'offset', '3': 2, '4': 1, '5': 5, '10': 'offset'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `DateTimeAnyTz`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List dateTimeAnyTzDescriptor = $convert.base64Decode(
|
||||
'Cg1EYXRlVGltZUFueVR6EhwKCXRpbWVzdGFtcBgBIAEoBFIJdGltZXN0YW1wEhYKBm9mZnNldBgCIAEoBVIGb2Zmc2V0');
|
||||
'Cg1EYXRlVGltZUFueVR6EhwKCXRpbWVzdGFtcBgBIAEoBFIJdGltZXN0YW1wEhYKBm9mZnNldB'
|
||||
'gCIAEoBVIGb2Zmc2V0');
|
||||
|
||||
@$core.Deprecated('Use noteSerializationSettingsDescriptor instead')
|
||||
const NoteSerializationSettings$json = const {
|
||||
const NoteSerializationSettings$json = {
|
||||
'1': 'NoteSerializationSettings',
|
||||
'2': const [
|
||||
const {'1': 'modifiedKey', '3': 1, '4': 1, '5': 9, '10': 'modifiedKey'},
|
||||
const {'1': 'createdKey', '3': 2, '4': 1, '5': 9, '10': 'createdKey'},
|
||||
const {'1': 'titleKey', '3': 3, '4': 1, '5': 9, '10': 'titleKey'},
|
||||
const {'1': 'typeKey', '3': 4, '4': 1, '5': 9, '10': 'typeKey'},
|
||||
const {'1': 'tagsKey', '3': 5, '4': 1, '5': 9, '10': 'tagsKey'},
|
||||
const {'1': 'tagsInString', '3': 6, '4': 1, '5': 8, '10': 'tagsInString'},
|
||||
const {'1': 'tagsHaveHash', '3': 7, '4': 1, '5': 8, '10': 'tagsHaveHash'},
|
||||
const {'1': 'emojify', '3': 8, '4': 1, '5': 8, '10': 'emojify'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'modifiedKey', '3': 1, '4': 1, '5': 9, '10': 'modifiedKey'},
|
||||
{'1': 'createdKey', '3': 2, '4': 1, '5': 9, '10': 'createdKey'},
|
||||
{'1': 'titleKey', '3': 3, '4': 1, '5': 9, '10': 'titleKey'},
|
||||
{'1': 'typeKey', '3': 4, '4': 1, '5': 9, '10': 'typeKey'},
|
||||
{'1': 'tagsKey', '3': 5, '4': 1, '5': 9, '10': 'tagsKey'},
|
||||
{'1': 'tagsInString', '3': 6, '4': 1, '5': 8, '10': 'tagsInString'},
|
||||
{'1': 'tagsHaveHash', '3': 7, '4': 1, '5': 8, '10': 'tagsHaveHash'},
|
||||
{'1': 'emojify', '3': 8, '4': 1, '5': 8, '10': 'emojify'},
|
||||
{
|
||||
'1': 'modifiedFormat',
|
||||
'3': 9,
|
||||
'4': 1,
|
||||
@ -352,7 +376,7 @@ const NoteSerializationSettings$json = const {
|
||||
'6': '.gitjournal.DateFormat',
|
||||
'10': 'modifiedFormat'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'createdFormat',
|
||||
'3': 10,
|
||||
'4': 1,
|
||||
@ -360,14 +384,8 @@ const NoteSerializationSettings$json = const {
|
||||
'6': '.gitjournal.DateFormat',
|
||||
'10': 'createdFormat'
|
||||
},
|
||||
const {
|
||||
'1': 'titleSettings',
|
||||
'3': 11,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'10': 'titleSettings'
|
||||
},
|
||||
const {
|
||||
{'1': 'titleSettings', '3': 11, '4': 1, '5': 9, '10': 'titleSettings'},
|
||||
{
|
||||
'1': 'unixTimestampMagnitude',
|
||||
'3': 12,
|
||||
'4': 1,
|
||||
@ -379,6 +397,14 @@ const NoteSerializationSettings$json = const {
|
||||
};
|
||||
|
||||
/// Descriptor for `NoteSerializationSettings`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List noteSerializationSettingsDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChlOb3RlU2VyaWFsaXphdGlvblNldHRpbmdzEiAKC21vZGlmaWVkS2V5GAEgASgJUgttb2RpZmllZEtleRIeCgpjcmVhdGVkS2V5GAIgASgJUgpjcmVhdGVkS2V5EhoKCHRpdGxlS2V5GAMgASgJUgh0aXRsZUtleRIYCgd0eXBlS2V5GAQgASgJUgd0eXBlS2V5EhgKB3RhZ3NLZXkYBSABKAlSB3RhZ3NLZXkSIgoMdGFnc0luU3RyaW5nGAYgASgIUgx0YWdzSW5TdHJpbmcSIgoMdGFnc0hhdmVIYXNoGAcgASgIUgx0YWdzSGF2ZUhhc2gSGAoHZW1vamlmeRgIIAEoCFIHZW1vamlmeRI+Cg5tb2RpZmllZEZvcm1hdBgJIAEoDjIWLmdpdGpvdXJuYWwuRGF0ZUZvcm1hdFIObW9kaWZpZWRGb3JtYXQSPAoNY3JlYXRlZEZvcm1hdBgKIAEoDjIWLmdpdGpvdXJuYWwuRGF0ZUZvcm1hdFINY3JlYXRlZEZvcm1hdBIkCg10aXRsZVNldHRpbmdzGAsgASgJUg10aXRsZVNldHRpbmdzEloKFnVuaXhUaW1lc3RhbXBNYWduaXR1ZGUYDCABKA4yIi5naXRqb3VybmFsLlVuaXhUaW1lc3RhbXBNYWduaXR1ZGVSFnVuaXhUaW1lc3RhbXBNYWduaXR1ZGU=');
|
||||
final $typed_data.Uint8List noteSerializationSettingsDescriptor = $convert.base64Decode(
|
||||
'ChlOb3RlU2VyaWFsaXphdGlvblNldHRpbmdzEiAKC21vZGlmaWVkS2V5GAEgASgJUgttb2RpZm'
|
||||
'llZEtleRIeCgpjcmVhdGVkS2V5GAIgASgJUgpjcmVhdGVkS2V5EhoKCHRpdGxlS2V5GAMgASgJ'
|
||||
'Ugh0aXRsZUtleRIYCgd0eXBlS2V5GAQgASgJUgd0eXBlS2V5EhgKB3RhZ3NLZXkYBSABKAlSB3'
|
||||
'RhZ3NLZXkSIgoMdGFnc0luU3RyaW5nGAYgASgIUgx0YWdzSW5TdHJpbmcSIgoMdGFnc0hhdmVI'
|
||||
'YXNoGAcgASgIUgx0YWdzSGF2ZUhhc2gSGAoHZW1vamlmeRgIIAEoCFIHZW1vamlmeRI+Cg5tb2'
|
||||
'RpZmllZEZvcm1hdBgJIAEoDjIWLmdpdGpvdXJuYWwuRGF0ZUZvcm1hdFIObW9kaWZpZWRGb3Jt'
|
||||
'YXQSPAoNY3JlYXRlZEZvcm1hdBgKIAEoDjIWLmdpdGpvdXJuYWwuRGF0ZUZvcm1hdFINY3JlYX'
|
||||
'RlZEZvcm1hdBIkCg10aXRsZVNldHRpbmdzGAsgASgJUg10aXRsZVNldHRpbmdzEloKFnVuaXhU'
|
||||
'aW1lc3RhbXBNYWduaXR1ZGUYDCABKA4yIi5naXRqb3VybmFsLlVuaXhUaW1lc3RhbXBNYWduaX'
|
||||
'R1ZGVSFnVuaXhUaW1lc3RhbXBNYWduaXR1ZGU=');
|
||||
|
@ -34,6 +34,8 @@ extension LocalizedBuildContext on BuildContext {
|
||||
return loc.settingsNoteMetaDataDateFormatIso8601;
|
||||
case Lk.settingsNoteMetaDataDateFormatUnixTimestamp:
|
||||
return loc.settingsNoteMetaDataDateFormatUnixTimestamp;
|
||||
case Lk.settingsNoteMetaDataDateFormatYearMonthDay:
|
||||
return loc.settingsNoteMetaDataDateFormatYearMonthDay;
|
||||
case Lk.settingsNoteMetaDataDateFormatNone:
|
||||
return loc.settingsNoteMetaDataDateFormatNone;
|
||||
case Lk.settingsDisplayImagesThemingThemeVectorGraphicsOff:
|
||||
@ -172,6 +174,7 @@ enum Lk {
|
||||
settingsNoteMetaDataUnixTimestampDateMagnitudeMilliseconds,
|
||||
settingsNoteMetaDataDateFormatIso8601,
|
||||
settingsNoteMetaDataDateFormatUnixTimestamp,
|
||||
settingsNoteMetaDataDateFormatYearMonthDay,
|
||||
settingsNoteMetaDataDateFormatNone,
|
||||
settingsDisplayImagesThemingThemeVectorGraphicsOff,
|
||||
settingsDisplayImagesThemingThemeVectorGraphicsOn,
|
||||
|
@ -128,6 +128,7 @@
|
||||
"settingsNoteMetaDataDateFormatIso8601": "ISO 8601",
|
||||
"settingsNoteMetaDataDateFormatNone": "None",
|
||||
"settingsNoteMetaDataDateFormatUnixTimestamp": "Unix Timestamp",
|
||||
"settingsNoteMetaDataDateFormatYearMonthDay": "YYYY-MM-DD",
|
||||
"settingsPrivacy": "Privacy Policy",
|
||||
"settingsTerms": "Terms and Conditions",
|
||||
"settingsExperimentalTitle": "Experimental Features",
|
||||
|
@ -1,53 +1,44 @@
|
||||
// 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
|
||||
|
||||
// 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 NodeList extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'NodeList',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..pc<Node>(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'node',
|
||||
$pb.PbFieldType.PM,
|
||||
subBuilder: Node.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
NodeList._() : super();
|
||||
factory NodeList({
|
||||
$core.Iterable<Node>? node,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (node != null) {
|
||||
_result.node.addAll(node);
|
||||
$result.node.addAll(node);
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
NodeList._() : super();
|
||||
factory NodeList.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory NodeList.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'NodeList',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..pc<Node>(1, _omitFieldNames ? '' : 'node', $pb.PbFieldType.PM,
|
||||
subBuilder: Node.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -56,9 +47,10 @@ class NodeList extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
NodeList copyWith(void Function(NodeList) updates) =>
|
||||
super.copyWith((message) => updates(message as NodeList))
|
||||
as NodeList; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as NodeList)) as NodeList;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static NodeList create() => NodeList._();
|
||||
NodeList createEmptyInstance() => create();
|
||||
@ -75,54 +67,42 @@ class NodeList extends $pb.GeneratedMessage {
|
||||
enum Node_Value { element, text, notSet }
|
||||
|
||||
class Node extends $pb.GeneratedMessage {
|
||||
static const $core.Map<$core.int, Node_Value> _Node_ValueByTag = {
|
||||
1: Node_Value.element,
|
||||
2: Node_Value.text,
|
||||
0: Node_Value.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'Node',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<Element>(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'element',
|
||||
subBuilder: Element.create)
|
||||
..aOS(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'text')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
Node._() : super();
|
||||
factory Node({
|
||||
Element? element,
|
||||
$core.String? text,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (element != null) {
|
||||
_result.element = element;
|
||||
$result.element = element;
|
||||
}
|
||||
if (text != null) {
|
||||
_result.text = text;
|
||||
$result.text = text;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
Node._() : super();
|
||||
factory Node.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory Node.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static const $core.Map<$core.int, Node_Value> _Node_ValueByTag = {
|
||||
1: Node_Value.element,
|
||||
2: Node_Value.text,
|
||||
0: Node_Value.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Node',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<Element>(1, _omitFieldNames ? '' : 'element',
|
||||
subBuilder: Element.create)
|
||||
..aOS(2, _omitFieldNames ? '' : 'text')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -131,9 +111,10 @@ class Node extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
Node copyWith(void Function(Node) updates) =>
|
||||
super.copyWith((message) => updates(message as Node))
|
||||
as Node; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as Node)) as Node;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Node create() => Node._();
|
||||
Node createEmptyInstance() => create();
|
||||
@ -174,72 +155,50 @@ class Node extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
class Element extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'Element',
|
||||
package: const $pb.PackageName(
|
||||
const $core.bool.fromEnvironment('protobuf.omit_message_names')
|
||||
? ''
|
||||
: 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(
|
||||
1,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'tag')
|
||||
..m<$core.String, $core.String>(
|
||||
2,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'attributes',
|
||||
entryClassName: 'Element.AttributesEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OS,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..pc<Node>(
|
||||
3,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'children',
|
||||
$pb.PbFieldType.PM,
|
||||
subBuilder: Node.create)
|
||||
..aOS(
|
||||
4,
|
||||
const $core.bool.fromEnvironment('protobuf.omit_field_names')
|
||||
? ''
|
||||
: 'generatedId',
|
||||
protoName: 'generatedId')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
Element._() : super();
|
||||
factory Element({
|
||||
$core.String? tag,
|
||||
$core.Map<$core.String, $core.String>? attributes,
|
||||
$core.Iterable<Node>? children,
|
||||
$core.String? generatedId,
|
||||
}) {
|
||||
final _result = create();
|
||||
final $result = create();
|
||||
if (tag != null) {
|
||||
_result.tag = tag;
|
||||
$result.tag = tag;
|
||||
}
|
||||
if (attributes != null) {
|
||||
_result.attributes.addAll(attributes);
|
||||
$result.attributes.addAll(attributes);
|
||||
}
|
||||
if (children != null) {
|
||||
_result.children.addAll(children);
|
||||
$result.children.addAll(children);
|
||||
}
|
||||
if (generatedId != null) {
|
||||
_result.generatedId = generatedId;
|
||||
$result.generatedId = generatedId;
|
||||
}
|
||||
return _result;
|
||||
return $result;
|
||||
}
|
||||
Element._() : super();
|
||||
factory Element.fromBuffer($core.List<$core.int> i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(i, r);
|
||||
factory Element.fromJson($core.String i,
|
||||
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Element',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'gitjournal'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'tag')
|
||||
..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'attributes',
|
||||
entryClassName: 'Element.AttributesEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OS,
|
||||
packageName: const $pb.PackageName('gitjournal'))
|
||||
..pc<Node>(3, _omitFieldNames ? '' : 'children', $pb.PbFieldType.PM,
|
||||
subBuilder: Node.create)
|
||||
..aOS(4, _omitFieldNames ? '' : 'generatedId', protoName: 'generatedId')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@ -248,9 +207,10 @@ class Element extends $pb.GeneratedMessage {
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
Element copyWith(void Function(Element) updates) =>
|
||||
super.copyWith((message) => updates(message as Element))
|
||||
as Element; // ignore: deprecated_member_use
|
||||
super.copyWith((message) => updates(message as Element)) as Element;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Element create() => Element._();
|
||||
Element createEmptyInstance() => create();
|
||||
@ -290,3 +250,7 @@ class Element extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(4)
|
||||
void clearGeneratedId() => clearField(4);
|
||||
}
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
@ -1,10 +1,10 @@
|
||||
// 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
|
||||
|
||||
// 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
|
||||
|
@ -1,23 +1,23 @@
|
||||
// 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
|
||||
|
||||
// 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:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use nodeListDescriptor instead')
|
||||
const NodeList$json = const {
|
||||
const NodeList$json = {
|
||||
'1': 'NodeList',
|
||||
'2': const [
|
||||
const {
|
||||
'2': [
|
||||
{
|
||||
'1': 'node',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
@ -31,11 +31,12 @@ const NodeList$json = const {
|
||||
/// 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 {
|
||||
const Node$json = {
|
||||
'1': 'Node',
|
||||
'2': const [
|
||||
const {
|
||||
'2': [
|
||||
{
|
||||
'1': 'element',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
@ -44,22 +45,24 @@ const Node$json = const {
|
||||
'9': 0,
|
||||
'10': 'element'
|
||||
},
|
||||
const {'1': 'text', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'text'},
|
||||
{'1': 'text', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'text'},
|
||||
],
|
||||
'8': const [
|
||||
const {'1': 'value'},
|
||||
'8': [
|
||||
{'1': 'value'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Node`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List nodeDescriptor = $convert.base64Decode(
|
||||
'CgROb2RlEi8KB2VsZW1lbnQYASABKAsyEy5naXRqb3VybmFsLkVsZW1lbnRIAFIHZWxlbWVudBIUCgR0ZXh0GAIgASgJSABSBHRleHRCBwoFdmFsdWU=');
|
||||
'CgROb2RlEi8KB2VsZW1lbnQYASABKAsyEy5naXRqb3VybmFsLkVsZW1lbnRIAFIHZWxlbWVudB'
|
||||
'IUCgR0ZXh0GAIgASgJSABSBHRleHRCBwoFdmFsdWU=');
|
||||
|
||||
@$core.Deprecated('Use elementDescriptor instead')
|
||||
const Element$json = const {
|
||||
const Element$json = {
|
||||
'1': 'Element',
|
||||
'2': const [
|
||||
const {'1': 'tag', '3': 1, '4': 1, '5': 9, '10': 'tag'},
|
||||
const {
|
||||
'2': [
|
||||
{'1': 'tag', '3': 1, '4': 1, '5': 9, '10': 'tag'},
|
||||
{
|
||||
'1': 'attributes',
|
||||
'3': 2,
|
||||
'4': 3,
|
||||
@ -67,7 +70,7 @@ const Element$json = const {
|
||||
'6': '.gitjournal.Element.AttributesEntry',
|
||||
'10': 'attributes'
|
||||
},
|
||||
const {
|
||||
{
|
||||
'1': 'children',
|
||||
'3': 3,
|
||||
'4': 3,
|
||||
@ -75,21 +78,25 @@ const Element$json = const {
|
||||
'6': '.gitjournal.Node',
|
||||
'10': 'children'
|
||||
},
|
||||
const {'1': 'generatedId', '3': 4, '4': 1, '5': 9, '10': 'generatedId'},
|
||||
{'1': 'generatedId', '3': 4, '4': 1, '5': 9, '10': 'generatedId'},
|
||||
],
|
||||
'3': const [Element_AttributesEntry$json],
|
||||
'3': [Element_AttributesEntry$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use elementDescriptor instead')
|
||||
const Element_AttributesEntry$json = const {
|
||||
const Element_AttributesEntry$json = {
|
||||
'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'},
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'},
|
||||
],
|
||||
'7': const {'7': true},
|
||||
'7': {'7': true},
|
||||
};
|
||||
|
||||
/// Descriptor for `Element`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List elementDescriptor = $convert.base64Decode(
|
||||
'CgdFbGVtZW50EhAKA3RhZxgBIAEoCVIDdGFnEkMKCmF0dHJpYnV0ZXMYAiADKAsyIy5naXRqb3VybmFsLkVsZW1lbnQuQXR0cmlidXRlc0VudHJ5UgphdHRyaWJ1dGVzEiwKCGNoaWxkcmVuGAMgAygLMhAuZ2l0am91cm5hbC5Ob2RlUghjaGlsZHJlbhIgCgtnZW5lcmF0ZWRJZBgEIAEoCVILZ2VuZXJhdGVkSWQaPQoPQXR0cmlidXRlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE=');
|
||||
'CgdFbGVtZW50EhAKA3RhZxgBIAEoCVIDdGFnEkMKCmF0dHJpYnV0ZXMYAiADKAsyIy5naXRqb3'
|
||||
'VybmFsLkVsZW1lbnQuQXR0cmlidXRlc0VudHJ5UgphdHRyaWJ1dGVzEiwKCGNoaWxkcmVuGAMg'
|
||||
'AygLMhAuZ2l0am91cm5hbC5Ob2RlUghjaGlsZHJlbhIgCgtnZW5lcmF0ZWRJZBgEIAEoCVILZ2'
|
||||
'VuZXJhdGVkSWQaPQoPQXR0cmlidXRlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVl'
|
||||
'GAIgASgJUgV2YWx1ZToCOAE=');
|
||||
|
@ -87,6 +87,7 @@ enum DateFormat {
|
||||
Iso8601 = 0;
|
||||
UnixTimeStamp = 1;
|
||||
None = 2;
|
||||
YearMonthDay = 3;
|
||||
}
|
||||
|
||||
message NoteSerializationSettings {
|
||||
|
@ -314,6 +314,48 @@ updated: 1594721689
|
||||
created: 1592043289
|
||||
---
|
||||
|
||||
Hello
|
||||
""";
|
||||
|
||||
await NoteStorage.save(note);
|
||||
|
||||
var actualContent = io.File(noteFullPath).readAsStringSync();
|
||||
expect(actualContent, equals(expectedContent));
|
||||
});
|
||||
|
||||
test('Date Only FrontMatter', () async {
|
||||
var content = """---
|
||||
bar: Foo
|
||||
modified: 2022-07-14
|
||||
created: 2024-07-14
|
||||
---
|
||||
|
||||
Hello
|
||||
""";
|
||||
|
||||
var noteFullPath = p.join(repoPath, "note.md");
|
||||
await io.File(noteFullPath).writeAsString(content);
|
||||
|
||||
var parentFolder = NotesFolderFS.root(config, fileStorage);
|
||||
var file = File.short("note.md", repoPath, gitDt);
|
||||
var note = await NoteStorage.load(file, parentFolder);
|
||||
parentFolder.add(note);
|
||||
|
||||
expect(note.modified, DateTime.parse('2022-07-14'));
|
||||
expect(note.created, DateTime.parse('2024-07-14'));
|
||||
|
||||
note = note.copyWith(
|
||||
modified: DateTime.parse('2022-08-15'),
|
||||
created: DateTime.parse('2024-08-15'),
|
||||
file: note.file.copyFile(oid: GitHash.zero()),
|
||||
);
|
||||
|
||||
var expectedContent = """---
|
||||
bar: Foo
|
||||
modified: 2022-08-15
|
||||
created: 2024-08-15
|
||||
---
|
||||
|
||||
Hello
|
||||
""";
|
||||
|
||||
|
Reference in New Issue
Block a user