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.

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

package api

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	color "google.golang.org/genproto/googleapis/type/color"
	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)
)

// Role is the instance-wide role of a user.
type User_Role int32

const (
	User_ROLE_UNSPECIFIED User_Role = 0
	// An administrator of the instance.
	User_ADMIN User_Role = 1
	// A regular user.
	User_USER User_Role = 2
)

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

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

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

func (User_Role) Descriptor() protoreflect.EnumDescriptor {
	return file_api_user_service_proto_enumTypes[0].Descriptor()
}

func (User_Role) Type() protoreflect.EnumType {
	return &file_api_user_service_proto_enumTypes[0]
}

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

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

// Key identifies a user setting.
type UserSetting_Key int32

const (
	UserSetting_KEY_UNSPECIFIED UserSetting_Key = 0
	// General user preferences.
	UserSetting_GENERAL UserSetting_Key = 1
	// The user's webhooks.
	UserSetting_WEBHOOKS UserSetting_Key = 2
	// Per-user tag metadata.
	UserSetting_TAGS UserSetting_Key = 3
	// Memo editor preferences.
	UserSetting_EDITOR UserSetting_Key = 4
)

// Enum value maps for UserSetting_Key.
var (
	UserSetting_Key_name = map[int32]string{
		0: "KEY_UNSPECIFIED",
		1: "GENERAL",
		2: "WEBHOOKS",
		3: "TAGS",
		4: "EDITOR",
	}
	UserSetting_Key_value = map[string]int32{
		"KEY_UNSPECIFIED": 0,
		"GENERAL":         1,
		"WEBHOOKS":        2,
		"TAGS":            3,
		"EDITOR":          4,
	}
)

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

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

func (UserSetting_Key) Descriptor() protoreflect.EnumDescriptor {
	return file_api_user_service_proto_enumTypes[1].Descriptor()
}

func (UserSetting_Key) Type() protoreflect.EnumType {
	return &file_api_user_service_proto_enumTypes[1]
}

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

// Deprecated: Use UserSetting_Key.Descriptor instead.
func (UserSetting_Key) EnumDescriptor() ([]byte, []int) {
	return file_api_user_service_proto_rawDescGZIP(), []int{9, 0}
}

// Status is the receiver's handling state of a notification.
type UserNotification_Status int32

const (
	UserNotification_STATUS_UNSPECIFIED UserNotification_Status = 0
	// The receiver has not handled the notification yet.
	UserNotification_UNREAD UserNotification_Status = 1
	// The receiver has archived the notification.
	UserNotification_ARCHIVED UserNotification_Status = 2
)

// Enum value maps for UserNotification_Status.
var (
	UserNotification_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "UNREAD",
		2: "ARCHIVED",
	}
	UserNotification_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"UNREAD":             1,
		"ARCHIVED":           2,
	}
)

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

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

func (UserNotification_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_api_user_service_proto_enumTypes[2].Descriptor()
}

func (UserNotification_Status) Type() protoreflect.EnumType {
	return &file_api_user_service_proto_enumTypes[2]
}

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

// Deprecated: Use UserNotification_Status.Descriptor instead.
func (UserNotification_Status) EnumDescriptor() ([]byte, []int) {
	return file_api_user_service_proto_rawDescGZIP(), []int{27, 0}
}

// Type is the kind of event a notification reports.
type UserNotification_Type int32

const (
	UserNotification_TYPE_UNSPECIFIED UserNotification_Type = 0
	// Someone commented on a memo.
	UserNotification_MEMO_COMMENT UserNotification_Type = 1
	// Someone mentioned the receiver in a memo.
	UserNotification_MEMO_MENTION UserNotification_Type = 2
	// Someone invited the receiver to a space.
	UserNotification_SPACE_INVITATION UserNotification_Type = 3
)

// Enum value maps for UserNotification_Type.
var (
	UserNotification_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "MEMO_COMMENT",
		2: "MEMO_MENTION",
		3: "SPACE_INVITATION",
	}
	UserNotification_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"MEMO_COMMENT":     1,
		"MEMO_MENTION":     2,
		"SPACE_INVITATION": 3,
	}
)

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

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

func (UserNotification_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_api_user_service_proto_enumTypes[3].Descriptor()
}

func (UserNotification_Type) Type() protoreflect.EnumType {
	return &file_api_user_service_proto_enumTypes[3]
}

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

// Deprecated: Use UserNotification_Type.Descriptor instead.
func (UserNotification_Type) EnumDescriptor() ([]byte, []int) {
	return file_api_user_service_proto_rawDescGZIP(), []int{27, 1}
}

// InvitationState is the receiver's progress on the invitation.
type UserNotification_SpaceInvitationPayload_InvitationState int32

const (
	UserNotification_SpaceInvitationPayload_STATE_UNSPECIFIED UserNotification_SpaceInvitationPayload_InvitationState = 0
	// The receiver has not yet accepted or declined the invitation.
	UserNotification_SpaceInvitationPayload_PENDING UserNotification_SpaceInvitationPayload_InvitationState = 1
	// The receiver accepted the invitation and is an active member.
	UserNotification_SpaceInvitationPayload_ACCEPTED UserNotification_SpaceInvitationPayload_InvitationState = 2
)

// Enum value maps for UserNotification_SpaceInvitationPayload_InvitationState.
var (
	UserNotification_SpaceInvitationPayload_InvitationState_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PENDING",
		2: "ACCEPTED",
	}
	UserNotification_SpaceInvitationPayload_InvitationState_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PENDING":           1,
		"ACCEPTED":          2,
	}
)

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

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

func (UserNotification_SpaceInvitationPayload_InvitationState) Descriptor() protoreflect.EnumDescriptor {
	return file_api_user_service_proto_enumTypes[4].Descriptor()
}

func (UserNotification_SpaceInvitationPayload_InvitationState) Type() protoreflect.EnumType {
	return &file_api_user_service_proto_enumTypes[4]
}

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

// Deprecated: Use UserNotification_SpaceInvitationPayload_InvitationState.Descriptor instead.
func (UserNotification_SpaceInvitationPayload_InvitationState) EnumDescriptor() ([]byte, []int) {
	return file_api_user_service_proto_rawDescGZIP(), []int{27, 2, 0}
}

// ConflictPolicy says what the importer does with a memo whose UID the user
// already holds.
type ImportMemosRequest_ConflictPolicy int32

const (
	ImportMemosRequest_CONFLICT_POLICY_UNSPECIFIED ImportMemosRequest_ConflictPolicy = 0
	// Leave the existing memo untouched. This is the default.
	ImportMemosRequest_SKIP ImportMemosRequest_ConflictPolicy = 1
	// Update the existing memo's content and metadata from the archive.
	ImportMemosRequest_REPLACE ImportMemosRequest_ConflictPolicy = 2
	// Keep the existing memo and create the archive version under a fresh UID.
	ImportMemosRequest_DUPLICATE ImportMemosRequest_ConflictPolicy = 3
)

// Enum value maps for ImportMemosRequest_ConflictPolicy.
var (
	ImportMemosRequest_ConflictPolicy_name = map[int32]string{
		0: "CONFLICT_POLICY_UNSPECIFIED",
		1: "SKIP",
		2: "REPLACE",
		3: "DUPLICATE",
	}
	ImportMemosRequest_ConflictPolicy_value = map[string]int32{
		"CONFLICT_POLICY_UNSPECIFIED": 0,
		"SKIP":                        1,
		"REPLACE":                     2,
		"DUPLICATE":                   3,
	}
)

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

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

func (ImportMemosRequest_ConflictPolicy) Descriptor() protoreflect.EnumDescriptor {
	return file_api_user_service_proto_enumTypes[5].Descriptor()
}

func (ImportMemosRequest_ConflictPolicy) Type() protoreflect.EnumType {
	return &file_api_user_service_proto_enumTypes[5]
}

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

// Deprecated: Use ImportMemosRequest_ConflictPolicy.Descriptor instead.
func (ImportMemosRequest_ConflictPolicy) EnumDescriptor() ([]byte, []int) {
	return file_api_user_service_proto_rawDescGZIP(), []int{52, 0}
}

// User is an account on the instance.
type User struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the user. {user} is the username.
	// Format: users/{user}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The unique username, used to sign in.
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// Optional. The display name of the user.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Optional. The email address of the user. Stored trimmed and lowercased;
	// empty means no address. An address belongs to at most one user on the
	// instance, so writes that would reuse one fail with ALREADY_EXISTS.
	// Returned only to the user and to admins.
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// Optional. The avatar URL of the user. An avatar set as a data URI (PNG,
	// JPEG, GIF or WebP, at most 2 MiB) is returned as a file server URL.
	AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// Optional. The description of the user.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// Input only. The password of the user. Never returned.
	Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"`
	// Required. The role of the user. Only admins can change it.
	Role User_Role `protobuf:"varint,8,opt,name=role,proto3,enum=memos.api.User_Role" json:"role,omitempty"`
	// Required. The state of the user. Only admins can change it.
	State State `protobuf:"varint,9,opt,name=state,proto3,enum=memos.api.State" json:"state,omitempty"`
	// Output only. The creation timestamp.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The last update timestamp.
	UpdateTime    *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*User) ProtoMessage() {}

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

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

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

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

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

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

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

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

func (x *User) GetRole() User_Role {
	if x != nil {
		return x.Role
	}
	return User_ROLE_UNSPECIFIED
}

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

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

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

// Request message for UserService.ListUsers.
type ListUsersRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. The maximum number of users to return. The service may return
	// fewer. If unspecified, at most 50 users are returned. The maximum value is
	// 1000; 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 filter on the users. Only `username == '<username>'` is
	// supported.
	// Example: "username == 'steven'"
	Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. Currently ignored; the list includes users in every state.
	ShowDeleted   bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListUsersRequest) ProtoMessage() {}

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

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

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

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

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

// Response message for UserService.ListUsers.
type ListUsersResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The users.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,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 *ListUsersResponse) Reset() {
	*x = ListUsersResponse{}
	mi := &file_api_user_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListUsersResponse) ProtoMessage() {}

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

func (x *ListUsersResponse) GetUsers() []*User {
	if x != nil {
		return x.Users
	}
	return nil
}

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

// Request message for UserService.GetUser.
type GetUserRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the user.
	// Format: users/{user}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. Currently ignored; all fields are returned.
	ReadMask      *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetUserRequest) ProtoMessage() {}

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

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

func (x *GetUserRequest) GetReadMask() *fieldmaskpb.FieldMask {
	if x != nil {
		return x.ReadMask
	}
	return nil
}

// Request message for UserService.BatchGetUsers.
type BatchGetUsersRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource names of the users to get. Empty and duplicate
	// entries are ignored. At most 100 non-empty names are allowed.
	// Format: users/{user}
	Names         []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*BatchGetUsersRequest) ProtoMessage() {}

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

func (x *BatchGetUsersRequest) GetNames() []string {
	if x != nil {
		return x.Names
	}
	return nil
}

// Response message for UserService.BatchGetUsers.
type BatchGetUsersResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The active users that match the requested names.
	Users         []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*BatchGetUsersResponse) ProtoMessage() {}

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

func (x *BatchGetUsersResponse) GetUsers() []*User {
	if x != nil {
		return x.Users
	}
	return nil
}

// Request message for UserService.CreateUser.
type CreateUserRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user to create. username and password are required; role
	// is honored only when an admin calls the method.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// Optional. The resource ID to use for this user. If set, it must equal
	// user.username and follow the username format.
	// Format: ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Optional. If set, validate the request but do not create the user.
	ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// Optional. An idempotency token. Currently ignored.
	RequestId     string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateUserRequest) ProtoMessage() {}

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

func (x *CreateUserRequest) GetUser() *User {
	if x != nil {
		return x.User
	}
	return nil
}

func (x *CreateUserRequest) GetUserId() string {
	if x != nil {
		return x.UserId
	}
	return ""
}

func (x *CreateUserRequest) GetValidateOnly() bool {
	if x != nil {
		return x.ValidateOnly
	}
	return false
}

func (x *CreateUserRequest) GetRequestId() string {
	if x != nil {
		return x.RequestId
	}
	return ""
}

// Request message for UserService.UpdateUser.
type UpdateUserRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user to update. Its name identifies the user.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// Required. The fields to update. Supported paths: username, display_name,
	// email, avatar_url, description, password, role, state. role and state
	// require an admin.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// Optional. Currently ignored; updating a missing user fails with NOT_FOUND.
	AllowMissing  bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateUserRequest) ProtoMessage() {}

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

func (x *UpdateUserRequest) GetUser() *User {
	if x != nil {
		return x.User
	}
	return nil
}

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

func (x *UpdateUserRequest) GetAllowMissing() bool {
	if x != nil {
		return x.AllowMissing
	}
	return false
}

// Request message for UserService.DeleteUser.
type DeleteUserRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the user to delete.
	// Format: users/{user}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. Currently ignored; deleting a user who belongs to any space
	// fails with FAILED_PRECONDITION.
	Force         bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteUserRequest) ProtoMessage() {}

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

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

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

// UserSetting is one group of a user's preferences, identified by its key.
type UserSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the user setting. {setting} is the
	// setting key, such as GENERAL.
	// Format: users/{user}/settings/{setting}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The setting value. The set field matches the setting key.
	//
	// Types that are valid to be assigned to Value:
	//
	//	*UserSetting_GeneralSetting_
	//	*UserSetting_WebhooksSetting_
	//	*UserSetting_TagsSetting_
	//	*UserSetting_EditorSetting_
	Value         isUserSetting_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UserSetting) ProtoMessage() {}

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

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

func (x *UserSetting) GetValue() isUserSetting_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *UserSetting) GetGeneralSetting() *UserSetting_GeneralSetting {
	if x != nil {
		if x, ok := x.Value.(*UserSetting_GeneralSetting_); ok {
			return x.GeneralSetting
		}
	}
	return nil
}

func (x *UserSetting) GetWebhooksSetting() *UserSetting_WebhooksSetting {
	if x != nil {
		if x, ok := x.Value.(*UserSetting_WebhooksSetting_); ok {
			return x.WebhooksSetting
		}
	}
	return nil
}

func (x *UserSetting) GetTagsSetting() *UserSetting_TagsSetting {
	if x != nil {
		if x, ok := x.Value.(*UserSetting_TagsSetting_); ok {
			return x.TagsSetting
		}
	}
	return nil
}

func (x *UserSetting) GetEditorSetting() *UserSetting_EditorSetting {
	if x != nil {
		if x, ok := x.Value.(*UserSetting_EditorSetting_); ok {
			return x.EditorSetting
		}
	}
	return nil
}

type isUserSetting_Value interface {
	isUserSetting_Value()
}

type UserSetting_GeneralSetting_ struct {
	// The value of the GENERAL setting.
	GeneralSetting *UserSetting_GeneralSetting `protobuf:"bytes,2,opt,name=general_setting,json=generalSetting,proto3,oneof"`
}

type UserSetting_WebhooksSetting_ struct {
	// The value of the WEBHOOKS setting.
	WebhooksSetting *UserSetting_WebhooksSetting `protobuf:"bytes,3,opt,name=webhooks_setting,json=webhooksSetting,proto3,oneof"`
}

type UserSetting_TagsSetting_ struct {
	// The value of the TAGS setting.
	TagsSetting *UserSetting_TagsSetting `protobuf:"bytes,4,opt,name=tags_setting,json=tagsSetting,proto3,oneof"`
}

type UserSetting_EditorSetting_ struct {
	// The value of the EDITOR setting.
	EditorSetting *UserSetting_EditorSetting `protobuf:"bytes,5,opt,name=editor_setting,json=editorSetting,proto3,oneof"`
}

func (*UserSetting_GeneralSetting_) isUserSetting_Value() {}

func (*UserSetting_WebhooksSetting_) isUserSetting_Value() {}

func (*UserSetting_TagsSetting_) isUserSetting_Value() {}

func (*UserSetting_EditorSetting_) isUserSetting_Value() {}

// Request message for UserService.ListUserSettings.
type ListUserSettingsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user whose settings are listed.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of settings to return. The service may return
	// fewer. Currently ignored; all settings are returned in one page.
	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 *ListUserSettingsRequest) Reset() {
	*x = ListUserSettingsRequest{}
	mi := &file_api_user_service_proto_msgTypes[10]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListUserSettingsRequest) ProtoMessage() {}

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

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

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

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

