Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc (unknown)
// source: store/setting.proto
package store
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
color "google.golang.org/genproto/googleapis/type/color"
expr "google.golang.org/genproto/googleapis/type/expr"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type SettingName int32
const (
SettingName_SETTING_NAME_UNSPECIFIED SettingName = 0
SettingName_SYSTEM SettingName = 1
SettingName_WORKSPACE_PROFILE SettingName = 2
SettingName_WORKSPACE_APPROVAL SettingName = 3
SettingName_APP_IM SettingName = 4
SettingName_AI SettingName = 5
SettingName_DATA_CLASSIFICATION SettingName = 6
SettingName_SEMANTIC_TYPES SettingName = 7
SettingName_ENVIRONMENT SettingName = 8
SettingName_EMAIL SettingName = 9
SettingName_MCP SettingName = 10
SettingName_EXPORT SettingName = 11
)
// Enum value maps for SettingName.
var (
SettingName_name = map[int32]string{
0: "SETTING_NAME_UNSPECIFIED",
1: "SYSTEM",
2: "WORKSPACE_PROFILE",
3: "WORKSPACE_APPROVAL",
4: "APP_IM",
5: "AI",
6: "DATA_CLASSIFICATION",
7: "SEMANTIC_TYPES",
8: "ENVIRONMENT",
9: "EMAIL",
10: "MCP",
11: "EXPORT",
}
SettingName_value = map[string]int32{
"SETTING_NAME_UNSPECIFIED": 0,
"SYSTEM": 1,
"WORKSPACE_PROFILE": 2,
"WORKSPACE_APPROVAL": 3,
"APP_IM": 4,
"AI": 5,
"DATA_CLASSIFICATION": 6,
"SEMANTIC_TYPES": 7,
"ENVIRONMENT": 8,
"EMAIL": 9,
"MCP": 10,
"EXPORT": 11,
}
)
func (x SettingName) Enum() *SettingName {
p := new(SettingName)
*p = x
return p
}
func (x SettingName) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SettingName) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[0].Descriptor()
}
func (SettingName) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[0]
}
func (x SettingName) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SettingName.Descriptor instead.
func (SettingName) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{0}
}
type WorkspaceProfileSetting_DatabaseChangeMode int32
const (
WorkspaceProfileSetting_DATABASE_CHANGE_MODE_UNSPECIFIED WorkspaceProfileSetting_DatabaseChangeMode = 0
// A more advanced database change process, including custom approval workflows and other advanced features.
// Default to this mode.
WorkspaceProfileSetting_PIPELINE WorkspaceProfileSetting_DatabaseChangeMode = 1
// A simple database change process in SQL editor. Users can execute SQL directly.
WorkspaceProfileSetting_EDITOR WorkspaceProfileSetting_DatabaseChangeMode = 2
)
// Enum value maps for WorkspaceProfileSetting_DatabaseChangeMode.
var (
WorkspaceProfileSetting_DatabaseChangeMode_name = map[int32]string{
0: "DATABASE_CHANGE_MODE_UNSPECIFIED",
1: "PIPELINE",
2: "EDITOR",
}
WorkspaceProfileSetting_DatabaseChangeMode_value = map[string]int32{
"DATABASE_CHANGE_MODE_UNSPECIFIED": 0,
"PIPELINE": 1,
"EDITOR": 2,
}
)
func (x WorkspaceProfileSetting_DatabaseChangeMode) Enum() *WorkspaceProfileSetting_DatabaseChangeMode {
p := new(WorkspaceProfileSetting_DatabaseChangeMode)
*p = x
return p
}
func (x WorkspaceProfileSetting_DatabaseChangeMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WorkspaceProfileSetting_DatabaseChangeMode) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[1].Descriptor()
}
func (WorkspaceProfileSetting_DatabaseChangeMode) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[1]
}
func (x WorkspaceProfileSetting_DatabaseChangeMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkspaceProfileSetting_DatabaseChangeMode.Descriptor instead.
func (WorkspaceProfileSetting_DatabaseChangeMode) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{3, 0}
}
// Capability is the ceiling: a session runs at this level or lower.
type MCPSetting_Capability int32
const (
MCPSetting_CAPABILITY_UNSPECIFIED MCPSetting_Capability = 0
// MCP connections are rejected.
MCPSetting_DISABLED MCPSetting_Capability = 1
// MCP may inspect metadata and run read-only queries. (Enforced from P1b.)
MCPSetting_READ_ONLY MCPSetting_Capability = 3
// MCP may perform mutations, still bounded by the user's RBAC.
MCPSetting_READ_WRITE MCPSetting_Capability = 4
)
// Enum value maps for MCPSetting_Capability.
var (
MCPSetting_Capability_name = map[int32]string{
0: "CAPABILITY_UNSPECIFIED",
1: "DISABLED",
3: "READ_ONLY",
4: "READ_WRITE",
}
MCPSetting_Capability_value = map[string]int32{
"CAPABILITY_UNSPECIFIED": 0,
"DISABLED": 1,
"READ_ONLY": 3,
"READ_WRITE": 4,
}
)
func (x MCPSetting_Capability) Enum() *MCPSetting_Capability {
p := new(MCPSetting_Capability)
*p = x
return p
}
func (x MCPSetting_Capability) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MCPSetting_Capability) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[2].Descriptor()
}
func (MCPSetting_Capability) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[2]
}
func (x MCPSetting_Capability) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MCPSetting_Capability.Descriptor instead.
func (MCPSetting_Capability) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{4, 0}
}
type WorkspaceApprovalSetting_Rule_Source int32
const (
WorkspaceApprovalSetting_Rule_SOURCE_UNSPECIFIED WorkspaceApprovalSetting_Rule_Source = 0
WorkspaceApprovalSetting_Rule_CHANGE_DATABASE WorkspaceApprovalSetting_Rule_Source = 1
WorkspaceApprovalSetting_Rule_CREATE_DATABASE WorkspaceApprovalSetting_Rule_Source = 2
// Deprecated: Marked as deprecated in store/setting.proto.
WorkspaceApprovalSetting_Rule_EXPORT_DATA WorkspaceApprovalSetting_Rule_Source = 3
WorkspaceApprovalSetting_Rule_REQUEST_ROLE WorkspaceApprovalSetting_Rule_Source = 4
WorkspaceApprovalSetting_Rule_REQUEST_ACCESS WorkspaceApprovalSetting_Rule_Source = 5
)
// Enum value maps for WorkspaceApprovalSetting_Rule_Source.
var (
WorkspaceApprovalSetting_Rule_Source_name = map[int32]string{
0: "SOURCE_UNSPECIFIED",
1: "CHANGE_DATABASE",
2: "CREATE_DATABASE",
3: "EXPORT_DATA",
4: "REQUEST_ROLE",
5: "REQUEST_ACCESS",
}
WorkspaceApprovalSetting_Rule_Source_value = map[string]int32{
"SOURCE_UNSPECIFIED": 0,
"CHANGE_DATABASE": 1,
"CREATE_DATABASE": 2,
"EXPORT_DATA": 3,
"REQUEST_ROLE": 4,
"REQUEST_ACCESS": 5,
}
)
func (x WorkspaceApprovalSetting_Rule_Source) Enum() *WorkspaceApprovalSetting_Rule_Source {
p := new(WorkspaceApprovalSetting_Rule_Source)
*p = x
return p
}
func (x WorkspaceApprovalSetting_Rule_Source) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WorkspaceApprovalSetting_Rule_Source) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[3].Descriptor()
}
func (WorkspaceApprovalSetting_Rule_Source) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[3]
}
func (x WorkspaceApprovalSetting_Rule_Source) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkspaceApprovalSetting_Rule_Source.Descriptor instead.
func (WorkspaceApprovalSetting_Rule_Source) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{6, 0, 0}
}
type Algorithm_InnerOuterMask_MaskType int32
const (
Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED Algorithm_InnerOuterMask_MaskType = 0
Algorithm_InnerOuterMask_INNER Algorithm_InnerOuterMask_MaskType = 1
Algorithm_InnerOuterMask_OUTER Algorithm_InnerOuterMask_MaskType = 2
)
// Enum value maps for Algorithm_InnerOuterMask_MaskType.
var (
Algorithm_InnerOuterMask_MaskType_name = map[int32]string{
0: "MASK_TYPE_UNSPECIFIED",
1: "INNER",
2: "OUTER",
}
Algorithm_InnerOuterMask_MaskType_value = map[string]int32{
"MASK_TYPE_UNSPECIFIED": 0,
"INNER": 1,
"OUTER": 2,
}
)
func (x Algorithm_InnerOuterMask_MaskType) Enum() *Algorithm_InnerOuterMask_MaskType {
p := new(Algorithm_InnerOuterMask_MaskType)
*p = x
return p
}
func (x Algorithm_InnerOuterMask_MaskType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Algorithm_InnerOuterMask_MaskType) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[4].Descriptor()
}
func (Algorithm_InnerOuterMask_MaskType) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[4]
}
func (x Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Algorithm_InnerOuterMask_MaskType.Descriptor instead.
func (Algorithm_InnerOuterMask_MaskType) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{8, 3, 0}
}
type AISetting_Provider int32
const (
AISetting_PROVIDER_UNSPECIFIED AISetting_Provider = 0
AISetting_OPEN_AI AISetting_Provider = 1
AISetting_CLAUDE AISetting_Provider = 2
AISetting_GEMINI AISetting_Provider = 3
AISetting_AZURE_OPENAI AISetting_Provider = 4
)
// Enum value maps for AISetting_Provider.
var (
AISetting_Provider_name = map[int32]string{
0: "PROVIDER_UNSPECIFIED",
1: "OPEN_AI",
2: "CLAUDE",
3: "GEMINI",
4: "AZURE_OPENAI",
}
AISetting_Provider_value = map[string]int32{
"PROVIDER_UNSPECIFIED": 0,
"OPEN_AI": 1,
"CLAUDE": 2,
"GEMINI": 3,
"AZURE_OPENAI": 4,
}
)
func (x AISetting_Provider) Enum() *AISetting_Provider {
p := new(AISetting_Provider)
*p = x
return p
}
func (x AISetting_Provider) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AISetting_Provider) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[5].Descriptor()
}
func (AISetting_Provider) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[5]
}
func (x AISetting_Provider) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AISetting_Provider.Descriptor instead.
func (AISetting_Provider) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{11, 0}
}
type EmailSetting_Type int32
const (
EmailSetting_TYPE_UNSPECIFIED EmailSetting_Type = 0
EmailSetting_SMTP EmailSetting_Type = 1
)
// Enum value maps for EmailSetting_Type.
var (
EmailSetting_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "SMTP",
}
EmailSetting_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"SMTP": 1,
}
)
func (x EmailSetting_Type) Enum() *EmailSetting_Type {
p := new(EmailSetting_Type)
*p = x
return p
}
func (x EmailSetting_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EmailSetting_Type) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[6].Descriptor()
}
func (EmailSetting_Type) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[6]
}
func (x EmailSetting_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EmailSetting_Type.Descriptor instead.
func (EmailSetting_Type) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{13, 0}
}
type EmailSetting_SMTPConfig_Encryption int32
const (
EmailSetting_SMTPConfig_ENCRYPTION_UNSPECIFIED EmailSetting_SMTPConfig_Encryption = 0
EmailSetting_SMTPConfig_ENCRYPTION_NONE EmailSetting_SMTPConfig_Encryption = 1
EmailSetting_SMTPConfig_STARTTLS EmailSetting_SMTPConfig_Encryption = 2
EmailSetting_SMTPConfig_SSL_TLS EmailSetting_SMTPConfig_Encryption = 3
)
// Enum value maps for EmailSetting_SMTPConfig_Encryption.
var (
EmailSetting_SMTPConfig_Encryption_name = map[int32]string{
0: "ENCRYPTION_UNSPECIFIED",
1: "ENCRYPTION_NONE",
2: "STARTTLS",
3: "SSL_TLS",
}
EmailSetting_SMTPConfig_Encryption_value = map[string]int32{
"ENCRYPTION_UNSPECIFIED": 0,
"ENCRYPTION_NONE": 1,
"STARTTLS": 2,
"SSL_TLS": 3,
}
)
func (x EmailSetting_SMTPConfig_Encryption) Enum() *EmailSetting_SMTPConfig_Encryption {
p := new(EmailSetting_SMTPConfig_Encryption)
*p = x
return p
}
func (x EmailSetting_SMTPConfig_Encryption) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EmailSetting_SMTPConfig_Encryption) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[7].Descriptor()
}
func (EmailSetting_SMTPConfig_Encryption) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[7]
}
func (x EmailSetting_SMTPConfig_Encryption) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EmailSetting_SMTPConfig_Encryption.Descriptor instead.
func (EmailSetting_SMTPConfig_Encryption) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{13, 0, 0}
}
type EmailSetting_SMTPConfig_Authentication int32
const (
EmailSetting_SMTPConfig_AUTHENTICATION_UNSPECIFIED EmailSetting_SMTPConfig_Authentication = 0
EmailSetting_SMTPConfig_AUTHENTICATION_NONE EmailSetting_SMTPConfig_Authentication = 1
EmailSetting_SMTPConfig_PLAIN EmailSetting_SMTPConfig_Authentication = 2
EmailSetting_SMTPConfig_LOGIN EmailSetting_SMTPConfig_Authentication = 3
EmailSetting_SMTPConfig_CRAM_MD5 EmailSetting_SMTPConfig_Authentication = 4
)
// Enum value maps for EmailSetting_SMTPConfig_Authentication.
var (
EmailSetting_SMTPConfig_Authentication_name = map[int32]string{
0: "AUTHENTICATION_UNSPECIFIED",
1: "AUTHENTICATION_NONE",
2: "PLAIN",
3: "LOGIN",
4: "CRAM_MD5",
}
EmailSetting_SMTPConfig_Authentication_value = map[string]int32{
"AUTHENTICATION_UNSPECIFIED": 0,
"AUTHENTICATION_NONE": 1,
"PLAIN": 2,
"LOGIN": 3,
"CRAM_MD5": 4,
}
)
func (x EmailSetting_SMTPConfig_Authentication) Enum() *EmailSetting_SMTPConfig_Authentication {
p := new(EmailSetting_SMTPConfig_Authentication)
*p = x
return p
}
func (x EmailSetting_SMTPConfig_Authentication) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EmailSetting_SMTPConfig_Authentication) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[8].Descriptor()
}
func (EmailSetting_SMTPConfig_Authentication) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[8]
}
func (x EmailSetting_SMTPConfig_Authentication) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EmailSetting_SMTPConfig_Authentication.Descriptor instead.
func (EmailSetting_SMTPConfig_Authentication) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{13, 0, 1}
}
// ExportSetting holds each export destination provider's credentials.
type ExportSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Sharepoint *SharePointSetting `protobuf:"bytes,1,opt,name=sharepoint,proto3" json:"sharepoint,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExportSetting) Reset() {
*x = ExportSetting{}
mi := &file_store_setting_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExportSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExportSetting) ProtoMessage() {}
func (x *ExportSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExportSetting.ProtoReflect.Descriptor instead.
func (*ExportSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{0}
}
func (x *ExportSetting) GetSharepoint() *SharePointSetting {
if x != nil {
return x.Sharepoint
}
return nil
}
// SharePointSetting is the Microsoft Entra application that uploads exports to
// SharePoint.
type SharePointSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SharePointSetting) Reset() {
*x = SharePointSetting{}
mi := &file_store_setting_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SharePointSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SharePointSetting) ProtoMessage() {}
func (x *SharePointSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SharePointSetting.ProtoReflect.Descriptor instead.
func (*SharePointSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{1}
}
func (x *SharePointSetting) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *SharePointSetting) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
func (x *SharePointSetting) GetClientSecret() string {
if x != nil {
return x.ClientSecret
}
return ""
}
type SystemSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Enterprise license JWT token.
License string `protobuf:"bytes,3,opt,name=license,proto3" json:"license,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SystemSetting) Reset() {
*x = SystemSetting{}
mi := &file_store_setting_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SystemSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SystemSetting) ProtoMessage() {}
func (x *SystemSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SystemSetting.ProtoReflect.Descriptor instead.
func (*SystemSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{2}
}
func (x *SystemSetting) GetLicense() string {
if x != nil {
return x.License
}
return ""
}
type WorkspaceProfileSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The external URL is used for sso authentication callback.
ExternalUrl string `protobuf:"bytes,1,opt,name=external_url,json=externalUrl,proto3" json:"external_url,omitempty"`
// Disallow self-service signup, users can only be invited by the owner.
DisallowSignup bool `protobuf:"varint,2,opt,name=disallow_signup,json=disallowSignup,proto3" json:"disallow_signup,omitempty"`
// Require 2FA for all users.
Require_2Fa bool `protobuf:"varint,3,opt,name=require_2fa,json=require2fa,proto3" json:"require_2fa,omitempty"`
// The duration for refresh token. Default is 7 days.
RefreshTokenDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=refresh_token_duration,json=refreshTokenDuration,proto3" json:"refresh_token_duration,omitempty"`
// The setting of custom announcement
Announcement *WorkspaceProfileSetting_Announcement `protobuf:"bytes,5,opt,name=announcement,proto3" json:"announcement,omitempty"`
// The max expiration duration for data access requests.
MaximumRequestExpiration *durationpb.Duration `protobuf:"bytes,6,opt,name=maximum_request_expiration,json=maximumRequestExpiration,proto3" json:"maximum_request_expiration,omitempty"`
// The workspace domain, e.g., bytebase.com.
Domains []string `protobuf:"bytes,7,rep,name=domains,proto3" json:"domains,omitempty"`
// Only user and group from the domains can be created and login.
EnforceIdentityDomain bool `protobuf:"varint,8,opt,name=enforce_identity_domain,json=enforceIdentityDomain,proto3" json:"enforce_identity_domain,omitempty"`
// The workspace database change mode.
DatabaseChangeMode WorkspaceProfileSetting_DatabaseChangeMode `protobuf:"varint,9,opt,name=database_change_mode,json=databaseChangeMode,proto3,enum=bytebase.store.WorkspaceProfileSetting_DatabaseChangeMode" json:"database_change_mode,omitempty"`
// Whether password sign-in is disabled for all end users.
DisallowPasswordSignin bool `protobuf:"varint,10,opt,name=disallow_password_signin,json=disallowPasswordSignin,proto3" json:"disallow_password_signin,omitempty"`
// Whether to enable metric collection for the workspace.
EnableMetricCollection bool `protobuf:"varint,11,opt,name=enable_metric_collection,json=enableMetricCollection,proto3" json:"enable_metric_collection,omitempty"`
// The session expiration time if not activity detected for the user. Value <= 0 means no limit.
InactiveSessionTimeout *durationpb.Duration `protobuf:"bytes,12,opt,name=inactive_session_timeout,json=inactiveSessionTimeout,proto3" json:"inactive_session_timeout,omitempty"`
// Whether to enable audit logging to stdout in structured JSON format.
// Requires TEAM or ENTERPRISE license.
EnableAuditLogStdout bool `protobuf:"varint,13,opt,name=enable_audit_log_stdout,json=enableAuditLogStdout,proto3" json:"enable_audit_log_stdout,omitempty"`
// Whether to display watermark on pages.
// Requires ENTERPRISE license.
Watermark bool `protobuf:"varint,14,opt,name=watermark,proto3" json:"watermark,omitempty"`
// Password restriction settings.
PasswordRestriction *WorkspaceProfileSetting_PasswordRestriction `protobuf:"bytes,17,opt,name=password_restriction,json=passwordRestriction,proto3" json:"password_restriction,omitempty"`
// The duration for access token. Default is 1 hour.
AccessTokenDuration *durationpb.Duration `protobuf:"bytes,18,opt,name=access_token_duration,json=accessTokenDuration,proto3" json:"access_token_duration,omitempty"`
// Whether debug mode is enabled.
EnableDebug bool `protobuf:"varint,19,opt,name=enable_debug,json=enableDebug,proto3" json:"enable_debug,omitempty"`
// The maximum result size limit in bytes for query and export, works for the SQL Editor and Export Center.
// The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0.
SqlResultSize int64 `protobuf:"varint,20,opt,name=sql_result_size,json=sqlResultSize,proto3" json:"sql_result_size,omitempty"`
// The query timeout duration for query and export, works for the SQL Editor and Export Center.
QueryTimeout *durationpb.Duration `protobuf:"bytes,21,opt,name=query_timeout,json=queryTimeout,proto3" json:"query_timeout,omitempty"`
// Allow signin/signup using email + a 6-digit one-time verification code.
// Requires the EMAIL setting to be configured on the workspace.
AllowEmailCodeSignin bool `protobuf:"varint,22,opt,name=allow_email_code_signin,json=allowEmailCodeSignin,proto3" json:"allow_email_code_signin,omitempty"`
// Enforced SQL Editor theme id: OPAQUE — a frontend-resolved built-in preset id
// OR a custom theme's uuid. Empty ⇒ default light.
SqlEditorThemeId string `protobuf:"bytes,23,opt,name=sql_editor_theme_id,json=sqlEditorThemeId,proto3" json:"sql_editor_theme_id,omitempty"`
// The enforced CUSTOM theme's full definition — present ONLY when
// sql_editor_theme_id is a custom uuid. tokens is always complete.
SqlEditorCustomTheme *SQLEditorThemeSetting `protobuf:"bytes,24,opt,name=sql_editor_custom_theme,json=sqlEditorCustomTheme,proto3" json:"sql_editor_custom_theme,omitempty"`
// The max expiration duration for request role.
// Deprecated: use just-in-time access request flows instead.
MaximumRoleExpiration *durationpb.Duration `protobuf:"bytes,25,opt,name=maximum_role_expiration,json=maximumRoleExpiration,proto3" json:"maximum_role_expiration,omitempty"`
// Hex-encoded SHA-256 of the SCIM directory sync token. The plaintext is shown
// once at rotation and never stored. SHA-256 rather than a slow KDF because the
// token is 122 bits of crypto/rand, not a human-chosen secret.
DirectorySyncTokenHash string `protobuf:"bytes,27,opt,name=directory_sync_token_hash,json=directorySyncTokenHash,proto3" json:"directory_sync_token_hash,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfileSetting) Reset() {
*x = WorkspaceProfileSetting{}
mi := &file_store_setting_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkspaceProfileSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceProfileSetting) ProtoMessage() {}
func (x *WorkspaceProfileSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkspaceProfileSetting.ProtoReflect.Descriptor instead.
func (*WorkspaceProfileSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{3}
}
func (x *WorkspaceProfileSetting) GetExternalUrl() string {
if x != nil {
return x.ExternalUrl
}
return ""
}
func (x *WorkspaceProfileSetting) GetDisallowSignup() bool {
if x != nil {
return x.DisallowSignup
}
return false
}
func (x *WorkspaceProfileSetting) GetRequire_2Fa() bool {
if x != nil {
return x.Require_2Fa
}
return false
}
func (x *WorkspaceProfileSetting) GetRefreshTokenDuration() *durationpb.Duration {
if x != nil {
return x.RefreshTokenDuration
}
return nil
}
func (x *WorkspaceProfileSetting) GetAnnouncement() *WorkspaceProfileSetting_Announcement {
if x != nil {
return x.Announcement
}
return nil
}
func (x *WorkspaceProfileSetting) GetMaximumRequestExpiration() *durationpb.Duration {
if x != nil {
return x.MaximumRequestExpiration
}
return nil
}
func (x *WorkspaceProfileSetting) GetDomains() []string {
if x != nil {
return x.Domains
}
return nil
}
func (x *WorkspaceProfileSetting) GetEnforceIdentityDomain() bool {
if x != nil {
return x.EnforceIdentityDomain
}
return false
}
func (x *WorkspaceProfileSetting) GetDatabaseChangeMode() WorkspaceProfileSetting_DatabaseChangeMode {
if x != nil {
return x.DatabaseChangeMode
}
return WorkspaceProfileSetting_DATABASE_CHANGE_MODE_UNSPECIFIED
}
func (x *WorkspaceProfileSetting) GetDisallowPasswordSignin() bool {
if x != nil {
return x.DisallowPasswordSignin
}
return false
}
func (x *WorkspaceProfileSetting) GetEnableMetricCollection() bool {
if x != nil {
return x.EnableMetricCollection
}
return false
}
func (x *WorkspaceProfileSetting) GetInactiveSessionTimeout() *durationpb.Duration {
if x != nil {
return x.InactiveSessionTimeout
}
return nil
}
func (x *WorkspaceProfileSetting) GetEnableAuditLogStdout() bool {
if x != nil {
return x.EnableAuditLogStdout
}
return false
}
func (x *WorkspaceProfileSetting) GetWatermark() bool {
if x != nil {
return x.Watermark
}
return false
}
func (x *WorkspaceProfileSetting) GetPasswordRestriction() *WorkspaceProfileSetting_PasswordRestriction {
if x != nil {
return x.PasswordRestriction
}
return nil
}
func (x *WorkspaceProfileSetting) GetAccessTokenDuration() *durationpb.Duration {
if x != nil {
return x.AccessTokenDuration
}
return nil
}
func (x *WorkspaceProfileSetting) GetEnableDebug() bool {
if x != nil {
return x.EnableDebug
}
return false
}
func (x *WorkspaceProfileSetting) GetSqlResultSize() int64 {
if x != nil {
return x.SqlResultSize
}
return 0
}
func (x *WorkspaceProfileSetting) GetQueryTimeout() *durationpb.Duration {
if x != nil {
return x.QueryTimeout
}
return nil
}
func (x *WorkspaceProfileSetting) GetAllowEmailCodeSignin() bool {
if x != nil {
return x.AllowEmailCodeSignin
}
return false
}
func (x *WorkspaceProfileSetting) GetSqlEditorThemeId() string {
if x != nil {
return x.SqlEditorThemeId
}
return ""
}
func (x *WorkspaceProfileSetting) GetSqlEditorCustomTheme() *SQLEditorThemeSetting {
if x != nil {
return x.SqlEditorCustomTheme
}
return nil
}
func (x *WorkspaceProfileSetting) GetMaximumRoleExpiration() *durationpb.Duration {
if x != nil {
return x.MaximumRoleExpiration
}
return nil
}
func (x *WorkspaceProfileSetting) GetDirectorySyncTokenHash() string {
if x != nil {
return x.DirectorySyncTokenHash
}
return ""
}
// MCPSetting is what an MCP (Model Context Protocol) session may do in this
// workspace. It is its own setting rather than a field of the workspace profile
// because the set grows, and because the /mcp kill switch reads it on every
// request and should not share a row — or a parse failure — with branding and
// sign-in configuration.
type MCPSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The maximum capability available to MCP sessions in this workspace, acting
// as an admin-set ceiling. Enforced server-side at three points: the /mcp
// endpoint decides whether a connection is admitted at all, the ceiling gate
// on the internal MCP chain decides, per request, which method classes are
// served, and under READ_ONLY the SQL clamp decides, per statement, whether
// it only reads.
Capability MCPSetting_Capability `protobuf:"varint,1,opt,name=capability,proto3,enum=bytebase.store.MCPSetting_Capability" json:"capability,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MCPSetting) Reset() {
*x = MCPSetting{}
mi := &file_store_setting_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MCPSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MCPSetting) ProtoMessage() {}
func (x *MCPSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MCPSetting.ProtoReflect.Descriptor instead.
func (*MCPSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{4}
}
func (x *MCPSetting) GetCapability() MCPSetting_Capability {
if x != nil {
return x.Capability
}
return MCPSetting_CAPABILITY_UNSPECIFIED
}
type SQLEditorThemeSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
MonacoBase string `protobuf:"bytes,3,opt,name=monaco_base,json=monacoBase,proto3" json:"monaco_base,omitempty"`
// CSS token colors.
Tokens map[string]*color.Color `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SQLEditorThemeSetting) Reset() {
*x = SQLEditorThemeSetting{}
mi := &file_store_setting_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SQLEditorThemeSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SQLEditorThemeSetting) ProtoMessage() {}
func (x *SQLEditorThemeSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SQLEditorThemeSetting.ProtoReflect.Descriptor instead.
func (*SQLEditorThemeSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{5}
}
func (x *SQLEditorThemeSetting) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *SQLEditorThemeSetting) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *SQLEditorThemeSetting) GetMonacoBase() string {
if x != nil {
return x.MonacoBase
}
return ""
}
func (x *SQLEditorThemeSetting) GetTokens() map[string]*color.Color {
if x != nil {
return x.Tokens
}
return nil
}
type WorkspaceApprovalSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Rules []*WorkspaceApprovalSetting_Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkspaceApprovalSetting) Reset() {
*x = WorkspaceApprovalSetting{}
mi := &file_store_setting_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkspaceApprovalSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceApprovalSetting) ProtoMessage() {}
func (x *WorkspaceApprovalSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkspaceApprovalSetting.ProtoReflect.Descriptor instead.
func (*WorkspaceApprovalSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{6}
}
func (x *WorkspaceApprovalSetting) GetRules() []*WorkspaceApprovalSetting_Rule {
if x != nil {
return x.Rules
}
return nil
}
type DataClassificationSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Configs []*DataClassificationSetting_DataClassificationConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DataClassificationSetting) Reset() {
*x = DataClassificationSetting{}
mi := &file_store_setting_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DataClassificationSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataClassificationSetting) ProtoMessage() {}
func (x *DataClassificationSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DataClassificationSetting.ProtoReflect.Descriptor instead.
func (*DataClassificationSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{7}
}
func (x *DataClassificationSetting) GetConfigs() []*DataClassificationSetting_DataClassificationConfig {
if x != nil {
return x.Configs
}
return nil
}
type Algorithm struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Mask:
//
// *Algorithm_FullMask_
// *Algorithm_RangeMask_
// *Algorithm_Md5Mask
// *Algorithm_InnerOuterMask_
Mask isAlgorithm_Mask `protobuf_oneof:"mask"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Algorithm) Reset() {
*x = Algorithm{}
mi := &file_store_setting_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Algorithm) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Algorithm) ProtoMessage() {}
func (x *Algorithm) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Algorithm.ProtoReflect.Descriptor instead.
func (*Algorithm) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{8}
}
func (x *Algorithm) GetMask() isAlgorithm_Mask {
if x != nil {
return x.Mask
}
return nil
}
func (x *Algorithm) GetFullMask() *Algorithm_FullMask {
if x != nil {
if x, ok := x.Mask.(*Algorithm_FullMask_); ok {
return x.FullMask
}
}
return nil
}
func (x *Algorithm) GetRangeMask() *Algorithm_RangeMask {
if x != nil {
if x, ok := x.Mask.(*Algorithm_RangeMask_); ok {
return x.RangeMask
}
}
return nil
}
func (x *Algorithm) GetMd5Mask() *Algorithm_MD5Mask {
if x != nil {
if x, ok := x.Mask.(*Algorithm_Md5Mask); ok {
return x.Md5Mask
}
}
return nil
}
func (x *Algorithm) GetInnerOuterMask() *Algorithm_InnerOuterMask {
if x != nil {
if x, ok := x.Mask.(*Algorithm_InnerOuterMask_); ok {
return x.InnerOuterMask
}
}
return nil
}
type isAlgorithm_Mask interface {
isAlgorithm_Mask()
}
type Algorithm_FullMask_ struct {
FullMask *Algorithm_FullMask `protobuf:"bytes,1,opt,name=full_mask,json=fullMask,proto3,oneof"`
}
type Algorithm_RangeMask_ struct {
RangeMask *Algorithm_RangeMask `protobuf:"bytes,2,opt,name=range_mask,json=rangeMask,proto3,oneof"`
}
type Algorithm_Md5Mask struct {
Md5Mask *Algorithm_MD5Mask `protobuf:"bytes,3,opt,name=md5_mask,json=md5Mask,proto3,oneof"`
}
type Algorithm_InnerOuterMask_ struct {
InnerOuterMask *Algorithm_InnerOuterMask `protobuf:"bytes,4,opt,name=inner_outer_mask,json=innerOuterMask,proto3,oneof"`
}
func (*Algorithm_FullMask_) isAlgorithm_Mask() {}
func (*Algorithm_RangeMask_) isAlgorithm_Mask() {}
func (*Algorithm_Md5Mask) isAlgorithm_Mask() {}
func (*Algorithm_InnerOuterMask_) isAlgorithm_Mask() {}
type SemanticTypeSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Types []*SemanticTypeSetting_SemanticType `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SemanticTypeSetting) Reset() {
*x = SemanticTypeSetting{}
mi := &file_store_setting_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SemanticTypeSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SemanticTypeSetting) ProtoMessage() {}
func (x *SemanticTypeSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SemanticTypeSetting.ProtoReflect.Descriptor instead.
func (*SemanticTypeSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{9}
}
func (x *SemanticTypeSetting) GetTypes() []*SemanticTypeSetting_SemanticType {
if x != nil {
return x.Types
}
return nil
}
type AppIMSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Settings []*AppIMSetting_IMSetting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AppIMSetting) Reset() {
*x = AppIMSetting{}
mi := &file_store_setting_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AppIMSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppIMSetting) ProtoMessage() {}
func (x *AppIMSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AppIMSetting.ProtoReflect.Descriptor instead.
func (*AppIMSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10}
}
func (x *AppIMSetting) GetSettings() []*AppIMSetting_IMSetting {
if x != nil {
return x.Settings
}
return nil
}
type AISetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
Provider AISetting_Provider `protobuf:"varint,2,opt,name=provider,proto3,enum=bytebase.store.AISetting_Provider" json:"provider,omitempty"`
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
ApiKey string `protobuf:"bytes,4,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
// Whether the AI SQL review may run. It is a consent of its own beside
// `enabled`, because a review sends the statements of a change to the
// provider and can send the schema of its target databases.
SqlReviewEnabled bool `protobuf:"varint,7,opt,name=sql_review_enabled,json=sqlReviewEnabled,proto3" json:"sql_review_enabled,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AISetting) Reset() {
*x = AISetting{}
mi := &file_store_setting_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AISetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AISetting) ProtoMessage() {}
func (x *AISetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AISetting.ProtoReflect.Descriptor instead.
func (*AISetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{11}
}
func (x *AISetting) GetEnabled() bool {
if x != nil {
return x.Enabled
}
return false
}
func (x *AISetting) GetProvider() AISetting_Provider {
if x != nil {
return x.Provider
}
return AISetting_PROVIDER_UNSPECIFIED
}
func (x *AISetting) GetEndpoint() string {
if x != nil {
return x.Endpoint
}
return ""
}
func (x *AISetting) GetApiKey() string {
if x != nil {
return x.ApiKey
}
return ""
}
func (x *AISetting) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
func (x *AISetting) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *AISetting) GetSqlReviewEnabled() bool {
if x != nil {
return x.SqlReviewEnabled
}
return false
}
type EnvironmentSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Environments []*EnvironmentSetting_Environment `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnvironmentSetting) Reset() {
*x = EnvironmentSetting{}
mi := &file_store_setting_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EnvironmentSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnvironmentSetting) ProtoMessage() {}
func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EnvironmentSetting.ProtoReflect.Descriptor instead.
func (*EnvironmentSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{12}
}
func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {
if x != nil {
return x.Environments
}
return nil
}
type EmailSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
FromName string `protobuf:"bytes,2,opt,name=from_name,json=fromName,proto3" json:"from_name,omitempty"`
Type EmailSetting_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.store.EmailSetting_Type" json:"type,omitempty"`
// Types that are valid to be assigned to Config:
//
// *EmailSetting_Smtp
Config isEmailSetting_Config `protobuf_oneof:"config"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EmailSetting) Reset() {
*x = EmailSetting{}
mi := &file_store_setting_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EmailSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EmailSetting) ProtoMessage() {}
func (x *EmailSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EmailSetting.ProtoReflect.Descriptor instead.
func (*EmailSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{13}
}
func (x *EmailSetting) GetFrom() string {
if x != nil {
return x.From
}
return ""
}
func (x *EmailSetting) GetFromName() string {
if x != nil {
return x.FromName
}
return ""
}
func (x *EmailSetting) GetType() EmailSetting_Type {
if x != nil {
return x.Type
}
return EmailSetting_TYPE_UNSPECIFIED
}
func (x *EmailSetting) GetConfig() isEmailSetting_Config {
if x != nil {
return x.Config
}
return nil
}
func (x *EmailSetting) GetSmtp() *EmailSetting_SMTPConfig {
if x != nil {
if x, ok := x.Config.(*EmailSetting_Smtp); ok {
return x.Smtp
}
}
return nil
}
type isEmailSetting_Config interface {
isEmailSetting_Config()
}
type EmailSetting_Smtp struct {
Smtp *EmailSetting_SMTPConfig `protobuf:"bytes,4,opt,name=smtp,proto3,oneof"`
}
func (*EmailSetting_Smtp) isEmailSetting_Config() {}
type WorkspaceProfileSetting_Announcement struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The text of the announcement.
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
// The optional link, user can follow the link to check extra details
Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
// Banner colors. Built-in presets (info/warning/critical) are a
// frontend-only concept that seeds these colors; the store only holds them.
Theme *WorkspaceProfileSetting_Announcement_AnnouncementTheme `protobuf:"bytes,4,opt,name=theme,proto3" json:"theme,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfileSetting_Announcement) Reset() {
*x = WorkspaceProfileSetting_Announcement{}
mi := &file_store_setting_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkspaceProfileSetting_Announcement) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceProfileSetting_Announcement) ProtoMessage() {}
func (x *WorkspaceProfileSetting_Announcement) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkspaceProfileSetting_Announcement.ProtoReflect.Descriptor instead.
func (*WorkspaceProfileSetting_Announcement) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{3, 0}
}
func (x *WorkspaceProfileSetting_Announcement) GetText() string {
if x != nil {
return x.Text
}
return ""
}
func (x *WorkspaceProfileSetting_Announcement) GetLink() string {
if x != nil {
return x.Link
}
return ""
}
func (x *WorkspaceProfileSetting_Announcement) GetTheme() *WorkspaceProfileSetting_Announcement_AnnouncementTheme {
if x != nil {
return x.Theme
}
return nil
}
type WorkspaceProfileSetting_PasswordRestriction struct {
state protoimpl.MessageState `protogen:"open.v1"`
// min_length is the minimum password length. It must be at least 8.
MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
// require_number requires the password to contain at least one number.
RequireNumber bool `protobuf:"varint,2,opt,name=require_number,json=requireNumber,proto3" json:"require_number,omitempty"`
// require_letter requires the password to contain at least one letter, either uppercase or lowercase.
RequireLetter bool `protobuf:"varint,3,opt,name=require_letter,json=requireLetter,proto3" json:"require_letter,omitempty"`
// require_uppercase_letter requires the password to contain at least one uppercase letter.
RequireUppercaseLetter bool `protobuf:"varint,4,opt,name=require_uppercase_letter,json=requireUppercaseLetter,proto3" json:"require_uppercase_letter,omitempty"`
// require_special_character requires the password to contain at least one special character.
RequireSpecialCharacter bool `protobuf:"varint,5,opt,name=require_special_character,json=requireSpecialCharacter,proto3" json:"require_special_character,omitempty"`
// require_reset_password_for_first_login requires users to change their password after their first login.
RequireResetPasswordForFirstLogin bool `protobuf:"varint,6,opt,name=require_reset_password_for_first_login,json=requireResetPasswordForFirstLogin,proto3" json:"require_reset_password_for_first_login,omitempty"`
// password_rotation requires users to change their password after the duration.
PasswordRotation *durationpb.Duration `protobuf:"bytes,7,opt,name=password_rotation,json=passwordRotation,proto3" json:"password_rotation,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfileSetting_PasswordRestriction) Reset() {
*x = WorkspaceProfileSetting_PasswordRestriction{}
mi := &file_store_setting_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkspaceProfileSetting_PasswordRestriction) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceProfileSetting_PasswordRestriction) ProtoMessage() {}
func (x *WorkspaceProfileSetting_PasswordRestriction) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkspaceProfileSetting_PasswordRestriction.ProtoReflect.Descriptor instead.
func (*WorkspaceProfileSetting_PasswordRestriction) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{3, 1}
}
func (x *WorkspaceProfileSetting_PasswordRestriction) GetMinLength() int32 {
if x != nil {
return x.MinLength
}
return 0
}
func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireNumber() bool {
if x != nil {
return x.RequireNumber
}
return false
}
func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireLetter() bool {
if x != nil {
return x.RequireLetter
}
return false
}
func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireUppercaseLetter() bool {
if x != nil {
return x.RequireUppercaseLetter
}
return false
}
func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireSpecialCharacter() bool {
if x != nil {
return x.RequireSpecialCharacter
}
return false
}
func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireResetPasswordForFirstLogin() bool {
if x != nil {
return x.RequireResetPasswordForFirstLogin
}
return false
}
func (x *WorkspaceProfileSetting_PasswordRestriction) GetPasswordRotation() *durationpb.Duration {
if x != nil {
return x.PasswordRotation
}
return nil
}
type WorkspaceProfileSetting_Announcement_AnnouncementTheme struct {
state protoimpl.MessageState `protogen:"open.v1"`
Background *color.Color `protobuf:"bytes,1,opt,name=background,proto3" json:"background,omitempty"`
Text *color.Color `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfileSetting_Announcement_AnnouncementTheme) Reset() {
*x = WorkspaceProfileSetting_Announcement_AnnouncementTheme{}
mi := &file_store_setting_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkspaceProfileSetting_Announcement_AnnouncementTheme) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceProfileSetting_Announcement_AnnouncementTheme) ProtoMessage() {}
func (x *WorkspaceProfileSetting_Announcement_AnnouncementTheme) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkspaceProfileSetting_Announcement_AnnouncementTheme.ProtoReflect.Descriptor instead.
func (*WorkspaceProfileSetting_Announcement_AnnouncementTheme) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{3, 0, 0}
}
func (x *WorkspaceProfileSetting_Announcement_AnnouncementTheme) GetBackground() *color.Color {
if x != nil {
return x.Background
}
return nil
}
func (x *WorkspaceProfileSetting_Announcement_AnnouncementTheme) GetText() *color.Color {
if x != nil {
return x.Text
}
return nil
}
type WorkspaceApprovalSetting_Rule struct {
state protoimpl.MessageState `protogen:"open.v1"`
Template *ApprovalTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
Condition *expr.Expr `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
Source WorkspaceApprovalSetting_Rule_Source `protobuf:"varint,3,opt,name=source,proto3,enum=bytebase.store.WorkspaceApprovalSetting_Rule_Source" json:"source,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WorkspaceApprovalSetting_Rule) Reset() {
*x = WorkspaceApprovalSetting_Rule{}
mi := &file_store_setting_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkspaceApprovalSetting_Rule) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}
func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WorkspaceApprovalSetting_Rule.ProtoReflect.Descriptor instead.
func (*WorkspaceApprovalSetting_Rule) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{6, 0}
}
func (x *WorkspaceApprovalSetting_Rule) GetTemplate() *ApprovalTemplate {
if x != nil {
return x.Template
}
return nil
}
func (x *WorkspaceApprovalSetting_Rule) GetCondition() *expr.Expr {
if x != nil {
return x.Condition
}
return nil
}
func (x *WorkspaceApprovalSetting_Rule) GetSource() WorkspaceApprovalSetting_Rule_Source {
if x != nil {
return x.Source
}
return WorkspaceApprovalSetting_Rule_SOURCE_UNSPECIFIED
}
type DataClassificationSetting_DataClassificationConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// id is the uuid for classification. Each project can chose one
// classification config.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// levels is user defined level list for classification.
Levels []*DataClassificationSetting_DataClassificationConfig_Level `protobuf:"bytes,3,rep,name=levels,proto3" json:"levels,omitempty"`
// classification is the id - DataClassification map.
// The id should in [0-9]+-[0-9]+-[0-9]+ format.
Classification map[string]*DataClassificationSetting_DataClassificationConfig_DataClassification `protobuf:"bytes,4,rep,name=classification,proto3" json:"classification,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DataClassificationSetting_DataClassificationConfig) Reset() {
*x = DataClassificationSetting_DataClassificationConfig{}
mi := &file_store_setting_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DataClassificationSetting_DataClassificationConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DataClassificationSetting_DataClassificationConfig.ProtoReflect.Descriptor instead.
func (*DataClassificationSetting_DataClassificationConfig) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{7, 0}
}
func (x *DataClassificationSetting_DataClassificationConfig) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DataClassificationSetting_DataClassificationConfig) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *DataClassificationSetting_DataClassificationConfig) GetLevels() []*DataClassificationSetting_DataClassificationConfig_Level {
if x != nil {
return x.Levels
}
return nil
}
func (x *DataClassificationSetting_DataClassificationConfig) GetClassification() map[string]*DataClassificationSetting_DataClassificationConfig_DataClassification {
if x != nil {
return x.Classification
}
return nil
}
type DataClassificationSetting_DataClassificationConfig_Level struct {
state protoimpl.MessageState `protogen:"open.v1"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// The numeric level for ordering. Higher = more sensitive.
Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_Level{}
mi := &file_store_setting_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DataClassificationSetting_DataClassificationConfig_Level) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DataClassificationSetting_DataClassificationConfig_Level.ProtoReflect.Descriptor instead.
func (*DataClassificationSetting_DataClassificationConfig_Level) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{7, 0, 0}
}
func (x *DataClassificationSetting_DataClassificationConfig_Level) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *DataClassificationSetting_DataClassificationConfig_Level) GetLevel() int32 {
if x != nil {
return x.Level
}
return 0
}
type DataClassificationSetting_DataClassificationConfig_DataClassification struct {
state protoimpl.MessageState `protogen:"open.v1"`
// id is the classification id in [0-9]+-[0-9]+-[0-9]+ format.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// The sensitivity level. Maps to Level.level.
Level *int32 `protobuf:"varint,4,opt,name=level,proto3,oneof" json:"level,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}
mi := &file_store_setting_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 DataClassificationSetting_DataClassificationConfig_DataClassification.ProtoReflect.Descriptor instead.
func (*DataClassificationSetting_DataClassificationConfig_DataClassification) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{7, 0, 1}
}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetLevel() int32 {
if x != nil && x.Level != nil {
return *x.Level
}
return 0
}
type Algorithm_FullMask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// substitution is the string used to replace the original value, the
// max length of the string is 16 bytes.
Substitution string `protobuf:"bytes,1,opt,name=substitution,proto3" json:"substitution,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Algorithm_FullMask) Reset() {
*x = Algorithm_FullMask{}
mi := &file_store_setting_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Algorithm_FullMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Algorithm_FullMask) ProtoMessage() {}
func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 Algorithm_FullMask.ProtoReflect.Descriptor instead.
func (*Algorithm_FullMask) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{8, 0}
}
func (x *Algorithm_FullMask) GetSubstitution() string {
if x != nil {
return x.Substitution
}
return ""
}
type Algorithm_RangeMask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
// But frontend can be started with a single rule easily.
Slices []*Algorithm_RangeMask_Slice `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Algorithm_RangeMask) Reset() {
*x = Algorithm_RangeMask{}
mi := &file_store_setting_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Algorithm_RangeMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Algorithm_RangeMask) ProtoMessage() {}
func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 Algorithm_RangeMask.ProtoReflect.Descriptor instead.
func (*Algorithm_RangeMask) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{8, 1}
}
func (x *Algorithm_RangeMask) GetSlices() []*Algorithm_RangeMask_Slice {
if x != nil {
return x.Slices
}
return nil
}
type Algorithm_MD5Mask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// salt is the salt value to generate a different hash that with the word alone.
Salt string `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Algorithm_MD5Mask) Reset() {
*x = Algorithm_MD5Mask{}
mi := &file_store_setting_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Algorithm_MD5Mask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Algorithm_MD5Mask) ProtoMessage() {}
func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 Algorithm_MD5Mask.ProtoReflect.Descriptor instead.
func (*Algorithm_MD5Mask) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{8, 2}
}
func (x *Algorithm_MD5Mask) GetSalt() string {
if x != nil {
return x.Salt
}
return ""
}
type Algorithm_InnerOuterMask struct {
state protoimpl.MessageState `protogen:"open.v1"`
PrefixLen int32 `protobuf:"varint,1,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"`
SuffixLen int32 `protobuf:"varint,2,opt,name=suffix_len,json=suffixLen,proto3" json:"suffix_len,omitempty"`
Type Algorithm_InnerOuterMask_MaskType `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.store.Algorithm_InnerOuterMask_MaskType" json:"type,omitempty"`
Substitution string `protobuf:"bytes,4,opt,name=substitution,proto3" json:"substitution,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Algorithm_InnerOuterMask) Reset() {
*x = Algorithm_InnerOuterMask{}
mi := &file_store_setting_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Algorithm_InnerOuterMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Algorithm_InnerOuterMask) ProtoMessage() {}
func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 Algorithm_InnerOuterMask.ProtoReflect.Descriptor instead.
func (*Algorithm_InnerOuterMask) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{8, 3}
}
func (x *Algorithm_InnerOuterMask) GetPrefixLen() int32 {
if x != nil {
return x.PrefixLen
}
return 0
}
func (x *Algorithm_InnerOuterMask) GetSuffixLen() int32 {
if x != nil {
return x.SuffixLen
}
return 0
}
func (x *Algorithm_InnerOuterMask) GetType() Algorithm_InnerOuterMask_MaskType {
if x != nil {
return x.Type
}
return Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED
}
func (x *Algorithm_InnerOuterMask) GetSubstitution() string {
if x != nil {
return x.Substitution
}
return ""
}
type Algorithm_RangeMask_Slice struct {
state protoimpl.MessageState `protogen:"open.v1"`
// start is the start character index (0-based) of the original value, should be less than end.
// Uses character indices (not byte offsets) for display-oriented masking.
// Example: For "你好world", character index 2 refers to 'w' (the 3rd character).
Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
// end is the end character index (exclusive) of the original value.
// Uses character indices (not byte offsets) for display-oriented masking.
End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
// OriginalValue[start:end) would be replaced with substitution.
Substitution string `protobuf:"bytes,3,opt,name=substitution,proto3" json:"substitution,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Algorithm_RangeMask_Slice) Reset() {
*x = Algorithm_RangeMask_Slice{}
mi := &file_store_setting_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Algorithm_RangeMask_Slice) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Algorithm_RangeMask_Slice) ProtoMessage() {}
func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Algorithm_RangeMask_Slice.ProtoReflect.Descriptor instead.
func (*Algorithm_RangeMask_Slice) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{8, 1, 0}
}
func (x *Algorithm_RangeMask_Slice) GetStart() int32 {
if x != nil {
return x.Start
}
return 0
}
func (x *Algorithm_RangeMask_Slice) GetEnd() int32 {
if x != nil {
return x.End
}
return 0
}
func (x *Algorithm_RangeMask_Slice) GetSubstitution() string {
if x != nil {
return x.Substitution
}
return ""
}
type SemanticTypeSetting_SemanticType struct {
state protoimpl.MessageState `protogen:"open.v1"`
// id is the uuid for semantic type.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// the title of the semantic type, it should not be empty.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// the description of the semantic type, it can be empty.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Algorithm *Algorithm `protobuf:"bytes,6,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
// icon is the icon for semantic type, it can be emoji or base64 encoded image.
Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SemanticTypeSetting_SemanticType) Reset() {
*x = SemanticTypeSetting_SemanticType{}
mi := &file_store_setting_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SemanticTypeSetting_SemanticType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}
func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 SemanticTypeSetting_SemanticType.ProtoReflect.Descriptor instead.
func (*SemanticTypeSetting_SemanticType) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{9, 0}
}
func (x *SemanticTypeSetting_SemanticType) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *SemanticTypeSetting_SemanticType) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *SemanticTypeSetting_SemanticType) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *SemanticTypeSetting_SemanticType) GetAlgorithm() *Algorithm {
if x != nil {
return x.Algorithm
}
return nil
}
func (x *SemanticTypeSetting_SemanticType) GetIcon() string {
if x != nil {
return x.Icon
}
return ""
}
type AppIMSetting_Slack struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AppIMSetting_Slack) Reset() {
*x = AppIMSetting_Slack{}
mi := &file_store_setting_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AppIMSetting_Slack) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppIMSetting_Slack) ProtoMessage() {}
func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 AppIMSetting_Slack.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Slack) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10, 0}
}
func (x *AppIMSetting_Slack) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type AppIMSetting_Feishu struct {
state protoimpl.MessageState `protogen:"open.v1"`
AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
AppSecret string `protobuf:"bytes,2,opt,name=app_secret,json=appSecret,proto3" json:"app_secret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AppIMSetting_Feishu) Reset() {
*x = AppIMSetting_Feishu{}
mi := &file_store_setting_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AppIMSetting_Feishu) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppIMSetting_Feishu) ProtoMessage() {}
func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 AppIMSetting_Feishu.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Feishu) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10, 1}
}
func (x *AppIMSetting_Feishu) GetAppId() string {
if x != nil {
return x.AppId
}
return ""
}
func (x *AppIMSetting_Feishu) GetAppSecret() string {
if x != nil {
return x.AppSecret
}
return ""
}
type AppIMSetting_Wecom struct {
state protoimpl.MessageState `protogen:"open.v1"`
CorpId string `protobuf:"bytes,1,opt,name=corp_id,json=corpId,proto3" json:"corp_id,omitempty"`
AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AppIMSetting_Wecom) Reset() {
*x = AppIMSetting_Wecom{}
mi := &file_store_setting_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AppIMSetting_Wecom) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppIMSetting_Wecom) ProtoMessage() {}
func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_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 AppIMSetting_Wecom.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Wecom) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10, 2}
}
func (x *AppIMSetting_Wecom) GetCorpId() string {
if x != nil {
return x.CorpId
}
return ""
}
func (x *AppIMSetting_Wecom) GetAgentId() string {
if x != nil {
return x.AgentId
}
return ""
}
func (x *AppIMSetting_Wecom) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
type AppIMSetting_Lark struct {
state protoimpl.MessageState `protogen:"open.v1"`
AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
AppSecret string `protobuf:"bytes,2,opt,name=app_secret,json=appSecret,proto3" json:"app_secret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AppIMSetting_Lark) Reset() {
*x = AppIMSetting_Lark{}
mi := &file_store_setting_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AppIMSetting_Lark) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppIMSetting_Lark) ProtoMessage() {}
func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AppIMSetting_Lark.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Lark) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10, 3}
}
func (x *AppIMSetting_Lark) GetAppId() string {
if x != nil {
return x.AppId
}
return ""
}
func (x *AppIMSetting_Lark) GetAppSecret() string {
if x != nil {
return x.AppSecret
}
return ""
}
type AppIMSetting_DingTalk struct {
state protoimpl.MessageState `protogen:"open.v1"`
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
RobotCode string `protobuf:"bytes,3,opt,name=robot_code,json=robotCode,proto3" json:"robot_code,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AppIMSetting_DingTalk) Reset() {
*x = AppIMSetting_DingTalk{}
mi := &file_store_setting_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AppIMSetting_DingTalk) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppIMSetting_DingTalk) ProtoMessage() {}
func (x *AppIMSetting_DingTalk) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AppIMSetting_DingTalk.ProtoReflect.Descriptor instead.
func (*AppIMSetting_DingTalk) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10, 4}
}
func (x *AppIMSetting_DingTalk) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
func (x *AppIMSetting_DingTalk) GetClientSecret() string {
if x != nil {
return x.ClientSecret
}
return ""
}
func (x *AppIMSetting_DingTalk) GetRobotCode() string {
if x != nil {
return x.RobotCode
}
return ""
}
type AppIMSetting_Teams struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Azure AD tenant ID (Directory ID).
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
// Azure AD application (client) ID.
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// Azure AD client secret.
ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AppIMSetting_Teams) Reset() {
*x = AppIMSetting_Teams{}
mi := &file_store_setting_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AppIMSetting_Teams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppIMSetting_Teams) ProtoMessage() {}
func (x *AppIMSetting_Teams) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AppIMSetting_Teams.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Teams) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10, 5}
}
func (x *AppIMSetting_Teams) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *AppIMSetting_Teams) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
func (x *AppIMSetting_Teams) GetClientSecret() string {
if x != nil {
return x.ClientSecret
}
return ""
}
type AppIMSetting_IMSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Type WebhookType `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.WebhookType" json:"type,omitempty"`
// Types that are valid to be assigned to Payload:
//
// *AppIMSetting_IMSetting_Slack
// *AppIMSetting_IMSetting_Feishu
// *AppIMSetting_IMSetting_Wecom
// *AppIMSetting_IMSetting_Lark
// *AppIMSetting_IMSetting_Dingtalk
// *AppIMSetting_IMSetting_Teams
Payload isAppIMSetting_IMSetting_Payload `protobuf_oneof:"payload"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AppIMSetting_IMSetting) Reset() {
*x = AppIMSetting_IMSetting{}
mi := &file_store_setting_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AppIMSetting_IMSetting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppIMSetting_IMSetting) ProtoMessage() {}
func (x *AppIMSetting_IMSetting) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AppIMSetting_IMSetting.ProtoReflect.Descriptor instead.
func (*AppIMSetting_IMSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10, 6}
}
func (x *AppIMSetting_IMSetting) GetType() WebhookType {
if x != nil {
return x.Type
}
return WebhookType_WEBHOOK_TYPE_UNSPECIFIED
}
func (x *AppIMSetting_IMSetting) GetPayload() isAppIMSetting_IMSetting_Payload {
if x != nil {
return x.Payload
}
return nil
}
func (x *AppIMSetting_IMSetting) GetSlack() *AppIMSetting_Slack {
if x != nil {
if x, ok := x.Payload.(*AppIMSetting_IMSetting_Slack); ok {
return x.Slack
}
}
return nil
}
func (x *AppIMSetting_IMSetting) GetFeishu() *AppIMSetting_Feishu {
if x != nil {
if x, ok := x.Payload.(*AppIMSetting_IMSetting_Feishu); ok {
return x.Feishu
}
}
return nil
}
func (x *AppIMSetting_IMSetting) GetWecom() *AppIMSetting_Wecom {
if x != nil {
if x, ok := x.Payload.(*AppIMSetting_IMSetting_Wecom); ok {
return x.Wecom
}
}
return nil
}
func (x *AppIMSetting_IMSetting) GetLark() *AppIMSetting_Lark {
if x != nil {
if x, ok := x.Payload.(*AppIMSetting_IMSetting_Lark); ok {
return x.Lark
}
}
return nil
}
func (x *AppIMSetting_IMSetting) GetDingtalk() *AppIMSetting_DingTalk {
if x != nil {
if x, ok := x.Payload.(*AppIMSetting_IMSetting_Dingtalk); ok {
return x.Dingtalk
}
}
return nil
}
func (x *AppIMSetting_IMSetting) GetTeams() *AppIMSetting_Teams {
if x != nil {
if x, ok := x.Payload.(*AppIMSetting_IMSetting_Teams); ok {
return x.Teams
}
}
return nil
}
type isAppIMSetting_IMSetting_Payload interface {
isAppIMSetting_IMSetting_Payload()
}
type AppIMSetting_IMSetting_Slack struct {
Slack *AppIMSetting_Slack `protobuf:"bytes,2,opt,name=slack,proto3,oneof"`
}
type AppIMSetting_IMSetting_Feishu struct {
Feishu *AppIMSetting_Feishu `protobuf:"bytes,3,opt,name=feishu,proto3,oneof"`
}
type AppIMSetting_IMSetting_Wecom struct {
Wecom *AppIMSetting_Wecom `protobuf:"bytes,4,opt,name=wecom,proto3,oneof"`
}
type AppIMSetting_IMSetting_Lark struct {
Lark *AppIMSetting_Lark `protobuf:"bytes,5,opt,name=lark,proto3,oneof"`
}
type AppIMSetting_IMSetting_Dingtalk struct {
Dingtalk *AppIMSetting_DingTalk `protobuf:"bytes,6,opt,name=dingtalk,proto3,oneof"`
}
type AppIMSetting_IMSetting_Teams struct {
Teams *AppIMSetting_Teams `protobuf:"bytes,7,opt,name=teams,proto3,oneof"`
}
func (*AppIMSetting_IMSetting_Slack) isAppIMSetting_IMSetting_Payload() {}
func (*AppIMSetting_IMSetting_Feishu) isAppIMSetting_IMSetting_Payload() {}
func (*AppIMSetting_IMSetting_Wecom) isAppIMSetting_IMSetting_Payload() {}
func (*AppIMSetting_IMSetting_Lark) isAppIMSetting_IMSetting_Payload() {}
func (*AppIMSetting_IMSetting_Dingtalk) isAppIMSetting_IMSetting_Payload() {}
func (*AppIMSetting_IMSetting_Teams) isAppIMSetting_IMSetting_Payload() {}
type EnvironmentSetting_Environment struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource id of the environment.
// This value should be 4-63 characters, and valid characters
// are /[a-z][0-9]-/.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The display name of the environment.
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
Tags map[string]string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Color *color.Color `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnvironmentSetting_Environment) Reset() {
*x = EnvironmentSetting_Environment{}
mi := &file_store_setting_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EnvironmentSetting_Environment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnvironmentSetting_Environment) ProtoMessage() {}
func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EnvironmentSetting_Environment.ProtoReflect.Descriptor instead.
func (*EnvironmentSetting_Environment) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{12, 0}
}
func (x *EnvironmentSetting_Environment) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *EnvironmentSetting_Environment) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *EnvironmentSetting_Environment) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *EnvironmentSetting_Environment) GetTags() map[string]string {
if x != nil {
return x.Tags
}
return nil
}
func (x *EnvironmentSetting_Environment) GetColor() *color.Color {
if x != nil {
return x.Color
}
return nil
}
type EmailSetting_SMTPConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
Encryption EmailSetting_SMTPConfig_Encryption `protobuf:"varint,5,opt,name=encryption,proto3,enum=bytebase.store.EmailSetting_SMTPConfig_Encryption" json:"encryption,omitempty"`
Authentication EmailSetting_SMTPConfig_Authentication `protobuf:"varint,6,opt,name=authentication,proto3,enum=bytebase.store.EmailSetting_SMTPConfig_Authentication" json:"authentication,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EmailSetting_SMTPConfig) Reset() {
*x = EmailSetting_SMTPConfig{}
mi := &file_store_setting_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EmailSetting_SMTPConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EmailSetting_SMTPConfig) ProtoMessage() {}
func (x *EmailSetting_SMTPConfig) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[38]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EmailSetting_SMTPConfig.ProtoReflect.Descriptor instead.
func (*EmailSetting_SMTPConfig) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{13, 0}
}
func (x *EmailSetting_SMTPConfig) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *EmailSetting_SMTPConfig) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
func (x *EmailSetting_SMTPConfig) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *EmailSetting_SMTPConfig) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *EmailSetting_SMTPConfig) GetEncryption() EmailSetting_SMTPConfig_Encryption {
if x != nil {
return x.Encryption
}
return EmailSetting_SMTPConfig_ENCRYPTION_UNSPECIFIED
}
func (x *EmailSetting_SMTPConfig) GetAuthentication() EmailSetting_SMTPConfig_Authentication {
if x != nil {
return x.Authentication
}
return EmailSetting_SMTPConfig_AUTHENTICATION_UNSPECIFIED
}
var File_store_setting_proto protoreflect.FileDescriptor
const file_store_setting_proto_rawDesc = "" +
"\n" +
"\x13store/setting.proto\x12\x0ebytebase.store\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x17google/type/color.proto\x1a\x16google/type/expr.proto\x1a\x14store/approval.proto\x1a\x12store/common.proto\"R\n" +
"\rExportSetting\x12A\n" +
"\n" +
"sharepoint\x18\x01 \x01(\v2!.bytebase.store.SharePointSettingR\n" +
"sharepoint\"r\n" +
"\x11SharePointSetting\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x1b\n" +
"\tclient_id\x18\x02 \x01(\tR\bclientId\x12#\n" +
"\rclient_secret\x18\x03 \x01(\tR\fclientSecret\"P\n" +
"\rSystemSetting\x12\x18\n" +
"\alicense\x18\x03 \x01(\tR\alicenseJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03R\vauth_secretR\fworkspace_id\"\xa7\x12\n" +
"\x17WorkspaceProfileSetting\x12!\n" +
"\fexternal_url\x18\x01 \x01(\tR\vexternalUrl\x12'\n" +
"\x0fdisallow_signup\x18\x02 \x01(\bR\x0edisallowSignup\x12\x1f\n" +
"\vrequire_2fa\x18\x03 \x01(\bR\n" +
"require2fa\x12O\n" +
"\x16refresh_token_duration\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x14refreshTokenDuration\x12X\n" +
"\fannouncement\x18\x05 \x01(\v24.bytebase.store.WorkspaceProfileSetting.AnnouncementR\fannouncement\x12W\n" +
"\x1amaximum_request_expiration\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x18maximumRequestExpiration\x12\x18\n" +
"\adomains\x18\a \x03(\tR\adomains\x126\n" +
"\x17enforce_identity_domain\x18\b \x01(\bR\x15enforceIdentityDomain\x12l\n" +
"\x14database_change_mode\x18\t \x01(\x0e2:.bytebase.store.WorkspaceProfileSetting.DatabaseChangeModeR\x12databaseChangeMode\x128\n" +
"\x18disallow_password_signin\x18\n" +
" \x01(\bR\x16disallowPasswordSignin\x128\n" +
"\x18enable_metric_collection\x18\v \x01(\bR\x16enableMetricCollection\x12S\n" +
"\x18inactive_session_timeout\x18\f \x01(\v2\x19.google.protobuf.DurationR\x16inactiveSessionTimeout\x125\n" +
"\x17enable_audit_log_stdout\x18\r \x01(\bR\x14enableAuditLogStdout\x12\x1c\n" +
"\twatermark\x18\x0e \x01(\bR\twatermark\x12n\n" +
"\x14password_restriction\x18\x11 \x01(\v2;.bytebase.store.WorkspaceProfileSetting.PasswordRestrictionR\x13passwordRestriction\x12M\n" +
"\x15access_token_duration\x18\x12 \x01(\v2\x19.google.protobuf.DurationR\x13accessTokenDuration\x12!\n" +
"\fenable_debug\x18\x13 \x01(\bR\venableDebug\x12&\n" +
"\x0fsql_result_size\x18\x14 \x01(\x03R\rsqlResultSize\x12>\n" +
"\rquery_timeout\x18\x15 \x01(\v2\x19.google.protobuf.DurationR\fqueryTimeout\x125\n" +
"\x17allow_email_code_signin\x18\x16 \x01(\bR\x14allowEmailCodeSignin\x12-\n" +
"\x13sql_editor_theme_id\x18\x17 \x01(\tR\x10sqlEditorThemeId\x12\\\n" +
"\x17sql_editor_custom_theme\x18\x18 \x01(\v2%.bytebase.store.SQLEditorThemeSettingR\x14sqlEditorCustomTheme\x12Q\n" +
"\x17maximum_role_expiration\x18\x19 \x01(\v2\x19.google.protobuf.DurationR\x15maximumRoleExpiration\x129\n" +
"\x19directory_sync_token_hash\x18\x1b \x01(\tR\x16directorySyncTokenHash\x1a\x92\x02\n" +
"\fAnnouncement\x12\x12\n" +
"\x04text\x18\x02 \x01(\tR\x04text\x12\x12\n" +
"\x04link\x18\x03 \x01(\tR\x04link\x12\\\n" +
"\x05theme\x18\x04 \x01(\v2F.bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementThemeR\x05theme\x1ao\n" +
"\x11AnnouncementTheme\x122\n" +
"\n" +
"background\x18\x01 \x01(\v2\x12.google.type.ColorR\n" +
"background\x12&\n" +
"\x04text\x18\x02 \x01(\v2\x12.google.type.ColorR\x04textJ\x04\b\x01\x10\x02R\x05level\x1a\x93\x03\n" +
"\x13PasswordRestriction\x12\x1d\n" +
"\n" +
"min_length\x18\x01 \x01(\x05R\tminLength\x12%\n" +
"\x0erequire_number\x18\x02 \x01(\bR\rrequireNumber\x12%\n" +
"\x0erequire_letter\x18\x03 \x01(\bR\rrequireLetter\x128\n" +
"\x18require_uppercase_letter\x18\x04 \x01(\bR\x16requireUppercaseLetter\x12:\n" +
"\x19require_special_character\x18\x05 \x01(\bR\x17requireSpecialCharacter\x12Q\n" +
"&require_reset_password_for_first_login\x18\x06 \x01(\bR!requireResetPasswordForFirstLogin\x12F\n" +
"\x11password_rotation\x18\a \x01(\v2\x19.google.protobuf.DurationR\x10passwordRotation\"T\n" +
"\x12DatabaseChangeMode\x12$\n" +
" DATABASE_CHANGE_MODE_UNSPECIFIED\x10\x00\x12\f\n" +
"\bPIPELINE\x10\x01\x12\n" +
"\n" +
"\x06EDITOR\x10\x02J\x04\b\x0f\x10\x10J\x04\b\x1a\x10\x1bJ\x04\b\x10\x10\x11R\x0emcp_capability\"\xb0\x01\n" +
"\n" +
"MCPSetting\x12E\n" +
"\n" +
"capability\x18\x01 \x01(\x0e2%.bytebase.store.MCPSetting.CapabilityR\n" +
"capability\"[\n" +
"\n" +
"Capability\x12\x1a\n" +
"\x16CAPABILITY_UNSPECIFIED\x10\x00\x12\f\n" +
"\bDISABLED\x10\x01\x12\r\n" +
"\tREAD_ONLY\x10\x03\x12\x0e\n" +
"\n" +
"READ_WRITE\x10\x04\"\x04\b\x02\x10\x02\"\xf6\x01\n" +
"\x15SQLEditorThemeSetting\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1f\n" +
"\vmonaco_base\x18\x03 \x01(\tR\n" +
"monacoBase\x12I\n" +
"\x06tokens\x18\x04 \x03(\v21.bytebase.store.SQLEditorThemeSetting.TokensEntryR\x06tokens\x1aM\n" +
"\vTokensEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12(\n" +
"\x05value\x18\x02 \x01(\v2\x12.google.type.ColorR\x05value:\x028\x01\"\xad\x03\n" +
"\x18WorkspaceApprovalSetting\x12C\n" +
"\x05rules\x18\x01 \x03(\v2-.bytebase.store.WorkspaceApprovalSetting.RuleR\x05rules\x1a\xcb\x02\n" +
"\x04Rule\x12<\n" +
"\btemplate\x18\x01 \x01(\v2 .bytebase.store.ApprovalTemplateR\btemplate\x12/\n" +
"\tcondition\x18\x02 \x01(\v2\x11.google.type.ExprR\tcondition\x12L\n" +
"\x06source\x18\x03 \x01(\x0e24.bytebase.store.WorkspaceApprovalSetting.Rule.SourceR\x06source\"\x85\x01\n" +
"\x06Source\x12\x16\n" +
"\x12SOURCE_UNSPECIFIED\x10\x00\x12\x13\n" +
"\x0fCHANGE_DATABASE\x10\x01\x12\x13\n" +
"\x0fCREATE_DATABASE\x10\x02\x12\x13\n" +
"\vEXPORT_DATA\x10\x03\x1a\x02\b\x01\x12\x10\n" +
"\fREQUEST_ROLE\x10\x04\x12\x12\n" +
"\x0eREQUEST_ACCESS\x10\x05\"\xe1\x05\n" +
"\x19DataClassificationSetting\x12\\\n" +
"\aconfigs\x18\x01 \x03(\v2B.bytebase.store.DataClassificationSetting.DataClassificationConfigR\aconfigs\x1a\xe5\x04\n" +
"\x18DataClassificationConfig\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
"\x05title\x18\x02 \x01(\tR\x05title\x12`\n" +
"\x06levels\x18\x03 \x03(\v2H.bytebase.store.DataClassificationSetting.DataClassificationConfig.LevelR\x06levels\x12~\n" +
"\x0eclassification\x18\x04 \x03(\v2V.bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntryR\x0eclassification\x1a?\n" +
"\x05Level\x12\x14\n" +
"\x05title\x18\x02 \x01(\tR\x05title\x12\x14\n" +
"\x05level\x18\x04 \x01(\x05R\x05levelJ\x04\b\x01\x10\x02J\x04\b\x03\x10\x04\x1ae\n" +
"\x12DataClassification\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
"\x05title\x18\x02 \x01(\tR\x05title\x12\x19\n" +
"\x05level\x18\x04 \x01(\x05H\x00R\x05level\x88\x01\x01B\b\n" +
"\x06_levelJ\x04\b\x03\x10\x04\x1a\x98\x01\n" +
"\x13ClassificationEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12k\n" +
"\x05value\x18\x02 \x01(\v2U.bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassificationR\x05value:\x028\x01\"\xa0\x06\n" +
"\tAlgorithm\x12A\n" +
"\tfull_mask\x18\x01 \x01(\v2\".bytebase.store.Algorithm.FullMaskH\x00R\bfullMask\x12D\n" +
"\n" +
"range_mask\x18\x02 \x01(\v2#.bytebase.store.Algorithm.RangeMaskH\x00R\trangeMask\x12>\n" +
"\bmd5_mask\x18\x03 \x01(\v2!.bytebase.store.Algorithm.MD5MaskH\x00R\amd5Mask\x12T\n" +
"\x10inner_outer_mask\x18\x04 \x01(\v2(.bytebase.store.Algorithm.InnerOuterMaskH\x00R\x0einnerOuterMask\x1a.\n" +
"\bFullMask\x12\"\n" +
"\fsubstitution\x18\x01 \x01(\tR\fsubstitution\x1a\xa3\x01\n" +
"\tRangeMask\x12A\n" +
"\x06slices\x18\x01 \x03(\v2).bytebase.store.Algorithm.RangeMask.SliceR\x06slices\x1aS\n" +
"\x05Slice\x12\x14\n" +
"\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n" +
"\x03end\x18\x02 \x01(\x05R\x03end\x12\"\n" +
"\fsubstitution\x18\x03 \x01(\tR\fsubstitution\x1a\x1d\n" +
"\aMD5Mask\x12\x12\n" +
"\x04salt\x18\x01 \x01(\tR\x04salt\x1a\xf6\x01\n" +
"\x0eInnerOuterMask\x12\x1d\n" +
"\n" +
"prefix_len\x18\x01 \x01(\x05R\tprefixLen\x12\x1d\n" +
"\n" +
"suffix_len\x18\x02 \x01(\x05R\tsuffixLen\x12E\n" +
"\x04type\x18\x03 \x01(\x0e21.bytebase.store.Algorithm.InnerOuterMask.MaskTypeR\x04type\x12\"\n" +
"\fsubstitution\x18\x04 \x01(\tR\fsubstitution\";\n" +
"\bMaskType\x12\x19\n" +
"\x15MASK_TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05INNER\x10\x01\x12\t\n" +
"\x05OUTER\x10\x02B\x06\n" +
"\x04mask\"\x89\x02\n" +
"\x13SemanticTypeSetting\x12F\n" +
"\x05types\x18\x01 \x03(\v20.bytebase.store.SemanticTypeSetting.SemanticTypeR\x05types\x1a\xa9\x01\n" +
"\fSemanticType\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
"\x05title\x18\x02 \x01(\tR\x05title\x12 \n" +
"\vdescription\x18\x03 \x01(\tR\vdescription\x127\n" +
"\talgorithm\x18\x06 \x01(\v2\x19.bytebase.store.AlgorithmR\talgorithm\x12\x12\n" +
"\x04icon\x18\a \x01(\tR\x04iconJ\x04\b\x04\x10\x06\"\xd4\a\n" +
"\fAppIMSetting\x12B\n" +
"\bsettings\x18\x01 \x03(\v2&.bytebase.store.AppIMSetting.IMSettingR\bsettings\x1a\x1d\n" +
"\x05Slack\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\x1a>\n" +
"\x06Feishu\x12\x15\n" +
"\x06app_id\x18\x01 \x01(\tR\x05appId\x12\x1d\n" +
"\n" +
"app_secret\x18\x02 \x01(\tR\tappSecret\x1aS\n" +
"\x05Wecom\x12\x17\n" +
"\acorp_id\x18\x01 \x01(\tR\x06corpId\x12\x19\n" +
"\bagent_id\x18\x02 \x01(\tR\aagentId\x12\x16\n" +
"\x06secret\x18\x03 \x01(\tR\x06secret\x1a<\n" +
"\x04Lark\x12\x15\n" +
"\x06app_id\x18\x01 \x01(\tR\x05appId\x12\x1d\n" +
"\n" +
"app_secret\x18\x02 \x01(\tR\tappSecret\x1ak\n" +
"\bDingTalk\x12\x1b\n" +
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12#\n" +
"\rclient_secret\x18\x02 \x01(\tR\fclientSecret\x12\x1d\n" +
"\n" +
"robot_code\x18\x03 \x01(\tR\trobotCode\x1af\n" +
"\x05Teams\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x1b\n" +
"\tclient_id\x18\x02 \x01(\tR\bclientId\x12#\n" +
"\rclient_secret\x18\x03 \x01(\tR\fclientSecret\x1a\xb8\x03\n" +
"\tIMSetting\x12/\n" +
"\x04type\x18\x01 \x01(\x0e2\x1b.bytebase.store.WebhookTypeR\x04type\x12:\n" +
"\x05slack\x18\x02 \x01(\v2\".bytebase.store.AppIMSetting.SlackH\x00R\x05slack\x12=\n" +
"\x06feishu\x18\x03 \x01(\v2#.bytebase.store.AppIMSetting.FeishuH\x00R\x06feishu\x12:\n" +
"\x05wecom\x18\x04 \x01(\v2\".bytebase.store.AppIMSetting.WecomH\x00R\x05wecom\x127\n" +
"\x04lark\x18\x05 \x01(\v2!.bytebase.store.AppIMSetting.LarkH\x00R\x04lark\x12C\n" +
"\bdingtalk\x18\x06 \x01(\v2%.bytebase.store.AppIMSetting.DingTalkH\x00R\bdingtalk\x12:\n" +
"\x05teams\x18\a \x01(\v2\".bytebase.store.AppIMSetting.TeamsH\x00R\x05teamsB\t\n" +
"\apayload\"\xd5\x02\n" +
"\tAISetting\x12\x18\n" +
"\aenabled\x18\x01 \x01(\bR\aenabled\x12>\n" +
"\bprovider\x18\x02 \x01(\x0e2\".bytebase.store.AISetting.ProviderR\bprovider\x12\x1a\n" +
"\bendpoint\x18\x03 \x01(\tR\bendpoint\x12\x17\n" +
"\aapi_key\x18\x04 \x01(\tR\x06apiKey\x12\x14\n" +
"\x05model\x18\x05 \x01(\tR\x05model\x12\x18\n" +
"\aversion\x18\x06 \x01(\tR\aversion\x12,\n" +
"\x12sql_review_enabled\x18\a \x01(\bR\x10sqlReviewEnabled\"[\n" +
"\bProvider\x12\x18\n" +
"\x14PROVIDER_UNSPECIFIED\x10\x00\x12\v\n" +
"\aOPEN_AI\x10\x01\x12\n" +
"\n" +
"\x06CLAUDE\x10\x02\x12\n" +
"\n" +
"\x06GEMINI\x10\x03\x12\x10\n" +
"\fAZURE_OPENAI\x10\x04\"\xe8\x02\n" +
"\x12EnvironmentSetting\x12R\n" +
"\fenvironments\x18\x01 \x03(\v2..bytebase.store.EnvironmentSetting.EnvironmentR\fenvironments\x1a\xfd\x01\n" +
"\vEnvironment\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\x03R\x04name\x12\x0e\n" +
"\x02id\x18\x02 \x01(\tR\x02id\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12L\n" +
"\x04tags\x18\x04 \x03(\v28.bytebase.store.EnvironmentSetting.Environment.TagsEntryR\x04tags\x12(\n" +
"\x05color\x18\x05 \x01(\v2\x12.google.type.ColorR\x05color\x1a7\n" +
"\tTagsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xd3\x05\n" +
"\fEmailSetting\x12\x12\n" +
"\x04from\x18\x01 \x01(\tR\x04from\x12\x1b\n" +
"\tfrom_name\x18\x02 \x01(\tR\bfromName\x125\n" +
"\x04type\x18\x03 \x01(\x0e2!.bytebase.store.EmailSetting.TypeR\x04type\x12=\n" +
"\x04smtp\x18\x04 \x01(\v2'.bytebase.store.EmailSetting.SMTPConfigH\x00R\x04smtp\x1a\xe9\x03\n" +
"\n" +
"SMTPConfig\x12\x12\n" +
"\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n" +
"\x04port\x18\x02 \x01(\x05R\x04port\x12\x1a\n" +
"\busername\x18\x03 \x01(\tR\busername\x12\x1a\n" +
"\bpassword\x18\x04 \x01(\tR\bpassword\x12R\n" +
"\n" +
"encryption\x18\x05 \x01(\x0e22.bytebase.store.EmailSetting.SMTPConfig.EncryptionR\n" +
"encryption\x12^\n" +
"\x0eauthentication\x18\x06 \x01(\x0e26.bytebase.store.EmailSetting.SMTPConfig.AuthenticationR\x0eauthentication\"X\n" +
"\n" +
"Encryption\x12\x1a\n" +
"\x16ENCRYPTION_UNSPECIFIED\x10\x00\x12\x13\n" +
"\x0fENCRYPTION_NONE\x10\x01\x12\f\n" +
"\bSTARTTLS\x10\x02\x12\v\n" +
"\aSSL_TLS\x10\x03\"m\n" +
"\x0eAuthentication\x12\x1e\n" +
"\x1aAUTHENTICATION_UNSPECIFIED\x10\x00\x12\x17\n" +
"\x13AUTHENTICATION_NONE\x10\x01\x12\t\n" +
"\x05PLAIN\x10\x02\x12\t\n" +
"\x05LOGIN\x10\x03\x12\f\n" +
"\bCRAM_MD5\x10\x04\"&\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
"\x04SMTP\x10\x01B\b\n" +
"\x06config*\xd8\x01\n" +
"\vSettingName\x12\x1c\n" +
"\x18SETTING_NAME_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
"\x06SYSTEM\x10\x01\x12\x15\n" +
"\x11WORKSPACE_PROFILE\x10\x02\x12\x16\n" +
"\x12WORKSPACE_APPROVAL\x10\x03\x12\n" +
"\n" +
"\x06APP_IM\x10\x04\x12\x06\n" +
"\x02AI\x10\x05\x12\x17\n" +
"\x13DATA_CLASSIFICATION\x10\x06\x12\x12\n" +
"\x0eSEMANTIC_TYPES\x10\a\x12\x0f\n" +
"\vENVIRONMENT\x10\b\x12\t\n" +
"\x05EMAIL\x10\t\x12\a\n" +
"\x03MCP\x10\n" +
"\x12\n" +
"\n" +
"\x06EXPORT\x10\vB\x8f\x01\n" +
"\x12com.bytebase.storeB\fSettingProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"
var (
file_store_setting_proto_rawDescOnce sync.Once
file_store_setting_proto_rawDescData []byte
)
func file_store_setting_proto_rawDescGZIP() []byte {
file_store_setting_proto_rawDescOnce.Do(func() {
file_store_setting_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_setting_proto_rawDesc), len(file_store_setting_proto_rawDesc)))
})
return file_store_setting_proto_rawDescData
}
var file_store_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 9)
var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 39)
var file_store_setting_proto_goTypes = []any{
(SettingName)(0), // 0: bytebase.store.SettingName
(WorkspaceProfileSetting_DatabaseChangeMode)(0), // 1: bytebase.store.WorkspaceProfileSetting.DatabaseChangeMode
(MCPSetting_Capability)(0), // 2: bytebase.store.MCPSetting.Capability
(WorkspaceApprovalSetting_Rule_Source)(0), // 3: bytebase.store.WorkspaceApprovalSetting.Rule.Source
(Algorithm_InnerOuterMask_MaskType)(0), // 4: bytebase.store.Algorithm.InnerOuterMask.MaskType
(AISetting_Provider)(0), // 5: bytebase.store.AISetting.Provider
(EmailSetting_Type)(0), // 6: bytebase.store.EmailSetting.Type
(EmailSetting_SMTPConfig_Encryption)(0), // 7: bytebase.store.EmailSetting.SMTPConfig.Encryption
(EmailSetting_SMTPConfig_Authentication)(0), // 8: bytebase.store.EmailSetting.SMTPConfig.Authentication
(*ExportSetting)(nil), // 9: bytebase.store.ExportSetting
(*SharePointSetting)(nil), // 10: bytebase.store.SharePointSetting
(*SystemSetting)(nil), // 11: bytebase.store.SystemSetting
(*WorkspaceProfileSetting)(nil), // 12: bytebase.store.WorkspaceProfileSetting
(*MCPSetting)(nil), // 13: bytebase.store.MCPSetting
(*SQLEditorThemeSetting)(nil), // 14: bytebase.store.SQLEditorThemeSetting
(*WorkspaceApprovalSetting)(nil), // 15: bytebase.store.WorkspaceApprovalSetting
(*DataClassificationSetting)(nil), // 16: bytebase.store.DataClassificationSetting
(*Algorithm)(nil), // 17: bytebase.store.Algorithm
(*SemanticTypeSetting)(nil), // 18: bytebase.store.SemanticTypeSetting
(*AppIMSetting)(nil), // 19: bytebase.store.AppIMSetting
(*AISetting)(nil), // 20: bytebase.store.AISetting
(*EnvironmentSetting)(nil), // 21: bytebase.store.EnvironmentSetting
(*EmailSetting)(nil), // 22: bytebase.store.EmailSetting
(*WorkspaceProfileSetting_Announcement)(nil), // 23: bytebase.store.WorkspaceProfileSetting.Announcement
(*WorkspaceProfileSetting_PasswordRestriction)(nil), // 24: bytebase.store.WorkspaceProfileSetting.PasswordRestriction
(*WorkspaceProfileSetting_Announcement_AnnouncementTheme)(nil), // 25: bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme
nil, // 26: bytebase.store.SQLEditorThemeSetting.TokensEntry
(*WorkspaceApprovalSetting_Rule)(nil), // 27: bytebase.store.WorkspaceApprovalSetting.Rule
(*DataClassificationSetting_DataClassificationConfig)(nil), // 28: bytebase.store.DataClassificationSetting.DataClassificationConfig
(*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 29: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
(*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 30: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
nil, // 31: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
(*Algorithm_FullMask)(nil), // 32: bytebase.store.Algorithm.FullMask
(*Algorithm_RangeMask)(nil), // 33: bytebase.store.Algorithm.RangeMask
(*Algorithm_MD5Mask)(nil), // 34: bytebase.store.Algorithm.MD5Mask
(*Algorithm_InnerOuterMask)(nil), // 35: bytebase.store.Algorithm.InnerOuterMask
(*Algorithm_RangeMask_Slice)(nil), // 36: bytebase.store.Algorithm.RangeMask.Slice
(*SemanticTypeSetting_SemanticType)(nil), // 37: bytebase.store.SemanticTypeSetting.SemanticType
(*AppIMSetting_Slack)(nil), // 38: bytebase.store.AppIMSetting.Slack
(*AppIMSetting_Feishu)(nil), // 39: bytebase.store.AppIMSetting.Feishu
(*AppIMSetting_Wecom)(nil), // 40: bytebase.store.AppIMSetting.Wecom
(*AppIMSetting_Lark)(nil), // 41: bytebase.store.AppIMSetting.Lark
(*AppIMSetting_DingTalk)(nil), // 42: bytebase.store.AppIMSetting.DingTalk
(*AppIMSetting_Teams)(nil), // 43: bytebase.store.AppIMSetting.Teams
(*AppIMSetting_IMSetting)(nil), // 44: bytebase.store.AppIMSetting.IMSetting
(*EnvironmentSetting_Environment)(nil), // 45: bytebase.store.EnvironmentSetting.Environment
nil, // 46: bytebase.store.EnvironmentSetting.Environment.TagsEntry
(*EmailSetting_SMTPConfig)(nil), // 47: bytebase.store.EmailSetting.SMTPConfig
(*durationpb.Duration)(nil), // 48: google.protobuf.Duration
(*color.Color)(nil), // 49: google.type.Color
(*ApprovalTemplate)(nil), // 50: bytebase.store.ApprovalTemplate
(*expr.Expr)(nil), // 51: google.type.Expr
(WebhookType)(0), // 52: bytebase.store.WebhookType
}
var file_store_setting_proto_depIdxs = []int32{
10, // 0: bytebase.store.ExportSetting.sharepoint:type_name -> bytebase.store.SharePointSetting
48, // 1: bytebase.store.WorkspaceProfileSetting.refresh_token_duration:type_name -> google.protobuf.Duration
23, // 2: bytebase.store.WorkspaceProfileSetting.announcement:type_name -> bytebase.store.WorkspaceProfileSetting.Announcement
48, // 3: bytebase.store.WorkspaceProfileSetting.maximum_request_expiration:type_name -> google.protobuf.Duration
1, // 4: bytebase.store.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.store.WorkspaceProfileSetting.DatabaseChangeMode
48, // 5: bytebase.store.WorkspaceProfileSetting.inactive_session_timeout:type_name -> google.protobuf.Duration
24, // 6: bytebase.store.WorkspaceProfileSetting.password_restriction:type_name -> bytebase.store.WorkspaceProfileSetting.PasswordRestriction
48, // 7: bytebase.store.WorkspaceProfileSetting.access_token_duration:type_name -> google.protobuf.Duration
48, // 8: bytebase.store.WorkspaceProfileSetting.query_timeout:type_name -> google.protobuf.Duration
14, // 9: bytebase.store.WorkspaceProfileSetting.sql_editor_custom_theme:type_name -> bytebase.store.SQLEditorThemeSetting
48, // 10: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
2, // 11: bytebase.store.MCPSetting.capability:type_name -> bytebase.store.MCPSetting.Capability
26, // 12: bytebase.store.SQLEditorThemeSetting.tokens:type_name -> bytebase.store.SQLEditorThemeSetting.TokensEntry
27, // 13: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule
28, // 14: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig
32, // 15: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask
33, // 16: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask
34, // 17: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask
35, // 18: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask
37, // 19: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
44, // 20: bytebase.store.AppIMSetting.settings:type_name -> bytebase.store.AppIMSetting.IMSetting
5, // 21: bytebase.store.AISetting.provider:type_name -> bytebase.store.AISetting.Provider
45, // 22: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment
6, // 23: bytebase.store.EmailSetting.type:type_name -> bytebase.store.EmailSetting.Type
47, // 24: bytebase.store.EmailSetting.smtp:type_name -> bytebase.store.EmailSetting.SMTPConfig
25, // 25: bytebase.store.WorkspaceProfileSetting.Announcement.theme:type_name -> bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme
48, // 26: bytebase.store.WorkspaceProfileSetting.PasswordRestriction.password_rotation:type_name -> google.protobuf.Duration
49, // 27: bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme.background:type_name -> google.type.Color
49, // 28: bytebase.store.WorkspaceProfileSetting.Announcement.AnnouncementTheme.text:type_name -> google.type.Color
49, // 29: bytebase.store.SQLEditorThemeSetting.TokensEntry.value:type_name -> google.type.Color
50, // 30: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
51, // 31: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
3, // 32: bytebase.store.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule.Source
29, // 33: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
31, // 34: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
30, // 35: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
36, // 36: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice
4, // 37: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType
17, // 38: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm
52, // 39: bytebase.store.AppIMSetting.IMSetting.type:type_name -> bytebase.store.WebhookType
38, // 40: bytebase.store.AppIMSetting.IMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack
39, // 41: bytebase.store.AppIMSetting.IMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu
40, // 42: bytebase.store.AppIMSetting.IMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom
41, // 43: bytebase.store.AppIMSetting.IMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark
42, // 44: bytebase.store.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk
43, // 45: bytebase.store.AppIMSetting.IMSetting.teams:type_name -> bytebase.store.AppIMSetting.Teams
46, // 46: bytebase.store.EnvironmentSetting.Environment.tags:type_name -> bytebase.store.EnvironmentSetting.Environment.TagsEntry
49, // 47: bytebase.store.EnvironmentSetting.Environment.color:type_name -> google.type.Color
7, // 48: bytebase.store.EmailSetting.SMTPConfig.encryption:type_name -> bytebase.store.EmailSetting.SMTPConfig.Encryption
8, // 49: bytebase.store.EmailSetting.SMTPConfig.authentication:type_name -> bytebase.store.EmailSetting.SMTPConfig.Authentication
50, // [50:50] is the sub-list for method output_type
50, // [50:50] is the sub-list for method input_type
50, // [50:50] is the sub-list for extension type_name
50, // [50:50] is the sub-list for extension extendee
0, // [0:50] is the sub-list for field type_name
}
func init() { file_store_setting_proto_init() }
func file_store_setting_proto_init() {
if File_store_setting_proto != nil {
return
}
file_store_approval_proto_init()
file_store_common_proto_init()
file_store_setting_proto_msgTypes[8].OneofWrappers = []any{
(*Algorithm_FullMask_)(nil),
(*Algorithm_RangeMask_)(nil),
(*Algorithm_Md5Mask)(nil),
(*Algorithm_InnerOuterMask_)(nil),
}
file_store_setting_proto_msgTypes[13].OneofWrappers = []any{
(*EmailSetting_Smtp)(nil),
}
file_store_setting_proto_msgTypes[21].OneofWrappers = []any{}
file_store_setting_proto_msgTypes[35].OneofWrappers = []any{
(*AppIMSetting_IMSetting_Slack)(nil),
(*AppIMSetting_IMSetting_Feishu)(nil),
(*AppIMSetting_IMSetting_Wecom)(nil),
(*AppIMSetting_IMSetting_Lark)(nil),
(*AppIMSetting_IMSetting_Dingtalk)(nil),
(*AppIMSetting_IMSetting_Teams)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_setting_proto_rawDesc), len(file_store_setting_proto_rawDesc)),
NumEnums: 9,
NumMessages: 39,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_store_setting_proto_goTypes,
DependencyIndexes: file_store_setting_proto_depIdxs,
EnumInfos: file_store_setting_proto_enumTypes,
MessageInfos: file_store_setting_proto_msgTypes,
}.Build()
File_store_setting_proto = out.File
file_store_setting_proto_goTypes = nil
file_store_setting_proto_depIdxs = nil
}