219 lines
6.3 KiB
Go
219 lines
6.3 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc (unknown)
|
|
// source: store/space.proto
|
|
|
|
package store
|
|
|
|
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)
|
|
)
|
|
|
|
// SpacePayload stores optional Space display metadata.
|
|
type SpacePayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Icon *SpacePayload_Icon `protobuf:"bytes,1,opt,name=icon,proto3" json:"icon,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SpacePayload) Reset() {
|
|
*x = SpacePayload{}
|
|
mi := &file_store_space_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SpacePayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SpacePayload) ProtoMessage() {}
|
|
|
|
func (x *SpacePayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_store_space_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 SpacePayload.ProtoReflect.Descriptor instead.
|
|
func (*SpacePayload) Descriptor() ([]byte, []int) {
|
|
return file_store_space_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *SpacePayload) GetIcon() *SpacePayload_Icon {
|
|
if x != nil {
|
|
return x.Icon
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SpacePayload_Icon struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Value:
|
|
//
|
|
// *SpacePayload_Icon_Emoji
|
|
// *SpacePayload_Icon_Lucide
|
|
Value isSpacePayload_Icon_Value `protobuf_oneof:"value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SpacePayload_Icon) Reset() {
|
|
*x = SpacePayload_Icon{}
|
|
mi := &file_store_space_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SpacePayload_Icon) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SpacePayload_Icon) ProtoMessage() {}
|
|
|
|
func (x *SpacePayload_Icon) ProtoReflect() protoreflect.Message {
|
|
mi := &file_store_space_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 SpacePayload_Icon.ProtoReflect.Descriptor instead.
|
|
func (*SpacePayload_Icon) Descriptor() ([]byte, []int) {
|
|
return file_store_space_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
func (x *SpacePayload_Icon) GetValue() isSpacePayload_Icon_Value {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SpacePayload_Icon) GetEmoji() string {
|
|
if x != nil {
|
|
if x, ok := x.Value.(*SpacePayload_Icon_Emoji); ok {
|
|
return x.Emoji
|
|
}
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SpacePayload_Icon) GetLucide() string {
|
|
if x != nil {
|
|
if x, ok := x.Value.(*SpacePayload_Icon_Lucide); ok {
|
|
return x.Lucide
|
|
}
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type isSpacePayload_Icon_Value interface {
|
|
isSpacePayload_Icon_Value()
|
|
}
|
|
|
|
type SpacePayload_Icon_Emoji struct {
|
|
// A Unicode emoji sequence.
|
|
Emoji string `protobuf:"bytes,1,opt,name=emoji,proto3,oneof"`
|
|
}
|
|
|
|
type SpacePayload_Icon_Lucide struct {
|
|
// A canonical Lucide icon name, such as "leaf".
|
|
Lucide string `protobuf:"bytes,2,opt,name=lucide,proto3,oneof"`
|
|
}
|
|
|
|
func (*SpacePayload_Icon_Emoji) isSpacePayload_Icon_Value() {}
|
|
|
|
func (*SpacePayload_Icon_Lucide) isSpacePayload_Icon_Value() {}
|
|
|
|
var File_store_space_proto protoreflect.FileDescriptor
|
|
|
|
const file_store_space_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x11store/space.proto\x12\vmemos.store\"\x85\x01\n" +
|
|
"\fSpacePayload\x122\n" +
|
|
"\x04icon\x18\x01 \x01(\v2\x1e.memos.store.SpacePayload.IconR\x04icon\x1aA\n" +
|
|
"\x04Icon\x12\x16\n" +
|
|
"\x05emoji\x18\x01 \x01(\tH\x00R\x05emoji\x12\x18\n" +
|
|
"\x06lucide\x18\x02 \x01(\tH\x00R\x06lucideB\a\n" +
|
|
"\x05valueB\x95\x01\n" +
|
|
"\x0fcom.memos.storeB\n" +
|
|
"SpaceProtoP\x01Z)github.com/usememos/memos/proto/gen/store\xa2\x02\x03MSX\xaa\x02\vMemos.Store\xca\x02\vMemos\\Store\xe2\x02\x17Memos\\Store\\GPBMetadata\xea\x02\fMemos::Storeb\x06proto3"
|
|
|
|
var (
|
|
file_store_space_proto_rawDescOnce sync.Once
|
|
file_store_space_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_store_space_proto_rawDescGZIP() []byte {
|
|
file_store_space_proto_rawDescOnce.Do(func() {
|
|
file_store_space_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_space_proto_rawDesc), len(file_store_space_proto_rawDesc)))
|
|
})
|
|
return file_store_space_proto_rawDescData
|
|
}
|
|
|
|
var file_store_space_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_store_space_proto_goTypes = []any{
|
|
(*SpacePayload)(nil), // 0: memos.store.SpacePayload
|
|
(*SpacePayload_Icon)(nil), // 1: memos.store.SpacePayload.Icon
|
|
}
|
|
var file_store_space_proto_depIdxs = []int32{
|
|
1, // 0: memos.store.SpacePayload.icon:type_name -> memos.store.SpacePayload.Icon
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] 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_store_space_proto_init() }
|
|
func file_store_space_proto_init() {
|
|
if File_store_space_proto != nil {
|
|
return
|
|
}
|
|
file_store_space_proto_msgTypes[1].OneofWrappers = []any{
|
|
(*SpacePayload_Icon_Emoji)(nil),
|
|
(*SpacePayload_Icon_Lucide)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_space_proto_rawDesc), len(file_store_space_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_store_space_proto_goTypes,
|
|
DependencyIndexes: file_store_space_proto_depIdxs,
|
|
MessageInfos: file_store_space_proto_msgTypes,
|
|
}.Build()
|
|
File_store_space_proto = out.File
|
|
file_store_space_proto_goTypes = nil
|
|
file_store_space_proto_depIdxs = nil
|
|
}
|