Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

93.1 KB
Raw Blame
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        (unknown)
// source: api/memo_service.proto

package api

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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)
)

// Visibility controls who can read a memo.
type Visibility int32

const (
	Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
	// Only the creator can read the memo.
	Visibility_PRIVATE Visibility = 1
	// Signed-in users of the instance can read the memo.
	Visibility_PROTECTED Visibility = 2
	// Signed-in users can read the memo; anonymous visitors can read it when
	// instance policy permits.
	Visibility_PUBLIC Visibility = 3
	// Active members of the memo's space can read the memo.
	Visibility_SPACE Visibility = 4
)

// Enum value maps for Visibility.
var (
	Visibility_name = map[int32]string{
		0: "VISIBILITY_UNSPECIFIED",
		1: "PRIVATE",
		2: "PROTECTED",
		3: "PUBLIC",
		4: "SPACE",
	}
	Visibility_value = map[string]int32{
		"VISIBILITY_UNSPECIFIED": 0,
		"PRIVATE":                1,
		"PROTECTED":              2,
		"PUBLIC":                 3,
		"SPACE":                  4,
	}
)

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_memo_service_proto_enumTypes[0].Descriptor()
}

func (Visibility) Type() protoreflect.EnumType {
	return &file_api_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_memo_service_proto_rawDescGZIP(), []int{0}
}

// Type is the kind of a memo relation.
type MemoRelation_Type int32

const (
	MemoRelation_TYPE_UNSPECIFIED MemoRelation_Type = 0
	// The source memo references the target memo. Clients can set it.
	MemoRelation_REFERENCE MemoRelation_Type = 1
	// The source memo is a comment on the target memo. Output only.
	MemoRelation_COMMENT MemoRelation_Type = 2
)

// Enum value maps for MemoRelation_Type.
var (
	MemoRelation_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "REFERENCE",
		2: "COMMENT",
	}
	MemoRelation_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"REFERENCE":        1,
		"COMMENT":          2,
	}
)

func (x MemoRelation_Type) Enum() *MemoRelation_Type {
	p := new(MemoRelation_Type)
	*p = x
	return p
}

func (x MemoRelation_Type) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (MemoRelation_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_api_memo_service_proto_enumTypes[1].Descriptor()
}

func (MemoRelation_Type) Type() protoreflect.EnumType {
	return &file_api_memo_service_proto_enumTypes[1]
}

func (x MemoRelation_Type) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use MemoRelation_Type.Descriptor instead.
func (MemoRelation_Type) EnumDescriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{11, 0}
}

// Memo is a Markdown note written by a user.
type Memo struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the memo, where memo is the
	// user-defined UID.
	// Format: memos/{memo}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The resource name of the creator.
	// Format: users/{user}
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// Optional. The space in which the memo is placed. Every memo, including a
	// comment, owns its placement independently.
	// Format: spaces/{space}
	Space *string `protobuf:"bytes,3,opt,name=space,proto3,oneof" json:"space,omitempty"`
	// Required. The content of the memo in Markdown. Must not exceed the
	// instance's content length limit.
	Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// Optional. The location of the memo.
	Location *Location `protobuf:"bytes,5,opt,name=location,proto3,oneof" json:"location,omitempty"`
	// Required. The visibility of the memo. Defaults to PRIVATE on creation when
	// unspecified. SPACE requires the memo to be placed in a space.
	Visibility Visibility `protobuf:"varint,6,opt,name=visibility,proto3,enum=memos.api.Visibility" json:"visibility,omitempty"`
	// Required. The state of the memo. New memos are always NORMAL; change it
	// with UpdateMemo.
	State State `protobuf:"varint,7,opt,name=state,proto3,enum=memos.api.State" json:"state,omitempty"`
	// Optional. Whether the memo is pinned. Ignored on creation; change it with
	// UpdateMemo.
	Pinned bool `protobuf:"varint,8,opt,name=pinned,proto3" json:"pinned,omitempty"`
	// Optional. The attachments of the memo. Setting it replaces the full set.
	Attachments []*Attachment `protobuf:"bytes,9,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// Optional. The relations of the memo in both directions. Only REFERENCE
	// relations can be set; COMMENT relations are output only.
	Relations []*MemoRelation `protobuf:"bytes,10,rep,name=relations,proto3" json:"relations,omitempty"`
	// Output only. The reactions to the memo.
	Reactions []*Reaction `protobuf:"bytes,11,rep,name=reactions,proto3" json:"reactions,omitempty"`
	// Output only. The context memo of this COMMENT relation, if any.
	// Its identity is returned even when the caller cannot read the parent.
	// Fetch the parent independently; this field does not grant read access.
	// Format: memos/{memo}
	Parent *string `protobuf:"bytes,12,opt,name=parent,proto3,oneof" json:"parent,omitempty"`
	// Output only. The tags extracted from the content.
	Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"`
	// Output only. The properties computed from the content.
	Property *Memo_Property `protobuf:"bytes,14,opt,name=property,proto3" json:"property,omitempty"`
	// Output only. A plain-text snippet of the content.
	Snippet string `protobuf:"bytes,15,opt,name=snippet,proto3" json:"snippet,omitempty"`
	// Optional. The creation time. Defaults to the current time when unset on
	// creation.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Optional. The last update time. Defaults to the current time when unset on
	// creation.
	UpdateTime    *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Memo) Reset() {
	*x = Memo{}
	mi := &file_api_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_memo_service_proto_msgTypes[0]
	if 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_memo_service_proto_rawDescGZIP(), []int{0}
}

func (x *Memo) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Memo) GetCreator() string {
	if x != nil {
		return x.Creator
	}
	return ""
}

func (x *Memo) GetSpace() string {
	if x != nil && x.Space != nil {
		return *x.Space
	}
	return ""
}

func (x *Memo) GetContent() string {
	if x != nil {
		return x.Content
	}
	return ""
}

func (x *Memo) GetLocation() *Location {
	if x != nil {
		return x.Location
	}
	return nil
}

func (x *Memo) GetVisibility() Visibility {
	if x != nil {
		return x.Visibility
	}
	return Visibility_VISIBILITY_UNSPECIFIED
}

func (x *Memo) GetState() State {
	if x != nil {
		return x.State
	}
	return State_STATE_UNSPECIFIED
}

func (x *Memo) GetPinned() bool {
	if x != nil {
		return x.Pinned
	}
	return false
}

func (x *Memo) GetAttachments() []*Attachment {
	if x != nil {
		return x.Attachments
	}
	return nil
}

func (x *Memo) GetRelations() []*MemoRelation {
	if x != nil {
		return x.Relations
	}
	return nil
}

func (x *Memo) GetReactions() []*Reaction {
	if x != nil {
		return x.Reactions
	}
	return nil
}

func (x *Memo) GetParent() string {
	if x != nil && x.Parent != nil {
		return *x.Parent
	}
	return ""
}

func (x *Memo) GetTags() []string {
	if x != nil {
		return x.Tags
	}
	return nil
}

func (x *Memo) GetProperty() *Memo_Property {
	if x != nil {
		return x.Property
	}
	return nil
}

func (x *Memo) GetSnippet() string {
	if x != nil {
		return x.Snippet
	}
	return ""
}

func (x *Memo) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *Memo) GetUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

// Request message for MemoService.ListMemos.
type ListMemosRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. The maximum number of memos to return. The service may return
	// fewer. Defaults to 50; values above 1000 are coerced to 1000.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token from a previous call. Provide it to retrieve the
	// next page.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. A CEL expression to filter memos. Combine terms with && and ||.
	// Available fields:
	//
	//	content (string), creator (string, e.g. "users/1"),
	//	created_ts / updated_ts (timestamp), pinned (bool),
	//	visibility (string: PRIVATE | PROTECTED | PUBLIC | SPACE),
	//	space (string resource name, or null when the memo has no space;
	//	  supports == and comparisons against null, e.g. space != null),
	//	tags (list<string>; match with `"work" in tags`, not `tag == "work"`),
	//	has_task_list / has_link / has_code / has_incomplete_tasks (bool),
	//	has_location (bool; true when the memo has a location attached),
	//	has_attachments (bool; true when a file is attached to the memo),
	//	has_image (bool; true when the content contains a Markdown image or an
	//	  image file is attached).
	//
	// Note: the time fields here are created_ts / updated_ts, which differ from
	// the create_time / update_time names used by order_by.
	// Examples:
	//
	//	pinned == true && visibility == "PUBLIC"
	//	space == "spaces/team" or space == null
	//	tags.exists(t, t == "urgent")
	//	content.contains("roadmap") && created_ts > now - duration("168h")
	Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. The order to sort results by, as a comma-separated list of
	// fields following AIP-132. Defaults to "create_time desc".
	// Supported fields: pinned, create_time, update_time, name.
	// Example: "pinned desc, create_time desc" or "update_time asc".
	// Note: order_by uses create_time / update_time, while the filter
	// expression uses created_ts / updated_ts for the same timestamps.
	OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// Optional. Whether to include deleted memos. Currently ignored by the
	// server.
	ShowDeleted bool `protobuf:"varint,5,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// Optional. The state of the memos to list. Defaults to NORMAL. Set to
	// ARCHIVED to list the caller's own archived memos.
	State         State `protobuf:"varint,6,opt,name=state,proto3,enum=memos.api.State" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemosRequest) Reset() {
	*x = ListMemosRequest{}
	mi := &file_api_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_memo_service_proto_msgTypes[1]
	if 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_memo_service_proto_rawDescGZIP(), []int{1}
}

