memo.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.4
  4. // protoc (unknown)
  5. // source: store/memo.proto
  6. package store
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type MemoPayload struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. Property *MemoPayload_Property `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
  23. Location *MemoPayload_Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
  24. Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *MemoPayload) Reset() {
  29. *x = MemoPayload{}
  30. mi := &file_store_memo_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *MemoPayload) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*MemoPayload) ProtoMessage() {}
  38. func (x *MemoPayload) ProtoReflect() protoreflect.Message {
  39. mi := &file_store_memo_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use MemoPayload.ProtoReflect.Descriptor instead.
  50. func (*MemoPayload) Descriptor() ([]byte, []int) {
  51. return file_store_memo_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *MemoPayload) GetProperty() *MemoPayload_Property {
  54. if x != nil {
  55. return x.Property
  56. }
  57. return nil
  58. }
  59. func (x *MemoPayload) GetLocation() *MemoPayload_Location {
  60. if x != nil {
  61. return x.Location
  62. }
  63. return nil
  64. }
  65. func (x *MemoPayload) GetTags() []string {
  66. if x != nil {
  67. return x.Tags
  68. }
  69. return nil
  70. }
  71. // The calculated properties from the memo content.
  72. type MemoPayload_Property struct {
  73. state protoimpl.MessageState `protogen:"open.v1"`
  74. HasLink bool `protobuf:"varint,1,opt,name=has_link,json=hasLink,proto3" json:"has_link,omitempty"`
  75. HasTaskList bool `protobuf:"varint,2,opt,name=has_task_list,json=hasTaskList,proto3" json:"has_task_list,omitempty"`
  76. HasCode bool `protobuf:"varint,3,opt,name=has_code,json=hasCode,proto3" json:"has_code,omitempty"`
  77. HasIncompleteTasks bool `protobuf:"varint,4,opt,name=has_incomplete_tasks,json=hasIncompleteTasks,proto3" json:"has_incomplete_tasks,omitempty"`
  78. // The references of the memo. Should be a list of uuid.
  79. References []string `protobuf:"bytes,5,rep,name=references,proto3" json:"references,omitempty"`
  80. unknownFields protoimpl.UnknownFields
  81. sizeCache protoimpl.SizeCache
  82. }
  83. func (x *MemoPayload_Property) Reset() {
  84. *x = MemoPayload_Property{}
  85. mi := &file_store_memo_proto_msgTypes[1]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. func (x *MemoPayload_Property) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*MemoPayload_Property) ProtoMessage() {}
  93. func (x *MemoPayload_Property) ProtoReflect() protoreflect.Message {
  94. mi := &file_store_memo_proto_msgTypes[1]
  95. if x != nil {
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. if ms.LoadMessageInfo() == nil {
  98. ms.StoreMessageInfo(mi)
  99. }
  100. return ms
  101. }
  102. return mi.MessageOf(x)
  103. }
  104. // Deprecated: Use MemoPayload_Property.ProtoReflect.Descriptor instead.
  105. func (*MemoPayload_Property) Descriptor() ([]byte, []int) {
  106. return file_store_memo_proto_rawDescGZIP(), []int{0, 0}
  107. }
  108. func (x *MemoPayload_Property) GetHasLink() bool {
  109. if x != nil {
  110. return x.HasLink
  111. }
  112. return false
  113. }
  114. func (x *MemoPayload_Property) GetHasTaskList() bool {
  115. if x != nil {
  116. return x.HasTaskList
  117. }
  118. return false
  119. }
  120. func (x *MemoPayload_Property) GetHasCode() bool {
  121. if x != nil {
  122. return x.HasCode
  123. }
  124. return false
  125. }
  126. func (x *MemoPayload_Property) GetHasIncompleteTasks() bool {
  127. if x != nil {
  128. return x.HasIncompleteTasks
  129. }
  130. return false
  131. }
  132. func (x *MemoPayload_Property) GetReferences() []string {
  133. if x != nil {
  134. return x.References
  135. }
  136. return nil
  137. }
  138. type MemoPayload_Location struct {
  139. state protoimpl.MessageState `protogen:"open.v1"`
  140. Placeholder string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
  141. Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
  142. Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
  143. unknownFields protoimpl.UnknownFields
  144. sizeCache protoimpl.SizeCache
  145. }
  146. func (x *MemoPayload_Location) Reset() {
  147. *x = MemoPayload_Location{}
  148. mi := &file_store_memo_proto_msgTypes[2]
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. ms.StoreMessageInfo(mi)
  151. }
  152. func (x *MemoPayload_Location) String() string {
  153. return protoimpl.X.MessageStringOf(x)
  154. }
  155. func (*MemoPayload_Location) ProtoMessage() {}
  156. func (x *MemoPayload_Location) ProtoReflect() protoreflect.Message {
  157. mi := &file_store_memo_proto_msgTypes[2]
  158. if x != nil {
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. if ms.LoadMessageInfo() == nil {
  161. ms.StoreMessageInfo(mi)
  162. }
  163. return ms
  164. }
  165. return mi.MessageOf(x)
  166. }
  167. // Deprecated: Use MemoPayload_Location.ProtoReflect.Descriptor instead.
  168. func (*MemoPayload_Location) Descriptor() ([]byte, []int) {
  169. return file_store_memo_proto_rawDescGZIP(), []int{0, 1}
  170. }
  171. func (x *MemoPayload_Location) GetPlaceholder() string {
  172. if x != nil {
  173. return x.Placeholder
  174. }
  175. return ""
  176. }
  177. func (x *MemoPayload_Location) GetLatitude() float64 {
  178. if x != nil {
  179. return x.Latitude
  180. }
  181. return 0
  182. }
  183. func (x *MemoPayload_Location) GetLongitude() float64 {
  184. if x != nil {
  185. return x.Longitude
  186. }
  187. return 0
  188. }
  189. var File_store_memo_proto protoreflect.FileDescriptor
  190. var file_store_memo_proto_rawDesc = string([]byte{
  191. 0x0a, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
  192. 0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22,
  193. 0xc0, 0x03, 0x0a, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12,
  194. 0x3d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  195. 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
  196. 0x4d, 0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x70,
  197. 0x65, 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x3d,
  198. 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  199. 0x32, 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d,
  200. 0x65, 0x6d, 0x6f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74,
  201. 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a,
  202. 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67,
  203. 0x73, 0x1a, 0xb6, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x19,
  204. 0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
  205. 0x52, 0x07, 0x68, 0x61, 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x61, 0x73,
  206. 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
  207. 0x52, 0x0b, 0x68, 0x61, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x0a,
  208. 0x08, 0x68, 0x61, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
  209. 0x07, 0x68, 0x61, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x61, 0x73, 0x5f,
  210. 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73,
  211. 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x68, 0x61, 0x73, 0x49, 0x6e, 0x63, 0x6f, 0x6d,
  212. 0x70, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65,
  213. 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a,
  214. 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x1a, 0x66, 0x0a, 0x08, 0x4c, 0x6f,
  215. 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68,
  216. 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6c, 0x61,
  217. 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69,
  218. 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69,
  219. 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64,
  220. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75,
  221. 0x64, 0x65, 0x42, 0x94, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
  222. 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x09, 0x4d, 0x65, 0x6d, 0x6f, 0x50, 0x72, 0x6f, 0x74,
  223. 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  224. 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70,
  225. 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02,
  226. 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f,
  227. 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65,
  228. 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47,
  229. 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d,
  230. 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  231. 0x33,
  232. })
  233. var (
  234. file_store_memo_proto_rawDescOnce sync.Once
  235. file_store_memo_proto_rawDescData []byte
  236. )
  237. func file_store_memo_proto_rawDescGZIP() []byte {
  238. file_store_memo_proto_rawDescOnce.Do(func() {
  239. file_store_memo_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_memo_proto_rawDesc), len(file_store_memo_proto_rawDesc)))
  240. })
  241. return file_store_memo_proto_rawDescData
  242. }
  243. var file_store_memo_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  244. var file_store_memo_proto_goTypes = []any{
  245. (*MemoPayload)(nil), // 0: memos.store.MemoPayload
  246. (*MemoPayload_Property)(nil), // 1: memos.store.MemoPayload.Property
  247. (*MemoPayload_Location)(nil), // 2: memos.store.MemoPayload.Location
  248. }
  249. var file_store_memo_proto_depIdxs = []int32{
  250. 1, // 0: memos.store.MemoPayload.property:type_name -> memos.store.MemoPayload.Property
  251. 2, // 1: memos.store.MemoPayload.location:type_name -> memos.store.MemoPayload.Location
  252. 2, // [2:2] is the sub-list for method output_type
  253. 2, // [2:2] is the sub-list for method input_type
  254. 2, // [2:2] is the sub-list for extension type_name
  255. 2, // [2:2] is the sub-list for extension extendee
  256. 0, // [0:2] is the sub-list for field type_name
  257. }
  258. func init() { file_store_memo_proto_init() }
  259. func file_store_memo_proto_init() {
  260. if File_store_memo_proto != nil {
  261. return
  262. }
  263. type x struct{}
  264. out := protoimpl.TypeBuilder{
  265. File: protoimpl.DescBuilder{
  266. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  267. RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_memo_proto_rawDesc), len(file_store_memo_proto_rawDesc)),
  268. NumEnums: 0,
  269. NumMessages: 3,
  270. NumExtensions: 0,
  271. NumServices: 0,
  272. },
  273. GoTypes: file_store_memo_proto_goTypes,
  274. DependencyIndexes: file_store_memo_proto_depIdxs,
  275. MessageInfos: file_store_memo_proto_msgTypes,
  276. }.Build()
  277. File_store_memo_proto = out.File
  278. file_store_memo_proto_goTypes = nil
  279. file_store_memo_proto_depIdxs = nil
  280. }