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