func (x *ListMemosRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListMemosRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

func (x *ListMemosRequest) GetFilter() string {
	if x != nil {
		return x.Filter
	}
	return ""
}

func (x *ListMemosRequest) GetOrderBy() string {
	if x != nil {
		return x.OrderBy
	}
	return ""
}

func (x *ListMemosRequest) GetShowDeleted() bool {
	if x != nil {
		return x.ShowDeleted
	}
	return false
}

func (x *ListMemosRequest) GetState() State {
	if x != nil {
		return x.State
	}
	return State_STATE_UNSPECIFIED
}

// Response message for MemoService.ListMemos.
type ListMemosResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The memos.
	Memos []*Memo `protobuf:"bytes,1,rep,name=memos,proto3" json:"memos,omitempty"`
	// A token to retrieve the next page. Empty when there are no more pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemosResponse) Reset() {
	*x = ListMemosResponse{}
	mi := &file_api_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_memo_service_proto_msgTypes[2]
	if 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_memo_service_proto_rawDescGZIP(), []int{2}
}

func (x *ListMemosResponse) GetMemos() []*Memo {
	if x != nil {
		return x.Memos
	}
	return nil
}

func (x *ListMemosResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

// Request message for MemoService.GetMemo.
type GetMemoRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetMemoRequest) Reset() {
	*x = GetMemoRequest{}
	mi := &file_api_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_memo_service_proto_msgTypes[3]
	if 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_memo_service_proto_rawDescGZIP(), []int{3}
}

func (x *GetMemoRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

// Request message for MemoService.CreateMemo.
type CreateMemoRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The memo to create.
	Memo *Memo `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
	// Optional. The ID to use for the memo, which becomes the final segment of
	// its resource name. If empty, a unique ID is generated.
	// Format: ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$
	MemoId        string `protobuf:"bytes,2,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateMemoRequest) Reset() {
	*x = CreateMemoRequest{}
	mi := &file_api_memo_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateMemoRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateMemoRequest) ProtoMessage() {}

func (x *CreateMemoRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateMemoRequest.ProtoReflect.Descriptor instead.
func (*CreateMemoRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{4}
}

func (x *CreateMemoRequest) GetMemo() *Memo {
	if x != nil {
		return x.Memo
	}
	return nil
}

func (x *CreateMemoRequest) GetMemoId() string {
	if x != nil {
		return x.MemoId
	}
	return ""
}

// Request message for MemoService.UpdateMemo.
type UpdateMemoRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The memo to update. Its name identifies the memo.
	Memo *Memo `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
	// Required. The fields to update. Supported paths: content, visibility,
	// space, pinned, state, create_time, update_time, location, attachments,
	// relations.
	UpdateMask    *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpdateMemoRequest) Reset() {
	*x = UpdateMemoRequest{}
	mi := &file_api_memo_service_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpdateMemoRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpdateMemoRequest) ProtoMessage() {}

func (x *UpdateMemoRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UpdateMemoRequest.ProtoReflect.Descriptor instead.
func (*UpdateMemoRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{5}
}

func (x *UpdateMemoRequest) GetMemo() *Memo {
	if x != nil {
		return x.Memo
	}
	return nil
}

func (x *UpdateMemoRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
	if x != nil {
		return x.UpdateMask
	}
	return nil
}

// Request message for MemoService.DeleteMemo.
type DeleteMemoRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo to delete.
	// Format: memos/{memo}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. Currently ignored by the server; deletion always includes the
	// comment subtree.
	Force         bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteMemoRequest) Reset() {
	*x = DeleteMemoRequest{}
	mi := &file_api_memo_service_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteMemoRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteMemoRequest) ProtoMessage() {}

func (x *DeleteMemoRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteMemoRequest.ProtoReflect.Descriptor instead.
func (*DeleteMemoRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{6}
}

func (x *DeleteMemoRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *DeleteMemoRequest) GetForce() bool {
	if x != nil {
		return x.Force
	}
	return false
}

// Location is a geographic location attached to a memo.
type Location struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. A human-readable label for the location.
	Placeholder string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	// Optional. The latitude of the location.
	Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// Optional. The longitude of the location.
	Longitude     float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Location) Reset() {
	*x = Location{}
	mi := &file_api_memo_service_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Location) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Location) ProtoMessage() {}

func (x *Location) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[7]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Location.ProtoReflect.Descriptor instead.
func (*Location) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{7}
}

func (x *Location) GetPlaceholder() string {
	if x != nil {
		return x.Placeholder
	}
	return ""
}

func (x *Location) GetLatitude() float64 {
	if x != nil {
		return x.Latitude
	}
	return 0
}

func (x *Location) GetLongitude() float64 {
	if x != nil {
		return x.Longitude
	}
	return 0
}

// Request message for MemoService.ListMemoAttachments.
type ListMemoAttachmentsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of attachments to return. The service may
	// return fewer. Currently ignored; all attachments are returned.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token from a previous call. Provide it to retrieve the
	// next page. Currently ignored.
	PageToken     string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoAttachmentsRequest) Reset() {
	*x = ListMemoAttachmentsRequest{}
	mi := &file_api_memo_service_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoAttachmentsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoAttachmentsRequest) ProtoMessage() {}

func (x *ListMemoAttachmentsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[8]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoAttachmentsRequest.ProtoReflect.Descriptor instead.
func (*ListMemoAttachmentsRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{8}
}

func (x *ListMemoAttachmentsRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *ListMemoAttachmentsRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListMemoAttachmentsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

// Response message for MemoService.ListMemoAttachments.
type ListMemoAttachmentsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The attachments.
	Attachments []*Attachment `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// A token to retrieve the next page. Empty when there are no more pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoAttachmentsResponse) Reset() {
	*x = ListMemoAttachmentsResponse{}
	mi := &file_api_memo_service_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoAttachmentsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoAttachmentsResponse) ProtoMessage() {}

func (x *ListMemoAttachmentsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[9]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoAttachmentsResponse.ProtoReflect.Descriptor instead.
func (*ListMemoAttachmentsResponse) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{9}
}

func (x *ListMemoAttachmentsResponse) GetAttachments() []*Attachment {
	if x != nil {
		return x.Attachments
	}
	return nil
}

