reaction_service.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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/reaction_service.proto
  6. package apiv1
  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 Reaction_Type int32
  20. const (
  21. Reaction_TYPE_UNSPECIFIED Reaction_Type = 0
  22. Reaction_THUMBS_UP Reaction_Type = 1
  23. Reaction_THUMBS_DOWN Reaction_Type = 2
  24. Reaction_HEART Reaction_Type = 3
  25. Reaction_FIRE Reaction_Type = 4
  26. Reaction_CLAPPING_HANDS Reaction_Type = 5
  27. Reaction_LAUGH Reaction_Type = 6
  28. Reaction_OK_HAND Reaction_Type = 7
  29. Reaction_ROCKET Reaction_Type = 8
  30. Reaction_EYES Reaction_Type = 9
  31. Reaction_THINKING_FACE Reaction_Type = 10
  32. Reaction_CLOWN_FACE Reaction_Type = 11
  33. Reaction_QUESTION_MARK Reaction_Type = 12
  34. )
  35. // Enum value maps for Reaction_Type.
  36. var (
  37. Reaction_Type_name = map[int32]string{
  38. 0: "TYPE_UNSPECIFIED",
  39. 1: "THUMBS_UP",
  40. 2: "THUMBS_DOWN",
  41. 3: "HEART",
  42. 4: "FIRE",
  43. 5: "CLAPPING_HANDS",
  44. 6: "LAUGH",
  45. 7: "OK_HAND",
  46. 8: "ROCKET",
  47. 9: "EYES",
  48. 10: "THINKING_FACE",
  49. 11: "CLOWN_FACE",
  50. 12: "QUESTION_MARK",
  51. }
  52. Reaction_Type_value = map[string]int32{
  53. "TYPE_UNSPECIFIED": 0,
  54. "THUMBS_UP": 1,
  55. "THUMBS_DOWN": 2,
  56. "HEART": 3,
  57. "FIRE": 4,
  58. "CLAPPING_HANDS": 5,
  59. "LAUGH": 6,
  60. "OK_HAND": 7,
  61. "ROCKET": 8,
  62. "EYES": 9,
  63. "THINKING_FACE": 10,
  64. "CLOWN_FACE": 11,
  65. "QUESTION_MARK": 12,
  66. }
  67. )
  68. func (x Reaction_Type) Enum() *Reaction_Type {
  69. p := new(Reaction_Type)
  70. *p = x
  71. return p
  72. }
  73. func (x Reaction_Type) String() string {
  74. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  75. }
  76. func (Reaction_Type) Descriptor() protoreflect.EnumDescriptor {
  77. return file_api_v1_reaction_service_proto_enumTypes[0].Descriptor()
  78. }
  79. func (Reaction_Type) Type() protoreflect.EnumType {
  80. return &file_api_v1_reaction_service_proto_enumTypes[0]
  81. }
  82. func (x Reaction_Type) Number() protoreflect.EnumNumber {
  83. return protoreflect.EnumNumber(x)
  84. }
  85. // Deprecated: Use Reaction_Type.Descriptor instead.
  86. func (Reaction_Type) EnumDescriptor() ([]byte, []int) {
  87. return file_api_v1_reaction_service_proto_rawDescGZIP(), []int{0, 0}
  88. }
  89. type Reaction struct {
  90. state protoimpl.MessageState
  91. sizeCache protoimpl.SizeCache
  92. unknownFields protoimpl.UnknownFields
  93. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  94. // The name of the creator.
  95. // Format: users/{id}
  96. Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
  97. ContentId string `protobuf:"bytes,3,opt,name=content_id,json=contentId,proto3" json:"content_id,omitempty"`
  98. ReactionType Reaction_Type `protobuf:"varint,4,opt,name=reaction_type,json=reactionType,proto3,enum=memos.api.v1.Reaction_Type" json:"reaction_type,omitempty"`
  99. }
  100. func (x *Reaction) Reset() {
  101. *x = Reaction{}
  102. if protoimpl.UnsafeEnabled {
  103. mi := &file_api_v1_reaction_service_proto_msgTypes[0]
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. ms.StoreMessageInfo(mi)
  106. }
  107. }
  108. func (x *Reaction) String() string {
  109. return protoimpl.X.MessageStringOf(x)
  110. }
  111. func (*Reaction) ProtoMessage() {}
  112. func (x *Reaction) ProtoReflect() protoreflect.Message {
  113. mi := &file_api_v1_reaction_service_proto_msgTypes[0]
  114. if protoimpl.UnsafeEnabled && x != nil {
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. if ms.LoadMessageInfo() == nil {
  117. ms.StoreMessageInfo(mi)
  118. }
  119. return ms
  120. }
  121. return mi.MessageOf(x)
  122. }
  123. // Deprecated: Use Reaction.ProtoReflect.Descriptor instead.
  124. func (*Reaction) Descriptor() ([]byte, []int) {
  125. return file_api_v1_reaction_service_proto_rawDescGZIP(), []int{0}
  126. }
  127. func (x *Reaction) GetId() int32 {
  128. if x != nil {
  129. return x.Id
  130. }
  131. return 0
  132. }
  133. func (x *Reaction) GetCreator() string {
  134. if x != nil {
  135. return x.Creator
  136. }
  137. return ""
  138. }
  139. func (x *Reaction) GetContentId() string {
  140. if x != nil {
  141. return x.ContentId
  142. }
  143. return ""
  144. }
  145. func (x *Reaction) GetReactionType() Reaction_Type {
  146. if x != nil {
  147. return x.ReactionType
  148. }
  149. return Reaction_TYPE_UNSPECIFIED
  150. }
  151. var File_api_v1_reaction_service_proto protoreflect.FileDescriptor
  152. var file_api_v1_reaction_service_proto_rawDesc = []byte{
  153. 0x0a, 0x1d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f,
  154. 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  155. 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x22, 0xe1, 0x02,
  156. 0x0a, 0x08, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  157. 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72,
  158. 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65,
  159. 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
  160. 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  161. 0x74, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
  162. 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6d, 0x65, 0x6d,
  163. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69,
  164. 0x6f, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f,
  165. 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0xc9, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,
  166. 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
  167. 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x55,
  168. 0x50, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x44, 0x4f,
  169. 0x57, 0x4e, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x45, 0x41, 0x52, 0x54, 0x10, 0x03, 0x12,
  170. 0x08, 0x0a, 0x04, 0x46, 0x49, 0x52, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41,
  171. 0x50, 0x50, 0x49, 0x4e, 0x47, 0x5f, 0x48, 0x41, 0x4e, 0x44, 0x53, 0x10, 0x05, 0x12, 0x09, 0x0a,
  172. 0x05, 0x4c, 0x41, 0x55, 0x47, 0x48, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x4b, 0x5f, 0x48,
  173. 0x41, 0x4e, 0x44, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x4f, 0x43, 0x4b, 0x45, 0x54, 0x10,
  174. 0x08, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x59, 0x45, 0x53, 0x10, 0x09, 0x12, 0x11, 0x0a, 0x0d, 0x54,
  175. 0x48, 0x49, 0x4e, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x0a, 0x12, 0x0e,
  176. 0x0a, 0x0a, 0x43, 0x4c, 0x4f, 0x57, 0x4e, 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x0b, 0x12, 0x11,
  177. 0x0a, 0x0d, 0x51, 0x55, 0x45, 0x53, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x10,
  178. 0x0c, 0x42, 0xac, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,
  179. 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
  180. 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30,
  181. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65,
  182. 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
  183. 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31,
  184. 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
  185. 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70,
  186. 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69,
  187. 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
  188. 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31,
  189. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  190. }
  191. var (
  192. file_api_v1_reaction_service_proto_rawDescOnce sync.Once
  193. file_api_v1_reaction_service_proto_rawDescData = file_api_v1_reaction_service_proto_rawDesc
  194. )
  195. func file_api_v1_reaction_service_proto_rawDescGZIP() []byte {
  196. file_api_v1_reaction_service_proto_rawDescOnce.Do(func() {
  197. file_api_v1_reaction_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v1_reaction_service_proto_rawDescData)
  198. })
  199. return file_api_v1_reaction_service_proto_rawDescData
  200. }
  201. var file_api_v1_reaction_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  202. var file_api_v1_reaction_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  203. var file_api_v1_reaction_service_proto_goTypes = []any{
  204. (Reaction_Type)(0), // 0: memos.api.v1.Reaction.Type
  205. (*Reaction)(nil), // 1: memos.api.v1.Reaction
  206. }
  207. var file_api_v1_reaction_service_proto_depIdxs = []int32{
  208. 0, // 0: memos.api.v1.Reaction.reaction_type:type_name -> memos.api.v1.Reaction.Type
  209. 1, // [1:1] is the sub-list for method output_type
  210. 1, // [1:1] is the sub-list for method input_type
  211. 1, // [1:1] is the sub-list for extension type_name
  212. 1, // [1:1] is the sub-list for extension extendee
  213. 0, // [0:1] is the sub-list for field type_name
  214. }
  215. func init() { file_api_v1_reaction_service_proto_init() }
  216. func file_api_v1_reaction_service_proto_init() {
  217. if File_api_v1_reaction_service_proto != nil {
  218. return
  219. }
  220. if !protoimpl.UnsafeEnabled {
  221. file_api_v1_reaction_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
  222. switch v := v.(*Reaction); i {
  223. case 0:
  224. return &v.state
  225. case 1:
  226. return &v.sizeCache
  227. case 2:
  228. return &v.unknownFields
  229. default:
  230. return nil
  231. }
  232. }
  233. }
  234. type x struct{}
  235. out := protoimpl.TypeBuilder{
  236. File: protoimpl.DescBuilder{
  237. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  238. RawDescriptor: file_api_v1_reaction_service_proto_rawDesc,
  239. NumEnums: 1,
  240. NumMessages: 1,
  241. NumExtensions: 0,
  242. NumServices: 0,
  243. },
  244. GoTypes: file_api_v1_reaction_service_proto_goTypes,
  245. DependencyIndexes: file_api_v1_reaction_service_proto_depIdxs,
  246. EnumInfos: file_api_v1_reaction_service_proto_enumTypes,
  247. MessageInfos: file_api_v1_reaction_service_proto_msgTypes,
  248. }.Build()
  249. File_api_v1_reaction_service_proto = out.File
  250. file_api_v1_reaction_service_proto_rawDesc = nil
  251. file_api_v1_reaction_service_proto_goTypes = nil
  252. file_api_v1_reaction_service_proto_depIdxs = nil
  253. }