123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.4.0
- // - protoc (unknown)
- // source: api/v1/memo_service.proto
- package apiv1
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- emptypb "google.golang.org/protobuf/types/known/emptypb"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.62.0 or later.
- const _ = grpc.SupportPackageIsVersion8
- const (
- MemoService_CreateMemo_FullMethodName = "/memos.api.v1.MemoService/CreateMemo"
- MemoService_ListMemos_FullMethodName = "/memos.api.v1.MemoService/ListMemos"
- MemoService_SearchMemos_FullMethodName = "/memos.api.v1.MemoService/SearchMemos"
- MemoService_GetMemo_FullMethodName = "/memos.api.v1.MemoService/GetMemo"
- MemoService_GetMemoByUid_FullMethodName = "/memos.api.v1.MemoService/GetMemoByUid"
- MemoService_UpdateMemo_FullMethodName = "/memos.api.v1.MemoService/UpdateMemo"
- MemoService_DeleteMemo_FullMethodName = "/memos.api.v1.MemoService/DeleteMemo"
- MemoService_ExportMemos_FullMethodName = "/memos.api.v1.MemoService/ExportMemos"
- MemoService_ListMemoProperties_FullMethodName = "/memos.api.v1.MemoService/ListMemoProperties"
- MemoService_RebuildMemoProperty_FullMethodName = "/memos.api.v1.MemoService/RebuildMemoProperty"
- MemoService_ListMemoTags_FullMethodName = "/memos.api.v1.MemoService/ListMemoTags"
- MemoService_RenameMemoTag_FullMethodName = "/memos.api.v1.MemoService/RenameMemoTag"
- MemoService_DeleteMemoTag_FullMethodName = "/memos.api.v1.MemoService/DeleteMemoTag"
- MemoService_SetMemoResources_FullMethodName = "/memos.api.v1.MemoService/SetMemoResources"
- MemoService_ListMemoResources_FullMethodName = "/memos.api.v1.MemoService/ListMemoResources"
- MemoService_SetMemoRelations_FullMethodName = "/memos.api.v1.MemoService/SetMemoRelations"
- MemoService_ListMemoRelations_FullMethodName = "/memos.api.v1.MemoService/ListMemoRelations"
- MemoService_CreateMemoComment_FullMethodName = "/memos.api.v1.MemoService/CreateMemoComment"
- MemoService_ListMemoComments_FullMethodName = "/memos.api.v1.MemoService/ListMemoComments"
- MemoService_GetUserMemosStats_FullMethodName = "/memos.api.v1.MemoService/GetUserMemosStats"
- MemoService_ListMemoReactions_FullMethodName = "/memos.api.v1.MemoService/ListMemoReactions"
- MemoService_UpsertMemoReaction_FullMethodName = "/memos.api.v1.MemoService/UpsertMemoReaction"
- MemoService_DeleteMemoReaction_FullMethodName = "/memos.api.v1.MemoService/DeleteMemoReaction"
- )
- // MemoServiceClient is the client API for MemoService service.
- //
- // 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.
- type MemoServiceClient interface {
- // CreateMemo creates a memo.
- CreateMemo(ctx context.Context, in *CreateMemoRequest, opts ...grpc.CallOption) (*Memo, error)
- // ListMemos lists memos with pagination and filter.
- ListMemos(ctx context.Context, in *ListMemosRequest, opts ...grpc.CallOption) (*ListMemosResponse, error)
- // SearchMemos searches memos.
- SearchMemos(ctx context.Context, in *SearchMemosRequest, opts ...grpc.CallOption) (*SearchMemosResponse, error)
- // GetMemo gets a memo.
- GetMemo(ctx context.Context, in *GetMemoRequest, opts ...grpc.CallOption) (*Memo, error)
- // GetMemoByUid gets a memo by uid
- GetMemoByUid(ctx context.Context, in *GetMemoByUidRequest, opts ...grpc.CallOption) (*Memo, error)
- // UpdateMemo updates a memo.
- UpdateMemo(ctx context.Context, in *UpdateMemoRequest, opts ...grpc.CallOption) (*Memo, error)
- // DeleteMemo deletes a memo.
- DeleteMemo(ctx context.Context, in *DeleteMemoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // ExportMemos exports memos.
- ExportMemos(ctx context.Context, in *ExportMemosRequest, opts ...grpc.CallOption) (*ExportMemosResponse, error)
- // ListMemoProperties lists memo properties.
- ListMemoProperties(ctx context.Context, in *ListMemoPropertiesRequest, opts ...grpc.CallOption) (*ListMemoPropertiesResponse, error)
- // RebuildMemoProperty rebuilds a memo property.
- RebuildMemoProperty(ctx context.Context, in *RebuildMemoPropertyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // ListMemoTags lists tags for a memo.
- ListMemoTags(ctx context.Context, in *ListMemoTagsRequest, opts ...grpc.CallOption) (*ListMemoTagsResponse, error)
- // RenameMemoTag renames a tag for a memo.
- RenameMemoTag(ctx context.Context, in *RenameMemoTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // DeleteMemoTag deletes a tag for a memo.
- DeleteMemoTag(ctx context.Context, in *DeleteMemoTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // SetMemoResources sets resources for a memo.
- SetMemoResources(ctx context.Context, in *SetMemoResourcesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // ListMemoResources lists resources for a memo.
- ListMemoResources(ctx context.Context, in *ListMemoResourcesRequest, opts ...grpc.CallOption) (*ListMemoResourcesResponse, error)
- // SetMemoRelations sets relations for a memo.
- SetMemoRelations(ctx context.Context, in *SetMemoRelationsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // ListMemoRelations lists relations for a memo.
- ListMemoRelations(ctx context.Context, in *ListMemoRelationsRequest, opts ...grpc.CallOption) (*ListMemoRelationsResponse, error)
- // CreateMemoComment creates a comment for a memo.
- CreateMemoComment(ctx context.Context, in *CreateMemoCommentRequest, opts ...grpc.CallOption) (*Memo, error)
- // ListMemoComments lists comments for a memo.
- ListMemoComments(ctx context.Context, in *ListMemoCommentsRequest, opts ...grpc.CallOption) (*ListMemoCommentsResponse, error)
- // GetUserMemosStats gets stats of memos for a user.
- GetUserMemosStats(ctx context.Context, in *GetUserMemosStatsRequest, opts ...grpc.CallOption) (*GetUserMemosStatsResponse, error)
- // ListMemoReactions lists reactions for a memo.
- ListMemoReactions(ctx context.Context, in *ListMemoReactionsRequest, opts ...grpc.CallOption) (*ListMemoReactionsResponse, error)
- // UpsertMemoReaction upserts a reaction for a memo.
- UpsertMemoReaction(ctx context.Context, in *UpsertMemoReactionRequest, opts ...grpc.CallOption) (*Reaction, error)
- // DeleteMemoReaction deletes a reaction for a memo.
- DeleteMemoReaction(ctx context.Context, in *DeleteMemoReactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- }
- type memoServiceClient struct {
- cc grpc.ClientConnInterface
- }
- func NewMemoServiceClient(cc grpc.ClientConnInterface) MemoServiceClient {
- return &memoServiceClient{cc}
- }
- func (c *memoServiceClient) CreateMemo(ctx context.Context, in *CreateMemoRequest, opts ...grpc.CallOption) (*Memo, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(Memo)
- err := c.cc.Invoke(ctx, MemoService_CreateMemo_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) ListMemos(ctx context.Context, in *ListMemosRequest, opts ...grpc.CallOption) (*ListMemosResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListMemosResponse)
- err := c.cc.Invoke(ctx, MemoService_ListMemos_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) SearchMemos(ctx context.Context, in *SearchMemosRequest, opts ...grpc.CallOption) (*SearchMemosResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(SearchMemosResponse)
- err := c.cc.Invoke(ctx, MemoService_SearchMemos_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) GetMemo(ctx context.Context, in *GetMemoRequest, opts ...grpc.CallOption) (*Memo, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(Memo)
- err := c.cc.Invoke(ctx, MemoService_GetMemo_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) GetMemoByUid(ctx context.Context, in *GetMemoByUidRequest, opts ...grpc.CallOption) (*Memo, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(Memo)
- err := c.cc.Invoke(ctx, MemoService_GetMemoByUid_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) UpdateMemo(ctx context.Context, in *UpdateMemoRequest, opts ...grpc.CallOption) (*Memo, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(Memo)
- err := c.cc.Invoke(ctx, MemoService_UpdateMemo_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) DeleteMemo(ctx context.Context, in *DeleteMemoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, MemoService_DeleteMemo_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) ExportMemos(ctx context.Context, in *ExportMemosRequest, opts ...grpc.CallOption) (*ExportMemosResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ExportMemosResponse)
- err := c.cc.Invoke(ctx, MemoService_ExportMemos_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) ListMemoProperties(ctx context.Context, in *ListMemoPropertiesRequest, opts ...grpc.CallOption) (*ListMemoPropertiesResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListMemoPropertiesResponse)
- err := c.cc.Invoke(ctx, MemoService_ListMemoProperties_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) RebuildMemoProperty(ctx context.Context, in *RebuildMemoPropertyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, MemoService_RebuildMemoProperty_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) ListMemoTags(ctx context.Context, in *ListMemoTagsRequest, opts ...grpc.CallOption) (*ListMemoTagsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListMemoTagsResponse)
- err := c.cc.Invoke(ctx, MemoService_ListMemoTags_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) RenameMemoTag(ctx context.Context, in *RenameMemoTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, MemoService_RenameMemoTag_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) DeleteMemoTag(ctx context.Context, in *DeleteMemoTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, MemoService_DeleteMemoTag_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) SetMemoResources(ctx context.Context, in *SetMemoResourcesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, MemoService_SetMemoResources_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) ListMemoResources(ctx context.Context, in *ListMemoResourcesRequest, opts ...grpc.CallOption) (*ListMemoResourcesResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListMemoResourcesResponse)
- err := c.cc.Invoke(ctx, MemoService_ListMemoResources_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) SetMemoRelations(ctx context.Context, in *SetMemoRelationsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, MemoService_SetMemoRelations_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) ListMemoRelations(ctx context.Context, in *ListMemoRelationsRequest, opts ...grpc.CallOption) (*ListMemoRelationsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListMemoRelationsResponse)
- err := c.cc.Invoke(ctx, MemoService_ListMemoRelations_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) CreateMemoComment(ctx context.Context, in *CreateMemoCommentRequest, opts ...grpc.CallOption) (*Memo, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(Memo)
- err := c.cc.Invoke(ctx, MemoService_CreateMemoComment_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) ListMemoComments(ctx context.Context, in *ListMemoCommentsRequest, opts ...grpc.CallOption) (*ListMemoCommentsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListMemoCommentsResponse)
- err := c.cc.Invoke(ctx, MemoService_ListMemoComments_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) GetUserMemosStats(ctx context.Context, in *GetUserMemosStatsRequest, opts ...grpc.CallOption) (*GetUserMemosStatsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(GetUserMemosStatsResponse)
- err := c.cc.Invoke(ctx, MemoService_GetUserMemosStats_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) ListMemoReactions(ctx context.Context, in *ListMemoReactionsRequest, opts ...grpc.CallOption) (*ListMemoReactionsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListMemoReactionsResponse)
- err := c.cc.Invoke(ctx, MemoService_ListMemoReactions_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) UpsertMemoReaction(ctx context.Context, in *UpsertMemoReactionRequest, opts ...grpc.CallOption) (*Reaction, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(Reaction)
- err := c.cc.Invoke(ctx, MemoService_UpsertMemoReaction_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *memoServiceClient) DeleteMemoReaction(ctx context.Context, in *DeleteMemoReactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, MemoService_DeleteMemoReaction_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // MemoServiceServer is the server API for MemoService service.
- // All implementations must embed UnimplementedMemoServiceServer
- // for forward compatibility
- type MemoServiceServer interface {
- // CreateMemo creates a memo.
- CreateMemo(context.Context, *CreateMemoRequest) (*Memo, error)
- // ListMemos lists memos with pagination and filter.
- ListMemos(context.Context, *ListMemosRequest) (*ListMemosResponse, error)
- // SearchMemos searches memos.
- SearchMemos(context.Context, *SearchMemosRequest) (*SearchMemosResponse, error)
- // GetMemo gets a memo.
- GetMemo(context.Context, *GetMemoRequest) (*Memo, error)
- // GetMemoByUid gets a memo by uid
- GetMemoByUid(context.Context, *GetMemoByUidRequest) (*Memo, error)
- // UpdateMemo updates a memo.
- UpdateMemo(context.Context, *UpdateMemoRequest) (*Memo, error)
- // DeleteMemo deletes a memo.
- DeleteMemo(context.Context, *DeleteMemoRequest) (*emptypb.Empty, error)
- // ExportMemos exports memos.
- ExportMemos(context.Context, *ExportMemosRequest) (*ExportMemosResponse, error)
- // ListMemoProperties lists memo properties.
- ListMemoProperties(context.Context, *ListMemoPropertiesRequest) (*ListMemoPropertiesResponse, error)
- // RebuildMemoProperty rebuilds a memo property.
- RebuildMemoProperty(context.Context, *RebuildMemoPropertyRequest) (*emptypb.Empty, error)
- // ListMemoTags lists tags for a memo.
- ListMemoTags(context.Context, *ListMemoTagsRequest) (*ListMemoTagsResponse, error)
- // RenameMemoTag renames a tag for a memo.
- RenameMemoTag(context.Context, *RenameMemoTagRequest) (*emptypb.Empty, error)
- // DeleteMemoTag deletes a tag for a memo.
- DeleteMemoTag(context.Context, *DeleteMemoTagRequest) (*emptypb.Empty, error)
- // SetMemoResources sets resources for a memo.
- SetMemoResources(context.Context, *SetMemoResourcesRequest) (*emptypb.Empty, error)
- // ListMemoResources lists resources for a memo.
- ListMemoResources(context.Context, *ListMemoResourcesRequest) (*ListMemoResourcesResponse, error)
- // SetMemoRelations sets relations for a memo.
- SetMemoRelations(context.Context, *SetMemoRelationsRequest) (*emptypb.Empty, error)
- // ListMemoRelations lists relations for a memo.
- ListMemoRelations(context.Context, *ListMemoRelationsRequest) (*ListMemoRelationsResponse, error)
- // CreateMemoComment creates a comment for a memo.
- CreateMemoComment(context.Context, *CreateMemoCommentRequest) (*Memo, error)
- // ListMemoComments lists comments for a memo.
- ListMemoComments(context.Context, *ListMemoCommentsRequest) (*ListMemoCommentsResponse, error)
- // GetUserMemosStats gets stats of memos for a user.
- GetUserMemosStats(context.Context, *GetUserMemosStatsRequest) (*GetUserMemosStatsResponse, error)
- // ListMemoReactions lists reactions for a memo.
- ListMemoReactions(context.Context, *ListMemoReactionsRequest) (*ListMemoReactionsResponse, error)
- // UpsertMemoReaction upserts a reaction for a memo.
- UpsertMemoReaction(context.Context, *UpsertMemoReactionRequest) (*Reaction, error)
- // DeleteMemoReaction deletes a reaction for a memo.
- DeleteMemoReaction(context.Context, *DeleteMemoReactionRequest) (*emptypb.Empty, error)
- mustEmbedUnimplementedMemoServiceServer()
- }
- // UnimplementedMemoServiceServer must be embedded to have forward compatible implementations.
- type UnimplementedMemoServiceServer struct {
- }
- func (UnimplementedMemoServiceServer) CreateMemo(context.Context, *CreateMemoRequest) (*Memo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateMemo not implemented")
- }
- func (UnimplementedMemoServiceServer) ListMemos(context.Context, *ListMemosRequest) (*ListMemosResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListMemos not implemented")
- }
- func (UnimplementedMemoServiceServer) SearchMemos(context.Context, *SearchMemosRequest) (*SearchMemosResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SearchMemos not implemented")
- }
- func (UnimplementedMemoServiceServer) GetMemo(context.Context, *GetMemoRequest) (*Memo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetMemo not implemented")
- }
- func (UnimplementedMemoServiceServer) GetMemoByUid(context.Context, *GetMemoByUidRequest) (*Memo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetMemoByUid not implemented")
- }
- func (UnimplementedMemoServiceServer) UpdateMemo(context.Context, *UpdateMemoRequest) (*Memo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateMemo not implemented")
- }
- func (UnimplementedMemoServiceServer) DeleteMemo(context.Context, *DeleteMemoRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteMemo not implemented")
- }
- func (UnimplementedMemoServiceServer) ExportMemos(context.Context, *ExportMemosRequest) (*ExportMemosResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ExportMemos not implemented")
- }
- func (UnimplementedMemoServiceServer) ListMemoProperties(context.Context, *ListMemoPropertiesRequest) (*ListMemoPropertiesResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListMemoProperties not implemented")
- }
- func (UnimplementedMemoServiceServer) RebuildMemoProperty(context.Context, *RebuildMemoPropertyRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RebuildMemoProperty not implemented")
- }
- func (UnimplementedMemoServiceServer) ListMemoTags(context.Context, *ListMemoTagsRequest) (*ListMemoTagsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListMemoTags not implemented")
- }
- func (UnimplementedMemoServiceServer) RenameMemoTag(context.Context, *RenameMemoTagRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RenameMemoTag not implemented")
- }
- func (UnimplementedMemoServiceServer) DeleteMemoTag(context.Context, *DeleteMemoTagRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteMemoTag not implemented")
- }
- func (UnimplementedMemoServiceServer) SetMemoResources(context.Context, *SetMemoResourcesRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SetMemoResources not implemented")
- }
- func (UnimplementedMemoServiceServer) ListMemoResources(context.Context, *ListMemoResourcesRequest) (*ListMemoResourcesResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListMemoResources not implemented")
- }
- func (UnimplementedMemoServiceServer) SetMemoRelations(context.Context, *SetMemoRelationsRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SetMemoRelations not implemented")
- }
- func (UnimplementedMemoServiceServer) ListMemoRelations(context.Context, *ListMemoRelationsRequest) (*ListMemoRelationsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListMemoRelations not implemented")
- }
- func (UnimplementedMemoServiceServer) CreateMemoComment(context.Context, *CreateMemoCommentRequest) (*Memo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateMemoComment not implemented")
- }
- func (UnimplementedMemoServiceServer) ListMemoComments(context.Context, *ListMemoCommentsRequest) (*ListMemoCommentsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListMemoComments not implemented")
- }
- func (UnimplementedMemoServiceServer) GetUserMemosStats(context.Context, *GetUserMemosStatsRequest) (*GetUserMemosStatsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUserMemosStats not implemented")
- }
- func (UnimplementedMemoServiceServer) ListMemoReactions(context.Context, *ListMemoReactionsRequest) (*ListMemoReactionsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ListMemoReactions not implemented")
- }
- func (UnimplementedMemoServiceServer) UpsertMemoReaction(context.Context, *UpsertMemoReactionRequest) (*Reaction, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpsertMemoReaction not implemented")
- }
- func (UnimplementedMemoServiceServer) DeleteMemoReaction(context.Context, *DeleteMemoReactionRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteMemoReaction not implemented")
- }
- func (UnimplementedMemoServiceServer) mustEmbedUnimplementedMemoServiceServer() {}
- // UnsafeMemoServiceServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to MemoServiceServer will
- // result in compilation errors.
- type UnsafeMemoServiceServer interface {
- mustEmbedUnimplementedMemoServiceServer()
- }
- func RegisterMemoServiceServer(s grpc.ServiceRegistrar, srv MemoServiceServer) {
- s.RegisterService(&MemoService_ServiceDesc, srv)
- }
- func _MemoService_CreateMemo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateMemoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).CreateMemo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_CreateMemo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).CreateMemo(ctx, req.(*CreateMemoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_ListMemos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListMemosRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).ListMemos(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_ListMemos_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).ListMemos(ctx, req.(*ListMemosRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_SearchMemos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SearchMemosRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).SearchMemos(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_SearchMemos_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).SearchMemos(ctx, req.(*SearchMemosRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_GetMemo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetMemoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).GetMemo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_GetMemo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).GetMemo(ctx, req.(*GetMemoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_GetMemoByUid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetMemoByUidRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).GetMemoByUid(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_GetMemoByUid_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).GetMemoByUid(ctx, req.(*GetMemoByUidRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_UpdateMemo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateMemoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).UpdateMemo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_UpdateMemo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).UpdateMemo(ctx, req.(*UpdateMemoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_DeleteMemo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteMemoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).DeleteMemo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_DeleteMemo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).DeleteMemo(ctx, req.(*DeleteMemoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_ExportMemos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ExportMemosRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).ExportMemos(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_ExportMemos_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).ExportMemos(ctx, req.(*ExportMemosRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_ListMemoProperties_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListMemoPropertiesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).ListMemoProperties(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_ListMemoProperties_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).ListMemoProperties(ctx, req.(*ListMemoPropertiesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_RebuildMemoProperty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RebuildMemoPropertyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).RebuildMemoProperty(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_RebuildMemoProperty_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).RebuildMemoProperty(ctx, req.(*RebuildMemoPropertyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_ListMemoTags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListMemoTagsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).ListMemoTags(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_ListMemoTags_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).ListMemoTags(ctx, req.(*ListMemoTagsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_RenameMemoTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RenameMemoTagRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).RenameMemoTag(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_RenameMemoTag_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).RenameMemoTag(ctx, req.(*RenameMemoTagRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_DeleteMemoTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteMemoTagRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).DeleteMemoTag(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_DeleteMemoTag_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).DeleteMemoTag(ctx, req.(*DeleteMemoTagRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_SetMemoResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SetMemoResourcesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).SetMemoResources(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_SetMemoResources_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).SetMemoResources(ctx, req.(*SetMemoResourcesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_ListMemoResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListMemoResourcesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).ListMemoResources(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_ListMemoResources_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).ListMemoResources(ctx, req.(*ListMemoResourcesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_SetMemoRelations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SetMemoRelationsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).SetMemoRelations(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_SetMemoRelations_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).SetMemoRelations(ctx, req.(*SetMemoRelationsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_ListMemoRelations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListMemoRelationsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).ListMemoRelations(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_ListMemoRelations_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).ListMemoRelations(ctx, req.(*ListMemoRelationsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_CreateMemoComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateMemoCommentRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).CreateMemoComment(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_CreateMemoComment_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).CreateMemoComment(ctx, req.(*CreateMemoCommentRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_ListMemoComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListMemoCommentsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).ListMemoComments(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_ListMemoComments_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).ListMemoComments(ctx, req.(*ListMemoCommentsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_GetUserMemosStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUserMemosStatsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).GetUserMemosStats(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_GetUserMemosStats_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).GetUserMemosStats(ctx, req.(*GetUserMemosStatsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_ListMemoReactions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListMemoReactionsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).ListMemoReactions(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_ListMemoReactions_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).ListMemoReactions(ctx, req.(*ListMemoReactionsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_UpsertMemoReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpsertMemoReactionRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).UpsertMemoReaction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_UpsertMemoReaction_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).UpsertMemoReaction(ctx, req.(*UpsertMemoReactionRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _MemoService_DeleteMemoReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteMemoReactionRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MemoServiceServer).DeleteMemoReaction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: MemoService_DeleteMemoReaction_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MemoServiceServer).DeleteMemoReaction(ctx, req.(*DeleteMemoReactionRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- // MemoService_ServiceDesc is the grpc.ServiceDesc for MemoService service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var MemoService_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "memos.api.v1.MemoService",
- HandlerType: (*MemoServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "CreateMemo",
- Handler: _MemoService_CreateMemo_Handler,
- },
- {
- MethodName: "ListMemos",
- Handler: _MemoService_ListMemos_Handler,
- },
- {
- MethodName: "SearchMemos",
- Handler: _MemoService_SearchMemos_Handler,
- },
- {
- MethodName: "GetMemo",
- Handler: _MemoService_GetMemo_Handler,
- },
- {
- MethodName: "GetMemoByUid",
- Handler: _MemoService_GetMemoByUid_Handler,
- },
- {
- MethodName: "UpdateMemo",
- Handler: _MemoService_UpdateMemo_Handler,
- },
- {
- MethodName: "DeleteMemo",
- Handler: _MemoService_DeleteMemo_Handler,
- },
- {
- MethodName: "ExportMemos",
- Handler: _MemoService_ExportMemos_Handler,
- },
- {
- MethodName: "ListMemoProperties",
- Handler: _MemoService_ListMemoProperties_Handler,
- },
- {
- MethodName: "RebuildMemoProperty",
- Handler: _MemoService_RebuildMemoProperty_Handler,
- },
- {
- MethodName: "ListMemoTags",
- Handler: _MemoService_ListMemoTags_Handler,
- },
- {
- MethodName: "RenameMemoTag",
- Handler: _MemoService_RenameMemoTag_Handler,
- },
- {
- MethodName: "DeleteMemoTag",
- Handler: _MemoService_DeleteMemoTag_Handler,
- },
- {
- MethodName: "SetMemoResources",
- Handler: _MemoService_SetMemoResources_Handler,
- },
- {
- MethodName: "ListMemoResources",
- Handler: _MemoService_ListMemoResources_Handler,
- },
- {
- MethodName: "SetMemoRelations",
- Handler: _MemoService_SetMemoRelations_Handler,
- },
- {
- MethodName: "ListMemoRelations",
- Handler: _MemoService_ListMemoRelations_Handler,
- },
- {
- MethodName: "CreateMemoComment",
- Handler: _MemoService_CreateMemoComment_Handler,
- },
- {
- MethodName: "ListMemoComments",
- Handler: _MemoService_ListMemoComments_Handler,
- },
- {
- MethodName: "GetUserMemosStats",
- Handler: _MemoService_GetUserMemosStats_Handler,
- },
- {
- MethodName: "ListMemoReactions",
- Handler: _MemoService_ListMemoReactions_Handler,
- },
- {
- MethodName: "UpsertMemoReaction",
- Handler: _MemoService_UpsertMemoReaction_Handler,
- },
- {
- MethodName: "DeleteMemoReaction",
- Handler: _MemoService_DeleteMemoReaction_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "api/v1/memo_service.proto",
- }
|