// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc (unknown) // source: api/v1/instance_service.proto package apiv1 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) ) // Enumeration of instance setting keys. type InstanceSetting_Key int32 const ( InstanceSetting_KEY_UNSPECIFIED InstanceSetting_Key = 0 // GENERAL is the key for general settings. InstanceSetting_GENERAL InstanceSetting_Key = 1 // STORAGE is the key for storage settings. InstanceSetting_STORAGE InstanceSetting_Key = 2 // MEMO_RELATED is the key for memo related settings. InstanceSetting_MEMO_RELATED InstanceSetting_Key = 3 // TAGS is the key for tag metadata. InstanceSetting_TAGS InstanceSetting_Key = 4 // NOTIFICATION is the key for notification transport settings. InstanceSetting_NOTIFICATION InstanceSetting_Key = 5 // AI is the key for AI provider settings. InstanceSetting_AI InstanceSetting_Key = 6 ) // Enum value maps for InstanceSetting_Key. var ( InstanceSetting_Key_name = map[int32]string{ 0: "KEY_UNSPECIFIED", 1: "GENERAL", 2: "STORAGE", 3: "MEMO_RELATED", 4: "TAGS", 5: "NOTIFICATION", 6: "AI", } InstanceSetting_Key_value = map[string]int32{ "KEY_UNSPECIFIED": 0, "GENERAL": 1, "STORAGE": 2, "MEMO_RELATED": 3, "TAGS": 4, "NOTIFICATION": 5, "AI": 6, } ) 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_v1_instance_service_proto_enumTypes[0].Descriptor() } func (InstanceSetting_Key) Type() protoreflect.EnumType { return &file_api_v1_instance_service_proto_enumTypes[0] } 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_v1_instance_service_proto_rawDescGZIP(), []int{2, 0} } // AIProviderType is the provider implementation type. type InstanceSetting_AIProviderType int32 const ( InstanceSetting_AI_PROVIDER_TYPE_UNSPECIFIED InstanceSetting_AIProviderType = 0 InstanceSetting_OPENAI InstanceSetting_AIProviderType = 1 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_v1_instance_service_proto_enumTypes[1].Descriptor() } func (InstanceSetting_AIProviderType) Type() protoreflect.EnumType { return &file_api_v1_instance_service_proto_enumTypes[1] } 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_v1_instance_service_proto_rawDescGZIP(), []int{2, 1} } // Storage type enumeration for different storage backends. type InstanceSetting_StorageSetting_StorageType int32 const ( InstanceSetting_StorageSetting_STORAGE_TYPE_UNSPECIFIED InstanceSetting_StorageSetting_StorageType = 0 // DATABASE is the database storage type. InstanceSetting_StorageSetting_DATABASE InstanceSetting_StorageSetting_StorageType = 1 // LOCAL is the local storage type. InstanceSetting_StorageSetting_LOCAL InstanceSetting_StorageSetting_StorageType = 2 // S3 is the S3 storage type. 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_v1_instance_service_proto_enumTypes[2].Descriptor() } func (InstanceSetting_StorageSetting_StorageType) Type() protoreflect.EnumType { return &file_api_v1_instance_service_proto_enumTypes[2] } 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_v1_instance_service_proto_rawDescGZIP(), []int{2, 1, 0} } // Instance profile message containing basic instance information. type InstanceProfile struct { state protoimpl.MessageState `protogen:"open.v1"` // Version is the current version of instance. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Demo indicates if the instance is in demo mode. Demo bool `protobuf:"varint,3,opt,name=demo,proto3" json:"demo,omitempty"` // Instance URL is the URL of the instance. InstanceUrl string `protobuf:"bytes,6,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"` // The first administrator who set up this instance, for display purposes. // May be null on an instance that has lost all admins; use needs_setup to // determine whether initial setup is actually required. Admin *User `protobuf:"bytes,7,opt,name=admin,proto3" json:"admin,omitempty"` // Commit is the current build commit of instance. Commit string `protobuf:"bytes,8,opt,name=commit,proto3" json:"commit,omitempty"` // NeedsSetup is true when 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,9,opt,name=needs_setup,json=needsSetup,proto3" json:"needs_setup,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InstanceProfile) Reset() { *x = InstanceProfile{} mi := &file_api_v1_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_v1_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_v1_instance_service_proto_rawDescGZIP(), []int{0} } func (x *InstanceProfile) GetVersion() string { if x != nil { return x.Version } 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) GetAdmin() *User { if x != nil { return x.Admin } return nil } func (x *InstanceProfile) GetCommit() string { if x != nil { return x.Commit } return "" } func (x *InstanceProfile) GetNeedsSetup() bool { if x != nil { return x.NeedsSetup } return false } // Request for instance profile. type GetInstanceProfileRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetInstanceProfileRequest) Reset() { *x = GetInstanceProfileRequest{} mi := &file_api_v1_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_v1_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_v1_instance_service_proto_rawDescGZIP(), []int{1} } // An instance setting resource. type InstanceSetting struct { state protoimpl.MessageState `protogen:"open.v1"` // The name of the instance setting. // Format: instance/settings/{setting} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to Value: // // *InstanceSetting_GeneralSetting_ // *InstanceSetting_StorageSetting_ // *InstanceSetting_MemoRelatedSetting_ // *InstanceSetting_TagsSetting_ // *InstanceSetting_NotificationSetting_ // *InstanceSetting_AiSetting Value isInstanceSetting_Value `protobuf_oneof:"value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InstanceSetting) Reset() { *x = InstanceSetting{} mi := &file_api_v1_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_v1_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_v1_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) GetMemoRelatedSetting() *InstanceSetting_MemoRelatedSetting { if x != nil { if x, ok := x.Value.(*InstanceSetting_MemoRelatedSetting_); ok { return x.MemoRelatedSetting } } 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 } type isInstanceSetting_Value interface { isInstanceSetting_Value() } type InstanceSetting_GeneralSetting_ struct { GeneralSetting *InstanceSetting_GeneralSetting `protobuf:"bytes,2,opt,name=general_setting,json=generalSetting,proto3,oneof"` } type InstanceSetting_StorageSetting_ struct { StorageSetting *InstanceSetting_StorageSetting `protobuf:"bytes,3,opt,name=storage_setting,json=storageSetting,proto3,oneof"` } type InstanceSetting_MemoRelatedSetting_ struct { MemoRelatedSetting *InstanceSetting_MemoRelatedSetting `protobuf:"bytes,4,opt,name=memo_related_setting,json=memoRelatedSetting,proto3,oneof"` } type InstanceSetting_TagsSetting_ struct { TagsSetting *InstanceSetting_TagsSetting `protobuf:"bytes,5,opt,name=tags_setting,json=tagsSetting,proto3,oneof"` } type InstanceSetting_NotificationSetting_ struct { NotificationSetting *InstanceSetting_NotificationSetting `protobuf:"bytes,6,opt,name=notification_setting,json=notificationSetting,proto3,oneof"` } type InstanceSetting_AiSetting struct { AiSetting *InstanceSetting_AISetting `protobuf:"bytes,7,opt,name=ai_setting,json=aiSetting,proto3,oneof"` } func (*InstanceSetting_GeneralSetting_) isInstanceSetting_Value() {} func (*InstanceSetting_StorageSetting_) isInstanceSetting_Value() {} func (*InstanceSetting_MemoRelatedSetting_) isInstanceSetting_Value() {} func (*InstanceSetting_TagsSetting_) isInstanceSetting_Value() {} func (*InstanceSetting_NotificationSetting_) isInstanceSetting_Value() {} func (*InstanceSetting_AiSetting) isInstanceSetting_Value() {} // Request message for GetInstanceSetting method. type GetInstanceSettingRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // 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_v1_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_v1_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_v1_instance_service_proto_rawDescGZIP(), []int{3} } func (x *GetInstanceSettingRequest) GetName() string { if x != nil { return x.Name } return "" } // Request message for BatchGetInstanceSettings method. type BatchGetInstanceSettingsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // The resource names of the instance settings. // 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_v1_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_v1_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_v1_instance_service_proto_rawDescGZIP(), []int{4} } func (x *BatchGetInstanceSettingsRequest) GetNames() []string { if x != nil { return x.Names } return nil } // Response message for BatchGetInstanceSettings method. type BatchGetInstanceSettingsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // The instance settings in the same order as the input names. Settings []*InstanceSetting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *BatchGetInstanceSettingsResponse) Reset() { *x = BatchGetInstanceSettingsResponse{} mi := &file_api_v1_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_v1_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_v1_instance_service_proto_rawDescGZIP(), []int{5} } func (x *BatchGetInstanceSettingsResponse) GetSettings() []*InstanceSetting { if x != nil { return x.Settings } return nil } // Request message for UpdateInstanceSetting method. type UpdateInstanceSettingRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // The instance setting resource which replaces the resource on the server. Setting *InstanceSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"` // The list of fields to update. 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_v1_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_v1_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_v1_instance_service_proto_rawDescGZIP(), []int{6} } func (x *UpdateInstanceSettingRequest) GetSetting() *InstanceSetting { if x != nil { return x.Setting } return nil } func (x *UpdateInstanceSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { return x.UpdateMask } return nil } // Request message for TestInstanceEmailSetting method. type TestInstanceEmailSettingRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Optional. SMTP email settings to test. If omitted, the stored notification email setting is used. Email *InstanceSetting_NotificationSetting_EmailSetting `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // Optional. 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_v1_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_v1_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_v1_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 "" } // Request message for 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_v1_instance_service_proto_msgTypes[8] 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_v1_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 GetInstanceStatsRequest.ProtoReflect.Descriptor instead. func (*GetInstanceStatsRequest) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{8} } // Resource usage statistics for the instance. type InstanceStats struct { state protoimpl.MessageState `protogen:"open.v1"` Database *InstanceStats_DatabaseStats `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` // 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"` // Server-side timestamp when the snapshot was generated. GeneratedTime *timestamppb.Timestamp `protobuf:"bytes,4,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_v1_instance_service_proto_msgTypes[9] 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_v1_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 InstanceStats.ProtoReflect.Descriptor instead. func (*InstanceStats) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{9} } 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 } // General instance settings configuration. type InstanceSetting_GeneralSetting struct { state protoimpl.MessageState `protogen:"open.v1"` // disallow_user_registration disallows user registration. DisallowUserRegistration bool `protobuf:"varint,2,opt,name=disallow_user_registration,json=disallowUserRegistration,proto3" json:"disallow_user_registration,omitempty"` // disallow_password_auth disallows password authentication. DisallowPasswordAuth bool `protobuf:"varint,3,opt,name=disallow_password_auth,json=disallowPasswordAuth,proto3" json:"disallow_password_auth,omitempty"` // additional_script is the additional script. AdditionalScript string `protobuf:"bytes,4,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"` // additional_style is the additional style. AdditionalStyle string `protobuf:"bytes,5,opt,name=additional_style,json=additionalStyle,proto3" json:"additional_style,omitempty"` // custom_profile is the custom profile. CustomProfile *InstanceSetting_GeneralSetting_CustomProfile `protobuf:"bytes,6,opt,name=custom_profile,json=customProfile,proto3" json:"custom_profile,omitempty"` // week_start_day_offset is the week start day offset from Sunday. // 0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday // Default is Sunday. WeekStartDayOffset int32 `protobuf:"varint,7,opt,name=week_start_day_offset,json=weekStartDayOffset,proto3" json:"week_start_day_offset,omitempty"` // disallow_change_username disallows changing username. DisallowChangeUsername bool `protobuf:"varint,8,opt,name=disallow_change_username,json=disallowChangeUsername,proto3" json:"disallow_change_username,omitempty"` // disallow_change_nickname disallows changing nickname. DisallowChangeNickname bool `protobuf:"varint,9,opt,name=disallow_change_nickname,json=disallowChangeNickname,proto3" json:"disallow_change_nickname,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InstanceSetting_GeneralSetting) Reset() { *x = InstanceSetting_GeneralSetting{} mi := &file_api_v1_instance_service_proto_msgTypes[10] 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_v1_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 InstanceSetting_GeneralSetting.ProtoReflect.Descriptor instead. func (*InstanceSetting_GeneralSetting) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{2, 0} } 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) GetAdditionalScript() string { if x != nil { return x.AdditionalScript } return "" } func (x *InstanceSetting_GeneralSetting) GetAdditionalStyle() string { if x != nil { return x.AdditionalStyle } return "" } func (x *InstanceSetting_GeneralSetting) GetCustomProfile() *InstanceSetting_GeneralSetting_CustomProfile { if x != nil { return x.CustomProfile } return nil } func (x *InstanceSetting_GeneralSetting) GetWeekStartDayOffset() int32 { if x != nil { return x.WeekStartDayOffset } return 0 } 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 } // Storage configuration settings for instance attachments. type InstanceSetting_StorageSetting struct { state protoimpl.MessageState `protogen:"open.v1"` // storage_type is the storage type. StorageType InstanceSetting_StorageSetting_StorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=memos.api.v1.InstanceSetting_StorageSetting_StorageType" json:"storage_type,omitempty"` // The template of file path. // e.g. assets/{timestamp}_{filename} FilepathTemplate string `protobuf:"bytes,2,opt,name=filepath_template,json=filepathTemplate,proto3" json:"filepath_template,omitempty"` // The max upload size in megabytes. UploadSizeLimitMb int64 `protobuf:"varint,3,opt,name=upload_size_limit_mb,json=uploadSizeLimitMb,proto3" json:"upload_size_limit_mb,omitempty"` // The S3 config. S3Config *InstanceSetting_StorageSetting_S3Config `protobuf:"bytes,4,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_v1_instance_service_proto_msgTypes[11] 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_v1_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 InstanceSetting_StorageSetting.ProtoReflect.Descriptor instead. func (*InstanceSetting_StorageSetting) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{2, 1} } func (x *InstanceSetting_StorageSetting) GetStorageType() InstanceSetting_StorageSetting_StorageType { if x != nil { return x.StorageType } return InstanceSetting_StorageSetting_STORAGE_TYPE_UNSPECIFIED } func (x *InstanceSetting_StorageSetting) GetFilepathTemplate() string { if x != nil { return x.FilepathTemplate } return "" } func (x *InstanceSetting_StorageSetting) GetUploadSizeLimitMb() int64 { if x != nil { return x.UploadSizeLimitMb } return 0 } func (x *InstanceSetting_StorageSetting) GetS3Config() *InstanceSetting_StorageSetting_S3Config { if x != nil { return x.S3Config } return nil } // Memo-related instance settings and policies. type InstanceSetting_MemoRelatedSetting struct { state protoimpl.MessageState `protogen:"open.v1"` // content_length_limit is the limit of content length. Unit is byte. ContentLengthLimit int32 `protobuf:"varint,3,opt,name=content_length_limit,json=contentLengthLimit,proto3" json:"content_length_limit,omitempty"` // enable_double_click_edit enables editing on double click. EnableDoubleClickEdit bool `protobuf:"varint,4,opt,name=enable_double_click_edit,json=enableDoubleClickEdit,proto3" json:"enable_double_click_edit,omitempty"` // reactions is the list of reactions. Reactions []string `protobuf:"bytes,7,rep,name=reactions,proto3" json:"reactions,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InstanceSetting_MemoRelatedSetting) Reset() { *x = InstanceSetting_MemoRelatedSetting{} mi := &file_api_v1_instance_service_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *InstanceSetting_MemoRelatedSetting) String() string { return protoimpl.X.MessageStringOf(x) } func (*InstanceSetting_MemoRelatedSetting) ProtoMessage() {} func (x *InstanceSetting_MemoRelatedSetting) ProtoReflect() protoreflect.Message { mi := &file_api_v1_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 InstanceSetting_MemoRelatedSetting.ProtoReflect.Descriptor instead. func (*InstanceSetting_MemoRelatedSetting) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{2, 2} } func (x *InstanceSetting_MemoRelatedSetting) GetContentLengthLimit() int32 { if x != nil { return x.ContentLengthLimit } return 0 } func (x *InstanceSetting_MemoRelatedSetting) GetEnableDoubleClickEdit() bool { if x != nil { return x.EnableDoubleClickEdit } return false } func (x *InstanceSetting_MemoRelatedSetting) GetReactions() []string { if x != nil { return x.Reactions } return nil } // Metadata for a tag. type InstanceSetting_TagMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` // Optional background color for the tag label. // When unset, the default tag color is used. BackgroundColor *color.Color `protobuf:"bytes,1,opt,name=background_color,json=backgroundColor,proto3" json:"background_color,omitempty"` // Whether memos with this tag should have their content blurred. BlurContent bool `protobuf:"varint,2,opt,name=blur_content,json=blurContent,proto3" json:"blur_content,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InstanceSetting_TagMetadata) Reset() { *x = InstanceSetting_TagMetadata{} mi := &file_api_v1_instance_service_proto_msgTypes[13] 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_v1_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_TagMetadata.ProtoReflect.Descriptor instead. func (*InstanceSetting_TagMetadata) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{2, 3} } 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 } // 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 (they are trivially valid regex patterns). 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_v1_instance_service_proto_msgTypes[14] 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_v1_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_TagsSetting.ProtoReflect.Descriptor instead. func (*InstanceSetting_TagsSetting) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{2, 4} } func (x *InstanceSetting_TagsSetting) GetTags() map[string]*InstanceSetting_TagMetadata { if x != nil { return x.Tags } return nil } // Notification transport configuration. type InstanceSetting_NotificationSetting struct { state protoimpl.MessageState `protogen:"open.v1"` 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_v1_instance_service_proto_msgTypes[15] 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_v1_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_NotificationSetting.ProtoReflect.Descriptor instead. func (*InstanceSetting_NotificationSetting) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{2, 5} } func (x *InstanceSetting_NotificationSetting) GetEmail() *InstanceSetting_NotificationSetting_EmailSetting { if x != nil { return x.Email } return nil } // AI provider configuration settings. type InstanceSetting_AISetting struct { state protoimpl.MessageState `protogen:"open.v1"` // providers is the list of AI provider configurations available instance-wide. Providers []*InstanceSetting_AIProviderConfig `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"` // transcription is the speech-to-text feature configuration. // When unset or transcription.provider_id is empty, transcription is disabled. Transcription *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_v1_instance_service_proto_msgTypes[16] 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_v1_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_AISetting.ProtoReflect.Descriptor instead. func (*InstanceSetting_AISetting) Descriptor() ([]byte, []int) { return file_api_v1_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 represents one callable AI provider connection. type InstanceSetting_AIProviderConfig struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Type InstanceSetting_AIProviderType `protobuf:"varint,3,opt,name=type,proto3,enum=memos.api.v1.InstanceSetting_AIProviderType" json:"type,omitempty"` Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // api_key is write-only and is never returned by GetInstanceSetting. ApiKey string `protobuf:"bytes,5,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` // api_key_set indicates whether an API key is stored for this provider. ApiKeySet bool `protobuf:"varint,8,opt,name=api_key_set,json=apiKeySet,proto3" json:"api_key_set,omitempty"` // api_key_hint is a masked hint for the stored API key. ApiKeyHint string `protobuf:"bytes,9,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_v1_instance_service_proto_msgTypes[17] 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_v1_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_AIProviderConfig.ProtoReflect.Descriptor instead. func (*InstanceSetting_AIProviderConfig) Descriptor() ([]byte, []int) { return file_api_v1_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 configures the speech-to-text feature. type InstanceSetting_TranscriptionConfig struct { state protoimpl.MessageState `protogen:"open.v1"` // provider_id references an entry in AISetting.providers[].id. // Empty string means transcription is disabled. ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` // model is the provider-specific model identifier. // Empty string falls back to the engine default // (whisper-1 for OPENAI providers, gemini-2.5-flash for GEMINI providers). Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` // language is the default ISO 639-1 language hint sent to the provider. // Empty string lets the provider auto-detect. Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"` // prompt is a default spelling/vocabulary hint passed to the provider. 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_v1_instance_service_proto_msgTypes[18] 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_v1_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_TranscriptionConfig.ProtoReflect.Descriptor instead. func (*InstanceSetting_TranscriptionConfig) Descriptor() ([]byte, []int) { return file_api_v1_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 "" } // Custom profile configuration for instance branding. type InstanceSetting_GeneralSetting_CustomProfile struct { state protoimpl.MessageState `protogen:"open.v1"` Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InstanceSetting_GeneralSetting_CustomProfile) Reset() { *x = InstanceSetting_GeneralSetting_CustomProfile{} mi := &file_api_v1_instance_service_proto_msgTypes[19] 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_v1_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_GeneralSetting_CustomProfile.ProtoReflect.Descriptor instead. func (*InstanceSetting_GeneralSetting_CustomProfile) Descriptor() ([]byte, []int) { return file_api_v1_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 "" } // S3 configuration for cloud storage backend. // Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/ type InstanceSetting_StorageSetting_S3Config struct { state protoimpl.MessageState `protogen:"open.v1"` AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` AccessKeySecret string `protobuf:"bytes,2,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"` Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"` UsePathStyle bool `protobuf:"varint,6,opt,name=use_path_style,json=usePathStyle,proto3" json:"use_path_style,omitempty"` // insecure_skip_tls_verify disables TLS certificate verification when connecting // to the S3 endpoint. Only enable this for trusted endpoints that use a self-signed // certificate; it removes protection against man-in-the-middle attacks. InsecureSkipTlsVerify bool `protobuf:"varint,7,opt,name=insecure_skip_tls_verify,json=insecureSkipTlsVerify,proto3" json:"insecure_skip_tls_verify,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InstanceSetting_StorageSetting_S3Config) Reset() { *x = InstanceSetting_StorageSetting_S3Config{} mi := &file_api_v1_instance_service_proto_msgTypes[20] 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_v1_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_StorageSetting_S3Config.ProtoReflect.Descriptor instead. func (*InstanceSetting_StorageSetting_S3Config) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{2, 1, 0} } 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) 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) 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 } // Email delivery configuration for notifications. type InstanceSetting_NotificationSetting_EmailSetting struct { state protoimpl.MessageState `protogen:"open.v1"` Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` SmtpHost string `protobuf:"bytes,2,opt,name=smtp_host,json=smtpHost,proto3" json:"smtp_host,omitempty"` SmtpPort int32 `protobuf:"varint,3,opt,name=smtp_port,json=smtpPort,proto3" json:"smtp_port,omitempty"` SmtpUsername string `protobuf:"bytes,4,opt,name=smtp_username,json=smtpUsername,proto3" json:"smtp_username,omitempty"` SmtpPassword string `protobuf:"bytes,5,opt,name=smtp_password,json=smtpPassword,proto3" json:"smtp_password,omitempty"` FromEmail string `protobuf:"bytes,6,opt,name=from_email,json=fromEmail,proto3" json:"from_email,omitempty"` FromName string `protobuf:"bytes,7,opt,name=from_name,json=fromName,proto3" json:"from_name,omitempty"` ReplyTo string `protobuf:"bytes,8,opt,name=reply_to,json=replyTo,proto3" json:"reply_to,omitempty"` UseTls bool `protobuf:"varint,9,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"` UseSsl bool `protobuf:"varint,10,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InstanceSetting_NotificationSetting_EmailSetting) Reset() { *x = InstanceSetting_NotificationSetting_EmailSetting{} mi := &file_api_v1_instance_service_proto_msgTypes[22] 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_v1_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_NotificationSetting_EmailSetting.ProtoReflect.Descriptor instead. func (*InstanceSetting_NotificationSetting_EmailSetting) Descriptor() ([]byte, []int) { return file_api_v1_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) 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 "" } 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 } // Database size statistics. type InstanceStats_DatabaseStats struct { state protoimpl.MessageState `protogen:"open.v1"` // driver is one of "sqlite", "mysql", "postgres". Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` // size_bytes is 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_v1_instance_service_proto_msgTypes[23] 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_v1_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 InstanceStats_DatabaseStats.ProtoReflect.Descriptor instead. func (*InstanceStats_DatabaseStats) Descriptor() ([]byte, []int) { return file_api_v1_instance_service_proto_rawDescGZIP(), []int{9, 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 } var File_api_v1_instance_service_proto protoreflect.FileDescriptor const file_api_v1_instance_service_proto_rawDesc = "" + "\n" + "\x1dapi/v1/instance_service.proto\x12\fmemos.api.v1\x1a\x19api/v1/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\"\xc5\x01\n" + "\x0fInstanceProfile\x12\x18\n" + "\aversion\x18\x02 \x01(\tR\aversion\x12\x12\n" + "\x04demo\x18\x03 \x01(\bR\x04demo\x12!\n" + "\finstance_url\x18\x06 \x01(\tR\vinstanceUrl\x12(\n" + "\x05admin\x18\a \x01(\v2\x12.memos.api.v1.UserR\x05admin\x12\x16\n" + "\x06commit\x18\b \x01(\tR\x06commit\x12\x1f\n" + "\vneeds_setup\x18\t \x01(\bR\n" + "needsSetup\"\x1b\n" + "\x19GetInstanceProfileRequest\"\x86\x1c\n" + "\x0fInstanceSetting\x12\x17\n" + "\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12W\n" + "\x0fgeneral_setting\x18\x02 \x01(\v2,.memos.api.v1.InstanceSetting.GeneralSettingH\x00R\x0egeneralSetting\x12W\n" + "\x0fstorage_setting\x18\x03 \x01(\v2,.memos.api.v1.InstanceSetting.StorageSettingH\x00R\x0estorageSetting\x12d\n" + "\x14memo_related_setting\x18\x04 \x01(\v20.memos.api.v1.InstanceSetting.MemoRelatedSettingH\x00R\x12memoRelatedSetting\x12N\n" + "\ftags_setting\x18\x05 \x01(\v2).memos.api.v1.InstanceSetting.TagsSettingH\x00R\vtagsSetting\x12f\n" + "\x14notification_setting\x18\x06 \x01(\v21.memos.api.v1.InstanceSetting.NotificationSettingH\x00R\x13notificationSetting\x12H\n" + "\n" + "ai_setting\x18\a \x01(\v2'.memos.api.v1.InstanceSetting.AISettingH\x00R\taiSetting\x1a\xca\x04\n" + "\x0eGeneralSetting\x12<\n" + "\x1adisallow_user_registration\x18\x02 \x01(\bR\x18disallowUserRegistration\x124\n" + "\x16disallow_password_auth\x18\x03 \x01(\bR\x14disallowPasswordAuth\x12+\n" + "\x11additional_script\x18\x04 \x01(\tR\x10additionalScript\x12)\n" + "\x10additional_style\x18\x05 \x01(\tR\x0fadditionalStyle\x12a\n" + "\x0ecustom_profile\x18\x06 \x01(\v2:.memos.api.v1.InstanceSetting.GeneralSetting.CustomProfileR\rcustomProfile\x121\n" + "\x15week_start_day_offset\x18\a \x01(\x05R\x12weekStartDayOffset\x128\n" + "\x18disallow_change_username\x18\b \x01(\bR\x16disallowChangeUsername\x128\n" + "\x18disallow_change_nickname\x18\t \x01(\bR\x16disallowChangeNickname\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\xfa\x04\n" + "\x0eStorageSetting\x12[\n" + "\fstorage_type\x18\x01 \x01(\x0e28.memos.api.v1.InstanceSetting.StorageSetting.StorageTypeR\vstorageType\x12+\n" + "\x11filepath_template\x18\x02 \x01(\tR\x10filepathTemplate\x12/\n" + "\x14upload_size_limit_mb\x18\x03 \x01(\x03R\x11uploadSizeLimitMb\x12R\n" + "\ts3_config\x18\x04 \x01(\v25.memos.api.v1.InstanceSetting.StorageSetting.S3ConfigR\bs3Config\x1a\x8a\x02\n" + "\bS3Config\x12\"\n" + "\raccess_key_id\x18\x01 \x01(\tR\vaccessKeyId\x12/\n" + "\x11access_key_secret\x18\x02 \x01(\tB\x03\xe0A\x04R\x0faccessKeySecret\x12\x1a\n" + "\bendpoint\x18\x03 \x01(\tR\bendpoint\x12\x16\n" + "\x06region\x18\x04 \x01(\tR\x06region\x12\x16\n" + "\x06bucket\x18\x05 \x01(\tR\x06bucket\x12$\n" + "\x0euse_path_style\x18\x06 \x01(\bR\fusePathStyle\x127\n" + "\x18insecure_skip_tls_verify\x18\a \x01(\bR\x15insecureSkipTlsVerify\"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\xbd\x01\n" + "\x12MemoRelatedSetting\x120\n" + "\x14content_length_limit\x18\x03 \x01(\x05R\x12contentLengthLimit\x127\n" + "\x18enable_double_click_edit\x18\x04 \x01(\bR\x15enableDoubleClickEdit\x12\x1c\n" + "\treactions\x18\a \x03(\tR\treactionsJ\x04\b\x02\x10\x03R\x18display_with_update_time\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\xba\x01\n" + "\vTagsSetting\x12G\n" + "\x04tags\x18\x01 \x03(\v23.memos.api.v1.InstanceSetting.TagsSetting.TagsEntryR\x04tags\x1ab\n" + "\tTagsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12?\n" + "\x05value\x18\x02 \x01(\v2).memos.api.v1.InstanceSetting.TagMetadataR\x05value:\x028\x01\x1a\xa8\x03\n" + "\x13NotificationSetting\x12T\n" + "\x05email\x18\x01 \x01(\v2>.memos.api.v1.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\x1d\n" + "\n" + "from_email\x18\x06 \x01(\tR\tfromEmail\x12\x1b\n" + "\tfrom_name\x18\a \x01(\tR\bfromName\x12\x19\n" + "\breply_to\x18\b \x01(\tR\areplyTo\x12\x17\n" + "\ause_tls\x18\t \x01(\bR\x06useTls\x12\x17\n" + "\ause_ssl\x18\n" + " \x01(\bR\x06useSsl\x1a\xb2\x01\n" + "\tAISetting\x12L\n" + "\tproviders\x18\x01 \x03(\v2..memos.api.v1.InstanceSetting.AIProviderConfigR\tproviders\x12W\n" + "\rtranscription\x18\x02 \x01(\v21.memos.api.v1.InstanceSetting.TranscriptionConfigR\rtranscription\x1a\x80\x02\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.v1.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\b \x01(\bB\x03\xe0A\x03R\tapiKeySet\x12%\n" + "\fapi_key_hint\x18\t \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\"j\n" + "\x03Key\x12\x13\n" + "\x0fKEY_UNSPECIFIED\x10\x00\x12\v\n" + "\aGENERAL\x10\x01\x12\v\n" + "\aSTORAGE\x10\x02\x12\x10\n" + "\fMEMO_RELATED\x10\x03\x12\b\n" + "\x04TAGS\x10\x04\x12\x10\n" + "\fNOTIFICATION\x10\x05\x12\x06\n" + "\x02AI\x10\x06\"J\n" + "\x0eAIProviderType\x12 \n" + "\x1cAI_PROVIDER_TYPE_UNSPECIFIED\x10\x00\x12\n" + "\n" + "\x06OPENAI\x10\x01\x12\n" + "\n" + "\x06GEMINI\x10\x02:a\xeaA^\n" + "\x1cmemos.api.v1/InstanceSetting\x12\x1binstance/settings/{setting}*\x10instanceSettings2\x0finstanceSettingB\a\n" + "\x05value\"U\n" + "\x19GetInstanceSettingRequest\x128\n" + "\x04name\x18\x01 \x01(\tB$\xe0A\x02\xfaA\x1e\n" + "\x1cmemos.api.v1/InstanceSettingR\x04name\"]\n" + "\x1fBatchGetInstanceSettingsRequest\x12:\n" + "\x05names\x18\x01 \x03(\tB$\xe0A\x02\xfaA\x1e\n" + "\x1cmemos.api.v1/InstanceSettingR\x05names\"]\n" + " BatchGetInstanceSettingsResponse\x129\n" + "\bsettings\x18\x01 \x03(\v2\x1d.memos.api.v1.InstanceSettingR\bsettings\"\x9e\x01\n" + "\x1cUpdateInstanceSettingRequest\x12<\n" + "\asetting\x18\x01 \x01(\v2\x1d.memos.api.v1.InstanceSettingB\x03\xe0A\x02R\asetting\x12@\n" + "\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x01R\n" + "updateMask\"\xaa\x01\n" + "\x1fTestInstanceEmailSettingRequest\x12Y\n" + "\x05email\x18\x01 \x01(\v2>.memos.api.v1.InstanceSetting.NotificationSetting.EmailSettingB\x03\xe0A\x01R\x05email\x12,\n" + "\x0frecipient_email\x18\x02 \x01(\tB\x03\xe0A\x01R\x0erecipientEmail\"\x19\n" + "\x17GetInstanceStatsRequest\"\x91\x02\n" + "\rInstanceStats\x12E\n" + "\bdatabase\x18\x01 \x01(\v2).memos.api.v1.InstanceStats.DatabaseStatsR\bdatabase\x12.\n" + "\x13local_storage_bytes\x18\x02 \x01(\x03R\x11localStorageBytes\x12A\n" + "\x0egenerated_time\x18\x04 \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\tsizeBytes2\x9f\a\n" + "\x0fInstanceService\x12~\n" + "\x12GetInstanceProfile\x12'.memos.api.v1.GetInstanceProfileRequest\x1a\x1d.memos.api.v1.InstanceProfile\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/api/v1/instance/profile\x12\x8f\x01\n" + "\x12GetInstanceSetting\x12'.memos.api.v1.GetInstanceSettingRequest\x1a\x1d.memos.api.v1.InstanceSetting\"1\xdaA\x04name\x82\xd3\xe4\x93\x02$\x12\"/api/v1/{name=instance/settings/*}\x12\xa8\x01\n" + "\x18BatchGetInstanceSettings\x12-.memos.api.v1.BatchGetInstanceSettingsRequest\x1a..memos.api.v1.BatchGetInstanceSettingsResponse\"-\x82\xd3\xe4\x93\x02':\x01*\"\"/api/v1/instance/settings:batchGet\x12\xb5\x01\n" + "\x15UpdateInstanceSetting\x12*.memos.api.v1.UpdateInstanceSettingRequest\x1a\x1d.memos.api.v1.InstanceSetting\"Q\xdaA\x13setting,update_mask\x82\xd3\xe4\x93\x025:\asetting2*/api/v1/{setting.name=instance/settings/*}\x12\x9e\x01\n" + "\x18TestInstanceEmailSetting\x12-.memos.api.v1.TestInstanceEmailSettingRequest\x1a\x16.google.protobuf.Empty\";\x82\xd3\xe4\x93\x025:\x01*\"0/api/v1/instance/settings/notification:testEmail\x12v\n" + "\x10GetInstanceStats\x12%.memos.api.v1.GetInstanceStatsRequest\x1a\x1b.memos.api.v1.InstanceStats\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/api/v1/instance/statsB\xac\x01\n" + "\x10com.memos.api.v1B\x14InstanceServiceProtoP\x01Z0github.com/usememos/memos/proto/gen/api/v1;apiv1\xa2\x02\x03MAX\xaa\x02\fMemos.Api.V1\xca\x02\fMemos\\Api\\V1\xe2\x02\x18Memos\\Api\\V1\\GPBMetadata\xea\x02\x0eMemos::Api::V1b\x06proto3" var ( file_api_v1_instance_service_proto_rawDescOnce sync.Once file_api_v1_instance_service_proto_rawDescData []byte ) func file_api_v1_instance_service_proto_rawDescGZIP() []byte { file_api_v1_instance_service_proto_rawDescOnce.Do(func() { file_api_v1_instance_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v1_instance_service_proto_rawDesc), len(file_api_v1_instance_service_proto_rawDesc))) }) return file_api_v1_instance_service_proto_rawDescData } var file_api_v1_instance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_api_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_api_v1_instance_service_proto_goTypes = []any{ (InstanceSetting_Key)(0), // 0: memos.api.v1.InstanceSetting.Key (InstanceSetting_AIProviderType)(0), // 1: memos.api.v1.InstanceSetting.AIProviderType (InstanceSetting_StorageSetting_StorageType)(0), // 2: memos.api.v1.InstanceSetting.StorageSetting.StorageType (*InstanceProfile)(nil), // 3: memos.api.v1.InstanceProfile (*GetInstanceProfileRequest)(nil), // 4: memos.api.v1.GetInstanceProfileRequest (*InstanceSetting)(nil), // 5: memos.api.v1.InstanceSetting (*GetInstanceSettingRequest)(nil), // 6: memos.api.v1.GetInstanceSettingRequest (*BatchGetInstanceSettingsRequest)(nil), // 7: memos.api.v1.BatchGetInstanceSettingsRequest (*BatchGetInstanceSettingsResponse)(nil), // 8: memos.api.v1.BatchGetInstanceSettingsResponse (*UpdateInstanceSettingRequest)(nil), // 9: memos.api.v1.UpdateInstanceSettingRequest (*TestInstanceEmailSettingRequest)(nil), // 10: memos.api.v1.TestInstanceEmailSettingRequest (*GetInstanceStatsRequest)(nil), // 11: memos.api.v1.GetInstanceStatsRequest (*InstanceStats)(nil), // 12: memos.api.v1.InstanceStats (*InstanceSetting_GeneralSetting)(nil), // 13: memos.api.v1.InstanceSetting.GeneralSetting (*InstanceSetting_StorageSetting)(nil), // 14: memos.api.v1.InstanceSetting.StorageSetting (*InstanceSetting_MemoRelatedSetting)(nil), // 15: memos.api.v1.InstanceSetting.MemoRelatedSetting (*InstanceSetting_TagMetadata)(nil), // 16: memos.api.v1.InstanceSetting.TagMetadata (*InstanceSetting_TagsSetting)(nil), // 17: memos.api.v1.InstanceSetting.TagsSetting (*InstanceSetting_NotificationSetting)(nil), // 18: memos.api.v1.InstanceSetting.NotificationSetting (*InstanceSetting_AISetting)(nil), // 19: memos.api.v1.InstanceSetting.AISetting (*InstanceSetting_AIProviderConfig)(nil), // 20: memos.api.v1.InstanceSetting.AIProviderConfig (*InstanceSetting_TranscriptionConfig)(nil), // 21: memos.api.v1.InstanceSetting.TranscriptionConfig (*InstanceSetting_GeneralSetting_CustomProfile)(nil), // 22: memos.api.v1.InstanceSetting.GeneralSetting.CustomProfile (*InstanceSetting_StorageSetting_S3Config)(nil), // 23: memos.api.v1.InstanceSetting.StorageSetting.S3Config nil, // 24: memos.api.v1.InstanceSetting.TagsSetting.TagsEntry (*InstanceSetting_NotificationSetting_EmailSetting)(nil), // 25: memos.api.v1.InstanceSetting.NotificationSetting.EmailSetting (*InstanceStats_DatabaseStats)(nil), // 26: memos.api.v1.InstanceStats.DatabaseStats (*User)(nil), // 27: memos.api.v1.User (*fieldmaskpb.FieldMask)(nil), // 28: google.protobuf.FieldMask (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp (*color.Color)(nil), // 30: google.type.Color (*emptypb.Empty)(nil), // 31: google.protobuf.Empty } var file_api_v1_instance_service_proto_depIdxs = []int32{ 27, // 0: memos.api.v1.InstanceProfile.admin:type_name -> memos.api.v1.User 13, // 1: memos.api.v1.InstanceSetting.general_setting:type_name -> memos.api.v1.InstanceSetting.GeneralSetting 14, // 2: memos.api.v1.InstanceSetting.storage_setting:type_name -> memos.api.v1.InstanceSetting.StorageSetting 15, // 3: memos.api.v1.InstanceSetting.memo_related_setting:type_name -> memos.api.v1.InstanceSetting.MemoRelatedSetting 17, // 4: memos.api.v1.InstanceSetting.tags_setting:type_name -> memos.api.v1.InstanceSetting.TagsSetting 18, // 5: memos.api.v1.InstanceSetting.notification_setting:type_name -> memos.api.v1.InstanceSetting.NotificationSetting 19, // 6: memos.api.v1.InstanceSetting.ai_setting:type_name -> memos.api.v1.InstanceSetting.AISetting 5, // 7: memos.api.v1.BatchGetInstanceSettingsResponse.settings:type_name -> memos.api.v1.InstanceSetting 5, // 8: memos.api.v1.UpdateInstanceSettingRequest.setting:type_name -> memos.api.v1.InstanceSetting 28, // 9: memos.api.v1.UpdateInstanceSettingRequest.update_mask:type_name -> google.protobuf.FieldMask 25, // 10: memos.api.v1.TestInstanceEmailSettingRequest.email:type_name -> memos.api.v1.InstanceSetting.NotificationSetting.EmailSetting 26, // 11: memos.api.v1.InstanceStats.database:type_name -> memos.api.v1.InstanceStats.DatabaseStats 29, // 12: memos.api.v1.InstanceStats.generated_time:type_name -> google.protobuf.Timestamp 22, // 13: memos.api.v1.InstanceSetting.GeneralSetting.custom_profile:type_name -> memos.api.v1.InstanceSetting.GeneralSetting.CustomProfile 2, // 14: memos.api.v1.InstanceSetting.StorageSetting.storage_type:type_name -> memos.api.v1.InstanceSetting.StorageSetting.StorageType 23, // 15: memos.api.v1.InstanceSetting.StorageSetting.s3_config:type_name -> memos.api.v1.InstanceSetting.StorageSetting.S3Config 30, // 16: memos.api.v1.InstanceSetting.TagMetadata.background_color:type_name -> google.type.Color 24, // 17: memos.api.v1.InstanceSetting.TagsSetting.tags:type_name -> memos.api.v1.InstanceSetting.TagsSetting.TagsEntry 25, // 18: memos.api.v1.InstanceSetting.NotificationSetting.email:type_name -> memos.api.v1.InstanceSetting.NotificationSetting.EmailSetting 20, // 19: memos.api.v1.InstanceSetting.AISetting.providers:type_name -> memos.api.v1.InstanceSetting.AIProviderConfig 21, // 20: memos.api.v1.InstanceSetting.AISetting.transcription:type_name -> memos.api.v1.InstanceSetting.TranscriptionConfig 1, // 21: memos.api.v1.InstanceSetting.AIProviderConfig.type:type_name -> memos.api.v1.InstanceSetting.AIProviderType 16, // 22: memos.api.v1.InstanceSetting.TagsSetting.TagsEntry.value:type_name -> memos.api.v1.InstanceSetting.TagMetadata 4, // 23: memos.api.v1.InstanceService.GetInstanceProfile:input_type -> memos.api.v1.GetInstanceProfileRequest 6, // 24: memos.api.v1.InstanceService.GetInstanceSetting:input_type -> memos.api.v1.GetInstanceSettingRequest 7, // 25: memos.api.v1.InstanceService.BatchGetInstanceSettings:input_type -> memos.api.v1.BatchGetInstanceSettingsRequest 9, // 26: memos.api.v1.InstanceService.UpdateInstanceSetting:input_type -> memos.api.v1.UpdateInstanceSettingRequest 10, // 27: memos.api.v1.InstanceService.TestInstanceEmailSetting:input_type -> memos.api.v1.TestInstanceEmailSettingRequest 11, // 28: memos.api.v1.InstanceService.GetInstanceStats:input_type -> memos.api.v1.GetInstanceStatsRequest 3, // 29: memos.api.v1.InstanceService.GetInstanceProfile:output_type -> memos.api.v1.InstanceProfile 5, // 30: memos.api.v1.InstanceService.GetInstanceSetting:output_type -> memos.api.v1.InstanceSetting 8, // 31: memos.api.v1.InstanceService.BatchGetInstanceSettings:output_type -> memos.api.v1.BatchGetInstanceSettingsResponse 5, // 32: memos.api.v1.InstanceService.UpdateInstanceSetting:output_type -> memos.api.v1.InstanceSetting 31, // 33: memos.api.v1.InstanceService.TestInstanceEmailSetting:output_type -> google.protobuf.Empty 12, // 34: memos.api.v1.InstanceService.GetInstanceStats:output_type -> memos.api.v1.InstanceStats 29, // [29:35] is the sub-list for method output_type 23, // [23:29] is the sub-list for method input_type 23, // [23:23] is the sub-list for extension type_name 23, // [23:23] is the sub-list for extension extendee 0, // [0:23] is the sub-list for field type_name } func init() { file_api_v1_instance_service_proto_init() } func file_api_v1_instance_service_proto_init() { if File_api_v1_instance_service_proto != nil { return } file_api_v1_user_service_proto_init() file_api_v1_instance_service_proto_msgTypes[2].OneofWrappers = []any{ (*InstanceSetting_GeneralSetting_)(nil), (*InstanceSetting_StorageSetting_)(nil), (*InstanceSetting_MemoRelatedSetting_)(nil), (*InstanceSetting_TagsSetting_)(nil), (*InstanceSetting_NotificationSetting_)(nil), (*InstanceSetting_AiSetting)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_instance_service_proto_rawDesc), len(file_api_v1_instance_service_proto_rawDesc)), NumEnums: 3, NumMessages: 24, NumExtensions: 0, NumServices: 1, }, GoTypes: file_api_v1_instance_service_proto_goTypes, DependencyIndexes: file_api_v1_instance_service_proto_depIdxs, EnumInfos: file_api_v1_instance_service_proto_enumTypes, MessageInfos: file_api_v1_instance_service_proto_msgTypes, }.Build() File_api_v1_instance_service_proto = out.File file_api_v1_instance_service_proto_goTypes = nil file_api_v1_instance_service_proto_depIdxs = nil }