func (x *ListMemoAttachmentsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

// Request message for MemoService.SetMemoAttachments.
type SetMemoAttachmentsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The complete set of attachments for the memo.
	Attachments   []*Attachment `protobuf:"bytes,2,rep,name=attachments,proto3" json:"attachments,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SetMemoAttachmentsRequest) Reset() {
	*x = SetMemoAttachmentsRequest{}
	mi := &file_api_memo_service_proto_msgTypes[10]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SetMemoAttachmentsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SetMemoAttachmentsRequest) ProtoMessage() {}

func (x *SetMemoAttachmentsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[10]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SetMemoAttachmentsRequest.ProtoReflect.Descriptor instead.
func (*SetMemoAttachmentsRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{10}
}

func (x *SetMemoAttachmentsRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *SetMemoAttachmentsRequest) GetAttachments() []*Attachment {
	if x != nil {
		return x.Attachments
	}
	return nil
}

// MemoRelation is a directed link from one memo to another.
type MemoRelation struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The source memo of the relation. For COMMENT, the comment.
	Memo *MemoRelation_MemoRef `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
	// Required. The target memo of the relation. For COMMENT, the memo being
	// commented on.
	RelatedMemo *MemoRelation_MemoRef `protobuf:"bytes,2,opt,name=related_memo,json=relatedMemo,proto3" json:"related_memo,omitempty"`
	// Required. The type of the relation.
	Type          MemoRelation_Type `protobuf:"varint,3,opt,name=type,proto3,enum=memos.api.MemoRelation_Type" json:"type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MemoRelation) Reset() {
	*x = MemoRelation{}
	mi := &file_api_memo_service_proto_msgTypes[11]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MemoRelation) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MemoRelation) ProtoMessage() {}

func (x *MemoRelation) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[11]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MemoRelation.ProtoReflect.Descriptor instead.
func (*MemoRelation) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{11}
}

func (x *MemoRelation) GetMemo() *MemoRelation_MemoRef {
	if x != nil {
		return x.Memo
	}
	return nil
}

func (x *MemoRelation) GetRelatedMemo() *MemoRelation_MemoRef {
	if x != nil {
		return x.RelatedMemo
	}
	return nil
}

func (x *MemoRelation) GetType() MemoRelation_Type {
	if x != nil {
		return x.Type
	}
	return MemoRelation_TYPE_UNSPECIFIED
}

// Request message for MemoService.ListMemoRelations.
type ListMemoRelationsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of relations to return. The service may
	// return fewer. Defaults to 50; values above 1000 are coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token from a previous call. Provide it to retrieve the
	// next page.
	PageToken     string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoRelationsRequest) Reset() {
	*x = ListMemoRelationsRequest{}
	mi := &file_api_memo_service_proto_msgTypes[12]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoRelationsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoRelationsRequest) ProtoMessage() {}

func (x *ListMemoRelationsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[12]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoRelationsRequest.ProtoReflect.Descriptor instead.
func (*ListMemoRelationsRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{12}
}

func (x *ListMemoRelationsRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *ListMemoRelationsRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListMemoRelationsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

// Response message for MemoService.ListMemoRelations.
type ListMemoRelationsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The relations.
	Relations []*MemoRelation `protobuf:"bytes,1,rep,name=relations,proto3" json:"relations,omitempty"`
	// A token to retrieve the next page. Empty when there are no more pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoRelationsResponse) Reset() {
	*x = ListMemoRelationsResponse{}
	mi := &file_api_memo_service_proto_msgTypes[13]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoRelationsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoRelationsResponse) ProtoMessage() {}

func (x *ListMemoRelationsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[13]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoRelationsResponse.ProtoReflect.Descriptor instead.
func (*ListMemoRelationsResponse) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{13}
}

func (x *ListMemoRelationsResponse) GetRelations() []*MemoRelation {
	if x != nil {
		return x.Relations
	}
	return nil
}

func (x *ListMemoRelationsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

// Request message for MemoService.SetMemoRelations.
type SetMemoRelationsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The complete set of REFERENCE relations for the memo. COMMENT
	// relations are rejected.
	Relations     []*MemoRelation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SetMemoRelationsRequest) Reset() {
	*x = SetMemoRelationsRequest{}
	mi := &file_api_memo_service_proto_msgTypes[14]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SetMemoRelationsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SetMemoRelationsRequest) ProtoMessage() {}

func (x *SetMemoRelationsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[14]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SetMemoRelationsRequest.ProtoReflect.Descriptor instead.
func (*SetMemoRelationsRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{14}
}

func (x *SetMemoRelationsRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *SetMemoRelationsRequest) GetRelations() []*MemoRelation {
	if x != nil {
		return x.Relations
	}
	return nil
}

// Request message for MemoService.ListMemoComments.
type ListMemoCommentsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of comments to return. The service may return
	// fewer. Defaults to 50; values above 1000 are coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token from a previous call. Provide it to retrieve the
	// next page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. The order to sort results by. Currently ignored by the server.
	OrderBy       string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoCommentsRequest) Reset() {
	*x = ListMemoCommentsRequest{}
	mi := &file_api_memo_service_proto_msgTypes[15]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoCommentsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoCommentsRequest) ProtoMessage() {}

func (x *ListMemoCommentsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[15]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoCommentsRequest.ProtoReflect.Descriptor instead.
func (*ListMemoCommentsRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{15}
}

func (x *ListMemoCommentsRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *ListMemoCommentsRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListMemoCommentsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

func (x *ListMemoCommentsRequest) GetOrderBy() string {
	if x != nil {
		return x.OrderBy
	}
	return ""
}

// Response message for MemoService.ListMemoComments.
type ListMemoCommentsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The comment memos.
	Comments []*Memo `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
	// A token to retrieve the next page. Empty when there are no more pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoCommentsResponse) Reset() {
	*x = ListMemoCommentsResponse{}
	mi := &file_api_memo_service_proto_msgTypes[16]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoCommentsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoCommentsResponse) ProtoMessage() {}

func (x *ListMemoCommentsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[16]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoCommentsResponse.ProtoReflect.Descriptor instead.
func (*ListMemoCommentsResponse) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{16}
}

func (x *ListMemoCommentsResponse) GetComments() []*Memo {
	if x != nil {
		return x.Comments
	}
	return nil
}

func (x *ListMemoCommentsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

// Request message for MemoService.CreateMemoComment.
type CreateMemoCommentRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo to comment on.
	// Format: memos/{memo}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The comment memo to create.
	Comment *Memo `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// Optional. The ID to use for the comment memo, in the same format as
	// CreateMemoRequest.memo_id. If empty, a unique ID is generated.
	CommentId     string `protobuf:"bytes,3,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateMemoCommentRequest) Reset() {
	*x = CreateMemoCommentRequest{}
	mi := &file_api_memo_service_proto_msgTypes[17]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateMemoCommentRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateMemoCommentRequest) ProtoMessage() {}

func (x *CreateMemoCommentRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[17]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateMemoCommentRequest.ProtoReflect.Descriptor instead.
func (*CreateMemoCommentRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{17}
}

func (x *CreateMemoCommentRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *CreateMemoCommentRequest) GetComment() *Memo {
	if x != nil {
		return x.Comment
	}
	return nil
}

func (x *CreateMemoCommentRequest) GetCommentId() string {
	if x != nil {
		return x.CommentId
	}
	return ""
}

// Reaction is a reaction a user leaves on a memo.
type Reaction struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the reaction.
	// Format: memos/{memo}/reactions/{reaction}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The resource name of the creator.
	// Format: users/{user}
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// Required. The reaction, such as an emoji ("👍", "❤️", "😄").
	ReactionType string `protobuf:"bytes,3,opt,name=reaction_type,json=reactionType,proto3" json:"reaction_type,omitempty"`
	// Output only. The creation time.
	CreateTime    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Reaction) Reset() {
	*x = Reaction{}
	mi := &file_api_memo_service_proto_msgTypes[18]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Reaction) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Reaction) ProtoMessage() {}

func (x *Reaction) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[18]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Reaction.ProtoReflect.Descriptor instead.
func (*Reaction) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{18}
}

func (x *Reaction) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Reaction) GetCreator() string {
	if x != nil {
		return x.Creator
	}
	return ""
}

func (x *Reaction) GetReactionType() string {
	if x != nil {
		return x.ReactionType
	}
	return ""
}

func (x *Reaction) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

// Request message for MemoService.ListMemoReactions.
type ListMemoReactionsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of reactions to return. The service may
	// return fewer. Currently ignored; all reactions are returned.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token from a previous call. Provide it to retrieve the
	// next page. Currently ignored.
	PageToken     string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoReactionsRequest) Reset() {
	*x = ListMemoReactionsRequest{}
	mi := &file_api_memo_service_proto_msgTypes[19]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoReactionsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoReactionsRequest) ProtoMessage() {}

