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.

59.8 KB
Raw Blame
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        (unknown)
// source: api/space_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"
	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)
)

// Role is a member's governance role within a space.
type SpaceMember_Role int32

const (
	SpaceMember_ROLE_UNSPECIFIED SpaceMember_Role = 0
	// Can update and delete the space, manage members and manage invitations.
	SpaceMember_ADMIN SpaceMember_Role = 1
	// A regular member without governance permissions.
	SpaceMember_USER SpaceMember_Role = 2
)

// Enum value maps for SpaceMember_Role.
var (
	SpaceMember_Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "ADMIN",
		2: "USER",
	}
	SpaceMember_Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"ADMIN":            1,
		"USER":             2,
	}
)

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

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

func (SpaceMember_Role) Descriptor() protoreflect.EnumDescriptor {
	return file_api_space_service_proto_enumTypes[0].Descriptor()
}

func (SpaceMember_Role) Type() protoreflect.EnumType {
	return &file_api_space_service_proto_enumTypes[0]
}

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

// Deprecated: Use SpaceMember_Role.Descriptor instead.
func (SpaceMember_Role) EnumDescriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{7, 0}
}

// Space is a collaboration boundary for placed memos.
type Space struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the space.
	// Format: spaces/{space}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The human-readable title.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. A description of the space.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Optional. The display icon. Omit it when updating with the "icon" mask to
	// reset to the default space mark.
	Icon *Space_Icon `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
	// Output only. The authenticated user's membership role in this space.
	// ROLE_UNSPECIFIED when this space is exposed as metadata only.
	CurrentUserRole SpaceMember_Role `protobuf:"varint,5,opt,name=current_user_role,json=currentUserRole,proto3,enum=memos.api.SpaceMember_Role" json:"current_user_role,omitempty"`
	// Output only. The number of accepted members in this space. Pending
	// invitations are excluded. Zero when this space is exposed as metadata only.
	MemberCount   int32 `protobuf:"varint,6,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Space) Reset() {
	*x = Space{}
	mi := &file_api_space_service_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Space) ProtoMessage() {}

func (x *Space) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 Space.ProtoReflect.Descriptor instead.
func (*Space) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{0}
}

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

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

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

func (x *Space) GetIcon() *Space_Icon {
	if x != nil {
		return x.Icon
	}
	return nil
}

func (x *Space) GetCurrentUserRole() SpaceMember_Role {
	if x != nil {
		return x.CurrentUserRole
	}
	return SpaceMember_ROLE_UNSPECIFIED
}

func (x *Space) GetMemberCount() int32 {
	if x != nil {
		return x.MemberCount
	}
	return 0
}

// Request message for SpaceService.ListSpaces.
type ListSpacesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. The maximum number of spaces to return. The service may return fewer.
	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"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListSpacesRequest) Reset() {
	*x = ListSpacesRequest{}
	mi := &file_api_space_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListSpacesRequest) ProtoMessage() {}

func (x *ListSpacesRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 ListSpacesRequest.ProtoReflect.Descriptor instead.
func (*ListSpacesRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{1}
}

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

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

// Response message for SpaceService.ListSpaces.
type ListSpacesResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The spaces of which the caller is a member.
	Spaces []*Space `protobuf:"bytes,1,rep,name=spaces,proto3" json:"spaces,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 *ListSpacesResponse) Reset() {
	*x = ListSpacesResponse{}
	mi := &file_api_space_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListSpacesResponse) ProtoMessage() {}

func (x *ListSpacesResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 ListSpacesResponse.ProtoReflect.Descriptor instead.
func (*ListSpacesResponse) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{2}
}

func (x *ListSpacesResponse) GetSpaces() []*Space {
	if x != nil {
		return x.Spaces
	}
	return nil
}

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

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

func (x *GetSpaceRequest) Reset() {
	*x = GetSpaceRequest{}
	mi := &file_api_space_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetSpaceRequest) ProtoMessage() {}

func (x *GetSpaceRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 GetSpaceRequest.ProtoReflect.Descriptor instead.
func (*GetSpaceRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{3}
}

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

// Request message for SpaceService.CreateSpace.
type CreateSpaceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The space to create.
	Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
	// Optional. The ID to use for the space, which becomes the final segment of
	// its resource name. If empty, a UUID v4 is generated. Must match
	// ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$.
	SpaceId       string `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateSpaceRequest) ProtoMessage() {}

func (x *CreateSpaceRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 CreateSpaceRequest.ProtoReflect.Descriptor instead.
func (*CreateSpaceRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{4}
}

func (x *CreateSpaceRequest) GetSpace() *Space {
	if x != nil {
		return x.Space
	}
	return nil
}

func (x *CreateSpaceRequest) GetSpaceId() string {
	if x != nil {
		return x.SpaceId
	}
	return ""
}

// Request message for SpaceService.UpdateSpace.
type UpdateSpaceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The space with updated values. Its name identifies the space to
	// update.
	Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
	// Required. The fields to update. Supported paths: title, description, icon.
	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 *UpdateSpaceRequest) Reset() {
	*x = UpdateSpaceRequest{}
	mi := &file_api_space_service_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateSpaceRequest) ProtoMessage() {}

