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.

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

package store

import (
	color "google.golang.org/genproto/googleapis/type/color"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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)
)

type InstanceSettingKey int32

const (
	InstanceSettingKey_INSTANCE_SETTING_KEY_UNSPECIFIED InstanceSettingKey = 0
	// BASIC is the key for basic settings.
	InstanceSettingKey_BASIC InstanceSettingKey = 1
	// GENERAL is the key for general settings.
	InstanceSettingKey_GENERAL InstanceSettingKey = 2
	// STORAGE is the key for storage settings.
	InstanceSettingKey_STORAGE InstanceSettingKey = 3
	// MEMO_RELATED is the key for memo related settings.
	InstanceSettingKey_MEMO_RELATED InstanceSettingKey = 4
	// TAGS is the key for tag metadata.
	InstanceSettingKey_TAGS InstanceSettingKey = 5
	// NOTIFICATION is the key for notification transport settings.
	InstanceSettingKey_NOTIFICATION InstanceSettingKey = 6
	// AI is the key for AI provider settings.
	InstanceSettingKey_AI InstanceSettingKey = 7
	// ACCESS is the key for instance access policy settings.
	InstanceSettingKey_ACCESS InstanceSettingKey = 8
	// USAGE_LIMITS is the key for the ordered usage limits list, read and
	// replaced whole through the instance settings API.
	InstanceSettingKey_USAGE_LIMITS InstanceSettingKey = 9
	// CONFIGURATION_STATE is the key for the declarative configuration state
	// record. It is state, not a setting: the instance settings API never reads
	// or writes it, and configuration files cannot declare it.
	InstanceSettingKey_CONFIGURATION_STATE InstanceSettingKey = 10
)

// Enum value maps for InstanceSettingKey.
var (
	InstanceSettingKey_name = map[int32]string{
		0:  "INSTANCE_SETTING_KEY_UNSPECIFIED",
		1:  "BASIC",
		2:  "GENERAL",
		3:  "STORAGE",
		4:  "MEMO_RELATED",
		5:  "TAGS",
		6:  "NOTIFICATION",
		7:  "AI",
		8:  "ACCESS",
		9:  "USAGE_LIMITS",
		10: "CONFIGURATION_STATE",
	}
	InstanceSettingKey_value = map[string]int32{
		"INSTANCE_SETTING_KEY_UNSPECIFIED": 0,
		"BASIC":                            1,
		"GENERAL":                          2,
		"STORAGE":                          3,
		"MEMO_RELATED":                     4,
		"TAGS":                             5,
		"NOTIFICATION":                     6,
		"AI":                               7,
		"ACCESS":                           8,
		"USAGE_LIMITS":                     9,
		"CONFIGURATION_STATE":              10,
	}
)

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

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

func (InstanceSettingKey) Descriptor() protoreflect.EnumDescriptor {
	return file_store_instance_setting_proto_enumTypes[0].Descriptor()
}

func (InstanceSettingKey) Type() protoreflect.EnumType {
	return &file_store_instance_setting_proto_enumTypes[0]
}

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

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

type StorageType int32

const (
	StorageType_STORAGE_TYPE_UNSPECIFIED StorageType = 0
	// DATABASE stores attachment content in the application database.
	StorageType_STORAGE_TYPE_DATABASE StorageType = 1
	// LOCAL stores attachment content on the local filesystem.
	StorageType_STORAGE_TYPE_LOCAL StorageType = 2
	// S3 stores attachment content in an S3-compatible object store.
	StorageType_STORAGE_TYPE_S3 StorageType = 3
)

// Enum value maps for StorageType.
var (
	StorageType_name = map[int32]string{
		0: "STORAGE_TYPE_UNSPECIFIED",
		1: "STORAGE_TYPE_DATABASE",
		2: "STORAGE_TYPE_LOCAL",
		3: "STORAGE_TYPE_S3",
	}
	StorageType_value = map[string]int32{
		"STORAGE_TYPE_UNSPECIFIED": 0,
		"STORAGE_TYPE_DATABASE":    1,
		"STORAGE_TYPE_LOCAL":       2,
		"STORAGE_TYPE_S3":          3,
	}
)

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

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

func (StorageType) Descriptor() protoreflect.EnumDescriptor {
	return file_store_instance_setting_proto_enumTypes[1].Descriptor()
}

func (StorageType) Type() protoreflect.EnumType {
	return &file_store_instance_setting_proto_enumTypes[1]
}

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

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

type AIProviderType int32

const (
	AIProviderType_AI_PROVIDER_TYPE_UNSPECIFIED AIProviderType = 0
	AIProviderType_OPENAI                       AIProviderType = 1
	AIProviderType_GEMINI                       AIProviderType = 2
)

// Enum value maps for AIProviderType.
var (
	AIProviderType_name = map[int32]string{
		0: "AI_PROVIDER_TYPE_UNSPECIFIED",
		1: "OPENAI",
		2: "GEMINI",
	}
	AIProviderType_value = map[string]int32{
		"AI_PROVIDER_TYPE_UNSPECIFIED": 0,
		"OPENAI":                       1,
		"GEMINI":                       2,
	}
)

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

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

func (AIProviderType) Descriptor() protoreflect.EnumDescriptor {
	return file_store_instance_setting_proto_enumTypes[2].Descriptor()
}

func (AIProviderType) Type() protoreflect.EnumType {
	return &file_store_instance_setting_proto_enumTypes[2]
}

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

// Deprecated: Use AIProviderType.Descriptor instead.
func (AIProviderType) EnumDescriptor() ([]byte, []int) {
	return file_store_instance_setting_proto_rawDescGZIP(), []int{2}
}

type InstanceAccessMode int32

const (
	InstanceAccessMode_INSTANCE_ACCESS_MODE_UNSPECIFIED InstanceAccessMode = 0
	InstanceAccessMode_INSTANCE_ACCESS_MODE_PRIVATE     InstanceAccessMode = 1
	InstanceAccessMode_INSTANCE_ACCESS_MODE_PUBLIC      InstanceAccessMode = 2
)

// Enum value maps for InstanceAccessMode.
var (
	InstanceAccessMode_name = map[int32]string{
		0: "INSTANCE_ACCESS_MODE_UNSPECIFIED",
		1: "INSTANCE_ACCESS_MODE_PRIVATE",
		2: "INSTANCE_ACCESS_MODE_PUBLIC",
	}
	InstanceAccessMode_value = map[string]int32{
		"INSTANCE_ACCESS_MODE_UNSPECIFIED": 0,
		"INSTANCE_ACCESS_MODE_PRIVATE":     1,
		"INSTANCE_ACCESS_MODE_PUBLIC":      2,
	}
)

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

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

func (InstanceAccessMode) Descriptor() protoreflect.EnumDescriptor {
	return file_store_instance_setting_proto_enumTypes[3].Descriptor()
}

func (InstanceAccessMode) Type() protoreflect.EnumType {
	return &file_store_instance_setting_proto_enumTypes[3]
}

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

// Deprecated: Use InstanceAccessMode.Descriptor instead.
func (InstanceAccessMode) EnumDescriptor() ([]byte, []int) {
	return file_store_instance_setting_proto_rawDescGZIP(), []int{3}
}

// Legacy storage type enum retained for compatibility with existing settings.
type InstanceStorageSetting_StorageType int32

const (
	InstanceStorageSetting_STORAGE_TYPE_UNSPECIFIED InstanceStorageSetting_StorageType = 0
	// STORAGE_TYPE_DATABASE is the database storage type.
	InstanceStorageSetting_DATABASE InstanceStorageSetting_StorageType = 1
	// STORAGE_TYPE_LOCAL is the local storage type.
	InstanceStorageSetting_LOCAL InstanceStorageSetting_StorageType = 2
	// STORAGE_TYPE_S3 is the S3 storage type.
	InstanceStorageSetting_S3 InstanceStorageSetting_StorageType = 3
)

