// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v7.35.1
// source: module/base/cloud/proto/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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_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_module_base_cloud_proto_bookmark_proto protoreflect.FileDescriptor

const file_module_base_cloud_proto_bookmark_proto_rawDesc = "" +
	"\n" +
	"&module/base/cloud/proto/bookmark.proto\x12\x05cloud\x1a#module/base/cloud/proto/const.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\xdf\x03\n" +
	"\bBookmark\x12N\n" +
	"\x0eCreateBookmark\x12\x1c.cloud.CreateBookmarkRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12E\n" +
	"\vGetBookmark\x12\x1c.base_cloud_blocks.IDRequest\x1a\x18.cloud.CloudBookmarkItem\x12J\n" +
	"\x0eUpdateBookmark\x12\x18.cloud.CloudBookmarkItem\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
	"\x0eDeleteBookmark\x12\x1c.base_cloud_blocks.IDRequest\x1a\x1e.base_cloud_blocks.StatusReply\x12N\n" +
	"\rListBookmarks\x12\x1f.base_cloud_blocks.FetchRequest\x1a\x1c.cloud.ListBookmarksResponse\x12P\n" +
	"\x0fImportBookmarks\x12\x1d.cloud.ImportBookmarksRequest\x1a\x1e.base_cloud_blocks.StatusReplyB%Z#bsm/full/module/base/cloud/pb;cloudb\x06proto3"

var (
	file_module_base_cloud_proto_bookmark_proto_rawDescOnce sync.Once
	file_module_base_cloud_proto_bookmark_proto_rawDescData []byte
)

func file_module_base_cloud_proto_bookmark_proto_rawDescGZIP() []byte {
	file_module_base_cloud_proto_bookmark_proto_rawDescOnce.Do(func() {
		file_module_base_cloud_proto_bookmark_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_bookmark_proto_rawDesc), len(file_module_base_cloud_proto_bookmark_proto_rawDesc)))
	})
	return file_module_base_cloud_proto_bookmark_proto_rawDescData
}

var file_module_base_cloud_proto_bookmark_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_module_base_cloud_proto_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: base_cloud_blocks.IDRequest
	(*FetchRequest)(nil),           // 5: base_cloud_blocks.FetchRequest
	(*StatusReply)(nil),            // 6: base_cloud_blocks.StatusReply
}
var file_module_base_cloud_proto_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 -> base_cloud_blocks.IDRequest
	3, // 3: cloud.Bookmark.UpdateBookmark:input_type -> cloud.CloudBookmarkItem
	4, // 4: cloud.Bookmark.DeleteBookmark:input_type -> base_cloud_blocks.IDRequest
	5, // 5: cloud.Bookmark.ListBookmarks:input_type -> base_cloud_blocks.FetchRequest
	2, // 6: cloud.Bookmark.ImportBookmarks:input_type -> cloud.ImportBookmarksRequest
	6, // 7: cloud.Bookmark.CreateBookmark:output_type -> base_cloud_blocks.StatusReply
	3, // 8: cloud.Bookmark.GetBookmark:output_type -> cloud.CloudBookmarkItem
	6, // 9: cloud.Bookmark.UpdateBookmark:output_type -> base_cloud_blocks.StatusReply
	6, // 10: cloud.Bookmark.DeleteBookmark:output_type -> base_cloud_blocks.StatusReply
	1, // 11: cloud.Bookmark.ListBookmarks:output_type -> cloud.ListBookmarksResponse
	6, // 12: cloud.Bookmark.ImportBookmarks:output_type -> base_cloud_blocks.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_module_base_cloud_proto_bookmark_proto_init() }
func file_module_base_cloud_proto_bookmark_proto_init() {
	if File_module_base_cloud_proto_bookmark_proto != nil {
		return
	}
	file_module_base_cloud_proto_const_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_cloud_proto_bookmark_proto_rawDesc), len(file_module_base_cloud_proto_bookmark_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_module_base_cloud_proto_bookmark_proto_goTypes,
		DependencyIndexes: file_module_base_cloud_proto_bookmark_proto_depIdxs,
		MessageInfos:      file_module_base_cloud_proto_bookmark_proto_msgTypes,
	}.Build()
	File_module_base_cloud_proto_bookmark_proto = out.File
	file_module_base_cloud_proto_bookmark_proto_goTypes = nil
	file_module_base_cloud_proto_bookmark_proto_depIdxs = nil
}
