Files
memos/proto/gen/api/instance_service.pb.go
johnnyjoygh 5f3969a830 feat(reactions): add full emoji picker
Let people use any Unicode emoji through a searchable, virtualized
picker.
Keep reaction counts accurate and requests optimistic and idempotent.
Refresh demo content so signed-in visitors can participate.

BREAKING CHANGE: Remove the MEMO_RELATED instance setting and
memoRelatedSetting configuration value. Remove their declarations and
lifecycle references from configuration files; existing reactions are
preserved.
2026-11-14 20:46:46 +08:00

2945 lines
106 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc (unknown)
// source: api/instance_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)
)
// InstanceAccessMode controls whether unauthenticated users may access instance content.
type InstanceAccessMode int32
const (
InstanceAccessMode_INSTANCE_ACCESS_MODE_UNSPECIFIED InstanceAccessMode = 0
// Unauthenticated users may only reach the endpoints needed to sign in, register and open share links.
// This is the default.
InstanceAccessMode_INSTANCE_ACCESS_MODE_PRIVATE InstanceAccessMode = 1
// Unauthenticated users may read public content.
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_api_instance_service_proto_enumTypes[0].Descriptor()
}
func (InstanceAccessMode) Type() protoreflect.EnumType {
return &file_api_instance_service_proto_enumTypes[0]
}
func (x InstanceAccessMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InstanceAccessMode.Descriptor instead.
func (InstanceAccessMode) EnumDescriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{0}
}
// Key identifies an instance setting.
type InstanceSetting_Key int32
const (
InstanceSetting_KEY_UNSPECIFIED InstanceSetting_Key = 0
// General settings.
InstanceSetting_GENERAL InstanceSetting_Key = 1
// Attachment storage settings.
InstanceSetting_STORAGE InstanceSetting_Key = 2
// Tag metadata.
InstanceSetting_TAGS InstanceSetting_Key = 4
// Notification transport settings.
InstanceSetting_NOTIFICATION InstanceSetting_Key = 5
// AI provider settings.
InstanceSetting_AI InstanceSetting_Key = 6
// Instance access policy settings.
InstanceSetting_ACCESS InstanceSetting_Key = 7
// Usage limits.
InstanceSetting_USAGE_LIMITS InstanceSetting_Key = 8
)
// Enum value maps for InstanceSetting_Key.
var (
InstanceSetting_Key_name = map[int32]string{
0: "KEY_UNSPECIFIED",
1: "GENERAL",
2: "STORAGE",
4: "TAGS",
5: "NOTIFICATION",
6: "AI",
7: "ACCESS",
8: "USAGE_LIMITS",
}
InstanceSetting_Key_value = map[string]int32{
"KEY_UNSPECIFIED": 0,
"GENERAL": 1,
"STORAGE": 2,
"TAGS": 4,
"NOTIFICATION": 5,
"AI": 6,
"ACCESS": 7,
"USAGE_LIMITS": 8,
}
)
func (x InstanceSetting_Key) Enum() *InstanceSetting_Key {
p := new(InstanceSetting_Key)
*p = x
return p
}
func (x InstanceSetting_Key) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InstanceSetting_Key) Descriptor() protoreflect.EnumDescriptor {
return file_api_instance_service_proto_enumTypes[1].Descriptor()
}
func (InstanceSetting_Key) Type() protoreflect.EnumType {
return &file_api_instance_service_proto_enumTypes[1]
}
func (x InstanceSetting_Key) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InstanceSetting_Key.Descriptor instead.
func (InstanceSetting_Key) EnumDescriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 0}
}
// StorageType is the backend of a configured storage.
type InstanceSetting_StorageType int32
const (
InstanceSetting_STORAGE_TYPE_UNSPECIFIED InstanceSetting_StorageType = 0
// Stores attachment content in the application database.
InstanceSetting_DATABASE InstanceSetting_StorageType = 1
// Stores attachment content on the local filesystem.
InstanceSetting_LOCAL InstanceSetting_StorageType = 2
// Stores attachment content in an S3-compatible object store.
InstanceSetting_S3 InstanceSetting_StorageType = 3
)
// Enum value maps for InstanceSetting_StorageType.
var (
InstanceSetting_StorageType_name = map[int32]string{
0: "STORAGE_TYPE_UNSPECIFIED",
1: "DATABASE",
2: "LOCAL",
3: "S3",
}
InstanceSetting_StorageType_value = map[string]int32{
"STORAGE_TYPE_UNSPECIFIED": 0,
"DATABASE": 1,
"LOCAL": 2,
"S3": 3,
}
)
func (x InstanceSetting_StorageType) Enum() *InstanceSetting_StorageType {
p := new(InstanceSetting_StorageType)
*p = x
return p
}
func (x InstanceSetting_StorageType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InstanceSetting_StorageType) Descriptor() protoreflect.EnumDescriptor {
return file_api_instance_service_proto_enumTypes[2].Descriptor()
}
func (InstanceSetting_StorageType) Type() protoreflect.EnumType {
return &file_api_instance_service_proto_enumTypes[2]
}
func (x InstanceSetting_StorageType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InstanceSetting_StorageType.Descriptor instead.
func (InstanceSetting_StorageType) EnumDescriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 1}
}
// AIProviderType is the provider implementation type.
type InstanceSetting_AIProviderType int32
const (
InstanceSetting_AI_PROVIDER_TYPE_UNSPECIFIED InstanceSetting_AIProviderType = 0
// OpenAI API. The endpoint defaults to https://api.openai.com/v1.
InstanceSetting_OPENAI InstanceSetting_AIProviderType = 1
// Google Gemini API. The endpoint defaults to https://generativelanguage.googleapis.com/v1beta.
InstanceSetting_GEMINI InstanceSetting_AIProviderType = 2
)
// Enum value maps for InstanceSetting_AIProviderType.
var (
InstanceSetting_AIProviderType_name = map[int32]string{
0: "AI_PROVIDER_TYPE_UNSPECIFIED",
1: "OPENAI",
2: "GEMINI",
}
InstanceSetting_AIProviderType_value = map[string]int32{
"AI_PROVIDER_TYPE_UNSPECIFIED": 0,
"OPENAI": 1,
"GEMINI": 2,
}
)
func (x InstanceSetting_AIProviderType) Enum() *InstanceSetting_AIProviderType {
p := new(InstanceSetting_AIProviderType)
*p = x
return p
}
func (x InstanceSetting_AIProviderType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InstanceSetting_AIProviderType) Descriptor() protoreflect.EnumDescriptor {
return file_api_instance_service_proto_enumTypes[3].Descriptor()
}
func (InstanceSetting_AIProviderType) Type() protoreflect.EnumType {
return &file_api_instance_service_proto_enumTypes[3]
}
func (x InstanceSetting_AIProviderType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InstanceSetting_AIProviderType.Descriptor instead.
func (InstanceSetting_AIProviderType) EnumDescriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 2}
}
// StorageType is the legacy storage type, retained for compatibility with existing clients.
type InstanceSetting_StorageSetting_StorageType int32
const (
InstanceSetting_StorageSetting_STORAGE_TYPE_UNSPECIFIED InstanceSetting_StorageSetting_StorageType = 0
// Database storage.
InstanceSetting_StorageSetting_DATABASE InstanceSetting_StorageSetting_StorageType = 1
// Local filesystem storage.
InstanceSetting_StorageSetting_LOCAL InstanceSetting_StorageSetting_StorageType = 2
// S3 storage.
InstanceSetting_StorageSetting_S3 InstanceSetting_StorageSetting_StorageType = 3
)
// Enum value maps for InstanceSetting_StorageSetting_StorageType.
var (
InstanceSetting_StorageSetting_StorageType_name = map[int32]string{
0: "STORAGE_TYPE_UNSPECIFIED",
1: "DATABASE",
2: "LOCAL",
3: "S3",
}
InstanceSetting_StorageSetting_StorageType_value = map[string]int32{
"STORAGE_TYPE_UNSPECIFIED": 0,
"DATABASE": 1,
"LOCAL": 2,
"S3": 3,
}
)
func (x InstanceSetting_StorageSetting_StorageType) Enum() *InstanceSetting_StorageSetting_StorageType {
p := new(InstanceSetting_StorageSetting_StorageType)
*p = x
return p
}
func (x InstanceSetting_StorageSetting_StorageType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InstanceSetting_StorageSetting_StorageType) Descriptor() protoreflect.EnumDescriptor {
return file_api_instance_service_proto_enumTypes[4].Descriptor()
}
func (InstanceSetting_StorageSetting_StorageType) Type() protoreflect.EnumType {
return &file_api_instance_service_proto_enumTypes[4]
}
func (x InstanceSetting_StorageSetting_StorageType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InstanceSetting_StorageSetting_StorageType.Descriptor instead.
func (InstanceSetting_StorageSetting_StorageType) EnumDescriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 1, 0}
}
// InstanceProfile is the basic information about the instance.
type InstanceProfile struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The version of the running server.
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// The build commit of the running server.
Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
// Whether the instance runs in demo mode.
Demo bool `protobuf:"varint,3,opt,name=demo,proto3" json:"demo,omitempty"`
// The configured URL of the instance.
InstanceUrl string `protobuf:"bytes,4,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"`
// Whether unauthenticated users may access instance content.
AccessMode InstanceAccessMode `protobuf:"varint,5,opt,name=access_mode,json=accessMode,proto3,enum=memos.api.InstanceAccessMode" json:"access_mode,omitempty"`
// Whether the instance has no users yet and requires initial setup (creating the first admin account).
// Unlike a null admin, this stays false once any user exists, so an instance that has lost its admins is not
// mistaken for a fresh install.
NeedsSetup bool `protobuf:"varint,6,opt,name=needs_setup,json=needsSetup,proto3" json:"needs_setup,omitempty"`
// The first administrator of the instance, for display purposes.
// Only set for signed-in callers; anonymous requests never receive it, so the admin's login identifier is not
// disclosed before authentication. May also be null on an instance that has lost all admins; use needs_setup to
// determine whether initial setup is required.
Admin *User `protobuf:"bytes,7,opt,name=admin,proto3" json:"admin,omitempty"`
// The proof-of-humanity challenge required on signup and password sign-in.
// Absent when none is configured, which is the case on every self-hosted instance.
Challenge *InstanceProfile_Challenge `protobuf:"bytes,8,opt,name=challenge,proto3" json:"challenge,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceProfile) Reset() {
*x = InstanceProfile{}
mi := &file_api_instance_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceProfile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceProfile) ProtoMessage() {}
func (x *InstanceProfile) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceProfile.ProtoReflect.Descriptor instead.
func (*InstanceProfile) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{0}
}
func (x *InstanceProfile) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *InstanceProfile) GetCommit() string {
if x != nil {
return x.Commit
}
return ""
}
func (x *InstanceProfile) GetDemo() bool {
if x != nil {
return x.Demo
}
return false
}
func (x *InstanceProfile) GetInstanceUrl() string {
if x != nil {
return x.InstanceUrl
}
return ""
}
func (x *InstanceProfile) GetAccessMode() InstanceAccessMode {
if x != nil {
return x.AccessMode
}
return InstanceAccessMode_INSTANCE_ACCESS_MODE_UNSPECIFIED
}
func (x *InstanceProfile) GetNeedsSetup() bool {
if x != nil {
return x.NeedsSetup
}
return false
}
func (x *InstanceProfile) GetAdmin() *User {
if x != nil {
return x.Admin
}
return nil
}
func (x *InstanceProfile) GetChallenge() *InstanceProfile_Challenge {
if x != nil {
return x.Challenge
}
return nil
}
// Request message for InstanceService.GetInstanceProfile.
type GetInstanceProfileRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetInstanceProfileRequest) Reset() {
*x = GetInstanceProfileRequest{}
mi := &file_api_instance_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetInstanceProfileRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetInstanceProfileRequest) ProtoMessage() {}
func (x *GetInstanceProfileRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 GetInstanceProfileRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceProfileRequest) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{1}
}
// InstanceSetting is one group of instance-wide settings, selected by its key.
type InstanceSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Identifier. The resource name of the instance setting. {setting} is a Key value, such as GENERAL.
// Format: instance/settings/{setting}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The setting value. The set field matches the key in name.
//
// Types that are valid to be assigned to Value:
//
// *InstanceSetting_GeneralSetting_
// *InstanceSetting_StorageSetting_
// *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_api_instance_service_proto_msgTypes[2]
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_api_instance_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 InstanceSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2}
}
func (x *InstanceSetting) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *InstanceSetting) GetValue() isInstanceSetting_Value {
if x != nil {
return x.Value
}
return nil
}
func (x *InstanceSetting) GetGeneralSetting() *InstanceSetting_GeneralSetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_GeneralSetting_); ok {
return x.GeneralSetting
}
}
return nil
}
func (x *InstanceSetting) GetStorageSetting() *InstanceSetting_StorageSetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_StorageSetting_); ok {
return x.StorageSetting
}
}
return nil
}
func (x *InstanceSetting) GetTagsSetting() *InstanceSetting_TagsSetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_TagsSetting_); ok {
return x.TagsSetting
}
}
return nil
}
func (x *InstanceSetting) GetNotificationSetting() *InstanceSetting_NotificationSetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_NotificationSetting_); ok {
return x.NotificationSetting
}
}
return nil
}
func (x *InstanceSetting) GetAiSetting() *InstanceSetting_AISetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_AiSetting); ok {
return x.AiSetting
}
}
return nil
}
func (x *InstanceSetting) GetAccessSetting() *InstanceSetting_AccessSetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_AccessSetting_); ok {
return x.AccessSetting
}
}
return nil
}
func (x *InstanceSetting) GetUsageLimitsSetting() *InstanceSetting_UsageLimitsSetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_UsageLimitsSetting_); ok {
return x.UsageLimitsSetting
}
}
return nil
}
type isInstanceSetting_Value interface {
isInstanceSetting_Value()
}
type InstanceSetting_GeneralSetting_ struct {
// The value of the GENERAL setting.
GeneralSetting *InstanceSetting_GeneralSetting `protobuf:"bytes,2,opt,name=general_setting,json=generalSetting,proto3,oneof"`
}
type InstanceSetting_StorageSetting_ struct {
// The value of the STORAGE setting.
StorageSetting *InstanceSetting_StorageSetting `protobuf:"bytes,3,opt,name=storage_setting,json=storageSetting,proto3,oneof"`
}
type InstanceSetting_TagsSetting_ struct {
// The value of the TAGS setting.
TagsSetting *InstanceSetting_TagsSetting `protobuf:"bytes,5,opt,name=tags_setting,json=tagsSetting,proto3,oneof"`
}
type InstanceSetting_NotificationSetting_ struct {
// The value of the NOTIFICATION setting.
NotificationSetting *InstanceSetting_NotificationSetting `protobuf:"bytes,6,opt,name=notification_setting,json=notificationSetting,proto3,oneof"`
}
type InstanceSetting_AiSetting struct {
// The value of the AI setting.
AiSetting *InstanceSetting_AISetting `protobuf:"bytes,7,opt,name=ai_setting,json=aiSetting,proto3,oneof"`
}
type InstanceSetting_AccessSetting_ struct {
// The value of the ACCESS setting.
AccessSetting *InstanceSetting_AccessSetting `protobuf:"bytes,8,opt,name=access_setting,json=accessSetting,proto3,oneof"`
}
type InstanceSetting_UsageLimitsSetting_ struct {
// The value of the USAGE_LIMITS setting.
UsageLimitsSetting *InstanceSetting_UsageLimitsSetting `protobuf:"bytes,9,opt,name=usage_limits_setting,json=usageLimitsSetting,proto3,oneof"`
}
func (*InstanceSetting_GeneralSetting_) isInstanceSetting_Value() {}
func (*InstanceSetting_StorageSetting_) 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() {}
// Request message for InstanceService.GetInstanceSetting.
type GetInstanceSettingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. The resource name of the instance setting.
// Format: instance/settings/{setting}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetInstanceSettingRequest) Reset() {
*x = GetInstanceSettingRequest{}
mi := &file_api_instance_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetInstanceSettingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetInstanceSettingRequest) ProtoMessage() {}
func (x *GetInstanceSettingRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 GetInstanceSettingRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceSettingRequest) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{3}
}
func (x *GetInstanceSettingRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Request message for InstanceService.BatchGetInstanceSettings.
type BatchGetInstanceSettingsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. The resource names of the instance settings. At most 100.
// Format: instance/settings/{setting}
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchGetInstanceSettingsRequest) Reset() {
*x = BatchGetInstanceSettingsRequest{}
mi := &file_api_instance_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchGetInstanceSettingsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetInstanceSettingsRequest) ProtoMessage() {}
func (x *BatchGetInstanceSettingsRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 BatchGetInstanceSettingsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetInstanceSettingsRequest) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{4}
}
func (x *BatchGetInstanceSettingsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
// Response message for InstanceService.BatchGetInstanceSettings.
type BatchGetInstanceSettingsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The instance settings, in the same order as the requested names.
InstanceSettings []*InstanceSetting `protobuf:"bytes,1,rep,name=instance_settings,json=instanceSettings,proto3" json:"instance_settings,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchGetInstanceSettingsResponse) Reset() {
*x = BatchGetInstanceSettingsResponse{}
mi := &file_api_instance_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchGetInstanceSettingsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetInstanceSettingsResponse) ProtoMessage() {}
func (x *BatchGetInstanceSettingsResponse) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 BatchGetInstanceSettingsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetInstanceSettingsResponse) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{5}
}
func (x *BatchGetInstanceSettingsResponse) GetInstanceSettings() []*InstanceSetting {
if x != nil {
return x.InstanceSettings
}
return nil
}
// Request message for InstanceService.UpdateInstanceSetting.
type UpdateInstanceSettingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. The instance setting, which replaces the stored setting.
InstanceSetting *InstanceSetting `protobuf:"bytes,1,opt,name=instance_setting,json=instanceSetting,proto3" json:"instance_setting,omitempty"`
// Optional. The list of fields to update. Currently ignored; the whole setting is replaced.
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 *UpdateInstanceSettingRequest) Reset() {
*x = UpdateInstanceSettingRequest{}
mi := &file_api_instance_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateInstanceSettingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateInstanceSettingRequest) ProtoMessage() {}
func (x *UpdateInstanceSettingRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 UpdateInstanceSettingRequest.ProtoReflect.Descriptor instead.
func (*UpdateInstanceSettingRequest) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{6}
}
func (x *UpdateInstanceSettingRequest) GetInstanceSetting() *InstanceSetting {
if x != nil {
return x.InstanceSetting
}
return nil
}
func (x *UpdateInstanceSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
// Request message for InstanceService.TestInstanceEmailSetting.
type TestInstanceEmailSettingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Optional. The SMTP settings to test. If omitted, the stored notification email setting is used. An empty
// password reuses the stored password when the connection settings are unchanged.
Email *InstanceSetting_NotificationSetting_EmailSetting `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
// Optional. The recipient email address. If omitted, the current user's email address is used.
RecipientEmail string `protobuf:"bytes,2,opt,name=recipient_email,json=recipientEmail,proto3" json:"recipient_email,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestInstanceEmailSettingRequest) Reset() {
*x = TestInstanceEmailSettingRequest{}
mi := &file_api_instance_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestInstanceEmailSettingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestInstanceEmailSettingRequest) ProtoMessage() {}
func (x *TestInstanceEmailSettingRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 TestInstanceEmailSettingRequest.ProtoReflect.Descriptor instead.
func (*TestInstanceEmailSettingRequest) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{7}
}
func (x *TestInstanceEmailSettingRequest) GetEmail() *InstanceSetting_NotificationSetting_EmailSetting {
if x != nil {
return x.Email
}
return nil
}
func (x *TestInstanceEmailSettingRequest) GetRecipientEmail() string {
if x != nil {
return x.RecipientEmail
}
return ""
}
// InstanceStats is a snapshot of the instance's resource usage.
type InstanceStats struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The database size statistics.
Database *InstanceStats_DatabaseStats `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
// The recursive size of the data directory in bytes. -1 if unavailable.
LocalStorageBytes int64 `protobuf:"varint,2,opt,name=local_storage_bytes,json=localStorageBytes,proto3" json:"local_storage_bytes,omitempty"`
// The time the snapshot was generated on the server.
GeneratedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=generated_time,json=generatedTime,proto3" json:"generated_time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceStats) Reset() {
*x = InstanceStats{}
mi := &file_api_instance_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceStats) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceStats) ProtoMessage() {}
func (x *InstanceStats) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceStats.ProtoReflect.Descriptor instead.
func (*InstanceStats) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{8}
}
func (x *InstanceStats) GetDatabase() *InstanceStats_DatabaseStats {
if x != nil {
return x.Database
}
return nil
}
func (x *InstanceStats) GetLocalStorageBytes() int64 {
if x != nil {
return x.LocalStorageBytes
}
return 0
}
func (x *InstanceStats) GetGeneratedTime() *timestamppb.Timestamp {
if x != nil {
return x.GeneratedTime
}
return nil
}
// Request message for InstanceService.GetInstanceStats.
type GetInstanceStatsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetInstanceStatsRequest) Reset() {
*x = GetInstanceStatsRequest{}
mi := &file_api_instance_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetInstanceStatsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetInstanceStatsRequest) ProtoMessage() {}
func (x *GetInstanceStatsRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 GetInstanceStatsRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceStatsRequest) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{9}
}
// Request message for InstanceService.GetConfigurationStatus.
type GetConfigurationStatusRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetConfigurationStatusRequest) Reset() {
*x = GetConfigurationStatusRequest{}
mi := &file_api_instance_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetConfigurationStatusRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetConfigurationStatusRequest) ProtoMessage() {}
func (x *GetConfigurationStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 GetConfigurationStatusRequest.ProtoReflect.Descriptor instead.
func (*GetConfigurationStatusRequest) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{10}
}
// ConfigurationStatus is what declarative configuration manages on the instance.
type ConfigurationStatus struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The state record serial; zero before any apply has changed something.
Serial int64 `protobuf:"varint,1,opt,name=serial,proto3" json:"serial,omitempty"`
// Identifies the applied configuration, with sensitive values masked before hashing.
ConfigDigest string `protobuf:"bytes,2,opt,name=config_digest,json=configDigest,proto3" json:"config_digest,omitempty"`
// The apply path ("cli" or "startup") and the host of the last apply.
AppliedBy string `protobuf:"bytes,3,opt,name=applied_by,json=appliedBy,proto3" json:"applied_by,omitempty"`
// The Memos version of the last apply.
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
// The resources the configuration manages.
ManagedResources []*ConfigurationStatus_ManagedResource `protobuf:"bytes,5,rep,name=managed_resources,json=managedResources,proto3" json:"managed_resources,omitempty"`
// When the last apply that changed something ran.
ApplyTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=apply_time,json=applyTime,proto3" json:"apply_time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ConfigurationStatus) Reset() {
*x = ConfigurationStatus{}
mi := &file_api_instance_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ConfigurationStatus) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConfigurationStatus) ProtoMessage() {}
func (x *ConfigurationStatus) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 ConfigurationStatus.ProtoReflect.Descriptor instead.
func (*ConfigurationStatus) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{11}
}
func (x *ConfigurationStatus) GetSerial() int64 {
if x != nil {
return x.Serial
}
return 0
}
func (x *ConfigurationStatus) GetConfigDigest() string {
if x != nil {
return x.ConfigDigest
}
return ""
}
func (x *ConfigurationStatus) GetAppliedBy() string {
if x != nil {
return x.AppliedBy
}
return ""
}
func (x *ConfigurationStatus) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *ConfigurationStatus) GetManagedResources() []*ConfigurationStatus_ManagedResource {
if x != nil {
return x.ManagedResources
}
return nil
}
func (x *ConfigurationStatus) GetApplyTime() *timestamppb.Timestamp {
if x != nil {
return x.ApplyTime
}
return nil
}
// Challenge describes a proof-of-humanity challenge widget.
type InstanceProfile_Challenge struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The challenge provider, which selects the widget the web app renders.
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
// The provider's public site key for the widget.
SiteKey string `protobuf:"bytes,2,opt,name=site_key,json=siteKey,proto3" json:"site_key,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceProfile_Challenge) Reset() {
*x = InstanceProfile_Challenge{}
mi := &file_api_instance_service_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceProfile_Challenge) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceProfile_Challenge) ProtoMessage() {}
func (x *InstanceProfile_Challenge) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceProfile_Challenge.ProtoReflect.Descriptor instead.
func (*InstanceProfile_Challenge) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{0, 0}
}
func (x *InstanceProfile_Challenge) GetProvider() string {
if x != nil {
return x.Provider
}
return ""
}
func (x *InstanceProfile_Challenge) GetSiteKey() string {
if x != nil {
return x.SiteKey
}
return ""
}
// GeneralSetting is the general instance configuration.
type InstanceSetting_GeneralSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Branding shown in the web app.
CustomProfile *InstanceSetting_GeneralSetting_CustomProfile `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,proto3" json:"custom_profile,omitempty"`
// Whether user self-registration is disabled.
DisallowUserRegistration bool `protobuf:"varint,2,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"`
// Whether password authentication is disabled.
DisallowPasswordAuth bool `protobuf:"varint,3,opt,name=disallow_password_auth,json=disallowPasswordAuth,proto3" json:"disallow_password_auth,omitempty"`
// Whether users are prevented from changing their username.
DisallowChangeUsername bool `protobuf:"varint,4,opt,name=disallow_change_username,json=disallowChangeUsername,proto3" json:"disallow_change_username,omitempty"`
// Whether users are prevented from changing their nickname.
DisallowChangeNickname bool `protobuf:"varint,5,opt,name=disallow_change_nickname,json=disallowChangeNickname,proto3" json:"disallow_change_nickname,omitempty"`
// The first day of the week as an 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"`
// Custom CSS injected into the web app.
AdditionalStyle string `protobuf:"bytes,7,opt,name=additional_style,json=additionalStyle,proto3" json:"additional_style,omitempty"`
// Custom JavaScript injected into the web app.
AdditionalScript string `protobuf:"bytes,8,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_GeneralSetting) Reset() {
*x = InstanceSetting_GeneralSetting{}
mi := &file_api_instance_service_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_GeneralSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_GeneralSetting) ProtoMessage() {}
func (x *InstanceSetting_GeneralSetting) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_GeneralSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_GeneralSetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 0}
}
func (x *InstanceSetting_GeneralSetting) GetCustomProfile() *InstanceSetting_GeneralSetting_CustomProfile {
if x != nil {
return x.CustomProfile
}
return nil
}
func (x *InstanceSetting_GeneralSetting) GetDisallowUserRegistration() bool {
if x != nil {
return x.DisallowUserRegistration
}
return false
}
func (x *InstanceSetting_GeneralSetting) GetDisallowPasswordAuth() bool {
if x != nil {
return x.DisallowPasswordAuth
}
return false
}
func (x *InstanceSetting_GeneralSetting) GetDisallowChangeUsername() bool {
if x != nil {
return x.DisallowChangeUsername
}
return false
}
func (x *InstanceSetting_GeneralSetting) GetDisallowChangeNickname() bool {
if x != nil {
return x.DisallowChangeNickname
}
return false
}
func (x *InstanceSetting_GeneralSetting) GetWeekStartDayOffset() int32 {
if x != nil {
return x.WeekStartDayOffset
}
return 0
}
func (x *InstanceSetting_GeneralSetting) GetAdditionalStyle() string {
if x != nil {
return x.AdditionalStyle
}
return ""
}
func (x *InstanceSetting_GeneralSetting) GetAdditionalScript() string {
if x != nil {
return x.AdditionalScript
}
return ""
}
// StorageSetting is the attachment storage configuration.
type InstanceSetting_StorageSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Configured storage instances, including inactive instances still referenced by attachments.
Storages []*InstanceSetting_Storage `protobuf:"bytes,1,rep,name=storages,proto3" json:"storages,omitempty"`
// The ID of the storage used for new attachments.
DefaultStorageId string `protobuf:"bytes,2,opt,name=default_storage_id,json=defaultStorageId,proto3" json:"default_storage_id,omitempty"`
// The template of attachment file paths.
// Default is assets/{timestamp}_{uuid}_{filename}.
FilepathTemplate string `protobuf:"bytes,3,opt,name=filepath_template,json=filepathTemplate,proto3" json:"filepath_template,omitempty"`
// Legacy compatibility field. New clients use default_storage_id.
StorageType InstanceSetting_StorageSetting_StorageType `protobuf:"varint,4,opt,name=storage_type,json=storageType,proto3,enum=memos.api.InstanceSetting_StorageSetting_StorageType" json:"storage_type,omitempty"`
// Legacy compatibility field. New clients use storages.
S3Config *InstanceSetting_StorageSetting_S3Config `protobuf:"bytes,5,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_StorageSetting) Reset() {
*x = InstanceSetting_StorageSetting{}
mi := &file_api_instance_service_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_StorageSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_StorageSetting) ProtoMessage() {}
func (x *InstanceSetting_StorageSetting) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_StorageSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_StorageSetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 1}
}
func (x *InstanceSetting_StorageSetting) GetStorages() []*InstanceSetting_Storage {
if x != nil {
return x.Storages
}
return nil
}
func (x *InstanceSetting_StorageSetting) GetDefaultStorageId() string {
if x != nil {
return x.DefaultStorageId
}
return ""
}
func (x *InstanceSetting_StorageSetting) GetFilepathTemplate() string {
if x != nil {
return x.FilepathTemplate
}
return ""
}
func (x *InstanceSetting_StorageSetting) GetStorageType() InstanceSetting_StorageSetting_StorageType {
if x != nil {
return x.StorageType
}
return InstanceSetting_StorageSetting_STORAGE_TYPE_UNSPECIFIED
}
func (x *InstanceSetting_StorageSetting) GetS3Config() *InstanceSetting_StorageSetting_S3Config {
if x != nil {
return x.S3Config
}
return nil
}
// Storage is a configured attachment storage instance.
type InstanceSetting_Storage struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The stable identifier referenced by attachments.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The human-readable storage name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The storage backend.
Type InstanceSetting_StorageType `protobuf:"varint,3,opt,name=type,proto3,enum=memos.api.InstanceSetting_StorageType" json:"type,omitempty"`
// The backend-specific configuration.
//
// Types that are valid to be assigned to Config:
//
// *InstanceSetting_Storage_S3Config_
Config isInstanceSetting_Storage_Config `protobuf_oneof:"config"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_Storage) Reset() {
*x = InstanceSetting_Storage{}
mi := &file_api_instance_service_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_Storage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_Storage) ProtoMessage() {}
func (x *InstanceSetting_Storage) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_Storage.ProtoReflect.Descriptor instead.
func (*InstanceSetting_Storage) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 2}
}
func (x *InstanceSetting_Storage) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *InstanceSetting_Storage) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *InstanceSetting_Storage) GetType() InstanceSetting_StorageType {
if x != nil {
return x.Type
}
return InstanceSetting_STORAGE_TYPE_UNSPECIFIED
}
func (x *InstanceSetting_Storage) GetConfig() isInstanceSetting_Storage_Config {
if x != nil {
return x.Config
}
return nil
}
func (x *InstanceSetting_Storage) GetS3Config() *InstanceSetting_Storage_S3Config {
if x != nil {
if x, ok := x.Config.(*InstanceSetting_Storage_S3Config_); ok {
return x.S3Config
}
}
return nil
}
type isInstanceSetting_Storage_Config interface {
isInstanceSetting_Storage_Config()
}
type InstanceSetting_Storage_S3Config_ struct {
// The configuration of an S3 storage.
S3Config *InstanceSetting_Storage_S3Config `protobuf:"bytes,4,opt,name=s3_config,json=s3Config,proto3,oneof"`
}
func (*InstanceSetting_Storage_S3Config_) isInstanceSetting_Storage_Config() {}
// TagsSetting is the instance-wide tag metadata configuration.
// Active tag metadata is stored in per-user tag settings. This message remains for backward compatibility with
// existing clients and migrations.
type InstanceSetting_TagsSetting 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.
Tags map[string]*InstanceSetting_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 *InstanceSetting_TagsSetting) Reset() {
*x = InstanceSetting_TagsSetting{}
mi := &file_api_instance_service_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_TagsSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_TagsSetting) ProtoMessage() {}
func (x *InstanceSetting_TagsSetting) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_TagsSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_TagsSetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 3}
}
func (x *InstanceSetting_TagsSetting) GetTags() map[string]*InstanceSetting_TagMetadata {
if x != nil {
return x.Tags
}
return nil
}
// TagMetadata is the display metadata for a tag.
type InstanceSetting_TagMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 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"`
// 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 *InstanceSetting_TagMetadata) Reset() {
*x = InstanceSetting_TagMetadata{}
mi := &file_api_instance_service_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_TagMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_TagMetadata) ProtoMessage() {}
func (x *InstanceSetting_TagMetadata) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_TagMetadata.ProtoReflect.Descriptor instead.
func (*InstanceSetting_TagMetadata) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 4}
}
func (x *InstanceSetting_TagMetadata) GetBackgroundColor() *color.Color {
if x != nil {
return x.BackgroundColor
}
return nil
}
func (x *InstanceSetting_TagMetadata) GetBlurContent() bool {
if x != nil {
return x.BlurContent
}
return false
}
// NotificationSetting is the notification transport configuration.
type InstanceSetting_NotificationSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The email delivery configuration.
Email *InstanceSetting_NotificationSetting_EmailSetting `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_NotificationSetting) Reset() {
*x = InstanceSetting_NotificationSetting{}
mi := &file_api_instance_service_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_NotificationSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_NotificationSetting) ProtoMessage() {}
func (x *InstanceSetting_NotificationSetting) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_NotificationSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_NotificationSetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 5}
}
func (x *InstanceSetting_NotificationSetting) GetEmail() *InstanceSetting_NotificationSetting_EmailSetting {
if x != nil {
return x.Email
}
return nil
}
// AISetting is the AI provider configuration.
type InstanceSetting_AISetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The AI provider configurations available instance-wide.
Providers []*InstanceSetting_AIProviderConfig `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
// The speech-to-text feature configuration.
// When unset or transcription.provider_id is empty, transcription is disabled. An update that omits it keeps the
// stored configuration.
Transcription *InstanceSetting_TranscriptionConfig `protobuf:"bytes,2,opt,name=transcription,proto3" json:"transcription,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_AISetting) Reset() {
*x = InstanceSetting_AISetting{}
mi := &file_api_instance_service_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_AISetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_AISetting) ProtoMessage() {}
func (x *InstanceSetting_AISetting) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_AISetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_AISetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 6}
}
func (x *InstanceSetting_AISetting) GetProviders() []*InstanceSetting_AIProviderConfig {
if x != nil {
return x.Providers
}
return nil
}
func (x *InstanceSetting_AISetting) GetTranscription() *InstanceSetting_TranscriptionConfig {
if x != nil {
return x.Transcription
}
return nil
}
// AIProviderConfig is one callable AI provider connection.
type InstanceSetting_AIProviderConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The provider ID. Generated when empty on update.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The provider display title.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// The provider implementation type.
Type InstanceSetting_AIProviderType `protobuf:"varint,3,opt,name=type,proto3,enum=memos.api.InstanceSetting_AIProviderType" json:"type,omitempty"`
// The provider API endpoint. Defaults to the provider's public endpoint when empty.
Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// Input only. The provider API key. Never returned; an empty value keeps the stored key.
ApiKey string `protobuf:"bytes,5,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
// Output only. Whether an API key is stored for this provider.
ApiKeySet bool `protobuf:"varint,6,opt,name=api_key_set,json=apiKeySet,proto3" json:"api_key_set,omitempty"`
// Output only. A masked hint of the stored API key.
ApiKeyHint string `protobuf:"bytes,7,opt,name=api_key_hint,json=apiKeyHint,proto3" json:"api_key_hint,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_AIProviderConfig) Reset() {
*x = InstanceSetting_AIProviderConfig{}
mi := &file_api_instance_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_AIProviderConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_AIProviderConfig) ProtoMessage() {}
func (x *InstanceSetting_AIProviderConfig) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_AIProviderConfig.ProtoReflect.Descriptor instead.
func (*InstanceSetting_AIProviderConfig) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 7}
}
func (x *InstanceSetting_AIProviderConfig) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *InstanceSetting_AIProviderConfig) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *InstanceSetting_AIProviderConfig) GetType() InstanceSetting_AIProviderType {
if x != nil {
return x.Type
}
return InstanceSetting_AI_PROVIDER_TYPE_UNSPECIFIED
}
func (x *InstanceSetting_AIProviderConfig) GetEndpoint() string {
if x != nil {
return x.Endpoint
}
return ""
}
func (x *InstanceSetting_AIProviderConfig) GetApiKey() string {
if x != nil {
return x.ApiKey
}
return ""
}
func (x *InstanceSetting_AIProviderConfig) GetApiKeySet() bool {
if x != nil {
return x.ApiKeySet
}
return false
}
func (x *InstanceSetting_AIProviderConfig) GetApiKeyHint() string {
if x != nil {
return x.ApiKeyHint
}
return ""
}
// TranscriptionConfig is the speech-to-text feature configuration.
type InstanceSetting_TranscriptionConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The ID of the provider used for transcription; must reference an entry in AISetting.providers.
// Empty means transcription is disabled.
ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
// The provider-specific model identifier. Hidden from non-admins.
// Empty falls back to the engine default (whisper-1 for OPENAI providers, gemini-2.5-flash for GEMINI providers).
Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
// The default ISO 639-1 language hint sent to the provider. Hidden from non-admins.
// Empty lets the provider auto-detect.
Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
// A default spelling and vocabulary hint passed to the provider. Hidden from non-admins.
Prompt string `protobuf:"bytes,4,opt,name=prompt,proto3" json:"prompt,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_TranscriptionConfig) Reset() {
*x = InstanceSetting_TranscriptionConfig{}
mi := &file_api_instance_service_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_TranscriptionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_TranscriptionConfig) ProtoMessage() {}
func (x *InstanceSetting_TranscriptionConfig) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_TranscriptionConfig.ProtoReflect.Descriptor instead.
func (*InstanceSetting_TranscriptionConfig) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 8}
}
func (x *InstanceSetting_TranscriptionConfig) GetProviderId() string {
if x != nil {
return x.ProviderId
}
return ""
}
func (x *InstanceSetting_TranscriptionConfig) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
func (x *InstanceSetting_TranscriptionConfig) GetLanguage() string {
if x != nil {
return x.Language
}
return ""
}
func (x *InstanceSetting_TranscriptionConfig) GetPrompt() string {
if x != nil {
return x.Prompt
}
return ""
}
// AccessSetting is the instance access policy.
type InstanceSetting_AccessSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Whether unauthenticated users may access instance content. Must be PRIVATE or PUBLIC on update.
AccessMode InstanceAccessMode `protobuf:"varint,1,opt,name=access_mode,json=accessMode,proto3,enum=memos.api.InstanceAccessMode" json:"access_mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_AccessSetting) Reset() {
*x = InstanceSetting_AccessSetting{}
mi := &file_api_instance_service_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_AccessSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_AccessSetting) ProtoMessage() {}
func (x *InstanceSetting_AccessSetting) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_AccessSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_AccessSetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 9}
}
func (x *InstanceSetting_AccessSetting) GetAccessMode() InstanceAccessMode {
if x != nil {
return x.AccessMode
}
return InstanceAccessMode_INSTANCE_ACCESS_MODE_UNSPECIFIED
}
// UsageLimitsSetting 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. The setting is read and replaced whole. Admins
// are limited like everyone else.
type InstanceSetting_UsageLimitsSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The entries, in the order they are checked. At most 100, naming at most
// 1,000 users in all.
Limits []*InstanceSetting_UsageLimitsSetting_UsageLimit `protobuf:"bytes,1,rep,name=limits,proto3" json:"limits,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_UsageLimitsSetting) Reset() {
*x = InstanceSetting_UsageLimitsSetting{}
mi := &file_api_instance_service_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_UsageLimitsSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_UsageLimitsSetting) ProtoMessage() {}
func (x *InstanceSetting_UsageLimitsSetting) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_UsageLimitsSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_UsageLimitsSetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 10}
}
func (x *InstanceSetting_UsageLimitsSetting) GetLimits() []*InstanceSetting_UsageLimitsSetting_UsageLimit {
if x != nil {
return x.Limits
}
return nil
}
// CustomProfile is the instance branding.
type InstanceSetting_GeneralSetting_CustomProfile struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The instance title.
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// The instance description.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// The URL of the instance logo.
LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_GeneralSetting_CustomProfile) Reset() {
*x = InstanceSetting_GeneralSetting_CustomProfile{}
mi := &file_api_instance_service_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_GeneralSetting_CustomProfile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_GeneralSetting_CustomProfile) ProtoMessage() {}
func (x *InstanceSetting_GeneralSetting_CustomProfile) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_GeneralSetting_CustomProfile.ProtoReflect.Descriptor instead.
func (*InstanceSetting_GeneralSetting_CustomProfile) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 0, 0}
}
func (x *InstanceSetting_GeneralSetting_CustomProfile) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *InstanceSetting_GeneralSetting_CustomProfile) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *InstanceSetting_GeneralSetting_CustomProfile) GetLogoUrl() string {
if x != nil {
return x.LogoUrl
}
return ""
}
// S3Config is the legacy S3 configuration, retained for compatibility with existing clients.
// Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
type InstanceSetting_StorageSetting_S3Config struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The S3 endpoint URL.
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// The S3 region.
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
// The S3 bucket.
Bucket string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
// The S3 access key ID.
AccessKeyId string `protobuf:"bytes,4,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
// Input only. The S3 access key secret. Never returned; an empty value keeps the stored secret.
AccessKeySecret string `protobuf:"bytes,5,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
// Whether to use path-style addressing instead of virtual-hosted-style.
UsePathStyle bool `protobuf:"varint,6,opt,name=use_path_style,json=usePathStyle,proto3" json:"use_path_style,omitempty"`
// Whether to skip 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 *InstanceSetting_StorageSetting_S3Config) Reset() {
*x = InstanceSetting_StorageSetting_S3Config{}
mi := &file_api_instance_service_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_StorageSetting_S3Config) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_StorageSetting_S3Config) ProtoMessage() {}
func (x *InstanceSetting_StorageSetting_S3Config) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_StorageSetting_S3Config.ProtoReflect.Descriptor instead.
func (*InstanceSetting_StorageSetting_S3Config) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 1, 0}
}
func (x *InstanceSetting_StorageSetting_S3Config) GetEndpoint() string {
if x != nil {
return x.Endpoint
}
return ""
}
func (x *InstanceSetting_StorageSetting_S3Config) GetRegion() string {
if x != nil {
return x.Region
}
return ""
}
func (x *InstanceSetting_StorageSetting_S3Config) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *InstanceSetting_StorageSetting_S3Config) GetAccessKeyId() string {
if x != nil {
return x.AccessKeyId
}
return ""
}
func (x *InstanceSetting_StorageSetting_S3Config) GetAccessKeySecret() string {
if x != nil {
return x.AccessKeySecret
}
return ""
}
func (x *InstanceSetting_StorageSetting_S3Config) GetUsePathStyle() bool {
if x != nil {
return x.UsePathStyle
}
return false
}
func (x *InstanceSetting_StorageSetting_S3Config) GetInsecureSkipTlsVerify() bool {
if x != nil {
return x.InsecureSkipTlsVerify
}
return false
}
// S3Config is the configuration of an S3-compatible object store.
// Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/
type InstanceSetting_Storage_S3Config struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The S3 endpoint URL.
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// The S3 region.
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
// The S3 bucket.
Bucket string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
// The S3 access key ID.
AccessKeyId string `protobuf:"bytes,4,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
// Input only. The S3 access key secret. Never returned; an empty value keeps the stored secret.
AccessKeySecret string `protobuf:"bytes,5,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"`
// Whether to use path-style addressing instead of virtual-hosted-style.
UsePathStyle bool `protobuf:"varint,6,opt,name=use_path_style,json=usePathStyle,proto3" json:"use_path_style,omitempty"`
// Whether to skip 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 *InstanceSetting_Storage_S3Config) Reset() {
*x = InstanceSetting_Storage_S3Config{}
mi := &file_api_instance_service_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_Storage_S3Config) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_Storage_S3Config) ProtoMessage() {}
func (x *InstanceSetting_Storage_S3Config) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_Storage_S3Config.ProtoReflect.Descriptor instead.
func (*InstanceSetting_Storage_S3Config) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 2, 0}
}
func (x *InstanceSetting_Storage_S3Config) GetEndpoint() string {
if x != nil {
return x.Endpoint
}
return ""
}
func (x *InstanceSetting_Storage_S3Config) GetRegion() string {
if x != nil {
return x.Region
}
return ""
}
func (x *InstanceSetting_Storage_S3Config) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *InstanceSetting_Storage_S3Config) GetAccessKeyId() string {
if x != nil {
return x.AccessKeyId
}
return ""
}
func (x *InstanceSetting_Storage_S3Config) GetAccessKeySecret() string {
if x != nil {
return x.AccessKeySecret
}
return ""
}
func (x *InstanceSetting_Storage_S3Config) GetUsePathStyle() bool {
if x != nil {
return x.UsePathStyle
}
return false
}
func (x *InstanceSetting_Storage_S3Config) GetInsecureSkipTlsVerify() bool {
if x != nil {
return x.InsecureSkipTlsVerify
}
return false
}
// EmailSetting is the SMTP configuration for notification emails.
type InstanceSetting_NotificationSetting_EmailSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Whether email notifications are enabled.
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// The SMTP server host.
SmtpHost string `protobuf:"bytes,2,opt,name=smtp_host,json=smtpHost,proto3" json:"smtp_host,omitempty"`
// The SMTP server port.
SmtpPort int32 `protobuf:"varint,3,opt,name=smtp_port,json=smtpPort,proto3" json:"smtp_port,omitempty"`
// The SMTP username.
SmtpUsername string `protobuf:"bytes,4,opt,name=smtp_username,json=smtpUsername,proto3" json:"smtp_username,omitempty"`
// Input only. The SMTP password. Never returned. An empty value keeps the stored password, unless the host,
// port, username or encryption settings change.
SmtpPassword string `protobuf:"bytes,5,opt,name=smtp_password,json=smtpPassword,proto3" json:"smtp_password,omitempty"`
// Whether to use STARTTLS.
UseTls bool `protobuf:"varint,6,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
// Whether to use implicit SSL/TLS.
UseSsl bool `protobuf:"varint,7,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"`
// The sender email address.
FromEmail string `protobuf:"bytes,8,opt,name=from_email,json=fromEmail,proto3" json:"from_email,omitempty"`
// The sender display name.
FromName string `protobuf:"bytes,9,opt,name=from_name,json=fromName,proto3" json:"from_name,omitempty"`
// The Reply-To email address.
ReplyTo string `protobuf:"bytes,10,opt,name=reply_to,json=replyTo,proto3" json:"reply_to,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) Reset() {
*x = InstanceSetting_NotificationSetting_EmailSetting{}
mi := &file_api_instance_service_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_NotificationSetting_EmailSetting) ProtoMessage() {}
func (x *InstanceSetting_NotificationSetting_EmailSetting) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_NotificationSetting_EmailSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_NotificationSetting_EmailSetting) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 5, 0}
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetEnabled() bool {
if x != nil {
return x.Enabled
}
return false
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetSmtpHost() string {
if x != nil {
return x.SmtpHost
}
return ""
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetSmtpPort() int32 {
if x != nil {
return x.SmtpPort
}
return 0
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetSmtpUsername() string {
if x != nil {
return x.SmtpUsername
}
return ""
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetSmtpPassword() string {
if x != nil {
return x.SmtpPassword
}
return ""
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetUseTls() bool {
if x != nil {
return x.UseTls
}
return false
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetUseSsl() bool {
if x != nil {
return x.UseSsl
}
return false
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetFromEmail() string {
if x != nil {
return x.FromEmail
}
return ""
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetFromName() string {
if x != nil {
return x.FromName
}
return ""
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetReplyTo() string {
if x != nil {
return x.ReplyTo
}
return ""
}
// UsageLimit is one entry: who it applies to and the limit for each
// metric. An unset limit is unlimited, as is 0.
type InstanceSetting_UsageLimitsSetting_UsageLimit struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The users the entry applies to. Not repeated within an entry.
// Format: users/{user}
Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
// Whether the entry applies to every user. Exactly one entry has it, and
// it is the last entry. An entry has users or all_users, never both.
AllUsers bool `protobuf:"varint,3,opt,name=all_users,json=allUsers,proto3" json:"all_users,omitempty"`
// The number of memos the user may have created, comments and archived
// memos included.
MemoCount *int64 `protobuf:"varint,4,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,5,opt,name=memo_content_bytes,json=memoContentBytes,proto3,oneof" json:"memo_content_bytes,omitempty"`
// The total size in bytes of the 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"`
// The size in bytes 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 *InstanceSetting_UsageLimitsSetting_UsageLimit) Reset() {
*x = InstanceSetting_UsageLimitsSetting_UsageLimit{}
mi := &file_api_instance_service_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceSetting_UsageLimitsSetting_UsageLimit) ProtoMessage() {}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceSetting_UsageLimitsSetting_UsageLimit.ProtoReflect.Descriptor instead.
func (*InstanceSetting_UsageLimitsSetting_UsageLimit) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{2, 10, 0}
}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) GetUsers() []string {
if x != nil {
return x.Users
}
return nil
}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) GetAllUsers() bool {
if x != nil {
return x.AllUsers
}
return false
}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) GetMemoCount() int64 {
if x != nil && x.MemoCount != nil {
return *x.MemoCount
}
return 0
}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) GetMemoContentBytes() int64 {
if x != nil && x.MemoContentBytes != nil {
return *x.MemoContentBytes
}
return 0
}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) GetStorageBytes() int64 {
if x != nil && x.StorageBytes != nil {
return *x.StorageBytes
}
return 0
}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) GetUploadBytes() int64 {
if x != nil && x.UploadBytes != nil {
return *x.UploadBytes
}
return 0
}
// DatabaseStats is the database size statistics.
type InstanceStats_DatabaseStats struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The database driver: "sqlite", "mysql" or "postgres".
Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
// The database size in bytes. -1 if unavailable.
SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceStats_DatabaseStats) Reset() {
*x = InstanceStats_DatabaseStats{}
mi := &file_api_instance_service_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceStats_DatabaseStats) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceStats_DatabaseStats) ProtoMessage() {}
func (x *InstanceStats_DatabaseStats) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 InstanceStats_DatabaseStats.ProtoReflect.Descriptor instead.
func (*InstanceStats_DatabaseStats) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{8, 0}
}
func (x *InstanceStats_DatabaseStats) GetDriver() string {
if x != nil {
return x.Driver
}
return ""
}
func (x *InstanceStats_DatabaseStats) GetSizeBytes() int64 {
if x != nil {
return x.SizeBytes
}
return 0
}
// ManagedResource is one resource the configuration manages.
type ConfigurationStatus_ManagedResource struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The resource name.
// Format: identity-providers/{idp}, instance/settings/{setting}, or users/{user}
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// The configuration file that declares the resource.
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// The field paths, in JSON names, the configuration manages; "*" means the whole resource.
ManagedFields []string `protobuf:"bytes,3,rep,name=managed_fields,json=managedFields,proto3" json:"managed_fields,omitempty"`
// The managed field paths the configuration does not write after creation, so the API accepts edits to them.
IgnoredFields []string `protobuf:"bytes,4,rep,name=ignored_fields,json=ignoredFields,proto3" json:"ignored_fields,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ConfigurationStatus_ManagedResource) Reset() {
*x = ConfigurationStatus_ManagedResource{}
mi := &file_api_instance_service_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ConfigurationStatus_ManagedResource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConfigurationStatus_ManagedResource) ProtoMessage() {}
func (x *ConfigurationStatus_ManagedResource) ProtoReflect() protoreflect.Message {
mi := &file_api_instance_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 ConfigurationStatus_ManagedResource.ProtoReflect.Descriptor instead.
func (*ConfigurationStatus_ManagedResource) Descriptor() ([]byte, []int) {
return file_api_instance_service_proto_rawDescGZIP(), []int{11, 0}
}
func (x *ConfigurationStatus_ManagedResource) GetResource() string {
if x != nil {
return x.Resource
}
return ""
}
func (x *ConfigurationStatus_ManagedResource) GetSource() string {
if x != nil {
return x.Source
}
return ""
}
func (x *ConfigurationStatus_ManagedResource) GetManagedFields() []string {
if x != nil {
return x.ManagedFields
}
return nil
}
func (x *ConfigurationStatus_ManagedResource) GetIgnoredFields() []string {
if x != nil {
return x.IgnoredFields
}
return nil
}
var File_api_instance_service_proto protoreflect.FileDescriptor
const file_api_instance_service_proto_rawDesc = "" +
"\n" +
"\x1aapi/instance_service.proto\x12\tmemos.api\x1a\x16api/user_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\"\x8a\x03\n" +
"\x0fInstanceProfile\x12\x18\n" +
"\aversion\x18\x01 \x01(\tR\aversion\x12\x16\n" +
"\x06commit\x18\x02 \x01(\tR\x06commit\x12\x12\n" +
"\x04demo\x18\x03 \x01(\bR\x04demo\x12!\n" +
"\finstance_url\x18\x04 \x01(\tR\vinstanceUrl\x12>\n" +
"\vaccess_mode\x18\x05 \x01(\x0e2\x1d.memos.api.InstanceAccessModeR\n" +
"accessMode\x12\x1f\n" +
"\vneeds_setup\x18\x06 \x01(\bR\n" +
"needsSetup\x12%\n" +
"\x05admin\x18\a \x01(\v2\x0f.memos.api.UserR\x05admin\x12B\n" +
"\tchallenge\x18\b \x01(\v2$.memos.api.InstanceProfile.ChallengeR\tchallenge\x1aB\n" +
"\tChallenge\x12\x1a\n" +
"\bprovider\x18\x01 \x01(\tR\bprovider\x12\x19\n" +
"\bsite_key\x18\x02 \x01(\tR\asiteKey\"\x1b\n" +
"\x19GetInstanceProfileRequest\"\x83$\n" +
"\x0fInstanceSetting\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12T\n" +
"\x0fgeneral_setting\x18\x02 \x01(\v2).memos.api.InstanceSetting.GeneralSettingH\x00R\x0egeneralSetting\x12T\n" +
"\x0fstorage_setting\x18\x03 \x01(\v2).memos.api.InstanceSetting.StorageSettingH\x00R\x0estorageSetting\x12K\n" +
"\ftags_setting\x18\x05 \x01(\v2&.memos.api.InstanceSetting.TagsSettingH\x00R\vtagsSetting\x12c\n" +
"\x14notification_setting\x18\x06 \x01(\v2..memos.api.InstanceSetting.NotificationSettingH\x00R\x13notificationSetting\x12E\n" +
"\n" +
"ai_setting\x18\a \x01(\v2$.memos.api.InstanceSetting.AISettingH\x00R\taiSetting\x12Q\n" +
"\x0eaccess_setting\x18\b \x01(\v2(.memos.api.InstanceSetting.AccessSettingH\x00R\raccessSetting\x12a\n" +
"\x14usage_limits_setting\x18\t \x01(\v2-.memos.api.InstanceSetting.UsageLimitsSettingH\x00R\x12usageLimitsSetting\x1a\xc7\x04\n" +
"\x0eGeneralSetting\x12^\n" +
"\x0ecustom_profile\x18\x01 \x01(\v27.memos.api.InstanceSetting.GeneralSetting.CustomProfileR\rcustomProfile\x12<\n" +
"\x1adisallow_user_registration\x18\x02 \x01(\bR\x18disallowUserRegistration\x124\n" +
"\x16disallow_password_auth\x18\x03 \x01(\bR\x14disallowPasswordAuth\x128\n" +
"\x18disallow_change_username\x18\x04 \x01(\bR\x16disallowChangeUsername\x128\n" +
"\x18disallow_change_nickname\x18\x05 \x01(\bR\x16disallowChangeNickname\x121\n" +
"\x15week_start_day_offset\x18\x06 \x01(\x05R\x12weekStartDayOffset\x12)\n" +
"\x10additional_style\x18\a \x01(\tR\x0fadditionalStyle\x12+\n" +
"\x11additional_script\x18\b \x01(\tR\x10additionalScript\x1ab\n" +
"\rCustomProfile\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\x1a\xb1\x05\n" +
"\x0eStorageSetting\x12>\n" +
"\bstorages\x18\x01 \x03(\v2\".memos.api.InstanceSetting.StorageR\bstorages\x12,\n" +
"\x12default_storage_id\x18\x02 \x01(\tR\x10defaultStorageId\x12+\n" +
"\x11filepath_template\x18\x03 \x01(\tR\x10filepathTemplate\x12X\n" +
"\fstorage_type\x18\x04 \x01(\x0e25.memos.api.InstanceSetting.StorageSetting.StorageTypeR\vstorageType\x12O\n" +
"\ts3_config\x18\x05 \x01(\v22.memos.api.InstanceSetting.StorageSetting.S3ConfigR\bs3Config\x1a\x8a\x02\n" +
"\bS3Config\x12\x1a\n" +
"\bendpoint\x18\x01 \x01(\tR\bendpoint\x12\x16\n" +
"\x06region\x18\x02 \x01(\tR\x06region\x12\x16\n" +
"\x06bucket\x18\x03 \x01(\tR\x06bucket\x12\"\n" +
"\raccess_key_id\x18\x04 \x01(\tR\vaccessKeyId\x12/\n" +
"\x11access_key_secret\x18\x05 \x01(\tB\x03\xe0A\x04R\x0faccessKeySecret\x12$\n" +
"\x0euse_path_style\x18\x06 \x01(\bR\fusePathStyle\x127\n" +
"\x18insecure_skip_tls_verify\x18\a \x01(\bR\x15insecureSkipTlsVerify\"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\x1a\xcc\x03\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&.memos.api.InstanceSetting.StorageTypeR\x04type\x12J\n" +
"\ts3_config\x18\x04 \x01(\v2+.memos.api.InstanceSetting.Storage.S3ConfigH\x00R\bs3Config\x1a\x8a\x02\n" +
"\bS3Config\x12\x1a\n" +
"\bendpoint\x18\x01 \x01(\tR\bendpoint\x12\x16\n" +
"\x06region\x18\x02 \x01(\tR\x06region\x12\x16\n" +
"\x06bucket\x18\x03 \x01(\tR\x06bucket\x12\"\n" +
"\raccess_key_id\x18\x04 \x01(\tR\vaccessKeyId\x12/\n" +
"\x11access_key_secret\x18\x05 \x01(\tB\x03\xe0A\x04R\x0faccessKeySecret\x12$\n" +
"\x0euse_path_style\x18\x06 \x01(\bR\fusePathStyle\x127\n" +
"\x18insecure_skip_tls_verify\x18\a \x01(\bR\x15insecureSkipTlsVerifyB\b\n" +
"\x06config\x1a\xb4\x01\n" +
"\vTagsSetting\x12D\n" +
"\x04tags\x18\x01 \x03(\v20.memos.api.InstanceSetting.TagsSetting.TagsEntryR\x04tags\x1a_\n" +
"\tTagsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12<\n" +
"\x05value\x18\x02 \x01(\v2&.memos.api.InstanceSetting.TagMetadataR\x05value:\x028\x01\x1ao\n" +
"\vTagMetadata\x12=\n" +
"\x10background_color\x18\x01 \x01(\v2\x12.google.type.ColorR\x0fbackgroundColor\x12!\n" +
"\fblur_content\x18\x02 \x01(\bR\vblurContent\x1a\xa5\x03\n" +
"\x13NotificationSetting\x12Q\n" +
"\x05email\x18\x01 \x01(\v2;.memos.api.InstanceSetting.NotificationSetting.EmailSettingR\x05email\x1a\xba\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(\tB\x03\xe0A\x04R\fsmtpPassword\x12\x17\n" +
"\ause_tls\x18\x06 \x01(\bR\x06useTls\x12\x17\n" +
"\ause_ssl\x18\a \x01(\bR\x06useSsl\x12\x1d\n" +
"\n" +
"from_email\x18\b \x01(\tR\tfromEmail\x12\x1b\n" +
"\tfrom_name\x18\t \x01(\tR\bfromName\x12\x19\n" +
"\breply_to\x18\n" +
" \x01(\tR\areplyTo\x1a\xac\x01\n" +
"\tAISetting\x12I\n" +
"\tproviders\x18\x01 \x03(\v2+.memos.api.InstanceSetting.AIProviderConfigR\tproviders\x12T\n" +
"\rtranscription\x18\x02 \x01(\v2..memos.api.InstanceSetting.TranscriptionConfigR\rtranscription\x1a\xfd\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).memos.api.InstanceSetting.AIProviderTypeR\x04type\x12\x1a\n" +
"\bendpoint\x18\x04 \x01(\tR\bendpoint\x12\x1c\n" +
"\aapi_key\x18\x05 \x01(\tB\x03\xe0A\x04R\x06apiKey\x12#\n" +
"\vapi_key_set\x18\x06 \x01(\bB\x03\xe0A\x03R\tapiKeySet\x12%\n" +
"\fapi_key_hint\x18\a \x01(\tB\x03\xe0A\x03R\n" +
"apiKeyHint\x1a\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\x1aO\n" +
"\rAccessSetting\x12>\n" +
"\vaccess_mode\x18\x01 \x01(\x0e2\x1d.memos.api.InstanceAccessModeR\n" +
"accessMode\x1a\xaf\x03\n" +
"\x12UsageLimitsSetting\x12P\n" +
"\x06limits\x18\x01 \x03(\v28.memos.api.InstanceSetting.UsageLimitsSetting.UsageLimitR\x06limits\x1a\xc6\x02\n" +
"\n" +
"UsageLimit\x12)\n" +
"\x05users\x18\x01 \x03(\tB\x13\xfaA\x10\n" +
"\x0ememos.api/UserR\x05users\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\"\x8a\x01\n" +
"\x03Key\x12\x13\n" +
"\x0fKEY_UNSPECIFIED\x10\x00\x12\v\n" +
"\aGENERAL\x10\x01\x12\v\n" +
"\aSTORAGE\x10\x02\x12\b\n" +
"\x04TAGS\x10\x04\x12\x10\n" +
"\fNOTIFICATION\x10\x05\x12\x06\n" +
"\x02AI\x10\x06\x12\n" +
"\n" +
"\x06ACCESS\x10\a\x12\x10\n" +
"\fUSAGE_LIMITS\x10\b\"\x04\b\x03\x10\x03*\fMEMO_RELATED\"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\"J\n" +
"\x0eAIProviderType\x12 \n" +
"\x1cAI_PROVIDER_TYPE_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
"\x06OPENAI\x10\x01\x12\n" +
"\n" +
"\x06GEMINI\x10\x02:^\xeaA[\n" +
"\x19memos.api/InstanceSetting\x12\x1binstance/settings/{setting}*\x10instanceSettings2\x0finstanceSettingB\a\n" +
"\x05valueJ\x04\b\x04\x10\x05R\x14memo_related_setting\"R\n" +
"\x19GetInstanceSettingRequest\x125\n" +
"\x04name\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\n" +
"\x19memos.api/InstanceSettingR\x04name\"Z\n" +
"\x1fBatchGetInstanceSettingsRequest\x127\n" +
"\x05names\x18\x01 \x03(\tB!\xe0A\x02\xfaA\x1b\n" +
"\x19memos.api/InstanceSettingR\x05names\"k\n" +
" BatchGetInstanceSettingsResponse\x12G\n" +
"\x11instance_settings\x18\x01 \x03(\v2\x1a.memos.api.InstanceSettingR\x10instanceSettings\"\xac\x01\n" +
"\x1cUpdateInstanceSettingRequest\x12J\n" +
"\x10instance_setting\x18\x01 \x01(\v2\x1a.memos.api.InstanceSettingB\x03\xe0A\x02R\x0finstanceSetting\x12@\n" +
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x01R\n" +
"updateMask\"\xa7\x01\n" +
"\x1fTestInstanceEmailSettingRequest\x12V\n" +
"\x05email\x18\x01 \x01(\v2;.memos.api.InstanceSetting.NotificationSetting.EmailSettingB\x03\xe0A\x01R\x05email\x12,\n" +
"\x0frecipient_email\x18\x02 \x01(\tB\x03\xe0A\x01R\x0erecipientEmail\"\x8e\x02\n" +
"\rInstanceStats\x12B\n" +
"\bdatabase\x18\x01 \x01(\v2&.memos.api.InstanceStats.DatabaseStatsR\bdatabase\x12.\n" +
"\x13local_storage_bytes\x18\x02 \x01(\x03R\x11localStorageBytes\x12A\n" +
"\x0egenerated_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\rgeneratedTime\x1aF\n" +
"\rDatabaseStats\x12\x16\n" +
"\x06driver\x18\x01 \x01(\tR\x06driver\x12\x1d\n" +
"\n" +
"size_bytes\x18\x02 \x01(\x03R\tsizeBytes\"\x19\n" +
"\x17GetInstanceStatsRequest\"\x1f\n" +
"\x1dGetConfigurationStatusRequest\"\xb9\x03\n" +
"\x13ConfigurationStatus\x12\x16\n" +
"\x06serial\x18\x01 \x01(\x03R\x06serial\x12#\n" +
"\rconfig_digest\x18\x02 \x01(\tR\fconfigDigest\x12\x1d\n" +
"\n" +
"applied_by\x18\x03 \x01(\tR\tappliedBy\x12\x18\n" +
"\aversion\x18\x04 \x01(\tR\aversion\x12[\n" +
"\x11managed_resources\x18\x05 \x03(\v2..memos.api.ConfigurationStatus.ManagedResourceR\x10managedResources\x129\n" +
"\n" +
"apply_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tapplyTime\x1a\x93\x01\n" +
"\x0fManagedResource\x12\x1a\n" +
"\bresource\x18\x01 \x01(\tR\bresource\x12\x16\n" +
"\x06source\x18\x02 \x01(\tR\x06source\x12%\n" +
"\x0emanaged_fields\x18\x03 \x03(\tR\rmanagedFields\x12%\n" +
"\x0eignored_fields\x18\x04 \x03(\tR\rignoredFields*}\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\x022\x91\b\n" +
"\x0fInstanceService\x12u\n" +
"\x12GetInstanceProfile\x12$.memos.api.GetInstanceProfileRequest\x1a\x1a.memos.api.InstanceProfile\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/instance/profile\x12\x86\x01\n" +
"\x12GetInstanceSetting\x12$.memos.api.GetInstanceSettingRequest\x1a\x1a.memos.api.InstanceSetting\".\xdaA\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/api/{name=instance/settings/*}\x12\x9f\x01\n" +
"\x18BatchGetInstanceSettings\x12*.memos.api.BatchGetInstanceSettingsRequest\x1a+.memos.api.BatchGetInstanceSettingsResponse\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/instance/settings:batchGet\x12\xc7\x01\n" +
"\x15UpdateInstanceSetting\x12'.memos.api.UpdateInstanceSettingRequest\x1a\x1a.memos.api.InstanceSetting\"i\xdaA\x1cinstance_setting,update_mask\x82\xd3\xe4\x93\x02D:\x10instance_setting20/api/{instance_setting.name=instance/settings/*}\x12\x98\x01\n" +
"\x18TestInstanceEmailSetting\x12*.memos.api.TestInstanceEmailSettingRequest\x1a\x16.google.protobuf.Empty\"8\x82\xd3\xe4\x93\x022:\x01*\"-/api/instance/settings/notification:testEmail\x12m\n" +
"\x10GetInstanceStats\x12\".memos.api.GetInstanceStatsRequest\x1a\x18.memos.api.InstanceStats\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/api/instance/stats\x12\x87\x01\n" +
"\x16GetConfigurationStatus\x12(.memos.api.GetConfigurationStatusRequest\x1a\x1e.memos.api.ConfigurationStatus\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/instance/configurationB\x93\x01\n" +
"\rcom.memos.apiB\x14InstanceServiceProtoP\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_instance_service_proto_rawDescOnce sync.Once
file_api_instance_service_proto_rawDescData []byte
)
func file_api_instance_service_proto_rawDescGZIP() []byte {
file_api_instance_service_proto_rawDescOnce.Do(func() {
file_api_instance_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_instance_service_proto_rawDesc), len(file_api_instance_service_proto_rawDesc)))
})
return file_api_instance_service_proto_rawDescData
}
var file_api_instance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
var file_api_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 32)
var file_api_instance_service_proto_goTypes = []any{
(InstanceAccessMode)(0), // 0: memos.api.InstanceAccessMode
(InstanceSetting_Key)(0), // 1: memos.api.InstanceSetting.Key
(InstanceSetting_StorageType)(0), // 2: memos.api.InstanceSetting.StorageType
(InstanceSetting_AIProviderType)(0), // 3: memos.api.InstanceSetting.AIProviderType
(InstanceSetting_StorageSetting_StorageType)(0), // 4: memos.api.InstanceSetting.StorageSetting.StorageType
(*InstanceProfile)(nil), // 5: memos.api.InstanceProfile
(*GetInstanceProfileRequest)(nil), // 6: memos.api.GetInstanceProfileRequest
(*InstanceSetting)(nil), // 7: memos.api.InstanceSetting
(*GetInstanceSettingRequest)(nil), // 8: memos.api.GetInstanceSettingRequest
(*BatchGetInstanceSettingsRequest)(nil), // 9: memos.api.BatchGetInstanceSettingsRequest
(*BatchGetInstanceSettingsResponse)(nil), // 10: memos.api.BatchGetInstanceSettingsResponse
(*UpdateInstanceSettingRequest)(nil), // 11: memos.api.UpdateInstanceSettingRequest
(*TestInstanceEmailSettingRequest)(nil), // 12: memos.api.TestInstanceEmailSettingRequest
(*InstanceStats)(nil), // 13: memos.api.InstanceStats
(*GetInstanceStatsRequest)(nil), // 14: memos.api.GetInstanceStatsRequest
(*GetConfigurationStatusRequest)(nil), // 15: memos.api.GetConfigurationStatusRequest
(*ConfigurationStatus)(nil), // 16: memos.api.ConfigurationStatus
(*InstanceProfile_Challenge)(nil), // 17: memos.api.InstanceProfile.Challenge
(*InstanceSetting_GeneralSetting)(nil), // 18: memos.api.InstanceSetting.GeneralSetting
(*InstanceSetting_StorageSetting)(nil), // 19: memos.api.InstanceSetting.StorageSetting
(*InstanceSetting_Storage)(nil), // 20: memos.api.InstanceSetting.Storage
(*InstanceSetting_TagsSetting)(nil), // 21: memos.api.InstanceSetting.TagsSetting
(*InstanceSetting_TagMetadata)(nil), // 22: memos.api.InstanceSetting.TagMetadata
(*InstanceSetting_NotificationSetting)(nil), // 23: memos.api.InstanceSetting.NotificationSetting
(*InstanceSetting_AISetting)(nil), // 24: memos.api.InstanceSetting.AISetting
(*InstanceSetting_AIProviderConfig)(nil), // 25: memos.api.InstanceSetting.AIProviderConfig
(*InstanceSetting_TranscriptionConfig)(nil), // 26: memos.api.InstanceSetting.TranscriptionConfig
(*InstanceSetting_AccessSetting)(nil), // 27: memos.api.InstanceSetting.AccessSetting
(*InstanceSetting_UsageLimitsSetting)(nil), // 28: memos.api.InstanceSetting.UsageLimitsSetting
(*InstanceSetting_GeneralSetting_CustomProfile)(nil), // 29: memos.api.InstanceSetting.GeneralSetting.CustomProfile
(*InstanceSetting_StorageSetting_S3Config)(nil), // 30: memos.api.InstanceSetting.StorageSetting.S3Config
(*InstanceSetting_Storage_S3Config)(nil), // 31: memos.api.InstanceSetting.Storage.S3Config
nil, // 32: memos.api.InstanceSetting.TagsSetting.TagsEntry
(*InstanceSetting_NotificationSetting_EmailSetting)(nil), // 33: memos.api.InstanceSetting.NotificationSetting.EmailSetting
(*InstanceSetting_UsageLimitsSetting_UsageLimit)(nil), // 34: memos.api.InstanceSetting.UsageLimitsSetting.UsageLimit
(*InstanceStats_DatabaseStats)(nil), // 35: memos.api.InstanceStats.DatabaseStats
(*ConfigurationStatus_ManagedResource)(nil), // 36: memos.api.ConfigurationStatus.ManagedResource
(*User)(nil), // 37: memos.api.User
(*fieldmaskpb.FieldMask)(nil), // 38: google.protobuf.FieldMask
(*timestamppb.Timestamp)(nil), // 39: google.protobuf.Timestamp
(*color.Color)(nil), // 40: google.type.Color
(*emptypb.Empty)(nil), // 41: google.protobuf.Empty
}
var file_api_instance_service_proto_depIdxs = []int32{
0, // 0: memos.api.InstanceProfile.access_mode:type_name -> memos.api.InstanceAccessMode
37, // 1: memos.api.InstanceProfile.admin:type_name -> memos.api.User
17, // 2: memos.api.InstanceProfile.challenge:type_name -> memos.api.InstanceProfile.Challenge
18, // 3: memos.api.InstanceSetting.general_setting:type_name -> memos.api.InstanceSetting.GeneralSetting
19, // 4: memos.api.InstanceSetting.storage_setting:type_name -> memos.api.InstanceSetting.StorageSetting
21, // 5: memos.api.InstanceSetting.tags_setting:type_name -> memos.api.InstanceSetting.TagsSetting
23, // 6: memos.api.InstanceSetting.notification_setting:type_name -> memos.api.InstanceSetting.NotificationSetting
24, // 7: memos.api.InstanceSetting.ai_setting:type_name -> memos.api.InstanceSetting.AISetting
27, // 8: memos.api.InstanceSetting.access_setting:type_name -> memos.api.InstanceSetting.AccessSetting
28, // 9: memos.api.InstanceSetting.usage_limits_setting:type_name -> memos.api.InstanceSetting.UsageLimitsSetting
7, // 10: memos.api.BatchGetInstanceSettingsResponse.instance_settings:type_name -> memos.api.InstanceSetting
7, // 11: memos.api.UpdateInstanceSettingRequest.instance_setting:type_name -> memos.api.InstanceSetting
38, // 12: memos.api.UpdateInstanceSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
33, // 13: memos.api.TestInstanceEmailSettingRequest.email:type_name -> memos.api.InstanceSetting.NotificationSetting.EmailSetting
35, // 14: memos.api.InstanceStats.database:type_name -> memos.api.InstanceStats.DatabaseStats
39, // 15: memos.api.InstanceStats.generated_time:type_name -> google.protobuf.Timestamp
36, // 16: memos.api.ConfigurationStatus.managed_resources:type_name -> memos.api.ConfigurationStatus.ManagedResource
39, // 17: memos.api.ConfigurationStatus.apply_time:type_name -> google.protobuf.Timestamp
29, // 18: memos.api.InstanceSetting.GeneralSetting.custom_profile:type_name -> memos.api.InstanceSetting.GeneralSetting.CustomProfile
20, // 19: memos.api.InstanceSetting.StorageSetting.storages:type_name -> memos.api.InstanceSetting.Storage
4, // 20: memos.api.InstanceSetting.StorageSetting.storage_type:type_name -> memos.api.InstanceSetting.StorageSetting.StorageType
30, // 21: memos.api.InstanceSetting.StorageSetting.s3_config:type_name -> memos.api.InstanceSetting.StorageSetting.S3Config
2, // 22: memos.api.InstanceSetting.Storage.type:type_name -> memos.api.InstanceSetting.StorageType
31, // 23: memos.api.InstanceSetting.Storage.s3_config:type_name -> memos.api.InstanceSetting.Storage.S3Config
32, // 24: memos.api.InstanceSetting.TagsSetting.tags:type_name -> memos.api.InstanceSetting.TagsSetting.TagsEntry
40, // 25: memos.api.InstanceSetting.TagMetadata.background_color:type_name -> google.type.Color
33, // 26: memos.api.InstanceSetting.NotificationSetting.email:type_name -> memos.api.InstanceSetting.NotificationSetting.EmailSetting
25, // 27: memos.api.InstanceSetting.AISetting.providers:type_name -> memos.api.InstanceSetting.AIProviderConfig
26, // 28: memos.api.InstanceSetting.AISetting.transcription:type_name -> memos.api.InstanceSetting.TranscriptionConfig
3, // 29: memos.api.InstanceSetting.AIProviderConfig.type:type_name -> memos.api.InstanceSetting.AIProviderType
0, // 30: memos.api.InstanceSetting.AccessSetting.access_mode:type_name -> memos.api.InstanceAccessMode
34, // 31: memos.api.InstanceSetting.UsageLimitsSetting.limits:type_name -> memos.api.InstanceSetting.UsageLimitsSetting.UsageLimit
22, // 32: memos.api.InstanceSetting.TagsSetting.TagsEntry.value:type_name -> memos.api.InstanceSetting.TagMetadata
6, // 33: memos.api.InstanceService.GetInstanceProfile:input_type -> memos.api.GetInstanceProfileRequest
8, // 34: memos.api.InstanceService.GetInstanceSetting:input_type -> memos.api.GetInstanceSettingRequest
9, // 35: memos.api.InstanceService.BatchGetInstanceSettings:input_type -> memos.api.BatchGetInstanceSettingsRequest
11, // 36: memos.api.InstanceService.UpdateInstanceSetting:input_type -> memos.api.UpdateInstanceSettingRequest
12, // 37: memos.api.InstanceService.TestInstanceEmailSetting:input_type -> memos.api.TestInstanceEmailSettingRequest
14, // 38: memos.api.InstanceService.GetInstanceStats:input_type -> memos.api.GetInstanceStatsRequest
15, // 39: memos.api.InstanceService.GetConfigurationStatus:input_type -> memos.api.GetConfigurationStatusRequest
5, // 40: memos.api.InstanceService.GetInstanceProfile:output_type -> memos.api.InstanceProfile
7, // 41: memos.api.InstanceService.GetInstanceSetting:output_type -> memos.api.InstanceSetting
10, // 42: memos.api.InstanceService.BatchGetInstanceSettings:output_type -> memos.api.BatchGetInstanceSettingsResponse
7, // 43: memos.api.InstanceService.UpdateInstanceSetting:output_type -> memos.api.InstanceSetting
41, // 44: memos.api.InstanceService.TestInstanceEmailSetting:output_type -> google.protobuf.Empty
13, // 45: memos.api.InstanceService.GetInstanceStats:output_type -> memos.api.InstanceStats
16, // 46: memos.api.InstanceService.GetConfigurationStatus:output_type -> memos.api.ConfigurationStatus
40, // [40:47] is the sub-list for method output_type
33, // [33:40] is the sub-list for method input_type
33, // [33:33] is the sub-list for extension type_name
33, // [33:33] is the sub-list for extension extendee
0, // [0:33] is the sub-list for field type_name
}
func init() { file_api_instance_service_proto_init() }
func file_api_instance_service_proto_init() {
if File_api_instance_service_proto != nil {
return
}
file_api_user_service_proto_init()
file_api_instance_service_proto_msgTypes[2].OneofWrappers = []any{
(*InstanceSetting_GeneralSetting_)(nil),
(*InstanceSetting_StorageSetting_)(nil),
(*InstanceSetting_TagsSetting_)(nil),
(*InstanceSetting_NotificationSetting_)(nil),
(*InstanceSetting_AiSetting)(nil),
(*InstanceSetting_AccessSetting_)(nil),
(*InstanceSetting_UsageLimitsSetting_)(nil),
}
file_api_instance_service_proto_msgTypes[15].OneofWrappers = []any{
(*InstanceSetting_Storage_S3Config_)(nil),
}
file_api_instance_service_proto_msgTypes[29].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_instance_service_proto_rawDesc), len(file_api_instance_service_proto_rawDesc)),
NumEnums: 5,
NumMessages: 32,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_api_instance_service_proto_goTypes,
DependencyIndexes: file_api_instance_service_proto_depIdxs,
EnumInfos: file_api_instance_service_proto_enumTypes,
MessageInfos: file_api_instance_service_proto_msgTypes,
}.Build()
File_api_instance_service_proto = out.File
file_api_instance_service_proto_goTypes = nil
file_api_instance_service_proto_depIdxs = nil
}