// Enum value maps for InstanceStorageSetting_StorageType.
var (
	InstanceStorageSetting_StorageType_name = map[int32]string{
		0: "STORAGE_TYPE_UNSPECIFIED",
		1: "DATABASE",
		2: "LOCAL",
		3: "S3",
	}
	InstanceStorageSetting_StorageType_value = map[string]int32{
		"STORAGE_TYPE_UNSPECIFIED": 0,
		"DATABASE":                 1,
		"LOCAL":                    2,
		"S3":                       3,
	}
)

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

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

func (InstanceStorageSetting_StorageType) Descriptor() protoreflect.EnumDescriptor {
	return file_store_instance_setting_proto_enumTypes[4].Descriptor()
}

func (InstanceStorageSetting_StorageType) Type() protoreflect.EnumType {
	return &file_store_instance_setting_proto_enumTypes[4]
}

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

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

type InstanceSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	Key   InstanceSettingKey     `protobuf:"varint,1,opt,name=key,proto3,enum=memos.store.InstanceSettingKey" json:"key,omitempty"`
	// Types that are valid to be assigned to Value:
	//
	//	*InstanceSetting_BasicSetting
	//	*InstanceSetting_GeneralSetting
	//	*InstanceSetting_StorageSetting
	//	*InstanceSetting_MemoRelatedSetting
	//	*InstanceSetting_TagsSetting
	//	*InstanceSetting_NotificationSetting
	//	*InstanceSetting_AiSetting
	//	*InstanceSetting_AccessSetting
	//	*InstanceSetting_UsageLimitsSetting
	Value         isInstanceSetting_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceSetting) ProtoMessage() {}

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

func (x *InstanceSetting) GetKey() InstanceSettingKey {
	if x != nil {
		return x.Key
	}
	return InstanceSettingKey_INSTANCE_SETTING_KEY_UNSPECIFIED
}

func (x *InstanceSetting) GetValue() isInstanceSetting_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *InstanceSetting) GetBasicSetting() *InstanceBasicSetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_BasicSetting); ok {
			return x.BasicSetting
		}
	}
	return nil
}

func (x *InstanceSetting) GetGeneralSetting() *InstanceGeneralSetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_GeneralSetting); ok {
			return x.GeneralSetting
		}
	}
	return nil
}

func (x *InstanceSetting) GetStorageSetting() *InstanceStorageSetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_StorageSetting); ok {
			return x.StorageSetting
		}
	}
	return nil
}

func (x *InstanceSetting) GetMemoRelatedSetting() *InstanceMemoRelatedSetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_MemoRelatedSetting); ok {
			return x.MemoRelatedSetting
		}
	}
	return nil
}

func (x *InstanceSetting) GetTagsSetting() *InstanceTagsSetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_TagsSetting); ok {
			return x.TagsSetting
		}
	}
	return nil
}

func (x *InstanceSetting) GetNotificationSetting() *InstanceNotificationSetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_NotificationSetting); ok {
			return x.NotificationSetting
		}
	}
	return nil
}

func (x *InstanceSetting) GetAiSetting() *InstanceAISetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_AiSetting); ok {
			return x.AiSetting
		}
	}
	return nil
}

func (x *InstanceSetting) GetAccessSetting() *InstanceAccessSetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_AccessSetting); ok {
			return x.AccessSetting
		}
	}
	return nil
}

func (x *InstanceSetting) GetUsageLimitsSetting() *InstanceUsageLimitsSetting {
	if x != nil {
		if x, ok := x.Value.(*InstanceSetting_UsageLimitsSetting); ok {
			return x.UsageLimitsSetting
		}
	}
	return nil
}

type isInstanceSetting_Value interface {
	isInstanceSetting_Value()
}

type InstanceSetting_BasicSetting struct {
	BasicSetting *InstanceBasicSetting `protobuf:"bytes,2,opt,name=basic_setting,json=basicSetting,proto3,oneof"`
}

type InstanceSetting_GeneralSetting struct {
	GeneralSetting *InstanceGeneralSetting `protobuf:"bytes,3,opt,name=general_setting,json=generalSetting,proto3,oneof"`
}

type InstanceSetting_StorageSetting struct {
	StorageSetting *InstanceStorageSetting `protobuf:"bytes,4,opt,name=storage_setting,json=storageSetting,proto3,oneof"`
}

type InstanceSetting_MemoRelatedSetting struct {
	MemoRelatedSetting *InstanceMemoRelatedSetting `protobuf:"bytes,5,opt,name=memo_related_setting,json=memoRelatedSetting,proto3,oneof"`
}

type InstanceSetting_TagsSetting struct {
	TagsSetting *InstanceTagsSetting `protobuf:"bytes,6,opt,name=tags_setting,json=tagsSetting,proto3,oneof"`
}

type InstanceSetting_NotificationSetting struct {
	NotificationSetting *InstanceNotificationSetting `protobuf:"bytes,7,opt,name=notification_setting,json=notificationSetting,proto3,oneof"`
}

type InstanceSetting_AiSetting struct {
	AiSetting *InstanceAISetting `protobuf:"bytes,8,opt,name=ai_setting,json=aiSetting,proto3,oneof"`
}

type InstanceSetting_AccessSetting struct {
	AccessSetting *InstanceAccessSetting `protobuf:"bytes,9,opt,name=access_setting,json=accessSetting,proto3,oneof"`
}

type InstanceSetting_UsageLimitsSetting struct {
	UsageLimitsSetting *InstanceUsageLimitsSetting `protobuf:"bytes,10,opt,name=usage_limits_setting,json=usageLimitsSetting,proto3,oneof"`
}

func (*InstanceSetting_BasicSetting) isInstanceSetting_Value() {}

func (*InstanceSetting_GeneralSetting) isInstanceSetting_Value() {}

func (*InstanceSetting_StorageSetting) isInstanceSetting_Value() {}

func (*InstanceSetting_MemoRelatedSetting) isInstanceSetting_Value() {}

func (*InstanceSetting_TagsSetting) isInstanceSetting_Value() {}

func (*InstanceSetting_NotificationSetting) isInstanceSetting_Value() {}

func (*InstanceSetting_AiSetting) isInstanceSetting_Value() {}

func (*InstanceSetting_AccessSetting) isInstanceSetting_Value() {}

func (*InstanceSetting_UsageLimitsSetting) isInstanceSetting_Value() {}

type InstanceBasicSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The secret key for instance. Mainly used for session management.
	SecretKey string `protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
	// The current schema version of database.
	SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	// The memopayload.Version every memo's content-derived payload has been
	// rebuilt to. A lower value makes the server rebuild them in the background.
	PayloadVersion int32 `protobuf:"varint,3,opt,name=payload_version,json=payloadVersion,proto3" json:"payload_version,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*InstanceBasicSetting) ProtoMessage() {}

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

func (x *InstanceBasicSetting) GetSecretKey() string {
	if x != nil {
		return x.SecretKey
	}
	return ""
}

func (x *InstanceBasicSetting) GetSchemaVersion() string {
	if x != nil {
		return x.SchemaVersion
	}
	return ""
}

func (x *InstanceBasicSetting) GetPayloadVersion() int32 {
	if x != nil {
		return x.PayloadVersion
	}
	return 0
}

type InstanceGeneralSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// disallow_user_registration disallows user registration.
	DisallowUserRegistration bool `protobuf:"varint,1,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"`
	// disallow_password_auth disallows password authentication.
	DisallowPasswordAuth bool `protobuf:"varint,2,opt,name=disallow_password_auth,json=disallowPasswordAuth,proto3" json:"disallow_password_auth,omitempty"`
	// additional_script is the additional script.
	AdditionalScript string `protobuf:"bytes,3,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"`
	// additional_style is the additional style.
	AdditionalStyle string `protobuf:"bytes,4,opt,name=additional_style,json=additionalStyle,proto3" json:"additional_style,omitempty"`
	// custom_profile is the custom profile.
	CustomProfile *InstanceCustomProfile `protobuf:"bytes,5,opt,name=custom_profile,json=customProfile,proto3" json:"custom_profile,omitempty"`
	// week_start_day_offset is the week start day offset from Sunday.
	// 0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday
	// Default is Sunday.
	WeekStartDayOffset int32 `protobuf:"varint,6,opt,name=week_start_day_offset,json=weekStartDayOffset,proto3" json:"week_start_day_offset,omitempty"`
	// disallow_change_username disallows changing username.
	DisallowChangeUsername bool `protobuf:"varint,7,opt,name=disallow_change_username,json=disallowChangeUsername,proto3" json:"disallow_change_username,omitempty"`
	// disallow_change_nickname disallows changing nickname.
	DisallowChangeNickname bool `protobuf:"varint,8,opt,name=disallow_change_nickname,json=disallowChangeNickname,proto3" json:"disallow_change_nickname,omitempty"`
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

func (x *InstanceGeneralSetting) Reset() {
	*x = InstanceGeneralSetting{}
	mi := &file_store_instance_setting_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*InstanceGeneralSetting) ProtoMessage() {}

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

func (x *InstanceGeneralSetting) GetDisallowUserRegistration() bool {
	if x != nil {
		return x.DisallowUserRegistration
	}
	return false
}

func (x *InstanceGeneralSetting) GetDisallowPasswordAuth() bool {
	if x != nil {
		return x.DisallowPasswordAuth
	}
	return false
}

func (x *InstanceGeneralSetting) GetAdditionalScript() string {
	if x != nil {
		return x.AdditionalScript
	}
	return ""
}

func (x *InstanceGeneralSetting) GetAdditionalStyle() string {
	if x != nil {
		return x.AdditionalStyle
	}
	return ""
}

func (x *InstanceGeneralSetting) GetCustomProfile() *InstanceCustomProfile {
	if x != nil {
		return x.CustomProfile
	}
	return nil
}

func (x *InstanceGeneralSetting) GetWeekStartDayOffset() int32 {
	if x != nil {
		return x.WeekStartDayOffset
	}
	return 0
}

func (x *InstanceGeneralSetting) GetDisallowChangeUsername() bool {
	if x != nil {
		return x.DisallowChangeUsername
	}
	return false
}

func (x *InstanceGeneralSetting) GetDisallowChangeNickname() bool {
	if x != nil {
		return x.DisallowChangeNickname
	}
	return false
}

type InstanceCustomProfile struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Title         string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description   string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	LogoUrl       string                 `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceCustomProfile) ProtoMessage() {}

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

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

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

func (x *InstanceCustomProfile) GetLogoUrl() string {
	if x != nil {
		return x.LogoUrl
	}
	return ""
}

// Storage is a configured attachment storage instance.
type Storage struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// id is the stable identifier referenced by attachments.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name is the human-readable storage name.
	Name string      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type StorageType `protobuf:"varint,3,opt,name=type,proto3,enum=memos.store.StorageType" json:"type,omitempty"`
	// Types that are valid to be assigned to Config:
	//
	//	*Storage_S3Config
	Config        isStorage_Config `protobuf_oneof:"config"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Storage) ProtoMessage() {}

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

func (x *Storage) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

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

func (x *Storage) GetType() StorageType {
	if x != nil {
		return x.Type
	}
	return StorageType_STORAGE_TYPE_UNSPECIFIED
}

func (x *Storage) GetConfig() isStorage_Config {
	if x != nil {
		return x.Config
	}
	return nil
}

func (x *Storage) GetS3Config() *StorageS3Config {
	if x != nil {
		if x, ok := x.Config.(*Storage_S3Config); ok {
			return x.S3Config
		}
	}
	return nil
}

type isStorage_Config interface {
	isStorage_Config()
}

type Storage_S3Config struct {
	S3Config *StorageS3Config `protobuf:"bytes,4,opt,name=s3_config,json=s3Config,proto3,oneof"`
}

func (*Storage_S3Config) isStorage_Config() {}

type InstanceStorageSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Legacy compatibility field. New code uses default_storage_id.
	StorageType InstanceStorageSetting_StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=memos.store.InstanceStorageSetting_StorageType" json:"storage_type,omitempty"`
	// The template of file path.
	// e.g. assets/{timestamp}_{filename}
	FilepathTemplate string `protobuf:"bytes,2,opt,name=filepath_template,json=filepathTemplate,proto3" json:"filepath_template,omitempty"`
	// Legacy compatibility field. New code uses storages.
	S3Config *StorageS3Config `protobuf:"bytes,3,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
	// storages contains configured storage instances, including inactive instances
	// that may still be referenced by existing attachments.
	Storages []*Storage `protobuf:"bytes,4,rep,name=storages,proto3" json:"storages,omitempty"`
	// default_storage_id identifies the storage used for new attachments.
	DefaultStorageId string `protobuf:"bytes,5,opt,name=default_storage_id,json=defaultStorageId,proto3" json:"default_storage_id,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*InstanceStorageSetting) ProtoMessage() {}

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

func (x *InstanceStorageSetting) GetStorageType() InstanceStorageSetting_StorageType {
	if x != nil {
		return x.StorageType
	}
	return InstanceStorageSetting_STORAGE_TYPE_UNSPECIFIED
}

func (x *InstanceStorageSetting) GetFilepathTemplate() string {
	if x != nil {
		return x.FilepathTemplate
	}
	return ""
}

func (x *InstanceStorageSetting) GetS3Config() *StorageS3Config {
	if x != nil {
		return x.S3Config
	}
	return nil
}

func (x *InstanceStorageSetting) GetStorages() []*Storage {
	if x != nil {
		return x.Storages
	}
	return nil
}

func (x *InstanceStorageSetting) GetDefaultStorageId() string {
	if x != nil {
		return x.DefaultStorageId
	}
	return ""
}

// Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
type StorageS3Config struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	AccessKeyId     string                 `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
	AccessKeySecret string                 `protobuf:"bytes,2,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
	Endpoint        string                 `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Region          string                 `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
	Bucket          string                 `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
	UsePathStyle    bool                   `protobuf:"varint,6,opt,name=use_path_style,json=usePathStyle,proto3" json:"use_path_style,omitempty"`
	// insecure_skip_tls_verify disables TLS certificate verification when connecting
	// to the S3 endpoint. Only enable this for trusted endpoints that use a self-signed
	// certificate; it removes protection against man-in-the-middle attacks.
	InsecureSkipTlsVerify bool `protobuf:"varint,7,opt,name=insecure_skip_tls_verify,json=insecureSkipTlsVerify,proto3" json:"insecure_skip_tls_verify,omitempty"`
	unknownFields         protoimpl.UnknownFields
	sizeCache             protoimpl.SizeCache
}

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

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

func (*StorageS3Config) ProtoMessage() {}

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

func (x *StorageS3Config) GetAccessKeyId() string {
	if x != nil {
		return x.AccessKeyId
	}
	return ""
}

func (x *StorageS3Config) GetAccessKeySecret() string {
	if x != nil {
		return x.AccessKeySecret
	}
	return ""
}

func (x *StorageS3Config) GetEndpoint() string {
	if x != nil {
		return x.Endpoint
	}
	return ""
}

func (x *StorageS3Config) GetRegion() string {
	if x != nil {
		return x.Region
	}
	return ""
}

func (x *StorageS3Config) GetBucket() string {
	if x != nil {
		return x.Bucket
	}
	return ""
}

func (x *StorageS3Config) GetUsePathStyle() bool {
	if x != nil {
		return x.UsePathStyle
	}
	return false
}

func (x *StorageS3Config) GetInsecureSkipTlsVerify() bool {
	if x != nil {
		return x.InsecureSkipTlsVerify
	}
	return false
}

type InstanceMemoRelatedSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// reactions is the list of reactions.
	Reactions     []string `protobuf:"bytes,1,rep,name=reactions,proto3" json:"reactions,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceMemoRelatedSetting) ProtoMessage() {}

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

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

type InstanceTagMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional background color for 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"`
	// Whether memos with this tag should 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 *InstanceTagMetadata) Reset() {
	*x = InstanceTagMetadata{}
	mi := &file_store_instance_setting_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*InstanceTagMetadata) ProtoMessage() {}

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

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

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

// Active tag metadata is stored in per-user tag settings.
// This message remains for backward compatibility with existing clients and migrations.
type InstanceTagsSetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Map of tag name pattern to tag metadata.
	// Each key is treated as an anchored regular expression (^pattern$),
	// so a single entry like "project/.*" matches all tags under that prefix.
	// Exact tag names are also valid (they are trivially valid regex patterns).
	Tags          map[string]*InstanceTagMetadata `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 *InstanceTagsSetting) Reset() {
	*x = InstanceTagsSetting{}
	mi := &file_store_instance_setting_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*InstanceTagsSetting) ProtoMessage() {}

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

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

type InstanceNotificationSetting struct {
	state         protoimpl.MessageState                    `protogen:"open.v1"`
	Email         *InstanceNotificationSetting_EmailSetting `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceNotificationSetting) ProtoMessage() {}

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

func (x *InstanceNotificationSetting) GetEmail() *InstanceNotificationSetting_EmailSetting {
	if x != nil {
		return x.Email
	}
	return nil
}

type InstanceAISetting struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// providers is the list of AI provider configurations available instance-wide.
	Providers []*AIProviderConfig `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	// transcription is the speech-to-text feature configuration.
	// When unset or transcription.provider_id is empty, transcription is disabled.
	Transcription *TranscriptionConfig `protobuf:"bytes,2,opt,name=transcription,proto3" json:"transcription,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceAISetting) ProtoMessage() {}

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

func (x *InstanceAISetting) GetProviders() []*AIProviderConfig {
	if x != nil {
		return x.Providers
	}
	return nil
}

func (x *InstanceAISetting) GetTranscription() *TranscriptionConfig {
	if x != nil {
		return x.Transcription
	}
	return nil
}

