reaction_service.pb.go 6.4 KB

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