// Response message for UserService.ListUserSettings.
type ListUserSettingsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The user settings.
	UserSettings []*UserSetting `protobuf:"bytes,1,rep,name=user_settings,json=userSettings,proto3" json:"user_settings,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 *ListUserSettingsResponse) Reset() {
	*x = ListUserSettingsResponse{}
	mi := &file_api_user_service_proto_msgTypes[11]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListUserSettingsResponse) ProtoMessage() {}

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

func (x *ListUserSettingsResponse) GetUserSettings() []*UserSetting {
	if x != nil {
		return x.UserSettings
	}
	return nil
}

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

// Request message for UserService.GetUserSetting.
type GetUserSettingRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the user setting.
	// Format: users/{user}/settings/{setting}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetUserSettingRequest) ProtoMessage() {}

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

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

// Request message for UserService.UpdateUserSetting.
type UpdateUserSettingRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user setting to update. Its name identifies the setting.
	UserSetting *UserSetting `protobuf:"bytes,1,opt,name=user_setting,json=userSetting,proto3" json:"user_setting,omitempty"`
	// Required. The fields to update, relative to the setting value. GENERAL
	// supports locale, memo_visibility, theme and save_media_metadata; TAGS
	// supports tags.
	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 *UpdateUserSettingRequest) Reset() {
	*x = UpdateUserSettingRequest{}
	mi := &file_api_user_service_proto_msgTypes[13]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateUserSettingRequest) ProtoMessage() {}

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

func (x *UpdateUserSettingRequest) GetUserSetting() *UserSetting {
	if x != nil {
		return x.UserSetting
	}
	return nil
}

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

// UserStats is a summary of a user's memos. Comments are not counted.
type UserStats struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the user statistics singleton.
	// Format: users/{user}/stats
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The number of counted memos.
	TotalMemoCount int32 `protobuf:"varint,2,opt,name=total_memo_count,json=totalMemoCount,proto3" json:"total_memo_count,omitempty"`
	// The number of counted memos by content type.
	MemoTypeStats *UserStats_MemoTypeStats `protobuf:"bytes,3,opt,name=memo_type_stats,json=memoTypeStats,proto3" json:"memo_type_stats,omitempty"`
	// The number of counted memos per tag.
	TagCounts map[string]int32 `protobuf:"bytes,4,rep,name=tag_counts,json=tagCounts,proto3" json:"tag_counts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
	// The pinned memos among the counted memos.
	// Format: memos/{memo}
	PinnedMemos []string `protobuf:"bytes,5,rep,name=pinned_memos,json=pinnedMemos,proto3" json:"pinned_memos,omitempty"`
	// The creation timestamps of the counted memos, one per memo.
	MemoCreatedTimestamps []*timestamppb.Timestamp `protobuf:"bytes,6,rep,name=memo_created_timestamps,json=memoCreatedTimestamps,proto3" json:"memo_created_timestamps,omitempty"`
	// The latest update timestamps of the counted memos (one per memo, mirrors
	// memo_created_timestamps). Used by the activity heatmap when the client's
	// view is set to update_time basis.
	MemoUpdatedTimestamps []*timestamppb.Timestamp `protobuf:"bytes,7,rep,name=memo_updated_timestamps,json=memoUpdatedTimestamps,proto3" json:"memo_updated_timestamps,omitempty"`
	// Output only. Total persisted attachment size in bytes, including unlinked
	// uploads and attachments in all spaces. Excludes temporary uploads and
	// derived files. Returned only by GetUserStats for the authenticated user's
	// own stats, independently of the request's memo filter.
	AttachmentStorageBytes *int64 `protobuf:"varint,8,opt,name=attachment_storage_bytes,json=attachmentStorageBytes,proto3,oneof" json:"attachment_storage_bytes,omitempty"`
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

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

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

func (*UserStats) ProtoMessage() {}

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

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

func (x *UserStats) GetTotalMemoCount() int32 {
	if x != nil {
		return x.TotalMemoCount
	}
	return 0
}

func (x *UserStats) GetMemoTypeStats() *UserStats_MemoTypeStats {
	if x != nil {
		return x.MemoTypeStats
	}
	return nil
}

func (x *UserStats) GetTagCounts() map[string]int32 {
	if x != nil {
		return x.TagCounts
	}
	return nil
}

func (x *UserStats) GetPinnedMemos() []string {
	if x != nil {
		return x.PinnedMemos
	}
	return nil
}

func (x *UserStats) GetMemoCreatedTimestamps() []*timestamppb.Timestamp {
	if x != nil {
		return x.MemoCreatedTimestamps
	}
	return nil
}

func (x *UserStats) GetMemoUpdatedTimestamps() []*timestamppb.Timestamp {
	if x != nil {
		return x.MemoUpdatedTimestamps
	}
	return nil
}

func (x *UserStats) GetAttachmentStorageBytes() int64 {
	if x != nil && x.AttachmentStorageBytes != nil {
		return *x.AttachmentStorageBytes
	}
	return 0
}

// Request message for UserService.ListUserStats.
type ListUserStatsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The users to list statistics for: users/- for all users, or
	// users/{user} for one user.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. A CEL expression selecting the memos to count. Uses the same
	// filter syntax as ListMemos.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. The state of the memos to count. Defaults to NORMAL. ARCHIVED
	// counts only the caller's own memos.
	State         State `protobuf:"varint,3,opt,name=state,proto3,enum=memos.api.State" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListUserStatsRequest) ProtoMessage() {}

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

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

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

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

// Response message for UserService.ListUserStats.
type ListUserStatsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The statistics, one entry per user.
	UserStats     []*UserStats `protobuf:"bytes,1,rep,name=user_stats,json=userStats,proto3" json:"user_stats,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListUserStatsResponse) ProtoMessage() {}

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

func (x *ListUserStatsResponse) GetUserStats() []*UserStats {
	if x != nil {
		return x.UserStats
	}
	return nil
}

// Request message for UserService.GetUserStats.
type GetUserStatsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the user.
	// Format: users/{user}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. A CEL expression selecting the readable non-comment memos to
	// count. Supports the same fields as ListMemos, including `space`.
	Filter        string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetUserStatsRequest) ProtoMessage() {}

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

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

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

// UserUsage is a user's usage and the limit set in effect for the user.
type UserUsage struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the user usage singleton.
	// Format: users/{user}/usage
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The number of memos the user created, including comments, archived
	// memos, and memos in Spaces.
	MemoCount int64 `protobuf:"varint,2,opt,name=memo_count,json=memoCount,proto3" json:"memo_count,omitempty"`
	// The total size in bytes of the user's uploads, including uploads not
	// attached to a memo. External links do not count.
	StorageBytes int64 `protobuf:"varint,3,opt,name=storage_bytes,json=storageBytes,proto3" json:"storage_bytes,omitempty"`
	// The limit set in effect: the first USAGE_LIMITS entry that names the
	// user, or the default. An unset limit is unlimited.
	Limits *UserUsage_Limits `protobuf:"bytes,4,opt,name=limits,proto3" json:"limits,omitempty"`
	// The position of the entry in effect in the USAGE_LIMITS setting, starting
	// at 0. The default is the last entry.
	LimitIndex    int32 `protobuf:"varint,5,opt,name=limit_index,json=limitIndex,proto3" json:"limit_index,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UserUsage) ProtoMessage() {}

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

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

func (x *UserUsage) GetMemoCount() int64 {
	if x != nil {
		return x.MemoCount
	}
	return 0
}

func (x *UserUsage) GetStorageBytes() int64 {
	if x != nil {
		return x.StorageBytes
	}
	return 0
}

func (x *UserUsage) GetLimits() *UserUsage_Limits {
	if x != nil {
		return x.Limits
	}
	return nil
}

func (x *UserUsage) GetLimitIndex() int32 {
	if x != nil {
		return x.LimitIndex
	}
	return 0
}

// Request message for UserService.GetUserUsage.
type GetUserUsageRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the user usage.
	// Format: users/{user}/usage
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetUserUsageRequest) ProtoMessage() {}

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

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

// MemoView is a user's saved memo filter.
type MemoView struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the memo view.
	// Format: users/{user}/views/{view}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The title of the memo view.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Required. The CEL filter expression for the memo view, using the same
	// grammar as the ListMemos `filter` argument. Reuse it by passing this value
	// to ListMemos.
	Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. Display icon. Omit when updating with the "icon" mask to reset to
	// the default view icon.
	Icon          *MemoView_Icon `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MemoView) ProtoMessage() {}

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

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

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

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

func (x *MemoView) GetIcon() *MemoView_Icon {
	if x != nil {
		return x.Icon
	}
	return nil
}

// Request message for UserService.ListMemoViews.
type ListMemoViewsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user whose memo views are listed.
	// Format: users/{user}
	Parent        string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListMemoViewsRequest) ProtoMessage() {}

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

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

// Response message for UserService.ListMemoViews.
type ListMemoViewsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The memo views.
	MemoViews     []*MemoView `protobuf:"bytes,1,rep,name=memo_views,json=memoViews,proto3" json:"memo_views,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListMemoViewsResponse) ProtoMessage() {}

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

func (x *ListMemoViewsResponse) GetMemoViews() []*MemoView {
	if x != nil {
		return x.MemoViews
	}
	return nil
}

// Request message for UserService.GetMemoView.
type GetMemoViewRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo view.
	// Format: users/{user}/views/{view}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetMemoViewRequest) ProtoMessage() {}

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

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

// Request message for UserService.CreateMemoView.
type CreateMemoViewRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user who owns the memo view.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The memo view to create.
	MemoView *MemoView `protobuf:"bytes,2,opt,name=memo_view,json=memoView,proto3" json:"memo_view,omitempty"`
	// Optional. If set, validate the request but do not create the memo view.
	ValidateOnly  bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateMemoViewRequest) ProtoMessage() {}

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

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

func (x *CreateMemoViewRequest) GetMemoView() *MemoView {
	if x != nil {
		return x.MemoView
	}
	return nil
}

func (x *CreateMemoViewRequest) GetValidateOnly() bool {
	if x != nil {
		return x.ValidateOnly
	}
	return false
}

// Request message for UserService.UpdateMemoView.
type UpdateMemoViewRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The memo view to update. Its name identifies the memo view.
	MemoView *MemoView `protobuf:"bytes,1,opt,name=memo_view,json=memoView,proto3" json:"memo_view,omitempty"`
	// Optional. The fields to update. Supported paths: title, filter, icon. The
	// service rejects an empty mask.
	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 *UpdateMemoViewRequest) Reset() {
	*x = UpdateMemoViewRequest{}
	mi := &file_api_user_service_proto_msgTypes[25]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateMemoViewRequest) ProtoMessage() {}

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

func (x *UpdateMemoViewRequest) GetMemoView() *MemoView {
	if x != nil {
		return x.MemoView
	}
	return nil
}

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

// Request message for UserService.DeleteMemoView.
type DeleteMemoViewRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the memo view to delete.
	// Format: users/{user}/views/{view}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteMemoViewRequest) ProtoMessage() {}

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

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

// UserNotification is a notification delivered to a user.
type UserNotification struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the notification.
	// Format: users/{user}/notifications/{notification}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The user who caused the notification.
	// Format: users/{user}
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// Output only. The sender user details.
	SenderUser *User `protobuf:"bytes,3,opt,name=sender_user,json=senderUser,proto3" json:"sender_user,omitempty"`
	// Output only. The type of the notification.
	Type UserNotification_Type `protobuf:"varint,4,opt,name=type,proto3,enum=memos.api.UserNotification_Type" json:"type,omitempty"`
	// The type-specific details. The set field matches the type.
	//
	// Types that are valid to be assigned to Payload:
	//
	//	*UserNotification_MemoComment
	//	*UserNotification_MemoMention
	//	*UserNotification_SpaceInvitation
	Payload isUserNotification_Payload `protobuf_oneof:"payload"`
	// Optional. The status of the notification.
	Status UserNotification_Status `protobuf:"varint,8,opt,name=status,proto3,enum=memos.api.UserNotification_Status" json:"status,omitempty"`
	// Output only. The creation timestamp.
	CreateTime    *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UserNotification) ProtoMessage() {}

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

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

func (x *UserNotification) GetSender() string {
	if x != nil {
		return x.Sender
	}
	return ""
}

func (x *UserNotification) GetSenderUser() *User {
	if x != nil {
		return x.SenderUser
	}
	return nil
}

func (x *UserNotification) GetType() UserNotification_Type {
	if x != nil {
		return x.Type
	}
	return UserNotification_TYPE_UNSPECIFIED
}

func (x *UserNotification) GetPayload() isUserNotification_Payload {
	if x != nil {
		return x.Payload
	}
	return nil
}

func (x *UserNotification) GetMemoComment() *UserNotification_MemoCommentPayload {
	if x != nil {
		if x, ok := x.Payload.(*UserNotification_MemoComment); ok {
			return x.MemoComment
		}
	}
	return nil
}

func (x *UserNotification) GetMemoMention() *UserNotification_MemoMentionPayload {
	if x != nil {
		if x, ok := x.Payload.(*UserNotification_MemoMention); ok {
			return x.MemoMention
		}
	}
	return nil
}

func (x *UserNotification) GetSpaceInvitation() *UserNotification_SpaceInvitationPayload {
	if x != nil {
		if x, ok := x.Payload.(*UserNotification_SpaceInvitation); ok {
			return x.SpaceInvitation
		}
	}
	return nil
}

func (x *UserNotification) GetStatus() UserNotification_Status {
	if x != nil {
		return x.Status
	}
	return UserNotification_STATUS_UNSPECIFIED
}

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

type isUserNotification_Payload interface {
	isUserNotification_Payload()
}

type UserNotification_MemoComment struct {
	// Output only. Details of a MEMO_COMMENT notification.
	MemoComment *UserNotification_MemoCommentPayload `protobuf:"bytes,5,opt,name=memo_comment,json=memoComment,proto3,oneof"`
}

type UserNotification_MemoMention struct {
	// Output only. Details of a MEMO_MENTION notification.
	MemoMention *UserNotification_MemoMentionPayload `protobuf:"bytes,6,opt,name=memo_mention,json=memoMention,proto3,oneof"`
}

type UserNotification_SpaceInvitation struct {
	// Output only. Details of a SPACE_INVITATION notification.
	SpaceInvitation *UserNotification_SpaceInvitationPayload `protobuf:"bytes,7,opt,name=space_invitation,json=spaceInvitation,proto3,oneof"`
}

func (*UserNotification_MemoComment) isUserNotification_Payload() {}

func (*UserNotification_MemoMention) isUserNotification_Payload() {}

func (*UserNotification_SpaceInvitation) isUserNotification_Payload() {}

// Request message for UserService.ListUserNotifications.
type ListUserNotificationsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user whose notifications are listed.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of notifications to return. The service may
	// return fewer. Currently ignored; all notifications are returned in one
	// page.
	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. A filter on the notifications. Currently ignored.
	Filter        string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListUserNotificationsRequest) ProtoMessage() {}

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

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

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

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

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

// Response message for UserService.ListUserNotifications.
type ListUserNotificationsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The notifications.
	Notifications []*UserNotification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,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 *ListUserNotificationsResponse) Reset() {
	*x = ListUserNotificationsResponse{}
	mi := &file_api_user_service_proto_msgTypes[29]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListUserNotificationsResponse) ProtoMessage() {}

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

func (x *ListUserNotificationsResponse) GetNotifications() []*UserNotification {
	if x != nil {
		return x.Notifications
	}
	return nil
}

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

// Request message for UserService.UpdateUserNotification.
type UpdateUserNotificationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The notification to update. Its name identifies the
	// notification.
	Notification *UserNotification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"`
	// Required. The fields to update. Only status is supported.
	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 *UpdateUserNotificationRequest) Reset() {
	*x = UpdateUserNotificationRequest{}
	mi := &file_api_user_service_proto_msgTypes[30]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateUserNotificationRequest) ProtoMessage() {}

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

func (x *UpdateUserNotificationRequest) GetNotification() *UserNotification {
	if x != nil {
		return x.Notification
	}
	return nil
}

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

// Request message for UserService.DeleteUserNotification.
type DeleteUserNotificationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the notification to delete.
	// Format: users/{user}/notifications/{notification}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteUserNotificationRequest) ProtoMessage() {}

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

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

// UserWebhook is a webhook owned by a user.
type UserWebhook struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the webhook.
	// Format: users/{user}/webhooks/{webhook}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A human-readable name for the webhook.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The URL the webhook request is sent to. Required on create.
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// Input only. The secret used to HMAC-SHA256 sign the webhook request body.
	// Never returned; use GetUserWebhookSigningSecret to read it.
	SigningSecret string `protobuf:"bytes,4,opt,name=signing_secret,json=signingSecret,proto3" json:"signing_secret,omitempty"`
	// Output only. Whether a signing secret is configured for this webhook.
	SigningSecretSet bool `protobuf:"varint,5,opt,name=signing_secret_set,json=signingSecretSet,proto3" json:"signing_secret_set,omitempty"`
	// Output only. The creation timestamp. Currently never set.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The last update timestamp. Currently never set.
	UpdateTime    *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UserWebhook) ProtoMessage() {}

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

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

func (x *UserWebhook) GetDisplayName() string {
	if x != nil {
		return x.DisplayName
	}
	return ""
}

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

func (x *UserWebhook) GetSigningSecret() string {
	if x != nil {
		return x.SigningSecret
	}
	return ""
}

func (x *UserWebhook) GetSigningSecretSet() bool {
	if x != nil {
		return x.SigningSecretSet
	}
	return false
}

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

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

// Request message for UserService.ListUserWebhooks.
type ListUserWebhooksRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user whose webhooks are listed.
	// Format: users/{user}
	Parent        string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListUserWebhooksRequest) ProtoMessage() {}

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

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