type AIProviderConfig struct {
	state    protoimpl.MessageState `protogen:"open.v1"`
	Id       string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title    string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Type     AIProviderType         `protobuf:"varint,3,opt,name=type,proto3,enum=memos.store.AIProviderType" json:"type,omitempty"`
	Endpoint string                 `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// api_key is write-only at the API layer and is required by the server to call providers.
	ApiKey        string `protobuf:"bytes,5,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AIProviderConfig) ProtoMessage() {}

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

func (x *AIProviderConfig) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

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

func (x *AIProviderConfig) GetType() AIProviderType {
	if x != nil {
		return x.Type
	}
	return AIProviderType_AI_PROVIDER_TYPE_UNSPECIFIED
}

func (x *AIProviderConfig) GetEndpoint() string {
	if x != nil {
		return x.Endpoint
	}
	return ""
}

func (x *AIProviderConfig) GetApiKey() string {
	if x != nil {
		return x.ApiKey
	}
	return ""
}

// TranscriptionConfig configures the speech-to-text feature.
type TranscriptionConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// provider_id references an entry in InstanceAISetting.providers[].id.
	// Empty string means transcription is disabled.
	ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
	// model is the provider-specific model identifier.
	// Empty string falls back to the engine default.
	// OPENAI examples:
	//   - whisper-1 (legacy, lower cost)
	//   - gpt-4o-transcribe, gpt-4o-mini-transcribe (higher quality)
	//   - gpt-4o-transcribe-diarize (includes speaker labels)
	//
	// GEMINI examples:
	//   - gemini-2.5-flash (default, multimodal call)
	//   - gemini-2.5-pro
	Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	// language is the default ISO 639-1 language hint sent to the provider.
	// Empty string lets the provider auto-detect.
	Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
	// prompt is a default spelling/vocabulary hint passed to the provider.
	// Used as the OpenAI Whisper "prompt" parameter (a soft hint that the model
	// may ignore) and folded into the Gemini generation prompt as a "Context and
	// spelling hints" block (which the LLM will treat more literally).
	Prompt        string `protobuf:"bytes,4,opt,name=prompt,proto3" json:"prompt,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TranscriptionConfig) ProtoMessage() {}

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

func (x *TranscriptionConfig) GetProviderId() string {
	if x != nil {
		return x.ProviderId
	}
	return ""
}

func (x *TranscriptionConfig) GetModel() string {
	if x != nil {
		return x.Model
	}
	return ""
}

func (x *TranscriptionConfig) GetLanguage() string {
	if x != nil {
		return x.Language
	}
	return ""
}

func (x *TranscriptionConfig) GetPrompt() string {
	if x != nil {
		return x.Prompt
	}
	return ""
}

type InstanceAccessSetting struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	AccessMode    InstanceAccessMode     `protobuf:"varint,1,opt,name=access_mode,json=accessMode,proto3,enum=memos.store.InstanceAccessMode" json:"access_mode,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceAccessSetting) ProtoMessage() {}

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

func (x *InstanceAccessSetting) GetAccessMode() InstanceAccessMode {
	if x != nil {
		return x.AccessMode
	}
	return InstanceAccessMode_INSTANCE_ACCESS_MODE_UNSPECIFIED
}

// InstanceUsageLimitsSetting is an ordered list of limit sets. The first
// entry that names a user is that user's limit set, whole. The last entry
// has all_users set and is the default. An unset value is unlimited, as is 0.
type InstanceUsageLimitsSetting struct {
	state         protoimpl.MessageState                   `protogen:"open.v1"`
	Limits        []*InstanceUsageLimitsSetting_UsageLimit `protobuf:"bytes,1,rep,name=limits,proto3" json:"limits,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceUsageLimitsSetting) ProtoMessage() {}

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

func (x *InstanceUsageLimitsSetting) GetLimits() []*InstanceUsageLimitsSetting_UsageLimit {
	if x != nil {
		return x.Limits
	}
	return nil
}

// InstanceConfigurationState is the declarative configuration state record: which
// resources the configuration manages and when it was last applied. It holds no
// configured value.
type InstanceConfigurationState struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// serial increases by one with every apply that changes something.
	Serial int64 `protobuf:"varint,1,opt,name=serial,proto3" json:"serial,omitempty"`
	// config_digest identifies the applied configuration, with sensitive and
	// write-only values masked before hashing.
	ConfigDigest string `protobuf:"bytes,2,opt,name=config_digest,json=configDigest,proto3" json:"config_digest,omitempty"`
	// applied_ts is the Unix time of the last apply that changed something.
	AppliedTs int64 `protobuf:"varint,3,opt,name=applied_ts,json=appliedTs,proto3" json:"applied_ts,omitempty"`
	// applied_by names the apply path ("cli" or "startup") and the host.
	AppliedBy string `protobuf:"bytes,4,opt,name=applied_by,json=appliedBy,proto3" json:"applied_by,omitempty"`
	// version is the Memos version that applied.
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	// resources are the managed resources.
	Resources     []*InstanceConfigurationState_ManagedResource `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceConfigurationState) ProtoMessage() {}

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

func (x *InstanceConfigurationState) GetSerial() int64 {
	if x != nil {
		return x.Serial
	}
	return 0
}

func (x *InstanceConfigurationState) GetConfigDigest() string {
	if x != nil {
		return x.ConfigDigest
	}
	return ""
}

func (x *InstanceConfigurationState) GetAppliedTs() int64 {
	if x != nil {
		return x.AppliedTs
	}
	return 0
}

func (x *InstanceConfigurationState) GetAppliedBy() string {
	if x != nil {
		return x.AppliedBy
	}
	return ""
}

func (x *InstanceConfigurationState) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

func (x *InstanceConfigurationState) GetResources() []*InstanceConfigurationState_ManagedResource {
	if x != nil {
		return x.Resources
	}
	return nil
}

type InstanceNotificationSetting_EmailSetting struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Enabled       bool                   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	SmtpHost      string                 `protobuf:"bytes,2,opt,name=smtp_host,json=smtpHost,proto3" json:"smtp_host,omitempty"`
	SmtpPort      int32                  `protobuf:"varint,3,opt,name=smtp_port,json=smtpPort,proto3" json:"smtp_port,omitempty"`
	SmtpUsername  string                 `protobuf:"bytes,4,opt,name=smtp_username,json=smtpUsername,proto3" json:"smtp_username,omitempty"`
	SmtpPassword  string                 `protobuf:"bytes,5,opt,name=smtp_password,json=smtpPassword,proto3" json:"smtp_password,omitempty"`
	FromEmail     string                 `protobuf:"bytes,6,opt,name=from_email,json=fromEmail,proto3" json:"from_email,omitempty"`
	FromName      string                 `protobuf:"bytes,7,opt,name=from_name,json=fromName,proto3" json:"from_name,omitempty"`
	ReplyTo       string                 `protobuf:"bytes,8,opt,name=reply_to,json=replyTo,proto3" json:"reply_to,omitempty"`
	UseTls        bool                   `protobuf:"varint,9,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
	UseSsl        bool                   `protobuf:"varint,10,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceNotificationSetting_EmailSetting) ProtoMessage() {}

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

func (x *InstanceNotificationSetting_EmailSetting) GetEnabled() bool {
	if x != nil {
		return x.Enabled
	}
	return false
}

func (x *InstanceNotificationSetting_EmailSetting) GetSmtpHost() string {
	if x != nil {
		return x.SmtpHost
	}
	return ""
}

func (x *InstanceNotificationSetting_EmailSetting) GetSmtpPort() int32 {
	if x != nil {
		return x.SmtpPort
	}
	return 0
}

func (x *InstanceNotificationSetting_EmailSetting) GetSmtpUsername() string {
	if x != nil {
		return x.SmtpUsername
	}
	return ""
}

func (x *InstanceNotificationSetting_EmailSetting) GetSmtpPassword() string {
	if x != nil {
		return x.SmtpPassword
	}
	return ""
}

func (x *InstanceNotificationSetting_EmailSetting) GetFromEmail() string {
	if x != nil {
		return x.FromEmail
	}
	return ""
}

func (x *InstanceNotificationSetting_EmailSetting) GetFromName() string {
	if x != nil {
		return x.FromName
	}
	return ""
}

func (x *InstanceNotificationSetting_EmailSetting) GetReplyTo() string {
	if x != nil {
		return x.ReplyTo
	}
	return ""
}

func (x *InstanceNotificationSetting_EmailSetting) GetUseTls() bool {
	if x != nil {
		return x.UseTls
	}
	return false
}

func (x *InstanceNotificationSetting_EmailSetting) GetUseSsl() bool {
	if x != nil {
		return x.UseSsl
	}
	return false
}

type InstanceUsageLimitsSetting_UsageLimit struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The users this entry applies to. Positive IDs, not repeated.
	UserIds []int32 `protobuf:"varint,1,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
	// Field 2 is kept for labels: users holding any listed label would match.
	// all_users makes the entry the default. Exactly one entry has it, and it
	// is the last entry. An entry has user_ids or all_users, never both.
	AllUsers bool `protobuf:"varint,3,opt,name=all_users,json=allUsers,proto3" json:"all_users,omitempty"`
	// memo_count limits the number of memos a user created, comments included.
	MemoCount *int64 `protobuf:"varint,4,opt,name=memo_count,json=memoCount,proto3,oneof" json:"memo_count,omitempty"`
	// memo_content_bytes limits the UTF-8 size of one memo's content.
	MemoContentBytes *int64 `protobuf:"varint,5,opt,name=memo_content_bytes,json=memoContentBytes,proto3,oneof" json:"memo_content_bytes,omitempty"`
	// storage_bytes limits the total size of a user's uploads. External links
	// do not count.
	StorageBytes *int64 `protobuf:"varint,6,opt,name=storage_bytes,json=storageBytes,proto3,oneof" json:"storage_bytes,omitempty"`
	// upload_bytes limits the size of one uploaded file.
	UploadBytes   *int64 `protobuf:"varint,7,opt,name=upload_bytes,json=uploadBytes,proto3,oneof" json:"upload_bytes,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceUsageLimitsSetting_UsageLimit) ProtoMessage() {}

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

func (x *InstanceUsageLimitsSetting_UsageLimit) GetUserIds() []int32 {
	if x != nil {
		return x.UserIds
	}
	return nil
}

func (x *InstanceUsageLimitsSetting_UsageLimit) GetAllUsers() bool {
	if x != nil {
		return x.AllUsers
	}
	return false
}

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

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

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

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

// ManagedResource is one resource the configuration manages.
type InstanceConfigurationState_ManagedResource struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// name is the API resource name, such as identity-providers/company-sso.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// kind is IdentityProvider, InstanceSetting, User, or LinkedIdentity.
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	// source is the configuration file that declares the resource.
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// managed_fields are the JSON-name field paths the configuration manages;
	// "*" means the whole resource.
	ManagedFields []string `protobuf:"bytes,4,rep,name=managed_fields,json=managedFields,proto3" json:"managed_fields,omitempty"`
	// write_only_version is the lifecycle write_only_version last applied.
	WriteOnlyVersion int32 `protobuf:"varint,5,opt,name=write_only_version,json=writeOnlyVersion,proto3" json:"write_only_version,omitempty"`
	// applied_ts is the Unix time the resource was last written by an apply.
	AppliedTs int64 `protobuf:"varint,6,opt,name=applied_ts,json=appliedTs,proto3" json:"applied_ts,omitempty"`
	// ignored_fields are the lifecycle ignore_changes paths: covered by
	// managed_fields, but neither written after creation nor protected.
	IgnoredFields []string `protobuf:"bytes,7,rep,name=ignored_fields,json=ignoredFields,proto3" json:"ignored_fields,omitempty"`
	// digest identifies the declared value last applied, with sensitive and
	// write-only values masked, so a later plan can tell drift from a file change.
	Digest string `protobuf:"bytes,8,opt,name=digest,proto3" json:"digest,omitempty"`
	// prevent_destroy is the lifecycle prevent_destroy last applied. A removed
	// entry cannot destroy the resource until an apply has cleared it.
	PreventDestroy bool `protobuf:"varint,9,opt,name=prevent_destroy,json=preventDestroy,proto3" json:"prevent_destroy,omitempty"`
	// references are the resource names the declaration names, such as the
	// users a usage-limits setting lists. The API cannot rename or delete them
	// while the resource is managed, since the next plan could not resolve them.
	References    []string `protobuf:"bytes,10,rep,name=references,proto3" json:"references,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InstanceConfigurationState_ManagedResource) ProtoMessage() {}

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

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

func (x *InstanceConfigurationState_ManagedResource) GetKind() string {
	if x != nil {
		return x.Kind
	}
	return ""
}

func (x *InstanceConfigurationState_ManagedResource) GetSource() string {
	if x != nil {
		return x.Source
	}
	return ""
}

func (x *InstanceConfigurationState_ManagedResource) GetManagedFields() []string {
	if x != nil {
		return x.ManagedFields
	}
	return nil
}

func (x *InstanceConfigurationState_ManagedResource) GetWriteOnlyVersion() int32 {
	if x != nil {
		return x.WriteOnlyVersion
	}
	return 0
}

func (x *InstanceConfigurationState_ManagedResource) GetAppliedTs() int64 {
	if x != nil {
		return x.AppliedTs
	}
	return 0
}

func (x *InstanceConfigurationState_ManagedResource) GetIgnoredFields() []string {
	if x != nil {
		return x.IgnoredFields
	}
	return nil
}

func (x *InstanceConfigurationState_ManagedResource) GetDigest() string {
	if x != nil {
		return x.Digest
	}
	return ""
}

func (x *InstanceConfigurationState_ManagedResource) GetPreventDestroy() bool {
	if x != nil {
		return x.PreventDestroy
	}
	return false
}

func (x *InstanceConfigurationState_ManagedResource) GetReferences() []string {
	if x != nil {
		return x.References
	}
	return nil
}

var File_store_instance_setting_proto protoreflect.FileDescriptor

const file_store_instance_setting_proto_rawDesc = "" +
	"\n" +
	"\x1cstore/instance_setting.proto\x12\vmemos.store\x1a\x17google/type/color.proto\"\xa5\x06\n" +
	"\x0fInstanceSetting\x121\n" +
	"\x03key\x18\x01 \x01(\x0e2\x1f.memos.store.InstanceSettingKeyR\x03key\x12H\n" +
	"\rbasic_setting\x18\x02 \x01(\v2!.memos.store.InstanceBasicSettingH\x00R\fbasicSetting\x12N\n" +
	"\x0fgeneral_setting\x18\x03 \x01(\v2#.memos.store.InstanceGeneralSettingH\x00R\x0egeneralSetting\x12N\n" +
	"\x0fstorage_setting\x18\x04 \x01(\v2#.memos.store.InstanceStorageSettingH\x00R\x0estorageSetting\x12[\n" +
	"\x14memo_related_setting\x18\x05 \x01(\v2'.memos.store.InstanceMemoRelatedSettingH\x00R\x12memoRelatedSetting\x12E\n" +
	"\ftags_setting\x18\x06 \x01(\v2 .memos.store.InstanceTagsSettingH\x00R\vtagsSetting\x12]\n" +
	"\x14notification_setting\x18\a \x01(\v2(.memos.store.InstanceNotificationSettingH\x00R\x13notificationSetting\x12?\n" +
	"\n" +
	"ai_setting\x18\b \x01(\v2\x1e.memos.store.InstanceAISettingH\x00R\taiSetting\x12K\n" +
	"\x0eaccess_setting\x18\t \x01(\v2\".memos.store.InstanceAccessSettingH\x00R\raccessSetting\x12[\n" +
	"\x14usage_limits_setting\x18\n" +
	" \x01(\v2'.memos.store.InstanceUsageLimitsSettingH\x00R\x12usageLimitsSettingB\a\n" +
	"\x05value\"\x85\x01\n" +
	"\x14InstanceBasicSetting\x12\x1d\n" +
	"\n" +
	"secret_key\x18\x01 \x01(\tR\tsecretKey\x12%\n" +
	"\x0eschema_version\x18\x02 \x01(\tR\rschemaVersion\x12'\n" +
	"\x0fpayload_version\x18\x03 \x01(\x05R\x0epayloadVersion\"\xd6\x03\n" +
	"\x16InstanceGeneralSetting\x12<\n" +
	"\x1adisallow_user_registration\x18\x01 \x01(\bR\x18disallowUserRegistration\x124\n" +
	"\x16disallow_password_auth\x18\x02 \x01(\bR\x14disallowPasswordAuth\x12+\n" +
	"\x11additional_script\x18\x03 \x01(\tR\x10additionalScript\x12)\n" +
	"\x10additional_style\x18\x04 \x01(\tR\x0fadditionalStyle\x12I\n" +
	"\x0ecustom_profile\x18\x05 \x01(\v2\".memos.store.InstanceCustomProfileR\rcustomProfile\x121\n" +
	"\x15week_start_day_offset\x18\x06 \x01(\x05R\x12weekStartDayOffset\x128\n" +
	"\x18disallow_change_username\x18\a \x01(\bR\x16disallowChangeUsername\x128\n" +
	"\x18disallow_change_nickname\x18\b \x01(\bR\x16disallowChangeNickname\"j\n" +
	"\x15InstanceCustomProfile\x12\x14\n" +
	"\x05title\x18\x01 \x01(\tR\x05title\x12 \n" +
	"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x19\n" +
	"\blogo_url\x18\x03 \x01(\tR\alogoUrl\"\xa2\x01\n" +
	"\aStorage\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12,\n" +
	"\x04type\x18\x03 \x01(\x0e2\x18.memos.store.StorageTypeR\x04type\x12;\n" +
	"\ts3_config\x18\x04 \x01(\v2\x1c.memos.store.StorageS3ConfigH\x00R\bs3ConfigB\b\n" +
	"\x06config\"\x82\x03\n" +
	"\x16InstanceStorageSetting\x12R\n" +
	"\fstorage_type\x18\x01 \x01(\x0e2/.memos.store.InstanceStorageSetting.StorageTypeR\vstorageType\x12+\n" +
	"\x11filepath_template\x18\x02 \x01(\tR\x10filepathTemplate\x129\n" +
	"\ts3_config\x18\x03 \x01(\v2\x1c.memos.store.StorageS3ConfigR\bs3Config\x120\n" +
	"\bstorages\x18\x04 \x03(\v2\x14.memos.store.StorageR\bstorages\x12,\n" +
	"\x12default_storage_id\x18\x05 \x01(\tR\x10defaultStorageId\"L\n" +
	"\vStorageType\x12\x1c\n" +
	"\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bDATABASE\x10\x01\x12\t\n" +
	"\x05LOCAL\x10\x02\x12\x06\n" +
	"\x02S3\x10\x03\"\x8c\x02\n" +
	"\x0fStorageS3Config\x12\"\n" +
	"\raccess_key_id\x18\x01 \x01(\tR\vaccessKeyId\x12*\n" +
	"\x11access_key_secret\x18\x02 \x01(\tR\x0faccessKeySecret\x12\x1a\n" +
	"\bendpoint\x18\x03 \x01(\tR\bendpoint\x12\x16\n" +
	"\x06region\x18\x04 \x01(\tR\x06region\x12\x16\n" +
	"\x06bucket\x18\x05 \x01(\tR\x06bucket\x12$\n" +
	"\x0euse_path_style\x18\x06 \x01(\bR\fusePathStyle\x127\n" +
	"\x18insecure_skip_tls_verify\x18\a \x01(\bR\x15insecureSkipTlsVerify\":\n" +
	"\x1aInstanceMemoRelatedSetting\x12\x1c\n" +
	"\treactions\x18\x01 \x03(\tR\treactions\"w\n" +
	"\x13InstanceTagMetadata\x12=\n" +
	"\x10background_color\x18\x01 \x01(\v2\x12.google.type.ColorR\x0fbackgroundColor\x12!\n" +
	"\fblur_content\x18\x02 \x01(\bR\vblurContent\"\xb0\x01\n" +
	"\x13InstanceTagsSetting\x12>\n" +
	"\x04tags\x18\x01 \x03(\v2*.memos.store.InstanceTagsSetting.TagsEntryR\x04tags\x1aY\n" +
	"\tTagsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x126\n" +
	"\x05value\x18\x02 \x01(\v2 .memos.store.InstanceTagMetadataR\x05value:\x028\x01\"\xa2\x03\n" +
	"\x1bInstanceNotificationSetting\x12K\n" +
	"\x05email\x18\x01 \x01(\v25.memos.store.InstanceNotificationSetting.EmailSettingR\x05email\x1a\xb5\x02\n" +
	"\fEmailSetting\x12\x18\n" +
	"\aenabled\x18\x01 \x01(\bR\aenabled\x12\x1b\n" +
	"\tsmtp_host\x18\x02 \x01(\tR\bsmtpHost\x12\x1b\n" +
	"\tsmtp_port\x18\x03 \x01(\x05R\bsmtpPort\x12#\n" +
	"\rsmtp_username\x18\x04 \x01(\tR\fsmtpUsername\x12#\n" +
	"\rsmtp_password\x18\x05 \x01(\tR\fsmtpPassword\x12\x1d\n" +
	"\n" +
	"from_email\x18\x06 \x01(\tR\tfromEmail\x12\x1b\n" +
	"\tfrom_name\x18\a \x01(\tR\bfromName\x12\x19\n" +
	"\breply_to\x18\b \x01(\tR\areplyTo\x12\x17\n" +
	"\ause_tls\x18\t \x01(\bR\x06useTls\x12\x17\n" +
	"\ause_ssl\x18\n" +
	" \x01(\bR\x06useSsl\"\x98\x01\n" +
	"\x11InstanceAISetting\x12;\n" +
	"\tproviders\x18\x01 \x03(\v2\x1d.memos.store.AIProviderConfigR\tproviders\x12F\n" +
	"\rtranscription\x18\x02 \x01(\v2 .memos.store.TranscriptionConfigR\rtranscription\"\x9e\x01\n" +
	"\x10AIProviderConfig\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
	"\x05title\x18\x02 \x01(\tR\x05title\x12/\n" +
	"\x04type\x18\x03 \x01(\x0e2\x1b.memos.store.AIProviderTypeR\x04type\x12\x1a\n" +
	"\bendpoint\x18\x04 \x01(\tR\bendpoint\x12\x17\n" +
	"\aapi_key\x18\x05 \x01(\tR\x06apiKey\"\x80\x01\n" +
	"\x13TranscriptionConfig\x12\x1f\n" +
	"\vprovider_id\x18\x01 \x01(\tR\n" +
	"providerId\x12\x14\n" +
	"\x05model\x18\x02 \x01(\tR\x05model\x12\x1a\n" +
	"\blanguage\x18\x03 \x01(\tR\blanguage\x12\x16\n" +
	"\x06prompt\x18\x04 \x01(\tR\x06prompt\"Y\n" +
	"\x15InstanceAccessSetting\x12@\n" +
	"\vaccess_mode\x18\x01 \x01(\x0e2\x1f.memos.store.InstanceAccessModeR\n" +
	"accessMode\"\xa1\x03\n" +
	"\x1aInstanceUsageLimitsSetting\x12J\n" +
	"\x06limits\x18\x01 \x03(\v22.memos.store.InstanceUsageLimitsSetting.UsageLimitR\x06limits\x1a\xb6\x02\n" +
	"\n" +
	"UsageLimit\x12\x19\n" +
	"\buser_ids\x18\x01 \x03(\x05R\auserIds\x12\x1b\n" +
	"\tall_users\x18\x03 \x01(\bR\ballUsers\x12\"\n" +
	"\n" +
	"memo_count\x18\x04 \x01(\x03H\x00R\tmemoCount\x88\x01\x01\x121\n" +
	"\x12memo_content_bytes\x18\x05 \x01(\x03H\x01R\x10memoContentBytes\x88\x01\x01\x12(\n" +
	"\rstorage_bytes\x18\x06 \x01(\x03H\x02R\fstorageBytes\x88\x01\x01\x12&\n" +
	"\fupload_bytes\x18\a \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\"\xd8\x04\n" +
	"\x1aInstanceConfigurationState\x12\x16\n" +
	"\x06serial\x18\x01 \x01(\x03R\x06serial\x12#\n" +
	"\rconfig_digest\x18\x02 \x01(\tR\fconfigDigest\x12\x1d\n" +
	"\n" +
	"applied_ts\x18\x03 \x01(\x03R\tappliedTs\x12\x1d\n" +
	"\n" +
	"applied_by\x18\x04 \x01(\tR\tappliedBy\x12\x18\n" +
	"\aversion\x18\x05 \x01(\tR\aversion\x12U\n" +
	"\tresources\x18\x06 \x03(\v27.memos.store.InstanceConfigurationState.ManagedResourceR\tresources\x1a\xcd\x02\n" +
	"\x0fManagedResource\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
	"\x04kind\x18\x02 \x01(\tR\x04kind\x12\x16\n" +
	"\x06source\x18\x03 \x01(\tR\x06source\x12%\n" +
	"\x0emanaged_fields\x18\x04 \x03(\tR\rmanagedFields\x12,\n" +
	"\x12write_only_version\x18\x05 \x01(\x05R\x10writeOnlyVersion\x12\x1d\n" +
	"\n" +
	"applied_ts\x18\x06 \x01(\x03R\tappliedTs\x12%\n" +
	"\x0eignored_fields\x18\a \x03(\tR\rignoredFields\x12\x16\n" +
	"\x06digest\x18\b \x01(\tR\x06digest\x12'\n" +
	"\x0fprevent_destroy\x18\t \x01(\bR\x0epreventDestroy\x12\x1e\n" +
	"\n" +
	"references\x18\n" +
	" \x03(\tR\n" +
	"references*\xcc\x01\n" +
	"\x12InstanceSettingKey\x12$\n" +
	" INSTANCE_SETTING_KEY_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05BASIC\x10\x01\x12\v\n" +
	"\aGENERAL\x10\x02\x12\v\n" +
	"\aSTORAGE\x10\x03\x12\x10\n" +
	"\fMEMO_RELATED\x10\x04\x12\b\n" +
	"\x04TAGS\x10\x05\x12\x10\n" +
	"\fNOTIFICATION\x10\x06\x12\x06\n" +
	"\x02AI\x10\a\x12\n" +
	"\n" +
	"\x06ACCESS\x10\b\x12\x10\n" +
	"\fUSAGE_LIMITS\x10\t\x12\x17\n" +
	"\x13CONFIGURATION_STATE\x10\n" +
	"*s\n" +
	"\vStorageType\x12\x1c\n" +
	"\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x19\n" +
	"\x15STORAGE_TYPE_DATABASE\x10\x01\x12\x16\n" +
	"\x12STORAGE_TYPE_LOCAL\x10\x02\x12\x13\n" +
	"\x0fSTORAGE_TYPE_S3\x10\x03*J\n" +
	"\x0eAIProviderType\x12 \n" +
	"\x1cAI_PROVIDER_TYPE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06OPENAI\x10\x01\x12\n" +
	"\n" +
	"\x06GEMINI\x10\x02*}\n" +
	"\x12InstanceAccessMode\x12$\n" +
	" INSTANCE_ACCESS_MODE_UNSPECIFIED\x10\x00\x12 \n" +
	"\x1cINSTANCE_ACCESS_MODE_PRIVATE\x10\x01\x12\x1f\n" +
	"\x1bINSTANCE_ACCESS_MODE_PUBLIC\x10\x02B\x9f\x01\n" +
	"\x0fcom.memos.storeB\x14InstanceSettingProtoP\x01Z)github.com/usememos/memos/proto/gen/store\xa2\x02\x03MSX\xaa\x02\vMemos.Store\xca\x02\vMemos\\Store\xe2\x02\x17Memos\\Store\\GPBMetadata\xea\x02\fMemos::Storeb\x06proto3"

var (
	file_store_instance_setting_proto_rawDescOnce sync.Once
	file_store_instance_setting_proto_rawDescData []byte
)

func file_store_instance_setting_proto_rawDescGZIP() []byte {
	file_store_instance_setting_proto_rawDescOnce.Do(func() {
		file_store_instance_setting_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_instance_setting_proto_rawDesc), len(file_store_instance_setting_proto_rawDesc)))
	})
	return file_store_instance_setting_proto_rawDescData
}

var file_store_instance_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
var file_store_instance_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
var file_store_instance_setting_proto_goTypes = []any{
	(InstanceSettingKey)(0),                            // 0: memos.store.InstanceSettingKey
	(StorageType)(0),                                   // 1: memos.store.StorageType
	(AIProviderType)(0),                                // 2: memos.store.AIProviderType
	(InstanceAccessMode)(0),                            // 3: memos.store.InstanceAccessMode
	(InstanceStorageSetting_StorageType)(0),            // 4: memos.store.InstanceStorageSetting.StorageType
	(*InstanceSetting)(nil),                            // 5: memos.store.InstanceSetting
	(*InstanceBasicSetting)(nil),                       // 6: memos.store.InstanceBasicSetting
	(*InstanceGeneralSetting)(nil),                     // 7: memos.store.InstanceGeneralSetting
	(*InstanceCustomProfile)(nil),                      // 8: memos.store.InstanceCustomProfile
	(*Storage)(nil),                                    // 9: memos.store.Storage
	(*InstanceStorageSetting)(nil),                     // 10: memos.store.InstanceStorageSetting
	(*StorageS3Config)(nil),                            // 11: memos.store.StorageS3Config
	(*InstanceMemoRelatedSetting)(nil),                 // 12: memos.store.InstanceMemoRelatedSetting
	(*InstanceTagMetadata)(nil),                        // 13: memos.store.InstanceTagMetadata
	(*InstanceTagsSetting)(nil),                        // 14: memos.store.InstanceTagsSetting
	(*InstanceNotificationSetting)(nil),                // 15: memos.store.InstanceNotificationSetting
	(*InstanceAISetting)(nil),                          // 16: memos.store.InstanceAISetting
	(*AIProviderConfig)(nil),                           // 17: memos.store.AIProviderConfig
	(*TranscriptionConfig)(nil),                        // 18: memos.store.TranscriptionConfig
	(*InstanceAccessSetting)(nil),                      // 19: memos.store.InstanceAccessSetting
	(*InstanceUsageLimitsSetting)(nil),                 // 20: memos.store.InstanceUsageLimitsSetting
	(*InstanceConfigurationState)(nil),                 // 21: memos.store.InstanceConfigurationState
	nil,                                                // 22: memos.store.InstanceTagsSetting.TagsEntry
	(*InstanceNotificationSetting_EmailSetting)(nil),   // 23: memos.store.InstanceNotificationSetting.EmailSetting
	(*InstanceUsageLimitsSetting_UsageLimit)(nil),      // 24: memos.store.InstanceUsageLimitsSetting.UsageLimit
	(*InstanceConfigurationState_ManagedResource)(nil), // 25: memos.store.InstanceConfigurationState.ManagedResource
	(*color.Color)(nil),                                // 26: google.type.Color
}
var file_store_instance_setting_proto_depIdxs = []int32{
	0,  // 0: memos.store.InstanceSetting.key:type_name -> memos.store.InstanceSettingKey
	6,  // 1: memos.store.InstanceSetting.basic_setting:type_name -> memos.store.InstanceBasicSetting
	7,  // 2: memos.store.InstanceSetting.general_setting:type_name -> memos.store.InstanceGeneralSetting
	10, // 3: memos.store.InstanceSetting.storage_setting:type_name -> memos.store.InstanceStorageSetting
	12, // 4: memos.store.InstanceSetting.memo_related_setting:type_name -> memos.store.InstanceMemoRelatedSetting
	14, // 5: memos.store.InstanceSetting.tags_setting:type_name -> memos.store.InstanceTagsSetting
	15, // 6: memos.store.InstanceSetting.notification_setting:type_name -> memos.store.InstanceNotificationSetting
	16, // 7: memos.store.InstanceSetting.ai_setting:type_name -> memos.store.InstanceAISetting
	19, // 8: memos.store.InstanceSetting.access_setting:type_name -> memos.store.InstanceAccessSetting
	20, // 9: memos.store.InstanceSetting.usage_limits_setting:type_name -> memos.store.InstanceUsageLimitsSetting
	8,  // 10: memos.store.InstanceGeneralSetting.custom_profile:type_name -> memos.store.InstanceCustomProfile
	1,  // 11: memos.store.Storage.type:type_name -> memos.store.StorageType
	11, // 12: memos.store.Storage.s3_config:type_name -> memos.store.StorageS3Config
	4,  // 13: memos.store.InstanceStorageSetting.storage_type:type_name -> memos.store.InstanceStorageSetting.StorageType
	11, // 14: memos.store.InstanceStorageSetting.s3_config:type_name -> memos.store.StorageS3Config
	9,  // 15: memos.store.InstanceStorageSetting.storages:type_name -> memos.store.Storage
	26, // 16: memos.store.InstanceTagMetadata.background_color:type_name -> google.type.Color
	22, // 17: memos.store.InstanceTagsSetting.tags:type_name -> memos.store.InstanceTagsSetting.TagsEntry
	23, // 18: memos.store.InstanceNotificationSetting.email:type_name -> memos.store.InstanceNotificationSetting.EmailSetting
	17, // 19: memos.store.InstanceAISetting.providers:type_name -> memos.store.AIProviderConfig
	18, // 20: memos.store.InstanceAISetting.transcription:type_name -> memos.store.TranscriptionConfig
	2,  // 21: memos.store.AIProviderConfig.type:type_name -> memos.store.AIProviderType
	3,  // 22: memos.store.InstanceAccessSetting.access_mode:type_name -> memos.store.InstanceAccessMode
	24, // 23: memos.store.InstanceUsageLimitsSetting.limits:type_name -> memos.store.InstanceUsageLimitsSetting.UsageLimit
	25, // 24: memos.store.InstanceConfigurationState.resources:type_name -> memos.store.InstanceConfigurationState.ManagedResource
	13, // 25: memos.store.InstanceTagsSetting.TagsEntry.value:type_name -> memos.store.InstanceTagMetadata
	26, // [26:26] is the sub-list for method output_type
	26, // [26:26] is the sub-list for method input_type
	26, // [26:26] is the sub-list for extension type_name
	26, // [26:26] is the sub-list for extension extendee
	0,  // [0:26] is the sub-list for field type_name
}

func init() { file_store_instance_setting_proto_init() }
func file_store_instance_setting_proto_init() {
	if File_store_instance_setting_proto != nil {
		return
	}
	file_store_instance_setting_proto_msgTypes[0].OneofWrappers = []any{
		(*InstanceSetting_BasicSetting)(nil),
		(*InstanceSetting_GeneralSetting)(nil),
		(*InstanceSetting_StorageSetting)(nil),
		(*InstanceSetting_MemoRelatedSetting)(nil),
		(*InstanceSetting_TagsSetting)(nil),
		(*InstanceSetting_NotificationSetting)(nil),
		(*InstanceSetting_AiSetting)(nil),
		(*InstanceSetting_AccessSetting)(nil),
		(*InstanceSetting_UsageLimitsSetting)(nil),
	}
	file_store_instance_setting_proto_msgTypes[4].OneofWrappers = []any{
		(*Storage_S3Config)(nil),
	}
	file_store_instance_setting_proto_msgTypes[19].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_instance_setting_proto_rawDesc), len(file_store_instance_setting_proto_rawDesc)),
			NumEnums:      5,
			NumMessages:   21,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_store_instance_setting_proto_goTypes,
		DependencyIndexes: file_store_instance_setting_proto_depIdxs,
		EnumInfos:         file_store_instance_setting_proto_enumTypes,
		MessageInfos:      file_store_instance_setting_proto_msgTypes,
	}.Build()
	File_store_instance_setting_proto = out.File
	file_store_instance_setting_proto_goTypes = nil
	file_store_instance_setting_proto_depIdxs = nil
}