mirror of
https://github.com/usememos/memos.git
synced 2024-11-17 20:25:46 +08:00
597 lines
21 KiB
Go
597 lines
21 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.31.0
|
||
|
// protoc (unknown)
|
||
|
// source: api/v2/memo_service.proto
|
||
|
|
||
|
package apiv2
|
||
|
|
||
|
import (
|
||
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
reflect "reflect"
|
||
|
sync "sync"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
)
|
||
|
|
||
|
type Visibility int32
|
||
|
|
||
|
const (
|
||
|
Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
|
||
|
Visibility_PRIVATE Visibility = 1
|
||
|
Visibility_PROTECTED Visibility = 2
|
||
|
Visibility_PUBLIC Visibility = 3
|
||
|
)
|
||
|
|
||
|
// Enum value maps for Visibility.
|
||
|
var (
|
||
|
Visibility_name = map[int32]string{
|
||
|
0: "VISIBILITY_UNSPECIFIED",
|
||
|
1: "PRIVATE",
|
||
|
2: "PROTECTED",
|
||
|
3: "PUBLIC",
|
||
|
}
|
||
|
Visibility_value = map[string]int32{
|
||
|
"VISIBILITY_UNSPECIFIED": 0,
|
||
|
"PRIVATE": 1,
|
||
|
"PROTECTED": 2,
|
||
|
"PUBLIC": 3,
|
||
|
}
|
||
|
)
|
||
|
|
||
|
func (x Visibility) Enum() *Visibility {
|
||
|
p := new(Visibility)
|
||
|
*p = x
|
||
|
return p
|
||
|
}
|
||
|
|
||
|
func (x Visibility) String() string {
|
||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||
|
}
|
||
|
|
||
|
func (Visibility) Descriptor() protoreflect.EnumDescriptor {
|
||
|
return file_api_v2_memo_service_proto_enumTypes[0].Descriptor()
|
||
|
}
|
||
|
|
||
|
func (Visibility) Type() protoreflect.EnumType {
|
||
|
return &file_api_v2_memo_service_proto_enumTypes[0]
|
||
|
}
|
||
|
|
||
|
func (x Visibility) Number() protoreflect.EnumNumber {
|
||
|
return protoreflect.EnumNumber(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Visibility.Descriptor instead.
|
||
|
func (Visibility) EnumDescriptor() ([]byte, []int) {
|
||
|
return file_api_v2_memo_service_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
type Memo struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
|
RowStatus RowStatus `protobuf:"varint,2,opt,name=row_status,json=rowStatus,proto3,enum=memos.api.v2.RowStatus" json:"row_status,omitempty"`
|
||
|
CreatorId int32 `protobuf:"varint,3,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
|
||
|
CreatedTs int64 `protobuf:"varint,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
|
||
|
UpdatedTs int64 `protobuf:"varint,5,opt,name=updated_ts,json=updatedTs,proto3" json:"updated_ts,omitempty"`
|
||
|
Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
|
||
|
Visibility Visibility `protobuf:"varint,7,opt,name=visibility,proto3,enum=memos.api.v2.Visibility" json:"visibility,omitempty"`
|
||
|
Pinned bool `protobuf:"varint,8,opt,name=pinned,proto3" json:"pinned,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *Memo) Reset() {
|
||
|
*x = Memo{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Memo) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Memo) ProtoMessage() {}
|
||
|
|
||
|
func (x *Memo) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[0]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Memo.ProtoReflect.Descriptor instead.
|
||
|
func (*Memo) Descriptor() ([]byte, []int) {
|
||
|
return file_api_v2_memo_service_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *Memo) GetId() int32 {
|
||
|
if x != nil {
|
||
|
return x.Id
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Memo) GetRowStatus() RowStatus {
|
||
|
if x != nil {
|
||
|
return x.RowStatus
|
||
|
}
|
||
|
return RowStatus_ROW_STATUS_UNSPECIFIED
|
||
|
}
|
||
|
|
||
|
func (x *Memo) GetCreatorId() int32 {
|
||
|
if x != nil {
|
||
|
return x.CreatorId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Memo) GetCreatedTs() int64 {
|
||
|
if x != nil {
|
||
|
return x.CreatedTs
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Memo) GetUpdatedTs() int64 {
|
||
|
if x != nil {
|
||
|
return x.UpdatedTs
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Memo) GetContent() string {
|
||
|
if x != nil {
|
||
|
return x.Content
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Memo) GetVisibility() Visibility {
|
||
|
if x != nil {
|
||
|
return x.Visibility
|
||
|
}
|
||
|
return Visibility_VISIBILITY_UNSPECIFIED
|
||
|
}
|
||
|
|
||
|
func (x *Memo) GetPinned() bool {
|
||
|
if x != nil {
|
||
|
return x.Pinned
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
type ListMemosRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
||
|
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||
|
// Filter is used to filter memos returned in the list.
|
||
|
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosRequest) Reset() {
|
||
|
*x = ListMemosRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ListMemosRequest) ProtoMessage() {}
|
||
|
|
||
|
func (x *ListMemosRequest) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[1]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use ListMemosRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*ListMemosRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_api_v2_memo_service_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosRequest) GetPage() int32 {
|
||
|
if x != nil {
|
||
|
return x.Page
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosRequest) GetPageSize() int32 {
|
||
|
if x != nil {
|
||
|
return x.PageSize
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosRequest) GetFilter() string {
|
||
|
if x != nil {
|
||
|
return x.Filter
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type ListMemosResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Memos []*Memo `protobuf:"bytes,1,rep,name=memos,proto3" json:"memos,omitempty"`
|
||
|
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosResponse) Reset() {
|
||
|
*x = ListMemosResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[2]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ListMemosResponse) ProtoMessage() {}
|
||
|
|
||
|
func (x *ListMemosResponse) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[2]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use ListMemosResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*ListMemosResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_api_v2_memo_service_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosResponse) GetMemos() []*Memo {
|
||
|
if x != nil {
|
||
|
return x.Memos
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *ListMemosResponse) GetTotal() int32 {
|
||
|
if x != nil {
|
||
|
return x.Total
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type GetMemoRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *GetMemoRequest) Reset() {
|
||
|
*x = GetMemoRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[3]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *GetMemoRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*GetMemoRequest) ProtoMessage() {}
|
||
|
|
||
|
func (x *GetMemoRequest) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[3]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use GetMemoRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*GetMemoRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_api_v2_memo_service_proto_rawDescGZIP(), []int{3}
|
||
|
}
|
||
|
|
||
|
func (x *GetMemoRequest) GetId() int32 {
|
||
|
if x != nil {
|
||
|
return x.Id
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type GetMemoResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Memo *Memo `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *GetMemoResponse) Reset() {
|
||
|
*x = GetMemoResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[4]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *GetMemoResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*GetMemoResponse) ProtoMessage() {}
|
||
|
|
||
|
func (x *GetMemoResponse) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_api_v2_memo_service_proto_msgTypes[4]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use GetMemoResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*GetMemoResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_api_v2_memo_service_proto_rawDescGZIP(), []int{4}
|
||
|
}
|
||
|
|
||
|
func (x *GetMemoResponse) GetMemo() *Memo {
|
||
|
if x != nil {
|
||
|
return x.Memo
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
var File_api_v2_memo_service_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_api_v2_memo_service_proto_rawDesc = []byte{
|
||
|
0x0a, 0x19, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x5f, 0x73, 0x65,
|
||
|
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x6d,
|
||
|
0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x76,
|
||
|
0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
|
||
|
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
|
||
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f,
|
||
|
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e,
|
||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x02, 0x0a, 0x04, 0x4d, 0x65, 0x6d, 0x6f, 0x12, 0x0e,
|
||
|
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x36,
|
||
|
0x0a, 0x0a, 0x72, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01,
|
||
|
0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
|
||
|
0x32, 0x2e, 0x52, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x72, 0x6f, 0x77,
|
||
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
|
||
|
0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61,
|
||
|
0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
|
||
|
0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
|
||
|
0x65, 0x64, 0x54, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f,
|
||
|
0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||
|
0x64, 0x54, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06,
|
||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a,
|
||
|
0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28,
|
||
|
0x0e, 0x32, 0x18, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32,
|
||
|
0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73,
|
||
|
0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65,
|
||
|
0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x22,
|
||
|
0x5b, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x52, 0x65, 0x71, 0x75,
|
||
|
0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||
|
0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f,
|
||
|
0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65,
|
||
|
0x53, 0x69, 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03,
|
||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x53, 0x0a, 0x11,
|
||
|
0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||
|
0x65, 0x12, 0x28, 0x0a, 0x05, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||
|
0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e,
|
||
|
0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x05, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74,
|
||
|
0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61,
|
||
|
0x6c, 0x22, 0x20, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x71, 0x75,
|
||
|
0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||
|
0x02, 0x69, 0x64, 0x22, 0x39, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65,
|
||
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x01,
|
||
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
|
||
|
0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x2a, 0x50,
|
||
|
0x0a, 0x0a, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16,
|
||
|
0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
|
||
|
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x49, 0x56,
|
||
|
0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54,
|
||
|
0x45, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x03,
|
||
|
0x32, 0xdb, 0x01, 0x0a, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
||
|
0x12, 0x63, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x12, 0x1e, 0x2e,
|
||
|
0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73,
|
||
|
0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e,
|
||
|
0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73,
|
||
|
0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15,
|
||
|
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f,
|
||
|
0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x12, 0x67, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x6f,
|
||
|
0x12, 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e,
|
||
|
0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,
|
||
|
0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65,
|
||
|
0x74, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0xda,
|
||
|
0x41, 0x02, 0x69, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x61, 0x70, 0x69,
|
||
|
0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x42, 0xa8,
|
||
|
0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
|
||
|
0x2e, 0x76, 0x32, 0x42, 0x10, 0x4d, 0x65, 0x6d, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
||
|
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
|
||
|
0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x6d,
|
||
|
0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69,
|
||
|
0x2f, 0x76, 0x32, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa,
|
||
|
0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x32, 0xca, 0x02,
|
||
|
0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18,
|
||
|
0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42,
|
||
|
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73,
|
||
|
0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||
|
0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_api_v2_memo_service_proto_rawDescOnce sync.Once
|
||
|
file_api_v2_memo_service_proto_rawDescData = file_api_v2_memo_service_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_api_v2_memo_service_proto_rawDescGZIP() []byte {
|
||
|
file_api_v2_memo_service_proto_rawDescOnce.Do(func() {
|
||
|
file_api_v2_memo_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_v2_memo_service_proto_rawDescData)
|
||
|
})
|
||
|
return file_api_v2_memo_service_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_api_v2_memo_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||
|
var file_api_v2_memo_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||
|
var file_api_v2_memo_service_proto_goTypes = []interface{}{
|
||
|
(Visibility)(0), // 0: memos.api.v2.Visibility
|
||
|
(*Memo)(nil), // 1: memos.api.v2.Memo
|
||
|
(*ListMemosRequest)(nil), // 2: memos.api.v2.ListMemosRequest
|
||
|
(*ListMemosResponse)(nil), // 3: memos.api.v2.ListMemosResponse
|
||
|
(*GetMemoRequest)(nil), // 4: memos.api.v2.GetMemoRequest
|
||
|
(*GetMemoResponse)(nil), // 5: memos.api.v2.GetMemoResponse
|
||
|
(RowStatus)(0), // 6: memos.api.v2.RowStatus
|
||
|
}
|
||
|
var file_api_v2_memo_service_proto_depIdxs = []int32{
|
||
|
6, // 0: memos.api.v2.Memo.row_status:type_name -> memos.api.v2.RowStatus
|
||
|
0, // 1: memos.api.v2.Memo.visibility:type_name -> memos.api.v2.Visibility
|
||
|
1, // 2: memos.api.v2.ListMemosResponse.memos:type_name -> memos.api.v2.Memo
|
||
|
1, // 3: memos.api.v2.GetMemoResponse.memo:type_name -> memos.api.v2.Memo
|
||
|
2, // 4: memos.api.v2.MemoService.ListMemos:input_type -> memos.api.v2.ListMemosRequest
|
||
|
4, // 5: memos.api.v2.MemoService.GetMemo:input_type -> memos.api.v2.GetMemoRequest
|
||
|
3, // 6: memos.api.v2.MemoService.ListMemos:output_type -> memos.api.v2.ListMemosResponse
|
||
|
5, // 7: memos.api.v2.MemoService.GetMemo:output_type -> memos.api.v2.GetMemoResponse
|
||
|
6, // [6:8] is the sub-list for method output_type
|
||
|
4, // [4:6] is the sub-list for method input_type
|
||
|
4, // [4:4] is the sub-list for extension type_name
|
||
|
4, // [4:4] is the sub-list for extension extendee
|
||
|
0, // [0:4] is the sub-list for field type_name
|
||
|
}
|
||
|
|
||
|
func init() { file_api_v2_memo_service_proto_init() }
|
||
|
func file_api_v2_memo_service_proto_init() {
|
||
|
if File_api_v2_memo_service_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
file_api_v2_common_proto_init()
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_api_v2_memo_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Memo); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_api_v2_memo_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*ListMemosRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_api_v2_memo_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*ListMemosResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_api_v2_memo_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*GetMemoRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_api_v2_memo_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*GetMemoResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: file_api_v2_memo_service_proto_rawDesc,
|
||
|
NumEnums: 1,
|
||
|
NumMessages: 5,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 1,
|
||
|
},
|
||
|
GoTypes: file_api_v2_memo_service_proto_goTypes,
|
||
|
DependencyIndexes: file_api_v2_memo_service_proto_depIdxs,
|
||
|
EnumInfos: file_api_v2_memo_service_proto_enumTypes,
|
||
|
MessageInfos: file_api_v2_memo_service_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_api_v2_memo_service_proto = out.File
|
||
|
file_api_v2_memo_service_proto_rawDesc = nil
|
||
|
file_api_v2_memo_service_proto_goTypes = nil
|
||
|
file_api_v2_memo_service_proto_depIdxs = nil
|
||
|
}
|