// Response message for UserService.ListUserWebhooks.
type ListUserWebhooksResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The webhooks.
	Webhooks      []*UserWebhook `protobuf:"bytes,1,rep,name=webhooks,proto3" json:"webhooks,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListUserWebhooksResponse) ProtoMessage() {}

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

func (x *ListUserWebhooksResponse) GetWebhooks() []*UserWebhook {
	if x != nil {
		return x.Webhooks
	}
	return nil
}

// Request message for UserService.CreateUserWebhook.
type CreateUserWebhookRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user who owns the webhook.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The webhook to create.
	Webhook       *UserWebhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateUserWebhookRequest) Reset() {
	*x = CreateUserWebhookRequest{}
	mi := &file_api_user_service_proto_msgTypes[35]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*CreateUserWebhookRequest) ProtoMessage() {}

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

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

func (x *CreateUserWebhookRequest) GetWebhook() *UserWebhook {
	if x != nil {
		return x.Webhook
	}
	return nil
}

// Request message for UserService.UpdateUserWebhook.
type UpdateUserWebhookRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The webhook to update. Its name identifies the webhook.
	Webhook *UserWebhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"`
	// The fields to update. Supported paths: url, display_name, signing_secret.
	// When unset, all of them are updated, skipping an empty url or
	// signing_secret.
	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 *UpdateUserWebhookRequest) Reset() {
	*x = UpdateUserWebhookRequest{}
	mi := &file_api_user_service_proto_msgTypes[36]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateUserWebhookRequest) ProtoMessage() {}

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

func (x *UpdateUserWebhookRequest) GetWebhook() *UserWebhook {
	if x != nil {
		return x.Webhook
	}
	return nil
}

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

// Request message for UserService.DeleteUserWebhook.
type DeleteUserWebhookRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the webhook to delete.
	// Format: users/{user}/webhooks/{webhook}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteUserWebhookRequest) Reset() {
	*x = DeleteUserWebhookRequest{}
	mi := &file_api_user_service_proto_msgTypes[37]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeleteUserWebhookRequest) ProtoMessage() {}

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

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

// Request message for UserService.GetUserWebhookSigningSecret.
type GetUserWebhookSigningSecretRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the webhook whose signing secret to reveal.
	// Format: users/{user}/webhooks/{webhook}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetUserWebhookSigningSecretRequest) Reset() {
	*x = GetUserWebhookSigningSecretRequest{}
	mi := &file_api_user_service_proto_msgTypes[38]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetUserWebhookSigningSecretRequest) ProtoMessage() {}

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

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

// Response message for UserService.GetUserWebhookSigningSecret.
type GetUserWebhookSigningSecretResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The signing secret, in the Standard Webhooks "whsec_<base64>" form.
	SigningSecret string `protobuf:"bytes,1,opt,name=signing_secret,json=signingSecret,proto3" json:"signing_secret,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetUserWebhookSigningSecretResponse) Reset() {
	*x = GetUserWebhookSigningSecretResponse{}
	mi := &file_api_user_service_proto_msgTypes[39]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetUserWebhookSigningSecretResponse) ProtoMessage() {}

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

func (x *GetUserWebhookSigningSecretResponse) GetSigningSecret() string {
	if x != nil {
		return x.SigningSecret
	}
	return ""
}

// LinkedIdentity is an SSO identity linked to a user account.
type LinkedIdentity struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the linked identity. {linked_identity} is
	// the ID of the identity provider.
	// Format: users/{user}/linkedIdentities/{linked_identity}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The resource name of the identity provider.
	// Format: identity-providers/{idp}
	IdentityProvider string `protobuf:"bytes,2,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
	// The external user identifier from the identity provider: the subject that
	// signs in as this user. Set by signing in through the provider, or declared
	// in a configuration file for a declared user.
	ExternalUid   string `protobuf:"bytes,3,opt,name=external_uid,json=externalUid,proto3" json:"external_uid,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LinkedIdentity) Reset() {
	*x = LinkedIdentity{}
	mi := &file_api_user_service_proto_msgTypes[40]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*LinkedIdentity) ProtoMessage() {}

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

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

func (x *LinkedIdentity) GetIdentityProvider() string {
	if x != nil {
		return x.IdentityProvider
	}
	return ""
}

func (x *LinkedIdentity) GetExternalUid() string {
	if x != nil {
		return x.ExternalUid
	}
	return ""
}

// Request message for UserService.ListLinkedIdentities.
type ListLinkedIdentitiesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user whose linked identities are listed.
	// Format: users/{user}
	Parent        string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListLinkedIdentitiesRequest) Reset() {
	*x = ListLinkedIdentitiesRequest{}
	mi := &file_api_user_service_proto_msgTypes[41]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListLinkedIdentitiesRequest) ProtoMessage() {}

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

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

// Response message for UserService.ListLinkedIdentities.
type ListLinkedIdentitiesResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The linked identities.
	LinkedIdentities []*LinkedIdentity `protobuf:"bytes,1,rep,name=linked_identities,json=linkedIdentities,proto3" json:"linked_identities,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *ListLinkedIdentitiesResponse) Reset() {
	*x = ListLinkedIdentitiesResponse{}
	mi := &file_api_user_service_proto_msgTypes[42]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListLinkedIdentitiesResponse) ProtoMessage() {}

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

func (x *ListLinkedIdentitiesResponse) GetLinkedIdentities() []*LinkedIdentity {
	if x != nil {
		return x.LinkedIdentities
	}
	return nil
}

// Request message for UserService.GetLinkedIdentity.
type GetLinkedIdentityRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the linked identity.
	// Format: users/{user}/linkedIdentities/{linked_identity}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetLinkedIdentityRequest) Reset() {
	*x = GetLinkedIdentityRequest{}
	mi := &file_api_user_service_proto_msgTypes[43]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetLinkedIdentityRequest) ProtoMessage() {}

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

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

// Request message for UserService.CreateLinkedIdentity.
type CreateLinkedIdentityRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user who owns the linked identity. Must be the caller.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The identity provider to link.
	// Format: identity-providers/{idp}
	IdentityProvider string `protobuf:"bytes,2,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
	// Required. The authorization code from the identity provider.
	Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// Required. The redirect URI used in the OAuth flow.
	RedirectUri string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	// Optional. The PKCE code verifier used in the OAuth flow.
	CodeVerifier  string `protobuf:"bytes,5,opt,name=code_verifier,json=codeVerifier,proto3" json:"code_verifier,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateLinkedIdentityRequest) Reset() {
	*x = CreateLinkedIdentityRequest{}
	mi := &file_api_user_service_proto_msgTypes[44]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*CreateLinkedIdentityRequest) ProtoMessage() {}

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

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

func (x *CreateLinkedIdentityRequest) GetIdentityProvider() string {
	if x != nil {
		return x.IdentityProvider
	}
	return ""
}

func (x *CreateLinkedIdentityRequest) GetCode() string {
	if x != nil {
		return x.Code
	}
	return ""
}

func (x *CreateLinkedIdentityRequest) GetRedirectUri() string {
	if x != nil {
		return x.RedirectUri
	}
	return ""
}

func (x *CreateLinkedIdentityRequest) GetCodeVerifier() string {
	if x != nil {
		return x.CodeVerifier
	}
	return ""
}

// Request message for UserService.DeleteLinkedIdentity.
type DeleteLinkedIdentityRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the linked identity to delete.
	// Format: users/{user}/linkedIdentities/{linked_identity}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteLinkedIdentityRequest) Reset() {
	*x = DeleteLinkedIdentityRequest{}
	mi := &file_api_user_service_proto_msgTypes[45]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeleteLinkedIdentityRequest) ProtoMessage() {}

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

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

// PersonalAccessToken is a long-lived token for API and script access.
// PATs are distinct from short-lived JWT access tokens used for session
// authentication.
type PersonalAccessToken struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The resource name of the personal access token.
	// Format: users/{user}/personalAccessTokens/{personal_access_token}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The description of the token.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Output only. The creation time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Optional. The expiration time. Unset means the token never expires.
	ExpireTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	// Output only. The time the token was last used.
	LastUseTime   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_use_time,json=lastUseTime,proto3" json:"last_use_time,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *PersonalAccessToken) Reset() {
	*x = PersonalAccessToken{}
	mi := &file_api_user_service_proto_msgTypes[46]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PersonalAccessToken) ProtoMessage() {}

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

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

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

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

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

func (x *PersonalAccessToken) GetLastUseTime() *timestamppb.Timestamp {
	if x != nil {
		return x.LastUseTime
	}
	return nil
}

// Request message for UserService.ListPersonalAccessTokens.
type ListPersonalAccessTokensRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user whose personal access tokens are listed.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of tokens to return. The service may return
	// fewer. Currently ignored; all tokens are returned in one page.
	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 *ListPersonalAccessTokensRequest) Reset() {
	*x = ListPersonalAccessTokensRequest{}
	mi := &file_api_user_service_proto_msgTypes[47]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListPersonalAccessTokensRequest) ProtoMessage() {}

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

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

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

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

// Response message for UserService.ListPersonalAccessTokens.
type ListPersonalAccessTokensResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The personal access tokens, without their token values.
	PersonalAccessTokens []*PersonalAccessToken `protobuf:"bytes,1,rep,name=personal_access_tokens,json=personalAccessTokens,proto3" json:"personal_access_tokens,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 *ListPersonalAccessTokensResponse) Reset() {
	*x = ListPersonalAccessTokensResponse{}
	mi := &file_api_user_service_proto_msgTypes[48]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListPersonalAccessTokensResponse) ProtoMessage() {}

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

func (x *ListPersonalAccessTokensResponse) GetPersonalAccessTokens() []*PersonalAccessToken {
	if x != nil {
		return x.PersonalAccessTokens
	}
	return nil
}

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

// Request message for UserService.CreatePersonalAccessToken.
type CreatePersonalAccessTokenRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user who owns the token. Must be the caller.
	// Format: users/{user}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The description of the token.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Optional. The lifetime of the token in days. 0 means the token never
	// expires.
	ExpiresInDays int32 `protobuf:"varint,3,opt,name=expires_in_days,json=expiresInDays,proto3" json:"expires_in_days,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreatePersonalAccessTokenRequest) Reset() {
	*x = CreatePersonalAccessTokenRequest{}
	mi := &file_api_user_service_proto_msgTypes[49]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*CreatePersonalAccessTokenRequest) ProtoMessage() {}

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

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

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

func (x *CreatePersonalAccessTokenRequest) GetExpiresInDays() int32 {
	if x != nil {
		return x.ExpiresInDays
	}
	return 0
}

// Response message for UserService.CreatePersonalAccessToken.
type CreatePersonalAccessTokenResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The personal access token metadata.
	PersonalAccessToken *PersonalAccessToken `protobuf:"bytes,1,opt,name=personal_access_token,json=personalAccessToken,proto3" json:"personal_access_token,omitempty"`
	// The token value. This is the only time it is returned.
	Token         string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreatePersonalAccessTokenResponse) Reset() {
	*x = CreatePersonalAccessTokenResponse{}
	mi := &file_api_user_service_proto_msgTypes[50]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*CreatePersonalAccessTokenResponse) ProtoMessage() {}

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

func (x *CreatePersonalAccessTokenResponse) GetPersonalAccessToken() *PersonalAccessToken {
	if x != nil {
		return x.PersonalAccessToken
	}
	return nil
}

func (x *CreatePersonalAccessTokenResponse) GetToken() string {
	if x != nil {
		return x.Token
	}
	return ""
}

// Request message for UserService.DeletePersonalAccessToken.
type DeletePersonalAccessTokenRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the personal access token to delete.
	// Format: users/{user}/personalAccessTokens/{personal_access_token}
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeletePersonalAccessTokenRequest) Reset() {
	*x = DeletePersonalAccessTokenRequest{}
	mi := &file_api_user_service_proto_msgTypes[51]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeletePersonalAccessTokenRequest) ProtoMessage() {}

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

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

// Request message for UserService.ImportMemos.
type ImportMemosRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The user who receives the memos. Must be the caller.
	// Format: users/{user}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. Start a new upload or continue an existing one.
	//
	// Types that are valid to be assigned to Upload:
	//
	//	*ImportMemosRequest_Spec
	//	*ImportMemosRequest_UploadId
	Upload isImportMemosRequest_Upload `protobuf_oneof:"upload"`
	// Required. Zero-based byte offset at which data is written. Must equal the
	// committed size, except when retrying the most recently accepted chunk
	// with identical bytes and offset, which is accepted without writing again.
	WriteOffset int64 `protobuf:"varint,4,opt,name=write_offset,json=writeOffset,proto3" json:"write_offset,omitempty"`
	// Optional. Archive bytes, at most max_chunk_size long. With no data and
	// finish_write false, the call reports progress without writing, and
	// write_offset is ignored.
	Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// Optional. Finish the upload after writing data. The committed size must
	// then equal total_size. The archive is validated and, unless
	// validate_only is set, imported. Any later call for an imported upload
	// returns the same report.
	FinishWrite bool `protobuf:"varint,6,opt,name=finish_write,json=finishWrite,proto3" json:"finish_write,omitempty"`
	// Optional. Read on the finishing call that imports. Unspecified means SKIP.
	ConflictPolicy ImportMemosRequest_ConflictPolicy `protobuf:"varint,7,opt,name=conflict_policy,json=conflictPolicy,proto3,enum=memos.api.ImportMemosRequest_ConflictPolicy" json:"conflict_policy,omitempty"`
	// Optional. On a finishing call, validate the archive and return the plan
	// without importing. The upload stays staged so a later finishing call can
	// import it.
	ValidateOnly  bool `protobuf:"varint,8,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ImportMemosRequest) Reset() {
	*x = ImportMemosRequest{}
	mi := &file_api_user_service_proto_msgTypes[52]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ImportMemosRequest) ProtoMessage() {}

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

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

func (x *ImportMemosRequest) GetUpload() isImportMemosRequest_Upload {
	if x != nil {
		return x.Upload
	}
	return nil
}

func (x *ImportMemosRequest) GetSpec() *ImportMemosSpec {
	if x != nil {
		if x, ok := x.Upload.(*ImportMemosRequest_Spec); ok {
			return x.Spec
		}
	}
	return nil
}

func (x *ImportMemosRequest) GetUploadId() string {
	if x != nil {
		if x, ok := x.Upload.(*ImportMemosRequest_UploadId); ok {
			return x.UploadId
		}
	}
	return ""
}

func (x *ImportMemosRequest) GetWriteOffset() int64 {
	if x != nil {
		return x.WriteOffset
	}
	return 0
}

func (x *ImportMemosRequest) GetData() []byte {
	if x != nil {
		return x.Data
	}
	return nil
}

func (x *ImportMemosRequest) GetFinishWrite() bool {
	if x != nil {
		return x.FinishWrite
	}
	return false
}

func (x *ImportMemosRequest) GetConflictPolicy() ImportMemosRequest_ConflictPolicy {
	if x != nil {
		return x.ConflictPolicy
	}
	return ImportMemosRequest_CONFLICT_POLICY_UNSPECIFIED
}

func (x *ImportMemosRequest) GetValidateOnly() bool {
	if x != nil {
		return x.ValidateOnly
	}
	return false
}

type isImportMemosRequest_Upload interface {
	isImportMemosRequest_Upload()
}

type ImportMemosRequest_Spec struct {
	// Starts a new upload. The same call may also carry data and finish_write.
	Spec *ImportMemosSpec `protobuf:"bytes,2,opt,name=spec,proto3,oneof"`
}

type ImportMemosRequest_UploadId struct {
	// Continues the upload identified by a previous response.
	UploadId string `protobuf:"bytes,3,opt,name=upload_id,json=uploadId,proto3,oneof"`
}

func (*ImportMemosRequest_Spec) isImportMemosRequest_Upload() {}

func (*ImportMemosRequest_UploadId) isImportMemosRequest_Upload() {}

// Response message for UserService.ImportMemos.
type ImportMemosResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Opaque ID for subsequent calls. This is not a resource name.
	UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
	// Number of archive bytes committed so far.
	CommittedSize int64 `protobuf:"varint,2,opt,name=committed_size,json=committedSize,proto3" json:"committed_size,omitempty"`
	// Maximum number of data bytes accepted in one call.
	MaxChunkSize int32 `protobuf:"varint,3,opt,name=max_chunk_size,json=maxChunkSize,proto3" json:"max_chunk_size,omitempty"`
	// Set once the upload has been finished.
	//
	// Types that are valid to be assigned to Result:
	//
	//	*ImportMemosResponse_Plan
	//	*ImportMemosResponse_Report
	Result        isImportMemosResponse_Result `protobuf_oneof:"result"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ImportMemosResponse) Reset() {
	*x = ImportMemosResponse{}
	mi := &file_api_user_service_proto_msgTypes[53]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ImportMemosResponse) ProtoMessage() {}

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

func (x *ImportMemosResponse) GetUploadId() string {
	if x != nil {
		return x.UploadId
	}
	return ""
}