func (x *UpdateSpaceRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 UpdateSpaceRequest.ProtoReflect.Descriptor instead.
func (*UpdateSpaceRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{5}
}

func (x *UpdateSpaceRequest) GetSpace() *Space {
	if x != nil {
		return x.Space
	}
	return nil
}

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

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

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

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

func (*DeleteSpaceRequest) ProtoMessage() {}

func (x *DeleteSpaceRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 DeleteSpaceRequest.ProtoReflect.Descriptor instead.
func (*DeleteSpaceRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{6}
}

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

// SpaceMember is a user's membership and governance role in a space.
type SpaceMember struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the membership. The member segment is
	// the member's username.
	// Format: spaces/{space}/members/{member}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The member user.
	// Format: users/{user}
	User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// Required. The member's role within this space.
	Role          SpaceMember_Role `protobuf:"varint,3,opt,name=role,proto3,enum=memos.api.SpaceMember_Role" json:"role,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SpaceMember) ProtoMessage() {}

func (x *SpaceMember) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 SpaceMember.ProtoReflect.Descriptor instead.
func (*SpaceMember) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{7}
}

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

func (x *SpaceMember) GetUser() string {
	if x != nil {
		return x.User
	}
	return ""
}

func (x *SpaceMember) GetRole() SpaceMember_Role {
	if x != nil {
		return x.Role
	}
	return SpaceMember_ROLE_UNSPECIFIED
}

// Request message for SpaceService.ListSpaceMembers.
type ListSpaceMembersRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The parent space.
	// Format: spaces/{space}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of members to return. The service may return fewer.
	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 *ListSpaceMembersRequest) Reset() {
	*x = ListSpaceMembersRequest{}
	mi := &file_api_space_service_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListSpaceMembersRequest) ProtoMessage() {}

func (x *ListSpaceMembersRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 ListSpaceMembersRequest.ProtoReflect.Descriptor instead.
func (*ListSpaceMembersRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{8}
}

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

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

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

// Response message for SpaceService.ListSpaceMembers.
type ListSpaceMembersResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The members of the space.
	SpaceMembers []*SpaceMember `protobuf:"bytes,1,rep,name=space_members,json=spaceMembers,proto3" json:"space_members,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 *ListSpaceMembersResponse) Reset() {
	*x = ListSpaceMembersResponse{}
	mi := &file_api_space_service_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListSpaceMembersResponse) ProtoMessage() {}

func (x *ListSpaceMembersResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 ListSpaceMembersResponse.ProtoReflect.Descriptor instead.
func (*ListSpaceMembersResponse) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{9}
}

func (x *ListSpaceMembersResponse) GetSpaceMembers() []*SpaceMember {
	if x != nil {
		return x.SpaceMembers
	}
	return nil
}

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

// Request message for SpaceService.GetSpaceMember.
type GetSpaceMemberRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the membership.
	// Format: spaces/{space}/members/{member}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetSpaceMemberRequest) ProtoMessage() {}

func (x *GetSpaceMemberRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 GetSpaceMemberRequest.ProtoReflect.Descriptor instead.
func (*GetSpaceMemberRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{10}
}

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

// Request message for SpaceService.UpdateSpaceMember.
type UpdateSpaceMemberRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The membership with the new role. Its name identifies the
	// membership to update.
	SpaceMember *SpaceMember `protobuf:"bytes,1,opt,name=space_member,json=spaceMember,proto3" json:"space_member,omitempty"`
	// Required. The fields to update. Must include role. The user path is also
	// accepted, but the user must match the existing member and is never changed.
	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 *UpdateSpaceMemberRequest) Reset() {
	*x = UpdateSpaceMemberRequest{}
	mi := &file_api_space_service_proto_msgTypes[11]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateSpaceMemberRequest) ProtoMessage() {}

func (x *UpdateSpaceMemberRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 UpdateSpaceMemberRequest.ProtoReflect.Descriptor instead.
func (*UpdateSpaceMemberRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{11}
}

func (x *UpdateSpaceMemberRequest) GetSpaceMember() *SpaceMember {
	if x != nil {
		return x.SpaceMember
	}
	return nil
}

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

// Request message for SpaceService.DeleteSpaceMember.
type DeleteSpaceMemberRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the membership.
	// Format: spaces/{space}/members/{member}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteSpaceMemberRequest) ProtoMessage() {}

func (x *DeleteSpaceMemberRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 DeleteSpaceMemberRequest.ProtoReflect.Descriptor instead.
func (*DeleteSpaceMemberRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{12}
}

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

// SpaceInvitation is a pending invitation for an existing user to join a space.
type SpaceInvitation struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the invitation. The invitation segment
	// is the invitee's username.
	// Format: spaces/{space}/invitations/{invitation}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The invited user.
	// Format: users/{user}
	Invitee string `protobuf:"bytes,2,opt,name=invitee,proto3" json:"invitee,omitempty"`
	// Required. The role the user receives after accepting the invitation.
	Role SpaceMember_Role `protobuf:"varint,3,opt,name=role,proto3,enum=memos.api.SpaceMember_Role" json:"role,omitempty"`
	// Output only. The space the user is invited to, as metadata only. This lets
	// an invitee understand the invitation without membership-based GetSpace
	// access.
	Space         *Space `protobuf:"bytes,4,opt,name=space,proto3" json:"space,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SpaceInvitation) ProtoMessage() {}

func (x *SpaceInvitation) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 SpaceInvitation.ProtoReflect.Descriptor instead.
func (*SpaceInvitation) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{13}
}

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

func (x *SpaceInvitation) GetInvitee() string {
	if x != nil {
		return x.Invitee
	}
	return ""
}

func (x *SpaceInvitation) GetRole() SpaceMember_Role {
	if x != nil {
		return x.Role
	}
	return SpaceMember_ROLE_UNSPECIFIED
}

func (x *SpaceInvitation) GetSpace() *Space {
	if x != nil {
		return x.Space
	}
	return nil
}

// Request message for SpaceService.ListSpaceInvitations.
type ListSpaceInvitationsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The parent space.
	// Format: spaces/{space}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of invitations to return. The service may return fewer.
	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 *ListSpaceInvitationsRequest) Reset() {
	*x = ListSpaceInvitationsRequest{}
	mi := &file_api_space_service_proto_msgTypes[14]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListSpaceInvitationsRequest) ProtoMessage() {}

func (x *ListSpaceInvitationsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 ListSpaceInvitationsRequest.ProtoReflect.Descriptor instead.
func (*ListSpaceInvitationsRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{14}
}

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

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

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

// Response message for SpaceService.ListSpaceInvitations.
type ListSpaceInvitationsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The pending invitations for the space.
	SpaceInvitations []*SpaceInvitation `protobuf:"bytes,1,rep,name=space_invitations,json=spaceInvitations,proto3" json:"space_invitations,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 *ListSpaceInvitationsResponse) Reset() {
	*x = ListSpaceInvitationsResponse{}
	mi := &file_api_space_service_proto_msgTypes[15]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListSpaceInvitationsResponse) ProtoMessage() {}

func (x *ListSpaceInvitationsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 ListSpaceInvitationsResponse.ProtoReflect.Descriptor instead.
func (*ListSpaceInvitationsResponse) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{15}
}

func (x *ListSpaceInvitationsResponse) GetSpaceInvitations() []*SpaceInvitation {
	if x != nil {
		return x.SpaceInvitations
	}
	return nil
}

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

// Request message for SpaceService.ListUserSpaceInvitations.
type ListUserSpaceInvitationsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user whose invitations to list. Must be the authenticated
	// user.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of invitations to return. The service may return fewer.
	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 *ListUserSpaceInvitationsRequest) Reset() {
	*x = ListUserSpaceInvitationsRequest{}
	mi := &file_api_space_service_proto_msgTypes[16]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListUserSpaceInvitationsRequest) ProtoMessage() {}

func (x *ListUserSpaceInvitationsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 ListUserSpaceInvitationsRequest.ProtoReflect.Descriptor instead.
func (*ListUserSpaceInvitationsRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{16}
}

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

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

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

// Response message for SpaceService.ListUserSpaceInvitations.
type ListUserSpaceInvitationsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The pending invitations received by the user.
	SpaceInvitations []*SpaceInvitation `protobuf:"bytes,1,rep,name=space_invitations,json=spaceInvitations,proto3" json:"space_invitations,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 *ListUserSpaceInvitationsResponse) Reset() {
	*x = ListUserSpaceInvitationsResponse{}
	mi := &file_api_space_service_proto_msgTypes[17]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListUserSpaceInvitationsResponse) ProtoMessage() {}

func (x *ListUserSpaceInvitationsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 ListUserSpaceInvitationsResponse.ProtoReflect.Descriptor instead.
func (*ListUserSpaceInvitationsResponse) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{17}
}

func (x *ListUserSpaceInvitationsResponse) GetSpaceInvitations() []*SpaceInvitation {
	if x != nil {
		return x.SpaceInvitations
	}
	return nil
}

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

// Request message for SpaceService.GetSpaceInvitation.
type GetSpaceInvitationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the invitation.
	// Format: spaces/{space}/invitations/{invitation}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetSpaceInvitationRequest) ProtoMessage() {}

func (x *GetSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 GetSpaceInvitationRequest.ProtoReflect.Descriptor instead.
func (*GetSpaceInvitationRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{18}
}

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

// Request message for SpaceService.CreateSpaceInvitation.
type CreateSpaceInvitationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The parent space.
	// Format: spaces/{space}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The invitation to create. The role must be ADMIN or USER.
	SpaceInvitation *SpaceInvitation `protobuf:"bytes,2,opt,name=space_invitation,json=spaceInvitation,proto3" json:"space_invitation,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*CreateSpaceInvitationRequest) ProtoMessage() {}

func (x *CreateSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 CreateSpaceInvitationRequest.ProtoReflect.Descriptor instead.
func (*CreateSpaceInvitationRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{19}
}

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

func (x *CreateSpaceInvitationRequest) GetSpaceInvitation() *SpaceInvitation {
	if x != nil {
		return x.SpaceInvitation
	}
	return nil
}

// Request message for SpaceService.DeleteSpaceInvitation.
type DeleteSpaceInvitationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the invitation.
	// Format: spaces/{space}/invitations/{invitation}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteSpaceInvitationRequest) ProtoMessage() {}

func (x *DeleteSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 DeleteSpaceInvitationRequest.ProtoReflect.Descriptor instead.
func (*DeleteSpaceInvitationRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{20}
}

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

// Request message for SpaceService.AcceptSpaceInvitation.
type AcceptSpaceInvitationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the invitation.
	// Format: spaces/{space}/invitations/{invitation}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AcceptSpaceInvitationRequest) ProtoMessage() {}

func (x *AcceptSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 AcceptSpaceInvitationRequest.ProtoReflect.Descriptor instead.
func (*AcceptSpaceInvitationRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{21}
}

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

// Request message for SpaceService.DeclineSpaceInvitation.
type DeclineSpaceInvitationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the invitation.
	// Format: spaces/{space}/invitations/{invitation}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeclineSpaceInvitationRequest) ProtoMessage() {}

func (x *DeclineSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 DeclineSpaceInvitationRequest.ProtoReflect.Descriptor instead.
func (*DeclineSpaceInvitationRequest) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{22}
}

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

// Icon is the display icon of a space.
type Space_Icon struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The icon value.
	//
	// Types that are valid to be assigned to Value:
	//
	//	*Space_Icon_Emoji
	//	*Space_Icon_Lucide
	Value         isSpace_Icon_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Space_Icon) ProtoMessage() {}

func (x *Space_Icon) ProtoReflect() protoreflect.Message {
	mi := &file_api_space_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 Space_Icon.ProtoReflect.Descriptor instead.
func (*Space_Icon) Descriptor() ([]byte, []int) {
	return file_api_space_service_proto_rawDescGZIP(), []int{0, 0}
}

func (x *Space_Icon) GetValue() isSpace_Icon_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *Space_Icon) GetEmoji() string {
	if x != nil {
		if x, ok := x.Value.(*Space_Icon_Emoji); ok {
			return x.Emoji
		}
	}
	return ""
}

func (x *Space_Icon) GetLucide() string {
	if x != nil {
		if x, ok := x.Value.(*Space_Icon_Lucide); ok {
			return x.Lucide
		}
	}
	return ""
}

type isSpace_Icon_Value interface {
	isSpace_Icon_Value()
}

type Space_Icon_Emoji struct {
	// A Unicode emoji sequence.
	Emoji string `protobuf:"bytes,1,opt,name=emoji,proto3,oneof"`
}

type Space_Icon_Lucide struct {
	// A canonical Lucide icon name, such as "leaf".
	Lucide string `protobuf:"bytes,2,opt,name=lucide,proto3,oneof"`
}

func (*Space_Icon_Emoji) isSpace_Icon_Value() {}

func (*Space_Icon_Lucide) isSpace_Icon_Value() {}

var File_api_space_service_proto protoreflect.FileDescriptor

const file_api_space_service_proto_rawDesc = "" +
	"\n" +
	"\x17api/space_service.proto\x12\tmemos.api\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\"\x80\x03\n" +
	"\x05Space\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12\x19\n" +
	"\x05title\x18\x02 \x01(\tB\x03\xe0A\x02R\x05title\x12%\n" +
	"\vdescription\x18\x03 \x01(\tB\x03\xe0A\x01R\vdescription\x12.\n" +
	"\x04icon\x18\x04 \x01(\v2\x15.memos.api.Space.IconB\x03\xe0A\x01R\x04icon\x12L\n" +
	"\x11current_user_role\x18\x05 \x01(\x0e2\x1b.memos.api.SpaceMember.RoleB\x03\xe0A\x03R\x0fcurrentUserRole\x12&\n" +
	"\fmember_count\x18\x06 \x01(\x05B\x03\xe0A\x03R\vmemberCount\x1aA\n" +
	"\x04Icon\x12\x16\n" +
	"\x05emoji\x18\x01 \x01(\tH\x00R\x05emoji\x12\x18\n" +
	"\x06lucide\x18\x02 \x01(\tH\x00R\x06lucideB\a\n" +
	"\x05value:3\xeaA0\n" +
	"\x0fmemos.api/Space\x12\x0espaces/{space}*\x06spaces2\x05space\"Y\n" +
	"\x11ListSpacesRequest\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\"f\n" +
	"\x12ListSpacesResponse\x12(\n" +
	"\x06spaces\x18\x01 \x03(\v2\x10.memos.api.SpaceR\x06spaces\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\">\n" +
	"\x0fGetSpaceRequest\x12+\n" +
	"\x04name\x18\x01 \x01(\tB\x17\xe0A\x02\xfaA\x11\n" +
	"\x0fmemos.api/SpaceR\x04name\"a\n" +
	"\x12CreateSpaceRequest\x12+\n" +
	"\x05space\x18\x01 \x01(\v2\x10.memos.api.SpaceB\x03\xe0A\x02R\x05space\x12\x1e\n" +
	"\bspace_id\x18\x02 \x01(\tB\x03\xe0A\x01R\aspaceId\"\x83\x01\n" +
	"\x12UpdateSpaceRequest\x12+\n" +
	"\x05space\x18\x01 \x01(\v2\x10.memos.api.SpaceB\x03\xe0A\x02R\x05space\x12@\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
	"updateMask\"A\n" +
	"\x12DeleteSpaceRequest\x12+\n" +
	"\x04name\x18\x01 \x01(\tB\x17\xe0A\x02\xfaA\x11\n" +
	"\x0fmemos.api/SpaceR\x04name\"\x93\x02\n" +
	"\vSpaceMember\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12*\n" +
	"\x04user\x18\x02 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x04user\x124\n" +
	"\x04role\x18\x03 \x01(\x0e2\x1b.memos.api.SpaceMember.RoleB\x03\xe0A\x02R\x04role\"1\n" +
	"\x04Role\x12\x14\n" +
	"\x10ROLE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05ADMIN\x10\x01\x12\b\n" +
	"\x04USER\x10\x02:V\xeaAS\n" +
	"\x15memos.api/SpaceMember\x12\x1fspaces/{space}/members/{member}*\fspaceMembers2\vspaceMember\"\x96\x01\n" +
	"\x17ListSpaceMembersRequest\x125\n" +
	"\x06parent\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\x12\x15memos.api/SpaceMemberR\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\"\x7f\n" +
	"\x18ListSpaceMembersResponse\x12;\n" +
	"\rspace_members\x18\x01 \x03(\v2\x16.memos.api.SpaceMemberR\fspaceMembers\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"J\n" +
	"\x15GetSpaceMemberRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15memos.api/SpaceMemberR\x04name\"\x9c\x01\n" +
	"\x18UpdateSpaceMemberRequest\x12>\n" +
	"\fspace_member\x18\x01 \x01(\v2\x16.memos.api.SpaceMemberB\x03\xe0A\x02R\vspaceMember\x12@\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
	"updateMask\"M\n" +
	"\x18DeleteSpaceMemberRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15memos.api/SpaceMemberR\x04name\"\xab\x02\n" +
	"\x0fSpaceInvitation\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x120\n" +
	"\ainvitee\x18\x02 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\ainvitee\x124\n" +
	"\x04role\x18\x03 \x01(\x0e2\x1b.memos.api.SpaceMember.RoleB\x03\xe0A\x02R\x04role\x12+\n" +
	"\x05space\x18\x04 \x01(\v2\x10.memos.api.SpaceB\x03\xe0A\x03R\x05space:j\xeaAg\n" +
	"\x19memos.api/SpaceInvitation\x12'spaces/{space}/invitations/{invitation}*\x10spaceInvitations2\x0fspaceInvitation\"\x9e\x01\n" +
	"\x1bListSpaceInvitationsRequest\x129\n" +
	"\x06parent\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\x12\x19memos.api/SpaceInvitationR\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\"\x8f\x01\n" +
	"\x1cListSpaceInvitationsResponse\x12G\n" +
	"\x11space_invitations\x18\x01 \x03(\v2\x1a.memos.api.SpaceInvitationR\x10spaceInvitations\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x97\x01\n" +
	"\x1fListUserSpaceInvitationsRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\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\"\x93\x01\n" +
	" ListUserSpaceInvitationsResponse\x12G\n" +
	"\x11space_invitations\x18\x01 \x03(\v2\x1a.memos.api.SpaceInvitationR\x10spaceInvitations\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"R\n" +
	"\x19GetSpaceInvitationRequest\x125\n" +
	"\x04name\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\n" +
	"\x19memos.api/SpaceInvitationR\x04name\"\xa5\x01\n" +
	"\x1cCreateSpaceInvitationRequest\x129\n" +
	"\x06parent\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\x12\x19memos.api/SpaceInvitationR\x06parent\x12J\n" +
	"\x10space_invitation\x18\x02 \x01(\v2\x1a.memos.api.SpaceInvitationB\x03\xe0A\x02R\x0fspaceInvitation\"U\n" +
	"\x1cDeleteSpaceInvitationRequest\x125\n" +
	"\x04name\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\n" +
	"\x19memos.api/SpaceInvitationR\x04name\"U\n" +
	"\x1cAcceptSpaceInvitationRequest\x125\n" +
	"\x04name\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\n" +
	"\x19memos.api/SpaceInvitationR\x04name\"V\n" +
	"\x1dDeclineSpaceInvitationRequest\x125\n" +
	"\x04name\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\n" +
	"\x19memos.api/SpaceInvitationR\x04name2\xac\x11\n" +
	"\fSpaceService\x12a\n" +
	"\n" +
	"ListSpaces\x12\x1c.memos.api.ListSpacesRequest\x1a\x1d.memos.api.ListSpacesResponse\"\x16\xdaA\x00\x82\xd3\xe4\x93\x02\r\x12\v/api/spaces\x12]\n" +
	"\bGetSpace\x12\x1a.memos.api.GetSpaceRequest\x1a\x10.memos.api.Space\"#\xdaA\x04name\x82\xd3\xe4\x93\x02\x16\x12\x14/api/{name=spaces/*}\x12b\n" +
	"\vCreateSpace\x12\x1d.memos.api.CreateSpaceRequest\x1a\x10.memos.api.Space\"\"\xdaA\x05space\x82\xd3\xe4\x93\x02\x14:\x05space\"\v/api/spaces\x12}\n" +
	"\vUpdateSpace\x12\x1d.memos.api.UpdateSpaceRequest\x1a\x10.memos.api.Space\"=\xdaA\x11space,update_mask\x82\xd3\xe4\x93\x02#:\x05space2\x1a/api/{space.name=spaces/*}\x12i\n" +
	"\vDeleteSpace\x12\x1d.memos.api.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"#\xdaA\x04name\x82\xd3\xe4\x93\x02\x16*\x14/api/{name=spaces/*}\x12\x8c\x01\n" +
	"\x10ListSpaceMembers\x12\".memos.api.ListSpaceMembersRequest\x1a#.memos.api.ListSpaceMembersResponse\"/\xdaA\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/api/{parent=spaces/*}/members\x12y\n" +
	"\x0eGetSpaceMember\x12 .memos.api.GetSpaceMemberRequest\x1a\x16.memos.api.SpaceMember\"-\xdaA\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/api/{name=spaces/*/members/*}\x12\xae\x01\n" +
	"\x11UpdateSpaceMember\x12#.memos.api.UpdateSpaceMemberRequest\x1a\x16.memos.api.SpaceMember\"\\\xdaA\x18space_member,update_mask\x82\xd3\xe4\x93\x02;:\fspace_member2+/api/{space_member.name=spaces/*/members/*}\x12\x7f\n" +
	"\x11DeleteSpaceMember\x12#.memos.api.DeleteSpaceMemberRequest\x1a\x16.google.protobuf.Empty\"-\xdaA\x04name\x82\xd3\xe4\x93\x02 *\x1e/api/{name=spaces/*/members/*}\x12\x9c\x01\n" +
	"\x14ListSpaceInvitations\x12&.memos.api.ListSpaceInvitationsRequest\x1a'.memos.api.ListSpaceInvitationsResponse\"3\xdaA\x06parent\x82\xd3\xe4\x93\x02$\x12\"/api/{parent=spaces/*}/invitations\x12\xac\x01\n" +
	"\x18ListUserSpaceInvitations\x12*.memos.api.ListUserSpaceInvitationsRequest\x1a+.memos.api.ListUserSpaceInvitationsResponse\"7\xdaA\x06parent\x82\xd3\xe4\x93\x02(\x12&/api/{parent=users/*}/spaceInvitations\x12\x89\x01\n" +
	"\x12GetSpaceInvitation\x12$.memos.api.GetSpaceInvitationRequest\x1a\x1a.memos.api.SpaceInvitation\"1\xdaA\x04name\x82\xd3\xe4\x93\x02$\x12\"/api/{name=spaces/*/invitations/*}\x12\xb4\x01\n" +
	"\x15CreateSpaceInvitation\x12'.memos.api.CreateSpaceInvitationRequest\x1a\x1a.memos.api.SpaceInvitation\"V\xdaA\x17parent,space_invitation\x82\xd3\xe4\x93\x026:\x10space_invitation\"\"/api/{parent=spaces/*}/invitations\x12\x8b\x01\n" +
	"\x15DeleteSpaceInvitation\x12'.memos.api.DeleteSpaceInvitationRequest\x1a\x16.google.protobuf.Empty\"1\xdaA\x04name\x82\xd3\xe4\x93\x02$*\"/api/{name=spaces/*/invitations/*}\x12\x95\x01\n" +
	"\x15AcceptSpaceInvitation\x12'.memos.api.AcceptSpaceInvitationRequest\x1a\x16.memos.api.SpaceMember\";\xdaA\x04name\x82\xd3\xe4\x93\x02.:\x01*\")/api/{name=spaces/*/invitations/*}:accept\x12\x98\x01\n" +
	"\x16DeclineSpaceInvitation\x12(.memos.api.DeclineSpaceInvitationRequest\x1a\x16.google.protobuf.Empty\"<\xdaA\x04name\x82\xd3\xe4\x93\x02/:\x01*\"*/api/{name=spaces/*/invitations/*}:declineB\x90\x01\n" +
	"\rcom.memos.apiB\x11SpaceServiceProtoP\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_space_service_proto_rawDescOnce sync.Once
	file_api_space_service_proto_rawDescData []byte
)

func file_api_space_service_proto_rawDescGZIP() []byte {
	file_api_space_service_proto_rawDescOnce.Do(func() {
		file_api_space_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_space_service_proto_rawDesc), len(file_api_space_service_proto_rawDesc)))
	})
	return file_api_space_service_proto_rawDescData
}

