memo_relation_service.pb.go 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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/memo_relation_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 MemoRelation_Type int32
  20. const (
  21. MemoRelation_TYPE_UNSPECIFIED MemoRelation_Type = 0
  22. MemoRelation_REFERENCE MemoRelation_Type = 1
  23. MemoRelation_COMMENT MemoRelation_Type = 2
  24. )
  25. // Enum value maps for MemoRelation_Type.
  26. var (
  27. MemoRelation_Type_name = map[int32]string{
  28. 0: "TYPE_UNSPECIFIED",
  29. 1: "REFERENCE",
  30. 2: "COMMENT",
  31. }
  32. MemoRelation_Type_value = map[string]int32{
  33. "TYPE_UNSPECIFIED": 0,
  34. "REFERENCE": 1,
  35. "COMMENT": 2,
  36. }
  37. )
  38. func (x MemoRelation_Type) Enum() *MemoRelation_Type {
  39. p := new(MemoRelation_Type)
  40. *p = x
  41. return p
  42. }
  43. func (x MemoRelation_Type) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (MemoRelation_Type) Descriptor() protoreflect.EnumDescriptor {
  47. return file_api_v1_memo_relation_service_proto_enumTypes[0].Descriptor()
  48. }
  49. func (MemoRelation_Type) Type() protoreflect.EnumType {
  50. return &file_api_v1_memo_relation_service_proto_enumTypes[0]
  51. }
  52. func (x MemoRelation_Type) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use MemoRelation_Type.Descriptor instead.
  56. func (MemoRelation_Type) EnumDescriptor() ([]byte, []int) {
  57. return file_api_v1_memo_relation_service_proto_rawDescGZIP(), []int{0, 0}
  58. }
  59. type MemoRelation struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. // The name of memo.
  64. // Format: "memos/{uid}"
  65. Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
  66. // The name of related memo.
  67. // Format: "memos/{uid}"
  68. RelatedMemo string `protobuf:"bytes,2,opt,name=related_memo,json=relatedMemo,proto3" json:"related_memo,omitempty"`
  69. Type MemoRelation_Type `protobuf:"varint,3,opt,name=type,proto3,enum=memos.api.v1.MemoRelation_Type" json:"type,omitempty"`
  70. }
  71. func (x *MemoRelation) Reset() {
  72. *x = MemoRelation{}
  73. if protoimpl.UnsafeEnabled {
  74. mi := &file_api_v1_memo_relation_service_proto_msgTypes[0]
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. ms.StoreMessageInfo(mi)
  77. }
  78. }
  79. func (x *MemoRelation) String() string {
  80. return protoimpl.X.MessageStringOf(x)
  81. }
  82. func (*MemoRelation) ProtoMessage() {}
  83. func (x *MemoRelation) ProtoReflect() protoreflect.Message {
  84. mi := &file_api_v1_memo_relation_service_proto_msgTypes[0]
  85. if protoimpl.UnsafeEnabled && x != nil {
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. if ms.LoadMessageInfo() == nil {
  88. ms.StoreMessageInfo(mi)
  89. }
  90. return ms
  91. }
  92. return mi.MessageOf(x)
  93. }
  94. // Deprecated: Use MemoRelation.ProtoReflect.Descriptor instead.
  95. func (*MemoRelation) Descriptor() ([]byte, []int) {
  96. return file_api_v1_memo_relation_service_proto_rawDescGZIP(), []int{0}
  97. }
  98. func (x *MemoRelation) GetMemo() string {
  99. if x != nil {
  100. return x.Memo
  101. }
  102. return ""
  103. }
  104. func (x *MemoRelation) GetRelatedMemo() string {
  105. if x != nil {
  106. return x.RelatedMemo
  107. }
  108. return ""
  109. }
  110. func (x *MemoRelation) GetType() MemoRelation_Type {
  111. if x != nil {
  112. return x.Type
  113. }
  114. return MemoRelation_TYPE_UNSPECIFIED
  115. }
  116. var File_api_v1_memo_relation_service_proto protoreflect.FileDescriptor
  117. var file_api_v1_memo_relation_service_proto_rawDesc = []byte{
  118. 0x0a, 0x22, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x72, 0x65,
  119. 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,
  120. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  121. 0x76, 0x31, 0x22, 0xb4, 0x01, 0x0a, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74,
  122. 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
  123. 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74,
  124. 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72,
  125. 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x6f, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79,
  126. 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73,
  127. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61,
  128. 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22,
  129. 0x38, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f,
  130. 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a,
  131. 0x09, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,
  132. 0x43, 0x4f, 0x4d, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x42, 0xb0, 0x01, 0x0a, 0x10, 0x63, 0x6f,
  133. 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x18,
  134. 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76,
  135. 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68,
  136. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f,
  137. 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f,
  138. 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d,
  139. 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56,
  140. 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31,
  141. 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c,
  142. 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65,
  143. 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,
  144. 0x6f, 0x74, 0x6f, 0x33,
  145. }
  146. var (
  147. file_api_v1_memo_relation_service_proto_rawDescOnce sync.Once
  148. file_api_v1_memo_relation_service_proto_rawDescData = file_api_v1_memo_relation_service_proto_rawDesc
  149. )
  150. func file_api_v1_memo_relation_service_proto_rawDescGZIP() []byte {
  151. file_api_v1_memo_relation_service_proto_rawDescOnce.Do(func() {
  152. file_api_v1_memo_relation_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v1_memo_relation_service_proto_rawDescData)
  153. })
  154. return file_api_v1_memo_relation_service_proto_rawDescData
  155. }
  156. var file_api_v1_memo_relation_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  157. var file_api_v1_memo_relation_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  158. var file_api_v1_memo_relation_service_proto_goTypes = []any{
  159. (MemoRelation_Type)(0), // 0: memos.api.v1.MemoRelation.Type
  160. (*MemoRelation)(nil), // 1: memos.api.v1.MemoRelation
  161. }
  162. var file_api_v1_memo_relation_service_proto_depIdxs = []int32{
  163. 0, // 0: memos.api.v1.MemoRelation.type:type_name -> memos.api.v1.MemoRelation.Type
  164. 1, // [1:1] is the sub-list for method output_type
  165. 1, // [1:1] is the sub-list for method input_type
  166. 1, // [1:1] is the sub-list for extension type_name
  167. 1, // [1:1] is the sub-list for extension extendee
  168. 0, // [0:1] is the sub-list for field type_name
  169. }
  170. func init() { file_api_v1_memo_relation_service_proto_init() }
  171. func file_api_v1_memo_relation_service_proto_init() {
  172. if File_api_v1_memo_relation_service_proto != nil {
  173. return
  174. }
  175. if !protoimpl.UnsafeEnabled {
  176. file_api_v1_memo_relation_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
  177. switch v := v.(*MemoRelation); i {
  178. case 0:
  179. return &v.state
  180. case 1:
  181. return &v.sizeCache
  182. case 2:
  183. return &v.unknownFields
  184. default:
  185. return nil
  186. }
  187. }
  188. }
  189. type x struct{}
  190. out := protoimpl.TypeBuilder{
  191. File: protoimpl.DescBuilder{
  192. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  193. RawDescriptor: file_api_v1_memo_relation_service_proto_rawDesc,
  194. NumEnums: 1,
  195. NumMessages: 1,
  196. NumExtensions: 0,
  197. NumServices: 0,
  198. },
  199. GoTypes: file_api_v1_memo_relation_service_proto_goTypes,
  200. DependencyIndexes: file_api_v1_memo_relation_service_proto_depIdxs,
  201. EnumInfos: file_api_v1_memo_relation_service_proto_enumTypes,
  202. MessageInfos: file_api_v1_memo_relation_service_proto_msgTypes,
  203. }.Build()
  204. File_api_v1_memo_relation_service_proto = out.File
  205. file_api_v1_memo_relation_service_proto_rawDesc = nil
  206. file_api_v1_memo_relation_service_proto_goTypes = nil
  207. file_api_v1_memo_relation_service_proto_depIdxs = nil
  208. }