func (x *ImportMemosResponse) GetCommittedSize() int64 {
	if x != nil {
		return x.CommittedSize
	}
	return 0
}

func (x *ImportMemosResponse) GetMaxChunkSize() int32 {
	if x != nil {
		return x.MaxChunkSize
	}
	return 0
}

func (x *ImportMemosResponse) GetResult() isImportMemosResponse_Result {
	if x != nil {
		return x.Result
	}
	return nil
}

func (x *ImportMemosResponse) GetPlan() *ImportMemosPlan {
	if x != nil {
		if x, ok := x.Result.(*ImportMemosResponse_Plan); ok {
			return x.Plan
		}
	}
	return nil
}

func (x *ImportMemosResponse) GetReport() *ImportMemosReport {
	if x != nil {
		if x, ok := x.Result.(*ImportMemosResponse_Report); ok {
			return x.Report
		}
	}
	return nil
}

type isImportMemosResponse_Result interface {
	isImportMemosResponse_Result()
}

type ImportMemosResponse_Plan struct {
	// What the import would do. Set by a finishing call with validate_only.
	Plan *ImportMemosPlan `protobuf:"bytes,4,opt,name=plan,proto3,oneof"`
}

type ImportMemosResponse_Report struct {
	// What the import did. Set by a finishing call that imported.
	Report *ImportMemosReport `protobuf:"bytes,5,opt,name=report,proto3,oneof"`
}

func (*ImportMemosResponse_Plan) isImportMemosResponse_Result() {}

func (*ImportMemosResponse_Report) isImportMemosResponse_Result() {}

// ImportMemosSpec describes a new memo import upload.
type ImportMemosSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. Total size of the archive in bytes.
	TotalSize     int64 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ImportMemosSpec) Reset() {
	*x = ImportMemosSpec{}
	mi := &file_api_user_service_proto_msgTypes[54]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ImportMemosSpec) ProtoMessage() {}

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

func (x *ImportMemosSpec) GetTotalSize() int64 {
	if x != nil {
		return x.TotalSize
	}
	return 0
}

// ImportMemosPlan describes what importing a staged archive would do.
type ImportMemosPlan struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// When the archive was written.
	ExportTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=export_time,json=exportTime,proto3" json:"export_time,omitempty"`
	// Username of the user who exported the archive.
	Exporter string `protobuf:"bytes,2,opt,name=exporter,proto3" json:"exporter,omitempty"`
	// The software that wrote the archive.
	Generator string `protobuf:"bytes,3,opt,name=generator,proto3" json:"generator,omitempty"`
	// Number of memo records in the archive.
	MemoCount int32 `protobuf:"varint,4,opt,name=memo_count,json=memoCount,proto3" json:"memo_count,omitempty"`
	// Number of attachment files in the archive.
	AttachmentCount int32 `protobuf:"varint,5,opt,name=attachment_count,json=attachmentCount,proto3" json:"attachment_count,omitempty"`
	// Memos whose UID nobody on the instance holds.
	New int32 `protobuf:"varint,6,opt,name=new,proto3" json:"new,omitempty"`
	// Memos the user already holds; the conflict policy applies to them.
	Existing int32 `protobuf:"varint,7,opt,name=existing,proto3" json:"existing,omitempty"`
	// Memos whose UID another account holds; they are imported under fresh UIDs.
	Renamed int32 `protobuf:"varint,8,opt,name=renamed,proto3" json:"renamed,omitempty"`
	// Deviations the archive reader corrected while validating.
	Warnings      []*ImportMemosIssue `protobuf:"bytes,9,rep,name=warnings,proto3" json:"warnings,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ImportMemosPlan) Reset() {
	*x = ImportMemosPlan{}
	mi := &file_api_user_service_proto_msgTypes[55]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ImportMemosPlan) ProtoMessage() {}

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

func (x *ImportMemosPlan) GetExportTime() *timestamppb.Timestamp {
	if x != nil {
		return x.ExportTime
	}
	return nil
}

func (x *ImportMemosPlan) GetExporter() string {
	if x != nil {
		return x.Exporter
	}
	return ""
}

func (x *ImportMemosPlan) GetGenerator() string {
	if x != nil {
		return x.Generator
	}
	return ""
}

func (x *ImportMemosPlan) GetMemoCount() int32 {
	if x != nil {
		return x.MemoCount
	}
	return 0
}

func (x *ImportMemosPlan) GetAttachmentCount() int32 {
	if x != nil {
		return x.AttachmentCount
	}
	return 0
}

func (x *ImportMemosPlan) GetNew() int32 {
	if x != nil {
		return x.New
	}
	return 0
}

func (x *ImportMemosPlan) GetExisting() int32 {
	if x != nil {
		return x.Existing
	}
	return 0
}

func (x *ImportMemosPlan) GetRenamed() int32 {
	if x != nil {
		return x.Renamed
	}
	return 0
}

func (x *ImportMemosPlan) GetWarnings() []*ImportMemosIssue {
	if x != nil {
		return x.Warnings
	}
	return nil
}

// ImportMemosReport is the outcome of an import.
type ImportMemosReport struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Number of memos created.
	Created int32 `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"`
	// Number of existing memos replaced under the REPLACE policy.
	Updated int32 `protobuf:"varint,2,opt,name=updated,proto3" json:"updated,omitempty"`
	// Number of existing memos left untouched under the SKIP policy.
	Skipped int32 `protobuf:"varint,3,opt,name=skipped,proto3" json:"skipped,omitempty"`
	// Number of memos that could not be imported.
	Failed int32 `protobuf:"varint,4,opt,name=failed,proto3" json:"failed,omitempty"`
	// Deviations the importer corrected or tolerated.
	Warnings []*ImportMemosIssue `protobuf:"bytes,5,rep,name=warnings,proto3" json:"warnings,omitempty"`
	// One entry per failed memo, with the reason.
	Failures      []*ImportMemosIssue `protobuf:"bytes,6,rep,name=failures,proto3" json:"failures,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ImportMemosReport) Reset() {
	*x = ImportMemosReport{}
	mi := &file_api_user_service_proto_msgTypes[56]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ImportMemosReport) ProtoMessage() {}

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

func (x *ImportMemosReport) GetCreated() int32 {
	if x != nil {
		return x.Created
	}
	return 0
}

func (x *ImportMemosReport) GetUpdated() int32 {
	if x != nil {
		return x.Updated
	}
	return 0
}

func (x *ImportMemosReport) GetSkipped() int32 {
	if x != nil {
		return x.Skipped
	}
	return 0
}

func (x *ImportMemosReport) GetFailed() int32 {
	if x != nil {
		return x.Failed
	}
	return 0
}

func (x *ImportMemosReport) GetWarnings() []*ImportMemosIssue {
	if x != nil {
		return x.Warnings
	}
	return nil
}

func (x *ImportMemosReport) GetFailures() []*ImportMemosIssue {
	if x != nil {
		return x.Failures
	}
	return nil
}

// ImportMemosIssue is one warning or failure of an import, tied to the memo
// UID from the archive when there is one.
type ImportMemosIssue struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The archive memo UID the issue concerns, if any.
	MemoUid string `protobuf:"bytes,1,opt,name=memo_uid,json=memoUid,proto3" json:"memo_uid,omitempty"`
	// A description of the issue.
	Message       string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ImportMemosIssue) Reset() {
	*x = ImportMemosIssue{}
	mi := &file_api_user_service_proto_msgTypes[57]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ImportMemosIssue) ProtoMessage() {}

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

func (x *ImportMemosIssue) GetMemoUid() string {
	if x != nil {
		return x.MemoUid
	}
	return ""
}

func (x *ImportMemosIssue) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

// GeneralSetting holds general user preferences.
type UserSetting_GeneralSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. The preferred locale of the user.
	Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"`
	// Optional. The default visibility of new memos: PRIVATE, PROTECTED or
	// PUBLIC.
	MemoVisibility string `protobuf:"bytes,2,opt,name=memo_visibility,json=memoVisibility,proto3" json:"memo_visibility,omitempty"`
	// Optional. The preferred theme of the user. This references a CSS file in
	// the web/public/themes/ directory. If not set, the default theme is used.
	Theme string `protobuf:"bytes,3,opt,name=theme,proto3" json:"theme,omitempty"`
	// Optional. Whether the official client should save metadata from future
	// media uploads.
	SaveMediaMetadata bool `protobuf:"varint,4,opt,name=save_media_metadata,json=saveMediaMetadata,proto3" json:"save_media_metadata,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

func (x *UserSetting_GeneralSetting) Reset() {
	*x = UserSetting_GeneralSetting{}
	mi := &file_api_user_service_proto_msgTypes[58]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserSetting_GeneralSetting) ProtoMessage() {}

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

func (x *UserSetting_GeneralSetting) GetLocale() string {
	if x != nil {
		return x.Locale
	}
	return ""
}

func (x *UserSetting_GeneralSetting) GetMemoVisibility() string {
	if x != nil {
		return x.MemoVisibility
	}
	return ""
}

func (x *UserSetting_GeneralSetting) GetTheme() string {
	if x != nil {
		return x.Theme
	}
	return ""
}

func (x *UserSetting_GeneralSetting) GetSaveMediaMetadata() bool {
	if x != nil {
		return x.SaveMediaMetadata
	}
	return false
}

// WebhooksSetting holds a user's webhooks.
type UserSetting_WebhooksSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The user's webhooks.
	Webhooks      []*UserWebhook `protobuf:"bytes,1,rep,name=webhooks,proto3" json:"webhooks,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserSetting_WebhooksSetting) Reset() {
	*x = UserSetting_WebhooksSetting{}
	mi := &file_api_user_service_proto_msgTypes[59]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserSetting_WebhooksSetting) ProtoMessage() {}

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

func (x *UserSetting_WebhooksSetting) GetWebhooks() []*UserWebhook {
	if x != nil {
		return x.Webhooks
	}
	return nil
}

// TagsSetting holds user-specific tag metadata.
type UserSetting_TagsSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. Map of tag name pattern to tag metadata. Each key is treated as
	// an anchored regular expression (^pattern$).
	Tags          map[string]*UserSetting_TagMetadata `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserSetting_TagsSetting) Reset() {
	*x = UserSetting_TagsSetting{}
	mi := &file_api_user_service_proto_msgTypes[60]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserSetting_TagsSetting) ProtoMessage() {}

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

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

// TagMetadata holds user-specific display rules for a tag.
type UserSetting_TagMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. The background color of the tag label. When unset, the default
	// tag color is used.
	BackgroundColor *color.Color `protobuf:"bytes,1,opt,name=background_color,json=backgroundColor,proto3" json:"background_color,omitempty"`
	// Optional. Whether memos with this tag have their content blurred.
	BlurContent   bool `protobuf:"varint,2,opt,name=blur_content,json=blurContent,proto3" json:"blur_content,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserSetting_TagMetadata) Reset() {
	*x = UserSetting_TagMetadata{}
	mi := &file_api_user_service_proto_msgTypes[61]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserSetting_TagMetadata) ProtoMessage() {}

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

func (x *UserSetting_TagMetadata) GetBackgroundColor() *color.Color {
	if x != nil {
		return x.BackgroundColor
	}
	return nil
}

func (x *UserSetting_TagMetadata) GetBlurContent() bool {
	if x != nil {
		return x.BlurContent
	}
	return false
}

// EditorSetting holds the user's memo editor preferences.
type UserSetting_EditorSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. Whether the official client's memo editor uses source mode,
	// which shows and edits memos as Markdown text instead of formatted text.
	// The official client calls this "Markdown mode".
	SourceMode    bool `protobuf:"varint,1,opt,name=source_mode,json=sourceMode,proto3" json:"source_mode,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserSetting_EditorSetting) Reset() {
	*x = UserSetting_EditorSetting{}
	mi := &file_api_user_service_proto_msgTypes[62]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserSetting_EditorSetting) ProtoMessage() {}

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

func (x *UserSetting_EditorSetting) GetSourceMode() bool {
	if x != nil {
		return x.SourceMode
	}
	return false
}

// MemoTypeStats counts memos by the kind of content they contain.
type UserStats_MemoTypeStats struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The number of memos that contain a link.
	LinkCount int32 `protobuf:"varint,1,opt,name=link_count,json=linkCount,proto3" json:"link_count,omitempty"`
	// The number of memos that contain code.
	CodeCount int32 `protobuf:"varint,2,opt,name=code_count,json=codeCount,proto3" json:"code_count,omitempty"`
	// The number of memos that contain a task list.
	TodoCount int32 `protobuf:"varint,3,opt,name=todo_count,json=todoCount,proto3" json:"todo_count,omitempty"`
	// The number of memos that contain incomplete tasks.
	UndoCount     int32 `protobuf:"varint,4,opt,name=undo_count,json=undoCount,proto3" json:"undo_count,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserStats_MemoTypeStats) Reset() {
	*x = UserStats_MemoTypeStats{}
	mi := &file_api_user_service_proto_msgTypes[65]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserStats_MemoTypeStats) ProtoMessage() {}

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

func (x *UserStats_MemoTypeStats) GetLinkCount() int32 {
	if x != nil {
		return x.LinkCount
	}
	return 0
}

func (x *UserStats_MemoTypeStats) GetCodeCount() int32 {
	if x != nil {
		return x.CodeCount
	}
	return 0
}

func (x *UserStats_MemoTypeStats) GetTodoCount() int32 {
	if x != nil {
		return x.TodoCount
	}
	return 0
}

func (x *UserStats_MemoTypeStats) GetUndoCount() int32 {
	if x != nil {
		return x.UndoCount
	}
	return 0
}

// Limits is the limit for each metric. An unset limit is unlimited, as is 0.
type UserUsage_Limits struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The number of memos the user may have created.
	MemoCount *int64 `protobuf:"varint,1,opt,name=memo_count,json=memoCount,proto3,oneof" json:"memo_count,omitempty"`
	// The UTF-8 size in bytes of one memo's content.
	MemoContentBytes *int64 `protobuf:"varint,2,opt,name=memo_content_bytes,json=memoContentBytes,proto3,oneof" json:"memo_content_bytes,omitempty"`
	// The total size in bytes of the user's uploads.
	StorageBytes *int64 `protobuf:"varint,3,opt,name=storage_bytes,json=storageBytes,proto3,oneof" json:"storage_bytes,omitempty"`
	// The size in bytes of one uploaded file.
	UploadBytes   *int64 `protobuf:"varint,4,opt,name=upload_bytes,json=uploadBytes,proto3,oneof" json:"upload_bytes,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserUsage_Limits) Reset() {
	*x = UserUsage_Limits{}
	mi := &file_api_user_service_proto_msgTypes[66]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserUsage_Limits) ProtoMessage() {}

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

func (x *UserUsage_Limits) GetMemoCount() int64 {
	if x != nil && x.MemoCount != nil {
		return *x.MemoCount
	}
	return 0
}

func (x *UserUsage_Limits) GetMemoContentBytes() int64 {
	if x != nil && x.MemoContentBytes != nil {
		return *x.MemoContentBytes
	}
	return 0
}

func (x *UserUsage_Limits) GetStorageBytes() int64 {
	if x != nil && x.StorageBytes != nil {
		return *x.StorageBytes
	}
	return 0
}

func (x *UserUsage_Limits) GetUploadBytes() int64 {
	if x != nil && x.UploadBytes != nil {
		return *x.UploadBytes
	}
	return 0
}

// Icon is the display icon of a memo view.
type MemoView_Icon struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The icon value.
	//
	// Types that are valid to be assigned to Value:
	//
	//	*MemoView_Icon_Emoji
	//	*MemoView_Icon_Lucide
	Value         isMemoView_Icon_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MemoView_Icon) Reset() {
	*x = MemoView_Icon{}
	mi := &file_api_user_service_proto_msgTypes[67]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*MemoView_Icon) ProtoMessage() {}

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

func (x *MemoView_Icon) GetValue() isMemoView_Icon_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

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

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

type isMemoView_Icon_Value interface {
	isMemoView_Icon_Value()
}

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

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

func (*MemoView_Icon_Emoji) isMemoView_Icon_Value() {}

func (*MemoView_Icon_Lucide) isMemoView_Icon_Value() {}

// MemoCommentPayload holds the details of a MEMO_COMMENT notification.
type UserNotification_MemoCommentPayload struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The comment memo.
	// Format: memos/{memo}
	Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
	// The memo that was commented on.
	// Format: memos/{memo}
	RelatedMemo string `protobuf:"bytes,2,opt,name=related_memo,json=relatedMemo,proto3" json:"related_memo,omitempty"`
	// Preview text of the comment memo.
	MemoSnippet string `protobuf:"bytes,3,opt,name=memo_snippet,json=memoSnippet,proto3" json:"memo_snippet,omitempty"`
	// Preview text of the related memo.
	RelatedMemoSnippet string `protobuf:"bytes,4,opt,name=related_memo_snippet,json=relatedMemoSnippet,proto3" json:"related_memo_snippet,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *UserNotification_MemoCommentPayload) Reset() {
	*x = UserNotification_MemoCommentPayload{}
	mi := &file_api_user_service_proto_msgTypes[68]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserNotification_MemoCommentPayload) ProtoMessage() {}

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

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

