474 lines
15 KiB
Go
474 lines
15 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc (unknown)
|
|
// source: bookmark.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 CreateBookmarkRequest 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"` // 标题
|
|
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 网址
|
|
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // 描述
|
|
Category string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"` // 分类
|
|
Tags string `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"` // 标签
|
|
Icon string `protobuf:"bytes,8,opt,name=icon,proto3" json:"icon,omitempty"` // 网站图标URL
|
|
IsPrivate bool `protobuf:"varint,9,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` // 是否私有
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) Reset() {
|
|
*x = CreateBookmarkRequest{}
|
|
mi := &file_bookmark_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateBookmarkRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateBookmarkRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bookmark_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 CreateBookmarkRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateBookmarkRequest) Descriptor() ([]byte, []int) {
|
|
return file_bookmark_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetCloudId() uint64 {
|
|
if x != nil {
|
|
return x.CloudId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetCloudIdentity() string {
|
|
if x != nil {
|
|
return x.CloudIdentity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetTags() string {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetIcon() string {
|
|
if x != nil {
|
|
return x.Icon
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateBookmarkRequest) GetIsPrivate() bool {
|
|
if x != nil {
|
|
return x.IsPrivate
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListBookmarksResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Bookmarks []*CloudBookmarkItem `protobuf:"bytes,1,rep,name=bookmarks,proto3" json:"bookmarks,omitempty"`
|
|
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListBookmarksResponse) Reset() {
|
|
*x = ListBookmarksResponse{}
|
|
mi := &file_bookmark_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListBookmarksResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListBookmarksResponse) ProtoMessage() {}
|
|
|
|
func (x *ListBookmarksResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bookmark_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 ListBookmarksResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListBookmarksResponse) Descriptor() ([]byte, []int) {
|
|
return file_bookmark_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ListBookmarksResponse) GetBookmarks() []*CloudBookmarkItem {
|
|
if x != nil {
|
|
return x.Bookmarks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListBookmarksResponse) GetTotal() int64 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ImportBookmarksRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // JSON格式的书签数据
|
|
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` // 导入格式: chrome, firefox, safari, etc.
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ImportBookmarksRequest) Reset() {
|
|
*x = ImportBookmarksRequest{}
|
|
mi := &file_bookmark_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ImportBookmarksRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ImportBookmarksRequest) ProtoMessage() {}
|
|
|
|
func (x *ImportBookmarksRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bookmark_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 ImportBookmarksRequest.ProtoReflect.Descriptor instead.
|
|
func (*ImportBookmarksRequest) Descriptor() ([]byte, []int) {
|
|
return file_bookmark_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ImportBookmarksRequest) GetData() string {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ImportBookmarksRequest) GetFormat() string {
|
|
if x != nil {
|
|
return x.Format
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 网址收藏夹模型
|
|
type CloudBookmarkItem 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"` // 标题
|
|
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 网址
|
|
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // 描述
|
|
Category string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"` // 分类
|
|
Tags string `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"` // 标签
|
|
Icon string `protobuf:"bytes,8,opt,name=icon,proto3" json:"icon,omitempty"` // 网站图标URL
|
|
IsPrivate bool `protobuf:"varint,9,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` // 是否私有
|
|
CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) Reset() {
|
|
*x = CloudBookmarkItem{}
|
|
mi := &file_bookmark_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CloudBookmarkItem) ProtoMessage() {}
|
|
|
|
func (x *CloudBookmarkItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bookmark_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 CloudBookmarkItem.ProtoReflect.Descriptor instead.
|
|
func (*CloudBookmarkItem) Descriptor() ([]byte, []int) {
|
|
return file_bookmark_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetId() uint64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetIdentity() string {
|
|
if x != nil {
|
|
return x.Identity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetTags() string {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetIcon() string {
|
|
if x != nil {
|
|
return x.Icon
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetIsPrivate() bool {
|
|
if x != nil {
|
|
return x.IsPrivate
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudBookmarkItem) GetUpdatedAt() string {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_bookmark_proto protoreflect.FileDescriptor
|
|
|
|
const file_bookmark_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0ebookmark.proto\x12\x05cloud\x1a\fblocks.proto\"\x86\x02\n" +
|
|
"\x15CreateBookmarkRequest\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\x10\n" +
|
|
"\x03url\x18\x04 \x01(\tR\x03url\x12 \n" +
|
|
"\vdescription\x18\x05 \x01(\tR\vdescription\x12\x1a\n" +
|
|
"\bcategory\x18\x06 \x01(\tR\bcategory\x12\x12\n" +
|
|
"\x04tags\x18\a \x01(\tR\x04tags\x12\x12\n" +
|
|
"\x04icon\x18\b \x01(\tR\x04icon\x12\x1d\n" +
|
|
"\n" +
|
|
"is_private\x18\t \x01(\bR\tisPrivate\"e\n" +
|
|
"\x15ListBookmarksResponse\x126\n" +
|
|
"\tbookmarks\x18\x01 \x03(\v2\x18.cloud.CloudBookmarkItemR\tbookmarks\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x03R\x05total\"D\n" +
|
|
"\x16ImportBookmarksRequest\x12\x12\n" +
|
|
"\x04data\x18\x01 \x01(\tR\x04data\x12\x16\n" +
|
|
"\x06format\x18\x02 \x01(\tR\x06format\"\xaa\x02\n" +
|
|
"\x11CloudBookmarkItem\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\x10\n" +
|
|
"\x03url\x18\x04 \x01(\tR\x03url\x12 \n" +
|
|
"\vdescription\x18\x05 \x01(\tR\vdescription\x12\x1a\n" +
|
|
"\bcategory\x18\x06 \x01(\tR\bcategory\x12\x12\n" +
|
|
"\x04tags\x18\a \x01(\tR\x04tags\x12\x12\n" +
|
|
"\x04icon\x18\b \x01(\tR\x04icon\x12\x1d\n" +
|
|
"\n" +
|
|
"is_private\x18\t \x01(\bR\tisPrivate\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\n" +
|
|
" \x01(\tR\tcreatedAt\x12\x1d\n" +
|
|
"\n" +
|
|
"updated_at\x18\v \x01(\tR\tupdatedAt2\x8b\x03\n" +
|
|
"\bBookmark\x12B\n" +
|
|
"\x0eCreateBookmark\x12\x1c.cloud.CreateBookmarkRequest\x1a\x12.cloud.StatusReply\x129\n" +
|
|
"\vGetBookmark\x12\x10.cloud.IDRequest\x1a\x18.cloud.CloudBookmarkItem\x12>\n" +
|
|
"\x0eUpdateBookmark\x12\x18.cloud.CloudBookmarkItem\x1a\x12.cloud.StatusReply\x126\n" +
|
|
"\x0eDeleteBookmark\x12\x10.cloud.IDRequest\x1a\x12.cloud.StatusReply\x12B\n" +
|
|
"\rListBookmarks\x12\x13.cloud.FetchRequest\x1a\x1c.cloud.ListBookmarksResponse\x12D\n" +
|
|
"\x0fImportBookmarks\x12\x1d.cloud.ImportBookmarksRequest\x1a\x12.cloud.StatusReplyB\tZ\a.;cloudb\x06proto3"
|
|
|
|
var (
|
|
file_bookmark_proto_rawDescOnce sync.Once
|
|
file_bookmark_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_bookmark_proto_rawDescGZIP() []byte {
|
|
file_bookmark_proto_rawDescOnce.Do(func() {
|
|
file_bookmark_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_bookmark_proto_rawDesc), len(file_bookmark_proto_rawDesc)))
|
|
})
|
|
return file_bookmark_proto_rawDescData
|
|
}
|
|
|
|
var file_bookmark_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_bookmark_proto_goTypes = []any{
|
|
(*CreateBookmarkRequest)(nil), // 0: cloud.CreateBookmarkRequest
|
|
(*ListBookmarksResponse)(nil), // 1: cloud.ListBookmarksResponse
|
|
(*ImportBookmarksRequest)(nil), // 2: cloud.ImportBookmarksRequest
|
|
(*CloudBookmarkItem)(nil), // 3: cloud.CloudBookmarkItem
|
|
(*IDRequest)(nil), // 4: cloud.IDRequest
|
|
(*FetchRequest)(nil), // 5: cloud.FetchRequest
|
|
(*StatusReply)(nil), // 6: cloud.StatusReply
|
|
}
|
|
var file_bookmark_proto_depIdxs = []int32{
|
|
3, // 0: cloud.ListBookmarksResponse.bookmarks:type_name -> cloud.CloudBookmarkItem
|
|
0, // 1: cloud.Bookmark.CreateBookmark:input_type -> cloud.CreateBookmarkRequest
|
|
4, // 2: cloud.Bookmark.GetBookmark:input_type -> cloud.IDRequest
|
|
3, // 3: cloud.Bookmark.UpdateBookmark:input_type -> cloud.CloudBookmarkItem
|
|
4, // 4: cloud.Bookmark.DeleteBookmark:input_type -> cloud.IDRequest
|
|
5, // 5: cloud.Bookmark.ListBookmarks:input_type -> cloud.FetchRequest
|
|
2, // 6: cloud.Bookmark.ImportBookmarks:input_type -> cloud.ImportBookmarksRequest
|
|
6, // 7: cloud.Bookmark.CreateBookmark:output_type -> cloud.StatusReply
|
|
3, // 8: cloud.Bookmark.GetBookmark:output_type -> cloud.CloudBookmarkItem
|
|
6, // 9: cloud.Bookmark.UpdateBookmark:output_type -> cloud.StatusReply
|
|
6, // 10: cloud.Bookmark.DeleteBookmark:output_type -> cloud.StatusReply
|
|
1, // 11: cloud.Bookmark.ListBookmarks:output_type -> cloud.ListBookmarksResponse
|
|
6, // 12: cloud.Bookmark.ImportBookmarks:output_type -> cloud.StatusReply
|
|
7, // [7:13] is the sub-list for method output_type
|
|
1, // [1:7] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_bookmark_proto_init() }
|
|
func file_bookmark_proto_init() {
|
|
if File_bookmark_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_bookmark_proto_rawDesc), len(file_bookmark_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_bookmark_proto_goTypes,
|
|
DependencyIndexes: file_bookmark_proto_depIdxs,
|
|
MessageInfos: file_bookmark_proto_msgTypes,
|
|
}.Build()
|
|
File_bookmark_proto = out.File
|
|
file_bookmark_proto_goTypes = nil
|
|
file_bookmark_proto_depIdxs = nil
|
|
}
|