616 lines
19 KiB
Go
616 lines
19 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc (unknown)
|
|
// source: note.proto
|
|
|
|
package cloud
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 请求消息定义
|
|
type CreateNoteRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CloudId uint64 `protobuf:"varint,1,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
|
|
CloudIdentity string `protobuf:"bytes,2,opt,name=cloud_identity,json=cloudIdentity,proto3" json:"cloud_identity,omitempty"`
|
|
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // 标题
|
|
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 内容
|
|
Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` // 分类
|
|
Tags string `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` // 标签,逗号分隔
|
|
IsMarkdown bool `protobuf:"varint,7,opt,name=is_markdown,json=isMarkdown,proto3" json:"is_markdown,omitempty"` // 是否是markdown格式
|
|
IsPinned bool `protobuf:"varint,8,opt,name=is_pinned,json=isPinned,proto3" json:"is_pinned,omitempty"` // 是否是置顶
|
|
IsPrivate bool `protobuf:"varint,9,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` // 是否是私有
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateNoteRequest) Reset() {
|
|
*x = CreateNoteRequest{}
|
|
mi := &file_note_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateNoteRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateNoteRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_note_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateNoteRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateNoteRequest) Descriptor() ([]byte, []int) {
|
|
return file_note_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetCloudId() uint64 {
|
|
if x != nil {
|
|
return x.CloudId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetCloudIdentity() string {
|
|
if x != nil {
|
|
return x.CloudIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetTags() string {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetIsMarkdown() bool {
|
|
if x != nil {
|
|
return x.IsMarkdown
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetIsPinned() bool {
|
|
if x != nil {
|
|
return x.IsPinned
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateNoteRequest) GetIsPrivate() bool {
|
|
if x != nil {
|
|
return x.IsPrivate
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListNotesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Notes []*CloudNoteItem `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"`
|
|
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListNotesResponse) Reset() {
|
|
*x = ListNotesResponse{}
|
|
mi := &file_note_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListNotesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListNotesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListNotesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_note_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListNotesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListNotesResponse) Descriptor() ([]byte, []int) {
|
|
return file_note_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ListNotesResponse) GetNotes() []*CloudNoteItem {
|
|
if x != nil {
|
|
return x.Notes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListNotesResponse) GetTotal() int64 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TogglePinRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
IsPinned bool `protobuf:"varint,2,opt,name=is_pinned,json=isPinned,proto3" json:"is_pinned,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TogglePinRequest) Reset() {
|
|
*x = TogglePinRequest{}
|
|
mi := &file_note_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TogglePinRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TogglePinRequest) ProtoMessage() {}
|
|
|
|
func (x *TogglePinRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_note_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TogglePinRequest.ProtoReflect.Descriptor instead.
|
|
func (*TogglePinRequest) Descriptor() ([]byte, []int) {
|
|
return file_note_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *TogglePinRequest) GetId() uint64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TogglePinRequest) GetIsPinned() bool {
|
|
if x != nil {
|
|
return x.IsPinned
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 知识笔记模型
|
|
type CloudNoteItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
|
|
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // 标题
|
|
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 内容
|
|
Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` // 分类
|
|
Tags string `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` // 标签,逗号分隔
|
|
IsMarkdown bool `protobuf:"varint,7,opt,name=is_markdown,json=isMarkdown,proto3" json:"is_markdown,omitempty"` // 是否是markdown格式
|
|
IsPinned bool `protobuf:"varint,8,opt,name=is_pinned,json=isPinned,proto3" json:"is_pinned,omitempty"` // 是否是置顶
|
|
IsPrivate bool `protobuf:"varint,9,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` // 是否是私有
|
|
Views int32 `protobuf:"varint,10,opt,name=views,proto3" json:"views,omitempty"` // 浏览次数
|
|
CreatedAt string `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt string `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
// 关联关系
|
|
Attachments []*NoteAttachmentItem `protobuf:"bytes,13,rep,name=attachments,proto3" json:"attachments,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CloudNoteItem) Reset() {
|
|
*x = CloudNoteItem{}
|
|
mi := &file_note_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CloudNoteItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CloudNoteItem) ProtoMessage() {}
|
|
|
|
func (x *CloudNoteItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_note_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CloudNoteItem.ProtoReflect.Descriptor instead.
|
|
func (*CloudNoteItem) Descriptor() ([]byte, []int) {
|
|
return file_note_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetId() uint64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetIdentity() string {
|
|
if x != nil {
|
|
return x.Identity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetTags() string {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetIsMarkdown() bool {
|
|
if x != nil {
|
|
return x.IsMarkdown
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetIsPinned() bool {
|
|
if x != nil {
|
|
return x.IsPinned
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetIsPrivate() bool {
|
|
if x != nil {
|
|
return x.IsPrivate
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetViews() int32 {
|
|
if x != nil {
|
|
return x.Views
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetUpdatedAt() string {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudNoteItem) GetAttachments() []*NoteAttachmentItem {
|
|
if x != nil {
|
|
return x.Attachments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 笔记附件模型
|
|
type NoteAttachmentItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
NoteId uint64 `protobuf:"varint,2,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // 笔记ID
|
|
FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 文件名
|
|
FilePath string `protobuf:"bytes,4,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // 文件路径
|
|
FileSize int64 `protobuf:"varint,5,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件大小
|
|
MimeType string `protobuf:"bytes,6,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // 文件类型
|
|
CreatedAt string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) Reset() {
|
|
*x = NoteAttachmentItem{}
|
|
mi := &file_note_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NoteAttachmentItem) ProtoMessage() {}
|
|
|
|
func (x *NoteAttachmentItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_note_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NoteAttachmentItem.ProtoReflect.Descriptor instead.
|
|
func (*NoteAttachmentItem) Descriptor() ([]byte, []int) {
|
|
return file_note_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) GetId() uint64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) GetNoteId() uint64 {
|
|
if x != nil {
|
|
return x.NoteId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) GetFilePath() string {
|
|
if x != nil {
|
|
return x.FilePath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) GetFileSize() int64 {
|
|
if x != nil {
|
|
return x.FileSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) GetMimeType() string {
|
|
if x != nil {
|
|
return x.MimeType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NoteAttachmentItem) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_note_proto protoreflect.FileDescriptor
|
|
|
|
const file_note_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\n" +
|
|
"note.proto\x12\x05cloud\x1a\fblocks.proto\"\x92\x02\n" +
|
|
"\x11CreateNoteRequest\x12\x19\n" +
|
|
"\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" +
|
|
"\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\x12\x14\n" +
|
|
"\x05title\x18\x03 \x01(\tR\x05title\x12\x18\n" +
|
|
"\acontent\x18\x04 \x01(\tR\acontent\x12\x1a\n" +
|
|
"\bcategory\x18\x05 \x01(\tR\bcategory\x12\x12\n" +
|
|
"\x04tags\x18\x06 \x01(\tR\x04tags\x12\x1f\n" +
|
|
"\vis_markdown\x18\a \x01(\bR\n" +
|
|
"isMarkdown\x12\x1b\n" +
|
|
"\tis_pinned\x18\b \x01(\bR\bisPinned\x12\x1d\n" +
|
|
"\n" +
|
|
"is_private\x18\t \x01(\bR\tisPrivate\"U\n" +
|
|
"\x11ListNotesResponse\x12*\n" +
|
|
"\x05notes\x18\x01 \x03(\v2\x14.cloud.CloudNoteItemR\x05notes\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x03R\x05total\"?\n" +
|
|
"\x10TogglePinRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x04R\x02id\x12\x1b\n" +
|
|
"\tis_pinned\x18\x02 \x01(\bR\bisPinned\"\x89\x03\n" +
|
|
"\rCloudNoteItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x04R\x02id\x12\x1a\n" +
|
|
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
|
"\x05title\x18\x03 \x01(\tR\x05title\x12\x18\n" +
|
|
"\acontent\x18\x04 \x01(\tR\acontent\x12\x1a\n" +
|
|
"\bcategory\x18\x05 \x01(\tR\bcategory\x12\x12\n" +
|
|
"\x04tags\x18\x06 \x01(\tR\x04tags\x12\x1f\n" +
|
|
"\vis_markdown\x18\a \x01(\bR\n" +
|
|
"isMarkdown\x12\x1b\n" +
|
|
"\tis_pinned\x18\b \x01(\bR\bisPinned\x12\x1d\n" +
|
|
"\n" +
|
|
"is_private\x18\t \x01(\bR\tisPrivate\x12\x14\n" +
|
|
"\x05views\x18\n" +
|
|
" \x01(\x05R\x05views\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\v \x01(\tR\tcreatedAt\x12\x1d\n" +
|
|
"\n" +
|
|
"updated_at\x18\f \x01(\tR\tupdatedAt\x12;\n" +
|
|
"\vattachments\x18\r \x03(\v2\x19.cloud.NoteAttachmentItemR\vattachments\"\xd0\x01\n" +
|
|
"\x12NoteAttachmentItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x04R\x02id\x12\x17\n" +
|
|
"\anote_id\x18\x02 \x01(\x04R\x06noteId\x12\x1b\n" +
|
|
"\tfile_name\x18\x03 \x01(\tR\bfileName\x12\x1b\n" +
|
|
"\tfile_path\x18\x04 \x01(\tR\bfilePath\x12\x1b\n" +
|
|
"\tfile_size\x18\x05 \x01(\x03R\bfileSize\x12\x1b\n" +
|
|
"\tmime_type\x18\x06 \x01(\tR\bmimeType\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\a \x01(\tR\tcreatedAt2\xd6\x04\n" +
|
|
"\x04Note\x12:\n" +
|
|
"\n" +
|
|
"CreateNote\x12\x18.cloud.CreateNoteRequest\x1a\x12.cloud.StatusReply\x124\n" +
|
|
"\aGetNote\x12\x13.cloud.IdentRequest\x1a\x14.cloud.CloudNoteItem\x126\n" +
|
|
"\n" +
|
|
"UpdateNote\x12\x14.cloud.CloudNoteItem\x1a\x12.cloud.StatusReply\x125\n" +
|
|
"\n" +
|
|
"DeleteNote\x12\x13.cloud.IdentRequest\x1a\x12.cloud.StatusReply\x12:\n" +
|
|
"\tListNotes\x12\x13.cloud.FetchRequest\x1a\x18.cloud.ListNotesResponse\x128\n" +
|
|
"\tTogglePin\x12\x17.cloud.TogglePinRequest\x1a\x12.cloud.StatusReply\x129\n" +
|
|
"\x0eIncrementViews\x12\x13.cloud.IdentRequest\x1a\x12.cloud.StatusReply\x12<\n" +
|
|
"\vSearchNotes\x12\x13.cloud.FetchRequest\x1a\x18.cloud.ListNotesResponse\x12A\n" +
|
|
"\x10InsertAttachment\x12\x19.cloud.NoteAttachmentItem\x1a\x12.cloud.StatusReply\x12;\n" +
|
|
"\x10DeleteAttachment\x12\x13.cloud.IdentRequest\x1a\x12.cloud.StatusReplyB\tZ\a.;cloudb\x06proto3"
|
|
|
|
var (
|
|
file_note_proto_rawDescOnce sync.Once
|
|
file_note_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_note_proto_rawDescGZIP() []byte {
|
|
file_note_proto_rawDescOnce.Do(func() {
|
|
file_note_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_note_proto_rawDesc), len(file_note_proto_rawDesc)))
|
|
})
|
|
return file_note_proto_rawDescData
|
|
}
|
|
|
|
var file_note_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_note_proto_goTypes = []any{
|
|
(*CreateNoteRequest)(nil), // 0: cloud.CreateNoteRequest
|
|
(*ListNotesResponse)(nil), // 1: cloud.ListNotesResponse
|
|
(*TogglePinRequest)(nil), // 2: cloud.TogglePinRequest
|
|
(*CloudNoteItem)(nil), // 3: cloud.CloudNoteItem
|
|
(*NoteAttachmentItem)(nil), // 4: cloud.NoteAttachmentItem
|
|
(*IdentRequest)(nil), // 5: cloud.IdentRequest
|
|
(*FetchRequest)(nil), // 6: cloud.FetchRequest
|
|
(*StatusReply)(nil), // 7: cloud.StatusReply
|
|
}
|
|
var file_note_proto_depIdxs = []int32{
|
|
3, // 0: cloud.ListNotesResponse.notes:type_name -> cloud.CloudNoteItem
|
|
4, // 1: cloud.CloudNoteItem.attachments:type_name -> cloud.NoteAttachmentItem
|
|
0, // 2: cloud.Note.CreateNote:input_type -> cloud.CreateNoteRequest
|
|
5, // 3: cloud.Note.GetNote:input_type -> cloud.IdentRequest
|
|
3, // 4: cloud.Note.UpdateNote:input_type -> cloud.CloudNoteItem
|
|
5, // 5: cloud.Note.DeleteNote:input_type -> cloud.IdentRequest
|
|
6, // 6: cloud.Note.ListNotes:input_type -> cloud.FetchRequest
|
|
2, // 7: cloud.Note.TogglePin:input_type -> cloud.TogglePinRequest
|
|
5, // 8: cloud.Note.IncrementViews:input_type -> cloud.IdentRequest
|
|
6, // 9: cloud.Note.SearchNotes:input_type -> cloud.FetchRequest
|
|
4, // 10: cloud.Note.InsertAttachment:input_type -> cloud.NoteAttachmentItem
|
|
5, // 11: cloud.Note.DeleteAttachment:input_type -> cloud.IdentRequest
|
|
7, // 12: cloud.Note.CreateNote:output_type -> cloud.StatusReply
|
|
3, // 13: cloud.Note.GetNote:output_type -> cloud.CloudNoteItem
|
|
7, // 14: cloud.Note.UpdateNote:output_type -> cloud.StatusReply
|
|
7, // 15: cloud.Note.DeleteNote:output_type -> cloud.StatusReply
|
|
1, // 16: cloud.Note.ListNotes:output_type -> cloud.ListNotesResponse
|
|
7, // 17: cloud.Note.TogglePin:output_type -> cloud.StatusReply
|
|
7, // 18: cloud.Note.IncrementViews:output_type -> cloud.StatusReply
|
|
1, // 19: cloud.Note.SearchNotes:output_type -> cloud.ListNotesResponse
|
|
7, // 20: cloud.Note.InsertAttachment:output_type -> cloud.StatusReply
|
|
7, // 21: cloud.Note.DeleteAttachment:output_type -> cloud.StatusReply
|
|
12, // [12:22] is the sub-list for method output_type
|
|
2, // [2:12] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_note_proto_init() }
|
|
func file_note_proto_init() {
|
|
if File_note_proto != nil {
|
|
return
|
|
}
|
|
file_blocks_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_note_proto_rawDesc), len(file_note_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_note_proto_goTypes,
|
|
DependencyIndexes: file_note_proto_depIdxs,
|
|
MessageInfos: file_note_proto_msgTypes,
|
|
}.Build()
|
|
File_note_proto = out.File
|
|
file_note_proto_goTypes = nil
|
|
file_note_proto_depIdxs = nil
|
|
}
|