func (x *UserNotification_MemoCommentPayload) GetRelatedMemo() string {
	if x != nil {
		return x.RelatedMemo
	}
	return ""
}

func (x *UserNotification_MemoCommentPayload) GetMemoSnippet() string {
	if x != nil {
		return x.MemoSnippet
	}
	return ""
}

func (x *UserNotification_MemoCommentPayload) GetRelatedMemoSnippet() string {
	if x != nil {
		return x.RelatedMemoSnippet
	}
	return ""
}

// MemoMentionPayload holds the details of a MEMO_MENTION notification.
type UserNotification_MemoMentionPayload struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The memo that contains the mention.
	// Format: memos/{memo}
	Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
	// The related parent memo when the mention was created in a comment.
	// Format: memos/{memo}
	RelatedMemo string `protobuf:"bytes,2,opt,name=related_memo,json=relatedMemo,proto3" json:"related_memo,omitempty"`
	// Preview text of the memo that contains the mention.
	MemoSnippet string `protobuf:"bytes,3,opt,name=memo_snippet,json=memoSnippet,proto3" json:"memo_snippet,omitempty"`
	// Preview text of the related parent memo.
	RelatedMemoSnippet string `protobuf:"bytes,4,opt,name=related_memo_snippet,json=relatedMemoSnippet,proto3" json:"related_memo_snippet,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *UserNotification_MemoMentionPayload) Reset() {
	*x = UserNotification_MemoMentionPayload{}
	mi := &file_api_user_service_proto_msgTypes[69]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserNotification_MemoMentionPayload) ProtoMessage() {}

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

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

func (x *UserNotification_MemoMentionPayload) GetRelatedMemo() string {
	if x != nil {
		return x.RelatedMemo
	}
	return ""
}

func (x *UserNotification_MemoMentionPayload) GetMemoSnippet() string {
	if x != nil {
		return x.MemoSnippet
	}
	return ""
}

func (x *UserNotification_MemoMentionPayload) GetRelatedMemoSnippet() string {
	if x != nil {
		return x.RelatedMemoSnippet
	}
	return ""
}

// SpaceInvitationPayload holds the details of a SPACE_INVITATION
// notification.
type UserNotification_SpaceInvitationPayload struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The invitation.
	// Format: spaces/{space}/invitations/{invitation}
	SpaceInvitation string `protobuf:"bytes,1,opt,name=space_invitation,json=spaceInvitation,proto3" json:"space_invitation,omitempty"`
	// The read-only Space summary carried by the invitation.
	Space *Space `protobuf:"bytes,2,opt,name=space,proto3" json:"space,omitempty"`
	// The role the invitation offers.
	Role SpaceMember_Role `protobuf:"varint,3,opt,name=role,proto3,enum=memos.api.SpaceMember_Role" json:"role,omitempty"`
	// The current state of the invitation for the receiver.
	State         UserNotification_SpaceInvitationPayload_InvitationState `protobuf:"varint,4,opt,name=state,proto3,enum=memos.api.UserNotification_SpaceInvitationPayload_InvitationState" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserNotification_SpaceInvitationPayload) Reset() {
	*x = UserNotification_SpaceInvitationPayload{}
	mi := &file_api_user_service_proto_msgTypes[70]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserNotification_SpaceInvitationPayload) ProtoMessage() {}

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

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

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

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

func (x *UserNotification_SpaceInvitationPayload) GetState() UserNotification_SpaceInvitationPayload_InvitationState {
	if x != nil {
		return x.State
	}
	return UserNotification_SpaceInvitationPayload_STATE_UNSPECIFIED
}

var File_api_user_service_proto protoreflect.FileDescriptor

