reaction_service.pb.go 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.3
  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 struct {
  20. state protoimpl.MessageState `protogen:"open.v1"`
  21. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  22. // The name of the creator.
  23. // Format: users/{user}
  24. Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
  25. // The content identifier.
  26. // For memo, it should be the `Memo.name`.
  27. ContentId string `protobuf:"bytes,3,opt,name=content_id,json=contentId,proto3" json:"content_id,omitempty"`
  28. ReactionType string `protobuf:"bytes,4,opt,name=reaction_type,json=reactionType,proto3" json:"reaction_type,omitempty"`
  29. unknownFields protoimpl.UnknownFields
  30. sizeCache protoimpl.SizeCache
  31. }
  32. func (x *Reaction) Reset() {
  33. *x = Reaction{}
  34. mi := &file_api_v1_reaction_service_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. func (x *Reaction) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*Reaction) ProtoMessage() {}
  42. func (x *Reaction) ProtoReflect() protoreflect.Message {
  43. mi := &file_api_v1_reaction_service_proto_msgTypes[0]
  44. if x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use Reaction.ProtoReflect.Descriptor instead.
  54. func (*Reaction) Descriptor() ([]byte, []int) {
  55. return file_api_v1_reaction_service_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *Reaction) GetId() int32 {
  58. if x != nil {
  59. return x.Id
  60. }
  61. return 0
  62. }
  63. func (x *Reaction) GetCreator() string {
  64. if x != nil {
  65. return x.Creator
  66. }
  67. return ""
  68. }
  69. func (x *Reaction) GetContentId() string {
  70. if x != nil {
  71. return x.ContentId
  72. }
  73. return ""
  74. }
  75. func (x *Reaction) GetReactionType() string {
  76. if x != nil {
  77. return x.ReactionType
  78. }
  79. return ""
  80. }
  81. var File_api_v1_reaction_service_proto protoreflect.FileDescriptor
  82. var file_api_v1_reaction_service_proto_rawDesc = []byte{
  83. 0x0a, 0x1d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f,
  84. 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  85. 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x22, 0x78, 0x0a,
  86. 0x08, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
  87. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65,
  88. 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,
  89. 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x69,
  90. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  91. 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74,
  92. 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x61, 0x63, 0x74,
  93. 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, 0xac, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e,
  94. 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x52, 0x65,
  95. 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f,
  96. 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  97. 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f,
  98. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
  99. 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d,
  100. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65,
  101. 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d,
  102. 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
  103. 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41,
  104. 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  105. }
  106. var (
  107. file_api_v1_reaction_service_proto_rawDescOnce sync.Once
  108. file_api_v1_reaction_service_proto_rawDescData = file_api_v1_reaction_service_proto_rawDesc
  109. )
  110. func file_api_v1_reaction_service_proto_rawDescGZIP() []byte {
  111. file_api_v1_reaction_service_proto_rawDescOnce.Do(func() {
  112. file_api_v1_reaction_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v1_reaction_service_proto_rawDescData)
  113. })
  114. return file_api_v1_reaction_service_proto_rawDescData
  115. }
  116. var file_api_v1_reaction_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  117. var file_api_v1_reaction_service_proto_goTypes = []any{
  118. (*Reaction)(nil), // 0: memos.api.v1.Reaction
  119. }
  120. var file_api_v1_reaction_service_proto_depIdxs = []int32{
  121. 0, // [0:0] is the sub-list for method output_type
  122. 0, // [0:0] is the sub-list for method input_type
  123. 0, // [0:0] is the sub-list for extension type_name
  124. 0, // [0:0] is the sub-list for extension extendee
  125. 0, // [0:0] is the sub-list for field type_name
  126. }
  127. func init() { file_api_v1_reaction_service_proto_init() }
  128. func file_api_v1_reaction_service_proto_init() {
  129. if File_api_v1_reaction_service_proto != nil {
  130. return
  131. }
  132. type x struct{}
  133. out := protoimpl.TypeBuilder{
  134. File: protoimpl.DescBuilder{
  135. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  136. RawDescriptor: file_api_v1_reaction_service_proto_rawDesc,
  137. NumEnums: 0,
  138. NumMessages: 1,
  139. NumExtensions: 0,
  140. NumServices: 0,
  141. },
  142. GoTypes: file_api_v1_reaction_service_proto_goTypes,
  143. DependencyIndexes: file_api_v1_reaction_service_proto_depIdxs,
  144. MessageInfos: file_api_v1_reaction_service_proto_msgTypes,
  145. }.Build()
  146. File_api_v1_reaction_service_proto = out.File
  147. file_api_v1_reaction_service_proto_rawDesc = nil
  148. file_api_v1_reaction_service_proto_goTypes = nil
  149. file_api_v1_reaction_service_proto_depIdxs = nil
  150. }