memo_service_grpc.pb.go 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.4.0
  4. // - protoc (unknown)
  5. // source: api/v1/memo_service.proto
  6. package apiv1
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. emptypb "google.golang.org/protobuf/types/known/emptypb"
  13. )
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the grpc package it is being compiled against.
  16. // Requires gRPC-Go v1.62.0 or later.
  17. const _ = grpc.SupportPackageIsVersion8
  18. const (
  19. MemoService_CreateMemo_FullMethodName = "/memos.api.v1.MemoService/CreateMemo"
  20. MemoService_ListMemos_FullMethodName = "/memos.api.v1.MemoService/ListMemos"
  21. MemoService_SearchMemos_FullMethodName = "/memos.api.v1.MemoService/SearchMemos"
  22. MemoService_GetMemo_FullMethodName = "/memos.api.v1.MemoService/GetMemo"
  23. MemoService_GetMemoByUid_FullMethodName = "/memos.api.v1.MemoService/GetMemoByUid"
  24. MemoService_UpdateMemo_FullMethodName = "/memos.api.v1.MemoService/UpdateMemo"
  25. MemoService_DeleteMemo_FullMethodName = "/memos.api.v1.MemoService/DeleteMemo"
  26. MemoService_ExportMemos_FullMethodName = "/memos.api.v1.MemoService/ExportMemos"
  27. MemoService_ListMemoProperties_FullMethodName = "/memos.api.v1.MemoService/ListMemoProperties"
  28. MemoService_RebuildMemoProperty_FullMethodName = "/memos.api.v1.MemoService/RebuildMemoProperty"
  29. MemoService_ListMemoTags_FullMethodName = "/memos.api.v1.MemoService/ListMemoTags"
  30. MemoService_RenameMemoTag_FullMethodName = "/memos.api.v1.MemoService/RenameMemoTag"
  31. MemoService_DeleteMemoTag_FullMethodName = "/memos.api.v1.MemoService/DeleteMemoTag"
  32. MemoService_SetMemoResources_FullMethodName = "/memos.api.v1.MemoService/SetMemoResources"
  33. MemoService_ListMemoResources_FullMethodName = "/memos.api.v1.MemoService/ListMemoResources"
  34. MemoService_SetMemoRelations_FullMethodName = "/memos.api.v1.MemoService/SetMemoRelations"
  35. MemoService_ListMemoRelations_FullMethodName = "/memos.api.v1.MemoService/ListMemoRelations"
  36. MemoService_CreateMemoComment_FullMethodName = "/memos.api.v1.MemoService/CreateMemoComment"
  37. MemoService_ListMemoComments_FullMethodName = "/memos.api.v1.MemoService/ListMemoComments"
  38. MemoService_GetUserMemosStats_FullMethodName = "/memos.api.v1.MemoService/GetUserMemosStats"
  39. MemoService_ListMemoReactions_FullMethodName = "/memos.api.v1.MemoService/ListMemoReactions"
  40. MemoService_UpsertMemoReaction_FullMethodName = "/memos.api.v1.MemoService/UpsertMemoReaction"
  41. MemoService_DeleteMemoReaction_FullMethodName = "/memos.api.v1.MemoService/DeleteMemoReaction"
  42. )
  43. // MemoServiceClient is the client API for MemoService service.
  44. //
  45. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  46. type MemoServiceClient interface {
  47. // CreateMemo creates a memo.
  48. CreateMemo(ctx context.Context, in *CreateMemoRequest, opts ...grpc.CallOption) (*Memo, error)
  49. // ListMemos lists memos with pagination and filter.
  50. ListMemos(ctx context.Context, in *ListMemosRequest, opts ...grpc.CallOption) (*ListMemosResponse, error)
  51. // SearchMemos searches memos.
  52. SearchMemos(ctx context.Context, in *SearchMemosRequest, opts ...grpc.CallOption) (*SearchMemosResponse, error)
  53. // GetMemo gets a memo.
  54. GetMemo(ctx context.Context, in *GetMemoRequest, opts ...grpc.CallOption) (*Memo, error)
  55. // GetMemoByUid gets a memo by uid
  56. GetMemoByUid(ctx context.Context, in *GetMemoByUidRequest, opts ...grpc.CallOption) (*Memo, error)
  57. // UpdateMemo updates a memo.
  58. UpdateMemo(ctx context.Context, in *UpdateMemoRequest, opts ...grpc.CallOption) (*Memo, error)
  59. // DeleteMemo deletes a memo.
  60. DeleteMemo(ctx context.Context, in *DeleteMemoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  61. // ExportMemos exports memos.
  62. ExportMemos(ctx context.Context, in *ExportMemosRequest, opts ...grpc.CallOption) (*ExportMemosResponse, error)
  63. // ListMemoProperties lists memo properties.
  64. ListMemoProperties(ctx context.Context, in *ListMemoPropertiesRequest, opts ...grpc.CallOption) (*ListMemoPropertiesResponse, error)
  65. // RebuildMemoProperty rebuilds a memo property.
  66. RebuildMemoProperty(ctx context.Context, in *RebuildMemoPropertyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  67. // ListMemoTags lists tags for a memo.
  68. ListMemoTags(ctx context.Context, in *ListMemoTagsRequest, opts ...grpc.CallOption) (*ListMemoTagsResponse, error)
  69. // RenameMemoTag renames a tag for a memo.
  70. RenameMemoTag(ctx context.Context, in *RenameMemoTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  71. // DeleteMemoTag deletes a tag for a memo.
  72. DeleteMemoTag(ctx context.Context, in *DeleteMemoTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  73. // SetMemoResources sets resources for a memo.
  74. SetMemoResources(ctx context.Context, in *SetMemoResourcesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  75. // ListMemoResources lists resources for a memo.
  76. ListMemoResources(ctx context.Context, in *ListMemoResourcesRequest, opts ...grpc.CallOption) (*ListMemoResourcesResponse, error)
  77. // SetMemoRelations sets relations for a memo.
  78. SetMemoRelations(ctx context.Context, in *SetMemoRelationsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  79. // ListMemoRelations lists relations for a memo.
  80. ListMemoRelations(ctx context.Context, in *ListMemoRelationsRequest, opts ...grpc.CallOption) (*ListMemoRelationsResponse, error)
  81. // CreateMemoComment creates a comment for a memo.
  82. CreateMemoComment(ctx context.Context, in *CreateMemoCommentRequest, opts ...grpc.CallOption) (*Memo, error)
  83. // ListMemoComments lists comments for a memo.
  84. ListMemoComments(ctx context.Context, in *ListMemoCommentsRequest, opts ...grpc.CallOption) (*ListMemoCommentsResponse, error)
  85. // GetUserMemosStats gets stats of memos for a user.
  86. GetUserMemosStats(ctx context.Context, in *GetUserMemosStatsRequest, opts ...grpc.CallOption) (*GetUserMemosStatsResponse, error)
  87. // ListMemoReactions lists reactions for a memo.
  88. ListMemoReactions(ctx context.Context, in *ListMemoReactionsRequest, opts ...grpc.CallOption) (*ListMemoReactionsResponse, error)
  89. // UpsertMemoReaction upserts a reaction for a memo.
  90. UpsertMemoReaction(ctx context.Context, in *UpsertMemoReactionRequest, opts ...grpc.CallOption) (*Reaction, error)
  91. // DeleteMemoReaction deletes a reaction for a memo.
  92. DeleteMemoReaction(ctx context.Context, in *DeleteMemoReactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  93. }
  94. type memoServiceClient struct {
  95. cc grpc.ClientConnInterface
  96. }
  97. func NewMemoServiceClient(cc grpc.ClientConnInterface) MemoServiceClient {
  98. return &memoServiceClient{cc}
  99. }
  100. func (c *memoServiceClient) CreateMemo(ctx context.Context, in *CreateMemoRequest, opts ...grpc.CallOption) (*Memo, error) {
  101. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  102. out := new(Memo)
  103. err := c.cc.Invoke(ctx, MemoService_CreateMemo_FullMethodName, in, out, cOpts...)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return out, nil
  108. }
  109. func (c *memoServiceClient) ListMemos(ctx context.Context, in *ListMemosRequest, opts ...grpc.CallOption) (*ListMemosResponse, error) {
  110. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  111. out := new(ListMemosResponse)
  112. err := c.cc.Invoke(ctx, MemoService_ListMemos_FullMethodName, in, out, cOpts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. func (c *memoServiceClient) SearchMemos(ctx context.Context, in *SearchMemosRequest, opts ...grpc.CallOption) (*SearchMemosResponse, error) {
  119. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  120. out := new(SearchMemosResponse)
  121. err := c.cc.Invoke(ctx, MemoService_SearchMemos_FullMethodName, in, out, cOpts...)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return out, nil
  126. }
  127. func (c *memoServiceClient) GetMemo(ctx context.Context, in *GetMemoRequest, opts ...grpc.CallOption) (*Memo, error) {
  128. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  129. out := new(Memo)
  130. err := c.cc.Invoke(ctx, MemoService_GetMemo_FullMethodName, in, out, cOpts...)
  131. if err != nil {
  132. return nil, err
  133. }
  134. return out, nil
  135. }
  136. func (c *memoServiceClient) GetMemoByUid(ctx context.Context, in *GetMemoByUidRequest, opts ...grpc.CallOption) (*Memo, error) {
  137. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  138. out := new(Memo)
  139. err := c.cc.Invoke(ctx, MemoService_GetMemoByUid_FullMethodName, in, out, cOpts...)
  140. if err != nil {
  141. return nil, err
  142. }
  143. return out, nil
  144. }
  145. func (c *memoServiceClient) UpdateMemo(ctx context.Context, in *UpdateMemoRequest, opts ...grpc.CallOption) (*Memo, error) {
  146. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  147. out := new(Memo)
  148. err := c.cc.Invoke(ctx, MemoService_UpdateMemo_FullMethodName, in, out, cOpts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return out, nil
  153. }
  154. func (c *memoServiceClient) DeleteMemo(ctx context.Context, in *DeleteMemoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  155. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  156. out := new(emptypb.Empty)
  157. err := c.cc.Invoke(ctx, MemoService_DeleteMemo_FullMethodName, in, out, cOpts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return out, nil
  162. }
  163. func (c *memoServiceClient) ExportMemos(ctx context.Context, in *ExportMemosRequest, opts ...grpc.CallOption) (*ExportMemosResponse, error) {
  164. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  165. out := new(ExportMemosResponse)
  166. err := c.cc.Invoke(ctx, MemoService_ExportMemos_FullMethodName, in, out, cOpts...)
  167. if err != nil {
  168. return nil, err
  169. }
  170. return out, nil
  171. }
  172. func (c *memoServiceClient) ListMemoProperties(ctx context.Context, in *ListMemoPropertiesRequest, opts ...grpc.CallOption) (*ListMemoPropertiesResponse, error) {
  173. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  174. out := new(ListMemoPropertiesResponse)
  175. err := c.cc.Invoke(ctx, MemoService_ListMemoProperties_FullMethodName, in, out, cOpts...)
  176. if err != nil {
  177. return nil, err
  178. }
  179. return out, nil
  180. }
  181. func (c *memoServiceClient) RebuildMemoProperty(ctx context.Context, in *RebuildMemoPropertyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  182. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  183. out := new(emptypb.Empty)
  184. err := c.cc.Invoke(ctx, MemoService_RebuildMemoProperty_FullMethodName, in, out, cOpts...)
  185. if err != nil {
  186. return nil, err
  187. }
  188. return out, nil
  189. }
  190. func (c *memoServiceClient) ListMemoTags(ctx context.Context, in *ListMemoTagsRequest, opts ...grpc.CallOption) (*ListMemoTagsResponse, error) {
  191. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  192. out := new(ListMemoTagsResponse)
  193. err := c.cc.Invoke(ctx, MemoService_ListMemoTags_FullMethodName, in, out, cOpts...)
  194. if err != nil {
  195. return nil, err
  196. }
  197. return out, nil
  198. }
  199. func (c *memoServiceClient) RenameMemoTag(ctx context.Context, in *RenameMemoTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  200. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  201. out := new(emptypb.Empty)
  202. err := c.cc.Invoke(ctx, MemoService_RenameMemoTag_FullMethodName, in, out, cOpts...)
  203. if err != nil {
  204. return nil, err
  205. }
  206. return out, nil
  207. }
  208. func (c *memoServiceClient) DeleteMemoTag(ctx context.Context, in *DeleteMemoTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  209. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  210. out := new(emptypb.Empty)
  211. err := c.cc.Invoke(ctx, MemoService_DeleteMemoTag_FullMethodName, in, out, cOpts...)
  212. if err != nil {
  213. return nil, err
  214. }
  215. return out, nil
  216. }
  217. func (c *memoServiceClient) SetMemoResources(ctx context.Context, in *SetMemoResourcesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  218. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  219. out := new(emptypb.Empty)
  220. err := c.cc.Invoke(ctx, MemoService_SetMemoResources_FullMethodName, in, out, cOpts...)
  221. if err != nil {
  222. return nil, err
  223. }
  224. return out, nil
  225. }
  226. func (c *memoServiceClient) ListMemoResources(ctx context.Context, in *ListMemoResourcesRequest, opts ...grpc.CallOption) (*ListMemoResourcesResponse, error) {
  227. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  228. out := new(ListMemoResourcesResponse)
  229. err := c.cc.Invoke(ctx, MemoService_ListMemoResources_FullMethodName, in, out, cOpts...)
  230. if err != nil {
  231. return nil, err
  232. }
  233. return out, nil
  234. }
  235. func (c *memoServiceClient) SetMemoRelations(ctx context.Context, in *SetMemoRelationsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  236. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  237. out := new(emptypb.Empty)
  238. err := c.cc.Invoke(ctx, MemoService_SetMemoRelations_FullMethodName, in, out, cOpts...)
  239. if err != nil {
  240. return nil, err
  241. }
  242. return out, nil
  243. }
  244. func (c *memoServiceClient) ListMemoRelations(ctx context.Context, in *ListMemoRelationsRequest, opts ...grpc.CallOption) (*ListMemoRelationsResponse, error) {
  245. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  246. out := new(ListMemoRelationsResponse)
  247. err := c.cc.Invoke(ctx, MemoService_ListMemoRelations_FullMethodName, in, out, cOpts...)
  248. if err != nil {
  249. return nil, err
  250. }
  251. return out, nil
  252. }
  253. func (c *memoServiceClient) CreateMemoComment(ctx context.Context, in *CreateMemoCommentRequest, opts ...grpc.CallOption) (*Memo, error) {
  254. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  255. out := new(Memo)
  256. err := c.cc.Invoke(ctx, MemoService_CreateMemoComment_FullMethodName, in, out, cOpts...)
  257. if err != nil {
  258. return nil, err
  259. }
  260. return out, nil
  261. }
  262. func (c *memoServiceClient) ListMemoComments(ctx context.Context, in *ListMemoCommentsRequest, opts ...grpc.CallOption) (*ListMemoCommentsResponse, error) {
  263. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  264. out := new(ListMemoCommentsResponse)
  265. err := c.cc.Invoke(ctx, MemoService_ListMemoComments_FullMethodName, in, out, cOpts...)
  266. if err != nil {
  267. return nil, err
  268. }
  269. return out, nil
  270. }
  271. func (c *memoServiceClient) GetUserMemosStats(ctx context.Context, in *GetUserMemosStatsRequest, opts ...grpc.CallOption) (*GetUserMemosStatsResponse, error) {
  272. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  273. out := new(GetUserMemosStatsResponse)
  274. err := c.cc.Invoke(ctx, MemoService_GetUserMemosStats_FullMethodName, in, out, cOpts...)
  275. if err != nil {
  276. return nil, err
  277. }
  278. return out, nil
  279. }
  280. func (c *memoServiceClient) ListMemoReactions(ctx context.Context, in *ListMemoReactionsRequest, opts ...grpc.CallOption) (*ListMemoReactionsResponse, error) {
  281. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  282. out := new(ListMemoReactionsResponse)
  283. err := c.cc.Invoke(ctx, MemoService_ListMemoReactions_FullMethodName, in, out, cOpts...)
  284. if err != nil {
  285. return nil, err
  286. }
  287. return out, nil
  288. }
  289. func (c *memoServiceClient) UpsertMemoReaction(ctx context.Context, in *UpsertMemoReactionRequest, opts ...grpc.CallOption) (*Reaction, error) {
  290. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  291. out := new(Reaction)
  292. err := c.cc.Invoke(ctx, MemoService_UpsertMemoReaction_FullMethodName, in, out, cOpts...)
  293. if err != nil {
  294. return nil, err
  295. }
  296. return out, nil
  297. }
  298. func (c *memoServiceClient) DeleteMemoReaction(ctx context.Context, in *DeleteMemoReactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  299. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  300. out := new(emptypb.Empty)
  301. err := c.cc.Invoke(ctx, MemoService_DeleteMemoReaction_FullMethodName, in, out, cOpts...)
  302. if err != nil {
  303. return nil, err
  304. }
  305. return out, nil
  306. }
  307. // MemoServiceServer is the server API for MemoService service.
  308. // All implementations must embed UnimplementedMemoServiceServer
  309. // for forward compatibility
  310. type MemoServiceServer interface {
  311. // CreateMemo creates a memo.
  312. CreateMemo(context.Context, *CreateMemoRequest) (*Memo, error)
  313. // ListMemos lists memos with pagination and filter.
  314. ListMemos(context.Context, *ListMemosRequest) (*ListMemosResponse, error)
  315. // SearchMemos searches memos.
  316. SearchMemos(context.Context, *SearchMemosRequest) (*SearchMemosResponse, error)
  317. // GetMemo gets a memo.
  318. GetMemo(context.Context, *GetMemoRequest) (*Memo, error)
  319. // GetMemoByUid gets a memo by uid
  320. GetMemoByUid(context.Context, *GetMemoByUidRequest) (*Memo, error)
  321. // UpdateMemo updates a memo.
  322. UpdateMemo(context.Context, *UpdateMemoRequest) (*Memo, error)
  323. // DeleteMemo deletes a memo.
  324. DeleteMemo(context.Context, *DeleteMemoRequest) (*emptypb.Empty, error)
  325. // ExportMemos exports memos.
  326. ExportMemos(context.Context, *ExportMemosRequest) (*ExportMemosResponse, error)
  327. // ListMemoProperties lists memo properties.
  328. ListMemoProperties(context.Context, *ListMemoPropertiesRequest) (*ListMemoPropertiesResponse, error)
  329. // RebuildMemoProperty rebuilds a memo property.
  330. RebuildMemoProperty(context.Context, *RebuildMemoPropertyRequest) (*emptypb.Empty, error)
  331. // ListMemoTags lists tags for a memo.
  332. ListMemoTags(context.Context, *ListMemoTagsRequest) (*ListMemoTagsResponse, error)
  333. // RenameMemoTag renames a tag for a memo.
  334. RenameMemoTag(context.Context, *RenameMemoTagRequest) (*emptypb.Empty, error)
  335. // DeleteMemoTag deletes a tag for a memo.
  336. DeleteMemoTag(context.Context, *DeleteMemoTagRequest) (*emptypb.Empty, error)
  337. // SetMemoResources sets resources for a memo.
  338. SetMemoResources(context.Context, *SetMemoResourcesRequest) (*emptypb.Empty, error)
  339. // ListMemoResources lists resources for a memo.
  340. ListMemoResources(context.Context, *ListMemoResourcesRequest) (*ListMemoResourcesResponse, error)
  341. // SetMemoRelations sets relations for a memo.
  342. SetMemoRelations(context.Context, *SetMemoRelationsRequest) (*emptypb.Empty, error)
  343. // ListMemoRelations lists relations for a memo.
  344. ListMemoRelations(context.Context, *ListMemoRelationsRequest) (*ListMemoRelationsResponse, error)
  345. // CreateMemoComment creates a comment for a memo.
  346. CreateMemoComment(context.Context, *CreateMemoCommentRequest) (*Memo, error)
  347. // ListMemoComments lists comments for a memo.
  348. ListMemoComments(context.Context, *ListMemoCommentsRequest) (*ListMemoCommentsResponse, error)
  349. // GetUserMemosStats gets stats of memos for a user.
  350. GetUserMemosStats(context.Context, *GetUserMemosStatsRequest) (*GetUserMemosStatsResponse, error)
  351. // ListMemoReactions lists reactions for a memo.
  352. ListMemoReactions(context.Context, *ListMemoReactionsRequest) (*ListMemoReactionsResponse, error)
  353. // UpsertMemoReaction upserts a reaction for a memo.
  354. UpsertMemoReaction(context.Context, *UpsertMemoReactionRequest) (*Reaction, error)
  355. // DeleteMemoReaction deletes a reaction for a memo.
  356. DeleteMemoReaction(context.Context, *DeleteMemoReactionRequest) (*emptypb.Empty, error)
  357. mustEmbedUnimplementedMemoServiceServer()
  358. }
  359. // UnimplementedMemoServiceServer must be embedded to have forward compatible implementations.
  360. type UnimplementedMemoServiceServer struct {
  361. }
  362. func (UnimplementedMemoServiceServer) CreateMemo(context.Context, *CreateMemoRequest) (*Memo, error) {
  363. return nil, status.Errorf(codes.Unimplemented, "method CreateMemo not implemented")
  364. }
  365. func (UnimplementedMemoServiceServer) ListMemos(context.Context, *ListMemosRequest) (*ListMemosResponse, error) {
  366. return nil, status.Errorf(codes.Unimplemented, "method ListMemos not implemented")
  367. }
  368. func (UnimplementedMemoServiceServer) SearchMemos(context.Context, *SearchMemosRequest) (*SearchMemosResponse, error) {
  369. return nil, status.Errorf(codes.Unimplemented, "method SearchMemos not implemented")
  370. }
  371. func (UnimplementedMemoServiceServer) GetMemo(context.Context, *GetMemoRequest) (*Memo, error) {
  372. return nil, status.Errorf(codes.Unimplemented, "method GetMemo not implemented")
  373. }
  374. func (UnimplementedMemoServiceServer) GetMemoByUid(context.Context, *GetMemoByUidRequest) (*Memo, error) {
  375. return nil, status.Errorf(codes.Unimplemented, "method GetMemoByUid not implemented")
  376. }
  377. func (UnimplementedMemoServiceServer) UpdateMemo(context.Context, *UpdateMemoRequest) (*Memo, error) {
  378. return nil, status.Errorf(codes.Unimplemented, "method UpdateMemo not implemented")
  379. }
  380. func (UnimplementedMemoServiceServer) DeleteMemo(context.Context, *DeleteMemoRequest) (*emptypb.Empty, error) {
  381. return nil, status.Errorf(codes.Unimplemented, "method DeleteMemo not implemented")
  382. }
  383. func (UnimplementedMemoServiceServer) ExportMemos(context.Context, *ExportMemosRequest) (*ExportMemosResponse, error) {
  384. return nil, status.Errorf(codes.Unimplemented, "method ExportMemos not implemented")
  385. }
  386. func (UnimplementedMemoServiceServer) ListMemoProperties(context.Context, *ListMemoPropertiesRequest) (*ListMemoPropertiesResponse, error) {
  387. return nil, status.Errorf(codes.Unimplemented, "method ListMemoProperties not implemented")
  388. }
  389. func (UnimplementedMemoServiceServer) RebuildMemoProperty(context.Context, *RebuildMemoPropertyRequest) (*emptypb.Empty, error) {
  390. return nil, status.Errorf(codes.Unimplemented, "method RebuildMemoProperty not implemented")
  391. }
  392. func (UnimplementedMemoServiceServer) ListMemoTags(context.Context, *ListMemoTagsRequest) (*ListMemoTagsResponse, error) {
  393. return nil, status.Errorf(codes.Unimplemented, "method ListMemoTags not implemented")
  394. }
  395. func (UnimplementedMemoServiceServer) RenameMemoTag(context.Context, *RenameMemoTagRequest) (*emptypb.Empty, error) {
  396. return nil, status.Errorf(codes.Unimplemented, "method RenameMemoTag not implemented")
  397. }
  398. func (UnimplementedMemoServiceServer) DeleteMemoTag(context.Context, *DeleteMemoTagRequest) (*emptypb.Empty, error) {
  399. return nil, status.Errorf(codes.Unimplemented, "method DeleteMemoTag not implemented")
  400. }
  401. func (UnimplementedMemoServiceServer) SetMemoResources(context.Context, *SetMemoResourcesRequest) (*emptypb.Empty, error) {
  402. return nil, status.Errorf(codes.Unimplemented, "method SetMemoResources not implemented")
  403. }
  404. func (UnimplementedMemoServiceServer) ListMemoResources(context.Context, *ListMemoResourcesRequest) (*ListMemoResourcesResponse, error) {
  405. return nil, status.Errorf(codes.Unimplemented, "method ListMemoResources not implemented")
  406. }
  407. func (UnimplementedMemoServiceServer) SetMemoRelations(context.Context, *SetMemoRelationsRequest) (*emptypb.Empty, error) {
  408. return nil, status.Errorf(codes.Unimplemented, "method SetMemoRelations not implemented")
  409. }
  410. func (UnimplementedMemoServiceServer) ListMemoRelations(context.Context, *ListMemoRelationsRequest) (*ListMemoRelationsResponse, error) {
  411. return nil, status.Errorf(codes.Unimplemented, "method ListMemoRelations not implemented")
  412. }
  413. func (UnimplementedMemoServiceServer) CreateMemoComment(context.Context, *CreateMemoCommentRequest) (*Memo, error) {
  414. return nil, status.Errorf(codes.Unimplemented, "method CreateMemoComment not implemented")
  415. }
  416. func (UnimplementedMemoServiceServer) ListMemoComments(context.Context, *ListMemoCommentsRequest) (*ListMemoCommentsResponse, error) {
  417. return nil, status.Errorf(codes.Unimplemented, "method ListMemoComments not implemented")
  418. }
  419. func (UnimplementedMemoServiceServer) GetUserMemosStats(context.Context, *GetUserMemosStatsRequest) (*GetUserMemosStatsResponse, error) {
  420. return nil, status.Errorf(codes.Unimplemented, "method GetUserMemosStats not implemented")
  421. }
  422. func (UnimplementedMemoServiceServer) ListMemoReactions(context.Context, *ListMemoReactionsRequest) (*ListMemoReactionsResponse, error) {
  423. return nil, status.Errorf(codes.Unimplemented, "method ListMemoReactions not implemented")
  424. }
  425. func (UnimplementedMemoServiceServer) UpsertMemoReaction(context.Context, *UpsertMemoReactionRequest) (*Reaction, error) {
  426. return nil, status.Errorf(codes.Unimplemented, "method UpsertMemoReaction not implemented")
  427. }
  428. func (UnimplementedMemoServiceServer) DeleteMemoReaction(context.Context, *DeleteMemoReactionRequest) (*emptypb.Empty, error) {
  429. return nil, status.Errorf(codes.Unimplemented, "method DeleteMemoReaction not implemented")
  430. }
  431. func (UnimplementedMemoServiceServer) mustEmbedUnimplementedMemoServiceServer() {}
  432. // UnsafeMemoServiceServer may be embedded to opt out of forward compatibility for this service.
  433. // Use of this interface is not recommended, as added methods to MemoServiceServer will
  434. // result in compilation errors.
  435. type UnsafeMemoServiceServer interface {
  436. mustEmbedUnimplementedMemoServiceServer()
  437. }
  438. func RegisterMemoServiceServer(s grpc.ServiceRegistrar, srv MemoServiceServer) {
  439. s.RegisterService(&MemoService_ServiceDesc, srv)
  440. }
  441. func _MemoService_CreateMemo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  442. in := new(CreateMemoRequest)
  443. if err := dec(in); err != nil {
  444. return nil, err
  445. }
  446. if interceptor == nil {
  447. return srv.(MemoServiceServer).CreateMemo(ctx, in)
  448. }
  449. info := &grpc.UnaryServerInfo{
  450. Server: srv,
  451. FullMethod: MemoService_CreateMemo_FullMethodName,
  452. }
  453. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  454. return srv.(MemoServiceServer).CreateMemo(ctx, req.(*CreateMemoRequest))
  455. }
  456. return interceptor(ctx, in, info, handler)
  457. }
  458. func _MemoService_ListMemos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  459. in := new(ListMemosRequest)
  460. if err := dec(in); err != nil {
  461. return nil, err
  462. }
  463. if interceptor == nil {
  464. return srv.(MemoServiceServer).ListMemos(ctx, in)
  465. }
  466. info := &grpc.UnaryServerInfo{
  467. Server: srv,
  468. FullMethod: MemoService_ListMemos_FullMethodName,
  469. }
  470. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  471. return srv.(MemoServiceServer).ListMemos(ctx, req.(*ListMemosRequest))
  472. }
  473. return interceptor(ctx, in, info, handler)
  474. }
  475. func _MemoService_SearchMemos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  476. in := new(SearchMemosRequest)
  477. if err := dec(in); err != nil {
  478. return nil, err
  479. }
  480. if interceptor == nil {
  481. return srv.(MemoServiceServer).SearchMemos(ctx, in)
  482. }
  483. info := &grpc.UnaryServerInfo{
  484. Server: srv,
  485. FullMethod: MemoService_SearchMemos_FullMethodName,
  486. }
  487. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  488. return srv.(MemoServiceServer).SearchMemos(ctx, req.(*SearchMemosRequest))
  489. }
  490. return interceptor(ctx, in, info, handler)
  491. }
  492. func _MemoService_GetMemo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  493. in := new(GetMemoRequest)
  494. if err := dec(in); err != nil {
  495. return nil, err
  496. }
  497. if interceptor == nil {
  498. return srv.(MemoServiceServer).GetMemo(ctx, in)
  499. }
  500. info := &grpc.UnaryServerInfo{
  501. Server: srv,
  502. FullMethod: MemoService_GetMemo_FullMethodName,
  503. }
  504. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  505. return srv.(MemoServiceServer).GetMemo(ctx, req.(*GetMemoRequest))
  506. }
  507. return interceptor(ctx, in, info, handler)
  508. }
  509. func _MemoService_GetMemoByUid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  510. in := new(GetMemoByUidRequest)
  511. if err := dec(in); err != nil {
  512. return nil, err
  513. }
  514. if interceptor == nil {
  515. return srv.(MemoServiceServer).GetMemoByUid(ctx, in)
  516. }
  517. info := &grpc.UnaryServerInfo{
  518. Server: srv,
  519. FullMethod: MemoService_GetMemoByUid_FullMethodName,
  520. }
  521. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  522. return srv.(MemoServiceServer).GetMemoByUid(ctx, req.(*GetMemoByUidRequest))
  523. }
  524. return interceptor(ctx, in, info, handler)
  525. }
  526. func _MemoService_UpdateMemo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  527. in := new(UpdateMemoRequest)
  528. if err := dec(in); err != nil {
  529. return nil, err
  530. }
  531. if interceptor == nil {
  532. return srv.(MemoServiceServer).UpdateMemo(ctx, in)
  533. }
  534. info := &grpc.UnaryServerInfo{
  535. Server: srv,
  536. FullMethod: MemoService_UpdateMemo_FullMethodName,
  537. }
  538. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  539. return srv.(MemoServiceServer).UpdateMemo(ctx, req.(*UpdateMemoRequest))
  540. }
  541. return interceptor(ctx, in, info, handler)
  542. }
  543. func _MemoService_DeleteMemo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  544. in := new(DeleteMemoRequest)
  545. if err := dec(in); err != nil {
  546. return nil, err
  547. }
  548. if interceptor == nil {
  549. return srv.(MemoServiceServer).DeleteMemo(ctx, in)
  550. }
  551. info := &grpc.UnaryServerInfo{
  552. Server: srv,
  553. FullMethod: MemoService_DeleteMemo_FullMethodName,
  554. }
  555. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  556. return srv.(MemoServiceServer).DeleteMemo(ctx, req.(*DeleteMemoRequest))
  557. }
  558. return interceptor(ctx, in, info, handler)
  559. }
  560. func _MemoService_ExportMemos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  561. in := new(ExportMemosRequest)
  562. if err := dec(in); err != nil {
  563. return nil, err
  564. }
  565. if interceptor == nil {
  566. return srv.(MemoServiceServer).ExportMemos(ctx, in)
  567. }
  568. info := &grpc.UnaryServerInfo{
  569. Server: srv,
  570. FullMethod: MemoService_ExportMemos_FullMethodName,
  571. }
  572. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  573. return srv.(MemoServiceServer).ExportMemos(ctx, req.(*ExportMemosRequest))
  574. }
  575. return interceptor(ctx, in, info, handler)
  576. }
  577. func _MemoService_ListMemoProperties_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  578. in := new(ListMemoPropertiesRequest)
  579. if err := dec(in); err != nil {
  580. return nil, err
  581. }
  582. if interceptor == nil {
  583. return srv.(MemoServiceServer).ListMemoProperties(ctx, in)
  584. }
  585. info := &grpc.UnaryServerInfo{
  586. Server: srv,
  587. FullMethod: MemoService_ListMemoProperties_FullMethodName,
  588. }
  589. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  590. return srv.(MemoServiceServer).ListMemoProperties(ctx, req.(*ListMemoPropertiesRequest))
  591. }
  592. return interceptor(ctx, in, info, handler)
  593. }
  594. func _MemoService_RebuildMemoProperty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  595. in := new(RebuildMemoPropertyRequest)
  596. if err := dec(in); err != nil {
  597. return nil, err
  598. }
  599. if interceptor == nil {
  600. return srv.(MemoServiceServer).RebuildMemoProperty(ctx, in)
  601. }
  602. info := &grpc.UnaryServerInfo{
  603. Server: srv,
  604. FullMethod: MemoService_RebuildMemoProperty_FullMethodName,
  605. }
  606. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  607. return srv.(MemoServiceServer).RebuildMemoProperty(ctx, req.(*RebuildMemoPropertyRequest))
  608. }
  609. return interceptor(ctx, in, info, handler)
  610. }
  611. func _MemoService_ListMemoTags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  612. in := new(ListMemoTagsRequest)
  613. if err := dec(in); err != nil {
  614. return nil, err
  615. }
  616. if interceptor == nil {
  617. return srv.(MemoServiceServer).ListMemoTags(ctx, in)
  618. }
  619. info := &grpc.UnaryServerInfo{
  620. Server: srv,
  621. FullMethod: MemoService_ListMemoTags_FullMethodName,
  622. }
  623. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  624. return srv.(MemoServiceServer).ListMemoTags(ctx, req.(*ListMemoTagsRequest))
  625. }
  626. return interceptor(ctx, in, info, handler)
  627. }
  628. func _MemoService_RenameMemoTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  629. in := new(RenameMemoTagRequest)
  630. if err := dec(in); err != nil {
  631. return nil, err
  632. }
  633. if interceptor == nil {
  634. return srv.(MemoServiceServer).RenameMemoTag(ctx, in)
  635. }
  636. info := &grpc.UnaryServerInfo{
  637. Server: srv,
  638. FullMethod: MemoService_RenameMemoTag_FullMethodName,
  639. }
  640. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  641. return srv.(MemoServiceServer).RenameMemoTag(ctx, req.(*RenameMemoTagRequest))
  642. }
  643. return interceptor(ctx, in, info, handler)
  644. }
  645. func _MemoService_DeleteMemoTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  646. in := new(DeleteMemoTagRequest)
  647. if err := dec(in); err != nil {
  648. return nil, err
  649. }
  650. if interceptor == nil {
  651. return srv.(MemoServiceServer).DeleteMemoTag(ctx, in)
  652. }
  653. info := &grpc.UnaryServerInfo{
  654. Server: srv,
  655. FullMethod: MemoService_DeleteMemoTag_FullMethodName,
  656. }
  657. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  658. return srv.(MemoServiceServer).DeleteMemoTag(ctx, req.(*DeleteMemoTagRequest))
  659. }
  660. return interceptor(ctx, in, info, handler)
  661. }
  662. func _MemoService_SetMemoResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  663. in := new(SetMemoResourcesRequest)
  664. if err := dec(in); err != nil {
  665. return nil, err
  666. }
  667. if interceptor == nil {
  668. return srv.(MemoServiceServer).SetMemoResources(ctx, in)
  669. }
  670. info := &grpc.UnaryServerInfo{
  671. Server: srv,
  672. FullMethod: MemoService_SetMemoResources_FullMethodName,
  673. }
  674. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  675. return srv.(MemoServiceServer).SetMemoResources(ctx, req.(*SetMemoResourcesRequest))
  676. }
  677. return interceptor(ctx, in, info, handler)
  678. }
  679. func _MemoService_ListMemoResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  680. in := new(ListMemoResourcesRequest)
  681. if err := dec(in); err != nil {
  682. return nil, err
  683. }
  684. if interceptor == nil {
  685. return srv.(MemoServiceServer).ListMemoResources(ctx, in)
  686. }
  687. info := &grpc.UnaryServerInfo{
  688. Server: srv,
  689. FullMethod: MemoService_ListMemoResources_FullMethodName,
  690. }
  691. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  692. return srv.(MemoServiceServer).ListMemoResources(ctx, req.(*ListMemoResourcesRequest))
  693. }
  694. return interceptor(ctx, in, info, handler)
  695. }
  696. func _MemoService_SetMemoRelations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  697. in := new(SetMemoRelationsRequest)
  698. if err := dec(in); err != nil {
  699. return nil, err
  700. }
  701. if interceptor == nil {
  702. return srv.(MemoServiceServer).SetMemoRelations(ctx, in)
  703. }
  704. info := &grpc.UnaryServerInfo{
  705. Server: srv,
  706. FullMethod: MemoService_SetMemoRelations_FullMethodName,
  707. }
  708. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  709. return srv.(MemoServiceServer).SetMemoRelations(ctx, req.(*SetMemoRelationsRequest))
  710. }
  711. return interceptor(ctx, in, info, handler)
  712. }
  713. func _MemoService_ListMemoRelations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  714. in := new(ListMemoRelationsRequest)
  715. if err := dec(in); err != nil {
  716. return nil, err
  717. }
  718. if interceptor == nil {
  719. return srv.(MemoServiceServer).ListMemoRelations(ctx, in)
  720. }
  721. info := &grpc.UnaryServerInfo{
  722. Server: srv,
  723. FullMethod: MemoService_ListMemoRelations_FullMethodName,
  724. }
  725. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  726. return srv.(MemoServiceServer).ListMemoRelations(ctx, req.(*ListMemoRelationsRequest))
  727. }
  728. return interceptor(ctx, in, info, handler)
  729. }
  730. func _MemoService_CreateMemoComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  731. in := new(CreateMemoCommentRequest)
  732. if err := dec(in); err != nil {
  733. return nil, err
  734. }
  735. if interceptor == nil {
  736. return srv.(MemoServiceServer).CreateMemoComment(ctx, in)
  737. }
  738. info := &grpc.UnaryServerInfo{
  739. Server: srv,
  740. FullMethod: MemoService_CreateMemoComment_FullMethodName,
  741. }
  742. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  743. return srv.(MemoServiceServer).CreateMemoComment(ctx, req.(*CreateMemoCommentRequest))
  744. }
  745. return interceptor(ctx, in, info, handler)
  746. }
  747. func _MemoService_ListMemoComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  748. in := new(ListMemoCommentsRequest)
  749. if err := dec(in); err != nil {
  750. return nil, err
  751. }
  752. if interceptor == nil {
  753. return srv.(MemoServiceServer).ListMemoComments(ctx, in)
  754. }
  755. info := &grpc.UnaryServerInfo{
  756. Server: srv,
  757. FullMethod: MemoService_ListMemoComments_FullMethodName,
  758. }
  759. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  760. return srv.(MemoServiceServer).ListMemoComments(ctx, req.(*ListMemoCommentsRequest))
  761. }
  762. return interceptor(ctx, in, info, handler)
  763. }
  764. func _MemoService_GetUserMemosStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  765. in := new(GetUserMemosStatsRequest)
  766. if err := dec(in); err != nil {
  767. return nil, err
  768. }
  769. if interceptor == nil {
  770. return srv.(MemoServiceServer).GetUserMemosStats(ctx, in)
  771. }
  772. info := &grpc.UnaryServerInfo{
  773. Server: srv,
  774. FullMethod: MemoService_GetUserMemosStats_FullMethodName,
  775. }
  776. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  777. return srv.(MemoServiceServer).GetUserMemosStats(ctx, req.(*GetUserMemosStatsRequest))
  778. }
  779. return interceptor(ctx, in, info, handler)
  780. }
  781. func _MemoService_ListMemoReactions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  782. in := new(ListMemoReactionsRequest)
  783. if err := dec(in); err != nil {
  784. return nil, err
  785. }
  786. if interceptor == nil {
  787. return srv.(MemoServiceServer).ListMemoReactions(ctx, in)
  788. }
  789. info := &grpc.UnaryServerInfo{
  790. Server: srv,
  791. FullMethod: MemoService_ListMemoReactions_FullMethodName,
  792. }
  793. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  794. return srv.(MemoServiceServer).ListMemoReactions(ctx, req.(*ListMemoReactionsRequest))
  795. }
  796. return interceptor(ctx, in, info, handler)
  797. }
  798. func _MemoService_UpsertMemoReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  799. in := new(UpsertMemoReactionRequest)
  800. if err := dec(in); err != nil {
  801. return nil, err
  802. }
  803. if interceptor == nil {
  804. return srv.(MemoServiceServer).UpsertMemoReaction(ctx, in)
  805. }
  806. info := &grpc.UnaryServerInfo{
  807. Server: srv,
  808. FullMethod: MemoService_UpsertMemoReaction_FullMethodName,
  809. }
  810. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  811. return srv.(MemoServiceServer).UpsertMemoReaction(ctx, req.(*UpsertMemoReactionRequest))
  812. }
  813. return interceptor(ctx, in, info, handler)
  814. }
  815. func _MemoService_DeleteMemoReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  816. in := new(DeleteMemoReactionRequest)
  817. if err := dec(in); err != nil {
  818. return nil, err
  819. }
  820. if interceptor == nil {
  821. return srv.(MemoServiceServer).DeleteMemoReaction(ctx, in)
  822. }
  823. info := &grpc.UnaryServerInfo{
  824. Server: srv,
  825. FullMethod: MemoService_DeleteMemoReaction_FullMethodName,
  826. }
  827. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  828. return srv.(MemoServiceServer).DeleteMemoReaction(ctx, req.(*DeleteMemoReactionRequest))
  829. }
  830. return interceptor(ctx, in, info, handler)
  831. }
  832. // MemoService_ServiceDesc is the grpc.ServiceDesc for MemoService service.
  833. // It's only intended for direct use with grpc.RegisterService,
  834. // and not to be introspected or modified (even as a copy)
  835. var MemoService_ServiceDesc = grpc.ServiceDesc{
  836. ServiceName: "memos.api.v1.MemoService",
  837. HandlerType: (*MemoServiceServer)(nil),
  838. Methods: []grpc.MethodDesc{
  839. {
  840. MethodName: "CreateMemo",
  841. Handler: _MemoService_CreateMemo_Handler,
  842. },
  843. {
  844. MethodName: "ListMemos",
  845. Handler: _MemoService_ListMemos_Handler,
  846. },
  847. {
  848. MethodName: "SearchMemos",
  849. Handler: _MemoService_SearchMemos_Handler,
  850. },
  851. {
  852. MethodName: "GetMemo",
  853. Handler: _MemoService_GetMemo_Handler,
  854. },
  855. {
  856. MethodName: "GetMemoByUid",
  857. Handler: _MemoService_GetMemoByUid_Handler,
  858. },
  859. {
  860. MethodName: "UpdateMemo",
  861. Handler: _MemoService_UpdateMemo_Handler,
  862. },
  863. {
  864. MethodName: "DeleteMemo",
  865. Handler: _MemoService_DeleteMemo_Handler,
  866. },
  867. {
  868. MethodName: "ExportMemos",
  869. Handler: _MemoService_ExportMemos_Handler,
  870. },
  871. {
  872. MethodName: "ListMemoProperties",
  873. Handler: _MemoService_ListMemoProperties_Handler,
  874. },
  875. {
  876. MethodName: "RebuildMemoProperty",
  877. Handler: _MemoService_RebuildMemoProperty_Handler,
  878. },
  879. {
  880. MethodName: "ListMemoTags",
  881. Handler: _MemoService_ListMemoTags_Handler,
  882. },
  883. {
  884. MethodName: "RenameMemoTag",
  885. Handler: _MemoService_RenameMemoTag_Handler,
  886. },
  887. {
  888. MethodName: "DeleteMemoTag",
  889. Handler: _MemoService_DeleteMemoTag_Handler,
  890. },
  891. {
  892. MethodName: "SetMemoResources",
  893. Handler: _MemoService_SetMemoResources_Handler,
  894. },
  895. {
  896. MethodName: "ListMemoResources",
  897. Handler: _MemoService_ListMemoResources_Handler,
  898. },
  899. {
  900. MethodName: "SetMemoRelations",
  901. Handler: _MemoService_SetMemoRelations_Handler,
  902. },
  903. {
  904. MethodName: "ListMemoRelations",
  905. Handler: _MemoService_ListMemoRelations_Handler,
  906. },
  907. {
  908. MethodName: "CreateMemoComment",
  909. Handler: _MemoService_CreateMemoComment_Handler,
  910. },
  911. {
  912. MethodName: "ListMemoComments",
  913. Handler: _MemoService_ListMemoComments_Handler,
  914. },
  915. {
  916. MethodName: "GetUserMemosStats",
  917. Handler: _MemoService_GetUserMemosStats_Handler,
  918. },
  919. {
  920. MethodName: "ListMemoReactions",
  921. Handler: _MemoService_ListMemoReactions_Handler,
  922. },
  923. {
  924. MethodName: "UpsertMemoReaction",
  925. Handler: _MemoService_UpsertMemoReaction_Handler,
  926. },
  927. {
  928. MethodName: "DeleteMemoReaction",
  929. Handler: _MemoService_DeleteMemoReaction_Handler,
  930. },
  931. },
  932. Streams: []grpc.StreamDesc{},
  933. Metadata: "api/v1/memo_service.proto",
  934. }