const file_api_user_service_proto_rawDesc = "" +
	"\n" +
	"\x16api/user_service.proto\x12\tmemos.api\x1a\x10api/common.proto\x1a\x17api/space_service.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\x1a\x17google/type/color.proto\"\xb2\x04\n" +
	"\x04User\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12\x1f\n" +
	"\busername\x18\x02 \x01(\tB\x03\xe0A\x02R\busername\x12&\n" +
	"\fdisplay_name\x18\x03 \x01(\tB\x03\xe0A\x01R\vdisplayName\x12\x19\n" +
	"\x05email\x18\x04 \x01(\tB\x03\xe0A\x01R\x05email\x12\"\n" +
	"\n" +
	"avatar_url\x18\x05 \x01(\tB\x03\xe0A\x01R\tavatarUrl\x12%\n" +
	"\vdescription\x18\x06 \x01(\tB\x03\xe0A\x01R\vdescription\x12\x1f\n" +
	"\bpassword\x18\a \x01(\tB\x03\xe0A\x04R\bpassword\x12-\n" +
	"\x04role\x18\b \x01(\x0e2\x14.memos.api.User.RoleB\x03\xe0A\x02R\x04role\x12+\n" +
	"\x05state\x18\t \x01(\x0e2\x10.memos.api.StateB\x03\xe0A\x02R\x05state\x12@\n" +
	"\vcreate_time\x18\n" +
	" \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12@\n" +
	"\vupdate_time\x18\v \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"updateTime\"1\n" +
	"\x04Role\x12\x14\n" +
	"\x10ROLE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05ADMIN\x10\x01\x12\b\n" +
	"\x04USER\x10\x02:.\xeaA+\n" +
	"\x0ememos.api/User\x12\fusers/{user}*\x05users2\x04user\"\x9d\x01\n" +
	"\x10ListUsersRequest\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&\n" +
	"\fshow_deleted\x18\x04 \x01(\bB\x03\xe0A\x01R\vshowDeleted\"b\n" +
	"\x11ListUsersResponse\x12%\n" +
	"\x05users\x18\x01 \x03(\v2\x0f.memos.api.UserR\x05users\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"z\n" +
	"\x0eGetUserRequest\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x04name\x12<\n" +
	"\tread_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x01R\breadMask\"D\n" +
	"\x14BatchGetUsersRequest\x12,\n" +
	"\x05names\x18\x01 \x03(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x05names\">\n" +
	"\x15BatchGetUsersResponse\x12%\n" +
	"\x05users\x18\x01 \x03(\v2\x0f.memos.api.UserR\x05users\"\xac\x01\n" +
	"\x11CreateUserRequest\x12+\n" +
	"\x04user\x18\x01 \x01(\v2\x0f.memos.api.UserB\x06\xe0A\x02\xe0A\x04R\x04user\x12\x1c\n" +
	"\auser_id\x18\x02 \x01(\tB\x03\xe0A\x01R\x06userId\x12(\n" +
	"\rvalidate_only\x18\x03 \x01(\bB\x03\xe0A\x01R\fvalidateOnly\x12\"\n" +
	"\n" +
	"request_id\x18\x04 \x01(\tB\x03\xe0A\x01R\trequestId\"\xa9\x01\n" +
	"\x11UpdateUserRequest\x12(\n" +
	"\x04user\x18\x01 \x01(\v2\x0f.memos.api.UserB\x03\xe0A\x02R\x04user\x12@\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
	"updateMask\x12(\n" +
	"\rallow_missing\x18\x03 \x01(\bB\x03\xe0A\x01R\fallowMissing\"Z\n" +
	"\x11DeleteUserRequest\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x04name\x12\x19\n" +
	"\x05force\x18\x02 \x01(\bB\x03\xe0A\x01R\x05force\"\xee\b\n" +
	"\vUserSetting\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12P\n" +
	"\x0fgeneral_setting\x18\x02 \x01(\v2%.memos.api.UserSetting.GeneralSettingH\x00R\x0egeneralSetting\x12S\n" +
	"\x10webhooks_setting\x18\x03 \x01(\v2&.memos.api.UserSetting.WebhooksSettingH\x00R\x0fwebhooksSetting\x12G\n" +
	"\ftags_setting\x18\x04 \x01(\v2\".memos.api.UserSetting.TagsSettingH\x00R\vtagsSetting\x12M\n" +
	"\x0eeditor_setting\x18\x05 \x01(\v2$.memos.api.UserSetting.EditorSettingH\x00R\reditorSetting\x1a\xab\x01\n" +
	"\x0eGeneralSetting\x12\x1b\n" +
	"\x06locale\x18\x01 \x01(\tB\x03\xe0A\x01R\x06locale\x12,\n" +
	"\x0fmemo_visibility\x18\x02 \x01(\tB\x03\xe0A\x01R\x0ememoVisibility\x12\x19\n" +
	"\x05theme\x18\x03 \x01(\tB\x03\xe0A\x01R\x05theme\x123\n" +
	"\x13save_media_metadata\x18\x04 \x01(\bB\x03\xe0A\x01R\x11saveMediaMetadata\x1aE\n" +
	"\x0fWebhooksSetting\x122\n" +
	"\bwebhooks\x18\x01 \x03(\v2\x16.memos.api.UserWebhookR\bwebhooks\x1a\xb1\x01\n" +
	"\vTagsSetting\x12E\n" +
	"\x04tags\x18\x01 \x03(\v2,.memos.api.UserSetting.TagsSetting.TagsEntryB\x03\xe0A\x01R\x04tags\x1a[\n" +
	"\tTagsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x128\n" +
	"\x05value\x18\x02 \x01(\v2\".memos.api.UserSetting.TagMetadataR\x05value:\x028\x01\x1ay\n" +
	"\vTagMetadata\x12B\n" +
	"\x10background_color\x18\x01 \x01(\v2\x12.google.type.ColorB\x03\xe0A\x01R\x0fbackgroundColor\x12&\n" +
	"\fblur_content\x18\x02 \x01(\bB\x03\xe0A\x01R\vblurContent\x1a5\n" +
	"\rEditorSetting\x12$\n" +
	"\vsource_mode\x18\x01 \x01(\bB\x03\xe0A\x01R\n" +
	"sourceMode\"K\n" +
	"\x03Key\x12\x13\n" +
	"\x0fKEY_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aGENERAL\x10\x01\x12\f\n" +
	"\bWEBHOOKS\x10\x02\x12\b\n" +
	"\x04TAGS\x10\x03\x12\n" +
	"\n" +
	"\x06EDITOR\x10\x04:V\xeaAS\n" +
	"\x15memos.api/UserSetting\x12\x1fusers/{user}/settings/{setting}*\fuserSettings2\vuserSettingB\a\n" +
	"\x05value\"\x8f\x01\n" +
	"\x17ListUserSettingsRequest\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\"\x7f\n" +
	"\x18ListUserSettingsResponse\x12;\n" +
	"\ruser_settings\x18\x01 \x03(\v2\x16.memos.api.UserSettingR\fuserSettings\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"J\n" +
	"\x15GetUserSettingRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15memos.api/UserSettingR\x04name\"\x9c\x01\n" +
	"\x18UpdateUserSettingRequest\x12>\n" +
	"\fuser_setting\x18\x01 \x01(\v2\x16.memos.api.UserSettingB\x03\xe0A\x02R\vuserSetting\x12@\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
	"updateMask\"\xaf\x06\n" +
	"\tUserStats\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12(\n" +
	"\x10total_memo_count\x18\x02 \x01(\x05R\x0etotalMemoCount\x12J\n" +
	"\x0fmemo_type_stats\x18\x03 \x01(\v2\".memos.api.UserStats.MemoTypeStatsR\rmemoTypeStats\x12B\n" +
	"\n" +
	"tag_counts\x18\x04 \x03(\v2#.memos.api.UserStats.TagCountsEntryR\ttagCounts\x126\n" +
	"\fpinned_memos\x18\x05 \x03(\tB\x13\xfaA\x10\n" +
	"\x0ememos.api/MemoR\vpinnedMemos\x12R\n" +
	"\x17memo_created_timestamps\x18\x06 \x03(\v2\x1a.google.protobuf.TimestampR\x15memoCreatedTimestamps\x12R\n" +
	"\x17memo_updated_timestamps\x18\a \x03(\v2\x1a.google.protobuf.TimestampR\x15memoUpdatedTimestamps\x12B\n" +
	"\x18attachment_storage_bytes\x18\b \x01(\x03B\x03\xe0A\x03H\x00R\x16attachmentStorageBytes\x88\x01\x01\x1a<\n" +
	"\x0eTagCountsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1a\x8b\x01\n" +
	"\rMemoTypeStats\x12\x1d\n" +
	"\n" +
	"link_count\x18\x01 \x01(\x05R\tlinkCount\x12\x1d\n" +
	"\n" +
	"code_count\x18\x02 \x01(\x05R\tcodeCount\x12\x1d\n" +
	"\n" +
	"todo_count\x18\x03 \x01(\x05R\ttodoCount\x12\x1d\n" +
	"\n" +
	"undo_count\x18\x04 \x01(\x05R\tundoCount:B\xeaA?\n" +
	"\x13memos.api/UserStats\x12\x12users/{user}/stats*\tuserStats2\tuserStatsB\x1b\n" +
	"\x19_attachment_storage_bytes\"\x95\x01\n" +
	"\x14ListUserStatsRequest\x123\n" +
	"\x06parent\x18\x01 \x01(\tB\x1b\xe0A\x02\xfaA\x15\x12\x13memos.api/UserStatsR\x06parent\x12\x1b\n" +
	"\x06filter\x18\x02 \x01(\tB\x03\xe0A\x01R\x06filter\x12+\n" +
	"\x05state\x18\x03 \x01(\x0e2\x10.memos.api.StateB\x03\xe0A\x01R\x05state\"L\n" +
	"\x15ListUserStatsResponse\x123\n" +
	"\n" +
	"user_stats\x18\x01 \x03(\v2\x14.memos.api.UserStatsR\tuserStats\"^\n" +
	"\x13GetUserStatsRequest\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x04name\x12\x1b\n" +
	"\x06filter\x18\x02 \x01(\tB\x03\xe0A\x01R\x06filter\"\x80\x04\n" +
	"\tUserUsage\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12\x1d\n" +
	"\n" +
	"memo_count\x18\x02 \x01(\x03R\tmemoCount\x12#\n" +
	"\rstorage_bytes\x18\x03 \x01(\x03R\fstorageBytes\x123\n" +
	"\x06limits\x18\x04 \x01(\v2\x1b.memos.api.UserUsage.LimitsR\x06limits\x12\x1f\n" +
	"\vlimit_index\x18\x05 \x01(\x05R\n" +
	"limitIndex\x1a\xfa\x01\n" +
	"\x06Limits\x12\"\n" +
	"\n" +
	"memo_count\x18\x01 \x01(\x03H\x00R\tmemoCount\x88\x01\x01\x121\n" +
	"\x12memo_content_bytes\x18\x02 \x01(\x03H\x01R\x10memoContentBytes\x88\x01\x01\x12(\n" +
	"\rstorage_bytes\x18\x03 \x01(\x03H\x02R\fstorageBytes\x88\x01\x01\x12&\n" +
	"\fupload_bytes\x18\x04 \x01(\x03H\x03R\vuploadBytes\x88\x01\x01B\r\n" +
	"\v_memo_countB\x15\n" +
	"\x13_memo_content_bytesB\x10\n" +
	"\x0e_storage_bytesB\x0f\n" +
	"\r_upload_bytes:C\xeaA@\n" +
	"\x13memos.api/UserUsage\x12\x12users/{user}/usage*\n" +
	"userUsages2\tuserUsage\"F\n" +
	"\x13GetUserUsageRequest\x12/\n" +
	"\x04name\x18\x01 \x01(\tB\x1b\xe0A\x02\xfaA\x15\n" +
	"\x13memos.api/UserUsageR\x04name\"\x9a\x02\n" +
	"\bMemoView\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\x1b\n" +
	"\x06filter\x18\x03 \x01(\tB\x03\xe0A\x02R\x06filter\x121\n" +
	"\x04icon\x18\x04 \x01(\v2\x18.memos.api.MemoView.IconB\x03\xe0A\x01R\x04icon\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:G\xeaAD\n" +
	"\x12memos.api/MemoView\x12\x19users/{user}/views/{view}*\tmemoViews2\bmemoView\"J\n" +
	"\x14ListMemoViewsRequest\x122\n" +
	"\x06parent\x18\x01 \x01(\tB\x1a\xe0A\x02\xfaA\x14\x12\x12memos.api/MemoViewR\x06parent\"K\n" +
	"\x15ListMemoViewsResponse\x122\n" +
	"\n" +
	"memo_views\x18\x01 \x03(\v2\x13.memos.api.MemoViewR\tmemoViews\"D\n" +
	"\x12GetMemoViewRequest\x12.\n" +
	"\x04name\x18\x01 \x01(\tB\x1a\xe0A\x02\xfaA\x14\n" +
	"\x12memos.api/MemoViewR\x04name\"\xac\x01\n" +
	"\x15CreateMemoViewRequest\x122\n" +
	"\x06parent\x18\x01 \x01(\tB\x1a\xe0A\x02\xfaA\x14\x12\x12memos.api/MemoViewR\x06parent\x125\n" +
	"\tmemo_view\x18\x02 \x01(\v2\x13.memos.api.MemoViewB\x03\xe0A\x02R\bmemoView\x12(\n" +
	"\rvalidate_only\x18\x03 \x01(\bB\x03\xe0A\x01R\fvalidateOnly\"\x90\x01\n" +
	"\x15UpdateMemoViewRequest\x125\n" +
	"\tmemo_view\x18\x01 \x01(\v2\x13.memos.api.MemoViewB\x03\xe0A\x02R\bmemoView\x12@\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x01R\n" +
	"updateMask\"G\n" +
	"\x15DeleteMemoViewRequest\x12.\n" +
	"\x04name\x18\x01 \x01(\tB\x1a\xe0A\x02\xfaA\x14\n" +
	"\x12memos.api/MemoViewR\x04name\"\xa1\f\n" +
	"\x10UserNotification\x12\x1a\n" +
	"\x04name\x18\x01 \x01(\tB\x06\xe0A\x03\xe0A\bR\x04name\x12.\n" +
	"\x06sender\x18\x02 \x01(\tB\x16\xe0A\x03\xfaA\x10\n" +
	"\x0ememos.api/UserR\x06sender\x125\n" +
	"\vsender_user\x18\x03 \x01(\v2\x0f.memos.api.UserB\x03\xe0A\x03R\n" +
	"senderUser\x129\n" +
	"\x04type\x18\x04 \x01(\x0e2 .memos.api.UserNotification.TypeB\x03\xe0A\x03R\x04type\x12X\n" +
	"\fmemo_comment\x18\x05 \x01(\v2..memos.api.UserNotification.MemoCommentPayloadB\x03\xe0A\x03H\x00R\vmemoComment\x12X\n" +
	"\fmemo_mention\x18\x06 \x01(\v2..memos.api.UserNotification.MemoMentionPayloadB\x03\xe0A\x03H\x00R\vmemoMention\x12d\n" +
	"\x10space_invitation\x18\a \x01(\v22.memos.api.UserNotification.SpaceInvitationPayloadB\x03\xe0A\x03H\x00R\x0fspaceInvitation\x12?\n" +
	"\x06status\x18\b \x01(\x0e2\".memos.api.UserNotification.StatusB\x03\xe0A\x01R\x06status\x12@\n" +
	"\vcreate_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x1a\xa0\x01\n" +
	"\x12MemoCommentPayload\x12\x12\n" +
	"\x04memo\x18\x01 \x01(\tR\x04memo\x12!\n" +
	"\frelated_memo\x18\x02 \x01(\tR\vrelatedMemo\x12!\n" +
	"\fmemo_snippet\x18\x03 \x01(\tR\vmemoSnippet\x120\n" +
	"\x14related_memo_snippet\x18\x04 \x01(\tR\x12relatedMemoSnippet\x1a\xa0\x01\n" +
	"\x12MemoMentionPayload\x12\x12\n" +
	"\x04memo\x18\x01 \x01(\tR\x04memo\x12!\n" +
	"\frelated_memo\x18\x02 \x01(\tR\vrelatedMemo\x12!\n" +
	"\fmemo_snippet\x18\x03 \x01(\tR\vmemoSnippet\x120\n" +
	"\x14related_memo_snippet\x18\x04 \x01(\tR\x12relatedMemoSnippet\x1a\xdb\x02\n" +
	"\x16SpaceInvitationPayload\x12I\n" +
	"\x10space_invitation\x18\x01 \x01(\tB\x1e\xfaA\x1b\n" +
	"\x19memos.api/SpaceInvitationR\x0fspaceInvitation\x12&\n" +
	"\x05space\x18\x02 \x01(\v2\x10.memos.api.SpaceR\x05space\x12/\n" +
	"\x04role\x18\x03 \x01(\x0e2\x1b.memos.api.SpaceMember.RoleR\x04role\x12X\n" +
	"\x05state\x18\x04 \x01(\x0e2B.memos.api.UserNotification.SpaceInvitationPayload.InvitationStateR\x05state\"C\n" +
	"\x0fInvitationState\x12\x15\n" +
	"\x11STATE_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\f\n" +
	"\bACCEPTED\x10\x02\":\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06UNREAD\x10\x01\x12\f\n" +
	"\bARCHIVED\x10\x02\"V\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\x10\n" +
	"\fMEMO_COMMENT\x10\x01\x12\x10\n" +
	"\fMEMO_MENTION\x10\x02\x12\x14\n" +
	"\x10SPACE_INVITATION\x10\x03:o\xeaAl\n" +
	"\x1amemos.api/UserNotification\x12)users/{user}/notifications/{notification}*\x11userNotifications2\x10userNotificationB\t\n" +
	"\apayload\"\xb1\x01\n" +
	"\x1cListUserNotificationsRequest\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\x12\x1b\n" +
	"\x06filter\x18\x04 \x01(\tB\x03\xe0A\x01R\x06filter\"\x8a\x01\n" +
	"\x1dListUserNotificationsResponse\x12A\n" +
	"\rnotifications\x18\x01 \x03(\v2\x1b.memos.api.UserNotificationR\rnotifications\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xa7\x01\n" +
	"\x1dUpdateUserNotificationRequest\x12D\n" +
	"\fnotification\x18\x01 \x01(\v2\x1b.memos.api.UserNotificationB\x03\xe0A\x02R\fnotification\x12@\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
	"updateMask\"W\n" +
	"\x1dDeleteUserNotificationRequest\x126\n" +
	"\x04name\x18\x01 \x01(\tB\"\xe0A\x02\xfaA\x1c\n" +
	"\x1amemos.api/UserNotificationR\x04name\"\x96\x03\n" +
	"\vUserWebhook\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12!\n" +
	"\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x10\n" +
	"\x03url\x18\x03 \x01(\tR\x03url\x12*\n" +
	"\x0esigning_secret\x18\x04 \x01(\tB\x03\xe0A\x04R\rsigningSecret\x121\n" +
	"\x12signing_secret_set\x18\x05 \x01(\bB\x03\xe0A\x03R\x10signingSecretSet\x12@\n" +
	"\vcreate_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12@\n" +
	"\vupdate_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"updateTime:V\xeaAS\n" +
	"\x15memos.api/UserWebhook\x12\x1fusers/{user}/webhooks/{webhook}*\fuserWebhooks2\vuserWebhook\"P\n" +
	"\x17ListUserWebhooksRequest\x125\n" +
	"\x06parent\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\x12\x15memos.api/UserWebhookR\x06parent\"N\n" +
	"\x18ListUserWebhooksResponse\x122\n" +
	"\bwebhooks\x18\x01 \x03(\v2\x16.memos.api.UserWebhookR\bwebhooks\"\x88\x01\n" +
	"\x18CreateUserWebhookRequest\x125\n" +
	"\x06parent\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\x12\x15memos.api/UserWebhookR\x06parent\x125\n" +
	"\awebhook\x18\x02 \x01(\v2\x16.memos.api.UserWebhookB\x03\xe0A\x02R\awebhook\"\x8e\x01\n" +
	"\x18UpdateUserWebhookRequest\x125\n" +
	"\awebhook\x18\x01 \x01(\v2\x16.memos.api.UserWebhookB\x03\xe0A\x02R\awebhook\x12;\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
	"updateMask\"M\n" +
	"\x18DeleteUserWebhookRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15memos.api/UserWebhookR\x04name\"W\n" +
	"\"GetUserWebhookSigningSecretRequest\x121\n" +
	"\x04name\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
	"\x15memos.api/UserWebhookR\x04name\"L\n" +
	"#GetUserWebhookSigningSecretResponse\x12%\n" +
	"\x0esigning_secret\x18\x01 \x01(\tR\rsigningSecret\"\x94\x02\n" +
	"\x0eLinkedIdentity\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12O\n" +
	"\x11identity_provider\x18\x02 \x01(\tB\"\xe0A\x03\xfaA\x1c\n" +
	"\x1amemos.api/IdentityProviderR\x10identityProvider\x12&\n" +
	"\fexternal_uid\x18\x03 \x01(\tB\x03\xe0A\x01R\vexternalUid:p\xeaAm\n" +
	"\x18memos.api/LinkedIdentity\x12/users/{user}/linkedIdentities/{linked_identity}*\x10linkedIdentities2\x0elinkedIdentity\"M\n" +
	"\x1bListLinkedIdentitiesRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x06parent\"f\n" +
	"\x1cListLinkedIdentitiesResponse\x12F\n" +
	"\x11linked_identities\x18\x01 \x03(\v2\x19.memos.api.LinkedIdentityR\x10linkedIdentities\"P\n" +
	"\x18GetLinkedIdentityRequest\x124\n" +
	"\x04name\x18\x01 \x01(\tB \xe0A\x02\xfaA\x1a\n" +
	"\x18memos.api/LinkedIdentityR\x04name\"\x89\x02\n" +
	"\x1bCreateLinkedIdentityRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x06parent\x12O\n" +
	"\x11identity_provider\x18\x02 \x01(\tB\"\xe0A\x02\xfaA\x1c\n" +
	"\x1amemos.api/IdentityProviderR\x10identityProvider\x12\x17\n" +
	"\x04code\x18\x03 \x01(\tB\x03\xe0A\x02R\x04code\x12&\n" +
	"\fredirect_uri\x18\x04 \x01(\tB\x03\xe0A\x02R\vredirectUri\x12(\n" +
	"\rcode_verifier\x18\x05 \x01(\tB\x03\xe0A\x01R\fcodeVerifier\"S\n" +
	"\x1bDeleteLinkedIdentityRequest\x124\n" +
	"\x04name\x18\x01 \x01(\tB \xe0A\x02\xfaA\x1a\n" +
	"\x18memos.api/LinkedIdentityR\x04name\"\xaa\x03\n" +
	"\x13PersonalAccessToken\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12%\n" +
	"\vdescription\x18\x02 \x01(\tB\x03\xe0A\x01R\vdescription\x12@\n" +
	"\vcreate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12@\n" +
	"\vexpire_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x01R\n" +
	"expireTime\x12C\n" +
	"\rlast_use_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\vlastUseTime:\x89\x01\xeaA\x85\x01\n" +
	"\x1dmemos.api/PersonalAccessToken\x129users/{user}/personalAccessTokens/{personal_access_token}*\x14personalAccessTokens2\x13personalAccessToken\"\x97\x01\n" +
	"\x1fListPersonalAccessTokensRequest\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\"\xa0\x01\n" +
	" ListPersonalAccessTokensResponse\x12T\n" +
	"\x16personal_access_tokens\x18\x01 \x03(\v2\x1e.memos.api.PersonalAccessTokenR\x14personalAccessTokens\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xa6\x01\n" +
	" CreatePersonalAccessTokenRequest\x12.\n" +
	"\x06parent\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x06parent\x12%\n" +
	"\vdescription\x18\x02 \x01(\tB\x03\xe0A\x01R\vdescription\x12+\n" +
	"\x0fexpires_in_days\x18\x03 \x01(\x05B\x03\xe0A\x01R\rexpiresInDays\"\x8d\x01\n" +
	"!CreatePersonalAccessTokenResponse\x12R\n" +
	"\x15personal_access_token\x18\x01 \x01(\v2\x1e.memos.api.PersonalAccessTokenR\x13personalAccessToken\x12\x14\n" +
	"\x05token\x18\x02 \x01(\tR\x05token\"]\n" +
	" DeletePersonalAccessTokenRequest\x129\n" +
	"\x04name\x18\x01 \x01(\tB%\xe0A\x02\xfaA\x1f\n" +
	"\x1dmemos.api/PersonalAccessTokenR\x04name\"\xe3\x03\n" +
	"\x12ImportMemosRequest\x12*\n" +
	"\x04name\x18\x01 \x01(\tB\x16\xe0A\x02\xfaA\x10\n" +
	"\x0ememos.api/UserR\x04name\x120\n" +
	"\x04spec\x18\x02 \x01(\v2\x1a.memos.api.ImportMemosSpecH\x00R\x04spec\x12\x1d\n" +
	"\tupload_id\x18\x03 \x01(\tH\x00R\buploadId\x12&\n" +
	"\fwrite_offset\x18\x04 \x01(\x03B\x03\xe0A\x02R\vwriteOffset\x12\x17\n" +
	"\x04data\x18\x05 \x01(\fB\x03\xe0A\x01R\x04data\x12&\n" +
	"\ffinish_write\x18\x06 \x01(\bB\x03\xe0A\x01R\vfinishWrite\x12Z\n" +
	"\x0fconflict_policy\x18\a \x01(\x0e2,.memos.api.ImportMemosRequest.ConflictPolicyB\x03\xe0A\x01R\x0econflictPolicy\x12(\n" +
	"\rvalidate_only\x18\b \x01(\bB\x03\xe0A\x01R\fvalidateOnly\"W\n" +
	"\x0eConflictPolicy\x12\x1f\n" +
	"\x1bCONFLICT_POLICY_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04SKIP\x10\x01\x12\v\n" +
	"\aREPLACE\x10\x02\x12\r\n" +
	"\tDUPLICATE\x10\x03B\b\n" +
	"\x06upload\"\xf3\x01\n" +
	"\x13ImportMemosResponse\x12\x1b\n" +
	"\tupload_id\x18\x01 \x01(\tR\buploadId\x12%\n" +
	"\x0ecommitted_size\x18\x02 \x01(\x03R\rcommittedSize\x12$\n" +
	"\x0emax_chunk_size\x18\x03 \x01(\x05R\fmaxChunkSize\x120\n" +
	"\x04plan\x18\x04 \x01(\v2\x1a.memos.api.ImportMemosPlanH\x00R\x04plan\x126\n" +
	"\x06report\x18\x05 \x01(\v2\x1c.memos.api.ImportMemosReportH\x00R\x06reportB\b\n" +
	"\x06result\"5\n" +
	"\x0fImportMemosSpec\x12\"\n" +
	"\n" +
	"total_size\x18\x01 \x01(\x03B\x03\xe0A\x01R\ttotalSize\"\xd3\x02\n" +
	"\x0fImportMemosPlan\x12;\n" +
	"\vexport_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"exportTime\x12\x1a\n" +
	"\bexporter\x18\x02 \x01(\tR\bexporter\x12\x1c\n" +
	"\tgenerator\x18\x03 \x01(\tR\tgenerator\x12\x1d\n" +
	"\n" +
	"memo_count\x18\x04 \x01(\x05R\tmemoCount\x12)\n" +
	"\x10attachment_count\x18\x05 \x01(\x05R\x0fattachmentCount\x12\x10\n" +
	"\x03new\x18\x06 \x01(\x05R\x03new\x12\x1a\n" +
	"\bexisting\x18\a \x01(\x05R\bexisting\x12\x18\n" +
	"\arenamed\x18\b \x01(\x05R\arenamed\x127\n" +
	"\bwarnings\x18\t \x03(\v2\x1b.memos.api.ImportMemosIssueR\bwarnings\"\xeb\x01\n" +
	"\x11ImportMemosReport\x12\x18\n" +
	"\acreated\x18\x01 \x01(\x05R\acreated\x12\x18\n" +
	"\aupdated\x18\x02 \x01(\x05R\aupdated\x12\x18\n" +
	"\askipped\x18\x03 \x01(\x05R\askipped\x12\x16\n" +
	"\x06failed\x18\x04 \x01(\x05R\x06failed\x127\n" +
	"\bwarnings\x18\x05 \x03(\v2\x1b.memos.api.ImportMemosIssueR\bwarnings\x127\n" +
	"\bfailures\x18\x06 \x03(\v2\x1b.memos.api.ImportMemosIssueR\bfailures\"G\n" +
	"\x10ImportMemosIssue\x12\x19\n" +
	"\bmemo_uid\x18\x01 \x01(\tR\amemoUid\x12\x18\n" +
	"\amessage\x18\x02 \x01(\tR\amessage2\x96$\n" +
	"\vUserService\x12Z\n" +
	"\tListUsers\x12\x1b.memos.api.ListUsersRequest\x1a\x1c.memos.api.ListUsersResponse\"\x12\x82\xd3\xe4\x93\x02\f\x12\n" +
	"/api/users\x12Y\n" +
	"\aGetUser\x12\x19.memos.api.GetUserRequest\x1a\x0f.memos.api.User\"\"\xdaA\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/api/{name=users/*}\x12r\n" +
	"\rBatchGetUsers\x12\x1f.memos.api.BatchGetUsersRequest\x1a .memos.api.BatchGetUsersResponse\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/users:batchGet\x12d\n" +
	"\n" +
	"CreateUser\x12\x1c.memos.api.CreateUserRequest\x1a\x0f.memos.api.User\"'\xdaA\fuser,user_id\x82\xd3\xe4\x93\x02\x12:\x04user\"\n" +
	"/api/users\x12v\n" +
	"\n" +
	"UpdateUser\x12\x1c.memos.api.UpdateUserRequest\x1a\x0f.memos.api.User\"9\xdaA\x10user,update_mask\x82\xd3\xe4\x93\x02 :\x04user2\x18/api/{user.name=users/*}\x12f\n" +
	"\n" +
	"DeleteUser\x12\x1c.memos.api.DeleteUserRequest\x1a\x16.google.protobuf.Empty\"\"\xdaA\x04name\x82\xd3\xe4\x93\x02\x15*\x13/api/{name=users/*}\x12\x8c\x01\n" +
	"\x10ListUserSettings\x12\".memos.api.ListUserSettingsRequest\x1a#.memos.api.ListUserSettingsResponse\"/\xdaA\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/api/{parent=users/*}/settings\x12y\n" +
	"\x0eGetUserSetting\x12 .memos.api.GetUserSettingRequest\x1a\x16.memos.api.UserSetting\"-\xdaA\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/api/{name=users/*/settings/*}\x12\xae\x01\n" +
	"\x11UpdateUserSetting\x12#.memos.api.UpdateUserSettingRequest\x1a\x16.memos.api.UserSetting\"\\\xdaA\x18user_setting,update_mask\x82\xd3\xe4\x93\x02;:\fuser_setting2+/api/{user_setting.name=users/*/settings/*}\x12\x80\x01\n" +
	"\rListUserStats\x12\x1f.memos.api.ListUserStatsRequest\x1a .memos.api.ListUserStatsResponse\",\xdaA\x06parent\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/{parent=users/*}/stats\x12q\n" +
	"\fGetUserStats\x12\x1e.memos.api.GetUserStatsRequest\x1a\x14.memos.api.UserStats\"+\xdaA\x04name\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/{name=users/*}:getStats\x12n\n" +
	"\fGetUserUsage\x12\x1e.memos.api.GetUserUsageRequest\x1a\x14.memos.api.UserUsage\"(\xdaA\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/{name=users/*/usage}\x12\x80\x01\n" +
	"\rListMemoViews\x12\x1f.memos.api.ListMemoViewsRequest\x1a .memos.api.ListMemoViewsResponse\",\xdaA\x06parent\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/{parent=users/*}/views\x12m\n" +
	"\vGetMemoView\x12\x1d.memos.api.GetMemoViewRequest\x1a\x13.memos.api.MemoView\"*\xdaA\x04name\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/{name=users/*/views/*}\x12\x8a\x01\n" +
	"\x0eCreateMemoView\x12 .memos.api.CreateMemoViewRequest\x1a\x13.memos.api.MemoView\"A\xdaA\x10parent,memo_view\x82\xd3\xe4\x93\x02(:\tmemo_view\"\x1b/api/{parent=users/*}/views\x12\x99\x01\n" +
	"\x0eUpdateMemoView\x12 .memos.api.UpdateMemoViewRequest\x1a\x13.memos.api.MemoView\"P\xdaA\x15memo_view,update_mask\x82\xd3\xe4\x93\x022:\tmemo_view2%/api/{memo_view.name=users/*/views/*}\x12v\n" +
	"\x0eDeleteMemoView\x12 .memos.api.DeleteMemoViewRequest\x1a\x16.google.protobuf.Empty\"*\xdaA\x04name\x82\xd3\xe4\x93\x02\x1d*\x1b/api/{name=users/*/views/*}\x12\xa0\x01\n" +
	"\x15ListUserNotifications\x12'.memos.api.ListUserNotificationsRequest\x1a(.memos.api.ListUserNotificationsResponse\"4\xdaA\x06parent\x82\xd3\xe4\x93\x02%\x12#/api/{parent=users/*}/notifications\x12\xc2\x01\n" +
	"\x16UpdateUserNotification\x12(.memos.api.UpdateUserNotificationRequest\x1a\x1b.memos.api.UserNotification\"a\xdaA\x18notification,update_mask\x82\xd3\xe4\x93\x02@:\fnotification20/api/{notification.name=users/*/notifications/*}\x12\x8e\x01\n" +
	"\x16DeleteUserNotification\x12(.memos.api.DeleteUserNotificationRequest\x1a\x16.google.protobuf.Empty\"2\xdaA\x04name\x82\xd3\xe4\x93\x02%*#/api/{name=users/*/notifications/*}\x12\x8c\x01\n" +
	"\x10ListUserWebhooks\x12\".memos.api.ListUserWebhooksRequest\x1a#.memos.api.ListUserWebhooksResponse\"/\xdaA\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/api/{parent=users/*}/webhooks\x12\x92\x01\n" +
	"\x11CreateUserWebhook\x12#.memos.api.CreateUserWebhookRequest\x1a\x16.memos.api.UserWebhook\"@\xdaA\x0eparent,webhook\x82\xd3\xe4\x93\x02):\awebhook\"\x1e/api/{parent=users/*}/webhooks\x12\x9f\x01\n" +
	"\x11UpdateUserWebhook\x12#.memos.api.UpdateUserWebhookRequest\x1a\x16.memos.api.UserWebhook\"M\xdaA\x13webhook,update_mask\x82\xd3\xe4\x93\x021:\awebhook2&/api/{webhook.name=users/*/webhooks/*}\x12\x7f\n" +
	"\x11DeleteUserWebhook\x12#.memos.api.DeleteUserWebhookRequest\x1a\x16.google.protobuf.Empty\"-\xdaA\x04name\x82\xd3\xe4\x93\x02 *\x1e/api/{name=users/*/webhooks/*}\x12\xbc\x01\n" +
	"\x1bGetUserWebhookSigningSecret\x12-.memos.api.GetUserWebhookSigningSecretRequest\x1a..memos.api.GetUserWebhookSigningSecretResponse\">\xdaA\x04name\x82\xd3\xe4\x93\x021\x12//api/{name=users/*/webhooks/*}:getSigningSecret\x12\xa0\x01\n" +
	"\x14ListLinkedIdentities\x12&.memos.api.ListLinkedIdentitiesRequest\x1a'.memos.api.ListLinkedIdentitiesResponse\"7\xdaA\x06parent\x82\xd3\xe4\x93\x02(\x12&/api/{parent=users/*}/linkedIdentities\x12\x8a\x01\n" +
	"\x11GetLinkedIdentity\x12#.memos.api.GetLinkedIdentityRequest\x1a\x19.memos.api.LinkedIdentity\"5\xdaA\x04name\x82\xd3\xe4\x93\x02(\x12&/api/{name=users/*/linkedIdentities/*}\x12\xa7\x01\n" +
	"\x14CreateLinkedIdentity\x12&.memos.api.CreateLinkedIdentityRequest\x1a\x19.memos.api.LinkedIdentity\"L\xdaA\x18parent,identity_provider\x82\xd3\xe4\x93\x02+:\x01*\"&/api/{parent=users/*}/linkedIdentities\x12\x8d\x01\n" +
	"\x14DeleteLinkedIdentity\x12&.memos.api.DeleteLinkedIdentityRequest\x1a\x16.google.protobuf.Empty\"5\xdaA\x04name\x82\xd3\xe4\x93\x02(*&/api/{name=users/*/linkedIdentities/*}\x12\xb0\x01\n" +
	"\x18ListPersonalAccessTokens\x12*.memos.api.ListPersonalAccessTokensRequest\x1a+.memos.api.ListPersonalAccessTokensResponse\";\xdaA\x06parent\x82\xd3\xe4\x93\x02,\x12*/api/{parent=users/*}/personalAccessTokens\x12\xad\x01\n" +
	"\x19CreatePersonalAccessToken\x12+.memos.api.CreatePersonalAccessTokenRequest\x1a,.memos.api.CreatePersonalAccessTokenResponse\"5\x82\xd3\xe4\x93\x02/:\x01*\"*/api/{parent=users/*}/personalAccessTokens\x12\x9b\x01\n" +
	"\x19DeletePersonalAccessToken\x12+.memos.api.DeletePersonalAccessTokenRequest\x1a\x16.google.protobuf.Empty\"9\xdaA\x04name\x82\xd3\xe4\x93\x02,**/api/{name=users/*/personalAccessTokens/*}\x12x\n" +
	"\vImportMemos\x12\x1d.memos.api.ImportMemosRequest\x1a\x1e.memos.api.ImportMemosResponse\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/{name=users/*}:importMemosB\x8f\x01\n" +
	"\rcom.memos.apiB\x10UserServiceProtoP\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_user_service_proto_rawDescOnce sync.Once
	file_api_user_service_proto_rawDescData []byte
)

