// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc (unknown) // source: store/shortcut.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) ) type Shortcut struct { state protoimpl.MessageState `protogen:"open.v1"` Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatorId int32 `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` CreatedTs int64 `protobuf:"varint,3,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"` UpdatedTs int64 `protobuf:"varint,4,opt,name=updated_ts,json=updatedTs,proto3" json:"updated_ts,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Link string `protobuf:"bytes,7,opt,name=link,proto3" json:"link,omitempty"` Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` Tags []string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"` Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"` Visibility Visibility `protobuf:"varint,11,opt,name=visibility,proto3,enum=slash.store.Visibility" json:"visibility,omitempty"` OgMetadata *OpenGraphMetadata `protobuf:"bytes,12,opt,name=og_metadata,json=ogMetadata,proto3" json:"og_metadata,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Shortcut) Reset() { *x = Shortcut{} mi := &file_store_shortcut_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Shortcut) String() string { return protoimpl.X.MessageStringOf(x) } func (*Shortcut) ProtoMessage() {} func (x *Shortcut) ProtoReflect() protoreflect.Message { mi := &file_store_shortcut_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 Shortcut.ProtoReflect.Descriptor instead. func (*Shortcut) Descriptor() ([]byte, []int) { return file_store_shortcut_proto_rawDescGZIP(), []int{0} } func (x *Shortcut) GetId() int32 { if x != nil { return x.Id } return 0 } func (x *Shortcut) GetCreatorId() int32 { if x != nil { return x.CreatorId } return 0 } func (x *Shortcut) GetCreatedTs() int64 { if x != nil { return x.CreatedTs } return 0 } func (x *Shortcut) GetUpdatedTs() int64 { if x != nil { return x.UpdatedTs } return 0 } func (x *Shortcut) GetName() string { if x != nil { return x.Name } return "" } func (x *Shortcut) GetLink() string { if x != nil { return x.Link } return "" } func (x *Shortcut) GetTitle() string { if x != nil { return x.Title } return "" } func (x *Shortcut) GetTags() []string { if x != nil { return x.Tags } return nil } func (x *Shortcut) GetDescription() string { if x != nil { return x.Description } return "" } func (x *Shortcut) GetVisibility() Visibility { if x != nil { return x.Visibility } return Visibility_VISIBILITY_UNSPECIFIED } func (x *Shortcut) GetOgMetadata() *OpenGraphMetadata { if x != nil { return x.OgMetadata } return nil } type OpenGraphMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OpenGraphMetadata) Reset() { *x = OpenGraphMetadata{} mi := &file_store_shortcut_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OpenGraphMetadata) String() string { return protoimpl.X.MessageStringOf(x) } func (*OpenGraphMetadata) ProtoMessage() {} func (x *OpenGraphMetadata) ProtoReflect() protoreflect.Message { mi := &file_store_shortcut_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 OpenGraphMetadata.ProtoReflect.Descriptor instead. func (*OpenGraphMetadata) Descriptor() ([]byte, []int) { return file_store_shortcut_proto_rawDescGZIP(), []int{1} } func (x *OpenGraphMetadata) GetTitle() string { if x != nil { return x.Title } return "" } func (x *OpenGraphMetadata) GetDescription() string { if x != nil { return x.Description } return "" } func (x *OpenGraphMetadata) GetImage() string { if x != nil { return x.Image } return "" } var File_store_shortcut_proto protoreflect.FileDescriptor const file_store_shortcut_proto_rawDesc = "" + "\n" + "\x14store/shortcut.proto\x12\vslash.store\x1a\x12store/common.proto\"\xe5\x02\n" + "\bShortcut\x12\x0e\n" + "\x02id\x18\x01 \x01(\x05R\x02id\x12\x1d\n" + "\n" + "creator_id\x18\x02 \x01(\x05R\tcreatorId\x12\x1d\n" + "\n" + "created_ts\x18\x03 \x01(\x03R\tcreatedTs\x12\x1d\n" + "\n" + "updated_ts\x18\x04 \x01(\x03R\tupdatedTs\x12\x12\n" + "\x04name\x18\x06 \x01(\tR\x04name\x12\x12\n" + "\x04link\x18\a \x01(\tR\x04link\x12\x14\n" + "\x05title\x18\b \x01(\tR\x05title\x12\x12\n" + "\x04tags\x18\t \x03(\tR\x04tags\x12 \n" + "\vdescription\x18\n" + " \x01(\tR\vdescription\x127\n" + "\n" + "visibility\x18\v \x01(\x0e2\x17.slash.store.VisibilityR\n" + "visibility\x12?\n" + "\vog_metadata\x18\f \x01(\v2\x1e.slash.store.OpenGraphMetadataR\n" + "ogMetadata\"a\n" + "\x11OpenGraphMetadata\x12\x14\n" + "\x05title\x18\x01 \x01(\tR\x05title\x12 \n" + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x14\n" + "\x05image\x18\x03 \x01(\tR\x05imageB\x9e\x01\n" + "\x0fcom.slash.storeB\rShortcutProtoP\x01Z/github.com/yourselfhosted/slash/proto/gen/store\xa2\x02\x03SSX\xaa\x02\vSlash.Store\xca\x02\vSlash\\Store\xe2\x02\x17Slash\\Store\\GPBMetadata\xea\x02\fSlash::Storeb\x06proto3" var ( file_store_shortcut_proto_rawDescOnce sync.Once file_store_shortcut_proto_rawDescData []byte ) func file_store_shortcut_proto_rawDescGZIP() []byte { file_store_shortcut_proto_rawDescOnce.Do(func() { file_store_shortcut_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_shortcut_proto_rawDesc), len(file_store_shortcut_proto_rawDesc))) }) return file_store_shortcut_proto_rawDescData } var file_store_shortcut_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_store_shortcut_proto_goTypes = []any{ (*Shortcut)(nil), // 0: slash.store.Shortcut (*OpenGraphMetadata)(nil), // 1: slash.store.OpenGraphMetadata (Visibility)(0), // 2: slash.store.Visibility } var file_store_shortcut_proto_depIdxs = []int32{ 2, // 0: slash.store.Shortcut.visibility:type_name -> slash.store.Visibility 1, // 1: slash.store.Shortcut.og_metadata:type_name -> slash.store.OpenGraphMetadata 2, // [2:2] is the sub-list for method output_type 2, // [2:2] 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_store_shortcut_proto_init() } func file_store_shortcut_proto_init() { if File_store_shortcut_proto != nil { return } file_store_common_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_shortcut_proto_rawDesc), len(file_store_shortcut_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_store_shortcut_proto_goTypes, DependencyIndexes: file_store_shortcut_proto_depIdxs, MessageInfos: file_store_shortcut_proto_msgTypes, }.Build() File_store_shortcut_proto = out.File file_store_shortcut_proto_goTypes = nil file_store_shortcut_proto_depIdxs = nil }