activity.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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/activity.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 ActivityMemoCommentPayload struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. MemoId int32 `protobuf:"varint,1,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
  23. RelatedMemoId int32 `protobuf:"varint,2,opt,name=related_memo_id,json=relatedMemoId,proto3" json:"related_memo_id,omitempty"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *ActivityMemoCommentPayload) Reset() {
  28. *x = ActivityMemoCommentPayload{}
  29. mi := &file_store_activity_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *ActivityMemoCommentPayload) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*ActivityMemoCommentPayload) ProtoMessage() {}
  37. func (x *ActivityMemoCommentPayload) ProtoReflect() protoreflect.Message {
  38. mi := &file_store_activity_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use ActivityMemoCommentPayload.ProtoReflect.Descriptor instead.
  49. func (*ActivityMemoCommentPayload) Descriptor() ([]byte, []int) {
  50. return file_store_activity_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *ActivityMemoCommentPayload) GetMemoId() int32 {
  53. if x != nil {
  54. return x.MemoId
  55. }
  56. return 0
  57. }
  58. func (x *ActivityMemoCommentPayload) GetRelatedMemoId() int32 {
  59. if x != nil {
  60. return x.RelatedMemoId
  61. }
  62. return 0
  63. }
  64. type ActivityVersionUpdatePayload struct {
  65. state protoimpl.MessageState `protogen:"open.v1"`
  66. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  67. unknownFields protoimpl.UnknownFields
  68. sizeCache protoimpl.SizeCache
  69. }
  70. func (x *ActivityVersionUpdatePayload) Reset() {
  71. *x = ActivityVersionUpdatePayload{}
  72. mi := &file_store_activity_proto_msgTypes[1]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. func (x *ActivityVersionUpdatePayload) String() string {
  77. return protoimpl.X.MessageStringOf(x)
  78. }
  79. func (*ActivityVersionUpdatePayload) ProtoMessage() {}
  80. func (x *ActivityVersionUpdatePayload) ProtoReflect() protoreflect.Message {
  81. mi := &file_store_activity_proto_msgTypes[1]
  82. if x != nil {
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. if ms.LoadMessageInfo() == nil {
  85. ms.StoreMessageInfo(mi)
  86. }
  87. return ms
  88. }
  89. return mi.MessageOf(x)
  90. }
  91. // Deprecated: Use ActivityVersionUpdatePayload.ProtoReflect.Descriptor instead.
  92. func (*ActivityVersionUpdatePayload) Descriptor() ([]byte, []int) {
  93. return file_store_activity_proto_rawDescGZIP(), []int{1}
  94. }
  95. func (x *ActivityVersionUpdatePayload) GetVersion() string {
  96. if x != nil {
  97. return x.Version
  98. }
  99. return ""
  100. }
  101. type ActivityPayload struct {
  102. state protoimpl.MessageState `protogen:"open.v1"`
  103. MemoComment *ActivityMemoCommentPayload `protobuf:"bytes,1,opt,name=memo_comment,json=memoComment,proto3" json:"memo_comment,omitempty"`
  104. VersionUpdate *ActivityVersionUpdatePayload `protobuf:"bytes,2,opt,name=version_update,json=versionUpdate,proto3" json:"version_update,omitempty"`
  105. unknownFields protoimpl.UnknownFields
  106. sizeCache protoimpl.SizeCache
  107. }
  108. func (x *ActivityPayload) Reset() {
  109. *x = ActivityPayload{}
  110. mi := &file_store_activity_proto_msgTypes[2]
  111. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  112. ms.StoreMessageInfo(mi)
  113. }
  114. func (x *ActivityPayload) String() string {
  115. return protoimpl.X.MessageStringOf(x)
  116. }
  117. func (*ActivityPayload) ProtoMessage() {}
  118. func (x *ActivityPayload) ProtoReflect() protoreflect.Message {
  119. mi := &file_store_activity_proto_msgTypes[2]
  120. if x != nil {
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. if ms.LoadMessageInfo() == nil {
  123. ms.StoreMessageInfo(mi)
  124. }
  125. return ms
  126. }
  127. return mi.MessageOf(x)
  128. }
  129. // Deprecated: Use ActivityPayload.ProtoReflect.Descriptor instead.
  130. func (*ActivityPayload) Descriptor() ([]byte, []int) {
  131. return file_store_activity_proto_rawDescGZIP(), []int{2}
  132. }
  133. func (x *ActivityPayload) GetMemoComment() *ActivityMemoCommentPayload {
  134. if x != nil {
  135. return x.MemoComment
  136. }
  137. return nil
  138. }
  139. func (x *ActivityPayload) GetVersionUpdate() *ActivityVersionUpdatePayload {
  140. if x != nil {
  141. return x.VersionUpdate
  142. }
  143. return nil
  144. }
  145. var File_store_activity_proto protoreflect.FileDescriptor
  146. var file_store_activity_proto_rawDesc = string([]byte{
  147. 0x0a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
  148. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74,
  149. 0x6f, 0x72, 0x65, 0x22, 0x5d, 0x0a, 0x1a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4d,
  150. 0x65, 0x6d, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61,
  151. 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  152. 0x28, 0x05, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x72, 0x65,
  153. 0x6c, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
  154. 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x6f,
  155. 0x49, 0x64, 0x22, 0x38, 0x0a, 0x1c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x56, 0x65,
  156. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f,
  157. 0x61, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
  158. 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x01, 0x0a,
  159. 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
  160. 0x12, 0x4a, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
  161. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73,
  162. 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x6d,
  163. 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52,
  164. 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x50, 0x0a, 0x0e,
  165. 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02,
  166. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f,
  167. 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69,
  168. 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52,
  169. 0x0d, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x98,
  170. 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f,
  171. 0x72, 0x65, 0x42, 0x0d, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74,
  172. 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  173. 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70,
  174. 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02,
  175. 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f,
  176. 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65,
  177. 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47,
  178. 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d,
  179. 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  180. 0x33,
  181. })
  182. var (
  183. file_store_activity_proto_rawDescOnce sync.Once
  184. file_store_activity_proto_rawDescData []byte
  185. )
  186. func file_store_activity_proto_rawDescGZIP() []byte {
  187. file_store_activity_proto_rawDescOnce.Do(func() {
  188. file_store_activity_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_activity_proto_rawDesc), len(file_store_activity_proto_rawDesc)))
  189. })
  190. return file_store_activity_proto_rawDescData
  191. }
  192. var file_store_activity_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  193. var file_store_activity_proto_goTypes = []any{
  194. (*ActivityMemoCommentPayload)(nil), // 0: memos.store.ActivityMemoCommentPayload
  195. (*ActivityVersionUpdatePayload)(nil), // 1: memos.store.ActivityVersionUpdatePayload
  196. (*ActivityPayload)(nil), // 2: memos.store.ActivityPayload
  197. }
  198. var file_store_activity_proto_depIdxs = []int32{
  199. 0, // 0: memos.store.ActivityPayload.memo_comment:type_name -> memos.store.ActivityMemoCommentPayload
  200. 1, // 1: memos.store.ActivityPayload.version_update:type_name -> memos.store.ActivityVersionUpdatePayload
  201. 2, // [2:2] is the sub-list for method output_type
  202. 2, // [2:2] is the sub-list for method input_type
  203. 2, // [2:2] is the sub-list for extension type_name
  204. 2, // [2:2] is the sub-list for extension extendee
  205. 0, // [0:2] is the sub-list for field type_name
  206. }
  207. func init() { file_store_activity_proto_init() }
  208. func file_store_activity_proto_init() {
  209. if File_store_activity_proto != nil {
  210. return
  211. }
  212. type x struct{}
  213. out := protoimpl.TypeBuilder{
  214. File: protoimpl.DescBuilder{
  215. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  216. RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_activity_proto_rawDesc), len(file_store_activity_proto_rawDesc)),
  217. NumEnums: 0,
  218. NumMessages: 3,
  219. NumExtensions: 0,
  220. NumServices: 0,
  221. },
  222. GoTypes: file_store_activity_proto_goTypes,
  223. DependencyIndexes: file_store_activity_proto_depIdxs,
  224. MessageInfos: file_store_activity_proto_msgTypes,
  225. }.Build()
  226. File_store_activity_proto = out.File
  227. file_store_activity_proto_goTypes = nil
  228. file_store_activity_proto_depIdxs = nil
  229. }