func file_api_user_service_proto_rawDescGZIP() []byte {
	file_api_user_service_proto_rawDescOnce.Do(func() {
		file_api_user_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_user_service_proto_rawDesc), len(file_api_user_service_proto_rawDesc)))
	})
	return file_api_user_service_proto_rawDescData
}

var file_api_user_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
var file_api_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 71)
var file_api_user_service_proto_goTypes = []any{
	(User_Role)(0),               // 0: memos.api.User.Role
	(UserSetting_Key)(0),         // 1: memos.api.UserSetting.Key
	(UserNotification_Status)(0), // 2: memos.api.UserNotification.Status
	(UserNotification_Type)(0),   // 3: memos.api.UserNotification.Type
	(UserNotification_SpaceInvitationPayload_InvitationState)(0), // 4: memos.api.UserNotification.SpaceInvitationPayload.InvitationState
	(ImportMemosRequest_ConflictPolicy)(0),                       // 5: memos.api.ImportMemosRequest.ConflictPolicy
	(*User)(nil),                                                 // 6: memos.api.User
	(*ListUsersRequest)(nil),                                     // 7: memos.api.ListUsersRequest
	(*ListUsersResponse)(nil),                                    // 8: memos.api.ListUsersResponse
	(*GetUserRequest)(nil),                                       // 9: memos.api.GetUserRequest
	(*BatchGetUsersRequest)(nil),                                 // 10: memos.api.BatchGetUsersRequest
	(*BatchGetUsersResponse)(nil),                                // 11: memos.api.BatchGetUsersResponse
	(*CreateUserRequest)(nil),                                    // 12: memos.api.CreateUserRequest
	(*UpdateUserRequest)(nil),                                    // 13: memos.api.UpdateUserRequest
	(*DeleteUserRequest)(nil),                                    // 14: memos.api.DeleteUserRequest
	(*UserSetting)(nil),                                          // 15: memos.api.UserSetting
	(*ListUserSettingsRequest)(nil),                              // 16: memos.api.ListUserSettingsRequest
	(*ListUserSettingsResponse)(nil),                             // 17: memos.api.ListUserSettingsResponse
	(*GetUserSettingRequest)(nil),                                // 18: memos.api.GetUserSettingRequest
	(*UpdateUserSettingRequest)(nil),                             // 19: memos.api.UpdateUserSettingRequest
	(*UserStats)(nil),                                            // 20: memos.api.UserStats
	(*ListUserStatsRequest)(nil),                                 // 21: memos.api.ListUserStatsRequest
	(*ListUserStatsResponse)(nil),                                // 22: memos.api.ListUserStatsResponse
	(*GetUserStatsRequest)(nil),                                  // 23: memos.api.GetUserStatsRequest
	(*UserUsage)(nil),                                            // 24: memos.api.UserUsage
	(*GetUserUsageRequest)(nil),                                  // 25: memos.api.GetUserUsageRequest
	(*MemoView)(nil),                                             // 26: memos.api.MemoView
	(*ListMemoViewsRequest)(nil),                                 // 27: memos.api.ListMemoViewsRequest
	(*ListMemoViewsResponse)(nil),                                // 28: memos.api.ListMemoViewsResponse
	(*GetMemoViewRequest)(nil),                                   // 29: memos.api.GetMemoViewRequest
	(*CreateMemoViewRequest)(nil),                                // 30: memos.api.CreateMemoViewRequest
	(*UpdateMemoViewRequest)(nil),                                // 31: memos.api.UpdateMemoViewRequest
	(*DeleteMemoViewRequest)(nil),                                // 32: memos.api.DeleteMemoViewRequest
	(*UserNotification)(nil),                                     // 33: memos.api.UserNotification
	(*ListUserNotificationsRequest)(nil),                         // 34: memos.api.ListUserNotificationsRequest
	(*ListUserNotificationsResponse)(nil),                        // 35: memos.api.ListUserNotificationsResponse
	(*UpdateUserNotificationRequest)(nil),                        // 36: memos.api.UpdateUserNotificationRequest
	(*DeleteUserNotificationRequest)(nil),                        // 37: memos.api.DeleteUserNotificationRequest
	(*UserWebhook)(nil),                                          // 38: memos.api.UserWebhook
	(*ListUserWebhooksRequest)(nil),                              // 39: memos.api.ListUserWebhooksRequest
	(*ListUserWebhooksResponse)(nil),                             // 40: memos.api.ListUserWebhooksResponse
	(*CreateUserWebhookRequest)(nil),                             // 41: memos.api.CreateUserWebhookRequest
	(*UpdateUserWebhookRequest)(nil),                             // 42: memos.api.UpdateUserWebhookRequest
	(*DeleteUserWebhookRequest)(nil),                             // 43: memos.api.DeleteUserWebhookRequest
	(*GetUserWebhookSigningSecretRequest)(nil),                   // 44: memos.api.GetUserWebhookSigningSecretRequest
	(*GetUserWebhookSigningSecretResponse)(nil),                  // 45: memos.api.GetUserWebhookSigningSecretResponse
	(*LinkedIdentity)(nil),                                       // 46: memos.api.LinkedIdentity
	(*ListLinkedIdentitiesRequest)(nil),                          // 47: memos.api.ListLinkedIdentitiesRequest
	(*ListLinkedIdentitiesResponse)(nil),                         // 48: memos.api.ListLinkedIdentitiesResponse
	(*GetLinkedIdentityRequest)(nil),                             // 49: memos.api.GetLinkedIdentityRequest
	(*CreateLinkedIdentityRequest)(nil),                          // 50: memos.api.CreateLinkedIdentityRequest
	(*DeleteLinkedIdentityRequest)(nil),                          // 51: memos.api.DeleteLinkedIdentityRequest
	(*PersonalAccessToken)(nil),                                  // 52: memos.api.PersonalAccessToken
	(*ListPersonalAccessTokensRequest)(nil),                      // 53: memos.api.ListPersonalAccessTokensRequest
	(*ListPersonalAccessTokensResponse)(nil),                     // 54: memos.api.ListPersonalAccessTokensResponse
	(*CreatePersonalAccessTokenRequest)(nil),                     // 55: memos.api.CreatePersonalAccessTokenRequest
	(*CreatePersonalAccessTokenResponse)(nil),                    // 56: memos.api.CreatePersonalAccessTokenResponse
	(*DeletePersonalAccessTokenRequest)(nil),                     // 57: memos.api.DeletePersonalAccessTokenRequest
	(*ImportMemosRequest)(nil),                                   // 58: memos.api.ImportMemosRequest
	(*ImportMemosResponse)(nil),                                  // 59: memos.api.ImportMemosResponse
	(*ImportMemosSpec)(nil),                                      // 60: memos.api.ImportMemosSpec
	(*ImportMemosPlan)(nil),                                      // 61: memos.api.ImportMemosPlan
	(*ImportMemosReport)(nil),                                    // 62: memos.api.ImportMemosReport
	(*ImportMemosIssue)(nil),                                     // 63: memos.api.ImportMemosIssue
	(*UserSetting_GeneralSetting)(nil),                           // 64: memos.api.UserSetting.GeneralSetting
	(*UserSetting_WebhooksSetting)(nil),                          // 65: memos.api.UserSetting.WebhooksSetting
	(*UserSetting_TagsSetting)(nil),                              // 66: memos.api.UserSetting.TagsSetting
	(*UserSetting_TagMetadata)(nil),                              // 67: memos.api.UserSetting.TagMetadata
	(*UserSetting_EditorSetting)(nil),                            // 68: memos.api.UserSetting.EditorSetting
	nil,                                                          // 69: memos.api.UserSetting.TagsSetting.TagsEntry
	nil,                                                          // 70: memos.api.UserStats.TagCountsEntry
	(*UserStats_MemoTypeStats)(nil),                              // 71: memos.api.UserStats.MemoTypeStats
	(*UserUsage_Limits)(nil),                                     // 72: memos.api.UserUsage.Limits
	(*MemoView_Icon)(nil),                                        // 73: memos.api.MemoView.Icon
	(*UserNotification_MemoCommentPayload)(nil),                  // 74: memos.api.UserNotification.MemoCommentPayload
	(*UserNotification_MemoMentionPayload)(nil),                  // 75: memos.api.UserNotification.MemoMentionPayload
	(*UserNotification_SpaceInvitationPayload)(nil),              // 76: memos.api.UserNotification.SpaceInvitationPayload
	(State)(0),                    // 77: memos.api.State
	(*timestamppb.Timestamp)(nil), // 78: google.protobuf.Timestamp
	(*fieldmaskpb.FieldMask)(nil), // 79: google.protobuf.FieldMask
	(*color.Color)(nil),           // 80: google.type.Color
	(*Space)(nil),                 // 81: memos.api.Space
	(SpaceMember_Role)(0),         // 82: memos.api.SpaceMember.Role
	(*emptypb.Empty)(nil),         // 83: google.protobuf.Empty
}
var file_api_user_service_proto_depIdxs = []int32{
	0,  // 0: memos.api.User.role:type_name -> memos.api.User.Role
	77, // 1: memos.api.User.state:type_name -> memos.api.State
	78, // 2: memos.api.User.create_time:type_name -> google.protobuf.Timestamp
	78, // 3: memos.api.User.update_time:type_name -> google.protobuf.Timestamp
	6,  // 4: memos.api.ListUsersResponse.users:type_name -> memos.api.User
	79, // 5: memos.api.GetUserRequest.read_mask:type_name -> google.protobuf.FieldMask
	6,  // 6: memos.api.BatchGetUsersResponse.users:type_name -> memos.api.User
	6,  // 7: memos.api.CreateUserRequest.user:type_name -> memos.api.User
	6,  // 8: memos.api.UpdateUserRequest.user:type_name -> memos.api.User
	79, // 9: memos.api.UpdateUserRequest.update_mask:type_name -> google.protobuf.FieldMask
	64, // 10: memos.api.UserSetting.general_setting:type_name -> memos.api.UserSetting.GeneralSetting
	65, // 11: memos.api.UserSetting.webhooks_setting:type_name -> memos.api.UserSetting.WebhooksSetting
	66, // 12: memos.api.UserSetting.tags_setting:type_name -> memos.api.UserSetting.TagsSetting
	68, // 13: memos.api.UserSetting.editor_setting:type_name -> memos.api.UserSetting.EditorSetting
	15, // 14: memos.api.ListUserSettingsResponse.user_settings:type_name -> memos.api.UserSetting
	15, // 15: memos.api.UpdateUserSettingRequest.user_setting:type_name -> memos.api.UserSetting
	79, // 16: memos.api.UpdateUserSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
	71, // 17: memos.api.UserStats.memo_type_stats:type_name -> memos.api.UserStats.MemoTypeStats
	70, // 18: memos.api.UserStats.tag_counts:type_name -> memos.api.UserStats.TagCountsEntry
	78, // 19: memos.api.UserStats.memo_created_timestamps:type_name -> google.protobuf.Timestamp
	78, // 20: memos.api.UserStats.memo_updated_timestamps:type_name -> google.protobuf.Timestamp
	77, // 21: memos.api.ListUserStatsRequest.state:type_name -> memos.api.State
	20, // 22: memos.api.ListUserStatsResponse.user_stats:type_name -> memos.api.UserStats
	72, // 23: memos.api.UserUsage.limits:type_name -> memos.api.UserUsage.Limits
	73, // 24: memos.api.MemoView.icon:type_name -> memos.api.MemoView.Icon
	26, // 25: memos.api.ListMemoViewsResponse.memo_views:type_name -> memos.api.MemoView
	26, // 26: memos.api.CreateMemoViewRequest.memo_view:type_name -> memos.api.MemoView
	26, // 27: memos.api.UpdateMemoViewRequest.memo_view:type_name -> memos.api.MemoView
	79, // 28: memos.api.UpdateMemoViewRequest.update_mask:type_name -> google.protobuf.FieldMask
	6,  // 29: memos.api.UserNotification.sender_user:type_name -> memos.api.User
	3,  // 30: memos.api.UserNotification.type:type_name -> memos.api.UserNotification.Type
	74, // 31: memos.api.UserNotification.memo_comment:type_name -> memos.api.UserNotification.MemoCommentPayload
	75, // 32: memos.api.UserNotification.memo_mention:type_name -> memos.api.UserNotification.MemoMentionPayload
	76, // 33: memos.api.UserNotification.space_invitation:type_name -> memos.api.UserNotification.SpaceInvitationPayload
	2,  // 34: memos.api.UserNotification.status:type_name -> memos.api.UserNotification.Status
	78, // 35: memos.api.UserNotification.create_time:type_name -> google.protobuf.Timestamp
	33, // 36: memos.api.ListUserNotificationsResponse.notifications:type_name -> memos.api.UserNotification
	33, // 37: memos.api.UpdateUserNotificationRequest.notification:type_name -> memos.api.UserNotification
	79, // 38: memos.api.UpdateUserNotificationRequest.update_mask:type_name -> google.protobuf.FieldMask
	78, // 39: memos.api.UserWebhook.create_time:type_name -> google.protobuf.Timestamp
	78, // 40: memos.api.UserWebhook.update_time:type_name -> google.protobuf.Timestamp
	38, // 41: memos.api.ListUserWebhooksResponse.webhooks:type_name -> memos.api.UserWebhook
	38, // 42: memos.api.CreateUserWebhookRequest.webhook:type_name -> memos.api.UserWebhook
	38, // 43: memos.api.UpdateUserWebhookRequest.webhook:type_name -> memos.api.UserWebhook
	79, // 44: memos.api.UpdateUserWebhookRequest.update_mask:type_name -> google.protobuf.FieldMask
	46, // 45: memos.api.ListLinkedIdentitiesResponse.linked_identities:type_name -> memos.api.LinkedIdentity
	78, // 46: memos.api.PersonalAccessToken.create_time:type_name -> google.protobuf.Timestamp
	78, // 47: memos.api.PersonalAccessToken.expire_time:type_name -> google.protobuf.Timestamp
	78, // 48: memos.api.PersonalAccessToken.last_use_time:type_name -> google.protobuf.Timestamp
	52, // 49: memos.api.ListPersonalAccessTokensResponse.personal_access_tokens:type_name -> memos.api.PersonalAccessToken
	52, // 50: memos.api.CreatePersonalAccessTokenResponse.personal_access_token:type_name -> memos.api.PersonalAccessToken
	60, // 51: memos.api.ImportMemosRequest.spec:type_name -> memos.api.ImportMemosSpec
	5,  // 52: memos.api.ImportMemosRequest.conflict_policy:type_name -> memos.api.ImportMemosRequest.ConflictPolicy
	61, // 53: memos.api.ImportMemosResponse.plan:type_name -> memos.api.ImportMemosPlan
	62, // 54: memos.api.ImportMemosResponse.report:type_name -> memos.api.ImportMemosReport
	78, // 55: memos.api.ImportMemosPlan.export_time:type_name -> google.protobuf.Timestamp
	63, // 56: memos.api.ImportMemosPlan.warnings:type_name -> memos.api.ImportMemosIssue
	63, // 57: memos.api.ImportMemosReport.warnings:type_name -> memos.api.ImportMemosIssue
	63, // 58: memos.api.ImportMemosReport.failures:type_name -> memos.api.ImportMemosIssue
	38, // 59: memos.api.UserSetting.WebhooksSetting.webhooks:type_name -> memos.api.UserWebhook
	69, // 60: memos.api.UserSetting.TagsSetting.tags:type_name -> memos.api.UserSetting.TagsSetting.TagsEntry
	80, // 61: memos.api.UserSetting.TagMetadata.background_color:type_name -> google.type.Color
	67, // 62: memos.api.UserSetting.TagsSetting.TagsEntry.value:type_name -> memos.api.UserSetting.TagMetadata
	81, // 63: memos.api.UserNotification.SpaceInvitationPayload.space:type_name -> memos.api.Space
	82, // 64: memos.api.UserNotification.SpaceInvitationPayload.role:type_name -> memos.api.SpaceMember.Role
	4,  // 65: memos.api.UserNotification.SpaceInvitationPayload.state:type_name -> memos.api.UserNotification.SpaceInvitationPayload.InvitationState
	7,  // 66: memos.api.UserService.ListUsers:input_type -> memos.api.ListUsersRequest
	9,  // 67: memos.api.UserService.GetUser:input_type -> memos.api.GetUserRequest
	10, // 68: memos.api.UserService.BatchGetUsers:input_type -> memos.api.BatchGetUsersRequest
	12, // 69: memos.api.UserService.CreateUser:input_type -> memos.api.CreateUserRequest
	13, // 70: memos.api.UserService.UpdateUser:input_type -> memos.api.UpdateUserRequest
	14, // 71: memos.api.UserService.DeleteUser:input_type -> memos.api.DeleteUserRequest
	16, // 72: memos.api.UserService.ListUserSettings:input_type -> memos.api.ListUserSettingsRequest
	18, // 73: memos.api.UserService.GetUserSetting:input_type -> memos.api.GetUserSettingRequest
	19, // 74: memos.api.UserService.UpdateUserSetting:input_type -> memos.api.UpdateUserSettingRequest
	21, // 75: memos.api.UserService.ListUserStats:input_type -> memos.api.ListUserStatsRequest
	23, // 76: memos.api.UserService.GetUserStats:input_type -> memos.api.GetUserStatsRequest
	25, // 77: memos.api.UserService.GetUserUsage:input_type -> memos.api.GetUserUsageRequest
	27, // 78: memos.api.UserService.ListMemoViews:input_type -> memos.api.ListMemoViewsRequest
	29, // 79: memos.api.UserService.GetMemoView:input_type -> memos.api.GetMemoViewRequest
	30, // 80: memos.api.UserService.CreateMemoView:input_type -> memos.api.CreateMemoViewRequest
	31, // 81: memos.api.UserService.UpdateMemoView:input_type -> memos.api.UpdateMemoViewRequest
	32, // 82: memos.api.UserService.DeleteMemoView:input_type -> memos.api.DeleteMemoViewRequest
	34, // 83: memos.api.UserService.ListUserNotifications:input_type -> memos.api.ListUserNotificationsRequest
	36, // 84: memos.api.UserService.UpdateUserNotification:input_type -> memos.api.UpdateUserNotificationRequest
	37, // 85: memos.api.UserService.DeleteUserNotification:input_type -> memos.api.DeleteUserNotificationRequest
	39, // 86: memos.api.UserService.ListUserWebhooks:input_type -> memos.api.ListUserWebhooksRequest
	41, // 87: memos.api.UserService.CreateUserWebhook:input_type -> memos.api.CreateUserWebhookRequest
	42, // 88: memos.api.UserService.UpdateUserWebhook:input_type -> memos.api.UpdateUserWebhookRequest
	43, // 89: memos.api.UserService.DeleteUserWebhook:input_type -> memos.api.DeleteUserWebhookRequest
	44, // 90: memos.api.UserService.GetUserWebhookSigningSecret:input_type -> memos.api.GetUserWebhookSigningSecretRequest
	47, // 91: memos.api.UserService.ListLinkedIdentities:input_type -> memos.api.ListLinkedIdentitiesRequest
	49, // 92: memos.api.UserService.GetLinkedIdentity:input_type -> memos.api.GetLinkedIdentityRequest
	50, // 93: memos.api.UserService.CreateLinkedIdentity:input_type -> memos.api.CreateLinkedIdentityRequest
	51, // 94: memos.api.UserService.DeleteLinkedIdentity:input_type -> memos.api.DeleteLinkedIdentityRequest
	53, // 95: memos.api.UserService.ListPersonalAccessTokens:input_type -> memos.api.ListPersonalAccessTokensRequest
	55, // 96: memos.api.UserService.CreatePersonalAccessToken:input_type -> memos.api.CreatePersonalAccessTokenRequest
	57, // 97: memos.api.UserService.DeletePersonalAccessToken:input_type -> memos.api.DeletePersonalAccessTokenRequest
	58, // 98: memos.api.UserService.ImportMemos:input_type -> memos.api.ImportMemosRequest
	8,  // 99: memos.api.UserService.ListUsers:output_type -> memos.api.ListUsersResponse
	6,  // 100: memos.api.UserService.GetUser:output_type -> memos.api.User
	11, // 101: memos.api.UserService.BatchGetUsers:output_type -> memos.api.BatchGetUsersResponse
	6,  // 102: memos.api.UserService.CreateUser:output_type -> memos.api.User
	6,  // 103: memos.api.UserService.UpdateUser:output_type -> memos.api.User
	83, // 104: memos.api.UserService.DeleteUser:output_type -> google.protobuf.Empty
	17, // 105: memos.api.UserService.ListUserSettings:output_type -> memos.api.ListUserSettingsResponse
	15, // 106: memos.api.UserService.GetUserSetting:output_type -> memos.api.UserSetting
	15, // 107: memos.api.UserService.UpdateUserSetting:output_type -> memos.api.UserSetting
	22, // 108: memos.api.UserService.ListUserStats:output_type -> memos.api.ListUserStatsResponse
	20, // 109: memos.api.UserService.GetUserStats:output_type -> memos.api.UserStats
	24, // 110: memos.api.UserService.GetUserUsage:output_type -> memos.api.UserUsage
	28, // 111: memos.api.UserService.ListMemoViews:output_type -> memos.api.ListMemoViewsResponse
	26, // 112: memos.api.UserService.GetMemoView:output_type -> memos.api.MemoView
	26, // 113: memos.api.UserService.CreateMemoView:output_type -> memos.api.MemoView
	26, // 114: memos.api.UserService.UpdateMemoView:output_type -> memos.api.MemoView
	83, // 115: memos.api.UserService.DeleteMemoView:output_type -> google.protobuf.Empty
	35, // 116: memos.api.UserService.ListUserNotifications:output_type -> memos.api.ListUserNotificationsResponse
	33, // 117: memos.api.UserService.UpdateUserNotification:output_type -> memos.api.UserNotification
	83, // 118: memos.api.UserService.DeleteUserNotification:output_type -> google.protobuf.Empty
	40, // 119: memos.api.UserService.ListUserWebhooks:output_type -> memos.api.ListUserWebhooksResponse
	38, // 120: memos.api.UserService.CreateUserWebhook:output_type -> memos.api.UserWebhook
	38, // 121: memos.api.UserService.UpdateUserWebhook:output_type -> memos.api.UserWebhook
	83, // 122: memos.api.UserService.DeleteUserWebhook:output_type -> google.protobuf.Empty
	45, // 123: memos.api.UserService.GetUserWebhookSigningSecret:output_type -> memos.api.GetUserWebhookSigningSecretResponse
	48, // 124: memos.api.UserService.ListLinkedIdentities:output_type -> memos.api.ListLinkedIdentitiesResponse
	46, // 125: memos.api.UserService.GetLinkedIdentity:output_type -> memos.api.LinkedIdentity
	46, // 126: memos.api.UserService.CreateLinkedIdentity:output_type -> memos.api.LinkedIdentity
	83, // 127: memos.api.UserService.DeleteLinkedIdentity:output_type -> google.protobuf.Empty
	54, // 128: memos.api.UserService.ListPersonalAccessTokens:output_type -> memos.api.ListPersonalAccessTokensResponse
	56, // 129: memos.api.UserService.CreatePersonalAccessToken:output_type -> memos.api.CreatePersonalAccessTokenResponse
	83, // 130: memos.api.UserService.DeletePersonalAccessToken:output_type -> google.protobuf.Empty
	59, // 131: memos.api.UserService.ImportMemos:output_type -> memos.api.ImportMemosResponse
	99, // [99:132] is the sub-list for method output_type
	66, // [66:99] is the sub-list for method input_type
	66, // [66:66] is the sub-list for extension type_name
	66, // [66:66] is the sub-list for extension extendee
	0,  // [0:66] is the sub-list for field type_name
}

