Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: password validation setting (#13726)

ecmadao2729c360bd4a
diff --git a/backend/api/directory-sync/webhook.go b/backend/api/directory-sync/webhook.go
index 2fb8316694..2b5658eebc 100644
--- a/backend/api/directory-sync/webhook.go
+++ b/backend/api/directory-sync/webhook.go
@@ -531,10 +531,7 @@ func (s *Service) validRequestURL(ctx context.Context, c echo.Context) error {
return errors.Errorf("invalid workspace id %q, my ID %q", workspaceID, myWorkspaceID)
}
- scimSettingName := api.SettingSCIM
- scimSetting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &scimSettingName,
- })
+ scimSetting, err := s.store.GetSettingV2(ctx, api.SettingSCIM)
if err != nil {
return errors.Wrapf(err, "failed to find scim setting")
}
diff --git a/backend/api/v1/actuator_service.go b/backend/api/v1/actuator_service.go
index 0d5eb1f87f..f8431cdd21 100644
--- a/backend/api/v1/actuator_service.go
+++ b/backend/api/v1/actuator_service.go
@@ -69,15 +69,12 @@ func (s *ActuatorService) DeleteCache(_ context.Context, _ *v1pb.DeleteCacheRequ
// GetResourcePackage gets the theme resources.
func (s *ActuatorService) GetResourcePackage(ctx context.Context, _ *v1pb.GetResourcePackageRequest) (*v1pb.ResourcePackage, error) {
- settingName := api.SettingBrandingLogo
- brandingSetting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &settingName,
- })
+ brandingSetting, err := s.store.GetSettingV2(ctx, api.SettingBrandingLogo)
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to find workspace branding: %v", err)
}
if brandingSetting == nil {
- return nil, errors.Errorf("cannot find setting %v", settingName)
+ return nil, errors.Errorf("cannot find setting %v", api.SettingBrandingLogo)
}
return &v1pb.ResourcePackage{
@@ -147,8 +144,7 @@ func (s *ActuatorService) getUsedFeatures(ctx context.Context) ([]api.FeatureTyp
}
// setting
- settingName := api.SettingBrandingLogo
- brandingLogo, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &settingName})
+ brandingLogo, err := s.store.GetSettingV2(ctx, api.SettingBrandingLogo)
if err != nil {
return nil, errors.Wrapf(err, "failed to get branding logo setting")
}
@@ -156,8 +152,7 @@ func (s *ActuatorService) getUsedFeatures(ctx context.Context) ([]api.FeatureTyp
features = append(features, api.FeatureBranding)
}
- settingName = api.SettingWatermark
- watermark, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &settingName})
+ watermark, err := s.store.GetSettingV2(ctx, api.SettingWatermark)
if err != nil {
return nil, errors.Wrapf(err, "failed to get watermark setting")
}
@@ -165,8 +160,7 @@ func (s *ActuatorService) getUsedFeatures(ctx context.Context) ([]api.FeatureTyp
features = append(features, api.FeatureWatermark)
}
- settingName = api.SettingPluginOpenAIKey
- openAIKey, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &settingName})
+ openAIKey, err := s.store.GetSettingV2(ctx, api.SettingPluginOpenAIKey)
if err != nil {
return nil, errors.Wrapf(err, "failed to get openai key setting")
}
diff --git a/backend/api/v1/auth_service.go b/backend/api/v1/auth_service.go
index 41c68c8ad1..087326b1b7 100644
--- a/backend/api/v1/auth_service.go
+++ b/backend/api/v1/auth_service.go
@@ -11,7 +11,6 @@ import (
"github.com/pkg/errors"
- "github.com/dlclark/regexp2"
"github.com/pquerna/otp/totp"
"golang.org/x/crypto/bcrypt"
"google.golang.org/grpc"
@@ -43,7 +42,6 @@ type CreateUserFunc func(ctx context.Context, user *store.UserMessage, firstEndU
var (
invalidUserOrPasswordError = status.Errorf(codes.Unauthenticated, "The email or password is not valid.")
- passwordValidRegex = regexp2.MustCompile(`^(?=.*\d)(?=.*[a-zA-Z])[\w~@#$%^&*+=|{}:;!.?\"()\[\]-]{8,}$`, 0)
)
// AuthService implements the auth service.
@@ -188,9 +186,10 @@ func (s *AuthService) CreateUser(ctx context.Context, request *v1pb.CreateUserRe
}
password := request.User.Password
- if isMatch, _ := passwordValidRegex.MatchString(password); !isMatch {
- return nil, status.Errorf(codes.InvalidArgument, "password at least contains one letter and one number, no less than 8 characters")
+ if err := s.validatePassword(ctx, password); err != nil {
+ return nil, err
}
+
if request.User.UserType == v1pb.UserType_SERVICE_ACCOUNT {
pwd, err := common.RandomString(20)
if err != nil {
@@ -258,6 +257,37 @@ func (s *AuthService) CreateUser(ctx context.Context, request *v1pb.CreateUserRe
return userResponse, nil
}
+func (s *AuthService) validatePassword(ctx context.Context, password string) error {
+ passwordSetting := &storepb.PasswordRestrictionSetting{
+ MinLength: 8,
+ }
+ setting, err := s.store.GetSettingV2(ctx, api.SettingPasswordRestriction)
+ if err != nil {
+ return status.Errorf(codes.Internal, "failed to get setting %v with error: %v", api.SettingPasswordRestriction, err)
+ }
+ if setting != nil {
+ if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), passwordSetting); err != nil {
+ return status.Errorf(codes.Internal, "failed to unmarshal setting %v with error: %v", api.SettingPasswordRestriction, err)
+ }
+ }
+ if len(password) < int(passwordSetting.MinLength) {
+ return status.Errorf(codes.InvalidArgument, "password length should no less than %v characters", passwordSetting.MinLength)
+ }
+ if passwordSetting.RequireNumber && !regexp.MustCompile("[0-9]+").MatchString(password) {
+ return status.Errorf(codes.InvalidArgument, "password must contains at least 1 number")
+ }
+ if passwordSetting.RequireLetter && !regexp.MustCompile("[a-zA-Z]+").MatchString(password) {
+ return status.Errorf(codes.InvalidArgument, "password must contains at least 1 lower case letter")
+ }
+ if passwordSetting.RequireUppercaseLetter && !regexp.MustCompile("[A-Z]+").MatchString(password) {
+ return status.Errorf(codes.InvalidArgument, "password must contains at least 1 upper case letter")
+ }
+ if passwordSetting.RequireSpecialCharacter && !regexp.MustCompile(`[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+`).MatchString(password) {
+ return status.Errorf(codes.InvalidArgument, "password must contains at least 1 special character")
+ }
+ return nil
+}
+
// UpdateUser updates a user.
func (s *AuthService) UpdateUser(ctx context.Context, request *v1pb.UpdateUserRequest) (*v1pb.User, error) {
callerUser, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)
@@ -327,8 +357,8 @@ func (s *AuthService) UpdateUser(ctx context.Context, request *v1pb.UpdateUserRe
if user.Type != api.EndUser {
return nil, status.Errorf(codes.InvalidArgument, "password can be mutated for end users only")
}
- if isMatch, _ := passwordValidRegex.MatchString(request.User.Password); !isMatch {
- return nil, status.Errorf(codes.InvalidArgument, "password at least contains one letter and one number, no less than 8 characters")
+ if err := s.validatePassword(ctx, request.User.Password); err != nil {
+ return nil, err
}
passwordPatch = &request.User.Password
case "service_key":
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index 73d995d68c..9141fd68ea 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -2084,16 +2084,14 @@ func (s *DatabaseService) pgAdviseIndex(ctx context.Context, request *v1pb.Advis
}
func (s *DatabaseService) getOpenAISetting(ctx context.Context) (string, string, error) {
- openaiKeyName := api.SettingPluginOpenAIKey
- key, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &openaiKeyName})
+ key, err := s.store.GetSettingV2(ctx, api.SettingPluginOpenAIKey)
if err != nil {
return "", "", status.Errorf(codes.Internal, "Failed to get setting: %v", err)
}
if key.Value == "" {
return "", "", status.Errorf(codes.FailedPrecondition, "OpenAI key is not set")
}
- openaiEndpointName := api.SettingPluginOpenAIEndpoint
- endpointSetting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &openaiEndpointName})
+ endpointSetting, err := s.store.GetSettingV2(ctx, api.SettingPluginOpenAIEndpoint)
if err != nil {
return "", "", status.Errorf(codes.Internal, "Failed to get setting: %v", err)
}
diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.go
index 1e8a9eff00..ac47e99df5 100644
--- a/backend/api/v1/setting_service.go
+++ b/backend/api/v1/setting_service.go
@@ -77,6 +77,7 @@ var whitelistSettings = []api.SettingName{
api.SettingMaskingAlgorithm,
api.SettingSQLResultSizeLimit,
api.SettingSCIM,
+ api.SettingPasswordRestriction,
}
var preservedMaskingAlgorithmIDMatcher = regexp.MustCompile("^[0]{8}-[0]{4}-[0]{4}-[0]{4}-[0]{9}[0-9a-fA-F]{3}$")
@@ -121,9 +122,7 @@ func (s *SettingService) GetSetting(ctx context.Context, request *v1pb.GetSettin
return nil, status.Errorf(codes.InvalidArgument, "setting is not available")
}
- setting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &apiSettingName,
- })
+ setting, err := s.store.GetSettingV2(ctx, apiSettingName)
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to get setting: %v", err)
}
@@ -156,10 +155,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.Update
return nil, status.Errorf(codes.InvalidArgument, "feature %s is unavailable in current mode", settingName)
}
apiSettingName := api.SettingName(settingName)
-
- existedSetting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &apiSettingName,
- })
+ existedSetting, err := s.store.GetSettingV2(ctx, apiSettingName)
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to find setting %s with error: %v", settingName, err)
}
@@ -339,9 +335,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.Update
apiValue := request.Setting.Value.GetSmtpMailDeliverySettingValue()
// We will fill the password read from the store if it is not set.
if apiValue.Password == nil {
- oldStoreSetting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &apiSettingName,
- })
+ oldStoreSetting, err := s.store.GetSettingV2(ctx, apiSettingName)
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to get setting %q: %v", apiSettingName, err)
}
@@ -625,6 +619,19 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.Update
return nil, status.Errorf(codes.Internal, "failed to marshal SCIM setting with error: %v", err)
}
storeSettingValue = string(bytes)
+ case api.SettingPasswordRestriction:
+ passwordSetting := new(storepb.PasswordRestrictionSetting)
+ if err := convertV1PbToStorePb(request.Setting.Value.GetPasswordRestrictionSetting(), passwordSetting); err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)
+ }
+ if passwordSetting.MinLength < 8 {
+ return nil, status.Errorf(codes.InvalidArgument, "invalid password minimum length, should no less than 8")
+ }
+ bytes, err := protojson.Marshal(passwordSetting)
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to marshal setting for %s with error: %v", apiSettingName, err)
+ }
+ storeSettingValue = string(bytes)
default:
storeSettingValue = request.Setting.Value.GetStringValue()
}
@@ -882,6 +889,19 @@ func (s *SettingService) convertToSettingMessage(ctx context.Context, setting *s
},
},
}, nil
+ case api.SettingPasswordRestriction:
+ v1Value := new(v1pb.PasswordRestrictionSetting)
+ if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), v1Value); err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", setting.Name, err)
+ }
+ return &v1pb.Setting{
+ Name: settingName,
+ Value: &v1pb.Value{
+ Value: &v1pb.Value_PasswordRestrictionSetting{
+ PasswordRestrictionSetting: v1Value,
+ },
+ },
+ }, nil
default:
return &v1pb.Setting{
Name: settingName,
@@ -895,12 +915,9 @@ func (s *SettingService) convertToSettingMessage(ctx context.Context, setting *s
}
func (s *SettingService) validateSchemaTemplate(ctx context.Context, schemaTemplateSetting *v1pb.SchemaTemplateSetting) error {
- settingName := api.SettingSchemaTemplate
- oldStoreSetting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &settingName,
- })
+ oldStoreSetting, err := s.store.GetSettingV2(ctx, api.SettingSchemaTemplate)
if err != nil {
- return status.Errorf(codes.Internal, "failed to get setting %q: %v", settingName, err)
+ return status.Errorf(codes.Internal, "failed to get setting %q: %v", api.SettingSchemaTemplate, err)
}
settingValue := "{}"
if oldStoreSetting != nil {
@@ -909,7 +926,7 @@ func (s *SettingService) validateSchemaTemplate(ctx context.Context, schemaTempl
value := new(storepb.SchemaTemplateSetting)
if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(settingValue), value); err != nil {
- return status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", settingName, err)
+ return status.Errorf(codes.Internal, "failed to unmarshal setting value for %v with error: %v", api.SettingSchemaTemplate, err)
}
v1Value, err := convertSchemaTemplateSetting(ctx, value)
if err != nil {
@@ -1018,19 +1035,12 @@ func (s *SettingService) sendTestEmail(ctx context.Context, value *v1pb.SMTPMail
}
consoleRedirectURL := "www.bytebase.com"
- workspaceProfileSettingName := api.SettingWorkspaceProfile
- setting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &workspaceProfileSettingName})
+ setting, err := s.store.GetWorkspaceGeneralSetting(ctx)
if err != nil {
return status.Errorf(codes.Internal, "failed to get workspace profile setting: %v", err)
}
- if setting != nil {
- settingValue := new(storepb.WorkspaceProfileSetting)
- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), settingValue); err != nil {
- return status.Errorf(codes.Internal, "failed to unmarshal setting value: %v", err)
- }
- if settingValue.ExternalUrl != "" {
- consoleRedirectURL = settingValue.ExternalUrl
- }
+ if setting.ExternalUrl != "" {
+ consoleRedirectURL = setting.ExternalUrl
}
email := mail.NewEmailMsg()
diff --git a/backend/enterprise/plugin/hub/hub.go b/backend/enterprise/plugin/hub/hub.go
index aab89e9e56..419c9cb672 100644
--- a/backend/enterprise/plugin/hub/hub.go
+++ b/backend/enterprise/plugin/hub/hub.go
@@ -154,10 +154,7 @@ func (p *Provider) parseLicense(ctx context.Context, license string) (*enterpris
func (p *Provider) findEnterpriseLicense(ctx context.Context) (*enterprise.License, error) {
// Find enterprise license.
- settingName := api.SettingEnterpriseLicense
- setting, err := p.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := p.store.GetSettingV2(ctx, api.SettingEnterpriseLicense)
if err != nil {
return nil, errors.Wrapf(err, "failed to load enterprise license from settings")
}
diff --git a/backend/enterprise/plugin/hub/remote_provider.go b/backend/enterprise/plugin/hub/remote_provider.go
index 4fd6e10cc7..c5036640a0 100644
--- a/backend/enterprise/plugin/hub/remote_provider.go
+++ b/backend/enterprise/plugin/hub/remote_provider.go
@@ -64,10 +64,7 @@ func (p *remoteLicenseProvider) FetchLicense(ctx context.Context) (string, error
return "", nil
}
- settingName := api.SettingPluginAgent
- setting, err := p.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := p.store.GetSettingV2(ctx, api.SettingPluginAgent)
if err != nil {
return "", errors.Wrapf(err, "failed to find the hub token from settings")
}
diff --git a/backend/legacyapi/setting.go b/backend/legacyapi/setting.go
index 7992e16b78..b5cb6a7b1c 100644
--- a/backend/legacyapi/setting.go
+++ b/backend/legacyapi/setting.go
@@ -44,4 +44,6 @@ const (
SettingSQLResultSizeLimit SettingName = "bb.workspace.maximum-sql-result-size"
// SettingSCIM is the setting name for SCIM config.
SettingSCIM SettingName = "bb.workspace.scim"
+ // SettingPasswordRestriction is the setting name for password.
+ SettingPasswordRestriction SettingName = "bb.workspace.password-restriction"
)
diff --git a/backend/runner/mail/slow_query_weekly_mail.go b/backend/runner/mail/slow_query_weekly_mail.go
index e14ba7e4eb..8c6ad95658 100644
--- a/backend/runner/mail/slow_query_weekly_mail.go
+++ b/backend/runner/mail/slow_query_weekly_mail.go
@@ -87,8 +87,7 @@ func (s *SlowQueryWeeklyMailSender) Run(ctx context.Context, wg *sync.WaitGroup)
}
func (s *SlowQueryWeeklyMailSender) sendEmail(ctx context.Context, now time.Time) {
- name := api.SettingWorkspaceMailDelivery
- mailSetting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &name})
+ mailSetting, err := s.store.GetSettingV2(ctx, api.SettingWorkspaceMailDelivery)
if err != nil {
slog.Error("Failed to get mail setting", log.BBError(err))
return
@@ -105,21 +104,13 @@ func (s *SlowQueryWeeklyMailSender) sendEmail(ctx context.Context, now time.Time
}
consoleRedirectURL := "www.bytebase.com"
- workspaceProfileSettingName := api.SettingWorkspaceProfile
- setting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &workspaceProfileSettingName})
+ setting, err := s.store.GetWorkspaceGeneralSetting(ctx)
if err != nil {
slog.Error("Failed to get workspace profile setting", log.BBError(err))
return
}
- if setting != nil {
- settingValue := new(storepb.WorkspaceProfileSetting)
- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), settingValue); err != nil {
- slog.Error("Failed to unmarshal setting value", log.BBError(err))
- return
- }
- if settingValue.ExternalUrl != "" {
- consoleRedirectURL = settingValue.ExternalUrl
- }
+ if setting.ExternalUrl != "" {
+ consoleRedirectURL = setting.ExternalUrl
}
slowQueryPolicyType := api.PolicyTypeSlowQuery
diff --git a/backend/server/init.go b/backend/server/init.go
index 4c2443bfe8..77a33ec766 100644
--- a/backend/server/init.go
+++ b/backend/server/init.go
@@ -65,7 +65,7 @@ func (s *Server) getInitSetting(ctx context.Context) (string, time.Duration, err
Token: scimToken,
})
if err != nil {
- return "", 0, errors.Wrap(err, "failed to marshal initial schema template setting")
+ return "", 0, errors.Wrap(err, "failed to marshal initial scim setting")
}
if _, _, err := s.store.CreateSettingIfNotExistV2(ctx, &store.SettingMessage{
Name: api.SettingSCIM,
@@ -75,6 +75,26 @@ func (s *Server) getInitSetting(ctx context.Context) (string, time.Duration, err
return "", 0, err
}
+ // Init password validation
+ passwordSettingValue, err := protojson.Marshal(&storepb.PasswordRestrictionSetting{
+ MinLength: 8,
+ RequireNumber: true,
+ RequireLetter: true,
+ RequireUppercaseLetter: false,
+ RequireSpecialCharacter: false,
+ RequireResetPasswordForFirstLogin: false,
+ })
+ if err != nil {
+ return "", 0, errors.Wrap(err, "failed to marshal initial password validation setting")
+ }
+ if _, _, err := s.store.CreateSettingIfNotExistV2(ctx, &store.SettingMessage{
+ Name: api.SettingPasswordRestriction,
+ Value: string(passwordSettingValue),
+ Description: "The password validation",
+ }, api.SystemBotID); err != nil {
+ return "", 0, err
+ }
+
// initial license
if _, _, err = s.store.CreateSettingIfNotExistV2(ctx, &store.SettingMessage{
Name: api.SettingEnterpriseLicense,
@@ -173,11 +193,7 @@ func (s *Server) getInitSetting(ctx context.Context) (string, time.Duration, err
}
// initial workspace profile setting
- settingName := api.SettingWorkspaceProfile
- workspaceProfileSetting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{
- Name: &settingName,
- Enforce: true,
- })
+ workspaceProfileSetting, err := s.store.GetSettingV2(ctx, api.SettingWorkspaceProfile)
if err != nil {
return "", 0, err
}
@@ -228,8 +244,7 @@ func (s *Server) getInitSetting(ctx context.Context) (string, time.Duration, err
}
// Get token duration and external URL.
- workspaceProfileSettingName := api.SettingWorkspaceProfile
- setting, err := s.store.GetSettingV2(ctx, &store.FindSettingMessage{Name: &workspaceProfileSettingName})
+ setting, err := s.store.GetSettingV2(ctx, api.SettingWorkspaceProfile)
if err != nil {
return "", 0, err
}
diff --git a/backend/store/setting.go b/backend/store/setting.go
index 2887c5ecce..d79199d997 100644
--- a/backend/store/setting.go
+++ b/backend/store/setting.go
@@ -18,8 +18,7 @@ import (
// FindSettingMessage is the message for finding setting.
type FindSettingMessage struct {
- Name *api.SettingName
- Enforce bool
+ Name *api.SettingName
}
// SetSettingMessage is the message for updating setting.
@@ -38,13 +37,9 @@ type SettingMessage struct {
}
func (s *Store) GetMaximumSQLResultLimit(ctx context.Context) int64 {
- settingName := api.SettingSQLResultSizeLimit
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- Enforce: true,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingSQLResultSizeLimit)
if err != nil {
- slog.Error("failed to get setting", slog.String("setting", string(settingName)), log.BBError(err))
+ slog.Error("failed to get setting", slog.String("setting", string(api.SettingSQLResultSizeLimit)), log.BBError(err))
return common.DefaultMaximumSQLResultSize
}
if setting == nil {
@@ -53,7 +48,7 @@ func (s *Store) GetMaximumSQLResultLimit(ctx context.Context) int64 {
payload := new(storepb.MaximumSQLResultSizeSetting)
if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), payload); err != nil {
- slog.Error("failed to unmarshaler setting", slog.String("setting", string(settingName)), log.BBError(err))
+ slog.Error("failed to unmarshaler setting", slog.String("setting", string(api.SettingSQLResultSizeLimit)), log.BBError(err))
return common.DefaultMaximumSQLResultSize
}
if payload.Limit <= 0 {
@@ -64,16 +59,12 @@ func (s *Store) GetMaximumSQLResultLimit(ctx context.Context) int64 {
// GetWorkspaceGeneralSetting gets the workspace general setting payload.
func (s *Store) GetWorkspaceGeneralSetting(ctx context.Context) (*storepb.WorkspaceProfileSetting, error) {
- settingName := api.SettingWorkspaceProfile
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- Enforce: true,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingWorkspaceProfile)
if err != nil {
- return nil, errors.Wrapf(err, "failed to get setting %s", settingName)
+ return nil, errors.Wrapf(err, "failed to get setting %v", api.SettingWorkspaceProfile)
}
if setting == nil {
- return nil, errors.Errorf("cannot find setting %v", settingName)
+ return nil, errors.Errorf("cannot find setting %v", api.SettingWorkspaceProfile)
}
payload := new(storepb.WorkspaceProfileSetting)
@@ -84,15 +75,12 @@ func (s *Store) GetWorkspaceGeneralSetting(ctx context.Context) (*storepb.Worksp
}
func (s *Store) GetAppIMSetting(ctx context.Context) (*storepb.AppIMSetting, error) {
- settingName := api.SettingAppIM
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingAppIM)
if err != nil {
- return nil, errors.Wrapf(err, "failed to get setting %s", settingName)
+ return nil, errors.Wrapf(err, "failed to get setting %v", api.SettingAppIM)
}
if setting == nil {
- return nil, errors.Errorf("cannot find setting %v", settingName)
+ return nil, errors.Errorf("cannot find setting %v", api.SettingAppIM)
}
payload := new(storepb.AppIMSetting)
@@ -104,30 +92,24 @@ func (s *Store) GetAppIMSetting(ctx context.Context) (*storepb.AppIMSetting, err
// GetWorkspaceID finds the workspace id in setting bb.workspace.id.
func (s *Store) GetWorkspaceID(ctx context.Context) (string, error) {
- settingName := api.SettingWorkspaceID
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingWorkspaceID)
if err != nil {
- return "", errors.Wrapf(err, "failed to get setting %s", settingName)
+ return "", errors.Wrapf(err, "failed to get setting %v", api.SettingWorkspaceID)
}
if setting == nil {
- return "", errors.Errorf("cannot find setting %v", settingName)
+ return "", errors.Errorf("cannot find setting %v", api.SettingWorkspaceID)
}
return setting.Value, nil
}
// GetWorkspaceApprovalSetting gets the workspace approval setting.
func (s *Store) GetWorkspaceApprovalSetting(ctx context.Context) (*storepb.WorkspaceApprovalSetting, error) {
- settingName := api.SettingWorkspaceApproval
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingWorkspaceApproval)
if err != nil {
- return nil, errors.Wrapf(err, "failed to get setting %s", settingName)
+ return nil, errors.Wrapf(err, "failed to get setting %v", api.SettingWorkspaceApproval)
}
if setting == nil {
- return nil, errors.Errorf("cannot find setting %v", settingName)
+ return nil, errors.Errorf("cannot find setting %v", api.SettingWorkspaceApproval)
}
payload := new(storepb.WorkspaceApprovalSetting)
@@ -139,15 +121,12 @@ func (s *Store) GetWorkspaceApprovalSetting(ctx context.Context) (*storepb.Works
// GetWorkspaceExternalApprovalSetting gets the workspace external approval setting.
func (s *Store) GetWorkspaceExternalApprovalSetting(ctx context.Context) (*storepb.ExternalApprovalSetting, error) {
- settingName := api.SettingWorkspaceExternalApproval
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingWorkspaceExternalApproval)
if err != nil {
- return nil, errors.Wrapf(err, "failed to get setting %s", settingName)
+ return nil, errors.Wrapf(err, "failed to get setting %v", api.SettingWorkspaceExternalApproval)
}
if setting == nil {
- return nil, errors.Errorf("cannot find setting %v", settingName)
+ return nil, errors.Errorf("cannot find setting %v", api.SettingWorkspaceExternalApproval)
}
payload := new(storepb.ExternalApprovalSetting)
@@ -159,12 +138,9 @@ func (s *Store) GetWorkspaceExternalApprovalSetting(ctx context.Context) (*store
// GetMaskingAlgorithmSetting gets the masking algorithm setting.
func (s *Store) GetMaskingAlgorithmSetting(ctx context.Context) (*storepb.MaskingAlgorithmSetting, error) {
- settingName := api.SettingMaskingAlgorithm
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingMaskingAlgorithm)
if err != nil {
- return nil, errors.Wrapf(err, "failed to get setting %s", settingName)
+ return nil, errors.Wrapf(err, "failed to get setting %v", api.SettingMaskingAlgorithm)
}
if setting == nil {
return &storepb.MaskingAlgorithmSetting{}, nil
@@ -179,12 +155,9 @@ func (s *Store) GetMaskingAlgorithmSetting(ctx context.Context) (*storepb.Maskin
// GetSemanticTypesSetting gets the semantic types setting.
func (s *Store) GetSemanticTypesSetting(ctx context.Context) (*storepb.SemanticTypeSetting, error) {
- settingName := api.SettingSemanticTypes
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingSemanticTypes)
if err != nil {
- return nil, errors.Wrapf(err, "failed to get setting %s", settingName)
+ return nil, errors.Wrapf(err, "failed to get setting %v", api.SettingSemanticTypes)
}
if setting == nil {
return &storepb.SemanticTypeSetting{}, nil
@@ -199,12 +172,9 @@ func (s *Store) GetSemanticTypesSetting(ctx context.Context) (*storepb.SemanticT
// GetDataClassificationSetting gets the data classification setting.
func (s *Store) GetDataClassificationSetting(ctx context.Context) (*storepb.DataClassificationSetting, error) {
- settingName := api.SettingDataClassification
- setting, err := s.GetSettingV2(ctx, &FindSettingMessage{
- Name: &settingName,
- })
+ setting, err := s.GetSettingV2(ctx, api.SettingDataClassification)
if err != nil {
- return nil, errors.Wrapf(err, "failed to get setting %s", settingName)
+ return nil, errors.Wrapf(err, "failed to get setting %v", api.SettingDataClassification)
}
if setting == nil {
return &storepb.DataClassificationSetting{}, nil
@@ -240,11 +210,9 @@ func (s *Store) DeleteCache() {
}
// GetSettingV2 returns the setting by name.
-func (s *Store) GetSettingV2(ctx context.Context, find *FindSettingMessage) (*SettingMessage, error) {
- if find.Name != nil && !find.Enforce {
- if v, ok := s.settingCache.Get(*find.Name); ok {
- return v, nil
- }
+func (s *Store) GetSettingV2(ctx context.Context, name api.SettingName) (*SettingMessage, error) {
+ if v, ok := s.settingCache.Get(name); ok {
+ return v, nil
}
tx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})
@@ -253,7 +221,9 @@ func (s *Store) GetSettingV2(ctx context.Context, find *FindSettingMessage) (*Se
}
defer tx.Rollback()
- settings, err := listSettingV2Impl(ctx, tx, find)
+ settings, err := listSettingV2Impl(ctx, tx, &FindSettingMessage{
+ Name: &name,
+ })
if err != nil {
return nil, errors.Wrap(err, "failed to list setting")
}
@@ -261,7 +231,7 @@ func (s *Store) GetSettingV2(ctx context.Context, find *FindSettingMessage) (*Se
return nil, nil
}
if len(settings) > 1 {
- return nil, errors.Errorf("found multiple settings: %v", find.Name)
+ return nil, errors.Errorf("found multiple settings: %v", name)
}
if err := tx.Commit(); err != nil {
diff --git a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
index d8ea2af5dc..5a8514546c 100644
--- a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
+++ b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
@@ -1,5 +1,5 @@
<template>
- <div ref="containerRef" class="py-6 lg:flex">
+ <div id="ai" ref="containerRef" class="py-6 lg:flex">
<div class="text-left lg:w-1/4">
<div class="flex items-center space-x-2">
<h1 class="text-2xl font-bold">
diff --git a/frontend/src/components/GeneralSetting/AccountSetting.vue b/frontend/src/components/GeneralSetting/AccountSetting.vue
new file mode 100644
index 0000000000..448fc96b49
--- /dev/null
+++ b/frontend/src/components/GeneralSetting/AccountSetting.vue
@@ -0,0 +1,209 @@
+<template>
+ <div id="account" class="py-6 lg:flex">
+ <div class="text-left lg:w-1/4">
+ <div class="flex items-center space-x-2">
+ <h1 class="text-2xl font-bold">Account</h1>
+ <FeatureBadge feature="bb.feature.watermark" />
+ </div>
+ <span v-if="!allowEdit" class="text-sm text-gray-400">
+ {{ $t("settings.general.workspace.only-admin-can-edit") }}
+ </span>
+ </div>
+
+ <div class="flex-1 lg:px-4">
+ <PasswordRestrictionSetting :allow-edit="allowEdit" />
+ <NDivider />
+
+ <div>
+ <div class="mb-7 mt-4 lg:mt-0">
+ <div class="flex items-center gap-x-2">
+ <Switch
+ :value="require2FAEnabled"
+ :text="true"
+ :disabled="!allowEdit"
+ @update:value="handleRequire2FAToggle"
+ />
+ <span class="textlabel">
+ {{ $t("settings.general.workspace.require-2fa.enable") }}
+ </span>
+ </div>
+ <div class="mb-3 text-sm text-gray-400">
+ {{ $t("settings.general.workspace.require-2fa.description") }}
+ </div>
+ </div>
+ <div v-if="!isSaaSMode" class="mb-7 mt-4 lg:mt-0">
+ <div class="flex items-center gap-x-2">
+ <Switch
+ :value="disallowSignupEnabled"
+ :text="true"
+ :disabled="!allowEdit"
+ @update:value="handleDisallowSignupToggle"
+ />
+ <span class="textlabel">
+ {{ $t("settings.general.workspace.disallow-signup.enable") }}
+ </span>
+ </div>
+ <div class="mb-3 text-sm text-gray-400">
+ {{ $t("settings.general.workspace.disallow-signup.description") }}
+ </div>
+ </div>
+ <div class="mb-7 mt-4 lg:mt-0">
+ <div class="flex items-center gap-x-2">
+ <Switch
+ :value="disallowPasswordSignin"
+ :text="true"
+ :disabled="!allowEdit"
+ @update:value="handleDisallowPasswordSigninToggle"
+ />
+ <span class="textlabel">
+ {{
+ $t("settings.general.workspace.disallow-password-signin.enable")
+ }}
+ </span>
+ </div>
+ <div class="mb-3 text-sm text-gray-400">
+ {{
+ $t(
+ "settings.general.workspace.disallow-password-signin.description"
+ )
+ }}
+ </div>
+ </div>
+ </div>
+ <NDivider />
+
+ <SignInFrequencySetting :allow-edit="allowEdit" />
+ </div>
+ </div>
+
+ <FeatureModal
+ :open="!!state.featureNameForModal"
+ :feature="state.featureNameForModal"
+ @cancel="state.featureNameForModal = undefined"
+ />
+</template>
+
+<script lang="ts" setup>
+import { NDivider } from "naive-ui";
+import { storeToRefs } from "pinia";
+import { computed, reactive } from "vue";
+import { useI18n } from "vue-i18n";
+import { Switch } from "@/components/v2";
+import {
+ featureToRef,
+ pushNotification,
+ useActuatorV1Store,
+ useIdentityProviderStore,
+} from "@/store";
+import { useSettingV1Store } from "@/store/modules/v1/setting";
+import type { FeatureType } from "@/types";
+import { State } from "@/types/proto/v1/common";
+import { FeatureBadge, FeatureModal } from "../FeatureGuard";
+import PasswordRestrictionSetting from "./PasswordRestrictionSetting.vue";
+import SignInFrequencySetting from "./SignInFrequencySetting.vue";
+
+interface LocalState {
+ featureNameForModal?: FeatureType;
+}
+
+defineProps<{
+ allowEdit: boolean;
+}>();
+
+const state = reactive<LocalState>({});
+const { t } = useI18n();
+const settingV1Store = useSettingV1Store();
+const actuatorStore = useActuatorV1Store();
+
+const { isSaaSMode } = storeToRefs(actuatorStore);
+const has2FAFeature = featureToRef("bb.feature.2fa");
+const hasDisallowSignupFeature = featureToRef("bb.feature.disallow-signup");
+const hasDisallowPasswordSigninFeature = featureToRef(
+ "bb.feature.disallow-password-signin"
+);
+
+const disallowSignupEnabled = computed((): boolean => {
+ return settingV1Store.workspaceProfileSetting?.disallowSignup ?? false;
+});
+const require2FAEnabled = computed((): boolean => {
+ return settingV1Store.workspaceProfileSetting?.require2fa ?? false;
+});
+const disallowPasswordSignin = computed((): boolean => {
+ return (
+ settingV1Store.workspaceProfileSetting?.disallowPasswordSignin ?? false
+ );
+});
+
+const handleDisallowSignupToggle = async (on: boolean) => {
+ if (!hasDisallowSignupFeature.value && on) {
+ state.featureNameForModal = "bb.feature.disallow-signup";
+ return;
+ }
+ await settingV1Store.updateWorkspaceProfile({
+ payload: {
+ disallowSignup: on,
+ },
+ updateMask: ["value.workspace_profile_setting_value.disallow_signup"],
+ });
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("settings.general.workspace.config-updated"),
+ });
+};
+
+const handleRequire2FAToggle = async (on: boolean) => {
+ if (!has2FAFeature.value && on) {
+ state.featureNameForModal = "bb.feature.2fa";
+ return;
+ }
+
+ await settingV1Store.updateWorkspaceProfile({
+ payload: {
+ require2fa: on,
+ },
+ updateMask: ["value.workspace_profile_setting_value.require_2fa"],
+ });
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("settings.general.workspace.config-updated"),
+ });
+};
+
+const handleDisallowPasswordSigninToggle = async (on: boolean) => {
+ if (!hasDisallowPasswordSigninFeature.value && on) {
+ state.featureNameForModal = "bb.feature.disallow-password-signin";
+ return;
+ }
+
+ if (on) {
+ const idpStore = useIdentityProviderStore();
+ const idpList = await idpStore.fetchIdentityProviderList();
+ if (idpList.filter((idp) => idp.state === State.ACTIVE).length === 0) {
+ pushNotification({
+ module: "bytebase",
+ style: "CRITICAL",
+ title: t(
+ "settings.general.workspace.disallow-password-signin.require-sso-setup"
+ ),
+ });
+ return;
+ }
+ }
+
+ await settingV1Store.updateWorkspaceProfile({
+ payload: {
+ disallowPasswordSignin: on,
+ },
+ updateMask: [
+ "value.workspace_profile_setting_value.disallow_password_signin",
+ ],
+ });
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("settings.general.workspace.config-updated"),
+ });
+};
+</script>
diff --git a/frontend/src/components/GeneralSetting/AnnouncementSetting.vue b/frontend/src/components/GeneralSetting/AnnouncementSetting.vue
index 00c115798d..f95263591f 100644
--- a/frontend/src/components/GeneralSetting/AnnouncementSetting.vue
+++ b/frontend/src/components/GeneralSetting/AnnouncementSetting.vue
@@ -1,5 +1,5 @@
<template>
- <div class="py-6 lg:flex">
+ <div id="announcement" class="py-6 lg:flex">
<div class="text-left lg:w-1/4">
<div class="flex items-center space-x-2">
<h1 class="text-2xl font-bold">
diff --git a/frontend/src/components/GeneralSetting/BrandingSetting.vue b/frontend/src/components/GeneralSetting/BrandingSetting.vue
index 33138af5c6..84fa5e34a9 100644
--- a/frontend/src/components/GeneralSetting/BrandingSetting.vue
+++ b/frontend/src/components/GeneralSetting/BrandingSetting.vue
@@ -1,5 +1,5 @@
<template>
- <div class="py-6 lg:flex">
+ <div id="branding" class="py-6 lg:flex">
<div class="text-left lg:w-1/4">
<div class="flex items-center space-x-2">
<h1 class="text-2xl font-bold">
diff --git a/frontend/src/components/GeneralSetting/DomainRestrictionSetting.vue b/frontend/src/components/GeneralSetting/DomainRestrictionSetting.vue
index 124aa91dd0..c26991ce1a 100644
--- a/frontend/src/components/GeneralSetting/DomainRestrictionSetting.vue
+++ b/frontend/src/components/GeneralSetting/DomainRestrictionSetting.vue
@@ -1,5 +1,5 @@
<template>
- <div class="mb-7 mt-4 lg:mt-0 border-t pt-4">
+ <div class="mb-7 mt-4 lg:mt-0">
<h3
id="domain-restriction"
class="font-medium flex flex-row justify-start items-center"
diff --git a/frontend/src/components/GeneralSetting/NetworkSetting.vue b/frontend/src/components/GeneralSetting/NetworkSetting.vue
index aff2a89195..accc5e51c2 100644
--- a/frontend/src/components/GeneralSetting/NetworkSetting.vue
+++ b/frontend/src/components/GeneralSetting/NetworkSetting.vue
@@ -1,5 +1,5 @@
<template>
- <div class="py-6 lg:flex">
+ <div id="network" class="py-6 lg:flex">
<div class="text-left lg:w-1/4">
<h1 class="text-2xl font-bold">
{{ $t("settings.general.workspace.network") }}
diff --git a/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue b/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue
new file mode 100644
index 0000000000..9823553374
--- /dev/null
+++ b/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue
@@ -0,0 +1,136 @@
+<template>
+ <div class="mb-7 mt-4 lg:mt-0">
+ <p class="font-medium flex flex-row justify-start items-center mb-2">
+ <span class="mr-2">
+ {{ $t("settings.general.workspace.password-restriction.self") }}
+ </span>
+ </p>
+ <div class="w-full flex flex-col space-y-3">
+ <div class="flex items-center space-x-2">
+ <NInputNumber
+ :value="passwordRestrictionSetting.minLength"
+ :readonly="!allowEdit"
+ class="w-24"
+ :min="DEFAULT_MIN_LENGTH"
+ :placeholder="'Minimum length'"
+ :precision="0"
+ @update:value="
+ (val) => onUpdate({ minLength: val || DEFAULT_MIN_LENGTH })
+ "
+ />
+ <span class="textlabel">
+ {{
+ $t("settings.general.workspace.password-restriction.min-length", {
+ min: DEFAULT_MIN_LENGTH,
+ })
+ }}
+ </span>
+ </div>
+ <NCheckbox
+ :checked="passwordRestrictionSetting.requireNumber"
+ :readonly="!allowEdit"
+ @update:checked="
+ (val) => {
+ onUpdate({ requireNumber: val });
+ }
+ "
+ >
+ <span class="textlabel">
+ {{
+ $t("settings.general.workspace.password-restriction.require-number")
+ }}
+ </span>
+ </NCheckbox>
+ <NCheckbox
+ :checked="passwordRestrictionSetting.requireLetter"
+ :readonly="!allowEdit"
+ @update:checked="
+ (val) => {
+ onUpdate({ requireLetter: val });
+ }
+ "
+ >
+ <span class="textlabel">
+ {{
+ $t("settings.general.workspace.password-restriction.require-letter")
+ }}
+ </span>
+ </NCheckbox>
+ <NCheckbox
+ :checked="passwordRestrictionSetting.requireUppercaseLetter"
+ :readonly="!allowEdit"
+ @update:checked="
+ (val) => {
+ onUpdate({ requireUppercaseLetter: val });
+ }
+ "
+ >
+ <span class="textlabel">
+ {{
+ $t(
+ "settings.general.workspace.password-restriction.require-uppercase-letter"
+ )
+ }}
+ </span>
+ </NCheckbox>
+ <NCheckbox
+ :checked="passwordRestrictionSetting.requireSpecialCharacter"
+ :readonly="!allowEdit"
+ @update:checked="
+ (val) => {
+ onUpdate({ requireSpecialCharacter: val });
+ }
+ "
+ >
+ <span class="textlabel">
+ {{
+ $t(
+ "settings.general.workspace.password-restriction.require-special-character"
+ )
+ }}
+ </span>
+ </NCheckbox>
+ </div>
+ </div>
+</template>
+
+<script setup lang="tsx">
+import { NInputNumber, NCheckbox } from "naive-ui";
+import { computed } from "vue";
+import { useI18n } from "vue-i18n";
+import { pushNotification } from "@/store";
+import { useSettingV1Store } from "@/store/modules/v1/setting";
+import { PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";
+
+const DEFAULT_MIN_LENGTH = 8;
+
+defineProps<{
+ allowEdit: boolean;
+}>();
+
+const { t } = useI18n();
+const settingV1Store = useSettingV1Store();
+
+const passwordRestrictionSetting = computed(
+ () =>
+ settingV1Store.getSettingByName("bb.workspace.password-restriction")?.value
+ ?.passwordRestrictionSetting ?? PasswordRestrictionSetting.fromPartial({})
+);
+
+const onUpdate = async (update: Partial<PasswordRestrictionSetting>) => {
+ await settingV1Store.upsertSetting({
+ name: "bb.workspace.password-restriction",
+ value: {
+ passwordRestrictionSetting: {
+ ...passwordRestrictionSetting.value,
+ ...update,
+ },
+ },
+ });
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.updated"),
+ });
+};
+</script>
diff --git a/frontend/src/components/GeneralSetting/SecuritySetting.vue b/frontend/src/components/GeneralSetting/SecuritySetting.vue
index c86cf3004d..b014f78501 100644
--- a/frontend/src/components/GeneralSetting/SecuritySetting.vue
+++ b/frontend/src/components/GeneralSetting/SecuritySetting.vue
@@ -1,5 +1,5 @@
<template>
- <div class="py-6 lg:flex">
+ <div id="security" class="py-6 lg:flex">
<div class="text-left lg:w-1/4">
<div class="flex items-center space-x-2">
<h1 class="text-2xl font-bold">
@@ -29,68 +29,13 @@
{{ $t("settings.general.workspace.watermark.description") }}
</div>
</div>
- <div v-if="!isSaaSMode" class="mb-7 mt-4 lg:mt-0">
- <div class="flex items-center gap-x-2">
- <Switch
- :value="disallowSignupEnabled"
- :text="true"
- :disabled="!allowEdit"
- @update:value="handleDisallowSignupToggle"
- />
- <span class="textlabel">
- {{ $t("settings.general.workspace.disallow-signup.enable") }}
- </span>
- </div>
- <div class="mb-3 text-sm text-gray-400">
- {{ $t("settings.general.workspace.disallow-signup.description") }}
- </div>
- </div>
- <div class="mb-7 mt-4 lg:mt-0">
- <div class="flex items-center gap-x-2">
- <Switch
- :value="disallowPasswordSignin"
- :text="true"
- :disabled="!allowEdit"
- @update:value="handleDisallowPasswordSigninToggle"
- />
- <span class="textlabel">
- {{
- $t("settings.general.workspace.disallow-password-signin.enable")
- }}
- </span>
- </div>
- <div class="mb-3 text-sm text-gray-400">
- {{
- $t(
- "settings.general.workspace.disallow-password-signin.description"
- )
- }}
- </div>
- </div>
- <div class="mb-7 mt-4 lg:mt-0">
- <div class="flex items-center gap-x-2">
- <Switch
- :value="require2FAEnabled"
- :text="true"
- :disabled="!allowEdit"
- @update:value="handleRequire2FAToggle"
- />
- <span class="textlabel">
- {{ $t("settings.general.workspace.require-2fa.enable") }}
- </span>
- </div>
- <div class="mb-3 text-sm text-gray-400">
- {{ $t("settings.general.workspace.require-2fa.description") }}
- </div>
- </div>
<RestrictIssueCreationConfigure
class="mb-7 mt-4 lg:mt-0"
:resource="''"
:allow-edit="allowEdit"
/>
- <SignInFrequencySetting :allow-edit="allowEdit" />
- <MaximumRoleExpirationSetting :allow-edit="allowEdit" />
<MaximumSQLResultSizeSetting :allow-edit="allowEdit" />
+ <MaximumRoleExpirationSetting :allow-edit="allowEdit" />
<DomainRestrictionSetting :allow-edit="allowEdit" />
</div>
</div>
@@ -103,25 +48,17 @@
</template>
<script lang="ts" setup>
-import { storeToRefs } from "pinia";
import { computed, reactive } from "vue";
import { useI18n } from "vue-i18n";
import { Switch } from "@/components/v2";
-import {
- featureToRef,
- pushNotification,
- useActuatorV1Store,
- useIdentityProviderStore,
-} from "@/store";
+import { featureToRef, pushNotification } from "@/store";
import { useSettingV1Store } from "@/store/modules/v1/setting";
import type { FeatureType } from "@/types";
-import { State } from "@/types/proto/v1/common";
import { FeatureBadge, FeatureModal } from "../FeatureGuard";
import DomainRestrictionSetting from "./DomainRestrictionSetting.vue";
import MaximumRoleExpirationSetting from "./MaximumRoleExpirationSetting.vue";
import MaximumSQLResultSizeSetting from "./MaximumSQLResultSizeSetting.vue";
import RestrictIssueCreationConfigure from "./RestrictIssueCreationConfigure.vue";
-import SignInFrequencySetting from "./SignInFrequencySetting.vue";
interface LocalState {
featureNameForModal?: FeatureType;
@@ -134,15 +71,7 @@ defineProps<{
const state = reactive<LocalState>({});
const { t } = useI18n();
const settingV1Store = useSettingV1Store();
-const actuatorStore = useActuatorV1Store();
-
-const { isSaaSMode } = storeToRefs(actuatorStore);
const hasWatermarkFeature = featureToRef("bb.feature.branding");
-const has2FAFeature = featureToRef("bb.feature.2fa");
-const hasDisallowSignupFeature = featureToRef("bb.feature.disallow-signup");
-const hasDisallowPasswordSigninFeature = featureToRef(
- "bb.feature.disallow-password-signin"
-);
const watermarkEnabled = computed((): boolean => {
return (
@@ -150,90 +79,6 @@ const watermarkEnabled = computed((): boolean => {
?.stringValue === "1"
);
});
-const disallowSignupEnabled = computed((): boolean => {
- return settingV1Store.workspaceProfileSetting?.disallowSignup ?? false;
-});
-const require2FAEnabled = computed((): boolean => {
- return settingV1Store.workspaceProfileSetting?.require2fa ?? false;
-});
-const disallowPasswordSignin = computed((): boolean => {
- return (
- settingV1Store.workspaceProfileSetting?.disallowPasswordSignin ?? false
- );
-});
-
-const handleDisallowSignupToggle = async (on: boolean) => {
- if (!hasDisallowSignupFeature.value && on) {
- state.featureNameForModal = "bb.feature.disallow-signup";
- return;
- }
- await settingV1Store.updateWorkspaceProfile({
- payload: {
- disallowSignup: on,
- },
- updateMask: ["value.workspace_profile_setting_value.disallow_signup"],
- });
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("settings.general.workspace.config-updated"),
- });
-};
-
-const handleRequire2FAToggle = async (on: boolean) => {
- if (!has2FAFeature.value && on) {
- state.featureNameForModal = "bb.feature.2fa";
- return;
- }
-
- await settingV1Store.updateWorkspaceProfile({
- payload: {
- require2fa: on,
- },
- updateMask: ["value.workspace_profile_setting_value.require_2fa"],
- });
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("settings.general.workspace.config-updated"),
- });
-};
-
-const handleDisallowPasswordSigninToggle = async (on: boolean) => {
- if (!hasDisallowPasswordSigninFeature.value && on) {
- state.featureNameForModal = "bb.feature.disallow-password-signin";
- return;
- }
-
- if (on) {
- const idpStore = useIdentityProviderStore();
- const idpList = await idpStore.fetchIdentityProviderList();
- if (idpList.filter((idp) => idp.state === State.ACTIVE).length === 0) {
- pushNotification({
- module: "bytebase",
- style: "CRITICAL",
- title: t(
- "settings.general.workspace.disallow-password-signin.require-sso-setup"
- ),
- });
- return;
- }
- }
-
- await settingV1Store.updateWorkspaceProfile({
- payload: {
- disallowPasswordSignin: on,
- },
- updateMask: [
- "value.workspace_profile_setting_value.disallow_password_signin",
- ],
- });
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("settings.general.workspace.config-updated"),
- });
-};
const handleWatermarkToggle = async (on: boolean) => {
if (!hasWatermarkFeature.value && on) {
diff --git a/frontend/src/components/GeneralSetting/index.ts b/frontend/src/components/GeneralSetting/index.ts
index dd78198f72..1fc9597057 100644
--- a/frontend/src/components/GeneralSetting/index.ts
+++ b/frontend/src/components/GeneralSetting/index.ts
@@ -1,4 +1,5 @@
import AIAugmentationSetting from "./AIAugmentationSetting.vue";
+import AccountSetting from "./AccountSetting.vue";
import AnnouncementSetting from "./AnnouncementSetting.vue";
import BrandingSetting from "./BrandingSetting.vue";
import DatabaseChangeModeSetting from "./DatabaseChangeModeSetting.vue";
@@ -9,6 +10,7 @@ import SecuritySetting from "./SecuritySetting.vue";
export {
BrandingSetting,
SecuritySetting,
+ AccountSetting,
MaximumSQLResultSizeSetting,
NetworkSetting,
AIAugmentationSetting,
diff --git a/frontend/src/components/LearnMoreLink.vue b/frontend/src/components/LearnMoreLink.vue
index 95decfcf4e..0d5f67fcfd 100644
--- a/frontend/src/components/LearnMoreLink.vue
+++ b/frontend/src/components/LearnMoreLink.vue
@@ -4,32 +4,31 @@
class="inline-flex items-center"
:class="[color === 'normal' ? 'normal-link' : 'light-link']"
:href="url"
- target="__BLANK"
+ :target="external ? '__BLANK' : ''"
>
{{ $t("common.learn-more") }}
- <ExternalLinkIcon class="w-4 h-4 ml-1" />
+ <ExternalLinkIcon v-if="external" class="w-4 h-4 ml-1" />
</a>
</template>
<script lang="ts" setup>
import { ExternalLinkIcon } from "lucide-vue-next";
-import { computed, type PropType } from "vue";
+import { computed } from "vue";
import { useActuatorV1Store } from "@/store";
-const props = defineProps({
- url: {
- type: String,
- required: true,
- },
- color: {
- type: String as PropType<"normal" | "light">,
- default: "normal",
- },
- hideWhenEmbedded: {
- type: Boolean,
- default: false,
- },
-});
+const props = withDefaults(
+ defineProps<{
+ url: string;
+ external?: boolean;
+ color?: "normal" | "light";
+ hideWhenEmbedded?: boolean;
+ }>(),
+ {
+ color: "normal",
+ hideWhenEmbedded: false,
+ external: true,
+ }
+);
const hide = computed(() => {
if (!props.hideWhenEmbedded) return false;
diff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vue
index 358aeff9f3..462f0b650f 100644
--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue
+++ b/frontend/src/components/User/Settings/CreateUserDrawer.vue
@@ -84,18 +84,21 @@
<span
:class="[
'textinfolabel text-sm',
- state.passwordHint ? '!text-error' : '',
+ passwordHint ? '!text-error' : '',
]"
>
{{ $t("settings.profile.password-hint") }}
+ <LearnMoreLink
+ :external="false"
+ url="/setting/general#account"
+ />
</span>
<NInput
v-model:value="state.user.password"
type="password"
- :status="state.passwordHint ? 'error' : undefined"
+ :status="passwordHint ? 'error' : undefined"
:input-props="{ autocomplete: 'new-password' }"
:placeholder="$t('common.sensitive-placeholder')"
- @blur="checkPassword"
/>
</div>
</NFormItem>
@@ -104,15 +107,14 @@
<NInput
v-model:value="state.passwordConfirm"
type="password"
- :status="state.passwordMismatch ? 'error' : undefined"
+ :status="passwordMismatch ? 'error' : undefined"
:input-props="{ autocomplete: 'new-password' }"
:placeholder="
$t('settings.profile.password-confirm-placeholder')
"
- @blur="checkPasswordMismatch"
/>
<span
- v-if="state.passwordMismatch"
+ v-if="passwordMismatch"
class="text-error text-sm mt-1 pl-1"
>
{{ $t("settings.profile.password-mismatch") }}
@@ -174,7 +176,7 @@
</template>
<script lang="ts" setup>
-import { cloneDeep, head, isEmpty, isEqual, isUndefined } from "lodash-es";
+import { cloneDeep, head, isEqual, isUndefined } from "lodash-es";
import { ArchiveIcon } from "lucide-vue-next";
import {
NPopconfirm,
@@ -188,6 +190,7 @@ import {
import { computed, reactive } from "vue";
import { useI18n } from "vue-i18n";
import EmailInput from "@/components/EmailInput.vue";
+import LearnMoreLink from "@/components/LearnMoreLink.vue";
import { Drawer, DrawerContent } from "@/components/v2";
import { RoleSelect } from "@/components/v2/Select";
import {
@@ -205,6 +208,7 @@ import {
User,
} from "@/types/proto/v1/auth_service";
import { State } from "@/types/proto/v1/common";
+import { PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";
import { randomString } from "@/utils";
interface LocalState {
@@ -212,8 +216,6 @@ interface LocalState {
user: User;
roles: string[];
passwordConfirm: string;
- passwordHint: boolean;
- passwordMismatch: boolean;
}
const serviceAccountEmailSuffix = "service.bytebase.com";
@@ -255,8 +257,6 @@ const state = reactive<LocalState>({
user: initUser(),
roles: initRoles(),
passwordConfirm: "",
- passwordHint: false,
- passwordMismatch: false,
});
const workspaceDomain = computed(() => {
@@ -266,25 +266,54 @@ const workspaceDomain = computed(() => {
return head(settingV1Store.workspaceProfileSetting?.domains);
});
+const passwordRestrictionSetting = computed(
+ () =>
+ settingV1Store.getSettingByName("bb.workspace.password-restriction")?.value
+ ?.passwordRestrictionSetting ?? PasswordRestrictionSetting.fromPartial({})
+);
+
const isCreating = computed(() => !props.user);
-const checkPassword = () => {
+const passwordHint = computed(() => {
const pwd = state.user?.password ?? "";
if (!pwd) {
- state.passwordHint = false;
- return;
+ return false;
+ }
+ if (pwd.length < passwordRestrictionSetting.value.minLength) {
+ return true;
+ }
+ if (passwordRestrictionSetting.value.requireNumber && !/[0-9]+/.test(pwd)) {
+ return true;
+ }
+ if (
+ passwordRestrictionSetting.value.requireLetter &&
+ !/[a-zA-Z]+/.test(pwd)
+ ) {
+ return true;
+ }
+ if (
+ passwordRestrictionSetting.value.requireUppercaseLetter &&
+ !/[A-Z]+/.test(pwd)
+ ) {
+ return true;
}
- state.passwordHint =
+ if (
+ passwordRestrictionSetting.value.requireSpecialCharacter &&
// eslint-disable-next-line no-useless-escape
- !/^(?=.*\d)(?=.*[a-zA-Z])[\w~@#$%^&*+=|{}:;!.?\"()\[\]-]{8,}$/.test(pwd);
- return;
-};
+ !/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(pwd)
+ ) {
+ return true;
+ }
+ return false;
+});
-const checkPasswordMismatch = () => {
- state.passwordMismatch =
- !isEmpty(state.user?.password) &&
- state.user?.password !== state.passwordConfirm;
-};
+const passwordMismatch = computed(() => {
+ const pwd = state.user?.password ?? "";
+ if (!pwd) {
+ return false;
+ }
+ return pwd !== state.passwordConfirm;
+});
const rolesChanged = computed(() => {
if (isCreating.value) {
@@ -298,12 +327,17 @@ const allowConfirm = computed(() => {
if (!state.user.email) {
return false;
}
+ if (passwordHint.value) {
+ return false;
+ }
+ if (passwordMismatch.value) {
+ return false;
+ }
if (
!isCreating.value &&
- (state.passwordMismatch ||
- (getUpdateMaskFromUsers(props.user!, state.user).length == 0 &&
- !rolesChanged.value))
+ getUpdateMaskFromUsers(props.user!, state.user).length == 0 &&
+ !rolesChanged.value
) {
return false;
}
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 02d76aa8ef..d5c8e440cb 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -491,7 +491,7 @@
"phone-tips": "Be sure to include the country code",
"country-code": "Country Code",
"password": "Password",
- "password-hint": "Minimum eight characters, at least contains one letter and one number.",
+ "password-hint": "Password should follow restriction setting.",
"password-confirm": "Password Confirm",
"password-confirm-placeholder": "Confirm new password",
"password-mismatch": "New password mismatch",
@@ -676,8 +676,8 @@
"need-all-user-2fa-enabled": "Requires all users to enable 2FA first. There are still {count} users who have not enabled 2FA: {users}"
},
"disallow-password-signin": {
- "enable": "Disallow signin with email&password",
- "description": "Users cannot sign in with email&password, only SSO is allowed.",
+ "enable": "Disallow signin with email & password",
+ "description": "Users cannot sign in with email & password, only SSO is allowed.",
"require-sso-setup": "A functional SSO must be created first, or users won't be able to log in."
},
"network": "Network",
@@ -716,6 +716,14 @@
"description": "Restrict sign-in to users with email addresses from the specified domains."
}
},
+ "password-restriction": {
+ "self": "Password Restriction",
+ "min-length": "Minimum length for password, should no less than {min} characters",
+ "require-number": "Requires the password must contains at least one number",
+ "require-letter": "Requires the password must contains at least one letter, regardless of upper case or lower case",
+ "require-uppercase-letter": "Requires the password must contains at least one upper case letter",
+ "require-special-character": "Requires the password must contains at least one special character"
+ },
"config-updated": "Configuration is updated.",
"ai-assistant": {
"self": "AI Assistant",
@@ -2852,8 +2860,8 @@
"desc": "Once disabled, users cannot self-service signup and can only be invited by the workspace admin."
},
"bb-feature-disallow-password-signin": {
- "title": "Disallow signin with email&password",
- "desc": "Users cannot sign in with email&password, only SSO is allowed."
+ "title": "Disallow signin with email & password",
+ "desc": "Users cannot sign in with email & password, only SSO is allowed."
},
"bb-feature-schema-template": {
"title": "Schema Template",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index c5aa1958a3..3eaa040a6f 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -491,7 +491,7 @@
"phone-tips": "Asegúrese de incluir el código del país.",
"country-code": "Códigos de país y de área",
"password": "Contraseña",
- "password-hint": "Mínimo ocho caracteres, al menos contiene una letra y un número.",
+ "password-hint": "La contraseña debe seguir la configuración de restricción.",
"password-confirm": "Confirmar contraseña",
"password-confirm-placeholder": "Confirmar nueva contraseña",
"password-mismatch": "Nueva contraseña no coincide",
@@ -716,6 +716,14 @@
"description": "Restrinja el inicio de sesión a usuarios con direcciones de correo electrónico de los dominios especificados."
}
},
+ "password-restriction": {
+ "self": "Restricción de contraseña",
+ "min-length": "La longitud mínima de la contraseña no debe ser inferior a {min} caracteres",
+ "require-number": "Requiere que la contraseña contenga al menos un número",
+ "require-letter": "Requiere que la contraseña contenga al menos una letra, independientemente de si es mayúscula o minúscula.",
+ "require-uppercase-letter": "Requiere que la contraseña contenga al menos una letra mayúscula",
+ "require-special-character": "Requiere que la contraseña contenga al menos un carácter especial"
+ },
"config-updated": "La configuración se ha actualizado.",
"ai-assistant": {
"self": "Asistente de AI",
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index eb484430b8..b010ee729d 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -491,7 +491,7 @@
"phone-tips": "国コードを必ず含めてください",
"country-code": "国または地域コード",
"password": "パスワード",
- "password-hint": "最低 8 文字で、少なくとも 1 つの文字と 1 つの数字が含まれます。",
+ "password-hint": "パスワードは制限設定に従う必要があります。",
"password-confirm": "パスワードの確認",
"password-confirm-placeholder": "新しいパスワードを確認します",
"password-mismatch": "新しいパスワードが一致しません",
@@ -716,6 +716,14 @@
"description": "指定されたドメインの電子メール アドレスを持つユーザーのみにサインインを制限します。"
}
},
+ "password-restriction": {
+ "self": "パスワード制限",
+ "min-length": "パスワードの最小文字数は {min} 文字以上である必要があります",
+ "require-number": "パスワードには少なくとも1つの数字が含まれている必要があります",
+ "require-letter": "パスワードには大文字、小文字に関係なく少なくとも1文字が含まれている必要があります",
+ "require-uppercase-letter": "パスワードには少なくとも1つの大文字が含まれている必要があります",
+ "require-special-character": "パスワードには少なくとも1つの特殊文字が含まれている必要があります"
+ },
"config-updated": "構成が更新されました。",
"ai-assistant": {
"self": "AI助手",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index a50f3b4f40..0688f5bdc5 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -491,7 +491,7 @@
"phone-tips": "请包含国家代码前缀",
"country-code": "国家或地区代码",
"password": "密码",
- "password-hint": "最少 8 个字符,其中至少包含 1 个字母和 1 个数字。",
+ "password-hint": "密码应遵循限制设置。",
"password-confirm": "确认密码",
"password-confirm-placeholder": "确认新密码",
"password-mismatch": "新密码不匹配",
@@ -716,6 +716,14 @@
"description": "仅允许具有指定域名的电子邮箱的用户进行登录或注册。"
}
},
+ "password-restriction": {
+ "self": "密码限制",
+ "min-length": "密码最小长度,不得少于 {min} 个字符",
+ "require-number": "要求密码必须至少包含一个数字",
+ "require-letter": "要求密码必须至少包含一个字母(不区分大小写)",
+ "require-uppercase-letter": "要求密码必须至少包含一个大写字母",
+ "require-special-character": "要求密码必须至少包含一个特殊字符"
+ },
"config-updated": "配置已更新。",
"ai-assistant": {
"self": "AI 助手",
diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.ts
index acebbff35f..3e58d1e33f 100644
--- a/frontend/src/types/proto/store/setting.ts
+++ b/frontend/src/types/proto/store/setting.ts
@@ -628,6 +628,23 @@ export interface SCIMSetting {
token: string;
}
+export interface PasswordRestrictionSetting {
+ /** min_length is the minimum length for password, should no less than 8. */
+ minLength: number;
+ /** require_number requires the password must contains at least one number. */
+ requireNumber: boolean;
+ /** require_letter requires the password must contains at least one letter, regardless of upper case or lower case */
+ requireLetter: boolean;
+ /** require_uppercase_letter requires the password must contains at least one upper case letter. */
+ requireUppercaseLetter: boolean;
+ /** require_uppercase_letter requires the password must contains at least one special character. */
+ requireSpecialCharacter: boolean;
+ /** require_reset_password_for_first_login requires users to reset their password after the 1st login. */
+ requireResetPasswordForFirstLogin: boolean;
+ /** rotation_days requires users to reset their password after n days. */
+ rotationDays?: number | undefined;
+}
+
function createBaseWorkspaceProfileSetting(): WorkspaceProfileSetting {
return {
externalUrl: "",
@@ -3898,6 +3915,169 @@ export const SCIMSetting = {
},
};
+function createBasePasswordRestrictionSetting(): PasswordRestrictionSetting {
+ return {
+ minLength: 0,
+ requireNumber: false,
+ requireLetter: false,
+ requireUppercaseLetter: false,
+ requireSpecialCharacter: false,
+ requireResetPasswordForFirstLogin: false,
+ rotationDays: undefined,
+ };
+}
+
+export const PasswordRestrictionSetting = {
+ encode(message: PasswordRestrictionSetting, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.minLength !== 0) {
+ writer.uint32(8).int32(message.minLength);
+ }
+ if (message.requireNumber === true) {
+ writer.uint32(16).bool(message.requireNumber);
+ }
+ if (message.requireLetter === true) {
+ writer.uint32(24).bool(message.requireLetter);
+ }
+ if (message.requireUppercaseLetter === true) {
+ writer.uint32(32).bool(message.requireUppercaseLetter);
+ }
+ if (message.requireSpecialCharacter === true) {
+ writer.uint32(40).bool(message.requireSpecialCharacter);
+ }
+ if (message.requireResetPasswordForFirstLogin === true) {
+ writer.uint32(48).bool(message.requireResetPasswordForFirstLogin);
+ }
+ if (message.rotationDays !== undefined) {
+ writer.uint32(56).int32(message.rotationDays);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): PasswordRestrictionSetting {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBasePasswordRestrictionSetting();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.minLength = reader.int32();
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.requireNumber = reader.bool();
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.requireLetter = reader.bool();
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.requireUppercaseLetter = reader.bool();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.requireSpecialCharacter = reader.bool();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.requireResetPasswordForFirstLogin = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 56) {
+ break;
+ }
+
+ message.rotationDays = reader.int32();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): PasswordRestrictionSetting {
+ return {
+ minLength: isSet(object.minLength) ? globalThis.Number(object.minLength) : 0,
+ requireNumber: isSet(object.requireNumber) ? globalThis.Boolean(object.requireNumber) : false,
+ requireLetter: isSet(object.requireLetter) ? globalThis.Boolean(object.requireLetter) : false,
+ requireUppercaseLetter: isSet(object.requireUppercaseLetter)
+ ? globalThis.Boolean(object.requireUppercaseLetter)
+ : false,
+ requireSpecialCharacter: isSet(object.requireSpecialCharacter)
+ ? globalThis.Boolean(object.requireSpecialCharacter)
+ : false,
+ requireResetPasswordForFirstLogin: isSet(object.requireResetPasswordForFirstLogin)
+ ? globalThis.Boolean(object.requireResetPasswordForFirstLogin)
+ : false,
+ rotationDays: isSet(object.rotationDays) ? globalThis.Number(object.rotationDays) : undefined,
+ };
+ },
+
+ toJSON(message: PasswordRestrictionSetting): unknown {
+ const obj: any = {};
+ if (message.minLength !== 0) {
+ obj.minLength = Math.round(message.minLength);
+ }
+ if (message.requireNumber === true) {
+ obj.requireNumber = message.requireNumber;
+ }
+ if (message.requireLetter === true) {
+ obj.requireLetter = message.requireLetter;
+ }
+ if (message.requireUppercaseLetter === true) {
+ obj.requireUppercaseLetter = message.requireUppercaseLetter;
+ }
+ if (message.requireSpecialCharacter === true) {
+ obj.requireSpecialCharacter = message.requireSpecialCharacter;
+ }
+ if (message.requireResetPasswordForFirstLogin === true) {
+ obj.requireResetPasswordForFirstLogin = message.requireResetPasswordForFirstLogin;
+ }
+ if (message.rotationDays !== undefined) {
+ obj.rotationDays = Math.round(message.rotationDays);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<PasswordRestrictionSetting>): PasswordRestrictionSetting {
+ return PasswordRestrictionSetting.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<PasswordRestrictionSetting>): PasswordRestrictionSetting {
+ const message = createBasePasswordRestrictionSetting();
+ message.minLength = object.minLength ?? 0;
+ message.requireNumber = object.requireNumber ?? false;
+ message.requireLetter = object.requireLetter ?? false;
+ message.requireUppercaseLetter = object.requireUppercaseLetter ?? false;
+ message.requireSpecialCharacter = object.requireSpecialCharacter ?? false;
+ message.requireResetPasswordForFirstLogin = object.requireResetPasswordForFirstLogin ?? false;
+ message.rotationDays = object.rotationDays ?? undefined;
+ return message;
+ },
+};
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.ts
index e071d075c8..28045202b2 100644
--- a/frontend/src/types/proto/v1/setting_service.ts
+++ b/frontend/src/types/proto/v1/setting_service.ts
@@ -154,6 +154,7 @@ export interface Value {
maskingAlgorithmSettingValue?: MaskingAlgorithmSetting | undefined;
maximumSqlResultSizeSetting?: MaximumSQLResultSizeSetting | undefined;
scimSetting?: SCIMSetting | undefined;
+ passwordRestrictionSetting?: PasswordRestrictionSetting | undefined;
}
export interface SMTPMailDeliverySettingValue {
@@ -720,6 +721,23 @@ export interface SCIMSetting {
token: string;
}
+export interface PasswordRestrictionSetting {
+ /** min_length is the minimum length for password, should no less than 8. */
+ minLength: number;
+ /** require_number requires the password must contains at least one number. */
+ requireNumber: boolean;
+ /** require_letter requires the password must contains at least one letter, regardless of upper case or lower case */
+ requireLetter: boolean;
+ /** require_uppercase_letter requires the password must contains at least one upper case letter. */
+ requireUppercaseLetter: boolean;
+ /** require_uppercase_letter requires the password must contains at least one special character. */
+ requireSpecialCharacter: boolean;
+ /** require_reset_password_for_first_login requires users to reset their password after the 1st login. */
+ requireResetPasswordForFirstLogin: boolean;
+ /** rotation_days requires users to reset their password after n days. */
+ rotationDays?: number | undefined;
+}
+
function createBaseListSettingsRequest(): ListSettingsRequest {
return { pageSize: 0, pageToken: "" };
}
@@ -1180,6 +1198,7 @@ function createBaseValue(): Value {
maskingAlgorithmSettingValue: undefined,
maximumSqlResultSizeSetting: undefined,
scimSetting: undefined,
+ passwordRestrictionSetting: undefined,
};
}
@@ -1227,6 +1246,9 @@ export const Value = {
if (message.scimSetting !== undefined) {
SCIMSetting.encode(message.scimSetting, writer.uint32(114).fork()).ldelim();
}
+ if (message.passwordRestrictionSetting !== undefined) {
+ PasswordRestrictionSetting.encode(message.passwordRestrictionSetting, writer.uint32(122).fork()).ldelim();
+ }
return writer;
},
@@ -1335,6 +1357,13 @@ export const Value = {
message.scimSetting = SCIMSetting.decode(reader, reader.uint32());
continue;
+ case 15:
+ if (tag !== 122) {
+ break;
+ }
+
+ message.passwordRestrictionSetting = PasswordRestrictionSetting.decode(reader, reader.uint32());
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -1382,6 +1411,9 @@ export const Value = {
? MaximumSQLResultSizeSetting.fromJSON(object.maximumSqlResultSizeSetting)
: undefined,
scimSetting: isSet(object.scimSetting) ? SCIMSetting.fromJSON(object.scimSetting) : undefined,
+ passwordRestrictionSetting: isSet(object.passwordRestrictionSetting)
+ ? PasswordRestrictionSetting.fromJSON(object.passwordRestrictionSetting)
+ : undefined,
};
},
@@ -1429,6 +1461,9 @@ export const Value = {
if (message.scimSetting !== undefined) {
obj.scimSetting = SCIMSetting.toJSON(message.scimSetting);
}
+ if (message.passwordRestrictionSetting !== undefined) {
+ obj.passwordRestrictionSetting = PasswordRestrictionSetting.toJSON(message.passwordRestrictionSetting);
+ }
return obj;
},
@@ -1488,6 +1523,10 @@ export const Value = {
message.scimSetting = (object.scimSetting !== undefined && object.scimSetting !== null)
? SCIMSetting.fromPartial(object.scimSetting)
: undefined;
+ message.passwordRestrictionSetting =
+ (object.passwordRestrictionSetting !== undefined && object.passwordRestrictionSetting !== null)
+ ? PasswordRestrictionSetting.fromPartial(object.passwordRestrictionSetting)
+ : undefined;
return message;
},
};
@@ -4827,6 +4866,169 @@ export const SCIMSetting = {
},
};
+function createBasePasswordRestrictionSetting(): PasswordRestrictionSetting {
+ return {
+ minLength: 0,
+ requireNumber: false,
+ requireLetter: false,
+ requireUppercaseLetter: false,
+ requireSpecialCharacter: false,
+ requireResetPasswordForFirstLogin: false,
+ rotationDays: undefined,
+ };
+}
+
+export const PasswordRestrictionSetting = {
+ encode(message: PasswordRestrictionSetting, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.minLength !== 0) {
+ writer.uint32(8).int32(message.minLength);
+ }
+ if (message.requireNumber === true) {
+ writer.uint32(16).bool(message.requireNumber);
+ }
+ if (message.requireLetter === true) {
+ writer.uint32(24).bool(message.requireLetter);
+ }
+ if (message.requireUppercaseLetter === true) {
+ writer.uint32(32).bool(message.requireUppercaseLetter);
+ }
+ if (message.requireSpecialCharacter === true) {
+ writer.uint32(40).bool(message.requireSpecialCharacter);
+ }
+ if (message.requireResetPasswordForFirstLogin === true) {
+ writer.uint32(48).bool(message.requireResetPasswordForFirstLogin);
+ }
+ if (message.rotationDays !== undefined) {
+ writer.uint32(56).int32(message.rotationDays);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): PasswordRestrictionSetting {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBasePasswordRestrictionSetting();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.minLength = reader.int32();
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.requireNumber = reader.bool();
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+
+ message.requireLetter = reader.bool();
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.requireUppercaseLetter = reader.bool();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.requireSpecialCharacter = reader.bool();
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.requireResetPasswordForFirstLogin = reader.bool();
+ continue;
+ case 7:
+ if (tag !== 56) {
+ break;
+ }
+
+ message.rotationDays = reader.int32();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): PasswordRestrictionSetting {
+ return {
+ minLength: isSet(object.minLength) ? globalThis.Number(object.minLength) : 0,
+ requireNumber: isSet(object.requireNumber) ? globalThis.Boolean(object.requireNumber) : false,
+ requireLetter: isSet(object.requireLetter) ? globalThis.Boolean(object.requireLetter) : false,
+ requireUppercaseLetter: isSet(object.requireUppercaseLetter)
+ ? globalThis.Boolean(object.requireUppercaseLetter)
+ : false,
+ requireSpecialCharacter: isSet(object.requireSpecialCharacter)
+ ? globalThis.Boolean(object.requireSpecialCharacter)
+ : false,
+ requireResetPasswordForFirstLogin: isSet(object.requireResetPasswordForFirstLogin)
+ ? globalThis.Boolean(object.requireResetPasswordForFirstLogin)
+ : false,
+ rotationDays: isSet(object.rotationDays) ? globalThis.Number(object.rotationDays) : undefined,
+ };
+ },
+
+ toJSON(message: PasswordRestrictionSetting): unknown {
+ const obj: any = {};
+ if (message.minLength !== 0) {
+ obj.minLength = Math.round(message.minLength);
+ }
+ if (message.requireNumber === true) {
+ obj.requireNumber = message.requireNumber;
+ }
+ if (message.requireLetter === true) {
+ obj.requireLetter = message.requireLetter;
+ }
+ if (message.requireUppercaseLetter === true) {
+ obj.requireUppercaseLetter = message.requireUppercaseLetter;
+ }
+ if (message.requireSpecialCharacter === true) {
+ obj.requireSpecialCharacter = message.requireSpecialCharacter;
+ }
+ if (message.requireResetPasswordForFirstLogin === true) {
+ obj.requireResetPasswordForFirstLogin = message.requireResetPasswordForFirstLogin;
+ }
+ if (message.rotationDays !== undefined) {
+ obj.rotationDays = Math.round(message.rotationDays);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<PasswordRestrictionSetting>): PasswordRestrictionSetting {
+ return PasswordRestrictionSetting.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<PasswordRestrictionSetting>): PasswordRestrictionSetting {
+ const message = createBasePasswordRestrictionSetting();
+ message.minLength = object.minLength ?? 0;
+ message.requireNumber = object.requireNumber ?? false;
+ message.requireLetter = object.requireLetter ?? false;
+ message.requireUppercaseLetter = object.requireUppercaseLetter ?? false;
+ message.requireSpecialCharacter = object.requireSpecialCharacter ?? false;
+ message.requireResetPasswordForFirstLogin = object.requireResetPasswordForFirstLogin ?? false;
+ message.rotationDays = object.rotationDays ?? undefined;
+ return message;
+ },
+};
+
export type SettingServiceDefinition = typeof SettingServiceDefinition;
export const SettingServiceDefinition = {
name: "SettingService",
diff --git a/frontend/src/types/setting.ts b/frontend/src/types/setting.ts
index a62b63a897..7f501506a8 100644
--- a/frontend/src/types/setting.ts
+++ b/frontend/src/types/setting.ts
@@ -14,6 +14,7 @@ export type SettingName =
| "bb.workspace.semantic-types"
| "bb.workspace.masking-algorithm"
| "bb.workspace.maximum-sql-result-size"
- | "bb.workspace.scim";
+ | "bb.workspace.scim"
+ | "bb.workspace.password-restriction";
export const defaultTokenDurationInHours = 7 * 24;
diff --git a/frontend/src/views/SettingWorkspaceGeneral.vue b/frontend/src/views/SettingWorkspaceGeneral.vue
index 03cecd3662..2b55144632 100644
--- a/frontend/src/views/SettingWorkspaceGeneral.vue
+++ b/frontend/src/views/SettingWorkspaceGeneral.vue
@@ -3,6 +3,7 @@
<DatabaseChangeModeSetting :allow-edit="allowEdit" />
<NetworkSetting v-if="!isSaaSMode" :allow-edit="allowEdit" />
<BrandingSetting :allow-edit="allowEdit" />
+ <AccountSetting :allow-edit="allowEdit" />
<SecuritySetting :allow-edit="allowEdit" />
<AIAugmentationSetting :allow-edit="allowEdit" />
<AnnouncementSetting :allow-edit="allowEdit" />
@@ -16,6 +17,7 @@ import { useRoute } from "vue-router";
import {
BrandingSetting,
SecuritySetting,
+ AccountSetting,
NetworkSetting,
AIAugmentationSetting,
AnnouncementSetting,
diff --git a/go.mod b/go.mod
index 5217f089b3..fce2f070e7 100644
--- a/go.mod
+++ b/go.mod
@@ -243,7 +243,6 @@ require (
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
- github.com/dlclark/regexp2 v1.11.4
github.com/elastic/go-elasticsearch/v8 v8.14.0
github.com/envoyproxy/go-control-plane v0.12.0 // indirect
github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect
diff --git a/go.sum b/go.sum
index 6c405f07e2..8840e8908f 100644
--- a/go.sum
+++ b/go.sum
@@ -950,8 +950,6 @@ github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WA
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
-github.com/dlclark/regexp2 v1.11.4 h1:rPYF9/LECdNymJufQKmri9gV604RvvABwgOA8un7yAo=
-github.com/dlclark/regexp2 v1.11.4/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 6e7028a558..e45b666428 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -11089,6 +11089,32 @@ components:
- $ref: '#/components/schemas/SourceInfo'
description: The source info derived from input that generated the parsed `expr`.
description: An expression together with source information as returned by the parser.
+ PasswordRestrictionSetting:
+ type: object
+ properties:
+ minLength:
+ type: integer
+ description: min_length is the minimum length for password, should no less than 8.
+ format: int32
+ requireNumber:
+ type: boolean
+ description: require_number requires the password must contains at least one number.
+ requireLetter:
+ type: boolean
+ description: require_letter requires the password must contains at least one letter, regardless of upper case or lower case
+ requireUppercaseLetter:
+ type: boolean
+ description: require_uppercase_letter requires the password must contains at least one upper case letter.
+ requireSpecialCharacter:
+ type: boolean
+ description: require_uppercase_letter requires the password must contains at least one special character.
+ requireResetPasswordForFirstLogin:
+ type: boolean
+ description: require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ rotationDays:
+ type: integer
+ description: rotation_days requires users to reset their password after n days.
+ format: int32
PatchSubscription:
type: object
properties:
@@ -13996,6 +14022,8 @@ components:
$ref: '#/components/schemas/MaximumSQLResultSizeSetting'
scimSetting:
$ref: '#/components/schemas/SCIMSetting'
+ passwordRestrictionSetting:
+ $ref: '#/components/schemas/PasswordRestrictionSetting'
description: The data in setting value.
ViewConfig:
type: object
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index ca468332ee..9112d3dfec 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -251,6 +251,7 @@
- [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-RangeMask)
- [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-store-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice)
- [MaximumSQLResultSizeSetting](#bytebase-store-MaximumSQLResultSizeSetting)
+ - [PasswordRestrictionSetting](#bytebase-store-PasswordRestrictionSetting)
- [SCIMSetting](#bytebase-store-SCIMSetting)
- [SMTPMailDeliverySetting](#bytebase-store-SMTPMailDeliverySetting)
- [SchemaTemplateSetting](#bytebase-store-SchemaTemplateSetting)
@@ -3902,6 +3903,27 @@ SlowQueryPolicy is the policy configuration for slow query.
+<a name="bytebase-store-PasswordRestrictionSetting"></a>
+
+### PasswordRestrictionSetting
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| min_length | [int32](#int32) | | min_length is the minimum length for password, should no less than 8. |
+| require_number | [bool](#bool) | | require_number requires the password must contains at least one number. |
+| require_letter | [bool](#bool) | | require_letter requires the password must contains at least one letter, regardless of upper case or lower case |
+| require_uppercase_letter | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one upper case letter. |
+| require_special_character | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one special character. |
+| require_reset_password_for_first_login | [bool](#bool) | | require_reset_password_for_first_login requires users to reset their password after the 1st login. |
+| rotation_days | [int32](#int32) | optional | rotation_days requires users to reset their password after n days. |
+
+
+
+
+
+
<a name="bytebase-store-SCIMSetting"></a>
### SCIMSetting
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index c5efb2cb00..67b334d1be 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -1189,6 +1189,10 @@
<a href="#bytebase.store.MaximumSQLResultSizeSetting"><span class="badge">M</span>MaximumSQLResultSizeSetting</a>
</li>
+ <li>
+ <a href="#bytebase.store.PasswordRestrictionSetting"><span class="badge">M</span>PasswordRestrictionSetting</a>
+ </li>
+
<li>
<a href="#bytebase.store.SCIMSetting"><span class="badge">M</span>SCIMSetting</a>
</li>
@@ -9696,6 +9700,72 @@ The default value is 100MB, we will use the default value if the setting not exi
+ <h3 id="bytebase.store.PasswordRestrictionSetting">PasswordRestrictionSetting</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>min_length</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>min_length is the minimum length for password, should no less than 8. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_number</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_number requires the password must contains at least one number. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_letter</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_letter requires the password must contains at least one letter, regardless of upper case or lower case </p></td>
+ </tr>
+
+ <tr>
+ <td>require_uppercase_letter</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_uppercase_letter requires the password must contains at least one upper case letter. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_special_character</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_uppercase_letter requires the password must contains at least one special character. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_reset_password_for_first_login</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td>
+ </tr>
+
+ <tr>
+ <td>rotation_days</td>
+ <td><a href="#int32">int32</a></td>
+ <td>optional</td>
+ <td><p>rotation_days requires users to reset their password after n days. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.store.SCIMSetting">SCIMSetting</h3>
<p></p>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 7a49f3fabb..7fbd465c6e 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -596,6 +596,7 @@
- [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask)
- [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice)
- [MaximumSQLResultSizeSetting](#bytebase-v1-MaximumSQLResultSizeSetting)
+ - [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting)
- [SCIMSetting](#bytebase-v1-SCIMSetting)
- [SMTPMailDeliverySettingValue](#bytebase-v1-SMTPMailDeliverySettingValue)
- [SchemaTemplateSetting](#bytebase-v1-SchemaTemplateSetting)
@@ -9533,6 +9534,27 @@ When paginating, all other parameters provided to `ListSettings` must match the
+<a name="bytebase-v1-PasswordRestrictionSetting"></a>
+
+### PasswordRestrictionSetting
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| min_length | [int32](#int32) | | min_length is the minimum length for password, should no less than 8. |
+| require_number | [bool](#bool) | | require_number requires the password must contains at least one number. |
+| require_letter | [bool](#bool) | | require_letter requires the password must contains at least one letter, regardless of upper case or lower case |
+| require_uppercase_letter | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one upper case letter. |
+| require_special_character | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one special character. |
+| require_reset_password_for_first_login | [bool](#bool) | | require_reset_password_for_first_login requires users to reset their password after the 1st login. |
+| rotation_days | [int32](#int32) | optional | rotation_days requires users to reset their password after n days. |
+
+
+
+
+
+
<a name="bytebase-v1-SCIMSetting"></a>
### SCIMSetting
@@ -9737,6 +9759,7 @@ The data in setting value.
| masking_algorithm_setting_value | [MaskingAlgorithmSetting](#bytebase-v1-MaskingAlgorithmSetting) | | |
| maximum_sql_result_size_setting | [MaximumSQLResultSizeSetting](#bytebase-v1-MaximumSQLResultSizeSetting) | | |
| scim_setting | [SCIMSetting](#bytebase-v1-SCIMSetting) | | |
+| password_restriction_setting | [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting) | | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 23a622ae8d..88bb702f82 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -2452,6 +2452,10 @@
<a href="#bytebase.v1.MaximumSQLResultSizeSetting"><span class="badge">M</span>MaximumSQLResultSizeSetting</a>
</li>
+ <li>
+ <a href="#bytebase.v1.PasswordRestrictionSetting"><span class="badge">M</span>PasswordRestrictionSetting</a>
+ </li>
+
<li>
<a href="#bytebase.v1.SCIMSetting"><span class="badge">M</span>SCIMSetting</a>
</li>
@@ -25981,6 +25985,72 @@ The default value is 100MB, we will use the default value if the setting not exi
+ <h3 id="bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>min_length</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>min_length is the minimum length for password, should no less than 8. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_number</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_number requires the password must contains at least one number. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_letter</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_letter requires the password must contains at least one letter, regardless of upper case or lower case </p></td>
+ </tr>
+
+ <tr>
+ <td>require_uppercase_letter</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_uppercase_letter requires the password must contains at least one upper case letter. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_special_character</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_uppercase_letter requires the password must contains at least one special character. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_reset_password_for_first_login</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td>
+ </tr>
+
+ <tr>
+ <td>rotation_days</td>
+ <td><a href="#int32">int32</a></td>
+ <td>optional</td>
+ <td><p>rotation_days requires users to reset their password after n days. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.v1.SCIMSetting">SCIMSetting</h3>
<p></p>
@@ -26544,6 +26614,13 @@ server would not persist the setting value if it is true. </p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>password_restriction_setting</td>
+ <td><a href="#bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.go
index 944c9bb6a9..c505c0940f 100644
--- a/proto/generated-go/store/setting.pb.go
+++ b/proto/generated-go/store/setting.pb.go
@@ -1200,6 +1200,108 @@ func (x *SCIMSetting) GetToken() string {
return ""
}
+type PasswordRestrictionSetting struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // min_length is the minimum length for password, should no less than 8.
+ MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
+ // require_number requires the password must contains 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 must contains at least one letter, regardless of upper case or lower case
+ RequireLetter bool `protobuf:"varint,3,opt,name=require_letter,json=requireLetter,proto3" json:"require_letter,omitempty"`
+ // require_uppercase_letter requires the password must contains at least one upper case letter.
+ RequireUppercaseLetter bool `protobuf:"varint,4,opt,name=require_uppercase_letter,json=requireUppercaseLetter,proto3" json:"require_uppercase_letter,omitempty"`
+ // require_uppercase_letter requires the password must contains 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 reset their password after the 1st 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"`
+ // rotation_days requires users to reset their password after n days.
+ RotationDays *int32 `protobuf:"varint,7,opt,name=rotation_days,json=rotationDays,proto3,oneof" json:"rotation_days,omitempty"`
+}
+
+func (x *PasswordRestrictionSetting) Reset() {
+ *x = PasswordRestrictionSetting{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_setting_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *PasswordRestrictionSetting) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PasswordRestrictionSetting) ProtoMessage() {}
+
+func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
+ mi := &file_store_setting_proto_msgTypes[14]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use PasswordRestrictionSetting.ProtoReflect.Descriptor instead.
+func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{14}
+}
+
+func (x *PasswordRestrictionSetting) GetMinLength() int32 {
+ if x != nil {
+ return x.MinLength
+ }
+ return 0
+}
+
+func (x *PasswordRestrictionSetting) GetRequireNumber() bool {
+ if x != nil {
+ return x.RequireNumber
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRequireLetter() bool {
+ if x != nil {
+ return x.RequireLetter
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRequireUppercaseLetter() bool {
+ if x != nil {
+ return x.RequireUppercaseLetter
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRequireSpecialCharacter() bool {
+ if x != nil {
+ return x.RequireSpecialCharacter
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRequireResetPasswordForFirstLogin() bool {
+ if x != nil {
+ return x.RequireResetPasswordForFirstLogin
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRotationDays() int32 {
+ if x != nil && x.RotationDays != nil {
+ return *x.RotationDays
+ }
+ return 0
+}
+
type WorkspaceApprovalSetting_Rule struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1213,7 +1315,7 @@ type WorkspaceApprovalSetting_Rule struct {
func (x *WorkspaceApprovalSetting_Rule) Reset() {
*x = WorkspaceApprovalSetting_Rule{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[14]
+ mi := &file_store_setting_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1226,7 +1328,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {
func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}
func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[14]
+ mi := &file_store_setting_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1281,7 +1383,7 @@ type ExternalApprovalSetting_Node struct {
func (x *ExternalApprovalSetting_Node) Reset() {
*x = ExternalApprovalSetting_Node{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[15]
+ mi := &file_store_setting_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1294,7 +1396,7 @@ func (x *ExternalApprovalSetting_Node) String() string {
func (*ExternalApprovalSetting_Node) ProtoMessage() {}
func (x *ExternalApprovalSetting_Node) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[15]
+ mi := &file_store_setting_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1346,7 +1448,7 @@ type SchemaTemplateSetting_FieldTemplate struct {
func (x *SchemaTemplateSetting_FieldTemplate) Reset() {
*x = SchemaTemplateSetting_FieldTemplate{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[16]
+ mi := &file_store_setting_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1359,7 +1461,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) String() string {
func (*SchemaTemplateSetting_FieldTemplate) ProtoMessage() {}
func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[16]
+ mi := &file_store_setting_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1423,7 +1525,7 @@ type SchemaTemplateSetting_ColumnType struct {
func (x *SchemaTemplateSetting_ColumnType) Reset() {
*x = SchemaTemplateSetting_ColumnType{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[17]
+ mi := &file_store_setting_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1436,7 +1538,7 @@ func (x *SchemaTemplateSetting_ColumnType) String() string {
func (*SchemaTemplateSetting_ColumnType) ProtoMessage() {}
func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[17]
+ mi := &file_store_setting_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1488,7 +1590,7 @@ type SchemaTemplateSetting_TableTemplate struct {
func (x *SchemaTemplateSetting_TableTemplate) Reset() {
*x = SchemaTemplateSetting_TableTemplate{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[18]
+ mi := &file_store_setting_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1501,7 +1603,7 @@ func (x *SchemaTemplateSetting_TableTemplate) String() string {
func (*SchemaTemplateSetting_TableTemplate) ProtoMessage() {}
func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[18]
+ mi := &file_store_setting_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1576,7 +1678,7 @@ type DataClassificationSetting_DataClassificationConfig struct {
func (x *DataClassificationSetting_DataClassificationConfig) Reset() {
*x = DataClassificationSetting_DataClassificationConfig{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[19]
+ mi := &file_store_setting_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1589,7 +1691,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {
func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[19]
+ mi := &file_store_setting_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1653,7 +1755,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {
func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_Level{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[20]
+ mi := &file_store_setting_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1666,7 +1768,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) String() stri
func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[20]
+ mi := &file_store_setting_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1718,7 +1820,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification struc
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[21]
+ mi := &file_store_setting_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1731,7 +1833,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)
func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[21]
+ mi := &file_store_setting_proto_msgTypes[22]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1797,7 +1899,7 @@ type SemanticTypeSetting_SemanticType struct {
func (x *SemanticTypeSetting_SemanticType) Reset() {
*x = SemanticTypeSetting_SemanticType{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[23]
+ mi := &file_store_setting_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1810,7 +1912,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {
func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}
func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[23]
+ mi := &file_store_setting_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1889,7 +1991,7 @@ type MaskingAlgorithmSetting_Algorithm struct {
func (x *MaskingAlgorithmSetting_Algorithm) Reset() {
*x = MaskingAlgorithmSetting_Algorithm{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[24]
+ mi := &file_store_setting_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1902,7 +2004,7 @@ func (x *MaskingAlgorithmSetting_Algorithm) String() string {
func (*MaskingAlgorithmSetting_Algorithm) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[24]
+ mi := &file_store_setting_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2023,7 +2125,7 @@ type MaskingAlgorithmSetting_Algorithm_FullMask struct {
func (x *MaskingAlgorithmSetting_Algorithm_FullMask) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_FullMask{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[25]
+ mi := &file_store_setting_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2036,7 +2138,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_FullMask) String() string {
func (*MaskingAlgorithmSetting_Algorithm_FullMask) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_FullMask) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[25]
+ mi := &file_store_setting_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2072,7 +2174,7 @@ type MaskingAlgorithmSetting_Algorithm_RangeMask struct {
func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_RangeMask{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[26]
+ mi := &file_store_setting_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2085,7 +2187,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) String() string {
func (*MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[26]
+ mi := &file_store_setting_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2120,7 +2222,7 @@ type MaskingAlgorithmSetting_Algorithm_MD5Mask struct {
func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_MD5Mask{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[27]
+ mi := &file_store_setting_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2133,7 +2235,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) String() string {
func (*MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[27]
+ mi := &file_store_setting_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2170,7 +2272,7 @@ type MaskingAlgorithmSetting_Algorithm_InnerOuterMask struct {
func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_InnerOuterMask{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[28]
+ mi := &file_store_setting_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2183,7 +2285,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) String() string {
func (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[28]
+ mi := &file_store_setting_proto_msgTypes[29]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2243,7 +2345,7 @@ type MaskingAlgorithmSetting_Algorithm_RangeMask_Slice struct {
func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_RangeMask_Slice{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[29]
+ mi := &file_store_setting_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2256,7 +2358,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) String() string {
func (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[29]
+ mi := &file_store_setting_proto_msgTypes[30]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2305,7 +2407,7 @@ type AppIMSetting_Slack struct {
func (x *AppIMSetting_Slack) Reset() {
*x = AppIMSetting_Slack{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[30]
+ mi := &file_store_setting_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2318,7 +2420,7 @@ func (x *AppIMSetting_Slack) String() string {
func (*AppIMSetting_Slack) ProtoMessage() {}
func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[30]
+ mi := &file_store_setting_proto_msgTypes[31]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2361,7 +2463,7 @@ type AppIMSetting_Feishu struct {
func (x *AppIMSetting_Feishu) Reset() {
*x = AppIMSetting_Feishu{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[31]
+ mi := &file_store_setting_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2374,7 +2476,7 @@ func (x *AppIMSetting_Feishu) String() string {
func (*AppIMSetting_Feishu) ProtoMessage() {}
func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[31]
+ mi := &file_store_setting_proto_msgTypes[32]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2425,7 +2527,7 @@ type AppIMSetting_Wecom struct {
func (x *AppIMSetting_Wecom) Reset() {
*x = AppIMSetting_Wecom{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_setting_proto_msgTypes[32]
+ mi := &file_store_setting_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2438,7 +2540,7 @@ func (x *AppIMSetting_Wecom) String() string {
func (*AppIMSetting_Wecom) ProtoMessage() {}
func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[32]
+ mi := &file_store_setting_proto_msgTypes[33]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2864,14 +2966,39 @@ var file_store_setting_proto_rawDesc = []byte{
0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22,
0x23, 0x0a, 0x0b, 0x53, 0x43, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14,
0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
- 0x6f, 0x6b, 0x65, 0x6e, 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41,
- 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4d, 0x4f,
- 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
- 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0a,
- 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65,
- 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65,
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8e, 0x03, 0x0a, 0x1a, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
+ 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74,
+ 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67,
+ 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6e, 0x75,
+ 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75,
+ 0x69, 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71,
+ 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72,
+ 0x12, 0x38, 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x70, 0x65,
+ 0x72, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x70, 0x70, 0x65, 0x72,
+ 0x63, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x19, 0x72, 0x65,
+ 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x68,
+ 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x72,
+ 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x68, 0x61,
+ 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x26, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
+ 0x65, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
+ 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x21, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x52,
+ 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x6f, 0x72, 0x46,
+ 0x69, 0x72, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x6f, 0x74,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05,
+ 0x48, 0x00, 0x52, 0x0c, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x79, 0x73,
+ 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x5f, 0x64, 0x61, 0x79, 0x73, 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x44,
+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4d,
+ 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
+ 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12,
+ 0x0a, 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x14, 0x5a, 0x12, 0x67,
+ 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72,
+ 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -2887,7 +3014,7 @@ func file_store_setting_proto_rawDescGZIP() []byte {
}
var file_store_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
-var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
+var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 34)
var file_store_setting_proto_goTypes = []any{
(DatabaseChangeMode)(0), // 0: bytebase.store.DatabaseChangeMode
(Announcement_AlertLevel)(0), // 1: bytebase.store.Announcement.AlertLevel
@@ -2908,72 +3035,73 @@ var file_store_setting_proto_goTypes = []any{
(*AppIMSetting)(nil), // 16: bytebase.store.AppIMSetting
(*MaximumSQLResultSizeSetting)(nil), // 17: bytebase.store.MaximumSQLResultSizeSetting
(*SCIMSetting)(nil), // 18: bytebase.store.SCIMSetting
- (*WorkspaceApprovalSetting_Rule)(nil), // 19: bytebase.store.WorkspaceApprovalSetting.Rule
- (*ExternalApprovalSetting_Node)(nil), // 20: bytebase.store.ExternalApprovalSetting.Node
- (*SchemaTemplateSetting_FieldTemplate)(nil), // 21: bytebase.store.SchemaTemplateSetting.FieldTemplate
- (*SchemaTemplateSetting_ColumnType)(nil), // 22: bytebase.store.SchemaTemplateSetting.ColumnType
- (*SchemaTemplateSetting_TableTemplate)(nil), // 23: bytebase.store.SchemaTemplateSetting.TableTemplate
- (*DataClassificationSetting_DataClassificationConfig)(nil), // 24: bytebase.store.DataClassificationSetting.DataClassificationConfig
- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 25: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 26: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
- nil, // 27: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- (*SemanticTypeSetting_SemanticType)(nil), // 28: bytebase.store.SemanticTypeSetting.SemanticType
- (*MaskingAlgorithmSetting_Algorithm)(nil), // 29: bytebase.store.MaskingAlgorithmSetting.Algorithm
- (*MaskingAlgorithmSetting_Algorithm_FullMask)(nil), // 30: bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask
- (*MaskingAlgorithmSetting_Algorithm_RangeMask)(nil), // 31: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask
- (*MaskingAlgorithmSetting_Algorithm_MD5Mask)(nil), // 32: bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask
- (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask)(nil), // 33: bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
- (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice)(nil), // 34: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
- (*AppIMSetting_Slack)(nil), // 35: bytebase.store.AppIMSetting.Slack
- (*AppIMSetting_Feishu)(nil), // 36: bytebase.store.AppIMSetting.Feishu
- (*AppIMSetting_Wecom)(nil), // 37: bytebase.store.AppIMSetting.Wecom
- (*durationpb.Duration)(nil), // 38: google.protobuf.Duration
- (*v1alpha1.ParsedExpr)(nil), // 39: google.api.expr.v1alpha1.ParsedExpr
- (*ApprovalTemplate)(nil), // 40: bytebase.store.ApprovalTemplate
- (*expr.Expr)(nil), // 41: google.type.Expr
- (Engine)(0), // 42: bytebase.store.Engine
- (*ColumnMetadata)(nil), // 43: bytebase.store.ColumnMetadata
- (*ColumnConfig)(nil), // 44: bytebase.store.ColumnConfig
- (*TableMetadata)(nil), // 45: bytebase.store.TableMetadata
- (*TableConfig)(nil), // 46: bytebase.store.TableConfig
+ (*PasswordRestrictionSetting)(nil), // 19: bytebase.store.PasswordRestrictionSetting
+ (*WorkspaceApprovalSetting_Rule)(nil), // 20: bytebase.store.WorkspaceApprovalSetting.Rule
+ (*ExternalApprovalSetting_Node)(nil), // 21: bytebase.store.ExternalApprovalSetting.Node
+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 22: bytebase.store.SchemaTemplateSetting.FieldTemplate
+ (*SchemaTemplateSetting_ColumnType)(nil), // 23: bytebase.store.SchemaTemplateSetting.ColumnType
+ (*SchemaTemplateSetting_TableTemplate)(nil), // 24: bytebase.store.SchemaTemplateSetting.TableTemplate
+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 25: bytebase.store.DataClassificationSetting.DataClassificationConfig
+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 26: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 27: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
+ nil, // 28: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ (*SemanticTypeSetting_SemanticType)(nil), // 29: bytebase.store.SemanticTypeSetting.SemanticType
+ (*MaskingAlgorithmSetting_Algorithm)(nil), // 30: bytebase.store.MaskingAlgorithmSetting.Algorithm
+ (*MaskingAlgorithmSetting_Algorithm_FullMask)(nil), // 31: bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask
+ (*MaskingAlgorithmSetting_Algorithm_RangeMask)(nil), // 32: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask
+ (*MaskingAlgorithmSetting_Algorithm_MD5Mask)(nil), // 33: bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask
+ (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask)(nil), // 34: bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
+ (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice)(nil), // 35: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
+ (*AppIMSetting_Slack)(nil), // 36: bytebase.store.AppIMSetting.Slack
+ (*AppIMSetting_Feishu)(nil), // 37: bytebase.store.AppIMSetting.Feishu
+ (*AppIMSetting_Wecom)(nil), // 38: bytebase.store.AppIMSetting.Wecom
+ (*durationpb.Duration)(nil), // 39: google.protobuf.Duration
+ (*v1alpha1.ParsedExpr)(nil), // 40: google.api.expr.v1alpha1.ParsedExpr
+ (*ApprovalTemplate)(nil), // 41: bytebase.store.ApprovalTemplate
+ (*expr.Expr)(nil), // 42: google.type.Expr
+ (Engine)(0), // 43: bytebase.store.Engine
+ (*ColumnMetadata)(nil), // 44: bytebase.store.ColumnMetadata
+ (*ColumnConfig)(nil), // 45: bytebase.store.ColumnConfig
+ (*TableMetadata)(nil), // 46: bytebase.store.TableMetadata
+ (*TableConfig)(nil), // 47: bytebase.store.TableConfig
}
var file_store_setting_proto_depIdxs = []int32{
- 38, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
+ 39, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
6, // 1: bytebase.store.WorkspaceProfileSetting.announcement:type_name -> bytebase.store.Announcement
- 38, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
+ 39, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
0, // 3: bytebase.store.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.store.DatabaseChangeMode
1, // 4: bytebase.store.Announcement.level:type_name -> bytebase.store.Announcement.AlertLevel
- 19, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule
- 20, // 6: bytebase.store.ExternalApprovalSetting.nodes:type_name -> bytebase.store.ExternalApprovalSetting.Node
+ 20, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule
+ 21, // 6: bytebase.store.ExternalApprovalSetting.nodes:type_name -> bytebase.store.ExternalApprovalSetting.Node
2, // 7: bytebase.store.SMTPMailDeliverySetting.encryption:type_name -> bytebase.store.SMTPMailDeliverySetting.Encryption
3, // 8: bytebase.store.SMTPMailDeliverySetting.authentication:type_name -> bytebase.store.SMTPMailDeliverySetting.Authentication
- 21, // 9: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate
- 22, // 10: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType
- 23, // 11: bytebase.store.SchemaTemplateSetting.table_templates:type_name -> bytebase.store.SchemaTemplateSetting.TableTemplate
- 24, // 12: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig
- 28, // 13: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
- 29, // 14: bytebase.store.MaskingAlgorithmSetting.algorithms:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm
- 35, // 15: bytebase.store.AppIMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack
- 36, // 16: bytebase.store.AppIMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu
- 37, // 17: bytebase.store.AppIMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom
- 39, // 18: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.ParsedExpr
- 40, // 19: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
- 41, // 20: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
- 42, // 21: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine
- 43, // 22: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata
- 44, // 23: bytebase.store.SchemaTemplateSetting.FieldTemplate.config:type_name -> bytebase.store.ColumnConfig
- 42, // 24: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine
- 42, // 25: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine
- 45, // 26: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata
- 46, // 27: bytebase.store.SchemaTemplateSetting.TableTemplate.config:type_name -> bytebase.store.TableConfig
- 25, // 28: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
- 27, // 29: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- 26, // 30: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
- 30, // 31: bytebase.store.MaskingAlgorithmSetting.Algorithm.full_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask
- 31, // 32: bytebase.store.MaskingAlgorithmSetting.Algorithm.range_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask
- 32, // 33: bytebase.store.MaskingAlgorithmSetting.Algorithm.md5_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask
- 33, // 34: bytebase.store.MaskingAlgorithmSetting.Algorithm.inner_outer_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
- 34, // 35: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.slices:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
+ 22, // 9: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate
+ 23, // 10: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType
+ 24, // 11: bytebase.store.SchemaTemplateSetting.table_templates:type_name -> bytebase.store.SchemaTemplateSetting.TableTemplate
+ 25, // 12: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig
+ 29, // 13: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
+ 30, // 14: bytebase.store.MaskingAlgorithmSetting.algorithms:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm
+ 36, // 15: bytebase.store.AppIMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack
+ 37, // 16: bytebase.store.AppIMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu
+ 38, // 17: bytebase.store.AppIMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom
+ 40, // 18: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.ParsedExpr
+ 41, // 19: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
+ 42, // 20: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
+ 43, // 21: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine
+ 44, // 22: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata
+ 45, // 23: bytebase.store.SchemaTemplateSetting.FieldTemplate.config:type_name -> bytebase.store.ColumnConfig
+ 43, // 24: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine
+ 43, // 25: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine
+ 46, // 26: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata
+ 47, // 27: bytebase.store.SchemaTemplateSetting.TableTemplate.config:type_name -> bytebase.store.TableConfig
+ 26, // 28: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
+ 28, // 29: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ 27, // 30: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
+ 31, // 31: bytebase.store.MaskingAlgorithmSetting.Algorithm.full_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask
+ 32, // 32: bytebase.store.MaskingAlgorithmSetting.Algorithm.range_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask
+ 33, // 33: bytebase.store.MaskingAlgorithmSetting.Algorithm.md5_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask
+ 34, // 34: bytebase.store.MaskingAlgorithmSetting.Algorithm.inner_outer_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
+ 35, // 35: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.slices:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
4, // 36: bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
37, // [37:37] is the sub-list for method output_type
37, // [37:37] is the sub-list for method input_type
@@ -3160,7 +3288,7 @@ func file_store_setting_proto_init() {
}
}
file_store_setting_proto_msgTypes[14].Exporter = func(v any, i int) any {
- switch v := v.(*WorkspaceApprovalSetting_Rule); i {
+ switch v := v.(*PasswordRestrictionSetting); i {
case 0:
return &v.state
case 1:
@@ -3172,7 +3300,7 @@ func file_store_setting_proto_init() {
}
}
file_store_setting_proto_msgTypes[15].Exporter = func(v any, i int) any {
- switch v := v.(*ExternalApprovalSetting_Node); i {
+ switch v := v.(*WorkspaceApprovalSetting_Rule); i {
case 0:
return &v.state
case 1:
@@ -3184,7 +3312,7 @@ func file_store_setting_proto_init() {
}
}
file_store_setting_proto_msgTypes[16].Exporter = func(v any, i int) any {
- switch v := v.(*SchemaTemplateSetting_FieldTemplate); i {
+ switch v := v.(*ExternalApprovalSetting_Node); i {
case 0:
return &v.state
case 1:
@@ -3196,7 +3324,7 @@ func file_store_setting_proto_init() {
}
}
file_store_setting_proto_msgTypes[17].Exporter = func(v any, i int) any {
- switch v := v.(*SchemaTemplateSetting_ColumnType); i {
+ switch v := v.(*SchemaTemplateSetting_FieldTemplate); i {
case 0:
return &v.state
case 1:
@@ -3208,7 +3336,7 @@ func file_store_setting_proto_init() {
}
}
file_store_setting_proto_msgTypes[18].Exporter = func(v any, i int) any {
- switch v := v.(*SchemaTemplateSetting_TableTemplate); i {
+ switch v := v.(*SchemaTemplateSetting_ColumnType); i {
case 0:
return &v.state
case 1:
@@ -3220,7 +3348,7 @@ func file_store_setting_proto_init() {
}
}
file_store_setting_proto_msgTypes[19].Exporter = func(v any, i int) any {
- switch v := v.(*DataClassificationSetting_DataClassificationConfig); i {
+ switch v := v.(*SchemaTemplateSetting_TableTemplate); i {
case 0:
return &v.state
case 1:
@@ -3232,7 +3360,7 @@ func file_store_setting_proto_init() {
}
}
file_store_setting_proto_msgTypes[20].Exporter = func(v any, i int) any {
- switch v := v.(*DataClassificationSetting_DataClassificationConfig_Level); i {
+ switch v := v.(*DataClassificationSetting_DataClassificationConfig); i {
case 0:
return &v.state
case 1:
@@ -3244,6 +3372,18 @@ func file_store_setting_proto_init() {
}
}
file_store_setting_proto_msgTypes[21].Exporter = func(v any, i int) any {
+ switch v := v.(*DataClassificationSetting_DataClassificationConfig_Level); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_setting_proto_msgTypes[22].Exporter = func(v any, i int) any {
switch v := v.(*DataClassificationSetting_DataClassificationConfig_DataClassification); i {
case 0:
return &v.state
@@ -3255,7 +3395,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[23].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[24].Exporter = func(v any, i int) any {
switch v := v.(*SemanticTypeSetting_SemanticType); i {
case 0:
return &v.state
@@ -3267,7 +3407,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[24].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[25].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm); i {
case 0:
return &v.state
@@ -3279,7 +3419,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[25].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[26].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_FullMask); i {
case 0:
return &v.state
@@ -3291,7 +3431,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[26].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[27].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_RangeMask); i {
case 0:
return &v.state
@@ -3303,7 +3443,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[27].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[28].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_MD5Mask); i {
case 0:
return &v.state
@@ -3315,7 +3455,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[28].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[29].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_InnerOuterMask); i {
case 0:
return &v.state
@@ -3327,7 +3467,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[29].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[30].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice); i {
case 0:
return &v.state
@@ -3339,7 +3479,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[30].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[31].Exporter = func(v any, i int) any {
switch v := v.(*AppIMSetting_Slack); i {
case 0:
return &v.state
@@ -3351,7 +3491,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[31].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[32].Exporter = func(v any, i int) any {
switch v := v.(*AppIMSetting_Feishu); i {
case 0:
return &v.state
@@ -3363,7 +3503,7 @@ func file_store_setting_proto_init() {
return nil
}
}
- file_store_setting_proto_msgTypes[32].Exporter = func(v any, i int) any {
+ file_store_setting_proto_msgTypes[33].Exporter = func(v any, i int) any {
switch v := v.(*AppIMSetting_Wecom); i {
case 0:
return &v.state
@@ -3376,8 +3516,9 @@ func file_store_setting_proto_init() {
}
}
}
- file_store_setting_proto_msgTypes[21].OneofWrappers = []any{}
- file_store_setting_proto_msgTypes[24].OneofWrappers = []any{
+ file_store_setting_proto_msgTypes[14].OneofWrappers = []any{}
+ file_store_setting_proto_msgTypes[22].OneofWrappers = []any{}
+ file_store_setting_proto_msgTypes[25].OneofWrappers = []any{
(*MaskingAlgorithmSetting_Algorithm_FullMask_)(nil),
(*MaskingAlgorithmSetting_Algorithm_RangeMask_)(nil),
(*MaskingAlgorithmSetting_Algorithm_Md5Mask)(nil),
@@ -3389,7 +3530,7 @@ func file_store_setting_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_setting_proto_rawDesc,
NumEnums: 5,
- NumMessages: 33,
+ NumMessages: 34,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/generated-go/v1/setting_service.pb.go b/proto/generated-go/v1/setting_service.pb.go
index b2d1f8f856..100bcf4ded 100644
--- a/proto/generated-go/v1/setting_service.pb.go
+++ b/proto/generated-go/v1/setting_service.pb.go
@@ -667,6 +667,7 @@ type Value struct {
// *Value_MaskingAlgorithmSettingValue
// *Value_MaximumSqlResultSizeSetting
// *Value_ScimSetting
+ // *Value_PasswordRestrictionSetting
Value isValue_Value `protobuf_oneof:"value"`
}
@@ -807,6 +808,13 @@ func (x *Value) GetScimSetting() *SCIMSetting {
return nil
}
+func (x *Value) GetPasswordRestrictionSetting() *PasswordRestrictionSetting {
+ if x, ok := x.GetValue().(*Value_PasswordRestrictionSetting); ok {
+ return x.PasswordRestrictionSetting
+ }
+ return nil
+}
+
type isValue_Value interface {
isValue_Value()
}
@@ -868,6 +876,10 @@ type Value_ScimSetting struct {
ScimSetting *SCIMSetting `protobuf:"bytes,14,opt,name=scim_setting,json=scimSetting,proto3,oneof"`
}
+type Value_PasswordRestrictionSetting struct {
+ PasswordRestrictionSetting *PasswordRestrictionSetting `protobuf:"bytes,15,opt,name=password_restriction_setting,json=passwordRestrictionSetting,proto3,oneof"`
+}
+
func (*Value_StringValue) isValue_Value() {}
func (*Value_SmtpMailDeliverySettingValue) isValue_Value() {}
@@ -896,6 +908,8 @@ func (*Value_MaximumSqlResultSizeSetting) isValue_Value() {}
func (*Value_ScimSetting) isValue_Value() {}
+func (*Value_PasswordRestrictionSetting) isValue_Value() {}
+
type SMTPMailDeliverySettingValue struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1850,6 +1864,108 @@ func (x *SCIMSetting) GetToken() string {
return ""
}
+type PasswordRestrictionSetting struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // min_length is the minimum length for password, should no less than 8.
+ MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
+ // require_number requires the password must contains 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 must contains at least one letter, regardless of upper case or lower case
+ RequireLetter bool `protobuf:"varint,3,opt,name=require_letter,json=requireLetter,proto3" json:"require_letter,omitempty"`
+ // require_uppercase_letter requires the password must contains at least one upper case letter.
+ RequireUppercaseLetter bool `protobuf:"varint,4,opt,name=require_uppercase_letter,json=requireUppercaseLetter,proto3" json:"require_uppercase_letter,omitempty"`
+ // require_uppercase_letter requires the password must contains 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 reset their password after the 1st 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"`
+ // rotation_days requires users to reset their password after n days.
+ RotationDays *int32 `protobuf:"varint,7,opt,name=rotation_days,json=rotationDays,proto3,oneof" json:"rotation_days,omitempty"`
+}
+
+func (x *PasswordRestrictionSetting) Reset() {
+ *x = PasswordRestrictionSetting{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_setting_service_proto_msgTypes[21]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *PasswordRestrictionSetting) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PasswordRestrictionSetting) ProtoMessage() {}
+
+func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_setting_service_proto_msgTypes[21]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use PasswordRestrictionSetting.ProtoReflect.Descriptor instead.
+func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{21}
+}
+
+func (x *PasswordRestrictionSetting) GetMinLength() int32 {
+ if x != nil {
+ return x.MinLength
+ }
+ return 0
+}
+
+func (x *PasswordRestrictionSetting) GetRequireNumber() bool {
+ if x != nil {
+ return x.RequireNumber
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRequireLetter() bool {
+ if x != nil {
+ return x.RequireLetter
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRequireUppercaseLetter() bool {
+ if x != nil {
+ return x.RequireUppercaseLetter
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRequireSpecialCharacter() bool {
+ if x != nil {
+ return x.RequireSpecialCharacter
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRequireResetPasswordForFirstLogin() bool {
+ if x != nil {
+ return x.RequireResetPasswordForFirstLogin
+ }
+ return false
+}
+
+func (x *PasswordRestrictionSetting) GetRotationDays() int32 {
+ if x != nil && x.RotationDays != nil {
+ return *x.RotationDays
+ }
+ return 0
+}
+
type AppIMSetting_Slack struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1862,7 +1978,7 @@ type AppIMSetting_Slack struct {
func (x *AppIMSetting_Slack) Reset() {
*x = AppIMSetting_Slack{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[21]
+ mi := &file_v1_setting_service_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1875,7 +1991,7 @@ func (x *AppIMSetting_Slack) String() string {
func (*AppIMSetting_Slack) ProtoMessage() {}
func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[21]
+ mi := &file_v1_setting_service_proto_msgTypes[22]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1918,7 +2034,7 @@ type AppIMSetting_Feishu struct {
func (x *AppIMSetting_Feishu) Reset() {
*x = AppIMSetting_Feishu{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[22]
+ mi := &file_v1_setting_service_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1931,7 +2047,7 @@ func (x *AppIMSetting_Feishu) String() string {
func (*AppIMSetting_Feishu) ProtoMessage() {}
func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[22]
+ mi := &file_v1_setting_service_proto_msgTypes[23]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1982,7 +2098,7 @@ type AppIMSetting_Wecom struct {
func (x *AppIMSetting_Wecom) Reset() {
*x = AppIMSetting_Wecom{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[23]
+ mi := &file_v1_setting_service_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1995,7 +2111,7 @@ func (x *AppIMSetting_Wecom) String() string {
func (*AppIMSetting_Wecom) ProtoMessage() {}
func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[23]
+ mi := &file_v1_setting_service_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2051,7 +2167,7 @@ type WorkspaceApprovalSetting_Rule struct {
func (x *WorkspaceApprovalSetting_Rule) Reset() {
*x = WorkspaceApprovalSetting_Rule{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[24]
+ mi := &file_v1_setting_service_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2064,7 +2180,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {
func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}
func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[24]
+ mi := &file_v1_setting_service_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2111,7 +2227,7 @@ type ExternalApprovalSetting_Node struct {
func (x *ExternalApprovalSetting_Node) Reset() {
*x = ExternalApprovalSetting_Node{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[25]
+ mi := &file_v1_setting_service_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2124,7 +2240,7 @@ func (x *ExternalApprovalSetting_Node) String() string {
func (*ExternalApprovalSetting_Node) ProtoMessage() {}
func (x *ExternalApprovalSetting_Node) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[25]
+ mi := &file_v1_setting_service_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2176,7 +2292,7 @@ type SchemaTemplateSetting_FieldTemplate struct {
func (x *SchemaTemplateSetting_FieldTemplate) Reset() {
*x = SchemaTemplateSetting_FieldTemplate{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[26]
+ mi := &file_v1_setting_service_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2189,7 +2305,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) String() string {
func (*SchemaTemplateSetting_FieldTemplate) ProtoMessage() {}
func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[26]
+ mi := &file_v1_setting_service_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2253,7 +2369,7 @@ type SchemaTemplateSetting_ColumnType struct {
func (x *SchemaTemplateSetting_ColumnType) Reset() {
*x = SchemaTemplateSetting_ColumnType{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[27]
+ mi := &file_v1_setting_service_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2266,7 +2382,7 @@ func (x *SchemaTemplateSetting_ColumnType) String() string {
func (*SchemaTemplateSetting_ColumnType) ProtoMessage() {}
func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[27]
+ mi := &file_v1_setting_service_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2318,7 +2434,7 @@ type SchemaTemplateSetting_TableTemplate struct {
func (x *SchemaTemplateSetting_TableTemplate) Reset() {
*x = SchemaTemplateSetting_TableTemplate{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[28]
+ mi := &file_v1_setting_service_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2331,7 +2447,7 @@ func (x *SchemaTemplateSetting_TableTemplate) String() string {
func (*SchemaTemplateSetting_TableTemplate) ProtoMessage() {}
func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[28]
+ mi := &file_v1_setting_service_proto_msgTypes[29]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2405,7 +2521,7 @@ type DataClassificationSetting_DataClassificationConfig struct {
func (x *DataClassificationSetting_DataClassificationConfig) Reset() {
*x = DataClassificationSetting_DataClassificationConfig{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[29]
+ mi := &file_v1_setting_service_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2418,7 +2534,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {
func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[29]
+ mi := &file_v1_setting_service_proto_msgTypes[30]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2482,7 +2598,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {
func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_Level{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[30]
+ mi := &file_v1_setting_service_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2495,7 +2611,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) String() stri
func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[30]
+ mi := &file_v1_setting_service_proto_msgTypes[31]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2547,7 +2663,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification struc
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[31]
+ mi := &file_v1_setting_service_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2560,7 +2676,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)
func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[31]
+ mi := &file_v1_setting_service_proto_msgTypes[32]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2624,7 +2740,7 @@ type SemanticTypeSetting_SemanticType struct {
func (x *SemanticTypeSetting_SemanticType) Reset() {
*x = SemanticTypeSetting_SemanticType{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[33]
+ mi := &file_v1_setting_service_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2637,7 +2753,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {
func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}
func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[33]
+ mi := &file_v1_setting_service_proto_msgTypes[34]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2716,7 +2832,7 @@ type MaskingAlgorithmSetting_Algorithm struct {
func (x *MaskingAlgorithmSetting_Algorithm) Reset() {
*x = MaskingAlgorithmSetting_Algorithm{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[34]
+ mi := &file_v1_setting_service_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2729,7 +2845,7 @@ func (x *MaskingAlgorithmSetting_Algorithm) String() string {
func (*MaskingAlgorithmSetting_Algorithm) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[34]
+ mi := &file_v1_setting_service_proto_msgTypes[35]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2850,7 +2966,7 @@ type MaskingAlgorithmSetting_Algorithm_FullMask struct {
func (x *MaskingAlgorithmSetting_Algorithm_FullMask) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_FullMask{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[35]
+ mi := &file_v1_setting_service_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2863,7 +2979,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_FullMask) String() string {
func (*MaskingAlgorithmSetting_Algorithm_FullMask) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_FullMask) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[35]
+ mi := &file_v1_setting_service_proto_msgTypes[36]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2899,7 +3015,7 @@ type MaskingAlgorithmSetting_Algorithm_RangeMask struct {
func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_RangeMask{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[36]
+ mi := &file_v1_setting_service_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2912,7 +3028,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) String() string {
func (*MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[36]
+ mi := &file_v1_setting_service_proto_msgTypes[37]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2947,7 +3063,7 @@ type MaskingAlgorithmSetting_Algorithm_MD5Mask struct {
func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_MD5Mask{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[37]
+ mi := &file_v1_setting_service_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2960,7 +3076,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) String() string {
func (*MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[37]
+ mi := &file_v1_setting_service_proto_msgTypes[38]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2997,7 +3113,7 @@ type MaskingAlgorithmSetting_Algorithm_InnerOuterMask struct {
func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_InnerOuterMask{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[38]
+ mi := &file_v1_setting_service_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3010,7 +3126,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) String() string {
func (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[38]
+ mi := &file_v1_setting_service_proto_msgTypes[39]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3070,7 +3186,7 @@ type MaskingAlgorithmSetting_Algorithm_RangeMask_Slice struct {
func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) Reset() {
*x = MaskingAlgorithmSetting_Algorithm_RangeMask_Slice{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_setting_service_proto_msgTypes[39]
+ mi := &file_v1_setting_service_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3083,7 +3199,7 @@ func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) String() string {
func (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoMessage() {}
func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[39]
+ mi := &file_v1_setting_service_proto_msgTypes[40]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3189,8 +3305,8 @@ var file_v1_setting_service_proto_rawDesc = []byte{
0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
0x2d, 0xea, 0x41, 0x2a, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x73, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x22, 0xf2,
- 0x0a, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69,
+ 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x22, 0xdf,
+ 0x0b, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69,
0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x73, 0x0a,
0x20, 0x73, 0x6d, 0x74, 0x70, 0x5f, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x64, 0x65, 0x6c, 0x69, 0x76,
@@ -3276,417 +3392,449 @@ var file_v1_setting_service_proto_rawDesc = []byte{
0x63, 0x69, 0x6d, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x53, 0x43, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x73,
- 0x63, 0x69, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61,
- 0x6c, 0x75, 0x65, 0x22, 0xda, 0x05, 0x0a, 0x1c, 0x53, 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c,
- 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56,
- 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04,
- 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74,
- 0x12, 0x54, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x53, 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x69, 0x76,
- 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e,
- 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x72,
- 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a, 0x02, 0x63, 0x61, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x63, 0x61, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x6b,
- 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x88,
- 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
- 0x48, 0x02, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x60, 0x0a, 0x0e, 0x61,
- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20,
- 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x53, 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65,
- 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x41,
- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x61,
- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a,
- 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73,
- 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x70,
- 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72,
- 0x6f, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e,
- 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x6e,
- 0x0a, 0x0a, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x16,
- 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x4e, 0x43, 0x52,
- 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a,
- 0x13, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x52,
- 0x54, 0x54, 0x4c, 0x53, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50,
- 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x53, 0x4c, 0x5f, 0x54, 0x4c, 0x53, 0x10, 0x03, 0x22, 0x9a,
- 0x01, 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54,
- 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
- 0x00, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54,
- 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55,
- 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4c, 0x41,
- 0x49, 0x4e, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49,
- 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x4f, 0x47, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x1b,
- 0x0a, 0x17, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e,
- 0x5f, 0x43, 0x52, 0x41, 0x4d, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x04, 0x42, 0x05, 0x0a, 0x03, 0x5f,
- 0x63, 0x61, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x63,
- 0x65, 0x72, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
- 0x22, 0xdc, 0x03, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
- 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x6c, 0x61, 0x63,
- 0x6b, 0x52, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x12, 0x38, 0x0a, 0x06, 0x66, 0x65, 0x69, 0x73,
- 0x68, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x65, 0x69, 0x73, 0x68, 0x75, 0x52, 0x06, 0x66, 0x65, 0x69, 0x73,
- 0x68, 0x75, 0x12, 0x35, 0x0a, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x57, 0x65, 0x63,
- 0x6f, 0x6d, 0x52, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x1a, 0x3d, 0x0a, 0x05, 0x53, 0x6c, 0x61,
- 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x05,
- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,
- 0x04, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x64, 0x0a, 0x06, 0x46, 0x65, 0x69, 0x73,
- 0x68, 0x75, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x06,
- 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41,
- 0x01, 0x04, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x70, 0x70,
- 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2,
- 0x41, 0x01, 0x04, 0x52, 0x09, 0x61, 0x70, 0x70, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x7f,
- 0x0a, 0x05, 0x57, 0x65, 0x63, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
- 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
- 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6f, 0x72, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x06, 0x63, 0x6f, 0x72, 0x70, 0x49, 0x64,
- 0x12, 0x1f, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49,
- 0x64, 0x12, 0x1c, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22,
- 0x3c, 0x0a, 0x12, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65,
- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x91, 0x05,
- 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69,
- 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x74,
- 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x27, 0x0a, 0x0f,
- 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53,
- 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
- 0x5f, 0x32, 0x66, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75,
- 0x69, 0x72, 0x65, 0x32, 0x66, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75,
- 0x6e, 0x64, 0x5f, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09,
- 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x70, 0x4c, 0x69, 0x73, 0x74,
- 0x12, 0x2c, 0x0a, 0x12, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f, 0x77, 0x65, 0x62, 0x68, 0x6f,
- 0x6f, 0x6b, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x67, 0x69,
- 0x74, 0x6f, 0x70, 0x73, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x55, 0x72, 0x6c, 0x12, 0x40,
- 0x0a, 0x0e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x52, 0x0d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x12, 0x3d, 0x0a, 0x0c, 0x61, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74,
- 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e,
- 0x74, 0x52, 0x0c, 0x61, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12,
- 0x51, 0x0a, 0x17, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f,
- 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
- 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x15, 0x6d, 0x61, 0x78,
- 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x09, 0x20,
- 0x03, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x36, 0x0a, 0x17,
- 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
- 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65,
- 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x44, 0x6f,
- 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x51, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0b, 0x20, 0x01,
- 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d,
- 0x6f, 0x64, 0x65, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61,
- 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c,
- 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x67,
- 0x6e, 0x69, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c,
- 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x69,
- 0x6e, 0x22, 0xe6, 0x01, 0x0a, 0x0c, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65,
- 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x6c, 0x65,
- 0x72, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x12,
- 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65,
- 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x22, 0x72, 0x0a, 0x0a, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x4c,
- 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x5f, 0x4c, 0x45,
- 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
- 0x00, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c,
- 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x4c, 0x45, 0x52, 0x54,
- 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02,
- 0x12, 0x18, 0x0a, 0x14, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f,
- 0x43, 0x52, 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x03, 0x22, 0xd0, 0x01, 0x0a, 0x18, 0x57,
- 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,
- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x40, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73,
- 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70,
- 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x75,
- 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x72, 0x0a, 0x04, 0x52, 0x75, 0x6c,
- 0x65, 0x12, 0x39, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,
- 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x09,
- 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78,
- 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01,
- 0x0a, 0x17, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76,
- 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3f, 0x0a, 0x05, 0x6e, 0x6f, 0x64,
- 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41,
- 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4e,
- 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x1a, 0x48, 0x0a, 0x04, 0x4e, 0x6f,
- 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
- 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70,
- 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70,
- 0x6f, 0x69, 0x6e, 0x74, 0x22, 0xac, 0x06, 0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54,
- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59,
- 0x0a, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
- 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70,
- 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x69, 0x65, 0x6c,
- 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64,
- 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x50, 0x0a, 0x0c, 0x63, 0x6f, 0x6c,
- 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b,
- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x0f, 0x74,
- 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x03,
+ 0x63, 0x69, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x6b, 0x0a, 0x1c, 0x70, 0x61,
+ 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,
+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x1a, 0x70, 0x61, 0x73,
+ 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x22, 0xda, 0x05, 0x0a, 0x1c, 0x53, 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c,
+ 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75,
+ 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72,
+ 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x54, 0x0a,
+ 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x0e, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x53, 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79,
+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x45, 0x6e, 0x63,
+ 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a, 0x02, 0x63, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48,
+ 0x00, 0x52, 0x02, 0x63, 0x61, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x12,
+ 0x17, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52,
+ 0x04, 0x63, 0x65, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x60, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68,
+ 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e,
+ 0x32, 0x38, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
+ 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68,
+ 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68,
+ 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73,
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73,
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
+ 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73,
+ 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18,
+ 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74,
+ 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x0a, 0x45,
+ 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x4e, 0x43,
+ 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54,
+ 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x4e,
+ 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x54, 0x4c,
+ 0x53, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f,
+ 0x4e, 0x5f, 0x53, 0x53, 0x4c, 0x5f, 0x54, 0x4c, 0x53, 0x10, 0x03, 0x22, 0x9a, 0x01, 0x0a, 0x0e,
+ 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e,
+ 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e,
+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17,
+ 0x0a, 0x13, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e,
+ 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45,
+ 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10,
+ 0x02, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54,
+ 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x4f, 0x47, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x41,
+ 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x52,
+ 0x41, 0x4d, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x04, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x63, 0x61, 0x42,
+ 0x06, 0x0a, 0x04, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x63, 0x65, 0x72, 0x74,
+ 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xdc, 0x03,
+ 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x35,
+ 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x49,
+ 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x52, 0x05,
+ 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x12, 0x38, 0x0a, 0x06, 0x66, 0x65, 0x69, 0x73, 0x68, 0x75, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x2e, 0x46, 0x65, 0x69, 0x73, 0x68, 0x75, 0x52, 0x06, 0x66, 0x65, 0x69, 0x73, 0x68, 0x75, 0x12,
+ 0x35, 0x0a, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70,
+ 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x57, 0x65, 0x63, 0x6f, 0x6d, 0x52,
+ 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x1a, 0x3d, 0x0a, 0x05, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x12,
+ 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
+ 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x05, 0x74, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x05,
+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x64, 0x0a, 0x06, 0x46, 0x65, 0x69, 0x73, 0x68, 0x75, 0x12,
+ 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
+ 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x70, 0x70,
+ 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52,
+ 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x73, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04,
+ 0x52, 0x09, 0x61, 0x70, 0x70, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x7f, 0x0a, 0x05, 0x57,
+ 0x65, 0x63, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1d,
+ 0x0a, 0x07, 0x63, 0x6f, 0x72, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,
+ 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x06, 0x63, 0x6f, 0x72, 0x70, 0x49, 0x64, 0x12, 0x1f, 0x0a,
+ 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42,
+ 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c,
+ 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,
+ 0xe2, 0x41, 0x01, 0x04, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x3c, 0x0a, 0x12,
+ 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x91, 0x05, 0x0a, 0x17, 0x57,
+ 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e,
+ 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78,
+ 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73,
+ 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e,
+ 0x75, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x32, 0x66,
+ 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
+ 0x32, 0x66, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f,
+ 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6f,
+ 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x0a,
+ 0x12, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f,
+ 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x67, 0x69, 0x74, 0x6f, 0x70,
+ 0x73, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x55, 0x72, 0x6c, 0x12, 0x40, 0x0a, 0x0e, 0x74,
+ 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d,
+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a,
+ 0x0c, 0x61, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0c,
+ 0x61, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x17,
+ 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x70,
+ 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,
+ 0x6d, 0x52, 0x6f, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09,
+ 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x65, 0x6e, 0x66,
+ 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x6f,
+ 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x66, 0x6f,
+ 0x72, 0x63, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69,
+ 0x6e, 0x12, 0x51, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x68,
+ 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65,
+ 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
+ 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e,
+ 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
+ 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x22, 0xe6,
+ 0x01, 0x0a, 0x0c, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12,
+ 0x3a, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6e,
+ 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x4c,
+ 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74,
+ 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12,
+ 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c,
+ 0x69, 0x6e, 0x6b, 0x22, 0x72, 0x0a, 0x0a, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x4c, 0x65, 0x76, 0x65,
+ 0x6c, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c,
+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14,
+ 0x0a, 0x10, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x49, 0x4e,
+ 0x46, 0x4f, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x5f, 0x4c, 0x45,
+ 0x56, 0x45, 0x4c, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x18, 0x0a,
+ 0x14, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x43, 0x52, 0x49,
+ 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x03, 0x22, 0xd0, 0x01, 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b,
+ 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x12, 0x40, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f,
+ 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x52,
+ 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x72, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x39,
+ 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52,
+ 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e,
+ 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67,
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52,
+ 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x17, 0x45,
+ 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3f, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18,
+ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72,
+ 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
+ 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x1a, 0x48, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12,
+ 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
+ 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
+ 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
+ 0x74, 0x22, 0xac, 0x06, 0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70,
+ 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59, 0x0a, 0x0f, 0x66,
+ 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
- 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x65,
- 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x65, 0x6d,
- 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x1a, 0xd0, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64,
- 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69,
- 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65,
- 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
- 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
- 0x79, 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06,
- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69,
- 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x69, 0x0a, 0x0a, 0x43, 0x6f, 0x6c,
- 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e,
- 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x14,
- 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74,
- 0x79, 0x70, 0x65, 0x73, 0x1a, 0xcc, 0x01, 0x0a, 0x0d, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x65,
- 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67,
- 0x69, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12,
- 0x30, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
+ 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65,
+ 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d,
+ 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x50, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
+ 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6c,
+ 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x0f, 0x74, 0x61, 0x62, 0x6c,
+ 0x65, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65,
+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c,
+ 0x61, 0x74, 0x65, 0x52, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,
+ 0x74, 0x65, 0x73, 0x1a, 0xd0, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d,
+ 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69,
+ 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x33,
+ 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c,
+ 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x63, 0x6f, 0x6c,
+ 0x75, 0x6d, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06,
+ 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x69, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,
+ 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74,
+ 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65,
+ 0x73, 0x1a, 0xcc, 0x01, 0x0a, 0x0d, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c,
+ 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
+ 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x30, 0x0a, 0x05,
+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x30,
+ 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62,
- 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c,
- 0x65, 0x12, 0x30, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e,
- 0x66, 0x69, 0x67, 0x22, 0x98, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
- 0x65, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a,
- 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43,
- 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74,
- 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
- 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d,
- 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
+ 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
+ 0x22, 0x98, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x54, 0x72,
+ 0x69, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e,
+ 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
- 0x6d, 0x70, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18,
- 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x67, 0x5f,
- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x67, 0x4e,
- 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0xc8,
- 0x06, 0x0a, 0x19, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59, 0x0a, 0x07,
- 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65,
- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69,
- 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07,
- 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x1a, 0xcf, 0x05, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61,
- 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x5d, 0x0a, 0x06, 0x6c, 0x65,
- 0x76, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61,
- 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x65, 0x76, 0x65,
- 0x6c, 0x52, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x7b, 0x0a, 0x0e, 0x63, 0x6c, 0x61,
- 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28,
- 0x0b, 0x32, 0x53, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b,
+ 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
+ 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
+ 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65,
+ 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,
+ 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0xc8, 0x06, 0x0a, 0x19,
0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c,
- 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69,
- 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x1a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
- 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x63, 0x6c, 0x61, 0x73,
- 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x4f, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0e, 0x0a,
- 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a,
- 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,
- 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
- 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x89, 0x01, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c,
- 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02,
- 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,
- 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
- 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
- 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x49,
- 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69,
- 0x64, 0x1a, 0x95, 0x01, 0x0a, 0x13, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61,
- 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x68, 0x0a, 0x05, 0x76,
- 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x52, 0x2e, 0x62, 0x79, 0x74,
+ 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59, 0x0a, 0x07, 0x63, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x62, 0x79, 0x74,
0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61,
0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69,
0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05,
- 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa3, 0x02, 0x0a, 0x13, 0x53, 0x65,
- 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x12, 0x43, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
- 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52,
- 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0xc6, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e,
- 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a,
- 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
- 0x39, 0x0a, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x5f,
- 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x16, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x41,
- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x66, 0x75,
- 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,
- 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x66, 0x75, 0x6c, 0x6c,
- 0x4d, 0x61, 0x73, 0x6b, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22,
- 0xee, 0x08, 0x0a, 0x17, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72,
- 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x4e, 0x0a, 0x0a, 0x61,
- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61,
- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65,
- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52,
- 0x0a, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x1a, 0x82, 0x08, 0x0a, 0x09,
- 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x73, 0x1a, 0xcf, 0x05, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61,
+ 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
+ 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x5d, 0x0a, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c,
+ 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69,
+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
+ 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x06,
+ 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x7b, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x53,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,
+ 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73,
+ 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
+ 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e,
+ 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x1a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x1a, 0x4f, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
+ 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
+ 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
+ 0x6f, 0x6e, 0x1a, 0x89, 0x01, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73,
+ 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,
0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,
0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
- 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x56, 0x0a,
- 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x37, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d,
- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53,
- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d,
- 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c,
- 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x59, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d,
- 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41,
- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
- 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d,
- 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b,
- 0x12, 0x53, 0x0a, 0x08, 0x6d, 0x64, 0x35, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,
- 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,
- 0x68, 0x6d, 0x2e, 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x64,
- 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x69, 0x0a, 0x10, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6f,
- 0x75, 0x74, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x3d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61,
+ 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x64, 0x88, 0x01,
+ 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x1a, 0x95,
+ 0x01, 0x0a, 0x13, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x68, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x52, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69,
+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
+ 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61,
+ 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa3, 0x02, 0x0a, 0x13, 0x53, 0x65, 0x6d, 0x61, 0x6e,
+ 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x43,
+ 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61,
+ 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
+ 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79,
+ 0x70, 0x65, 0x73, 0x1a, 0xc6, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x19,
+ 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x6c, 0x67,
+ 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x16, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x41, 0x6c, 0x67, 0x6f,
+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x5f,
+ 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69,
+ 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73,
+ 0x6b, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0xee, 0x08, 0x0a,
+ 0x17, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,
+ 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x4e, 0x0a, 0x0a, 0x61, 0x6c, 0x67, 0x6f,
+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,
+ 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x0a, 0x61, 0x6c,
+ 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x1a, 0x82, 0x08, 0x0a, 0x09, 0x41, 0x6c, 0x67,
+ 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b,
+ 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a,
+ 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x56, 0x0a, 0x09, 0x66, 0x75,
+ 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b,
+ 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x46, 0x75,
+ 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61,
+ 0x73, 0x6b, 0x12, 0x59, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f,
+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67,
+ 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b,
+ 0x48, 0x00, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x53, 0x0a,
+ 0x08, 0x6d, 0x64, 0x35, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x36, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61,
0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65,
0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e,
- 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00,
- 0x52, 0x0e, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b,
- 0x1a, 0x2e, 0x0a, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x22, 0x0a, 0x0c,
- 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e,
- 0x1a, 0xb8, 0x01, 0x0a, 0x09, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x56,
- 0x0a, 0x06, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73,
- 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52,
- 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x06,
- 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x05, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12,
- 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
- 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74,
- 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73,
- 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d, 0x0a, 0x07, 0x4d,
- 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x1a, 0x8b, 0x02, 0x0a, 0x0e, 0x49,
- 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x1d, 0x0a,
- 0x0a, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a,
- 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x09, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x5a, 0x0a, 0x04, 0x74,
- 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x46, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41,
- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
- 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f,
- 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70,
- 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74,
- 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73,
- 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x08, 0x4d,
- 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x5f,
- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
- 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a,
- 0x05, 0x4f, 0x55, 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b,
- 0x22, 0x33, 0x0a, 0x1b, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x53, 0x51, 0x4c, 0x52, 0x65,
- 0x73, 0x75, 0x6c, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
- 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
- 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x43, 0x49, 0x4d, 0x53, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65,
- 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41,
- 0x4e, 0x47, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49,
- 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02,
- 0x32, 0xae, 0x03, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,
- 0x69, 0x63, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x64, 0x35, 0x4d, 0x61,
+ 0x73, 0x6b, 0x12, 0x69, 0x0a, 0x10, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74, 0x65,
+ 0x72, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,
+ 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e,
+ 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x69,
+ 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x1a, 0x2e, 0x0a,
+ 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62,
+ 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xb8, 0x01,
+ 0x0a, 0x09, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x56, 0x0a, 0x06, 0x73,
+ 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,
+ 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67,
+ 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6c, 0x69,
+ 0x63, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x05, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05,
+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61,
+ 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x03, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73,
+ 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d, 0x0a, 0x07, 0x4d, 0x44, 0x35, 0x4d,
+ 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x1a, 0x8b, 0x02, 0x0a, 0x0e, 0x49, 0x6e, 0x6e, 0x65,
+ 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72,
+ 0x65, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
+ 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x75, 0x66,
+ 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73,
+ 0x75, 0x66, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x5a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x46, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f,
+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67,
+ 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65,
+ 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
+ 0x74, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73,
+ 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x08, 0x4d, 0x61, 0x73, 0x6b,
+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50,
+ 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
+ 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x55,
+ 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x33, 0x0a,
+ 0x1b, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05,
+ 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d,
+ 0x69, 0x74, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x43, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8e, 0x03, 0x0a, 0x1a, 0x50, 0x61, 0x73, 0x73,
+ 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65,
+ 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c,
+ 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
+ 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72,
+ 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e,
+ 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4c, 0x65, 0x74,
+ 0x74, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x75,
+ 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x70,
+ 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a,
+ 0x19, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c,
+ 0x5f, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
+ 0x52, 0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c,
+ 0x43, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x26, 0x72, 0x65, 0x71,
+ 0x75, 0x69, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77,
+ 0x6f, 0x72, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c, 0x6f,
+ 0x67, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x21, 0x72, 0x65, 0x71, 0x75, 0x69,
+ 0x72, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46,
+ 0x6f, 0x72, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x28, 0x0a, 0x0d,
+ 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44,
+ 0x61, 0x79, 0x73, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x72, 0x6f, 0x74, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24,
+ 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47,
+ 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45,
+ 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x32, 0xae,
+ 0x03, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x12, 0x84, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x00, 0x8a, 0xea,
- 0x30, 0x10, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x6c, 0x69,
- 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76,
- 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x7f, 0x0a, 0x0a, 0x47, 0x65,
- 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x3b,
- 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65,
- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x0d,
- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73,
- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x98,
- 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
- 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a,
- 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67,
- 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x10,
+ 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74,
+ 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f,
+ 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x7f, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x3b, 0xda, 0x41,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65,
+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x0d, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30,
+ 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42,
+ 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f,
+ 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -3702,7 +3850,7 @@ func file_v1_setting_service_proto_rawDescGZIP() []byte {
}
var file_v1_setting_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
-var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
+var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 41)
var file_v1_setting_service_proto_goTypes = []any{
(DatabaseChangeMode)(0), // 0: bytebase.v1.DatabaseChangeMode
(SMTPMailDeliverySettingValue_Encryption)(0), // 1: bytebase.v1.SMTPMailDeliverySettingValue.Encryption
@@ -3730,42 +3878,43 @@ var file_v1_setting_service_proto_goTypes = []any{
(*MaskingAlgorithmSetting)(nil), // 23: bytebase.v1.MaskingAlgorithmSetting
(*MaximumSQLResultSizeSetting)(nil), // 24: bytebase.v1.MaximumSQLResultSizeSetting
(*SCIMSetting)(nil), // 25: bytebase.v1.SCIMSetting
- (*AppIMSetting_Slack)(nil), // 26: bytebase.v1.AppIMSetting.Slack
- (*AppIMSetting_Feishu)(nil), // 27: bytebase.v1.AppIMSetting.Feishu
- (*AppIMSetting_Wecom)(nil), // 28: bytebase.v1.AppIMSetting.Wecom
- (*WorkspaceApprovalSetting_Rule)(nil), // 29: bytebase.v1.WorkspaceApprovalSetting.Rule
- (*ExternalApprovalSetting_Node)(nil), // 30: bytebase.v1.ExternalApprovalSetting.Node
- (*SchemaTemplateSetting_FieldTemplate)(nil), // 31: bytebase.v1.SchemaTemplateSetting.FieldTemplate
- (*SchemaTemplateSetting_ColumnType)(nil), // 32: bytebase.v1.SchemaTemplateSetting.ColumnType
- (*SchemaTemplateSetting_TableTemplate)(nil), // 33: bytebase.v1.SchemaTemplateSetting.TableTemplate
- (*DataClassificationSetting_DataClassificationConfig)(nil), // 34: bytebase.v1.DataClassificationSetting.DataClassificationConfig
- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 35: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 36: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
- nil, // 37: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- (*SemanticTypeSetting_SemanticType)(nil), // 38: bytebase.v1.SemanticTypeSetting.SemanticType
- (*MaskingAlgorithmSetting_Algorithm)(nil), // 39: bytebase.v1.MaskingAlgorithmSetting.Algorithm
- (*MaskingAlgorithmSetting_Algorithm_FullMask)(nil), // 40: bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask
- (*MaskingAlgorithmSetting_Algorithm_RangeMask)(nil), // 41: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask
- (*MaskingAlgorithmSetting_Algorithm_MD5Mask)(nil), // 42: bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask
- (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask)(nil), // 43: bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
- (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice)(nil), // 44: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
- (*fieldmaskpb.FieldMask)(nil), // 45: google.protobuf.FieldMask
- (*durationpb.Duration)(nil), // 46: google.protobuf.Duration
- (*timestamppb.Timestamp)(nil), // 47: google.protobuf.Timestamp
- (PlanType)(0), // 48: bytebase.v1.PlanType
- (*ApprovalTemplate)(nil), // 49: bytebase.v1.ApprovalTemplate
- (*expr.Expr)(nil), // 50: google.type.Expr
- (Engine)(0), // 51: bytebase.v1.Engine
- (*ColumnMetadata)(nil), // 52: bytebase.v1.ColumnMetadata
- (*ColumnConfig)(nil), // 53: bytebase.v1.ColumnConfig
- (*TableMetadata)(nil), // 54: bytebase.v1.TableMetadata
- (*TableConfig)(nil), // 55: bytebase.v1.TableConfig
+ (*PasswordRestrictionSetting)(nil), // 26: bytebase.v1.PasswordRestrictionSetting
+ (*AppIMSetting_Slack)(nil), // 27: bytebase.v1.AppIMSetting.Slack
+ (*AppIMSetting_Feishu)(nil), // 28: bytebase.v1.AppIMSetting.Feishu
+ (*AppIMSetting_Wecom)(nil), // 29: bytebase.v1.AppIMSetting.Wecom
+ (*WorkspaceApprovalSetting_Rule)(nil), // 30: bytebase.v1.WorkspaceApprovalSetting.Rule
+ (*ExternalApprovalSetting_Node)(nil), // 31: bytebase.v1.ExternalApprovalSetting.Node
+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 32: bytebase.v1.SchemaTemplateSetting.FieldTemplate
+ (*SchemaTemplateSetting_ColumnType)(nil), // 33: bytebase.v1.SchemaTemplateSetting.ColumnType
+ (*SchemaTemplateSetting_TableTemplate)(nil), // 34: bytebase.v1.SchemaTemplateSetting.TableTemplate
+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 35: bytebase.v1.DataClassificationSetting.DataClassificationConfig
+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 36: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 37: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
+ nil, // 38: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ (*SemanticTypeSetting_SemanticType)(nil), // 39: bytebase.v1.SemanticTypeSetting.SemanticType
+ (*MaskingAlgorithmSetting_Algorithm)(nil), // 40: bytebase.v1.MaskingAlgorithmSetting.Algorithm
+ (*MaskingAlgorithmSetting_Algorithm_FullMask)(nil), // 41: bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask
+ (*MaskingAlgorithmSetting_Algorithm_RangeMask)(nil), // 42: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask
+ (*MaskingAlgorithmSetting_Algorithm_MD5Mask)(nil), // 43: bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask
+ (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask)(nil), // 44: bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
+ (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice)(nil), // 45: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
+ (*fieldmaskpb.FieldMask)(nil), // 46: google.protobuf.FieldMask
+ (*durationpb.Duration)(nil), // 47: google.protobuf.Duration
+ (*timestamppb.Timestamp)(nil), // 48: google.protobuf.Timestamp
+ (PlanType)(0), // 49: bytebase.v1.PlanType
+ (*ApprovalTemplate)(nil), // 50: bytebase.v1.ApprovalTemplate
+ (*expr.Expr)(nil), // 51: google.type.Expr
+ (Engine)(0), // 52: bytebase.v1.Engine
+ (*ColumnMetadata)(nil), // 53: bytebase.v1.ColumnMetadata
+ (*ColumnConfig)(nil), // 54: bytebase.v1.ColumnConfig
+ (*TableMetadata)(nil), // 55: bytebase.v1.TableMetadata
+ (*TableConfig)(nil), // 56: bytebase.v1.TableConfig
}
var file_v1_setting_service_proto_depIdxs = []int32{
10, // 0: bytebase.v1.ListSettingsResponse.settings:type_name -> bytebase.v1.Setting
10, // 1: bytebase.v1.GetSettingResponse.setting:type_name -> bytebase.v1.Setting
10, // 2: bytebase.v1.UpdateSettingRequest.setting:type_name -> bytebase.v1.Setting
- 45, // 3: bytebase.v1.UpdateSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 46, // 3: bytebase.v1.UpdateSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
11, // 4: bytebase.v1.Setting.value:type_name -> bytebase.v1.Value
12, // 5: bytebase.v1.Value.smtp_mail_delivery_setting_value:type_name -> bytebase.v1.SMTPMailDeliverySettingValue
13, // 6: bytebase.v1.Value.app_im_setting_value:type_name -> bytebase.v1.AppIMSetting
@@ -3780,56 +3929,57 @@ var file_v1_setting_service_proto_depIdxs = []int32{
23, // 15: bytebase.v1.Value.masking_algorithm_setting_value:type_name -> bytebase.v1.MaskingAlgorithmSetting
24, // 16: bytebase.v1.Value.maximum_sql_result_size_setting:type_name -> bytebase.v1.MaximumSQLResultSizeSetting
25, // 17: bytebase.v1.Value.scim_setting:type_name -> bytebase.v1.SCIMSetting
- 1, // 18: bytebase.v1.SMTPMailDeliverySettingValue.encryption:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Encryption
- 2, // 19: bytebase.v1.SMTPMailDeliverySettingValue.authentication:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Authentication
- 26, // 20: bytebase.v1.AppIMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack
- 27, // 21: bytebase.v1.AppIMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu
- 28, // 22: bytebase.v1.AppIMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom
- 46, // 23: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
- 16, // 24: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement
- 46, // 25: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
- 0, // 26: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode
- 3, // 27: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel
- 29, // 28: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule
- 30, // 29: bytebase.v1.ExternalApprovalSetting.nodes:type_name -> bytebase.v1.ExternalApprovalSetting.Node
- 31, // 30: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate
- 32, // 31: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType
- 33, // 32: bytebase.v1.SchemaTemplateSetting.table_templates:type_name -> bytebase.v1.SchemaTemplateSetting.TableTemplate
- 47, // 33: bytebase.v1.WorkspaceTrialSetting.expire_time:type_name -> google.protobuf.Timestamp
- 47, // 34: bytebase.v1.WorkspaceTrialSetting.issued_time:type_name -> google.protobuf.Timestamp
- 48, // 35: bytebase.v1.WorkspaceTrialSetting.plan:type_name -> bytebase.v1.PlanType
- 34, // 36: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig
- 38, // 37: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType
- 39, // 38: bytebase.v1.MaskingAlgorithmSetting.algorithms:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm
- 49, // 39: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate
- 50, // 40: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
- 51, // 41: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine
- 52, // 42: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata
- 53, // 43: bytebase.v1.SchemaTemplateSetting.FieldTemplate.config:type_name -> bytebase.v1.ColumnConfig
- 51, // 44: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine
- 51, // 45: bytebase.v1.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.v1.Engine
- 54, // 46: bytebase.v1.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.v1.TableMetadata
- 55, // 47: bytebase.v1.SchemaTemplateSetting.TableTemplate.config:type_name -> bytebase.v1.TableConfig
- 35, // 48: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
- 37, // 49: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- 36, // 50: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
- 40, // 51: bytebase.v1.MaskingAlgorithmSetting.Algorithm.full_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask
- 41, // 52: bytebase.v1.MaskingAlgorithmSetting.Algorithm.range_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask
- 42, // 53: bytebase.v1.MaskingAlgorithmSetting.Algorithm.md5_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask
- 43, // 54: bytebase.v1.MaskingAlgorithmSetting.Algorithm.inner_outer_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
- 44, // 55: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.slices:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
- 4, // 56: bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
- 5, // 57: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest
- 7, // 58: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest
- 9, // 59: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest
- 6, // 60: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse
- 10, // 61: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting
- 10, // 62: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting
- 60, // [60:63] is the sub-list for method output_type
- 57, // [57:60] is the sub-list for method input_type
- 57, // [57:57] is the sub-list for extension type_name
- 57, // [57:57] is the sub-list for extension extendee
- 0, // [0:57] is the sub-list for field type_name
+ 26, // 18: bytebase.v1.Value.password_restriction_setting:type_name -> bytebase.v1.PasswordRestrictionSetting
+ 1, // 19: bytebase.v1.SMTPMailDeliverySettingValue.encryption:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Encryption
+ 2, // 20: bytebase.v1.SMTPMailDeliverySettingValue.authentication:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Authentication
+ 27, // 21: bytebase.v1.AppIMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack
+ 28, // 22: bytebase.v1.AppIMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu
+ 29, // 23: bytebase.v1.AppIMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom
+ 47, // 24: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
+ 16, // 25: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement
+ 47, // 26: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
+ 0, // 27: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode
+ 3, // 28: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel
+ 30, // 29: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule
+ 31, // 30: bytebase.v1.ExternalApprovalSetting.nodes:type_name -> bytebase.v1.ExternalApprovalSetting.Node
+ 32, // 31: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate
+ 33, // 32: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType
+ 34, // 33: bytebase.v1.SchemaTemplateSetting.table_templates:type_name -> bytebase.v1.SchemaTemplateSetting.TableTemplate
+ 48, // 34: bytebase.v1.WorkspaceTrialSetting.expire_time:type_name -> google.protobuf.Timestamp
+ 48, // 35: bytebase.v1.WorkspaceTrialSetting.issued_time:type_name -> google.protobuf.Timestamp
+ 49, // 36: bytebase.v1.WorkspaceTrialSetting.plan:type_name -> bytebase.v1.PlanType
+ 35, // 37: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig
+ 39, // 38: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType
+ 40, // 39: bytebase.v1.MaskingAlgorithmSetting.algorithms:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm
+ 50, // 40: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate
+ 51, // 41: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
+ 52, // 42: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine
+ 53, // 43: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata
+ 54, // 44: bytebase.v1.SchemaTemplateSetting.FieldTemplate.config:type_name -> bytebase.v1.ColumnConfig
+ 52, // 45: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine
+ 52, // 46: bytebase.v1.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.v1.Engine
+ 55, // 47: bytebase.v1.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.v1.TableMetadata
+ 56, // 48: bytebase.v1.SchemaTemplateSetting.TableTemplate.config:type_name -> bytebase.v1.TableConfig
+ 36, // 49: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
+ 38, // 50: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ 37, // 51: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
+ 41, // 52: bytebase.v1.MaskingAlgorithmSetting.Algorithm.full_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask
+ 42, // 53: bytebase.v1.MaskingAlgorithmSetting.Algorithm.range_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask
+ 43, // 54: bytebase.v1.MaskingAlgorithmSetting.Algorithm.md5_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask
+ 44, // 55: bytebase.v1.MaskingAlgorithmSetting.Algorithm.inner_outer_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
+ 45, // 56: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.slices:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
+ 4, // 57: bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
+ 5, // 58: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest
+ 7, // 59: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest
+ 9, // 60: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest
+ 6, // 61: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse
+ 10, // 62: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting
+ 10, // 63: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting
+ 61, // [61:64] is the sub-list for method output_type
+ 58, // [58:61] is the sub-list for method input_type
+ 58, // [58:58] is the sub-list for extension type_name
+ 58, // [58:58] is the sub-list for extension extendee
+ 0, // [0:58] is the sub-list for field type_name
}
func init() { file_v1_setting_service_proto_init() }
@@ -4096,7 +4246,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
- switch v := v.(*AppIMSetting_Slack); i {
+ switch v := v.(*PasswordRestrictionSetting); i {
case 0:
return &v.state
case 1:
@@ -4108,7 +4258,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[22].Exporter = func(v any, i int) any {
- switch v := v.(*AppIMSetting_Feishu); i {
+ switch v := v.(*AppIMSetting_Slack); i {
case 0:
return &v.state
case 1:
@@ -4120,7 +4270,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[23].Exporter = func(v any, i int) any {
- switch v := v.(*AppIMSetting_Wecom); i {
+ switch v := v.(*AppIMSetting_Feishu); i {
case 0:
return &v.state
case 1:
@@ -4132,7 +4282,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[24].Exporter = func(v any, i int) any {
- switch v := v.(*WorkspaceApprovalSetting_Rule); i {
+ switch v := v.(*AppIMSetting_Wecom); i {
case 0:
return &v.state
case 1:
@@ -4144,7 +4294,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[25].Exporter = func(v any, i int) any {
- switch v := v.(*ExternalApprovalSetting_Node); i {
+ switch v := v.(*WorkspaceApprovalSetting_Rule); i {
case 0:
return &v.state
case 1:
@@ -4156,7 +4306,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[26].Exporter = func(v any, i int) any {
- switch v := v.(*SchemaTemplateSetting_FieldTemplate); i {
+ switch v := v.(*ExternalApprovalSetting_Node); i {
case 0:
return &v.state
case 1:
@@ -4168,7 +4318,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[27].Exporter = func(v any, i int) any {
- switch v := v.(*SchemaTemplateSetting_ColumnType); i {
+ switch v := v.(*SchemaTemplateSetting_FieldTemplate); i {
case 0:
return &v.state
case 1:
@@ -4180,7 +4330,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[28].Exporter = func(v any, i int) any {
- switch v := v.(*SchemaTemplateSetting_TableTemplate); i {
+ switch v := v.(*SchemaTemplateSetting_ColumnType); i {
case 0:
return &v.state
case 1:
@@ -4192,7 +4342,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[29].Exporter = func(v any, i int) any {
- switch v := v.(*DataClassificationSetting_DataClassificationConfig); i {
+ switch v := v.(*SchemaTemplateSetting_TableTemplate); i {
case 0:
return &v.state
case 1:
@@ -4204,7 +4354,7 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[30].Exporter = func(v any, i int) any {
- switch v := v.(*DataClassificationSetting_DataClassificationConfig_Level); i {
+ switch v := v.(*DataClassificationSetting_DataClassificationConfig); i {
case 0:
return &v.state
case 1:
@@ -4216,6 +4366,18 @@ func file_v1_setting_service_proto_init() {
}
}
file_v1_setting_service_proto_msgTypes[31].Exporter = func(v any, i int) any {
+ switch v := v.(*DataClassificationSetting_DataClassificationConfig_Level); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_setting_service_proto_msgTypes[32].Exporter = func(v any, i int) any {
switch v := v.(*DataClassificationSetting_DataClassificationConfig_DataClassification); i {
case 0:
return &v.state
@@ -4227,7 +4389,7 @@ func file_v1_setting_service_proto_init() {
return nil
}
}
- file_v1_setting_service_proto_msgTypes[33].Exporter = func(v any, i int) any {
+ file_v1_setting_service_proto_msgTypes[34].Exporter = func(v any, i int) any {
switch v := v.(*SemanticTypeSetting_SemanticType); i {
case 0:
return &v.state
@@ -4239,7 +4401,7 @@ func file_v1_setting_service_proto_init() {
return nil
}
}
- file_v1_setting_service_proto_msgTypes[34].Exporter = func(v any, i int) any {
+ file_v1_setting_service_proto_msgTypes[35].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm); i {
case 0:
return &v.state
@@ -4251,7 +4413,7 @@ func file_v1_setting_service_proto_init() {
return nil
}
}
- file_v1_setting_service_proto_msgTypes[35].Exporter = func(v any, i int) any {
+ file_v1_setting_service_proto_msgTypes[36].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_FullMask); i {
case 0:
return &v.state
@@ -4263,7 +4425,7 @@ func file_v1_setting_service_proto_init() {
return nil
}
}
- file_v1_setting_service_proto_msgTypes[36].Exporter = func(v any, i int) any {
+ file_v1_setting_service_proto_msgTypes[37].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_RangeMask); i {
case 0:
return &v.state
@@ -4275,7 +4437,7 @@ func file_v1_setting_service_proto_init() {
return nil
}
}
- file_v1_setting_service_proto_msgTypes[37].Exporter = func(v any, i int) any {
+ file_v1_setting_service_proto_msgTypes[38].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_MD5Mask); i {
case 0:
return &v.state
@@ -4287,7 +4449,7 @@ func file_v1_setting_service_proto_init() {
return nil
}
}
- file_v1_setting_service_proto_msgTypes[38].Exporter = func(v any, i int) any {
+ file_v1_setting_service_proto_msgTypes[39].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_InnerOuterMask); i {
case 0:
return &v.state
@@ -4299,7 +4461,7 @@ func file_v1_setting_service_proto_init() {
return nil
}
}
- file_v1_setting_service_proto_msgTypes[39].Exporter = func(v any, i int) any {
+ file_v1_setting_service_proto_msgTypes[40].Exporter = func(v any, i int) any {
switch v := v.(*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice); i {
case 0:
return &v.state
@@ -4327,10 +4489,12 @@ func file_v1_setting_service_proto_init() {
(*Value_MaskingAlgorithmSettingValue)(nil),
(*Value_MaximumSqlResultSizeSetting)(nil),
(*Value_ScimSetting)(nil),
+ (*Value_PasswordRestrictionSetting)(nil),
}
file_v1_setting_service_proto_msgTypes[7].OneofWrappers = []any{}
- file_v1_setting_service_proto_msgTypes[31].OneofWrappers = []any{}
- file_v1_setting_service_proto_msgTypes[34].OneofWrappers = []any{
+ file_v1_setting_service_proto_msgTypes[21].OneofWrappers = []any{}
+ file_v1_setting_service_proto_msgTypes[32].OneofWrappers = []any{}
+ file_v1_setting_service_proto_msgTypes[35].OneofWrappers = []any{
(*MaskingAlgorithmSetting_Algorithm_FullMask_)(nil),
(*MaskingAlgorithmSetting_Algorithm_RangeMask_)(nil),
(*MaskingAlgorithmSetting_Algorithm_Md5Mask)(nil),
@@ -4342,7 +4506,7 @@ func file_v1_setting_service_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_setting_service_proto_rawDesc,
NumEnums: 5,
- NumMessages: 40,
+ NumMessages: 41,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/store/setting.proto b/proto/store/setting.proto
index 4d4157a9ac..a5473ec5d4 100644
--- a/proto/store/setting.proto
+++ b/proto/store/setting.proto
@@ -353,3 +353,20 @@ message MaximumSQLResultSizeSetting {
message SCIMSetting {
string token = 1;
}
+
+message PasswordRestrictionSetting {
+ // min_length is the minimum length for password, should no less than 8.
+ int32 min_length = 1;
+ // require_number requires the password must contains at least one number.
+ bool require_number = 2;
+ // require_letter requires the password must contains at least one letter, regardless of upper case or lower case
+ bool require_letter = 3;
+ // require_uppercase_letter requires the password must contains at least one upper case letter.
+ bool require_uppercase_letter = 4;
+ // require_uppercase_letter requires the password must contains at least one special character.
+ bool require_special_character = 5;
+ // require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ bool require_reset_password_for_first_login = 6;
+ // rotation_days requires users to reset their password after n days.
+ optional int32 rotation_days = 7;
+}
diff --git a/proto/v1/setting_service.proto b/proto/v1/setting_service.proto
index 65714683c1..e066c50f4d 100644
--- a/proto/v1/setting_service.proto
+++ b/proto/v1/setting_service.proto
@@ -132,6 +132,7 @@ message Value {
MaskingAlgorithmSetting masking_algorithm_setting_value = 12;
MaximumSQLResultSizeSetting maximum_sql_result_size_setting = 13;
SCIMSetting scim_setting = 14;
+ PasswordRestrictionSetting password_restriction_setting = 15;
}
}
@@ -484,3 +485,20 @@ message MaximumSQLResultSizeSetting {
message SCIMSetting {
string token = 1;
}
+
+message PasswordRestrictionSetting {
+ // min_length is the minimum length for password, should no less than 8.
+ int32 min_length = 1;
+ // require_number requires the password must contains at least one number.
+ bool require_number = 2;
+ // require_letter requires the password must contains at least one letter, regardless of upper case or lower case
+ bool require_letter = 3;
+ // require_uppercase_letter requires the password must contains at least one upper case letter.
+ bool require_uppercase_letter = 4;
+ // require_uppercase_letter requires the password must contains at least one special character.
+ bool require_special_character = 5;
+ // require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ bool require_reset_password_for_first_login = 6;
+ // rotation_days requires users to reset their password after n days.
+ optional int32 rotation_days = 7;
+}