func (x *ListMemoReactionsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[19]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoReactionsRequest.ProtoReflect.Descriptor instead.
func (*ListMemoReactionsRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{19}
}

func (x *ListMemoReactionsRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *ListMemoReactionsRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListMemoReactionsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

// Response message for MemoService.ListMemoReactions.
type ListMemoReactionsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The reactions.
	Reactions []*Reaction `protobuf:"bytes,1,rep,name=reactions,proto3" json:"reactions,omitempty"`
	// A token to retrieve the next page. Empty when there are no more pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoReactionsResponse) Reset() {
	*x = ListMemoReactionsResponse{}
	mi := &file_api_memo_service_proto_msgTypes[20]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoReactionsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoReactionsResponse) ProtoMessage() {}

func (x *ListMemoReactionsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[20]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoReactionsResponse.ProtoReflect.Descriptor instead.
func (*ListMemoReactionsResponse) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{20}
}

func (x *ListMemoReactionsResponse) GetReactions() []*Reaction {
	if x != nil {
		return x.Reactions
	}
	return nil
}

func (x *ListMemoReactionsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

// Request message for MemoService.DeleteMemoReaction.
type DeleteMemoReactionRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the reaction to delete.
	// Format: memos/{memo}/reactions/{reaction}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteMemoReactionRequest) Reset() {
	*x = DeleteMemoReactionRequest{}
	mi := &file_api_memo_service_proto_msgTypes[21]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteMemoReactionRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteMemoReactionRequest) ProtoMessage() {}

func (x *DeleteMemoReactionRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[21]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteMemoReactionRequest.ProtoReflect.Descriptor instead.
func (*DeleteMemoReactionRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{21}
}

func (x *DeleteMemoReactionRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

// Request message for MemoService.UpsertMemoReaction.
type UpsertMemoReactionRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The reaction to upsert. Only reaction_type is used.
	Reaction      *Reaction `protobuf:"bytes,2,opt,name=reaction,proto3" json:"reaction,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpsertMemoReactionRequest) Reset() {
	*x = UpsertMemoReactionRequest{}
	mi := &file_api_memo_service_proto_msgTypes[22]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpsertMemoReactionRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpsertMemoReactionRequest) ProtoMessage() {}

func (x *UpsertMemoReactionRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[22]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UpsertMemoReactionRequest.ProtoReflect.Descriptor instead.
func (*UpsertMemoReactionRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{22}
}

func (x *UpsertMemoReactionRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *UpsertMemoReactionRequest) GetReaction() *Reaction {
	if x != nil {
		return x.Reaction
	}
	return nil
}

// MemoShare is an access grant that permits read-only access to a memo via an
// opaque bearer token.
type MemoShare struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the share. The {share} segment is the
	// opaque token used in the share URL.
	// Format: memos/{memo}/shares/{share}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The creation time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Optional. The time after which the share link stops working. Must be in
	// the future when set. If unset, the link never expires.
	ExpireTime    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3,oneof" json:"expire_time,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MemoShare) Reset() {
	*x = MemoShare{}
	mi := &file_api_memo_service_proto_msgTypes[23]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MemoShare) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MemoShare) ProtoMessage() {}

func (x *MemoShare) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[23]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MemoShare.ProtoReflect.Descriptor instead.
func (*MemoShare) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{23}
}

func (x *MemoShare) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *MemoShare) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *MemoShare) GetExpireTime() *timestamppb.Timestamp {
	if x != nil {
		return x.ExpireTime
	}
	return nil
}

// Request message for MemoService.ListMemoShares.
type ListMemoSharesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Parent        string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoSharesRequest) Reset() {
	*x = ListMemoSharesRequest{}
	mi := &file_api_memo_service_proto_msgTypes[24]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoSharesRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoSharesRequest) ProtoMessage() {}

func (x *ListMemoSharesRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[24]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoSharesRequest.ProtoReflect.Descriptor instead.
func (*ListMemoSharesRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{24}
}

func (x *ListMemoSharesRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

// Response message for MemoService.ListMemoShares.
type ListMemoSharesResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The share links.
	MemoShares    []*MemoShare `protobuf:"bytes,1,rep,name=memo_shares,json=memoShares,proto3" json:"memo_shares,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMemoSharesResponse) Reset() {
	*x = ListMemoSharesResponse{}
	mi := &file_api_memo_service_proto_msgTypes[25]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListMemoSharesResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListMemoSharesResponse) ProtoMessage() {}

func (x *ListMemoSharesResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[25]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListMemoSharesResponse.ProtoReflect.Descriptor instead.
func (*ListMemoSharesResponse) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{25}
}

func (x *ListMemoSharesResponse) GetMemoShares() []*MemoShare {
	if x != nil {
		return x.MemoShares
	}
	return nil
}

// Request message for MemoService.CreateMemoShare.
type CreateMemoShareRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo to share.
	// Format: memos/{memo}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The share to create. Only expire_time is used.
	MemoShare     *MemoShare `protobuf:"bytes,2,opt,name=memo_share,json=memoShare,proto3" json:"memo_share,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateMemoShareRequest) Reset() {
	*x = CreateMemoShareRequest{}
	mi := &file_api_memo_service_proto_msgTypes[26]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateMemoShareRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateMemoShareRequest) ProtoMessage() {}

func (x *CreateMemoShareRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[26]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateMemoShareRequest.ProtoReflect.Descriptor instead.
func (*CreateMemoShareRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{26}
}

func (x *CreateMemoShareRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *CreateMemoShareRequest) GetMemoShare() *MemoShare {
	if x != nil {
		return x.MemoShare
	}
	return nil
}

// Request message for MemoService.DeleteMemoShare.
type DeleteMemoShareRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the share to delete.
	// Format: memos/{memo}/shares/{share}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteMemoShareRequest) Reset() {
	*x = DeleteMemoShareRequest{}
	mi := &file_api_memo_service_proto_msgTypes[27]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteMemoShareRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteMemoShareRequest) ProtoMessage() {}

func (x *DeleteMemoShareRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[27]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteMemoShareRequest.ProtoReflect.Descriptor instead.
func (*DeleteMemoShareRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{27}
}

func (x *DeleteMemoShareRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

// Request message for MemoService.GetSharedMemo.
type GetSharedMemoRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The opaque bearer token from the share URL.
	ShareToken    string `protobuf:"bytes,1,opt,name=share_token,json=shareToken,proto3" json:"share_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetSharedMemoRequest) Reset() {
	*x = GetSharedMemoRequest{}
	mi := &file_api_memo_service_proto_msgTypes[28]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetSharedMemoRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetSharedMemoRequest) ProtoMessage() {}

func (x *GetSharedMemoRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[28]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetSharedMemoRequest.ProtoReflect.Descriptor instead.
func (*GetSharedMemoRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{28}
}

func (x *GetSharedMemoRequest) GetShareToken() string {
	if x != nil {
		return x.ShareToken
	}
	return ""
}

// LinkMetadata is the preview metadata of a web link.
type LinkMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The link URL as given in the request.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// The page title.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// The page description.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// The preview image URL.
	Image         string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LinkMetadata) Reset() {
	*x = LinkMetadata{}
	mi := &file_api_memo_service_proto_msgTypes[29]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LinkMetadata) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LinkMetadata) ProtoMessage() {}

func (x *LinkMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[29]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LinkMetadata.ProtoReflect.Descriptor instead.
func (*LinkMetadata) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{29}
}

func (x *LinkMetadata) GetUrl() string {
	if x != nil {
		return x.Url
	}
	return ""
}

func (x *LinkMetadata) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *LinkMetadata) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *LinkMetadata) GetImage() string {
	if x != nil {
		return x.Image
	}
	return ""
}

// Request message for MemoService.GetLinkMetadata.
type GetLinkMetadataRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The link URL.
	Url           string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetLinkMetadataRequest) Reset() {
	*x = GetLinkMetadataRequest{}
	mi := &file_api_memo_service_proto_msgTypes[30]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetLinkMetadataRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetLinkMetadataRequest) ProtoMessage() {}

func (x *GetLinkMetadataRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[30]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetLinkMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetLinkMetadataRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{30}
}

func (x *GetLinkMetadataRequest) GetUrl() string {
	if x != nil {
		return x.Url
	}
	return ""
}

// Request message for MemoService.BatchGetLinkMetadata.
type BatchGetLinkMetadataRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The link URLs. At most 10.
	Urls          []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BatchGetLinkMetadataRequest) Reset() {
	*x = BatchGetLinkMetadataRequest{}
	mi := &file_api_memo_service_proto_msgTypes[31]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *BatchGetLinkMetadataRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BatchGetLinkMetadataRequest) ProtoMessage() {}

func (x *BatchGetLinkMetadataRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[31]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use BatchGetLinkMetadataRequest.ProtoReflect.Descriptor instead.
func (*BatchGetLinkMetadataRequest) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{31}
}

func (x *BatchGetLinkMetadataRequest) GetUrls() []string {
	if x != nil {
		return x.Urls
	}
	return nil
}

// Response message for MemoService.BatchGetLinkMetadata.
type BatchGetLinkMetadataResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The link metadata, in the same order as the requested URLs.
	LinkMetadata  []*LinkMetadata `protobuf:"bytes,1,rep,name=link_metadata,json=linkMetadata,proto3" json:"link_metadata,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BatchGetLinkMetadataResponse) Reset() {
	*x = BatchGetLinkMetadataResponse{}
	mi := &file_api_memo_service_proto_msgTypes[32]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *BatchGetLinkMetadataResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BatchGetLinkMetadataResponse) ProtoMessage() {}

func (x *BatchGetLinkMetadataResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[32]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use BatchGetLinkMetadataResponse.ProtoReflect.Descriptor instead.
func (*BatchGetLinkMetadataResponse) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{32}
}

func (x *BatchGetLinkMetadataResponse) GetLinkMetadata() []*LinkMetadata {
	if x != nil {
		return x.LinkMetadata
	}
	return nil
}

// Property holds properties computed from the memo content.
type Memo_Property struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The text of the H1 heading when it is the first block of the content.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Whether the content contains a link.
	HasLink bool `protobuf:"varint,2,opt,name=has_link,json=hasLink,proto3" json:"has_link,omitempty"`
	// Whether the content contains inline code or a code block.
	HasCode bool `protobuf:"varint,3,opt,name=has_code,json=hasCode,proto3" json:"has_code,omitempty"`
	// Whether the content contains a task list.
	HasTaskList bool `protobuf:"varint,4,opt,name=has_task_list,json=hasTaskList,proto3" json:"has_task_list,omitempty"`
	// Whether the content contains an unchecked task.
	HasIncompleteTasks bool `protobuf:"varint,5,opt,name=has_incomplete_tasks,json=hasIncompleteTasks,proto3" json:"has_incomplete_tasks,omitempty"`
	// Whether the content contains a Markdown image.
	HasInlineImage bool `protobuf:"varint,6,opt,name=has_inline_image,json=hasInlineImage,proto3" json:"has_inline_image,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *Memo_Property) Reset() {
	*x = Memo_Property{}
	mi := &file_api_memo_service_proto_msgTypes[33]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Memo_Property) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Memo_Property) ProtoMessage() {}