func init() { file_api_user_service_proto_init() }
func file_api_user_service_proto_init() {
	if File_api_user_service_proto != nil {
		return
	}
	file_api_common_proto_init()
	file_api_space_service_proto_init()
	file_api_user_service_proto_msgTypes[9].OneofWrappers = []any{
		(*UserSetting_GeneralSetting_)(nil),
		(*UserSetting_WebhooksSetting_)(nil),
		(*UserSetting_TagsSetting_)(nil),
		(*UserSetting_EditorSetting_)(nil),
	}
	file_api_user_service_proto_msgTypes[14].OneofWrappers = []any{}
	file_api_user_service_proto_msgTypes[27].OneofWrappers = []any{
		(*UserNotification_MemoComment)(nil),
		(*UserNotification_MemoMention)(nil),
		(*UserNotification_SpaceInvitation)(nil),
	}
	file_api_user_service_proto_msgTypes[52].OneofWrappers = []any{
		(*ImportMemosRequest_Spec)(nil),
		(*ImportMemosRequest_UploadId)(nil),
	}
	file_api_user_service_proto_msgTypes[53].OneofWrappers = []any{
		(*ImportMemosResponse_Plan)(nil),
		(*ImportMemosResponse_Report)(nil),
	}
	file_api_user_service_proto_msgTypes[66].OneofWrappers = []any{}
	file_api_user_service_proto_msgTypes[67].OneofWrappers = []any{
		(*MemoView_Icon_Emoji)(nil),
		(*MemoView_Icon_Lucide)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_user_service_proto_rawDesc), len(file_api_user_service_proto_rawDesc)),
			NumEnums:      6,
			NumMessages:   71,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_api_user_service_proto_goTypes,
		DependencyIndexes: file_api_user_service_proto_depIdxs,
		EnumInfos:         file_api_user_service_proto_enumTypes,
		MessageInfos:      file_api_user_service_proto_msgTypes,
	}.Build()
	File_api_user_service_proto = out.File
	file_api_user_service_proto_goTypes = nil
	file_api_user_service_proto_depIdxs = nil
}