640 lines
		
	
	
		
			22 KiB
		
	
	
	
		
			Dart
		
	
	
	
			
		
		
	
	
			640 lines
		
	
	
		
			22 KiB
		
	
	
	
		
			Dart
		
	
	
	
| // This is a generated file - do not edit.
 | |
| //
 | |
| // Generated from note.proto.
 | |
| 
 | |
| // @dart = 3.3
 | |
| 
 | |
| // ignore_for_file: annotate_overrides, camel_case_types, comment_references
 | |
| // ignore_for_file: constant_identifier_names
 | |
| // ignore_for_file: curly_braces_in_flow_control_structures
 | |
| // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
 | |
| // ignore_for_file: non_constant_identifier_names
 | |
| 
 | |
| import 'dart:core' as $core;
 | |
| 
 | |
| import 'package:fixnum/fixnum.dart' as $fixnum;
 | |
| import 'package:protobuf/protobuf.dart' as $pb;
 | |
| 
 | |
| export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
 | |
| 
 | |
| /// 请求消息定义
 | |
| class CreateNoteRequest extends $pb.GeneratedMessage {
 | |
|   factory CreateNoteRequest({
 | |
|     $fixnum.Int64? cloudId,
 | |
|     $core.String? cloudIdentity,
 | |
|     $core.String? title,
 | |
|     $core.String? content,
 | |
|     $core.String? category,
 | |
|     $core.String? tags,
 | |
|     $core.bool? isMarkdown,
 | |
|     $core.bool? isPinned,
 | |
|     $core.bool? isPrivate,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (cloudId != null) result.cloudId = cloudId;
 | |
|     if (cloudIdentity != null) result.cloudIdentity = cloudIdentity;
 | |
|     if (title != null) result.title = title;
 | |
|     if (content != null) result.content = content;
 | |
|     if (category != null) result.category = category;
 | |
|     if (tags != null) result.tags = tags;
 | |
|     if (isMarkdown != null) result.isMarkdown = isMarkdown;
 | |
|     if (isPinned != null) result.isPinned = isPinned;
 | |
|     if (isPrivate != null) result.isPrivate = isPrivate;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   CreateNoteRequest._();
 | |
| 
 | |
|   factory CreateNoteRequest.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory CreateNoteRequest.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'CreateNoteRequest',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'cloudId', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..aOS(2, _omitFieldNames ? '' : 'cloudIdentity')
 | |
|     ..aOS(3, _omitFieldNames ? '' : 'title')
 | |
|     ..aOS(4, _omitFieldNames ? '' : 'content')
 | |
|     ..aOS(5, _omitFieldNames ? '' : 'category')
 | |
|     ..aOS(6, _omitFieldNames ? '' : 'tags')
 | |
|     ..aOB(7, _omitFieldNames ? '' : 'isMarkdown')
 | |
|     ..aOB(8, _omitFieldNames ? '' : 'isPinned')
 | |
|     ..aOB(9, _omitFieldNames ? '' : 'isPrivate')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CreateNoteRequest clone() => CreateNoteRequest()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CreateNoteRequest copyWith(void Function(CreateNoteRequest) updates) =>
 | |
|       super.copyWith((message) => updates(message as CreateNoteRequest))
 | |
|           as CreateNoteRequest;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CreateNoteRequest create() => CreateNoteRequest._();
 | |
|   @$core.override
 | |
|   CreateNoteRequest createEmptyInstance() => create();
 | |
|   static $pb.PbList<CreateNoteRequest> createRepeated() =>
 | |
|       $pb.PbList<CreateNoteRequest>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CreateNoteRequest getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<CreateNoteRequest>(create);
 | |
|   static CreateNoteRequest? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get cloudId => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set cloudId($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasCloudId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearCloudId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.String get cloudIdentity => $_getSZ(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set cloudIdentity($core.String value) => $_setString(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasCloudIdentity() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearCloudIdentity() => $_clearField(2);
 | |
| 
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.String get title => $_getSZ(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   set title($core.String value) => $_setString(2, value);
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.bool hasTitle() => $_has(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   void clearTitle() => $_clearField(3);
 | |
| 
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.String get content => $_getSZ(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   set content($core.String value) => $_setString(3, value);
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.bool hasContent() => $_has(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   void clearContent() => $_clearField(4);
 | |
| 
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.String get category => $_getSZ(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   set category($core.String value) => $_setString(4, value);
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.bool hasCategory() => $_has(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   void clearCategory() => $_clearField(5);
 | |
| 
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.String get tags => $_getSZ(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   set tags($core.String value) => $_setString(5, value);
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool hasTags() => $_has(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   void clearTags() => $_clearField(6);
 | |
| 
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.bool get isMarkdown => $_getBF(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   set isMarkdown($core.bool value) => $_setBool(6, value);
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.bool hasIsMarkdown() => $_has(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   void clearIsMarkdown() => $_clearField(7);
 | |
| 
 | |
|   @$pb.TagNumber(8)
 | |
|   $core.bool get isPinned => $_getBF(7);
 | |
|   @$pb.TagNumber(8)
 | |
|   set isPinned($core.bool value) => $_setBool(7, value);
 | |
|   @$pb.TagNumber(8)
 | |
|   $core.bool hasIsPinned() => $_has(7);
 | |
|   @$pb.TagNumber(8)
 | |
|   void clearIsPinned() => $_clearField(8);
 | |
| 
 | |
|   @$pb.TagNumber(9)
 | |
|   $core.bool get isPrivate => $_getBF(8);
 | |
|   @$pb.TagNumber(9)
 | |
|   set isPrivate($core.bool value) => $_setBool(8, value);
 | |
|   @$pb.TagNumber(9)
 | |
|   $core.bool hasIsPrivate() => $_has(8);
 | |
|   @$pb.TagNumber(9)
 | |
|   void clearIsPrivate() => $_clearField(9);
 | |
| }
 | |
| 
 | |
| class ListNotesResponse extends $pb.GeneratedMessage {
 | |
|   factory ListNotesResponse({
 | |
|     $core.Iterable<CloudNoteItem>? notes,
 | |
|     $fixnum.Int64? total,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (notes != null) result.notes.addAll(notes);
 | |
|     if (total != null) result.total = total;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   ListNotesResponse._();
 | |
| 
 | |
|   factory ListNotesResponse.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory ListNotesResponse.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'ListNotesResponse',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..pc<CloudNoteItem>(1, _omitFieldNames ? '' : 'notes', $pb.PbFieldType.PM,
 | |
|         subBuilder: CloudNoteItem.create)
 | |
|     ..aInt64(2, _omitFieldNames ? '' : 'total')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ListNotesResponse clone() => ListNotesResponse()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ListNotesResponse copyWith(void Function(ListNotesResponse) updates) =>
 | |
|       super.copyWith((message) => updates(message as ListNotesResponse))
 | |
|           as ListNotesResponse;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ListNotesResponse create() => ListNotesResponse._();
 | |
|   @$core.override
 | |
|   ListNotesResponse createEmptyInstance() => create();
 | |
|   static $pb.PbList<ListNotesResponse> createRepeated() =>
 | |
|       $pb.PbList<ListNotesResponse>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ListNotesResponse getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<ListNotesResponse>(create);
 | |
|   static ListNotesResponse? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $pb.PbList<CloudNoteItem> get notes => $_getList(0);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $fixnum.Int64 get total => $_getI64(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set total($fixnum.Int64 value) => $_setInt64(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasTotal() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearTotal() => $_clearField(2);
 | |
| }
 | |
| 
 | |
| class TogglePinRequest extends $pb.GeneratedMessage {
 | |
|   factory TogglePinRequest({
 | |
|     $fixnum.Int64? id,
 | |
|     $core.bool? isPinned,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (id != null) result.id = id;
 | |
|     if (isPinned != null) result.isPinned = isPinned;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   TogglePinRequest._();
 | |
| 
 | |
|   factory TogglePinRequest.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory TogglePinRequest.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'TogglePinRequest',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..aOB(2, _omitFieldNames ? '' : 'isPinned')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   TogglePinRequest clone() => TogglePinRequest()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   TogglePinRequest copyWith(void Function(TogglePinRequest) updates) =>
 | |
|       super.copyWith((message) => updates(message as TogglePinRequest))
 | |
|           as TogglePinRequest;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static TogglePinRequest create() => TogglePinRequest._();
 | |
|   @$core.override
 | |
|   TogglePinRequest createEmptyInstance() => create();
 | |
|   static $pb.PbList<TogglePinRequest> createRepeated() =>
 | |
|       $pb.PbList<TogglePinRequest>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static TogglePinRequest getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<TogglePinRequest>(create);
 | |
|   static TogglePinRequest? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get id => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set id($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool get isPinned => $_getBF(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set isPinned($core.bool value) => $_setBool(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasIsPinned() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearIsPinned() => $_clearField(2);
 | |
| }
 | |
| 
 | |
| /// 知识笔记模型
 | |
| class CloudNoteItem extends $pb.GeneratedMessage {
 | |
|   factory CloudNoteItem({
 | |
|     $fixnum.Int64? id,
 | |
|     $core.String? identity,
 | |
|     $core.String? title,
 | |
|     $core.String? content,
 | |
|     $core.String? category,
 | |
|     $core.String? tags,
 | |
|     $core.bool? isMarkdown,
 | |
|     $core.bool? isPinned,
 | |
|     $core.bool? isPrivate,
 | |
|     $core.int? views,
 | |
|     $core.String? createdAt,
 | |
|     $core.String? updatedAt,
 | |
|     $core.Iterable<NoteAttachmentItem>? attachments,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (id != null) result.id = id;
 | |
|     if (identity != null) result.identity = identity;
 | |
|     if (title != null) result.title = title;
 | |
|     if (content != null) result.content = content;
 | |
|     if (category != null) result.category = category;
 | |
|     if (tags != null) result.tags = tags;
 | |
|     if (isMarkdown != null) result.isMarkdown = isMarkdown;
 | |
|     if (isPinned != null) result.isPinned = isPinned;
 | |
|     if (isPrivate != null) result.isPrivate = isPrivate;
 | |
|     if (views != null) result.views = views;
 | |
|     if (createdAt != null) result.createdAt = createdAt;
 | |
|     if (updatedAt != null) result.updatedAt = updatedAt;
 | |
|     if (attachments != null) result.attachments.addAll(attachments);
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   CloudNoteItem._();
 | |
| 
 | |
|   factory CloudNoteItem.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory CloudNoteItem.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'CloudNoteItem',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..aOS(2, _omitFieldNames ? '' : 'identity')
 | |
|     ..aOS(3, _omitFieldNames ? '' : 'title')
 | |
|     ..aOS(4, _omitFieldNames ? '' : 'content')
 | |
|     ..aOS(5, _omitFieldNames ? '' : 'category')
 | |
|     ..aOS(6, _omitFieldNames ? '' : 'tags')
 | |
|     ..aOB(7, _omitFieldNames ? '' : 'isMarkdown')
 | |
|     ..aOB(8, _omitFieldNames ? '' : 'isPinned')
 | |
|     ..aOB(9, _omitFieldNames ? '' : 'isPrivate')
 | |
|     ..a<$core.int>(10, _omitFieldNames ? '' : 'views', $pb.PbFieldType.O3)
 | |
|     ..aOS(11, _omitFieldNames ? '' : 'createdAt')
 | |
|     ..aOS(12, _omitFieldNames ? '' : 'updatedAt')
 | |
|     ..pc<NoteAttachmentItem>(
 | |
|         13, _omitFieldNames ? '' : 'attachments', $pb.PbFieldType.PM,
 | |
|         subBuilder: NoteAttachmentItem.create)
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CloudNoteItem clone() => CloudNoteItem()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CloudNoteItem copyWith(void Function(CloudNoteItem) updates) =>
 | |
|       super.copyWith((message) => updates(message as CloudNoteItem))
 | |
|           as CloudNoteItem;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CloudNoteItem create() => CloudNoteItem._();
 | |
|   @$core.override
 | |
|   CloudNoteItem createEmptyInstance() => create();
 | |
|   static $pb.PbList<CloudNoteItem> createRepeated() =>
 | |
|       $pb.PbList<CloudNoteItem>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CloudNoteItem getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<CloudNoteItem>(create);
 | |
|   static CloudNoteItem? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get id => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set id($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.String get identity => $_getSZ(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set identity($core.String value) => $_setString(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasIdentity() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearIdentity() => $_clearField(2);
 | |
| 
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.String get title => $_getSZ(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   set title($core.String value) => $_setString(2, value);
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.bool hasTitle() => $_has(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   void clearTitle() => $_clearField(3);
 | |
| 
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.String get content => $_getSZ(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   set content($core.String value) => $_setString(3, value);
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.bool hasContent() => $_has(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   void clearContent() => $_clearField(4);
 | |
| 
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.String get category => $_getSZ(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   set category($core.String value) => $_setString(4, value);
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.bool hasCategory() => $_has(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   void clearCategory() => $_clearField(5);
 | |
| 
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.String get tags => $_getSZ(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   set tags($core.String value) => $_setString(5, value);
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool hasTags() => $_has(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   void clearTags() => $_clearField(6);
 | |
| 
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.bool get isMarkdown => $_getBF(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   set isMarkdown($core.bool value) => $_setBool(6, value);
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.bool hasIsMarkdown() => $_has(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   void clearIsMarkdown() => $_clearField(7);
 | |
| 
 | |
|   @$pb.TagNumber(8)
 | |
|   $core.bool get isPinned => $_getBF(7);
 | |
|   @$pb.TagNumber(8)
 | |
|   set isPinned($core.bool value) => $_setBool(7, value);
 | |
|   @$pb.TagNumber(8)
 | |
|   $core.bool hasIsPinned() => $_has(7);
 | |
|   @$pb.TagNumber(8)
 | |
|   void clearIsPinned() => $_clearField(8);
 | |
| 
 | |
|   @$pb.TagNumber(9)
 | |
|   $core.bool get isPrivate => $_getBF(8);
 | |
|   @$pb.TagNumber(9)
 | |
|   set isPrivate($core.bool value) => $_setBool(8, value);
 | |
|   @$pb.TagNumber(9)
 | |
|   $core.bool hasIsPrivate() => $_has(8);
 | |
|   @$pb.TagNumber(9)
 | |
|   void clearIsPrivate() => $_clearField(9);
 | |
| 
 | |
|   @$pb.TagNumber(10)
 | |
|   $core.int get views => $_getIZ(9);
 | |
|   @$pb.TagNumber(10)
 | |
|   set views($core.int value) => $_setSignedInt32(9, value);
 | |
|   @$pb.TagNumber(10)
 | |
|   $core.bool hasViews() => $_has(9);
 | |
|   @$pb.TagNumber(10)
 | |
|   void clearViews() => $_clearField(10);
 | |
| 
 | |
|   @$pb.TagNumber(11)
 | |
|   $core.String get createdAt => $_getSZ(10);
 | |
|   @$pb.TagNumber(11)
 | |
|   set createdAt($core.String value) => $_setString(10, value);
 | |
|   @$pb.TagNumber(11)
 | |
|   $core.bool hasCreatedAt() => $_has(10);
 | |
|   @$pb.TagNumber(11)
 | |
|   void clearCreatedAt() => $_clearField(11);
 | |
| 
 | |
|   @$pb.TagNumber(12)
 | |
|   $core.String get updatedAt => $_getSZ(11);
 | |
|   @$pb.TagNumber(12)
 | |
|   set updatedAt($core.String value) => $_setString(11, value);
 | |
|   @$pb.TagNumber(12)
 | |
|   $core.bool hasUpdatedAt() => $_has(11);
 | |
|   @$pb.TagNumber(12)
 | |
|   void clearUpdatedAt() => $_clearField(12);
 | |
| 
 | |
|   /// 关联关系
 | |
|   @$pb.TagNumber(13)
 | |
|   $pb.PbList<NoteAttachmentItem> get attachments => $_getList(12);
 | |
| }
 | |
| 
 | |
| /// 笔记附件模型
 | |
| class NoteAttachmentItem extends $pb.GeneratedMessage {
 | |
|   factory NoteAttachmentItem({
 | |
|     $fixnum.Int64? id,
 | |
|     $fixnum.Int64? noteId,
 | |
|     $core.String? fileName,
 | |
|     $core.String? filePath,
 | |
|     $fixnum.Int64? fileSize,
 | |
|     $core.String? mimeType,
 | |
|     $core.String? createdAt,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (id != null) result.id = id;
 | |
|     if (noteId != null) result.noteId = noteId;
 | |
|     if (fileName != null) result.fileName = fileName;
 | |
|     if (filePath != null) result.filePath = filePath;
 | |
|     if (fileSize != null) result.fileSize = fileSize;
 | |
|     if (mimeType != null) result.mimeType = mimeType;
 | |
|     if (createdAt != null) result.createdAt = createdAt;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   NoteAttachmentItem._();
 | |
| 
 | |
|   factory NoteAttachmentItem.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory NoteAttachmentItem.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'NoteAttachmentItem',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'noteId', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..aOS(3, _omitFieldNames ? '' : 'fileName')
 | |
|     ..aOS(4, _omitFieldNames ? '' : 'filePath')
 | |
|     ..aInt64(5, _omitFieldNames ? '' : 'fileSize')
 | |
|     ..aOS(6, _omitFieldNames ? '' : 'mimeType')
 | |
|     ..aOS(7, _omitFieldNames ? '' : 'createdAt')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   NoteAttachmentItem clone() => NoteAttachmentItem()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   NoteAttachmentItem copyWith(void Function(NoteAttachmentItem) updates) =>
 | |
|       super.copyWith((message) => updates(message as NoteAttachmentItem))
 | |
|           as NoteAttachmentItem;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static NoteAttachmentItem create() => NoteAttachmentItem._();
 | |
|   @$core.override
 | |
|   NoteAttachmentItem createEmptyInstance() => create();
 | |
|   static $pb.PbList<NoteAttachmentItem> createRepeated() =>
 | |
|       $pb.PbList<NoteAttachmentItem>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static NoteAttachmentItem getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<NoteAttachmentItem>(create);
 | |
|   static NoteAttachmentItem? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get id => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set id($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $fixnum.Int64 get noteId => $_getI64(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set noteId($fixnum.Int64 value) => $_setInt64(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasNoteId() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearNoteId() => $_clearField(2);
 | |
| 
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.String get fileName => $_getSZ(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   set fileName($core.String value) => $_setString(2, value);
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.bool hasFileName() => $_has(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   void clearFileName() => $_clearField(3);
 | |
| 
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.String get filePath => $_getSZ(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   set filePath($core.String value) => $_setString(3, value);
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.bool hasFilePath() => $_has(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   void clearFilePath() => $_clearField(4);
 | |
| 
 | |
|   @$pb.TagNumber(5)
 | |
|   $fixnum.Int64 get fileSize => $_getI64(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   set fileSize($fixnum.Int64 value) => $_setInt64(4, value);
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.bool hasFileSize() => $_has(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   void clearFileSize() => $_clearField(5);
 | |
| 
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.String get mimeType => $_getSZ(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   set mimeType($core.String value) => $_setString(5, value);
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool hasMimeType() => $_has(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   void clearMimeType() => $_clearField(6);
 | |
| 
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.String get createdAt => $_getSZ(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   set createdAt($core.String value) => $_setString(6, value);
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.bool hasCreatedAt() => $_has(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   void clearCreatedAt() => $_clearField(7);
 | |
| }
 | |
| 
 | |
| const $core.bool _omitFieldNames =
 | |
|     $core.bool.fromEnvironment('protobuf.omit_field_names');
 | |
| const $core.bool _omitMessageNames =
 | |
|     $core.bool.fromEnvironment('protobuf.omit_message_names');
 |