activity_service.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc (unknown)
  5. // source: api/v1/activity_service.proto
  6. package apiv1
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  12. reflect "reflect"
  13. sync "sync"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type Activity struct {
  22. state protoimpl.MessageState
  23. sizeCache protoimpl.SizeCache
  24. unknownFields protoimpl.UnknownFields
  25. // The system-generated unique identifier for the activity.
  26. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  27. // The system-generated unique identifier for the user who created the activity.
  28. CreatorId int32 `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
  29. // The type of the activity.
  30. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  31. // The level of the activity.
  32. Level string `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"`
  33. // The create time of the activity.
  34. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  35. // The payload of the activity.
  36. Payload *ActivityPayload `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
  37. }
  38. func (x *Activity) Reset() {
  39. *x = Activity{}
  40. if protoimpl.UnsafeEnabled {
  41. mi := &file_api_v1_activity_service_proto_msgTypes[0]
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. ms.StoreMessageInfo(mi)
  44. }
  45. }
  46. func (x *Activity) String() string {
  47. return protoimpl.X.MessageStringOf(x)
  48. }
  49. func (*Activity) ProtoMessage() {}
  50. func (x *Activity) ProtoReflect() protoreflect.Message {
  51. mi := &file_api_v1_activity_service_proto_msgTypes[0]
  52. if protoimpl.UnsafeEnabled && x != nil {
  53. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  54. if ms.LoadMessageInfo() == nil {
  55. ms.StoreMessageInfo(mi)
  56. }
  57. return ms
  58. }
  59. return mi.MessageOf(x)
  60. }
  61. // Deprecated: Use Activity.ProtoReflect.Descriptor instead.
  62. func (*Activity) Descriptor() ([]byte, []int) {
  63. return file_api_v1_activity_service_proto_rawDescGZIP(), []int{0}
  64. }
  65. func (x *Activity) GetId() int32 {
  66. if x != nil {
  67. return x.Id
  68. }
  69. return 0
  70. }
  71. func (x *Activity) GetCreatorId() int32 {
  72. if x != nil {
  73. return x.CreatorId
  74. }
  75. return 0
  76. }
  77. func (x *Activity) GetType() string {
  78. if x != nil {
  79. return x.Type
  80. }
  81. return ""
  82. }
  83. func (x *Activity) GetLevel() string {
  84. if x != nil {
  85. return x.Level
  86. }
  87. return ""
  88. }
  89. func (x *Activity) GetCreateTime() *timestamppb.Timestamp {
  90. if x != nil {
  91. return x.CreateTime
  92. }
  93. return nil
  94. }
  95. func (x *Activity) GetPayload() *ActivityPayload {
  96. if x != nil {
  97. return x.Payload
  98. }
  99. return nil
  100. }
  101. // ActivityMemoCommentPayload represents the payload of a memo comment activity.
  102. type ActivityMemoCommentPayload struct {
  103. state protoimpl.MessageState
  104. sizeCache protoimpl.SizeCache
  105. unknownFields protoimpl.UnknownFields
  106. // The memo id of comment.
  107. MemoId int32 `protobuf:"varint,1,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
  108. // The memo id of related memo.
  109. RelatedMemoId int32 `protobuf:"varint,2,opt,name=related_memo_id,json=relatedMemoId,proto3" json:"related_memo_id,omitempty"`
  110. }
  111. func (x *ActivityMemoCommentPayload) Reset() {
  112. *x = ActivityMemoCommentPayload{}
  113. if protoimpl.UnsafeEnabled {
  114. mi := &file_api_v1_activity_service_proto_msgTypes[1]
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. ms.StoreMessageInfo(mi)
  117. }
  118. }
  119. func (x *ActivityMemoCommentPayload) String() string {
  120. return protoimpl.X.MessageStringOf(x)
  121. }
  122. func (*ActivityMemoCommentPayload) ProtoMessage() {}
  123. func (x *ActivityMemoCommentPayload) ProtoReflect() protoreflect.Message {
  124. mi := &file_api_v1_activity_service_proto_msgTypes[1]
  125. if protoimpl.UnsafeEnabled && x != nil {
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. if ms.LoadMessageInfo() == nil {
  128. ms.StoreMessageInfo(mi)
  129. }
  130. return ms
  131. }
  132. return mi.MessageOf(x)
  133. }
  134. // Deprecated: Use ActivityMemoCommentPayload.ProtoReflect.Descriptor instead.
  135. func (*ActivityMemoCommentPayload) Descriptor() ([]byte, []int) {
  136. return file_api_v1_activity_service_proto_rawDescGZIP(), []int{1}
  137. }
  138. func (x *ActivityMemoCommentPayload) GetMemoId() int32 {
  139. if x != nil {
  140. return x.MemoId
  141. }
  142. return 0
  143. }
  144. func (x *ActivityMemoCommentPayload) GetRelatedMemoId() int32 {
  145. if x != nil {
  146. return x.RelatedMemoId
  147. }
  148. return 0
  149. }
  150. type ActivityVersionUpdatePayload struct {
  151. state protoimpl.MessageState
  152. sizeCache protoimpl.SizeCache
  153. unknownFields protoimpl.UnknownFields
  154. // The updated version of memos.
  155. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  156. }
  157. func (x *ActivityVersionUpdatePayload) Reset() {
  158. *x = ActivityVersionUpdatePayload{}
  159. if protoimpl.UnsafeEnabled {
  160. mi := &file_api_v1_activity_service_proto_msgTypes[2]
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. ms.StoreMessageInfo(mi)
  163. }
  164. }
  165. func (x *ActivityVersionUpdatePayload) String() string {
  166. return protoimpl.X.MessageStringOf(x)
  167. }
  168. func (*ActivityVersionUpdatePayload) ProtoMessage() {}
  169. func (x *ActivityVersionUpdatePayload) ProtoReflect() protoreflect.Message {
  170. mi := &file_api_v1_activity_service_proto_msgTypes[2]
  171. if protoimpl.UnsafeEnabled && x != nil {
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. if ms.LoadMessageInfo() == nil {
  174. ms.StoreMessageInfo(mi)
  175. }
  176. return ms
  177. }
  178. return mi.MessageOf(x)
  179. }
  180. // Deprecated: Use ActivityVersionUpdatePayload.ProtoReflect.Descriptor instead.
  181. func (*ActivityVersionUpdatePayload) Descriptor() ([]byte, []int) {
  182. return file_api_v1_activity_service_proto_rawDescGZIP(), []int{2}
  183. }
  184. func (x *ActivityVersionUpdatePayload) GetVersion() string {
  185. if x != nil {
  186. return x.Version
  187. }
  188. return ""
  189. }
  190. type ActivityPayload struct {
  191. state protoimpl.MessageState
  192. sizeCache protoimpl.SizeCache
  193. unknownFields protoimpl.UnknownFields
  194. MemoComment *ActivityMemoCommentPayload `protobuf:"bytes,1,opt,name=memo_comment,json=memoComment,proto3" json:"memo_comment,omitempty"`
  195. VersionUpdate *ActivityVersionUpdatePayload `protobuf:"bytes,2,opt,name=version_update,json=versionUpdate,proto3" json:"version_update,omitempty"`
  196. }
  197. func (x *ActivityPayload) Reset() {
  198. *x = ActivityPayload{}
  199. if protoimpl.UnsafeEnabled {
  200. mi := &file_api_v1_activity_service_proto_msgTypes[3]
  201. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  202. ms.StoreMessageInfo(mi)
  203. }
  204. }
  205. func (x *ActivityPayload) String() string {
  206. return protoimpl.X.MessageStringOf(x)
  207. }
  208. func (*ActivityPayload) ProtoMessage() {}
  209. func (x *ActivityPayload) ProtoReflect() protoreflect.Message {
  210. mi := &file_api_v1_activity_service_proto_msgTypes[3]
  211. if protoimpl.UnsafeEnabled && x != nil {
  212. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  213. if ms.LoadMessageInfo() == nil {
  214. ms.StoreMessageInfo(mi)
  215. }
  216. return ms
  217. }
  218. return mi.MessageOf(x)
  219. }
  220. // Deprecated: Use ActivityPayload.ProtoReflect.Descriptor instead.
  221. func (*ActivityPayload) Descriptor() ([]byte, []int) {
  222. return file_api_v1_activity_service_proto_rawDescGZIP(), []int{3}
  223. }
  224. func (x *ActivityPayload) GetMemoComment() *ActivityMemoCommentPayload {
  225. if x != nil {
  226. return x.MemoComment
  227. }
  228. return nil
  229. }
  230. func (x *ActivityPayload) GetVersionUpdate() *ActivityVersionUpdatePayload {
  231. if x != nil {
  232. return x.VersionUpdate
  233. }
  234. return nil
  235. }
  236. type GetActivityRequest struct {
  237. state protoimpl.MessageState
  238. sizeCache protoimpl.SizeCache
  239. unknownFields protoimpl.UnknownFields
  240. // The system-generated unique identifier for the activity.
  241. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  242. }
  243. func (x *GetActivityRequest) Reset() {
  244. *x = GetActivityRequest{}
  245. if protoimpl.UnsafeEnabled {
  246. mi := &file_api_v1_activity_service_proto_msgTypes[4]
  247. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  248. ms.StoreMessageInfo(mi)
  249. }
  250. }
  251. func (x *GetActivityRequest) String() string {
  252. return protoimpl.X.MessageStringOf(x)
  253. }
  254. func (*GetActivityRequest) ProtoMessage() {}
  255. func (x *GetActivityRequest) ProtoReflect() protoreflect.Message {
  256. mi := &file_api_v1_activity_service_proto_msgTypes[4]
  257. if protoimpl.UnsafeEnabled && x != nil {
  258. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  259. if ms.LoadMessageInfo() == nil {
  260. ms.StoreMessageInfo(mi)
  261. }
  262. return ms
  263. }
  264. return mi.MessageOf(x)
  265. }
  266. // Deprecated: Use GetActivityRequest.ProtoReflect.Descriptor instead.
  267. func (*GetActivityRequest) Descriptor() ([]byte, []int) {
  268. return file_api_v1_activity_service_proto_rawDescGZIP(), []int{4}
  269. }
  270. func (x *GetActivityRequest) GetId() int32 {
  271. if x != nil {
  272. return x.Id
  273. }
  274. return 0
  275. }
  276. var File_api_v1_activity_service_proto protoreflect.FileDescriptor
  277. var file_api_v1_activity_service_proto_rawDesc = []byte{
  278. 0x0a, 0x1d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74,
  279. 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  280. 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67,
  281. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
  282. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f,
  283. 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70,
  284. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
  285. 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
  286. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
  287. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
  288. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76,
  289. 0x69, 0x74, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
  290. 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69,
  291. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
  292. 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  293. 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
  294. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x41, 0x0a, 0x0b,
  295. 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
  296. 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  297. 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2,
  298. 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12,
  299. 0x37, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
  300. 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  301. 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52,
  302. 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x5d, 0x0a, 0x1a, 0x41, 0x63, 0x74, 0x69,
  303. 0x76, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x6d, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50,
  304. 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x69,
  305. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x49, 0x64, 0x12,
  306. 0x26, 0x0a, 0x0f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x5f,
  307. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65,
  308. 0x64, 0x4d, 0x65, 0x6d, 0x6f, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x1c, 0x41, 0x63, 0x74, 0x69, 0x76,
  309. 0x69, 0x74, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
  310. 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
  311. 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
  312. 0x6e, 0x22, 0xb1, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x50, 0x61,
  313. 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x4b, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x63, 0x6f,
  314. 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6d, 0x65,
  315. 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76,
  316. 0x69, 0x74, 0x79, 0x4d, 0x65, 0x6d, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61,
  317. 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x65,
  318. 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x70,
  319. 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6d, 0x65, 0x6d,
  320. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69,
  321. 0x74, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,
  322. 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0d, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x55,
  323. 0x70, 0x64, 0x61, 0x74, 0x65, 0x22, 0x24, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69,
  324. 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  325. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x32, 0x80, 0x01, 0x0a, 0x0f,
  326. 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
  327. 0x6d, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x20,
  328. 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
  329. 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  330. 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,
  331. 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22, 0x24, 0xda, 0x41, 0x02, 0x69, 0x64, 0x82,
  332. 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61,
  333. 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xac,
  334. 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  335. 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72,
  336. 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74,
  337. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
  338. 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e,
  339. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03,
  340. 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e,
  341. 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56,
  342. 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31,
  343. 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d,
  344. 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
  345. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  346. }
  347. var (
  348. file_api_v1_activity_service_proto_rawDescOnce sync.Once
  349. file_api_v1_activity_service_proto_rawDescData = file_api_v1_activity_service_proto_rawDesc
  350. )
  351. func file_api_v1_activity_service_proto_rawDescGZIP() []byte {
  352. file_api_v1_activity_service_proto_rawDescOnce.Do(func() {
  353. file_api_v1_activity_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v1_activity_service_proto_rawDescData)
  354. })
  355. return file_api_v1_activity_service_proto_rawDescData
  356. }
  357. var file_api_v1_activity_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  358. var file_api_v1_activity_service_proto_goTypes = []any{
  359. (*Activity)(nil), // 0: memos.api.v1.Activity
  360. (*ActivityMemoCommentPayload)(nil), // 1: memos.api.v1.ActivityMemoCommentPayload
  361. (*ActivityVersionUpdatePayload)(nil), // 2: memos.api.v1.ActivityVersionUpdatePayload
  362. (*ActivityPayload)(nil), // 3: memos.api.v1.ActivityPayload
  363. (*GetActivityRequest)(nil), // 4: memos.api.v1.GetActivityRequest
  364. (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
  365. }
  366. var file_api_v1_activity_service_proto_depIdxs = []int32{
  367. 5, // 0: memos.api.v1.Activity.create_time:type_name -> google.protobuf.Timestamp
  368. 3, // 1: memos.api.v1.Activity.payload:type_name -> memos.api.v1.ActivityPayload
  369. 1, // 2: memos.api.v1.ActivityPayload.memo_comment:type_name -> memos.api.v1.ActivityMemoCommentPayload
  370. 2, // 3: memos.api.v1.ActivityPayload.version_update:type_name -> memos.api.v1.ActivityVersionUpdatePayload
  371. 4, // 4: memos.api.v1.ActivityService.GetActivity:input_type -> memos.api.v1.GetActivityRequest
  372. 0, // 5: memos.api.v1.ActivityService.GetActivity:output_type -> memos.api.v1.Activity
  373. 5, // [5:6] is the sub-list for method output_type
  374. 4, // [4:5] is the sub-list for method input_type
  375. 4, // [4:4] is the sub-list for extension type_name
  376. 4, // [4:4] is the sub-list for extension extendee
  377. 0, // [0:4] is the sub-list for field type_name
  378. }
  379. func init() { file_api_v1_activity_service_proto_init() }
  380. func file_api_v1_activity_service_proto_init() {
  381. if File_api_v1_activity_service_proto != nil {
  382. return
  383. }
  384. if !protoimpl.UnsafeEnabled {
  385. file_api_v1_activity_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
  386. switch v := v.(*Activity); i {
  387. case 0:
  388. return &v.state
  389. case 1:
  390. return &v.sizeCache
  391. case 2:
  392. return &v.unknownFields
  393. default:
  394. return nil
  395. }
  396. }
  397. file_api_v1_activity_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
  398. switch v := v.(*ActivityMemoCommentPayload); i {
  399. case 0:
  400. return &v.state
  401. case 1:
  402. return &v.sizeCache
  403. case 2:
  404. return &v.unknownFields
  405. default:
  406. return nil
  407. }
  408. }
  409. file_api_v1_activity_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
  410. switch v := v.(*ActivityVersionUpdatePayload); i {
  411. case 0:
  412. return &v.state
  413. case 1:
  414. return &v.sizeCache
  415. case 2:
  416. return &v.unknownFields
  417. default:
  418. return nil
  419. }
  420. }
  421. file_api_v1_activity_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
  422. switch v := v.(*ActivityPayload); i {
  423. case 0:
  424. return &v.state
  425. case 1:
  426. return &v.sizeCache
  427. case 2:
  428. return &v.unknownFields
  429. default:
  430. return nil
  431. }
  432. }
  433. file_api_v1_activity_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
  434. switch v := v.(*GetActivityRequest); i {
  435. case 0:
  436. return &v.state
  437. case 1:
  438. return &v.sizeCache
  439. case 2:
  440. return &v.unknownFields
  441. default:
  442. return nil
  443. }
  444. }
  445. }
  446. type x struct{}
  447. out := protoimpl.TypeBuilder{
  448. File: protoimpl.DescBuilder{
  449. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  450. RawDescriptor: file_api_v1_activity_service_proto_rawDesc,
  451. NumEnums: 0,
  452. NumMessages: 5,
  453. NumExtensions: 0,
  454. NumServices: 1,
  455. },
  456. GoTypes: file_api_v1_activity_service_proto_goTypes,
  457. DependencyIndexes: file_api_v1_activity_service_proto_depIdxs,
  458. MessageInfos: file_api_v1_activity_service_proto_msgTypes,
  459. }.Build()
  460. File_api_v1_activity_service_proto = out.File
  461. file_api_v1_activity_service_proto_rawDesc = nil
  462. file_api_v1_activity_service_proto_goTypes = nil
  463. file_api_v1_activity_service_proto_depIdxs = nil
  464. }