var file_api_space_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_space_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
var file_api_space_service_proto_goTypes = []any{
	(SpaceMember_Role)(0),                    // 0: memos.api.SpaceMember.Role
	(*Space)(nil),                            // 1: memos.api.Space
	(*ListSpacesRequest)(nil),                // 2: memos.api.ListSpacesRequest
	(*ListSpacesResponse)(nil),               // 3: memos.api.ListSpacesResponse
	(*GetSpaceRequest)(nil),                  // 4: memos.api.GetSpaceRequest
	(*CreateSpaceRequest)(nil),               // 5: memos.api.CreateSpaceRequest
	(*UpdateSpaceRequest)(nil),               // 6: memos.api.UpdateSpaceRequest
	(*DeleteSpaceRequest)(nil),               // 7: memos.api.DeleteSpaceRequest
	(*SpaceMember)(nil),                      // 8: memos.api.SpaceMember
	(*ListSpaceMembersRequest)(nil),          // 9: memos.api.ListSpaceMembersRequest
	(*ListSpaceMembersResponse)(nil),         // 10: memos.api.ListSpaceMembersResponse
	(*GetSpaceMemberRequest)(nil),            // 11: memos.api.GetSpaceMemberRequest
	(*UpdateSpaceMemberRequest)(nil),         // 12: memos.api.UpdateSpaceMemberRequest
	(*DeleteSpaceMemberRequest)(nil),         // 13: memos.api.DeleteSpaceMemberRequest
	(*SpaceInvitation)(nil),                  // 14: memos.api.SpaceInvitation
	(*ListSpaceInvitationsRequest)(nil),      // 15: memos.api.ListSpaceInvitationsRequest
	(*ListSpaceInvitationsResponse)(nil),     // 16: memos.api.ListSpaceInvitationsResponse
	(*ListUserSpaceInvitationsRequest)(nil),  // 17: memos.api.ListUserSpaceInvitationsRequest
	(*ListUserSpaceInvitationsResponse)(nil), // 18: memos.api.ListUserSpaceInvitationsResponse
	(*GetSpaceInvitationRequest)(nil),        // 19: memos.api.GetSpaceInvitationRequest
	(*CreateSpaceInvitationRequest)(nil),     // 20: memos.api.CreateSpaceInvitationRequest
	(*DeleteSpaceInvitationRequest)(nil),     // 21: memos.api.DeleteSpaceInvitationRequest
	(*AcceptSpaceInvitationRequest)(nil),     // 22: memos.api.AcceptSpaceInvitationRequest
	(*DeclineSpaceInvitationRequest)(nil),    // 23: memos.api.DeclineSpaceInvitationRequest
	(*Space_Icon)(nil),                       // 24: memos.api.Space.Icon
	(*fieldmaskpb.FieldMask)(nil),            // 25: google.protobuf.FieldMask
	(*emptypb.Empty)(nil),                    // 26: google.protobuf.Empty
}
var file_api_space_service_proto_depIdxs = []int32{
	24, // 0: memos.api.Space.icon:type_name -> memos.api.Space.Icon
	0,  // 1: memos.api.Space.current_user_role:type_name -> memos.api.SpaceMember.Role
	1,  // 2: memos.api.ListSpacesResponse.spaces:type_name -> memos.api.Space
	1,  // 3: memos.api.CreateSpaceRequest.space:type_name -> memos.api.Space
	1,  // 4: memos.api.UpdateSpaceRequest.space:type_name -> memos.api.Space
	25, // 5: memos.api.UpdateSpaceRequest.update_mask:type_name -> google.protobuf.FieldMask
	0,  // 6: memos.api.SpaceMember.role:type_name -> memos.api.SpaceMember.Role
	8,  // 7: memos.api.ListSpaceMembersResponse.space_members:type_name -> memos.api.SpaceMember
	8,  // 8: memos.api.UpdateSpaceMemberRequest.space_member:type_name -> memos.api.SpaceMember
	25, // 9: memos.api.UpdateSpaceMemberRequest.update_mask:type_name -> google.protobuf.FieldMask
	0,  // 10: memos.api.SpaceInvitation.role:type_name -> memos.api.SpaceMember.Role
	1,  // 11: memos.api.SpaceInvitation.space:type_name -> memos.api.Space
	14, // 12: memos.api.ListSpaceInvitationsResponse.space_invitations:type_name -> memos.api.SpaceInvitation
	14, // 13: memos.api.ListUserSpaceInvitationsResponse.space_invitations:type_name -> memos.api.SpaceInvitation
	14, // 14: memos.api.CreateSpaceInvitationRequest.space_invitation:type_name -> memos.api.SpaceInvitation
	2,  // 15: memos.api.SpaceService.ListSpaces:input_type -> memos.api.ListSpacesRequest
	4,  // 16: memos.api.SpaceService.GetSpace:input_type -> memos.api.GetSpaceRequest
	5,  // 17: memos.api.SpaceService.CreateSpace:input_type -> memos.api.CreateSpaceRequest
	6,  // 18: memos.api.SpaceService.UpdateSpace:input_type -> memos.api.UpdateSpaceRequest
	7,  // 19: memos.api.SpaceService.DeleteSpace:input_type -> memos.api.DeleteSpaceRequest
	9,  // 20: memos.api.SpaceService.ListSpaceMembers:input_type -> memos.api.ListSpaceMembersRequest
	11, // 21: memos.api.SpaceService.GetSpaceMember:input_type -> memos.api.GetSpaceMemberRequest
	12, // 22: memos.api.SpaceService.UpdateSpaceMember:input_type -> memos.api.UpdateSpaceMemberRequest
	13, // 23: memos.api.SpaceService.DeleteSpaceMember:input_type -> memos.api.DeleteSpaceMemberRequest
	15, // 24: memos.api.SpaceService.ListSpaceInvitations:input_type -> memos.api.ListSpaceInvitationsRequest
	17, // 25: memos.api.SpaceService.ListUserSpaceInvitations:input_type -> memos.api.ListUserSpaceInvitationsRequest
	19, // 26: memos.api.SpaceService.GetSpaceInvitation:input_type -> memos.api.GetSpaceInvitationRequest
	20, // 27: memos.api.SpaceService.CreateSpaceInvitation:input_type -> memos.api.CreateSpaceInvitationRequest
	21, // 28: memos.api.SpaceService.DeleteSpaceInvitation:input_type -> memos.api.DeleteSpaceInvitationRequest
	22, // 29: memos.api.SpaceService.AcceptSpaceInvitation:input_type -> memos.api.AcceptSpaceInvitationRequest
	23, // 30: memos.api.SpaceService.DeclineSpaceInvitation:input_type -> memos.api.DeclineSpaceInvitationRequest
	3,  // 31: memos.api.SpaceService.ListSpaces:output_type -> memos.api.ListSpacesResponse
	1,  // 32: memos.api.SpaceService.GetSpace:output_type -> memos.api.Space
	1,  // 33: memos.api.SpaceService.CreateSpace:output_type -> memos.api.Space
	1,  // 34: memos.api.SpaceService.UpdateSpace:output_type -> memos.api.Space
	26, // 35: memos.api.SpaceService.DeleteSpace:output_type -> google.protobuf.Empty
	10, // 36: memos.api.SpaceService.ListSpaceMembers:output_type -> memos.api.ListSpaceMembersResponse
	8,  // 37: memos.api.SpaceService.GetSpaceMember:output_type -> memos.api.SpaceMember
	8,  // 38: memos.api.SpaceService.UpdateSpaceMember:output_type -> memos.api.SpaceMember
	26, // 39: memos.api.SpaceService.DeleteSpaceMember:output_type -> google.protobuf.Empty
	16, // 40: memos.api.SpaceService.ListSpaceInvitations:output_type -> memos.api.ListSpaceInvitationsResponse
	18, // 41: memos.api.SpaceService.ListUserSpaceInvitations:output_type -> memos.api.ListUserSpaceInvitationsResponse
	14, // 42: memos.api.SpaceService.GetSpaceInvitation:output_type -> memos.api.SpaceInvitation
	14, // 43: memos.api.SpaceService.CreateSpaceInvitation:output_type -> memos.api.SpaceInvitation
	26, // 44: memos.api.SpaceService.DeleteSpaceInvitation:output_type -> google.protobuf.Empty
	8,  // 45: memos.api.SpaceService.AcceptSpaceInvitation:output_type -> memos.api.SpaceMember
	26, // 46: memos.api.SpaceService.DeclineSpaceInvitation:output_type -> google.protobuf.Empty
	31, // [31:47] is the sub-list for method output_type
	15, // [15:31] is the sub-list for method input_type
	15, // [15:15] is the sub-list for extension type_name
	15, // [15:15] is the sub-list for extension extendee
	0,  // [0:15] is the sub-list for field type_name
}

func init() { file_api_space_service_proto_init() }
func file_api_space_service_proto_init() {
	if File_api_space_service_proto != nil {
		return
	}
	file_api_space_service_proto_msgTypes[23].OneofWrappers = []any{
		(*Space_Icon_Emoji)(nil),
		(*Space_Icon_Lucide)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_space_service_proto_rawDesc), len(file_api_space_service_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   24,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_api_space_service_proto_goTypes,
		DependencyIndexes: file_api_space_service_proto_depIdxs,
		EnumInfos:         file_api_space_service_proto_enumTypes,
		MessageInfos:      file_api_space_service_proto_msgTypes,
	}.Build()
	File_api_space_service_proto = out.File
	file_api_space_service_proto_goTypes = nil
	file_api_space_service_proto_depIdxs = nil
}