memo_relation_service.pb.go 11 KB

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