memo.pb.go 12 KB

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