func (x *Memo_Property) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[33]
	if 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_Property.ProtoReflect.Descriptor instead.
func (*Memo_Property) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{0, 0}
}

func (x *Memo_Property) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *Memo_Property) GetHasLink() bool {
	if x != nil {
		return x.HasLink
	}
	return false
}

func (x *Memo_Property) GetHasCode() bool {
	if x != nil {
		return x.HasCode
	}
	return false
}

func (x *Memo_Property) GetHasTaskList() bool {
	if x != nil {
		return x.HasTaskList
	}
	return false
}

func (x *Memo_Property) GetHasIncompleteTasks() bool {
	if x != nil {
		return x.HasIncompleteTasks
	}
	return false
}

func (x *Memo_Property) GetHasInlineImage() bool {
	if x != nil {
		return x.HasInlineImage
	}
	return false
}

// MemoRef identifies a memo in a relation.
type MemoRelation_MemoRef struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo.
	// Format: memos/{memo}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. A plain-text snippet of the memo content. Empty in
	// ListMemos and ListMemoComments responses.
	Snippet       string `protobuf:"bytes,2,opt,name=snippet,proto3" json:"snippet,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MemoRelation_MemoRef) Reset() {
	*x = MemoRelation_MemoRef{}
	mi := &file_api_memo_service_proto_msgTypes[34]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MemoRelation_MemoRef) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MemoRelation_MemoRef) ProtoMessage() {}

func (x *MemoRelation_MemoRef) ProtoReflect() protoreflect.Message {
	mi := &file_api_memo_service_proto_msgTypes[34]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MemoRelation_MemoRef.ProtoReflect.Descriptor instead.
func (*MemoRelation_MemoRef) Descriptor() ([]byte, []int) {
	return file_api_memo_service_proto_rawDescGZIP(), []int{11, 0}
}

func (x *MemoRelation_MemoRef) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *MemoRelation_MemoRef) GetSnippet() string {
	if x != nil {
		return x.Snippet
	}
	return ""
}

var File_api_memo_service_proto protoreflect.FileDescriptor

const file_api_memo_service_proto_rawDesc = "" +
	"\n" +
	"\x16api/memo_service.proto\x12\tmemos.api\x1a\x1capi/attachment_service.proto\x1a\x10api/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xee\b\n" +
	"\x04Memo\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x120\n" +
	"\acreator\x18\x02 \x01(\tB\x16\xe0A\x03\xfaA\x10\n" +
	"\x0ememos.api/UserR\acreator\x122\n" +
	"\x05space\x18\x03 \x01(\tB\x17\xe0A\x01\xfaA\x11\n" +
	"\x0fmemos.api/SpaceH\x00R\x05space\x88\x01\x01\x12\x1d\n" +
	"\acontent\x18\x04 \x01(\tB\x03\xe0A\x02R\acontent\x129\n" +
	"\blocation\x18\x05 \x01(\v2\x13.memos.api.LocationB\x03\xe0A\x01H\x01R\blocation\x88\x01\x01\x12:\n" +
	"\n" +
	"visibility\x18\x06 \x01(\x0e2\x15.memos.api.VisibilityB\x03\xe0A\x02R\n" +
	"visibility\x12+\n" +
	"\x05state\x18\a \x01(\x0e2\x10.memos.api.StateB\x03\xe0A\x02R\x05state\x12\x1b\n" +
	"\x06pinned\x18\b \x01(\bB\x03\xe0A\x01R\x06pinned\x12<\n" +
	"\vattachments\x18\t \x03(\v2\x15.memos.api.AttachmentB\x03\xe0A\x01R\vattachments\x12:\n" +
	"\trelations\x18\n" +
	" \x03(\v2\x17.memos.api.MemoRelationB\x03\xe0A\x01R\trelations\x126\n" +
	"\treactions\x18\v \x03(\v2\x13.memos.api.ReactionB\x03\xe0A\x03R\treactions\x123\n" +
	"\x06parent\x18\f \x01(\tB\x16\xe0A\x03\xfaA\x10\n" +
	"\x0ememos.api/MemoH\x02R\x06parent\x88\x01\x01\x12\x17\n" +
	"\x04tags\x18\r \x03(\tB\x03\xe0A\x03R\x04tags\x129\n" +
	"\bproperty\x18\x0e \x01(\v2\x18.memos.api.Memo.PropertyB\x03\xe0A\x03R\bproperty\x12\x1d\n" +
	"\asnippet\x18\x0f \x01(\tB\x03\xe0A\x03R\asnippet\x12@\n" +
	"\vcreate_time\x18\x10 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x01R\n" +
	"createTime\x12@\n" +
	"\vupdate_time\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x01R\n" +
	"updateTime\x1a\xd6\x01\n" +
	"\bProperty\x12\x14\n" +
	"\x05title\x18\x01 \x01(\tR\x05title\x12\x19\n" +
	"\bhas_link\x18\x02 \x01(\bR\ahasLink\x12\x19\n" +
	"\bhas_code\x18\x03 \x01(\bR\ahasCode\x12\"\n" +
	"\rhas_task_list\x18\x04 \x01(\bR\vhasTaskList\x120\n" +
	"\x14has_incomplete_tasks\x18\x05 \x01(\bR\x12hasIncompleteTasks\x12(\n" +
	"\x10has_inline_image\x18\x06 \x01(\bR\x0ehasInlineImage:.\xeaA+\n" +
	"\x0ememos.api/Memo\x12\fmemos/{memo}*\x05memos2\x04memoB\b\n" +
	"\x06_spaceB\v\n" +
	"\t_locationB\t\n" +
	"\a_parent\"\xea\x01\n" +
	"\x10ListMemosRequest\x12 \n" +
	"\tpage_size\x18\x01 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
	"\n" +
	"page_token\x18\x02 \x01(\tB\x03\xe0A\x01R\tpageToken\x12\x1b\n" +
	"\x06filter\x18\x03 \x01(\tB\x03\xe0A\x01R\x06filter\x12\x1e\n" +
	"\border_by\x18\x04 \x01(\tB\x03\xe0A\x01R\aorderBy\x12&\n" +
	"\fshow_deleted\x18\x05 \x01(\bB\x03\xe0A\x01R\vshowDeleted\x12+\n" +
	"\x05state\x18\x06 \x01(\x0e2\x10.memos.api.StateB\x03\xe0A\x01R\x05state\"b\n" +
	"\x11ListMemosResponse\x12%\n" +
	"\x05memos\x18\x01 \x03(\v2\x0f.memos.api.MemoR\x05memos\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"<\n" +
	"\x0eGetMemoRequest\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x04name\"[\n" +
	"\x11CreateMemoRequest\x12(\n" +
	"\x04memo\x18\x01 \x01(\v2\x0f.memos.api.MemoB\x03\xe0A\x02R\x04memo\x12\x1c\n" +
	"\amemo_id\x18\x02 \x01(\tB\x03\xe0A\x01R\x06memoId\"\x7f\n" +
	"\x11UpdateMemoRequest\x12(\n" +
	"\x04memo\x18\x01 \x01(\v2\x0f.memos.api.MemoB\x03\xe0A\x02R\x04memo\x12@\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
	"updateMask\"Z\n" +
	"\x11DeleteMemoRequest\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x04name\x12\x19\n" +
	"\x05force\x18\x02 \x01(\bB\x03\xe0A\x01R\x05force\"u\n" +
	"\bLocation\x12%\n" +
	"\vplaceholder\x18\x01 \x01(\tB\x03\xe0A\x01R\vplaceholder\x12\x1f\n" +
	"\blatitude\x18\x02 \x01(\x01B\x03\xe0A\x01R\blatitude\x12!\n" +
	"\tlongitude\x18\x03 \x01(\x01B\x03\xe0A\x01R\tlongitude\"\x92\x01\n" +
	"\x1aListMemoAttachmentsRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x06parent\x12 \n" +
	"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\"~\n" +
	"\x1bListMemoAttachmentsResponse\x127\n" +
	"\vattachments\x18\x01 \x03(\v2\x15.memos.api.AttachmentR\vattachments\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x85\x01\n" +
	"\x19SetMemoAttachmentsRequest\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x04name\x12<\n" +
	"\vattachments\x18\x02 \x03(\v2\x15.memos.api.AttachmentB\x03\xe0A\x02R\vattachments\"\xd8\x02\n" +
	"\fMemoRelation\x128\n" +
	"\x04memo\x18\x01 \x01(\v2\x1f.memos.api.MemoRelation.MemoRefB\x03\xe0A\x02R\x04memo\x12G\n" +
	"\frelated_memo\x18\x02 \x01(\v2\x1f.memos.api.MemoRelation.MemoRefB\x03\xe0A\x02R\vrelatedMemo\x125\n" +
	"\x04type\x18\x03 \x01(\x0e2\x1c.memos.api.MemoRelation.TypeB\x03\xe0A\x02R\x04type\x1aT\n" +
	"\aMemoRef\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x04name\x12\x1d\n" +
	"\asnippet\x18\x02 \x01(\tB\x03\xe0A\x03R\asnippet\"8\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n" +
	"\tREFERENCE\x10\x01\x12\v\n" +
	"\aCOMMENT\x10\x02\"\x90\x01\n" +
	"\x18ListMemoRelationsRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x06parent\x12 \n" +
	"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\"z\n" +
	"\x19ListMemoRelationsResponse\x125\n" +
	"\trelations\x18\x01 \x03(\v2\x17.memos.api.MemoRelationR\trelations\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x81\x01\n" +
	"\x17SetMemoRelationsRequest\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x04name\x12:\n" +
	"\trelations\x18\x02 \x03(\v2\x17.memos.api.MemoRelationB\x03\xe0A\x02R\trelations\"\xaf\x01\n" +
	"\x17ListMemoCommentsRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x06parent\x12 \n" +
	"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\x12\x1e\n" +
	"\border_by\x18\x04 \x01(\tB\x03\xe0A\x01R\aorderBy\"o\n" +
	"\x18ListMemoCommentsResponse\x12+\n" +
	"\bcomments\x18\x01 \x03(\v2\x0f.memos.api.MemoR\bcomments\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x9e\x01\n" +
	"\x18CreateMemoCommentRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x06parent\x12.\n" +
	"\acomment\x18\x02 \x01(\v2\x0f.memos.api.MemoB\x03\xe0A\x02R\acomment\x12\"\n" +
	"\n" +
	"comment_id\x18\x03 \x01(\tB\x03\xe0A\x01R\tcommentId\"\x95\x02\n" +
	"\bReaction\x12\x1a\n" +
	"\x04name\x18\x01 \x01(\tB\x06\xe0A\x03\xe0A\bR\x04name\x120\n" +
	"\acreator\x18\x02 \x01(\tB\x16\xe0A\x03\xfaA\x10\n" +
	"\x0ememos.api/UserR\acreator\x12(\n" +
	"\rreaction_type\x18\x03 \x01(\tB\x03\xe0A\x02R\freactionType\x12@\n" +
	"\vcreate_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime:O\xeaAL\n" +
	"\x12memos.api/Reaction\x12!memos/{memo}/reactions/{reaction}*\treactions2\breaction\"\x90\x01\n" +
	"\x18ListMemoReactionsRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x06parent\x12 \n" +
	"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\"v\n" +
	"\x19ListMemoReactionsResponse\x121\n" +
	"\treactions\x18\x01 \x03(\v2\x13.memos.api.ReactionR\treactions\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"K\n" +
	"\x19DeleteMemoReactionRequest\x12.\n" +
	"\x04name\x18\x01 \x01(\tB\x1a\xe0A\x02\xfaA\x14\n" +
	"\x12memos.api/ReactionR\x04name\"\x81\x01\n" +
	"\x19UpsertMemoReactionRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x06parent\x124\n" +
	"\breaction\x18\x02 \x01(\v2\x13.memos.api.ReactionB\x03\xe0A\x02R\breaction\"\x8b\x02\n" +
	"\tMemoShare\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12@\n" +
	"\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12E\n" +
	"\vexpire_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x01H\x00R\n" +
	"expireTime\x88\x01\x01:L\xeaAI\n" +
	"\x13memos.api/MemoShare\x12\x1bmemos/{memo}/shares/{share}*\n" +
	"memoShares2\tmemoShareB\x0e\n" +
	"\f_expire_time\"G\n" +
	"\x15ListMemoSharesRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x06parent\"O\n" +
	"\x16ListMemoSharesResponse\x125\n" +
	"\vmemo_shares\x18\x01 \x03(\v2\x14.memos.api.MemoShareR\n" +
	"memoShares\"\x82\x01\n" +
	"\x16CreateMemoShareRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/MemoR\x06parent\x128\n" +
	"\n" +
	"memo_share\x18\x02 \x01(\v2\x14.memos.api.MemoShareB\x03\xe0A\x02R\tmemoShare\"I\n" +
	"\x16DeleteMemoShareRequest\x12/\n" +
	"\x04name\x18\x01 \x01(\tB\x1b\xe0A\x02\xfaA\x15\n" +
	"\x13memos.api/MemoShareR\x04name\"<\n" +
	"\x14GetSharedMemoRequest\x12$\n" +
	"\vshare_token\x18\x01 \x01(\tB\x03\xe0A\x02R\n" +
	"shareToken\"n\n" +
	"\fLinkMetadata\x12\x10\n" +
	"\x03url\x18\x01 \x01(\tR\x03url\x12\x14\n" +
	"\x05title\x18\x02 \x01(\tR\x05title\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x14\n" +
	"\x05image\x18\x04 \x01(\tR\x05image\"/\n" +
	"\x16GetLinkMetadataRequest\x12\x15\n" +
	"\x03url\x18\x01 \x01(\tB\x03\xe0A\x02R\x03url\"6\n" +
	"\x1bBatchGetLinkMetadataRequest\x12\x17\n" +
	"\x04urls\x18\x01 \x03(\tB\x03\xe0A\x02R\x04urls\"\\\n" +
	"\x1cBatchGetLinkMetadataResponse\x12<\n" +
	"\rlink_metadata\x18\x01 \x03(\v2\x17.memos.api.LinkMetadataR\flinkMetadata*[\n" +
	"\n" +
	"Visibility\x12\x1a\n" +
	"\x16VISIBILITY_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPRIVATE\x10\x01\x12\r\n" +
	"\tPROTECTED\x10\x02\x12\n" +
	"\n" +
	"\x06PUBLIC\x10\x03\x12\t\n" +
	"\x05SPACE\x10\x042\x83\x14\n" +
	"\vMemoService\x12]\n" +
	"\tListMemos\x12\x1b.memos.api.ListMemosRequest\x1a\x1c.memos.api.ListMemosResponse\"\x15\xdaA\x00\x82\xd3\xe4\x93\x02\f\x12\n" +
	"/api/memos\x12Y\n" +
	"\aGetMemo\x12\x19.memos.api.GetMemoRequest\x1a\x0f.memos.api.Memo\"\"\xdaA\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/api/{name=memos/*}\x12\\\n" +
	"\n" +
	"CreateMemo\x12\x1c.memos.api.CreateMemoRequest\x1a\x0f.memos.api.Memo\"\x1f\xdaA\x04memo\x82\xd3\xe4\x93\x02\x12:\x04memo\"\n" +
	"/api/memos\x12v\n" +
	"\n" +
	"UpdateMemo\x12\x1c.memos.api.UpdateMemoRequest\x1a\x0f.memos.api.Memo\"9\xdaA\x10memo,update_mask\x82\xd3\xe4\x93\x02 :\x04memo2\x18/api/{memo.name=memos/*}\x12f\n" +
	"\n" +
	"DeleteMemo\x12\x1c.memos.api.DeleteMemoRequest\x1a\x16.google.protobuf.Empty\"\"\xdaA\x04name\x82\xd3\xe4\x93\x02\x15*\x13/api/{name=memos/*}\x12\x98\x01\n" +
	"\x13ListMemoAttachments\x12%.memos.api.ListMemoAttachmentsRequest\x1a&.memos.api.ListMemoAttachmentsResponse\"2\xdaA\x06parent\x82\xd3\xe4\x93\x02#\x12!/api/{parent=memos/*}/attachments\x12\x85\x01\n" +
	"\x12SetMemoAttachments\x12$.memos.api.SetMemoAttachmentsRequest\x1a\x16.google.protobuf.Empty\"1\xdaA\x04name\x82\xd3\xe4\x93\x02$:\x01*2\x1f/api/{name=memos/*}/attachments\x12\x90\x01\n" +
	"\x11ListMemoRelations\x12#.memos.api.ListMemoRelationsRequest\x1a$.memos.api.ListMemoRelationsResponse\"0\xdaA\x06parent\x82\xd3\xe4\x93\x02!\x12\x1f/api/{parent=memos/*}/relations\x12\x7f\n" +
	"\x10SetMemoRelations\x12\".memos.api.SetMemoRelationsRequest\x1a\x16.google.protobuf.Empty\"/\xdaA\x04name\x82\xd3\xe4\x93\x02\":\x01*2\x1d/api/{name=memos/*}/relations\x12\x8c\x01\n" +
	"\x10ListMemoComments\x12\".memos.api.ListMemoCommentsRequest\x1a#.memos.api.ListMemoCommentsResponse\"/\xdaA\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/api/{parent=memos/*}/comments\x12\x8b\x01\n" +
	"\x11CreateMemoComment\x12#.memos.api.CreateMemoCommentRequest\x1a\x0f.memos.api.Memo\"@\xdaA\x0eparent,comment\x82\xd3\xe4\x93\x02):\acomment\"\x1e/api/{parent=memos/*}/comments\x12\x90\x01\n" +
	"\x11ListMemoReactions\x12#.memos.api.ListMemoReactionsRequest\x1a$.memos.api.ListMemoReactionsResponse\"0\xdaA\x06parent\x82\xd3\xe4\x93\x02!\x12\x1f/api/{parent=memos/*}/reactions\x12\x82\x01\n" +
	"\x12DeleteMemoReaction\x12$.memos.api.DeleteMemoReactionRequest\x1a\x16.google.protobuf.Empty\".\xdaA\x04name\x82\xd3\xe4\x93\x02!*\x1f/api/{name=memos/*/reactions/*}\x12\x84\x01\n" +
	"\x12UpsertMemoReaction\x12$.memos.api.UpsertMemoReactionRequest\x1a\x13.memos.api.Reaction\"3\xdaA\x06parent\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/{parent=memos/*}/reactions\x12\x84\x01\n" +
	"\x0eListMemoShares\x12 .memos.api.ListMemoSharesRequest\x1a!.memos.api.ListMemoSharesResponse\"-\xdaA\x06parent\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/{parent=memos/*}/shares\x12\x90\x01\n" +
	"\x0fCreateMemoShare\x12!.memos.api.CreateMemoShareRequest\x1a\x14.memos.api.MemoShare\"D\xdaA\x11parent,memo_share\x82\xd3\xe4\x93\x02*:\n" +
	"memo_share\"\x1c/api/{parent=memos/*}/shares\x12y\n" +
	"\x0fDeleteMemoShare\x12!.memos.api.DeleteMemoShareRequest\x1a\x16.google.protobuf.Empty\"+\xdaA\x04name\x82\xd3\xe4\x93\x02\x1e*\x1c/api/{name=memos/*/shares/*}\x12i\n" +
	"\rGetSharedMemo\x12\x1f.memos.api.GetSharedMemoRequest\x1a\x0f.memos.api.Memo\"&\x82\xd3\xe4\x93\x02 \x12\x1e/api/shares/{share_token}/memo\x12p\n" +
	"\x0fGetLinkMetadata\x12!.memos.api.GetLinkMetadataRequest\x1a\x17.memos.api.LinkMetadata\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/memos/-/linkMetadata\x12\x96\x01\n" +
	"\x14BatchGetLinkMetadata\x12&.memos.api.BatchGetLinkMetadataRequest\x1a'.memos.api.BatchGetLinkMetadataResponse\"-\x82\xd3\xe4\x93\x02':\x01*\"\"/api/memos/-/linkMetadata:batchGetB\x8f\x01\n" +
	"\rcom.memos.apiB\x10MemoServiceProtoP\x01Z'github.com/usememos/memos/proto/gen/api\xa2\x02\x03MAX\xaa\x02\tMemos.Api\xca\x02\tMemos\\Api\xe2\x02\x15Memos\\Api\\GPBMetadata\xea\x02\n" +
	"Memos::Apib\x06proto3"

var (
	file_api_memo_service_proto_rawDescOnce sync.Once
	file_api_memo_service_proto_rawDescData []byte
)

func file_api_memo_service_proto_rawDescGZIP() []byte {
	file_api_memo_service_proto_rawDescOnce.Do(func() {
		file_api_memo_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_memo_service_proto_rawDesc), len(file_api_memo_service_proto_rawDesc)))
	})
	return file_api_memo_service_proto_rawDescData
}

var file_api_memo_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_api_memo_service_proto_msgTypes = make([]protoimpl.MessageInfo, 35)
var file_api_memo_service_proto_goTypes = []any{
	(Visibility)(0),                      // 0: memos.api.Visibility
	(MemoRelation_Type)(0),               // 1: memos.api.MemoRelation.Type
	(*Memo)(nil),                         // 2: memos.api.Memo
	(*ListMemosRequest)(nil),             // 3: memos.api.ListMemosRequest
	(*ListMemosResponse)(nil),            // 4: memos.api.ListMemosResponse
	(*GetMemoRequest)(nil),               // 5: memos.api.GetMemoRequest
	(*CreateMemoRequest)(nil),            // 6: memos.api.CreateMemoRequest
	(*UpdateMemoRequest)(nil),            // 7: memos.api.UpdateMemoRequest
	(*DeleteMemoRequest)(nil),            // 8: memos.api.DeleteMemoRequest
	(*Location)(nil),                     // 9: memos.api.Location
	(*ListMemoAttachmentsRequest)(nil),   // 10: memos.api.ListMemoAttachmentsRequest
	(*ListMemoAttachmentsResponse)(nil),  // 11: memos.api.ListMemoAttachmentsResponse
	(*SetMemoAttachmentsRequest)(nil),    // 12: memos.api.SetMemoAttachmentsRequest
	(*MemoRelation)(nil),                 // 13: memos.api.MemoRelation
	(*ListMemoRelationsRequest)(nil),     // 14: memos.api.ListMemoRelationsRequest
	(*ListMemoRelationsResponse)(nil),    // 15: memos.api.ListMemoRelationsResponse
	(*SetMemoRelationsRequest)(nil),      // 16: memos.api.SetMemoRelationsRequest
	(*ListMemoCommentsRequest)(nil),      // 17: memos.api.ListMemoCommentsRequest
	(*ListMemoCommentsResponse)(nil),     // 18: memos.api.ListMemoCommentsResponse
	(*CreateMemoCommentRequest)(nil),     // 19: memos.api.CreateMemoCommentRequest
	(*Reaction)(nil),                     // 20: memos.api.Reaction
	(*ListMemoReactionsRequest)(nil),     // 21: memos.api.ListMemoReactionsRequest
	(*ListMemoReactionsResponse)(nil),    // 22: memos.api.ListMemoReactionsResponse
	(*DeleteMemoReactionRequest)(nil),    // 23: memos.api.DeleteMemoReactionRequest
	(*UpsertMemoReactionRequest)(nil),    // 24: memos.api.UpsertMemoReactionRequest
	(*MemoShare)(nil),                    // 25: memos.api.MemoShare
	(*ListMemoSharesRequest)(nil),        // 26: memos.api.ListMemoSharesRequest
	(*ListMemoSharesResponse)(nil),       // 27: memos.api.ListMemoSharesResponse
	(*CreateMemoShareRequest)(nil),       // 28: memos.api.CreateMemoShareRequest
	(*DeleteMemoShareRequest)(nil),       // 29: memos.api.DeleteMemoShareRequest
	(*GetSharedMemoRequest)(nil),         // 30: memos.api.GetSharedMemoRequest
	(*LinkMetadata)(nil),                 // 31: memos.api.LinkMetadata
	(*GetLinkMetadataRequest)(nil),       // 32: memos.api.GetLinkMetadataRequest
	(*BatchGetLinkMetadataRequest)(nil),  // 33: memos.api.BatchGetLinkMetadataRequest
	(*BatchGetLinkMetadataResponse)(nil), // 34: memos.api.BatchGetLinkMetadataResponse
	(*Memo_Property)(nil),                // 35: memos.api.Memo.Property
	(*MemoRelation_MemoRef)(nil),         // 36: memos.api.MemoRelation.MemoRef
	(State)(0),                           // 37: memos.api.State
	(*Attachment)(nil),                   // 38: memos.api.Attachment
	(*timestamppb.Timestamp)(nil),        // 39: google.protobuf.Timestamp
	(*fieldmaskpb.FieldMask)(nil),        // 40: google.protobuf.FieldMask
	(*emptypb.Empty)(nil),                // 41: google.protobuf.Empty
}
var file_api_memo_service_proto_depIdxs = []int32{
	9,  // 0: memos.api.Memo.location:type_name -> memos.api.Location
	0,  // 1: memos.api.Memo.visibility:type_name -> memos.api.Visibility
	37, // 2: memos.api.Memo.state:type_name -> memos.api.State
	38, // 3: memos.api.Memo.attachments:type_name -> memos.api.Attachment
	13, // 4: memos.api.Memo.relations:type_name -> memos.api.MemoRelation
	20, // 5: memos.api.Memo.reactions:type_name -> memos.api.Reaction
	35, // 6: memos.api.Memo.property:type_name -> memos.api.Memo.Property
	39, // 7: memos.api.Memo.create_time:type_name -> google.protobuf.Timestamp
	39, // 8: memos.api.Memo.update_time:type_name -> google.protobuf.Timestamp
	37, // 9: memos.api.ListMemosRequest.state:type_name -> memos.api.State
	2,  // 10: memos.api.ListMemosResponse.memos:type_name -> memos.api.Memo
	2,  // 11: memos.api.CreateMemoRequest.memo:type_name -> memos.api.Memo
	2,  // 12: memos.api.UpdateMemoRequest.memo:type_name -> memos.api.Memo
	40, // 13: memos.api.UpdateMemoRequest.update_mask:type_name -> google.protobuf.FieldMask
	38, // 14: memos.api.ListMemoAttachmentsResponse.attachments:type_name -> memos.api.Attachment
	38, // 15: memos.api.SetMemoAttachmentsRequest.attachments:type_name -> memos.api.Attachment
	36, // 16: memos.api.MemoRelation.memo:type_name -> memos.api.MemoRelation.MemoRef
	36, // 17: memos.api.MemoRelation.related_memo:type_name -> memos.api.MemoRelation.MemoRef
	1,  // 18: memos.api.MemoRelation.type:type_name -> memos.api.MemoRelation.Type
	13, // 19: memos.api.ListMemoRelationsResponse.relations:type_name -> memos.api.MemoRelation
	13, // 20: memos.api.SetMemoRelationsRequest.relations:type_name -> memos.api.MemoRelation
	2,  // 21: memos.api.ListMemoCommentsResponse.comments:type_name -> memos.api.Memo
	2,  // 22: memos.api.CreateMemoCommentRequest.comment:type_name -> memos.api.Memo
	39, // 23: memos.api.Reaction.create_time:type_name -> google.protobuf.Timestamp
	20, // 24: memos.api.ListMemoReactionsResponse.reactions:type_name -> memos.api.Reaction
	20, // 25: memos.api.UpsertMemoReactionRequest.reaction:type_name -> memos.api.Reaction
	39, // 26: memos.api.MemoShare.create_time:type_name -> google.protobuf.Timestamp
	39, // 27: memos.api.MemoShare.expire_time:type_name -> google.protobuf.Timestamp
	25, // 28: memos.api.ListMemoSharesResponse.memo_shares:type_name -> memos.api.MemoShare
	25, // 29: memos.api.CreateMemoShareRequest.memo_share:type_name -> memos.api.MemoShare
	31, // 30: memos.api.BatchGetLinkMetadataResponse.link_metadata:type_name -> memos.api.LinkMetadata
	3,  // 31: memos.api.MemoService.ListMemos:input_type -> memos.api.ListMemosRequest
	5,  // 32: memos.api.MemoService.GetMemo:input_type -> memos.api.GetMemoRequest
	6,  // 33: memos.api.MemoService.CreateMemo:input_type -> memos.api.CreateMemoRequest
	7,  // 34: memos.api.MemoService.UpdateMemo:input_type -> memos.api.UpdateMemoRequest
	8,  // 35: memos.api.MemoService.DeleteMemo:input_type -> memos.api.DeleteMemoRequest
	10, // 36: memos.api.MemoService.ListMemoAttachments:input_type -> memos.api.ListMemoAttachmentsRequest
	12, // 37: memos.api.MemoService.SetMemoAttachments:input_type -> memos.api.SetMemoAttachmentsRequest
	14, // 38: memos.api.MemoService.ListMemoRelations:input_type -> memos.api.ListMemoRelationsRequest
	16, // 39: memos.api.MemoService.SetMemoRelations:input_type -> memos.api.SetMemoRelationsRequest
	17, // 40: memos.api.MemoService.ListMemoComments:input_type -> memos.api.ListMemoCommentsRequest
	19, // 41: memos.api.MemoService.CreateMemoComment:input_type -> memos.api.CreateMemoCommentRequest
	21, // 42: memos.api.MemoService.ListMemoReactions:input_type -> memos.api.ListMemoReactionsRequest
	23, // 43: memos.api.MemoService.DeleteMemoReaction:input_type -> memos.api.DeleteMemoReactionRequest
	24, // 44: memos.api.MemoService.UpsertMemoReaction:input_type -> memos.api.UpsertMemoReactionRequest
	26, // 45: memos.api.MemoService.ListMemoShares:input_type -> memos.api.ListMemoSharesRequest
	28, // 46: memos.api.MemoService.CreateMemoShare:input_type -> memos.api.CreateMemoShareRequest
	29, // 47: memos.api.MemoService.DeleteMemoShare:input_type -> memos.api.DeleteMemoShareRequest
	30, // 48: memos.api.MemoService.GetSharedMemo:input_type -> memos.api.GetSharedMemoRequest
	32, // 49: memos.api.MemoService.GetLinkMetadata:input_type -> memos.api.GetLinkMetadataRequest
	33, // 50: memos.api.MemoService.BatchGetLinkMetadata:input_type -> memos.api.BatchGetLinkMetadataRequest
	4,  // 51: memos.api.MemoService.ListMemos:output_type -> memos.api.ListMemosResponse
	2,  // 52: memos.api.MemoService.GetMemo:output_type -> memos.api.Memo
	2,  // 53: memos.api.MemoService.CreateMemo:output_type -> memos.api.Memo
	2,  // 54: memos.api.MemoService.UpdateMemo:output_type -> memos.api.Memo
	41, // 55: memos.api.MemoService.DeleteMemo:output_type -> google.protobuf.Empty
	11, // 56: memos.api.MemoService.ListMemoAttachments:output_type -> memos.api.ListMemoAttachmentsResponse
	41, // 57: memos.api.MemoService.SetMemoAttachments:output_type -> google.protobuf.Empty
	15, // 58: memos.api.MemoService.ListMemoRelations:output_type -> memos.api.ListMemoRelationsResponse
	41, // 59: memos.api.MemoService.SetMemoRelations:output_type -> google.protobuf.Empty
	18, // 60: memos.api.MemoService.ListMemoComments:output_type -> memos.api.ListMemoCommentsResponse
	2,  // 61: memos.api.MemoService.CreateMemoComment:output_type -> memos.api.Memo
	22, // 62: memos.api.MemoService.ListMemoReactions:output_type -> memos.api.ListMemoReactionsResponse
	41, // 63: memos.api.MemoService.DeleteMemoReaction:output_type -> google.protobuf.Empty
	20, // 64: memos.api.MemoService.UpsertMemoReaction:output_type -> memos.api.Reaction
	27, // 65: memos.api.MemoService.ListMemoShares:output_type -> memos.api.ListMemoSharesResponse
	25, // 66: memos.api.MemoService.CreateMemoShare:output_type -> memos.api.MemoShare
	41, // 67: memos.api.MemoService.DeleteMemoShare:output_type -> google.protobuf.Empty
	2,  // 68: memos.api.MemoService.GetSharedMemo:output_type -> memos.api.Memo
	31, // 69: memos.api.MemoService.GetLinkMetadata:output_type -> memos.api.LinkMetadata
	34, // 70: memos.api.MemoService.BatchGetLinkMetadata:output_type -> memos.api.BatchGetLinkMetadataResponse
	51, // [51:71] is the sub-list for method output_type
	31, // [31:51] is the sub-list for method input_type
	31, // [31:31] is the sub-list for extension type_name
	31, // [31:31] is the sub-list for extension extendee
	0,  // [0:31] is the sub-list for field type_name
}

func init() { file_api_memo_service_proto_init() }
func file_api_memo_service_proto_init() {
	if File_api_memo_service_proto != nil {
		return
	}
	file_api_attachment_service_proto_init()
	file_api_common_proto_init()
	file_api_memo_service_proto_msgTypes[0].OneofWrappers = []any{}
	file_api_memo_service_proto_msgTypes[23].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_memo_service_proto_rawDesc), len(file_api_memo_service_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   35,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_api_memo_service_proto_goTypes,
		DependencyIndexes: file_api_memo_service_proto_depIdxs,
		EnumInfos:         file_api_memo_service_proto_enumTypes,
		MessageInfos:      file_api_memo_service_proto_msgTypes,
	}.Build()
	File_api_memo_service_proto = out.File
	file_api_memo_service_proto_goTypes = nil
	file_api_memo_service_proto_depIdxs = nil
}