Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: remove backup and restore (#11218)
Danny Xue4ac89872b6a
diff --git a/backend/api/v1/acl_config.go b/backend/api/v1/acl_config.goindex d121890a51..b3c28c9f59 100644--- a/backend/api/v1/acl_config.go+++ b/backend/api/v1/acl_config.go@@ -31,10 +31,6 @@ var methodPermissionMap = map[string]iam.Permission{v1pb.DatabaseService_UpdateDatabaseMetadata_FullMethodName: iam.PermissionDatabasesUpdate,v1pb.DatabaseService_GetDatabaseSchema_FullMethodName: iam.PermissionDatabasesGetSchema,v1pb.DatabaseService_DiffSchema_FullMethodName: iam.PermissionChangeHistoriesGet,- v1pb.DatabaseService_GetBackupSetting_FullMethodName: iam.PermissionDatabasesGetBackupSetting,- v1pb.DatabaseService_UpdateBackupSetting_FullMethodName: iam.PermissionDatabasesUpdateBackupSetting,- v1pb.DatabaseService_CreateBackup_FullMethodName: iam.PermissionBackupsCreate,- v1pb.DatabaseService_ListBackups_FullMethodName: iam.PermissionBackupsList,v1pb.DatabaseService_ListSlowQueries_FullMethodName: iam.PermissionSlowQueriesList,v1pb.DatabaseService_ListSecrets_FullMethodName: iam.PermissionDatabaseSecretsList,v1pb.DatabaseService_UpdateSecret_FullMethodName: iam.PermissionDatabaseSecretsUpdate,@@ -48,7 +44,6 @@ var methodPermissionMap = map[string]iam.Permission{v1pb.EnvironmentService_UndeleteEnvironment_FullMethodName: iam.PermissionEnvironmentsUndelete,v1pb.EnvironmentService_GetEnvironment_FullMethodName: iam.PermissionEnvironmentsGet,v1pb.EnvironmentService_ListEnvironments_FullMethodName: iam.PermissionEnvironmentsList,- v1pb.EnvironmentService_UpdateBackupSetting_FullMethodName: iam.PermissionEnvironmentsUpdate,// XXX: issues.action needs respective plans.action and rollouts.action permissions if the issue type is change database.v1pb.IssueService_CreateIssue_FullMethodName: iam.PermissionIssuesCreate,diff --git a/backend/api/v1/acl_iam.go b/backend/api/v1/acl_iam.goindex c906c748a5..4147ceb74a 100644--- a/backend/api/v1/acl_iam.go+++ b/backend/api/v1/acl_iam.go@@ -223,7 +223,6 @@ func (in *ACLInterceptor) doIAMPermissionCheck(ctx context.Context, fullMethod sv1pb.EnvironmentService_UndeleteEnvironment_FullMethodName,v1pb.EnvironmentService_GetEnvironment_FullMethodName,v1pb.EnvironmentService_ListEnvironments_FullMethodName,- v1pb.EnvironmentService_UpdateBackupSetting_FullMethodName,v1pb.SettingService_ListSettings_FullMethodName,v1pb.SettingService_GetSetting_FullMethodName,v1pb.SettingService_UpdateSetting_FullMethodName,@@ -267,10 +266,6 @@ func (in *ACLInterceptor) doIAMPermissionCheck(ctx context.Context, fullMethod sv1pb.DatabaseService_GetDatabaseMetadata_FullMethodName,v1pb.DatabaseService_UpdateDatabaseMetadata_FullMethodName,v1pb.DatabaseService_GetDatabaseSchema_FullMethodName,- v1pb.DatabaseService_GetBackupSetting_FullMethodName,- v1pb.DatabaseService_UpdateBackupSetting_FullMethodName,- v1pb.DatabaseService_CreateBackup_FullMethodName,- v1pb.DatabaseService_ListBackups_FullMethodName,v1pb.DatabaseService_ListSecrets_FullMethodName,v1pb.DatabaseService_UpdateSecret_FullMethodName,v1pb.DatabaseService_DeleteSecret_FullMethodName,@@ -652,22 +647,6 @@ func (in *ACLInterceptor) getProjectIDsForDatabaseService(ctx context.Context, rreturn nil, errors.Wrapf(err, "failed to get databaseName from %q", r.GetName())}databaseNames = append(databaseNames, databaseName)- case *v1pb.GetBackupSettingRequest:- databaseName, err := common.TrimSuffix(r.GetName(), "/backupSetting")- if err != nil {- return nil, errors.Wrapf(err, "failed to get databaseName from %q", r.GetName())- }- databaseNames = append(databaseNames, databaseName)- case *v1pb.UpdateBackupSettingRequest:- databaseName, err := common.TrimSuffix(r.GetSetting().GetName(), "/backupSetting")- if err != nil {- return nil, errors.Wrapf(err, "failed to get databaseName from %q", r.GetSetting().GetName())- }- databaseNames = append(databaseNames, databaseName)- case *v1pb.CreateBackupRequest:- databaseNames = append(databaseNames, r.GetParent())- case *v1pb.ListBackupsRequest:- databaseNames = append(databaseNames, r.GetParent())case *v1pb.ListSecretsRequest:databaseNames = append(databaseNames, r.GetParent())case *v1pb.UpdateSecretRequest:diff --git a/backend/api/v1/anomaly_service.go b/backend/api/v1/anomaly_service.goindex 5ab58bd4fc..9b70b3fa93 100644--- a/backend/api/v1/anomaly_service.go+++ b/backend/api/v1/anomaly_service.go@@ -24,12 +24,10 @@ const ()var typesMap = map[string]api.AnomalyType{- "INSTANCE_CONNECTION": api.AnomalyInstanceConnection,- "MIGRATION_SCHEMA": api.AnomalyInstanceMigrationSchema,- "DATABASE_BACKUP_POLICY_VIOLATION": api.AnomalyDatabaseBackupPolicyViolation,- "DATABASE_BACKUP_MISSING": api.AnomalyDatabaseBackupMissing,- "DATABASE_CONNECTION": api.AnomalyDatabaseConnection,- "DATABASE_SCHEMA_DRIFT": api.AnomalyDatabaseSchemaDrift,+ "INSTANCE_CONNECTION": api.AnomalyInstanceConnection,+ "MIGRATION_SCHEMA": api.AnomalyInstanceMigrationSchema,+ "DATABASE_CONNECTION": api.AnomalyDatabaseConnection,+ "DATABASE_SCHEMA_DRIFT": api.AnomalyDatabaseSchemaDrift,}// AnomalyService implements the anomaly service.@@ -161,39 +159,6 @@ func (s *AnomalyService) convertToAnomaly(ctx context.Context, anomaly *store.AnDetail: detail.Detail,},}- case api.AnomalyDatabaseBackupPolicyViolation:- var detail api.AnomalyDatabaseBackupPolicyViolationPayload- if err := json.Unmarshal([]byte(anomaly.Payload), &detail); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal database backup policy violation anomaly payload")- }- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{- UID: &detail.EnvironmentID,- })- if err != nil {- return nil, errors.Wrapf(err, "failed to find environment with id %d", detail.EnvironmentID)- }- pbAnomaly.Type = v1pb.Anomaly_DATABASE_BACKUP_POLICY_VIOLATION- pbAnomaly.Detail = &v1pb.Anomaly_DatabaseBackupPolicyViolationDetail_{- DatabaseBackupPolicyViolationDetail: &v1pb.Anomaly_DatabaseBackupPolicyViolationDetail{- // The instance are bind to a specify environment, and cannot be moved to another environment in Bytebase.- // So it's safe to use environmentID here.- Parent: fmt.Sprintf("%s%s", common.EnvironmentNamePrefix, environment.ResourceID),- ExpectedSchedule: convertBackupPlanSchedule(detail.ExpectedBackupSchedule),- ActualSchedule: convertBackupPlanSchedule(detail.ActualBackupSchedule),- },- }- case api.AnomalyDatabaseBackupMissing:- var detail api.AnomalyDatabaseBackupMissingPayload- if err := json.Unmarshal([]byte(anomaly.Payload), &detail); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal database backup missing anomaly payload")- }- pbAnomaly.Type = v1pb.Anomaly_DATABASE_BACKUP_MISSING- pbAnomaly.Detail = &v1pb.Anomaly_DatabaseBackupMissingDetail_{- DatabaseBackupMissingDetail: &v1pb.Anomaly_DatabaseBackupMissingDetail{- ExpectedSchedule: convertBackupPlanSchedule(detail.ExpectedBackupSchedule),- LatestBackupTime: timestamppb.New(time.Unix(detail.LastBackupTs, 0)),- },- }case api.AnomalyDatabaseConnection:var detail api.AnomalyDatabaseConnectionPayloadif err := json.Unmarshal([]byte(anomaly.Payload), &detail); err != nil {@@ -225,24 +190,8 @@ func (s *AnomalyService) convertToAnomaly(ctx context.Context, anomaly *store.Anfunc getSeverityFromAnomalyType(tp v1pb.Anomaly_AnomalyType) v1pb.Anomaly_AnomalySeverity {switch tp {- case v1pb.Anomaly_DATABASE_BACKUP_POLICY_VIOLATION:- return v1pb.Anomaly_MEDIUM- case v1pb.Anomaly_DATABASE_BACKUP_MISSING:- return v1pb.Anomaly_HIGHcase v1pb.Anomaly_INSTANCE_CONNECTION, v1pb.Anomaly_MIGRATION_SCHEMA, v1pb.Anomaly_DATABASE_CONNECTION, v1pb.Anomaly_DATABASE_SCHEMA_DRIFT:return v1pb.Anomaly_CRITICAL}return v1pb.Anomaly_ANOMALY_SEVERITY_UNSPECIFIED}--func convertBackupPlanSchedule(s api.BackupPlanPolicySchedule) v1pb.BackupPlanSchedule {- switch s {- case api.BackupPlanPolicyScheduleUnset:- return v1pb.BackupPlanSchedule_UNSET- case api.BackupPlanPolicyScheduleDaily:- return v1pb.BackupPlanSchedule_DAILY- case api.BackupPlanPolicyScheduleWeekly:- return v1pb.BackupPlanSchedule_WEEKLY- }- return v1pb.BackupPlanSchedule_SCHEDULE_UNSPECIFIED-}diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.goindex 676b95192d..0cad418425 100644--- a/backend/api/v1/database_service.go+++ b/backend/api/v1/database_service.go@@ -9,7 +9,6 @@ import ("regexp""slices""sort"- "strconv""strings""time""unicode"@@ -838,178 +837,6 @@ func (s *DatabaseService) GetDatabaseSchema(ctx context.Context, request *v1pb.Greturn &v1pb.DatabaseSchema{Schema: schema}, nil}-// GetBackupSetting gets the backup setting of a database.-func (s *DatabaseService) GetBackupSetting(ctx context.Context, request *v1pb.GetBackupSettingRequest) (*v1pb.BackupSetting, error) {- instanceID, databaseName, err := common.TrimSuffixAndGetInstanceDatabaseID(request.Name, common.BackupSettingSuffix)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{- ResourceID: &instanceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if instance == nil {- return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)- }- database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- InstanceID: &instanceID,- DatabaseName: &databaseName,- IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(instance),- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if database == nil {- return nil, status.Errorf(codes.NotFound, "database %q not found", databaseName)- }- backupSetting, err := s.store.GetBackupSettingV2(ctx, database.UID)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if backupSetting == nil {- // If the backup setting is not found, return the default backup setting.- return getDefaultBackupSetting(instance.ResourceID, database.DatabaseName), nil- }- return convertToBackupSetting(backupSetting, instance.ResourceID, database.DatabaseName)-}--// UpdateBackupSetting updates the backup setting of a database.-func (s *DatabaseService) UpdateBackupSetting(ctx context.Context, request *v1pb.UpdateBackupSettingRequest) (*v1pb.BackupSetting, error) {- instanceID, databaseName, err := common.TrimSuffixAndGetInstanceDatabaseID(request.Setting.Name, common.BackupSettingSuffix)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{- ResourceID: &instanceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if instance == nil {- return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)- }- database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- InstanceID: &instanceID,- DatabaseName: &databaseName,- IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(instance),- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if database == nil {- return nil, status.Errorf(codes.NotFound, "database %q not found", databaseName)- }- backupSetting, err := s.validateAndConvertToStoreBackupSetting(ctx, request.Setting, database)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }- backupSetting, err = s.store.UpsertBackupSettingV2(ctx, principalID, backupSetting)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- return convertToBackupSetting(backupSetting, instance.ResourceID, database.DatabaseName)-}--// ListBackups lists the backups of a database.-func (s *DatabaseService) ListBackups(ctx context.Context, request *v1pb.ListBackupsRequest) (*v1pb.ListBackupsResponse, error) {- instanceID, databaseName, err := common.GetInstanceDatabaseID(request.Parent)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{- ResourceID: &instanceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if instance == nil {- return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)- }- database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- InstanceID: &instanceID,- DatabaseName: &databaseName,- IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(instance),- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if database == nil {- return nil, status.Errorf(codes.NotFound, "database %q not found", databaseName)- }-- rowStatus := api.Normal- existedBackupList, err := s.store.ListBackupV2(ctx, &store.FindBackupMessage{- DatabaseUID: &database.UID,- RowStatus: &rowStatus,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }-- var backupList []*v1pb.Backup- for _, existedBackup := range existedBackupList {- backupList = append(backupList, convertToBackup(existedBackup, instance.ResourceID, database.DatabaseName))- }- return &v1pb.ListBackupsResponse{- Backups: backupList,- }, nil-}--// CreateBackup creates a backup of a database.-func (s *DatabaseService) CreateBackup(ctx context.Context, request *v1pb.CreateBackupRequest) (*v1pb.Backup, error) {- instanceID, databaseName, backupName, err := common.GetInstanceDatabaseIDBackupName(request.Backup.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{- ResourceID: &instanceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if instance == nil {- return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)- }- database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- InstanceID: &instanceID,- DatabaseName: &databaseName,- IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(instance),- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if database == nil {- return nil, status.Errorf(codes.NotFound, "database %q not found", databaseName)- }-- existedBackupList, err := s.store.ListBackupV2(ctx, &store.FindBackupMessage{- DatabaseUID: &database.UID,- Name: &backupName,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if len(existedBackupList) > 0 {- return nil, status.Errorf(codes.AlreadyExists, "backup %q in database %q already exists", backupName, databaseName)- }-- creatorID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }- backup, err := s.backupRunner.ScheduleBackupTask(ctx, database, backupName, api.BackupTypeManual, creatorID)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- return convertToBackup(backup, instanceID, databaseName), nil-}-// ListChangeHistories lists the change histories of a database.func (s *DatabaseService) ListChangeHistories(ctx context.Context, request *v1pb.ListChangeHistoriesRequest) (*v1pb.ListChangeHistoriesResponse, error) {instanceID, databaseName, err := common.GetInstanceDatabaseID(request.Parent)@@ -2012,38 +1839,6 @@ func convertToSlowQueryLog(instanceID string, databaseName string, projectID str}}-func convertToBackup(backup *store.BackupMessage, instanceID string, databaseName string) *v1pb.Backup {- createTime := timestamppb.New(time.Unix(backup.CreatedTs, 0))- updateTime := timestamppb.New(time.Unix(backup.UpdatedTs, 0))- backupState := v1pb.Backup_BACKUP_STATE_UNSPECIFIED- switch backup.Status {- case api.BackupStatusPendingCreate:- backupState = v1pb.Backup_PENDING_CREATE- case api.BackupStatusDone:- backupState = v1pb.Backup_DONE- case api.BackupStatusFailed:- backupState = v1pb.Backup_FAILED- }- backupType := v1pb.Backup_BACKUP_TYPE_UNSPECIFIED- switch backup.BackupType {- case api.BackupTypeManual:- backupType = v1pb.Backup_MANUAL- case api.BackupTypeAutomatic:- backupType = v1pb.Backup_AUTOMATIC- case api.BackupTypePITR:- backupType = v1pb.Backup_PITR- }- return &v1pb.Backup{- Name: fmt.Sprintf("%s%s/%s%s/%s%s", common.InstanceNamePrefix, instanceID, common.DatabaseIDPrefix, databaseName, common.BackupPrefix, backup.Name),- CreateTime: createTime,- UpdateTime: updateTime,- State: backupState,- BackupType: backupType,- Comment: backup.Comment,- Uid: fmt.Sprintf("%d", backup.UID),- }-}-func (s *DatabaseService) convertToDatabase(ctx context.Context, database *store.DatabaseMessage) (*v1pb.Database, error) {instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &database.InstanceID,@@ -2130,143 +1925,6 @@ func (s *DatabaseService) createTransferProjectActivity(ctx context.Context, newreturn nil}-func getDefaultBackupSetting(instanceID, databaseName string) *v1pb.BackupSetting {- sevenDays, err := convertPeriodTsToDuration(int(time.Duration(7 * 24 * time.Hour).Seconds()))- if err != nil {- slog.Warn("failed to convert period ts to duration", log.BBError(err))- }- return &v1pb.BackupSetting{- Name: fmt.Sprintf("%s%s/%s%s/%s", common.InstanceNamePrefix, instanceID, common.DatabaseIDPrefix, databaseName, common.BackupSettingSuffix),- BackupRetainDuration: sevenDays,- CronSchedule: "", /* Disable automatic backup */- HookUrl: "",- }-}--func convertToBackupSetting(backupSetting *store.BackupSettingMessage, instanceID, databaseName string) (*v1pb.BackupSetting, error) {- period, err := convertPeriodTsToDuration(backupSetting.RetentionPeriodTs)- if err != nil {- return nil, err- }- cronSchedule := ""- if backupSetting.Enabled {- cronSchedule = buildSimpleCron(backupSetting.HourOfDay, backupSetting.DayOfWeek)- }- return &v1pb.BackupSetting{- Name: fmt.Sprintf("%s%s/%s%s/%s", common.InstanceNamePrefix, instanceID, common.DatabaseIDPrefix, databaseName, common.BackupSettingSuffix),- BackupRetainDuration: period,- CronSchedule: cronSchedule,- HookUrl: backupSetting.HookURL,- }, nil-}--func (s *DatabaseService) validateAndConvertToStoreBackupSetting(ctx context.Context, backupSetting *v1pb.BackupSetting, database *store.DatabaseMessage) (*store.BackupSettingMessage, error) {- enable := backupSetting.CronSchedule != ""- hourOfDay := 0- dayOfWeek := -1- var err error- if enable {- hourOfDay, dayOfWeek, err = parseSimpleCron(backupSetting.CronSchedule)- if err != nil {- return nil, err- }- }- periodTs, err := convertDurationToPeriodTs(backupSetting.BackupRetainDuration)- if err != nil {- return nil, err- }- setting := &store.BackupSettingMessage{- DatabaseUID: database.UID,- Enabled: enable,- HourOfDay: hourOfDay,- DayOfWeek: dayOfWeek,- RetentionPeriodTs: periodTs,- HookURL: backupSetting.HookUrl,- }-- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{- ResourceID: &database.EffectiveEnvironmentID,- ShowDeleted: true,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if environment == nil {- return nil, status.Errorf(codes.NotFound, "environment %q not found", database.EffectiveEnvironmentID)- }- backupPlanPolicy, err := s.store.GetBackupPlanPolicyByEnvID(ctx, environment.UID)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if backupPlanPolicy.Schedule != api.BackupPlanPolicyScheduleUnset {- if !setting.Enabled {- return nil, &common.Error{Code: common.Invalid, Err: errors.Errorf("backup setting should not be disabled for backup plan policy schedule %q", backupPlanPolicy.Schedule)}- }- switch backupPlanPolicy.Schedule {- case api.BackupPlanPolicyScheduleDaily:- if setting.DayOfWeek != -1 {- return nil, &common.Error{Code: common.Invalid, Err: errors.Errorf("backup setting DayOfWeek should be unset for backup plan policy schedule %q", backupPlanPolicy.Schedule)}- }- case api.BackupPlanPolicyScheduleWeekly:- if setting.DayOfWeek == -1 {- return nil, &common.Error{Code: common.Invalid, Err: errors.Errorf("backup setting DayOfWeek should be set for backup plan policy schedule %q", backupPlanPolicy.Schedule)}- }- }- }-- return setting, nil-}--// parseSimpleCron parses a simple cron expression(only support hour of day and day of week), and returns them as int.-func parseSimpleCron(cron string) (int, int, error) {- fields := strings.Fields(cron)- if len(fields) != 5 {- return 0, 0, errors.New("invalid cron expression")- }- hourOfDay, err := strconv.Atoi(fields[1])- if err != nil {- return 0, 0, errors.New("invalid cron hour field")- }- if hourOfDay < 0 || hourOfDay > 23 {- return 0, 0, errors.New("invalid cron hour range")- }- weekDay := fields[4]- // "*" means any day of week.- if weekDay == "*" {- return hourOfDay, -1, nil- }- dayOfWeek, err := strconv.Atoi(weekDay)- if err != nil {- return 0, 0, err- }- if dayOfWeek < 0 || dayOfWeek > 6 {- return 0, 0, errors.New("invalid cron day of week range")- }- return hourOfDay, dayOfWeek, nil-}--func buildSimpleCron(hourOfDay int, dayOfWeek int) string {- if dayOfWeek == -1 {- return fmt.Sprintf("0 %d * * *", hourOfDay)- }- return fmt.Sprintf("0 %d * * %d", hourOfDay, dayOfWeek)-}--func convertDurationToPeriodTs(duration *durationpb.Duration) (int, error) {- if err := duration.CheckValid(); err != nil {- return 0, errors.Wrap(err, "invalid duration")- }- // Round up to days- return int(duration.AsDuration().Round(time.Hour * 24).Seconds()), nil-}--func convertPeriodTsToDuration(periodTs int) (*durationpb.Duration, error) {- if periodTs < 0 {- return nil, errors.New("invalid period")- }- return durationpb.New(time.Duration(periodTs) * time.Second), nil-}-func stripeAndConvertToServiceSecrets(secrets *storepb.Secrets, instanceID, databaseName string) []*v1pb.Secret {var serviceSecrets []*v1pb.Secretif secrets == nil || len(secrets.Items) == 0 {diff --git a/backend/api/v1/database_service_test.go b/backend/api/v1/database_service_test.goindex 707b6397be..1952930668 100644--- a/backend/api/v1/database_service_test.go+++ b/backend/api/v1/database_service_test.go@@ -8,56 +8,6 @@ import (storepb "github.com/bytebase/bytebase/proto/generated-go/store")-func TestSimpleParseCron(t *testing.T) {- type result struct {- hourOfDay int- dayOfWeek int- }-- testCases := []struct {- cronStr string- wantErr bool- want result- }{- {- cronStr: "* * * * *",- wantErr: true,- },- {- cronStr: "* 24 * * 7",- wantErr: true,- },- // 8:00 AM on Saturday- {- cronStr: "* 8 * * 6",- wantErr: false,- want: result{- hourOfDay: 8,- dayOfWeek: 6,- },- },- // 8:00 AM every day- {- cronStr: "* 8 * * *",- wantErr: false,- want: result{- hourOfDay: 8,- dayOfWeek: -1,- },- },- }-- for _, tc := range testCases {- hourOfDay, dayOfWeek, err := parseSimpleCron(tc.cronStr)- if tc.wantErr {- require.Error(t, err)- } else {- require.Equal(t, tc.want.hourOfDay, hourOfDay)- require.Equal(t, tc.want.dayOfWeek, dayOfWeek)- }- }-}-func TestIsSecretValid(t *testing.T) {testCases := []struct {item *storepb.SecretItemdiff --git a/backend/api/v1/environment_service.go b/backend/api/v1/environment_service.goindex fb37603991..9da5e2d79b 100644--- a/backend/api/v1/environment_service.go+++ b/backend/api/v1/environment_service.go@@ -192,32 +192,6 @@ func (s *EnvironmentService) UndeleteEnvironment(ctx context.Context, request *vreturn convertToEnvironment(environment), nil}-// UpdateBackupSetting updates the backup setting for an environment.-func (s *EnvironmentService) UpdateBackupSetting(ctx context.Context, request *v1pb.UpdateEnvironmentBackupSettingRequest) (*v1pb.EnvironmentBackupSetting, error) {- environmentName, err := common.TrimSuffix(request.Setting.Name, common.BackupSettingSuffix)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- environment, err := s.getEnvironmentMessage(ctx, environmentName)- if err != nil {- return nil, err- }-- principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }-- if err := s.store.UpdateBackupSettingsForEnvironmentV2(ctx, environment.ResourceID, request.Setting.Enabled, principalID); err != nil {- if common.ErrorCode(err) == common.Invalid {- return nil, status.Errorf(codes.InvalidArgument, "invalid backup setting: %v", err.Error())- }- return nil, status.Errorf(codes.Internal, "failed to set backup setting: %v", err.Error())- }-- return request.Setting, nil-}-func (s *EnvironmentService) getEnvironmentMessage(ctx context.Context, name string) (*store.EnvironmentMessage, error) {environmentID, err := common.GetEnvironmentID(name)if err != nil {diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex 114a57035b..6851a03821 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -12,7 +12,6 @@ import ("google.golang.org/grpc/codes""google.golang.org/grpc/status""google.golang.org/protobuf/encoding/protojson"- "google.golang.org/protobuf/types/known/durationpb""google.golang.org/protobuf/types/known/emptypb""github.com/bytebase/bytebase/backend/common"@@ -555,20 +554,6 @@ func (s *OrgPolicyService) convertPolicyPayloadToString(policy *v1pb.Policy) (streturn "", errors.Wrap(err, "failed to marshal rollout policy")}return string(payloadBytes), nil- case v1pb.PolicyType_BACKUP_PLAN:- payload, err := convertToBackupPlanPolicyPayload(policy.GetBackupPlanPolicy())- if err != nil {- return "", status.Errorf(codes.InvalidArgument, err.Error())- }- if payload.Schedule != api.BackupPlanPolicyScheduleUnset && payload.Schedule != api.BackupPlanPolicyScheduleDaily && payload.Schedule != api.BackupPlanPolicyScheduleWeekly {- return "", status.Errorf(codes.InvalidArgument, "invalid backup plan policy schedule: %q", payload.Schedule)- }- if err := s.licenseService.IsFeatureEnabled(api.FeatureBackupPolicy); err != nil {- if payload.Schedule != api.BackupPlanPolicyScheduleUnset {- return "", status.Errorf(codes.PermissionDenied, err.Error())- }- }- return payload.String()case v1pb.PolicyType_SQL_REVIEW:if err := s.licenseService.IsFeatureEnabled(api.FeatureSQLReview); err != nil {return "", status.Errorf(codes.PermissionDenied, err.Error())@@ -697,13 +682,6 @@ func convertToPolicy(parentPath string, policyMessage *store.PolicyMessage) (*v1return nil, err}policy.Policy = payload- case api.PolicyTypeBackupPlan:- pType = v1pb.PolicyType_BACKUP_PLAN- payload, err := convertToV1PBBackupPlanPolicy(policyMessage.Payload)- if err != nil {- return nil, err- }- policy.Policy = payloadcase api.PolicyTypeSQLReview:pType = v1pb.PolicyType_SQL_REVIEWpayload, err := convertToV1PBSQLReviewPolicy(policyMessage.Payload)@@ -985,54 +963,6 @@ func convertToStorePBMaskingLevel(level v1pb.MaskingLevel) storepb.MaskingLevel}}-func convertToV1PBBackupPlanPolicy(payloadStr string) (*v1pb.Policy_BackupPlanPolicy, error) {- payload, err := api.UnmarshalBackupPlanPolicy(payloadStr)- if err != nil {- return nil, err- }-- schedule := v1pb.BackupPlanSchedule_SCHEDULE_UNSPECIFIED- switch payload.Schedule {- case api.BackupPlanPolicyScheduleUnset:- schedule = v1pb.BackupPlanSchedule_UNSET- case api.BackupPlanPolicyScheduleDaily:- schedule = v1pb.BackupPlanSchedule_DAILY- case api.BackupPlanPolicyScheduleWeekly:- schedule = v1pb.BackupPlanSchedule_WEEKLY- }-- return &v1pb.Policy_BackupPlanPolicy{- BackupPlanPolicy: &v1pb.BackupPlanPolicy{- Schedule: schedule,- RetentionDuration: &durationpb.Duration{Seconds: int64(payload.RetentionPeriodTs)},- },- }, nil-}--func convertToBackupPlanPolicyPayload(policy *v1pb.BackupPlanPolicy) (*api.BackupPlanPolicy, error) {- var schedule api.BackupPlanPolicySchedule- switch policy.Schedule {- case v1pb.BackupPlanSchedule_UNSET:- schedule = api.BackupPlanPolicyScheduleUnset- case v1pb.BackupPlanSchedule_DAILY:- schedule = api.BackupPlanPolicyScheduleDaily- case v1pb.BackupPlanSchedule_WEEKLY:- schedule = api.BackupPlanPolicyScheduleWeekly- default:- return nil, errors.Errorf("invalid backup plan schedule %v", policy.Schedule)- }-- retentionPeriodTs := 0- if policy.RetentionDuration != nil {- retentionPeriodTs = int(policy.RetentionDuration.Seconds)- }-- return &api.BackupPlanPolicy{- Schedule: schedule,- RetentionPeriodTs: retentionPeriodTs,- }, nil-}-func convertToV1RolloutPolicyPayload(payloadStr string) (*v1pb.Policy_RolloutPolicy, error) {p := &v1pb.RolloutPolicy{}if err := protojson.Unmarshal([]byte(payloadStr), p); err != nil {@@ -1195,8 +1125,6 @@ func convertPolicyType(pType string) (api.PolicyType, error) {return api.PolicyTypeWorkspaceIAM, nilcase v1pb.PolicyType_ROLLOUT_POLICY.String():return api.PolicyTypeRollout, nil- case v1pb.PolicyType_BACKUP_PLAN.String():- return api.PolicyTypeBackupPlan, nilcase v1pb.PolicyType_SQL_REVIEW.String():return api.PolicyTypeSQLReview, nilcase v1pb.PolicyType_MASKING.String():diff --git a/backend/api/v1/rollout_service_converter.go b/backend/api/v1/rollout_service_converter.goindex ef8413438c..fd4caf9050 100644--- a/backend/api/v1/rollout_service_converter.go+++ b/backend/api/v1/rollout_service_converter.go@@ -85,8 +85,6 @@ func convertToPlanSpec(spec *storepb.PlanConfig_Spec) *v1pb.Plan_Spec {v1Spec.Config = convertToPlanSpecCreateDatabaseConfig(v)case *storepb.PlanConfig_Spec_ChangeDatabaseConfig:v1Spec.Config = convertToPlanSpecChangeDatabaseConfig(v)- case *storepb.PlanConfig_Spec_RestoreDatabaseConfig:- v1Spec.Config = convertToPlanSpecRestoreDatabaseConfig(v)case *storepb.PlanConfig_Spec_ExportDataConfig:v1Spec.Config = convertToPlanSpecExportDataConfig(v)}@@ -105,33 +103,12 @@ func convertToPlanSpecCreateDatabaseConfig(config *storepb.PlanConfig_Spec_CreatCollation: c.Collation,Cluster: c.Cluster,Owner: c.Owner,- Backup: c.Backup,Environment: c.Environment,Labels: c.Labels,},}}-func convertToPlanCreateDatabaseConfig(c *storepb.PlanConfig_CreateDatabaseConfig) *v1pb.Plan_CreateDatabaseConfig {- // c.CreateDatabaseConfig is defined as optional in proto- // so we need to test if it's nil- if c == nil {- return nil- }- return &v1pb.Plan_CreateDatabaseConfig{- Target: c.Target,- Database: c.Database,- Table: c.Table,- CharacterSet: c.CharacterSet,- Collation: c.Collation,- Cluster: c.Cluster,- Owner: c.Owner,- Backup: c.Backup,- Environment: c.Environment,- Labels: c.Labels,- }-}-func convertToPlanSpecChangeDatabaseConfig(config *storepb.PlanConfig_Spec_ChangeDatabaseConfig) *v1pb.Plan_Spec_ChangeDatabaseConfig {c := config.ChangeDatabaseConfigreturn &v1pb.Plan_Spec_ChangeDatabaseConfig{@@ -172,8 +149,6 @@ func convertToPlanSpecChangeDatabaseConfigType(t storepb.PlanConfig_ChangeDatabareturn v1pb.Plan_ChangeDatabaseConfig_MIGRATE_SDLcase storepb.PlanConfig_ChangeDatabaseConfig_MIGRATE_GHOST:return v1pb.Plan_ChangeDatabaseConfig_MIGRATE_GHOST- case storepb.PlanConfig_ChangeDatabaseConfig_BRANCH:- return v1pb.Plan_ChangeDatabaseConfig_BRANCHcase storepb.PlanConfig_ChangeDatabaseConfig_DATA:return v1pb.Plan_ChangeDatabaseConfig_DATAdefault:@@ -181,28 +156,6 @@ func convertToPlanSpecChangeDatabaseConfigType(t storepb.PlanConfig_ChangeDataba}}-func convertToPlanSpecRestoreDatabaseConfig(config *storepb.PlanConfig_Spec_RestoreDatabaseConfig) *v1pb.Plan_Spec_RestoreDatabaseConfig {- c := config.RestoreDatabaseConfig- v1Config := &v1pb.Plan_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &v1pb.Plan_RestoreDatabaseConfig{- Target: c.Target,- },- }- switch source := c.Source.(type) {- case *storepb.PlanConfig_RestoreDatabaseConfig_Backup:- v1Config.RestoreDatabaseConfig.Source = &v1pb.Plan_RestoreDatabaseConfig_Backup{- Backup: source.Backup,- }- case *storepb.PlanConfig_RestoreDatabaseConfig_PointInTime:- v1Config.RestoreDatabaseConfig.Source = &v1pb.Plan_RestoreDatabaseConfig_PointInTime{- PointInTime: source.PointInTime,- }- }-- v1Config.RestoreDatabaseConfig.CreateDatabaseConfig = convertToPlanCreateDatabaseConfig(c.CreateDatabaseConfig)- return v1Config-}-func convertToPlanSpecExportDataConfig(config *storepb.PlanConfig_Spec_ExportDataConfig) *v1pb.Plan_Spec_ExportDataConfig {c := config.ExportDataConfigreturn &v1pb.Plan_Spec_ExportDataConfig{@@ -250,8 +203,6 @@ func convertPlanSpec(spec *v1pb.Plan_Spec) *storepb.PlanConfig_Spec {storeSpec.Config = convertPlanSpecCreateDatabaseConfig(v)case *v1pb.Plan_Spec_ChangeDatabaseConfig:storeSpec.Config = convertPlanSpecChangeDatabaseConfig(v)- case *v1pb.Plan_Spec_RestoreDatabaseConfig:- storeSpec.Config = convertPlanSpecRestoreDatabaseConfig(v)case *v1pb.Plan_Spec_ExportDataConfig:storeSpec.Config = convertPlanSpecExportDataConfig(v)}@@ -274,7 +225,6 @@ func convertPlanConfigCreateDatabaseConfig(c *v1pb.Plan_CreateDatabaseConfig) *sCollation: c.Collation,Cluster: c.Cluster,Owner: c.Owner,- Backup: c.Backup,Environment: c.Environment,Labels: c.Labels,}@@ -301,31 +251,6 @@ func convertPlanSpecChangeDatabaseConfig(config *v1pb.Plan_Spec_ChangeDatabaseCo}}-func convertPlanSpecRestoreDatabaseConfig(config *v1pb.Plan_Spec_RestoreDatabaseConfig) *storepb.PlanConfig_Spec_RestoreDatabaseConfig {- c := config.RestoreDatabaseConfig- storeConfig := &storepb.PlanConfig_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &storepb.PlanConfig_RestoreDatabaseConfig{- Target: c.Target,- },- }- switch source := c.Source.(type) {- case *v1pb.Plan_RestoreDatabaseConfig_Backup:- storeConfig.RestoreDatabaseConfig.Source = &storepb.PlanConfig_RestoreDatabaseConfig_Backup{- Backup: source.Backup,- }- case *v1pb.Plan_RestoreDatabaseConfig_PointInTime:- storeConfig.RestoreDatabaseConfig.Source = &storepb.PlanConfig_RestoreDatabaseConfig_PointInTime{- PointInTime: source.PointInTime,- }- }- // c.CreateDatabaseConfig is defined as optional in proto- // so we need to test if it's nil- if c.CreateDatabaseConfig != nil {- storeConfig.RestoreDatabaseConfig.CreateDatabaseConfig = convertPlanConfigCreateDatabaseConfig(c.CreateDatabaseConfig)- }- return storeConfig-}-func convertPlanSpecExportDataConfig(config *v1pb.Plan_Spec_ExportDataConfig) *storepb.PlanConfig_Spec_ExportDataConfig {c := config.ExportDataConfigreturn &storepb.PlanConfig_Spec_ExportDataConfig{@@ -425,8 +350,6 @@ func convertToPlanCheckRunType(t store.PlanCheckRunType) v1pb.PlanCheckRun_Typereturn v1pb.PlanCheckRun_DATABASE_CONNECTcase store.PlanCheckDatabaseGhostSync:return v1pb.PlanCheckRun_DATABASE_GHOST_SYNC- case store.PlanCheckDatabasePITRMySQL:- return v1pb.PlanCheckRun_DATABASE_PITR_MYSQL}return v1pb.PlanCheckRun_TYPE_UNSPECIFIED}@@ -635,12 +558,6 @@ func convertToTask(ctx context.Context, s *store.Store, project *store.ProjectMereturn convertToTaskFromSchemaUpdateGhostCutover(ctx, s, project, task)case api.TaskDatabaseDataUpdate:return convertToTaskFromDataUpdate(ctx, s, project, task)- case api.TaskDatabaseBackup:- return convertToTaskFromDatabaseBackup(ctx, s, project, task)- case api.TaskDatabaseRestorePITRRestore:- return convertToTaskFromDatabaseRestoreRestore(ctx, s, project, task)- case api.TaskDatabaseRestorePITRCutover:- return convertToTaskFromDatabaseRestoreCutOver(ctx, s, project, task)case api.TaskDatabaseDataExport:return convertToTaskFromDatabaseDataExport(ctx, s, project, task)case api.TaskGeneral:@@ -884,170 +801,6 @@ func convertToTaskFromDataUpdate(ctx context.Context, s *store.Store, project *sreturn v1pbTask, nil}-func convertToTaskFromDatabaseBackup(ctx context.Context, s *store.Store, project *store.ProjectMessage, task *store.TaskMessage) (*v1pb.Task, error) {- if task.DatabaseID == nil {- return nil, errors.Errorf("database id is nil")- }- payload := &api.TaskDatabaseBackupPayload{}- if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal task payload")- }- backup, err := s.GetBackupByUID(ctx, payload.BackupID)- if err != nil {- return nil, errors.Errorf("failed to get backup by uid: %v", err)- }- if backup == nil {- return nil, errors.Errorf("backup not found")- }- databaseBackup, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- UID: &backup.DatabaseUID,- ShowDeleted: true,- })- if err != nil {- return nil, errors.Errorf("failed to get database: %v", err)- }- if databaseBackup == nil {- return nil, errors.Errorf("database not found")- }- database, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{UID: task.DatabaseID, ShowDeleted: true})- if err != nil {- return nil, errors.Wrapf(err, "failed to get database")- }- if database == nil {- return nil, errors.Errorf("database not found")- }- v1pbTask := &v1pb.Task{- Name: fmt.Sprintf("%s%s/%s%d/%s%d/%s%d", common.ProjectNamePrefix, project.ResourceID, common.RolloutPrefix, task.PipelineID, common.StagePrefix, task.StageID, common.TaskPrefix, task.ID),- Uid: fmt.Sprintf("%d", task.ID),- Title: task.Name,- SpecId: payload.SpecID,- Type: convertToTaskType(task.Type),- Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),- SkippedReason: payload.SkippedReason,- DependsOnTasks: nil,- Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),- Payload: &v1pb.Task_DatabaseBackup_{- DatabaseBackup: &v1pb.Task_DatabaseBackup{- Backup: fmt.Sprintf("%s%s/%s%s/%s%d", common.InstanceNamePrefix, databaseBackup.InstanceID, common.DatabaseIDPrefix, databaseBackup.DatabaseName, common.BackupPrefix, backup.UID),- },- },- }- return v1pbTask, nil-}--func convertToTaskFromDatabaseRestoreRestore(ctx context.Context, s *store.Store, project *store.ProjectMessage, task *store.TaskMessage) (*v1pb.Task, error) {- if task.DatabaseID == nil {- return nil, errors.Errorf("database id is nil")- }- payload := &api.TaskDatabasePITRRestorePayload{}- if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal task payload")- }- database, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{UID: task.DatabaseID, ShowDeleted: true})- if err != nil {- return nil, errors.Wrapf(err, "failed to get database")- }- if database == nil {- return nil, errors.Errorf("database not found")- }- v1pbTaskPayload := v1pb.Task_DatabaseRestoreRestore_{- DatabaseRestoreRestore: &v1pb.Task_DatabaseRestoreRestore{},- }- v1pbTask := &v1pb.Task{- Name: fmt.Sprintf("%s%s/%s%d/%s%d/%s%d", common.ProjectNamePrefix, project.ResourceID, common.RolloutPrefix, task.PipelineID, common.StagePrefix, task.StageID, common.TaskPrefix, task.ID),- Uid: fmt.Sprintf("%d", task.ID),- Title: task.Name,- SpecId: payload.SpecID,- Type: convertToTaskType(task.Type),- Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),- SkippedReason: payload.SkippedReason,- DependsOnTasks: nil,- Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),- Payload: nil,- }- if (payload.BackupID == nil) == (payload.PointInTimeTs == nil) {- return nil, errors.Errorf("payload.BackupID and payload.PointInTimeTs cannot be both nil or both not nil")- }- if (payload.TargetInstanceID == nil) != (payload.DatabaseName == nil) {- return nil, errors.Errorf("payload.TargetInstanceID and payload.DatabaseName must be both nil or both not nil")- }-- if payload.TargetInstanceID != nil {- targetInstance, err := s.GetInstanceV2(ctx, &store.FindInstanceMessage{- UID: payload.TargetInstanceID,- })- if err != nil {- return nil, errors.Wrapf(err, "failed to get target instance")- }- if targetInstance == nil {- return nil, errors.Errorf("target instance not found")- }- v1pbTaskPayload.DatabaseRestoreRestore.Target = fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, targetInstance.ResourceID, common.DatabaseIDPrefix, *payload.DatabaseName)- }-- if payload.BackupID != nil {- backup, err := s.GetBackupByUID(ctx, *payload.BackupID)- if err != nil {- return nil, errors.Errorf("failed to get backup by uid: %v", err)- }- if backup == nil {- return nil, errors.Errorf("backup not found")- }- databaseBackup, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- UID: &backup.DatabaseUID,- ShowDeleted: true,- })- if err != nil {- return nil, errors.Errorf("failed to get database: %v", err)- }- if databaseBackup == nil {- return nil, errors.Errorf("database not found")- }- v1pbTaskPayload.DatabaseRestoreRestore.Source = &v1pb.Task_DatabaseRestoreRestore_Backup{- Backup: fmt.Sprintf("%s%s/%s%s/%s%d", common.InstanceNamePrefix, databaseBackup.InstanceID, common.DatabaseIDPrefix, databaseBackup.DatabaseName, common.BackupPrefix, backup.UID),- }- }- if payload.PointInTimeTs != nil {- v1pbTaskPayload.DatabaseRestoreRestore.Source = &v1pb.Task_DatabaseRestoreRestore_PointInTime{- PointInTime: timestamppb.New(time.Unix(*payload.PointInTimeTs, 0)),- }- }- v1pbTask.Payload = &v1pbTaskPayload-- return v1pbTask, nil-}--func convertToTaskFromDatabaseRestoreCutOver(ctx context.Context, s *store.Store, project *store.ProjectMessage, task *store.TaskMessage) (*v1pb.Task, error) {- if task.DatabaseID == nil {- return nil, errors.Errorf("database id is nil")- }- payload := &api.TaskDatabasePITRCutoverPayload{}- if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal task payload")- }- database, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{UID: task.DatabaseID, ShowDeleted: true})- if err != nil {- return nil, errors.Wrapf(err, "failed to get database")- }- if database == nil {- return nil, errors.Errorf("database not found")- }- v1pbTask := &v1pb.Task{- Name: fmt.Sprintf("%s%s/%s%d/%s%d/%s%d", common.ProjectNamePrefix, project.ResourceID, common.RolloutPrefix, task.PipelineID, common.StagePrefix, task.StageID, common.TaskPrefix, task.ID),- Uid: fmt.Sprintf("%d", task.ID),- Title: task.Name,- SpecId: payload.SpecID,- Type: convertToTaskType(task.Type),- Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),- SkippedReason: payload.SkippedReason,- DependsOnTasks: nil,- Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),- Payload: nil,- }-- return v1pbTask, nil-}-func convertToTaskFromDatabaseDataExport(ctx context.Context, s *store.Store, project *store.ProjectMessage, task *store.TaskMessage) (*v1pb.Task, error) {if task.DatabaseID == nil {return nil, errors.Errorf("database id is nil")@@ -1127,12 +880,6 @@ func convertToTaskType(taskType api.TaskType) v1pb.Task_Type {return v1pb.Task_DATABASE_SCHEMA_UPDATE_GHOST_CUTOVERcase api.TaskDatabaseDataUpdate:return v1pb.Task_DATABASE_DATA_UPDATE- case api.TaskDatabaseBackup:- return v1pb.Task_DATABASE_BACKUP- case api.TaskDatabaseRestorePITRRestore:- return v1pb.Task_DATABASE_RESTORE_RESTORE- case api.TaskDatabaseRestorePITRCutover:- return v1pb.Task_DATABASE_RESTORE_CUTOVERcase api.TaskDatabaseDataExport:return v1pb.Task_DATABASE_DATA_EXPORTdefault:diff --git a/backend/api/v1/rollout_service_plan_check.go b/backend/api/v1/rollout_service_plan_check.goindex 419dead24b..433d92e220 100644--- a/backend/api/v1/rollout_service_plan_check.go+++ b/backend/api/v1/rollout_service_plan_check.go@@ -40,85 +40,6 @@ func getPlanCheckRunsFromSpec(ctx context.Context, s *store.Store, plan *store.Pif _, _, err := common.GetProjectIDDeploymentConfigID(config.ChangeDatabaseConfig.Target); err == nil {return getPlanCheckRunsFromChangeDatabaseConfigDeploymentConfigTarget(ctx, s, plan, config.ChangeDatabaseConfig)}-- case *storepb.PlanConfig_Spec_RestoreDatabaseConfig:- var planCheckRuns []*store.PlanCheckRunMessage- // mysql PITR check- if _, ok := config.RestoreDatabaseConfig.Source.(*storepb.PlanConfig_RestoreDatabaseConfig_PointInTime); ok {- if config.RestoreDatabaseConfig.CreateDatabaseConfig != nil {- // Restore to a new database- // check target instance- targetInstanceID, err := common.GetInstanceID(config.RestoreDatabaseConfig.CreateDatabaseConfig.Target)- if err != nil {- return nil, errors.Wrapf(err, "failed to get instance id from %q", config.RestoreDatabaseConfig.CreateDatabaseConfig.Target)- }- targetInstance, err := s.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &targetInstanceID})- if err != nil {- return nil, errors.Wrapf(err, "failed to find the instance with ID %q", targetInstanceID)- }- if targetInstance == nil {- return nil, errors.Errorf("instance %q not found", targetInstanceID)- }-- planCheckRuns = append(planCheckRuns, &store.PlanCheckRunMessage{- CreatorUID: api.SystemBotID,- UpdaterUID: api.SystemBotID,- PlanUID: plan.UID,- Status: store.PlanCheckRunStatusRunning,- Type: store.PlanCheckDatabasePITRMySQL,- Config: &storepb.PlanCheckRunConfig{- SheetUid: 0,- ChangeDatabaseType: storepb.PlanCheckRunConfig_CHANGE_DATABASE_TYPE_UNSPECIFIED,- InstanceUid: int32(targetInstance.UID),- DatabaseName: config.RestoreDatabaseConfig.CreateDatabaseConfig.Database,- },- })- } else {- // in-place restore- // check instance- target := config.RestoreDatabaseConfig.Target- instanceID, databaseName, err := common.GetInstanceDatabaseID(target)- if err != nil {- return nil, errors.Wrapf(err, "failed to get instance database id from target %q", target)- }-- instance, err := s.GetInstanceV2(ctx, &store.FindInstanceMessage{- ResourceID: &instanceID,- })- if err != nil {- return nil, errors.Wrapf(err, "failed to get instance %q", instanceID)- }- if instance == nil {- return nil, errors.Errorf("instance %q not found", instanceID)- }- database, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- InstanceID: &instanceID,- DatabaseName: &databaseName,- IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(instance),- })- if err != nil {- return nil, errors.Wrapf(err, "failed to get database %q", databaseName)- }- if database == nil {- return nil, errors.Errorf("database %q not found", databaseName)- }-- planCheckRuns = append(planCheckRuns, &store.PlanCheckRunMessage{- CreatorUID: api.SystemBotID,- UpdaterUID: api.SystemBotID,- PlanUID: plan.UID,- Status: store.PlanCheckRunStatusRunning,- Type: store.PlanCheckDatabasePITRMySQL,- Config: &storepb.PlanCheckRunConfig{- SheetUid: 0,- ChangeDatabaseType: storepb.PlanCheckRunConfig_CHANGE_DATABASE_TYPE_UNSPECIFIED,- InstanceUid: int32(instance.UID),- DatabaseName: database.DatabaseName,- },- })- }- }- return planCheckRuns, nildefault:return nil, errors.Errorf("unknown spec config type %T", config)}diff --git a/backend/api/v1/rollout_service_task.go b/backend/api/v1/rollout_service_task.goindex 33fa05de7a..1a40f7d61d 100644--- a/backend/api/v1/rollout_service_task.go+++ b/backend/api/v1/rollout_service_task.go@@ -104,8 +104,6 @@ func getTaskCreatesFromSpec(ctx context.Context, s *store.Store, licenseServicereturn getTaskCreatesFromCreateDatabaseConfig(ctx, s, licenseService, dbFactory, spec, config.CreateDatabaseConfig, project, registerEnvironmentID)case *storepb.PlanConfig_Spec_ChangeDatabaseConfig:return getTaskCreatesFromChangeDatabaseConfig(ctx, s, spec, config.ChangeDatabaseConfig, project, registerEnvironmentID)- case *storepb.PlanConfig_Spec_RestoreDatabaseConfig:- return getTaskCreatesFromRestoreDatabaseConfig(ctx, s, licenseService, dbFactory, spec, config.RestoreDatabaseConfig, project, registerEnvironmentID)}return nil, nil, errors.Errorf("invalid spec config type %T", spec.Config)@@ -660,217 +658,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseGroupStatements(db *store.Datreturn creates, nil}-func getTaskCreatesFromRestoreDatabaseConfig(ctx context.Context, s *store.Store, licenseService enterprise.LicenseService, dbFactory *dbfactory.DBFactory, spec *storepb.PlanConfig_Spec, c *storepb.PlanConfig_RestoreDatabaseConfig, project *store.ProjectMessage, registerEnvironmentID func(string) error) ([]*store.TaskMessage, []store.TaskIndexDAG, error) {- if c.Source == nil {- return nil, nil, errors.Errorf("missing source in restore database config")- }- instanceID, databaseName, err := common.GetInstanceDatabaseID(c.Target)- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get instance and database id from target %q", c.Target)- }- instance, err := s.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &instanceID})- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get instance %q", instanceID)- }- if instance == nil {- return nil, nil, errors.Errorf("instance %q not found", instanceID)- }-- if c.CreateDatabaseConfig != nil {- // Create an empty dummy database.- if err := s.CreateDatabaseDefault(ctx, &store.DatabaseMessage{- InstanceID: instance.ResourceID,- DatabaseName: databaseName,- ProjectID: project.ResourceID,- }); err != nil {- return nil, nil, err- }- }-- database, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- InstanceID: &instanceID,- DatabaseName: &databaseName,- IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(instance),- })- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get database %q", databaseName)- }- if database == nil {- return nil, nil, errors.Errorf("database %q not found", databaseName)- }- if database.ProjectID != project.ResourceID {- return nil, nil, errors.Errorf("database %q is not in project %q", databaseName, project.ResourceID)- }-- if err := registerEnvironmentID(database.EffectiveEnvironmentID); err != nil {- return nil, nil, err- }-- var taskCreates []*store.TaskMessage-- if c.CreateDatabaseConfig != nil {- restorePayload := api.TaskDatabasePITRRestorePayload{- SpecID: spec.Id,- ProjectID: project.UID,- }- // restore to a new database- targetInstanceID, err := common.GetInstanceID(c.CreateDatabaseConfig.Target)- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get instance id from %q", c.CreateDatabaseConfig.Target)- }- targetInstance, err := s.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &targetInstanceID})- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to find the instance with ID %q", targetInstanceID)- }-- // task 1: create the database- createDatabaseTasks, _, err := getTaskCreatesFromCreateDatabaseConfig(ctx, s, licenseService, dbFactory, spec, c.CreateDatabaseConfig, project, registerEnvironmentID)- if err != nil {- return nil, nil, errors.Wrap(err, "failed to create the database create task list")- }- if len(createDatabaseTasks) != 1 {- return nil, nil, errors.Errorf("expected 1 task to create the database, got %d", len(createDatabaseTasks))- }- taskCreates = append(taskCreates, createDatabaseTasks[0])-- // task 2: restore the database- switch source := c.Source.(type) {- case *storepb.PlanConfig_RestoreDatabaseConfig_Backup:- backupInstanceID, backupDatabaseName, backupName, err := common.GetInstanceDatabaseIDBackupName(source.Backup)- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to parse backup name %q", source.Backup)- }- backupInstance, err := s.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &backupInstanceID})- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get instance %q", backupInstanceID)- }- backupDatabase, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- InstanceID: &backupInstanceID,- DatabaseName: &backupDatabaseName,- IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(backupInstance),- })- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get database %q", backupDatabaseName)- }- if backupDatabase == nil {- return nil, nil, errors.Errorf("failed to find database %q where backup %q is created", backupDatabaseName, source.Backup)- }- backup, err := s.GetBackupV2(ctx, &store.FindBackupMessage{- DatabaseUID: &backupDatabase.UID,- Name: &backupName,- })- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get backup %q", backupName)- }- if backup == nil {- return nil, nil, errors.Errorf("failed to find backup %q", backupName)- }- restorePayload.BackupID = &backup.UID- case *storepb.PlanConfig_RestoreDatabaseConfig_PointInTime:- ts := source.PointInTime.GetSeconds()- restorePayload.PointInTimeTs = &ts- }- restorePayload.TargetInstanceID = &targetInstance.UID- restorePayload.DatabaseName = &c.CreateDatabaseConfig.Database-- restorePayloadBytes, err := json.Marshal(restorePayload)- if err != nil {- return nil, nil, errors.Wrap(err, "failed to create PITR restore task, unable to marshal payload")- }-- restoreTaskCreate := &store.TaskMessage{- Name: fmt.Sprintf("Restore to new database %q", *restorePayload.DatabaseName),- Type: api.TaskDatabaseRestorePITRRestore,- InstanceID: instance.UID,- DatabaseID: &database.UID,- Payload: string(restorePayloadBytes),- }- taskCreates = append(taskCreates, restoreTaskCreate)- } else {- // in-place restore- // task 1: restore- restorePayload := api.TaskDatabasePITRRestorePayload{- SpecID: spec.Id,- ProjectID: project.UID,- }- switch source := c.Source.(type) {- case *storepb.PlanConfig_RestoreDatabaseConfig_Backup:- backupInstanceID, backupDatabaseName, backupName, err := common.GetInstanceDatabaseIDBackupName(source.Backup)- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to parse backup name %q", source.Backup)- }- backupInstance, err := s.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &backupInstanceID})- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get instance %q", backupInstanceID)- }- backupDatabase, err := s.GetDatabaseV2(ctx, &store.FindDatabaseMessage{- InstanceID: &backupInstanceID,- DatabaseName: &backupDatabaseName,- IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(backupInstance),- })- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get database %q", backupDatabaseName)- }- if backupDatabase == nil {- return nil, nil, errors.Errorf("failed to find database %q where backup %q is created", backupDatabaseName, source.Backup)- }- backup, err := s.GetBackupV2(ctx, &store.FindBackupMessage{- DatabaseUID: &backupDatabase.UID,- Name: &backupName,- })- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to get backup %q", backupName)- }- if backup == nil {- return nil, nil, errors.Errorf("failed to find backup %q", backupName)- }- restorePayload.BackupID = &backup.UID- case *storepb.PlanConfig_RestoreDatabaseConfig_PointInTime:- ts := source.PointInTime.GetSeconds()- restorePayload.PointInTimeTs = &ts- }- restorePayloadBytes, err := json.Marshal(restorePayload)- if err != nil {- return nil, nil, errors.Wrap(err, "failed to create PITR restore task, unable to marshal payload")- }-- restoreTaskCreate := &store.TaskMessage{- Name: fmt.Sprintf("Restore to PITR database %q", database.DatabaseName),- Type: api.TaskDatabaseRestorePITRRestore,- InstanceID: instance.UID,- DatabaseID: &database.UID,- Payload: string(restorePayloadBytes),- }-- taskCreates = append(taskCreates, restoreTaskCreate)-- // task 2: cutover- cutoverPayload := api.TaskDatabasePITRCutoverPayload{- SpecID: spec.Id,- }- cutoverPayloadBytes, err := json.Marshal(cutoverPayload)- if err != nil {- return nil, nil, errors.Wrap(err, "failed to create PITR cutover task, unable to marshal payload")- }- taskCreates = append(taskCreates, &store.TaskMessage{- Name: fmt.Sprintf("Swap PITR and the original database %q", database.DatabaseName),- InstanceID: instance.UID,- DatabaseID: &database.UID,- Type: api.TaskDatabaseRestorePITRCutover,- Payload: string(cutoverPayloadBytes),- })- }-- // We make sure that we will always return 2 tasks.- taskIndexDAGs := []store.TaskIndexDAG{- {- FromIndex: 0,- ToIndex: 1,- },- }- return taskCreates, taskIndexDAGs, nil-}-// checkCharacterSetCollationOwner checks if the character set, collation and owner are legal according to the dbType.func checkCharacterSetCollationOwner(dbType storepb.Engine, characterSet, collation, owner string) error {switch dbType {diff --git a/backend/enterprise/api/plan.yaml b/backend/enterprise/api/plan.yamlindex 3619e40587..709adc0448 100644--- a/backend/enterprise/api/plan.yaml+++ b/backend/enterprise/api/plan.yaml@@ -203,7 +203,6 @@ planList:- sql-check-anomaly-detection- backup-policy- online-schema-migration- - pitr- type: 2title: enterprisetrialDays: 14diff --git a/backend/legacyapi/plan.go b/backend/legacyapi/plan.goindex 4bdc03321b..1fcae0cc5f 100644--- a/backend/legacyapi/plan.go+++ b/backend/legacyapi/plan.go@@ -138,8 +138,6 @@ const (// Database management.- // FeaturePITR allows user to perform point-in-time recovery for databases.- FeaturePITR FeatureType = "bb.feature.pitr"// FeatureReadReplicaConnection allows user to set a read replica connection// including host and port to data source.FeatureReadReplicaConnection FeatureType = "bb.feature.read-replica-connection"@@ -159,11 +157,6 @@ const (// e.g. One can configure to NOT require approval for dev environment while require// manual approval for production.FeatureApprovalPolicy FeatureType = "bb.feature.approval-policy"- // FeatureBackupPolicy allows user to specify backup policy for the environment- //- // e.g. One can configure to NOT require backup for dev environment while require- // weekly backup for staging and daily backup for production.- FeatureBackupPolicy FeatureType = "bb.feature.backup-policy"// FeatureEnvironmentTierPolicy allows user to set the tier of an environment.//// e.g. set the tier to "PROTECTED" for the production environment.@@ -256,8 +249,6 @@ func (e FeatureType) Name() string {case FeatureVCSSQLReviewWorkflow:return "VCS SQL review workflow"// Database management- case FeaturePITR:- return "Point-in-time Recovery"case FeatureReadReplicaConnection:return "Read replica connection"case FeatureInstanceSSHConnection:@@ -271,8 +262,6 @@ func (e FeatureType) Name() string {// Policy Controlcase FeatureApprovalPolicy:return "Approval policy"- case FeatureBackupPolicy:- return "Backup policy"case FeatureEnvironmentTierPolicy:return "Environment tier"case FeatureSensitiveData:@@ -345,7 +334,6 @@ var FeatureMatrix = map[FeatureType][3]bool{FeatureVCSSheetSync: {false, true, true},FeatureVCSSQLReviewWorkflow: {true, true, true},// Database management- FeaturePITR: {false, true, true},FeatureReadReplicaConnection: {false, false, true},FeatureInstanceSSHConnection: {false, false, true},FeatureCustomInstanceScanInterval: {false, false, true},@@ -353,7 +341,6 @@ var FeatureMatrix = map[FeatureType][3]bool{FeatureIndexAdvisor: {false, false, true},// Policy ControlFeatureApprovalPolicy: {false, true, true},- FeatureBackupPolicy: {false, true, true},FeatureEnvironmentTierPolicy: {false, false, true},FeatureSensitiveData: {false, false, true},FeatureAccessControl: {false, false, true},@@ -381,7 +368,6 @@ var InstanceLimitFeature = map[FeatureType]bool{FeatureVCSSQLReviewWorkflow: true,FeatureMybatisSQLReview: true,// Database management- FeaturePITR: true,FeatureReadReplicaConnection: true,FeatureInstanceSSHConnection: true,FeatureCustomInstanceScanInterval: true,diff --git a/backend/tests/backup_restore_test.go b/backend/tests/backup_restore_test.godeleted file mode 100644index e1c8f07140..0000000000--- a/backend/tests/backup_restore_test.go+++ /dev/null@@ -1,759 +0,0 @@-//go:build mysql--package tests--import (- "context"- "database/sql"- "fmt"- "log/slog"- "os"- "path/filepath"- "sort"- "strconv"- "strings"- "testing"- "time"-- "google.golang.org/protobuf/types/known/timestamppb"-- "github.com/google/uuid"-- api "github.com/bytebase/bytebase/backend/legacyapi"- resourcemysql "github.com/bytebase/bytebase/backend/resources/mysql"- "github.com/bytebase/bytebase/backend/tests/fake"- v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"-- "github.com/stretchr/testify/require"-)--const (- numRowsTime0 = 10- numRowsTime1 = 20- numRowsTime2 = 30-)--func TestRestoreToNewDatabase(t *testing.T) {- t.Parallel()- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, project, mysqlDB, instance, database, databaseName, backup, _, cleanFn := setUpForPITRTest(ctx, t, ctl)- defer cleanFn()-- latestSchemaMetadata, err := ctl.databaseServiceClient.GetDatabaseMetadata(ctx, &v1pb.GetDatabaseMetadataRequest{- Name: fmt.Sprintf("%s/metadata", database.Name),- })- a.NoError(err)-- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{- Parent: project.Name,- Plan: &v1pb.Plan{- Steps: []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_CreateDatabaseConfig{- CreateDatabaseConfig: &v1pb.Plan_CreateDatabaseConfig{- Target: instance.Name,- Database: databaseName + "_new",- CharacterSet: latestSchemaMetadata.CharacterSet,- Collation: latestSchemaMetadata.Collation,- Backup: backup.Name,- },- },- },- },- },- },- },- })- a.NoError(err)- issue, err := ctl.issueServiceClient.CreateIssue(ctx, &v1pb.CreateIssueRequest{- Parent: project.Name,- Issue: &v1pb.Issue{- Type: v1pb.Issue_DATABASE_CHANGE,- Title: fmt.Sprintf("restore database %s", database.Name),- Description: fmt.Sprintf("restore database %s", database.Name),- Plan: plan.Name,- Assignee: fmt.Sprintf("users/%s", api.SystemBotEmail),- },- })- a.NoError(err)- rollout, err := ctl.rolloutServiceClient.CreateRollout(ctx, &v1pb.CreateRolloutRequest{Parent: project.Name, Rollout: &v1pb.Rollout{Plan: plan.Name}})- a.NoError(err)- err = ctl.waitRollout(ctx, issue.Name, rollout.Name)- a.NoError(err)-- validateTbl0(t, mysqlDB, databaseName, numRowsTime0)- validateTbl1(t, mysqlDB, databaseName, numRowsTime0)- validateTableUpdateRow(t, mysqlDB, databaseName)-}--func TestRetentionPolicy(t *testing.T) {- t.Parallel()- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, _, _, _, database, _, backup, _, cleanFn := setUpForPITRTest(ctx, t, ctl)- defer cleanFn()-- metaDB, err := sql.Open("pgx", ctl.profile.PgURL)- a.NoError(err)- a.NoError(metaDB.Ping())-- // Check that the backup file exist- backupResourceName := strings.TrimPrefix(backup.Name, fmt.Sprintf("%s/backups/", database.Name))- backupFilePath := filepath.Join(ctl.profile.DataDir, "backup", "db", database.Uid, fmt.Sprintf("%s.sql", backupResourceName))- _, err = os.Stat(backupFilePath)- a.NoError(err)-- // Change retention period to 1s, and the backup should be quickly removed.- // TODO(d): clean-up the hack.- _, err = metaDB.ExecContext(ctx, fmt.Sprintf("UPDATE backup_setting SET enabled=true, retention_period_ts=1 WHERE database_id=%s;", database.Uid))- a.NoError(err)- err = ctl.waitBackupArchived(ctx, database.Name, backup.Name)- a.NoError(err)- _, err = os.Stat(backupFilePath)- a.Equal(true, os.IsNotExist(err))-}--// TestPITRGeneral tests for the general PITR cases:-// 1. buggy application.-// 2. bad schema migration.-func TestPITRGeneral(t *testing.T) {- t.Parallel()- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, project, mysqlDB, _, database, databaseName, _, mysqlPort, cleanFn := setUpForPITRTest(ctx, t, ctl)- defer cleanFn()-- insertRangeData(t, mysqlDB, numRowsTime0, numRowsTime1)-- ctxUpdateRow, cancelUpdateRow := context.WithCancel(ctx)- targetTs := startUpdateRow(ctxUpdateRow, t, databaseName, mysqlPort).Add(time.Second)-- dropColumnStmt := `ALTER TABLE tbl1 DROP COLUMN id;`- slog.Debug("mimics schema migration", slog.String("statement", dropColumnStmt))- _, err := mysqlDB.ExecContext(ctx, dropColumnStmt)- a.NoError(err)-- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{- Parent: project.Name,- Plan: &v1pb.Plan{- Steps: []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &v1pb.Plan_RestoreDatabaseConfig{- Target: database.Name,- Source: &v1pb.Plan_RestoreDatabaseConfig_PointInTime{- PointInTime: timestamppb.New(targetTs),- },- },- },- },- },- },- },- },- })- a.NoError(err)- issue, err := ctl.issueServiceClient.CreateIssue(ctx, &v1pb.CreateIssueRequest{- Parent: project.Name,- Issue: &v1pb.Issue{- Type: v1pb.Issue_DATABASE_CHANGE,- Title: "restore database",- Description: "restore database",- Plan: plan.Name,- Assignee: fmt.Sprintf("users/%s", api.SystemBotEmail),- },- })- a.NoError(err)- rollout, err := ctl.rolloutServiceClient.CreateRollout(ctx, &v1pb.CreateRolloutRequest{Parent: project.Name, Rollout: &v1pb.Rollout{Plan: plan.Name}})- a.NoError(err)-- // Restore stage.- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.NoError(err)-- cancelUpdateRow()- // We mimics the situation where the user waits for the target database idle before doing the cutover.- time.Sleep(time.Second)-- // Cutover stage.- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.NoError(err)-- validateTbl0(t, mysqlDB, databaseName, numRowsTime1)- validateTbl1(t, mysqlDB, databaseName, numRowsTime1)- validateTableUpdateRow(t, mysqlDB, databaseName)-}--func TestPITRDropDatabase(t *testing.T) {- t.Parallel()- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, project, mysqlDB, _, database, databaseName, _, _, cleanFn := setUpForPITRTest(ctx, t, ctl)- defer cleanFn()-- insertRangeData(t, mysqlDB, numRowsTime0, numRowsTime1)-- time.Sleep(time.Second)- targetTs := time.Now()-- dropStmt := fmt.Sprintf(`DROP DATABASE %s;`, databaseName)- _, err := mysqlDB.ExecContext(ctx, dropStmt)- a.NoError(err)-- dbRows, err := mysqlDB.Query(fmt.Sprintf(`SHOW DATABASES LIKE '%s';`, databaseName))- a.NoError(err)- defer dbRows.Close()- for dbRows.Next() {- var s string- err := dbRows.Scan(&s)- a.NoError(err)- a.FailNow("Database still exists after dropped")- }- a.NoError(dbRows.Err())-- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{- Parent: project.Name,- Plan: &v1pb.Plan{- Steps: []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &v1pb.Plan_RestoreDatabaseConfig{- Target: database.Name,- Source: &v1pb.Plan_RestoreDatabaseConfig_PointInTime{- PointInTime: timestamppb.New(targetTs),- },- },- },- },- },- },- },- },- })- a.NoError(err)- issue, err := ctl.issueServiceClient.CreateIssue(ctx, &v1pb.CreateIssueRequest{- Parent: project.Name,- Issue: &v1pb.Issue{- Type: v1pb.Issue_DATABASE_CHANGE,- Title: "restore database",- Description: "restore database",- Plan: plan.Name,- Assignee: fmt.Sprintf("users/%s", api.SystemBotEmail),- },- })- a.NoError(err)- rollout, err := ctl.rolloutServiceClient.CreateRollout(ctx, &v1pb.CreateRolloutRequest{Parent: project.Name, Rollout: &v1pb.Rollout{Plan: plan.Name}})- a.NoError(err)-- // Restore stage.- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.NoError(err)-- // We mimics the situation where the user waits for the target database idle before doing the cutover.- time.Sleep(time.Second)-- // Cutover stage.- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.NoError(err)-- validateTbl0(t, mysqlDB, databaseName, numRowsTime1)- validateTbl1(t, mysqlDB, databaseName, numRowsTime1)- validateTableUpdateRow(t, mysqlDB, databaseName)-}--func TestPITRTwice(t *testing.T) {- t.Parallel()- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, project, mysqlDB, _, database, databaseName, _, mysqlPort, cleanFn := setUpForPITRTest(ctx, t, ctl)- defer cleanFn()-- slog.Debug("Creating issue for the first PITR.")- insertRangeData(t, mysqlDB, numRowsTime0, numRowsTime1)- ctxUpdateRow, cancelUpdateRow := context.WithCancel(ctx)- targetTs := startUpdateRow(ctxUpdateRow, t, databaseName, mysqlPort).Add(time.Second)-- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{- Parent: project.Name,- Plan: &v1pb.Plan{- Steps: []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &v1pb.Plan_RestoreDatabaseConfig{- Target: database.Name,- Source: &v1pb.Plan_RestoreDatabaseConfig_PointInTime{- PointInTime: timestamppb.New(targetTs),- },- },- },- },- },- },- },- },- })- a.NoError(err)- issue, err := ctl.issueServiceClient.CreateIssue(ctx, &v1pb.CreateIssueRequest{- Parent: project.Name,- Issue: &v1pb.Issue{- Type: v1pb.Issue_DATABASE_CHANGE,- Title: "restore database",- Description: "restore database",- Plan: plan.Name,- Assignee: fmt.Sprintf("users/%s", api.SystemBotEmail),- },- })- a.NoError(err)- rollout, err := ctl.rolloutServiceClient.CreateRollout(ctx, &v1pb.CreateRolloutRequest{Parent: project.Name, Rollout: &v1pb.Rollout{Plan: plan.Name}})- a.NoError(err)-- // Restore stage.- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.NoError(err)-- cancelUpdateRow()- // We mimics the situation where the user waits for the target database idle before doing the cutover.- time.Sleep(time.Second)-- // Cutover stage.- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.NoError(err)-- validateTbl0(t, mysqlDB, databaseName, numRowsTime1)- validateTbl1(t, mysqlDB, databaseName, numRowsTime1)- validateTableUpdateRow(t, mysqlDB, databaseName)- slog.Debug("First PITR done.")-- slog.Debug("Wait for the first PITR auto backup to finish.")- resp, err := ctl.databaseServiceClient.ListBackups(ctx, &v1pb.ListBackupsRequest{- Parent: database.Name,- })- a.NoError(err)- backups := resp.Backups- a.Equal(2, len(backups))- sort.Slice(backups, func(i int, j int) bool {- return backups[i].CreateTime.AsTime().After(backups[j].CreateTime.AsTime())- })- err = ctl.waitBackup(ctx, database.Name, backups[0].Name)- a.NoError(err)-- slog.Debug("Creating issue for the second PITR.")- ctxUpdateRow, cancelUpdateRow = context.WithCancel(ctx)- targetTs = startUpdateRow(ctxUpdateRow, t, databaseName, mysqlPort).Add(time.Second)- insertRangeData(t, mysqlDB, numRowsTime1, numRowsTime2)-- plan, err = ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{- Parent: project.Name,- Plan: &v1pb.Plan{- Steps: []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &v1pb.Plan_RestoreDatabaseConfig{- Target: database.Name,- Source: &v1pb.Plan_RestoreDatabaseConfig_PointInTime{- PointInTime: timestamppb.New(targetTs),- },- },- },- },- },- },- },- },- })- a.NoError(err)- issue, err = ctl.issueServiceClient.CreateIssue(ctx, &v1pb.CreateIssueRequest{- Parent: project.Name,- Issue: &v1pb.Issue{- Type: v1pb.Issue_DATABASE_CHANGE,- Title: "restore database",- Description: "restore database",- Plan: plan.Name,- Assignee: fmt.Sprintf("users/%s", api.SystemBotEmail),- },- })- a.NoError(err)- rollout, err = ctl.rolloutServiceClient.CreateRollout(ctx, &v1pb.CreateRolloutRequest{Parent: project.Name, Rollout: &v1pb.Rollout{Plan: plan.Name}})- a.NoError(err)-- // Restore stage.- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.NoError(err)-- cancelUpdateRow()- // We mimics the situation where the user waits for the target database idle before doing the cutover.- time.Sleep(time.Second)-- // Cutover stage.- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.NoError(err)-- // Second PITR- validateTbl0(t, mysqlDB, databaseName, numRowsTime1)- validateTbl1(t, mysqlDB, databaseName, numRowsTime1)- validateTableUpdateRow(t, mysqlDB, databaseName)- slog.Debug("Second PITR done.")-}--func TestPITRToNewDatabaseInAnotherInstance(t *testing.T) {- t.Parallel()- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, project, sourceMySQLDB, _, sourceDB, databaseName, _, mysqlPort, cleanFn := setUpForPITRTest(ctx, t, ctl)- defer cleanFn()-- dstPort := getTestPort()- dstStopFn := resourcemysql.SetupTestInstance(t, dstPort, mysqlBinDir)- defer dstStopFn()- dstConnCfg := getMySQLConnectionConfig(strconv.Itoa(dstPort), "")-- dstInstance, err := ctl.instanceServiceClient.CreateInstance(ctx, &v1pb.CreateInstanceRequest{- InstanceId: "destinationinstance",- Instance: &v1pb.Instance{- Title: "DestinationInstance",- Engine: v1pb.Engine_MYSQL,- Environment: "environments/prod",- Activation: true,- DataSources: []*v1pb.DataSource{{Type: v1pb.DataSourceType_ADMIN, Host: dstConnCfg.Host, Port: dstConnCfg.Port, Username: dstConnCfg.Username, Id: "admin"}},- },- })- a.NoError(err)-- insertRangeData(t, sourceMySQLDB, numRowsTime0, numRowsTime1)-- ctxUpdateRow, cancelUpdateRow := context.WithCancel(ctx)- cancelUpdateRow()-- targetTs := startUpdateRow(ctxUpdateRow, t, databaseName, mysqlPort).Add(time.Second)-- dropColumnStmt := `ALTER TABLE tbl1 DROP COLUMN id;`- slog.Debug("mimics schema migration", slog.String("statement", dropColumnStmt))- _, err = sourceMySQLDB.ExecContext(ctx, dropColumnStmt)- a.NoError(err)-- targetDatabaseName := "new_database"- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{- Parent: project.Name,- Plan: &v1pb.Plan{- Steps: []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &v1pb.Plan_RestoreDatabaseConfig{- Target: sourceDB.Name,- CreateDatabaseConfig: &v1pb.Plan_CreateDatabaseConfig{- Target: dstInstance.Name,- Database: targetDatabaseName,- CharacterSet: "utf8mb4",- Collation: "utf8mb4_general_ci",- },- Source: &v1pb.Plan_RestoreDatabaseConfig_PointInTime{- PointInTime: timestamppb.New(targetTs),- },- },- },- },- },- },- },- },- })- a.NoError(err)- issue, err := ctl.issueServiceClient.CreateIssue(ctx, &v1pb.CreateIssueRequest{- Parent: project.Name,- Issue: &v1pb.Issue{- Type: v1pb.Issue_DATABASE_CHANGE,- Title: "restore database",- Description: "restore database",- Plan: plan.Name,- Assignee: fmt.Sprintf("users/%s", api.SystemBotEmail),- },- })- a.NoError(err)- rollout, err := ctl.rolloutServiceClient.CreateRollout(ctx, &v1pb.CreateRolloutRequest{Parent: project.Name, Rollout: &v1pb.Rollout{Plan: plan.Name}})- a.NoError(err)-- err = ctl.waitRollout(ctx, issue.Name, rollout.Name)- a.NoError(err)-- cancelUpdateRow()-- targetDB, err := connectTestMySQL(dstPort, targetDatabaseName)- a.NoError(err)-- validateTbl0(t, targetDB, targetDatabaseName, numRowsTime1)- validateTbl1(t, targetDB, targetDatabaseName, numRowsTime1)- validateTableUpdateRow(t, targetDB, targetDatabaseName)-}--func TestPITRInvalidTimePoint(t *testing.T) {- t.Parallel()- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- targetTs := time.Now()- ctx, project, _, _, database, _, _, _, cleanFn := setUpForPITRTest(ctx, t, ctl)- defer cleanFn()-- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{- Parent: project.Name,- Plan: &v1pb.Plan{- Steps: []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &v1pb.Plan_RestoreDatabaseConfig{- Target: database.Name,- Source: &v1pb.Plan_RestoreDatabaseConfig_PointInTime{- PointInTime: timestamppb.New(targetTs),- },- },- },- },- },- },- },- },- })- a.NoError(err)- issue, err := ctl.issueServiceClient.CreateIssue(ctx, &v1pb.CreateIssueRequest{- Parent: project.Name,- Issue: &v1pb.Issue{- Type: v1pb.Issue_DATABASE_CHANGE,- Title: "restore database",- Description: "restore database",- Plan: plan.Name,- Assignee: fmt.Sprintf("users/%s", api.SystemBotEmail),- },- })- a.NoError(err)- rollout, err := ctl.rolloutServiceClient.CreateRollout(ctx, &v1pb.CreateRolloutRequest{Parent: project.Name, Rollout: &v1pb.Rollout{Plan: plan.Name}})- a.NoError(err)-- err = ctl.rolloutAndWaitTask(ctx, issue.Name, rollout.Name)- a.Error(err)-}--func setUpForPITRTest(ctx context.Context, t *testing.T, ctl *controller) (context.Context, *v1pb.Project, *sql.DB, *v1pb.Instance, *v1pb.Database, string, *v1pb.Backup, int, func()) {- a := require.New(t)-- dataDir := t.TempDir()- ctx, err := ctl.StartServerWithExternalPg(ctx, &config{- dataDir: dataDir,- vcsProviderCreator: fake.NewGitLab,- })- a.NoError(err)-- baseName := strings.ReplaceAll(t.Name(), "/", "_")- databaseName := baseName + "_Database"-- mysqlPort := getTestPort()- stopInstance := resourcemysql.SetupTestInstance(t, mysqlPort, mysqlBinDir)- connCfg := getMySQLConnectionConfig(strconv.Itoa(mysqlPort), "")- a.NoError(err)- instance, err := ctl.instanceServiceClient.CreateInstance(ctx, &v1pb.CreateInstanceRequest{- InstanceId: generateRandomString("instance", 10),- Instance: &v1pb.Instance{- Title: baseName + "_Instance",- Engine: v1pb.Engine_MYSQL,- Environment: "environments/prod",- Activation: true,- DataSources: []*v1pb.DataSource{{Type: v1pb.DataSourceType_ADMIN, Host: connCfg.Host, Port: connCfg.Port, Username: connCfg.Username, Id: "admin"}},- },- })- a.NoError(err)-- err = ctl.createDatabaseV2(ctx, ctl.project, instance, nil, databaseName, "", nil)- a.NoError(err)-- database, err := ctl.databaseServiceClient.GetDatabase(ctx, &v1pb.GetDatabaseRequest{- Name: fmt.Sprintf("%s/databases/%s", instance.Name, databaseName),- })- a.NoError(err)-- err = ctl.disableAutomaticBackup(ctx, database.Name)- a.NoError(err)-- mysqlDB := initPITRDB(t, databaseName, mysqlPort)-- insertRangeData(t, mysqlDB, 0, numRowsTime0)-- slog.Debug("Create a full backup")- backup, err := ctl.databaseServiceClient.CreateBackup(ctx, &v1pb.CreateBackupRequest{- Parent: database.Name,- Backup: &v1pb.Backup{- Name: fmt.Sprintf("%s/backups/first-backup", database.Name),- BackupType: v1pb.Backup_MANUAL,- },- })- a.NoError(err)- err = ctl.waitBackup(ctx, database.Name, backup.Name)- a.NoError(err)-- return ctx, ctl.project, mysqlDB, instance, database, databaseName, backup, mysqlPort, func() {- a.NoError(ctl.Close(ctx))- stopInstance()- a.NoError(mysqlDB.Close())- }-}--func initPITRDB(t *testing.T, database string, port int) *sql.DB {- a := require.New(t)-- var db *sql.DB- db, err := connectTestMySQL(port, "")- a.NoError(err)-- stmt := fmt.Sprintf(`- USE %s;- CREATE TABLE tbl0 (- id INT,- PRIMARY KEY (id),- CHECK (id >= 0)- );- CREATE TABLE tbl1 (- id INT,- pid INT,- PRIMARY KEY (id),- UNIQUE INDEX (pid),- CONSTRAINT FOREIGN KEY (pid) REFERENCES tbl0(id) ON DELETE NO ACTION- );- CREATE TABLE _update_row_ (id INT PRIMARY KEY);- INSERT INTO _update_row_ VALUES (0);- `, database)- _, err = db.Exec(stmt)- a.NoError(err)-- return db-}--func insertRangeData(t *testing.T, db *sql.DB, begin, end int) {- slog.Debug("Inserting range data", slog.Int("begin", begin), slog.Int("end", end))- a := require.New(t)- tx, err := db.Begin()- a.NoError(err)-- for i := begin; i < end; i++ {- _, err := tx.Exec(fmt.Sprintf("INSERT INTO tbl0 VALUES (%d);", i))- a.NoError(err)- _, err = tx.Exec(fmt.Sprintf("INSERT INTO tbl1 VALUES (%d, %d);", i, i))- a.NoError(err)- }-- err = tx.Commit()- a.NoError(err)-}--func validateTbl0(t *testing.T, db *sql.DB, databaseName string, numRows int) {- slog.Debug("Validate table tbl0")- a := require.New(t)- rows, err := db.Query(fmt.Sprintf("SELECT * FROM %s.tbl0;", databaseName))- a.NoError(err)- defer rows.Close()- i := 0- for rows.Next() {- var col int- a.NoError(rows.Scan(&col))- a.Equal(i, col)- i++- }- a.NoError(rows.Err())- a.Equal(numRows, i)-}--func validateTbl1(t *testing.T, db *sql.DB, databaseName string, numRows int) {- slog.Debug("Validate table tbl1")- a := require.New(t)- rows, err := db.Query(fmt.Sprintf("SELECT * FROM %s.tbl1;", databaseName))- a.NoError(err)- defer rows.Close()- i := 0- for rows.Next() {- var col1, col2 int- a.NoError(rows.Scan(&col1, &col2))- a.Equal(i, col1)- a.Equal(i, col2)- i++- }- a.NoError(rows.Err())- a.Equal(numRows, i)-}--func validateTableUpdateRow(t *testing.T, db *sql.DB, databaseName string) {- slog.Debug("Validate table _update_row_")- a := require.New(t)- rows, err := db.Query(fmt.Sprintf("SELECT * FROM %s._update_row_;", databaseName))- a.NoError(err)- defer rows.Close()-- a.Equal(true, rows.Next())- var col int- a.NoError(rows.Scan(&col))- a.Equal(0, col)- a.Equal(false, rows.Next())-- a.NoError(rows.Err())-}--// Concurrently update a single row to mimic the ongoing business workload.-// Returns the timestamp after inserting the initial value so we could check the PITR is done right.-func startUpdateRow(ctx context.Context, t *testing.T, database string, port int) time.Time {- a := require.New(t)- db, err := connectTestMySQL(port, database)- a.NoError(err)-- slog.Debug("Start updating data concurrently")- initTimestamp := time.Now()-- // Sleep for one second so that the concurrent update will start no earlier than initTimestamp+1.- // This will make a clear boundary for the binlog recovery --stop-datetime.- // For example, the recovery command is mysqlbinlog --stop-datetime `initTimestamp+1`, and the concurrent updates- // later will no be recovered. Then we can validate by checking the table _update_row_ has the initial value (0).- time.Sleep(time.Second)-- go func() {- defer db.Close()- ticker := time.NewTicker(1 * time.Millisecond)- defer ticker.Stop()- i := 0- for {- select {- case <-ticker.C:- _, err = db.Exec(fmt.Sprintf("UPDATE _update_row_ SET id = %d;", i))- a.NoError(err)- i++- case <-ctx.Done():- slog.Debug("Stop updating data concurrently")- return- }- }- }()-- return initTimestamp-}diff --git a/backend/tests/database.go b/backend/tests/database.goindex ae81b3e543..3a7fccada6 100644--- a/backend/tests/database.go+++ b/backend/tests/database.go@@ -3,12 +3,8 @@ package testsimport ("context""fmt"- "log/slog"- "time""github.com/google/uuid"- "github.com/pkg/errors"- "google.golang.org/protobuf/types/known/durationpb"api "github.com/bytebase/bytebase/backend/legacyapi"v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"@@ -85,151 +81,3 @@ func (ctl *controller) createDatabaseV2(ctx context.Context, project *v1pb.Proje}return nil}--func (ctl *controller) createDatabaseFromBackup(ctx context.Context, project *v1pb.Project, instance *v1pb.Instance, databaseName string, owner string, labels map[string]string, backup *v1pb.Backup) error {- characterSet, collation := "utf8mb4", "utf8mb4_general_ci"- if instance.Engine == v1pb.Engine_POSTGRES {- characterSet = "UTF8"- collation = "en_US.UTF-8"- }-- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{- Parent: project.Name,- Plan: &v1pb.Plan{- Steps: []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_RestoreDatabaseConfig{- RestoreDatabaseConfig: &v1pb.Plan_RestoreDatabaseConfig{- Target: fmt.Sprintf("%s/databases/%s", instance.Name, databaseName),- CreateDatabaseConfig: &v1pb.Plan_CreateDatabaseConfig{- Target: instance.Name,- Database: databaseName,- CharacterSet: characterSet,- Collation: collation,- Owner: owner,- Labels: labels,- },- Source: &v1pb.Plan_RestoreDatabaseConfig_Backup{- Backup: backup.Name,- },- },- },- },- },- },- },- },- })- if err != nil {- return err- }- issue, err := ctl.issueServiceClient.CreateIssue(ctx, &v1pb.CreateIssueRequest{- Parent: project.Name,- Issue: &v1pb.Issue{- Title: fmt.Sprintf("create database %q", databaseName),- Description: fmt.Sprintf("This creates a database %q.", databaseName),- Plan: plan.Name,- Type: v1pb.Issue_DATABASE_CHANGE,- Assignee: fmt.Sprintf("users/%s", api.SystemBotEmail),- },- })- if err != nil {- return err- }- rollout, err := ctl.rolloutServiceClient.CreateRollout(ctx, &v1pb.CreateRolloutRequest{Parent: project.Name, Rollout: &v1pb.Rollout{Plan: plan.Name}})- if err != nil {- return err- }-- if err := ctl.waitRollout(ctx, issue.Name, rollout.Name); err != nil {- return err- }-- _, err = ctl.issueServiceClient.BatchUpdateIssuesStatus(ctx, &v1pb.BatchUpdateIssuesStatusRequest{- Parent: project.Name,- Issues: []string{issue.Name},- Status: v1pb.IssueStatus_DONE,- })- if err != nil {- return err- }- return nil-}--// disableAutomaticBackup disables the automatic backup of a database.-func (ctl *controller) disableAutomaticBackup(ctx context.Context, databaseName string) error {- if _, err := ctl.databaseServiceClient.UpdateBackupSetting(ctx, &v1pb.UpdateBackupSettingRequest{- Setting: &v1pb.BackupSetting{- Name: fmt.Sprintf("%s/backupSetting", databaseName),- CronSchedule: "",- BackupRetainDuration: durationpb.New(time.Duration(7*24*60*60) * time.Second),- },- }); err != nil {- return err- }-- return nil-}--// waitBackup waits for a backup to be done.-func (ctl *controller) waitBackup(ctx context.Context, databaseName, backupName string) error {- ticker := time.NewTicker(100 * time.Millisecond)- defer ticker.Stop()-- slog.Debug("Waiting for backup.", slog.String("id", backupName))- for range ticker.C {- resp, err := ctl.databaseServiceClient.ListBackups(ctx, &v1pb.ListBackupsRequest{Parent: databaseName})- if err != nil {- return err- }- backups := resp.Backups- var backup *v1pb.Backup- for _, b := range backups {- if b.Name == backupName {- backup = b- break- }- }- if backup == nil {- return errors.Errorf("backup %v not found", backupName)- }- switch backup.State {- case v1pb.Backup_DONE:- return nil- case v1pb.Backup_FAILED:- return errors.Errorf("backup %v failed", backupName)- }- }- // Ideally, this should never happen because the ticker will not stop till the backup is finished.- return errors.Errorf("failed to wait for backup as this condition should never be reached")-}--// waitBackupArchived waits for a backup to be archived.-func (ctl *controller) waitBackupArchived(ctx context.Context, databaseName, backupName string) error {- ticker := time.NewTicker(100 * time.Millisecond)- defer ticker.Stop()-- slog.Debug("Waiting for backup.", slog.String("id", backupName))- for range ticker.C {- resp, err := ctl.databaseServiceClient.ListBackups(ctx, &v1pb.ListBackupsRequest{Parent: databaseName})- if err != nil {- return err- }- backups := resp.Backups- var backup *v1pb.Backup- for _, b := range backups {- if b.Name == backupName {- backup = b- break- }- }- if backup == nil {- return nil- }- }- // Ideally, this should never happen because the ticker will not stop till the backup is finished.- return errors.Errorf("failed to wait for backup as this condition should never be reached")-}diff --git a/backend/tests/rollout.go b/backend/tests/rollout.goindex 4f8f7327b4..2f06dbcef1 100644--- a/backend/tests/rollout.go+++ b/backend/tests/rollout.go@@ -160,83 +160,3 @@ func (ctl *controller) waitRollout(ctx context.Context, issueName, rolloutName s}return nil}--// rolloutAndWaitTask rollouts one task in the rollout.-func (ctl *controller) rolloutAndWaitTask(ctx context.Context, issueName, rolloutName string) error {- ticker := time.NewTicker(100 * time.Millisecond)- defer ticker.Stop()-- for range ticker.C {- issue, err := ctl.issueServiceClient.GetIssue(ctx, &v1pb.GetIssueRequest{Name: issueName})- if err != nil {- return err- }- if issue.ApprovalFindingError != "" {- return errors.Errorf("approval finding error: %v", issue.ApprovalFindingError)- }- if issue.ApprovalFindingDone {- break- }- }-- rollout, err := ctl.rolloutServiceClient.GetRollout(ctx, &v1pb.GetRolloutRequest{- Name: rolloutName,- })- if err != nil {- return err- }- var foundTask string- for _, stage := range rollout.Stages {- for _, task := range stage.Tasks {- if task.Status == v1pb.Task_NOT_STARTED {- _, err := ctl.rolloutServiceClient.BatchRunTasks(ctx, &v1pb.BatchRunTasksRequest{- Parent: fmt.Sprintf("%s/stages/-", rolloutName),- Tasks: []string{task.Name},- })- if err != nil {- return err- }- foundTask = task.Name- break- }- }- if foundTask != "" {- break- }- }- if foundTask == "" {- return errors.Errorf("found no task to rollout")- }-- for range ticker.C {- rollout, err := ctl.rolloutServiceClient.GetRollout(ctx, &v1pb.GetRolloutRequest{- Name: rolloutName,- })- if err != nil {- return err- }-- for _, stage := range rollout.Stages {- for _, task := range stage.Tasks {- if task.Name != foundTask {- continue- }- switch task.Status {- case v1pb.Task_DONE:- return nil- case v1pb.Task_SKIPPED:- return nil- case v1pb.Task_FAILED:- resp, err := ctl.rolloutServiceClient.ListTaskRuns(ctx, &v1pb.ListTaskRunsRequest{Parent: task.Name, PageSize: 1})- if err != nil {- return err- }- if len(resp.TaskRuns) > 0 {- return errors.Errorf(resp.TaskRuns[0].Detail)- }- }- }- }- }- return nil-}diff --git a/backend/tests/schema_update_test.go b/backend/tests/schema_update_test.goindex 9e784fa424..a88c117675 100644--- a/backend/tests/schema_update_test.go+++ b/backend/tests/schema_update_test.go@@ -20,8 +20,6 @@ import ("github.com/stretchr/testify/require""google.golang.org/protobuf/proto""google.golang.org/protobuf/testing/protocmp"- "google.golang.org/protobuf/types/known/durationpb"- "google.golang.org/protobuf/types/known/structpb"api "github.com/bytebase/bytebase/backend/legacyapi""github.com/bytebase/bytebase/backend/plugin/advisor"@@ -36,31 +34,6 @@ import (v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")-var (- bookDataQuery = `SELECT * FROM book;`- bookDataSQLResult = &v1pb.QueryResult{- ColumnNames: []string{"id", "name"},- ColumnTypeNames: []string{"INTEGER", "TEXT"},- Masked: []bool{false, false},- Sensitive: []bool{false, false},- Rows: []*v1pb.QueryRow{- {- Values: []*v1pb.RowValue{- {Kind: &v1pb.RowValue_Int64Value{Int64Value: 1}},- {Kind: &v1pb.RowValue_StringValue{StringValue: "byte"}},- },- },- {- Values: []*v1pb.RowValue{- {Kind: &v1pb.RowValue_Int64Value{Int64Value: 2}},- {Kind: &v1pb.RowValue_NullValue{NullValue: structpb.NullValue_NULL_VALUE}},- },- },- },- Statement: "SELECT * FROM book",- }-)-func TestSchemaAndDataUpdate(t *testing.T) {t.Parallel()a := require.New(t)@@ -169,63 +142,6 @@ func TestSchemaAndDataUpdate(t *testing.T) {a.Equal(want, got)a.NotEqual(history.Version, "")}-- // Create a manual backup.- backup, err := ctl.databaseServiceClient.CreateBackup(ctx, &v1pb.CreateBackupRequest{- Parent: database.Name,- Backup: &v1pb.Backup{- Name: fmt.Sprintf("%s/backups/name", database.Name),- BackupType: v1pb.Backup_MANUAL,- },- })- a.NoError(err)- err = ctl.waitBackup(ctx, database.Name, backup.Name)- a.NoError(err)-- // Create an issue that creates a database.- cloneDatabaseName := "testClone"- err = ctl.createDatabaseFromBackup(ctx, ctl.project, instance, cloneDatabaseName, "" /* owner */, nil /* labels */, backup)- a.NoError(err)- cloneDatabase, err := ctl.databaseServiceClient.GetDatabase(ctx, &v1pb.GetDatabaseRequest{Name: fmt.Sprintf("%s/databases/%s", instance.Name, cloneDatabaseName)})- a.NoError(err)-- // Query clone database book table data.- queryResp, err := ctl.sqlServiceClient.Query(ctx, &v1pb.QueryRequest{- Name: instance.Name, ConnectionDatabase: cloneDatabaseName, Statement: bookDataQuery,- })- a.NoError(err)- a.Equal(1, len(queryResp.Results))- diff := cmp.Diff(bookDataSQLResult, queryResp.Results[0], protocmp.Transform(), protocmp.IgnoreMessages(&durationpb.Duration{}))- a.Equal("", diff)-- // Query clone migration history.- resp, err = ctl.databaseServiceClient.ListChangeHistories(ctx, &v1pb.ListChangeHistoriesRequest{- Parent: cloneDatabase.Name,- View: v1pb.ChangeHistoryView_CHANGE_HISTORY_VIEW_FULL,- })- a.NoError(err)- histories = resp.ChangeHistories- wantCloneHistories := []*v1pb.ChangeHistory{- {- Source: v1pb.ChangeHistory_UI,- Type: v1pb.ChangeHistory_BRANCH,- Status: v1pb.ChangeHistory_DONE,- Schema: dumpedSchema,- PrevSchema: dumpedSchema,- },- }- a.Equal(len(wantCloneHistories), len(histories))- for i, history := range histories {- got := &v1pb.ChangeHistory{- Source: history.Source,- Type: history.Type,- Status: history.Status,- Schema: history.Schema,- PrevSchema: history.PrevSchema,- }- want := wantCloneHistories[i]- a.True(proto.Equal(got, want))- }}func TestVCS(t *testing.T) {diff --git a/frontend/src/components/CreateDatabasePrepForm/CreateDatabasePrepForm.vue b/frontend/src/components/CreateDatabasePrepForm/CreateDatabasePrepForm.vueindex 8cebca7ba6..c6c94f54f7 100644--- a/frontend/src/components/CreateDatabasePrepForm/CreateDatabasePrepForm.vue+++ b/frontend/src/components/CreateDatabasePrepForm/CreateDatabasePrepForm.vue@@ -168,7 +168,7 @@import { isEmpty } from "lodash-es";import { NInput } from "naive-ui";import { v4 as uuidv4 } from "uuid";-import { computed, reactive, PropType } from "vue";+import { computed, reactive } from "vue";import { useRouter } from "vue-router";import InstanceRoleSelect from "@/components/InstanceRoleSelect.vue";import {@@ -195,7 +195,6 @@ import {} from "@/types";import { INTERNAL_RDS_INSTANCE_USER_LIST } from "@/types/InstanceUser";import { Engine } from "@/types/proto/v1/common";-import { Backup } from "@/types/proto/v1/database_service";import { InstanceRole } from "@/types/proto/v1/instance_role_service";import { Issue, Issue_Type } from "@/types/proto/v1/issue_service";import { TenantMode } from "@/types/proto/v1/project_service";@@ -205,8 +204,6 @@ import {Plan_Spec,} from "@/types/proto/v1/rollout_service";import {- extractBackupResourceName,- extractDatabaseResourceName,extractProjectResourceName,instanceV1HasCollationAndCharacterSet,instanceV1HasCreateDatabase,@@ -241,11 +238,6 @@ const props = defineProps({type: String,default: undefined,},- // If specified, then we are creating a database from the backup.- backup: {- type: Object as PropType<Backup>,- default: undefined,- },});const emit = defineEmits<{@@ -407,7 +399,6 @@ const createV1 = async () => {defaultCollationOfEngineV1(selectedInstance.value.engine),cluster: state.cluster,owner,- backup: "",};const spec = Plan_Spec.fromPartial({id: uuidv4(),@@ -419,20 +410,8 @@ const createV1 = async () => {creator: `users/${currentUserV1.value.email}`,});- if (props.backup) {- spec.restoreDatabaseConfig = {- backup: props.backup.name,- createDatabaseConfig,- // `target` here is the original db- target: extractDatabaseResourceName(props.backup.name).full,- };- const backupTitle = extractBackupResourceName(props.backup.name);- issueCreate.title = `Create database '${databaseName}' from backup '${backupTitle}'`;- issueCreate.description = `Creating database '${databaseName}' from backup '${backupTitle}'`;- } else {- issueCreate.title = `Create database '${databaseName}'`;- spec.createDatabaseConfig = createDatabaseConfig;- }+ issueCreate.title = `Create database '${databaseName}'`;+ spec.createDatabaseConfig = createDatabaseConfig;state.creating = true;try {diff --git a/frontend/src/components/Database/DatabaseBackupPanel.vue b/frontend/src/components/Database/DatabaseBackupPanel.vuedeleted file mode 100644index 10787ce047..0000000000--- a/frontend/src/components/Database/DatabaseBackupPanel.vue+++ /dev/null@@ -1,462 +0,0 @@-<template>- <div class="space-y-6 divide-y divide-block-border">- <div class="space-y-4">- <div v-if="state.autoBackupEnabled" class="flex justify-between flex-col">- <div class="flex justify-between">- <div- class="flex items-center text-lg leading-6 font-medium text-main"- >- {{ $t("database.automatic-backup") }}- <span class="ml-1 text-success">- {{ $t("database.backup.enabled") }}- </span>- </div>- <div class="flex items-center space-x-3">- <router-link- v-if="hasBackupPolicyViolation"- class="flex items-center normal-link text-sm"- :to="`/${database.effectiveEnvironmentEntity.name}`"- >- <heroicons-outline:exclamation-circle class="w-4 h-4 mr-1" />- <span>{{ $t("database.backup-policy-violation") }}</span>- </router-link>- <NButton- v-if="allowUpdateBackupSetting"- @click.prevent="state.showBackupSettingModal = true"- >- {{- hasBackupPolicyViolation ? $t("common.fix") : $t("common.edit")- }}- </NButton>- </div>- </div>- <div class="mt-2 text-control">- <i18n-t keypath="database.backup-info.template">- <template #dayOrWeek>- <span class="text-accent">{{ autoBackupWeekdayText }}</span>- </template>- <template #time>- <span class="text-accent"> {{ autoBackupHourText }}</span>- </template>- <template #retentionDays>- <span class="text-accent"> {{ autoBackupRetentionDays }}</span>- </template>- </i18n-t>- </div>- <div class="mt-2">- <label for="hookUrl" class="textlabel"> Webhook URL </label>- <div class="mt-1 textinfolabel">- {{- $t(- "database.an-http-post-request-will-be-sent-to-it-after-a-successful-backup"- )- }}- <a- href="https://www.bytebase.com/docs/disaster-recovery/backup/#post-backup-webhook?source=console"- target="_blank"- class="normal-link inline-flex flex-row items-center"- >- {{ $t("common.learn-more") }}- <heroicons-outline:external-link class="w-4 h-4" />- </a>- </div>- <BBTextField- id="hookUrl"- v-model:value="state.autoBackupUpdatedHookUrl"- name="hookUrl"- class="mt-1 w-full"- placeholder="https://betteruptime.com/api/v1/heartbeat/..."- :disabled="!allowUpdateBackupSetting"- />- <div class="mt-2">- <NButton- v-if="allowUpdateBackupSetting"- type="primary"- class="mt-2"- :disabled="!allowUpdateBackupSetting || !urlChanged"- @click.prevent="updateBackupHookUrl()"- >- {{ $t("common.update") }}- </NButton>- </div>- </div>- </div>- <div- v-else- class="flex items-center text-lg leading-6 font-medium text-main"- >- {{ $t("database.automatic-backup") }}- <span class="ml-1 text-control-light">{{- $t("database.backup.disabled")- }}</span>- <div- v-if="allowUpdateDatabase && !state.autoBackupEnabled"- class="ml-4"- >- <NButton- type="primary"- @click.prevent="state.showBackupSettingModal = true"- >- {{ $t("database.enable-backup") }}- </NButton>- </div>- </div>- </div>- <div class="pt-6 space-y-4">- <div class="flex justify-between items-center">- <div class="text-lg leading-6 font-medium text-main">- {{ $t("common.backups") }}- </div>-- <div class="flex-1 flex items-center justify-end">- <PITRRestoreButton- v-if="allowUpdateDatabase"- :database="database"- :allow-admin="allowCreateBackup"- />-- <NButton- v-if="allowCreateBackup"- type="primary"- @click.prevent="state.showCreateBackupModal = true"- >- {{ $t("database.backup-now") }}- </NButton>- </div>- </div>- <BackupTable- v-if="allowListBackup"- :database="database"- :backup-list="backupList"- :allow-edit="allowUpdateDatabase"- />- </div>-- <Drawer- :show="state.showBackupSettingModal"- @close="state.showBackupSettingModal = false"- >- <DatabaseBackupSettingForm- :database="database"- :allow-admin="allowUpdateBackupSetting"- :backup-policy="backupPolicy"- :backup-setting="state.backupSetting"- @cancel="state.showBackupSettingModal = false"- @update="updateBackupSetting"- />- </Drawer>-- <BBModal- v-if="state.showCreateBackupModal"- :title="$t('database.create-a-manual-backup')"- @close="state.showCreateBackupModal = false"- >- <DatabaseBackupCreateForm- :database="database"- @create="- (backupName: string) => {- createBackup(backupName);- state.showCreateBackupModal = false;- }- "- @cancel="state.showCreateBackupModal = false"- />- </BBModal>- </div>-</template>--<script lang="ts" setup>-import { isEqual } from "lodash-es";-import {- computed,- watchEffect,- reactive,- onUnmounted,- onBeforeMount,-} from "vue";-import { useI18n } from "vue-i18n";-import { useDatabaseDetailContext } from "@/components/Database/context";-import {- DatabaseBackupSettingForm,- BackupTable,- levelOfSchedule,- localFromUTC,- parseScheduleFromBackupSetting,-} from "@/components/DatabaseBackup/";-import DatabaseBackupCreateForm from "@/components/DatabaseBackupCreateForm.vue";-import PITRRestoreButton from "@/components/DatabaseDetail/PITRRestoreButton.vue";-import { Drawer } from "@/components/v2";-import {- pushNotification,- useBackupV1Store,- useGracefulRequest,-} from "@/store";-import {- usePolicyV1Store,- defaultBackupSchedule,-} from "@/store/modules/v1/policy";-import {- ComposedDatabase,- NORMAL_POLL_INTERVAL,- POLL_JITTER,- MINIMUM_POLL_INTERVAL,-} from "@/types";-import { Duration } from "@/types/proto/google/protobuf/duration";-import {- Backup,- BackupSetting,- Backup_BackupState,- Backup_BackupType,-} from "@/types/proto/v1/database_service";-import {- PolicyType,- BackupPlanSchedule,-} from "@/types/proto/v1/org_policy_service";--interface LocalState {- showCreateBackupModal: boolean;- autoBackupEnabled: boolean;- autoBackupHour: number;- autoBackupDayOfWeek: number;- autoBackupRetentionPeriodTs: number;- autoBackupHookUrl: string;- autoBackupUpdatedHookUrl: string;- pollBackupsTimer?: ReturnType<typeof setTimeout>;- showBackupSettingModal: boolean;- backupSetting: BackupSetting | undefined;-}--const props = defineProps<{- database: ComposedDatabase;-}>();--const backupStore = useBackupV1Store();-const policyV1Store = usePolicyV1Store();-const { t } = useI18n();-const {- allowUpdateDatabase,- allowUpdateBackupSetting,- allowListBackup,- allowCreateBackup,-} = useDatabaseDetailContext();--const state = reactive<LocalState>({- showCreateBackupModal: false,- autoBackupEnabled: false,- autoBackupHour: 0,- autoBackupDayOfWeek: 0,- autoBackupRetentionPeriodTs: 0,- autoBackupHookUrl: "",- autoBackupUpdatedHookUrl: "",- showBackupSettingModal: false,- backupSetting: undefined,-});--onUnmounted(() => {- if (state.pollBackupsTimer) {- clearInterval(state.pollBackupsTimer);- }-});--const prepareBackupList = () => {- backupStore.fetchBackupList({- parent: props.database.name,- });-};--watchEffect(prepareBackupList);--const prepareBackupPolicy = () => {- policyV1Store.getOrFetchPolicyByParentAndType({- parentPath: props.database.effectiveEnvironment,- policyType: PolicyType.BACKUP_PLAN,- });-};--watchEffect(prepareBackupPolicy);--const assignBackupSetting = (backupSetting: BackupSetting) => {- const schedule = backupStore.parseBackupSchedule(backupSetting.cronSchedule);- state.autoBackupEnabled = backupSetting.cronSchedule !== "";- state.autoBackupHour = schedule.hourOfDay;- state.autoBackupDayOfWeek = schedule.dayOfWeek;- state.autoBackupRetentionPeriodTs =- backupSetting.backupRetainDuration?.seconds?.toNumber() ?? 0;- state.autoBackupHookUrl = backupSetting.hookUrl;- state.autoBackupUpdatedHookUrl = backupSetting.hookUrl;-- state.backupSetting = backupSetting;-};--// List PENDING_CREATE backups first, followed by backups in createdTs descending order.-const backupList = computed(() => {- const list = [...backupStore.backupListByDatabase(props.database.name)];- return list.sort((a, b) => {- if (- a.state === Backup_BackupState.PENDING_CREATE &&- b.state !== Backup_BackupState.PENDING_CREATE- ) {- return -1;- } else if (- a.state !== Backup_BackupState.PENDING_CREATE &&- b.state === Backup_BackupState.PENDING_CREATE- ) {- return 1;- }-- return (b.createTime?.getTime() ?? 0) - (a.createTime?.getTime() ?? 0);- });-});--const autoBackupWeekdayText = computed(() => {- const { dayOfWeek } = localFromUTC(- state.autoBackupHour,- state.autoBackupDayOfWeek- );- if (dayOfWeek == -1) {- return t("database.week.day");- }- if (dayOfWeek == 0) {- return t("database.week.Sunday");- }- if (dayOfWeek == 1) {- return t("database.week.Monday");- }- if (dayOfWeek == 2) {- return t("database.week.Tuesday");- }- if (dayOfWeek == 3) {- return t("database.week.Wednesday");- }- if (dayOfWeek == 4) {- return t("database.week.Thursday");- }- if (dayOfWeek == 5) {- return t("database.week.Friday");- }- if (dayOfWeek == 6) {- return t("database.week.Saturday");- }- return `Invalid day of week: ${dayOfWeek}`;-});--const autoBackupHourText = computed(() => {- const { hour } = localFromUTC(- state.autoBackupHour,- state.autoBackupDayOfWeek- );-- return `${String(hour).padStart(2, "0")}:00 (${- Intl.DateTimeFormat().resolvedOptions().timeZone- })`;-});--const autoBackupRetentionDays = computed(() => {- return state.autoBackupRetentionPeriodTs / 3600 / 24;-});--const backupPolicy = computed((): BackupPlanSchedule => {- const policy = policyV1Store.getPolicyByParentAndType({- parentPath: props.database.effectiveEnvironment,- policyType: PolicyType.BACKUP_PLAN,- });- return policy?.backupPlanPolicy?.schedule ?? defaultBackupSchedule;-});--const hasBackupPolicyViolation = computed((): boolean => {- if (!state.backupSetting) return false;- if (!backupPolicy.value) return false;- const schedule = parseScheduleFromBackupSetting(- state.backupSetting.cronSchedule- );- return levelOfSchedule(schedule) < levelOfSchedule(backupPolicy.value);-});--const updateBackupSetting = (setting: BackupSetting) => {- state.showBackupSettingModal = false;- assignBackupSetting(setting);-};--const urlChanged = computed(() => {- return !isEqual(state.autoBackupHookUrl, state.autoBackupUpdatedHookUrl);-});--const createBackup = async (backupName: string) => {- // Create backup-- useGracefulRequest(async () => {- const parent = props.database.name;- const backupCreate = Backup.fromJSON({- name: `${parent}/backups/${backupName}`,- backupType: Backup_BackupType.MANUAL,- });- await backupStore.createBackup(- backupCreate,- parent,- true /* refreshList */- );- pollBackups(MINIMUM_POLL_INTERVAL);- });-};--// pollBackups invalidates the current timer and schedule a new timer in <<interval>> microseconds-const pollBackups = (interval: number) => {- if (state.pollBackupsTimer) {- clearInterval(state.pollBackupsTimer);- }- state.pollBackupsTimer = setTimeout(() => {- backupStore- .fetchBackupList({- parent: props.database.name,- })- .then((backups) => {- const pending = backups.some(- (backup) => backup.state === Backup_BackupState.PENDING_CREATE- );- if (pending) {- pollBackups(Math.min(interval * 2, NORMAL_POLL_INTERVAL));- }- });- }, Math.max(1000, Math.min(interval, NORMAL_POLL_INTERVAL) + (Math.random() * 2 - 1) * POLL_JITTER));-};--const prepareBackupSetting = () => {- backupStore- .fetchBackupSetting(props.database.name)- .then((backupSetting: BackupSetting | undefined) => {- if (backupSetting) {- assignBackupSetting(backupSetting);- }- });-};--onBeforeMount(prepareBackupSetting);--const updateBackupHookUrl = () => {- backupStore- .upsertBackupSetting({- name: `${props.database.name}/backupSetting`,- cronSchedule: backupStore.buildSimpleSchedule({- enabled: state.autoBackupEnabled,- hourOfDay: state.autoBackupHour,- dayOfWeek: state.autoBackupDayOfWeek,- }),- hookUrl: state.autoBackupUpdatedHookUrl,- backupRetainDuration: Duration.fromPartial({- seconds: state.autoBackupRetentionPeriodTs,- nanos: 0,- }),- })- .then((backupSetting: BackupSetting) => {- assignBackupSetting(backupSetting);- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t(- "database.updated-backup-webhook-url-for-database-props-database-name",- [props.database.databaseName]- ),- });- });-};-</script>diff --git a/frontend/src/components/Database/context.ts b/frontend/src/components/Database/context.tsindex 58e882e39d..f334d164ee 100644--- a/frontend/src/components/Database/context.ts+++ b/frontend/src/components/Database/context.ts@@ -26,8 +26,6 @@ export type DatabaseDetailContext = {allowTransferDatabase: Ref<boolean>;allowListBackup: Ref<boolean>;allowCreateBackup: Ref<boolean>;- allowGetBackupSetting: Ref<boolean>;- allowUpdateBackupSetting: Ref<boolean>;allowGetSchema: Ref<boolean>;allowChangeData: Ref<boolean>;allowAlterSchema: Ref<boolean>;@@ -90,16 +88,6 @@ export const provideDatabaseDetailContext = (checkPermission("bb.backups.create") &&instanceV1HasBackupRestore(database.value.instanceEntity));- const allowGetBackupSetting = computed(- () =>- checkPermission("bb.databases.getBackupSetting") &&- instanceV1HasBackupRestore(database.value.instanceEntity)- );- const allowUpdateBackupSetting = computed(- () =>- checkPermission("bb.databases.updateBackupSetting") &&- instanceV1HasBackupRestore(database.value.instanceEntity)- );const allowGetSchema = computed(() =>checkPermission("bb.databases.getSchema")@@ -146,8 +134,6 @@ export const provideDatabaseDetailContext = (allowTransferDatabase,allowListBackup,allowCreateBackup,- allowGetBackupSetting,- allowUpdateBackupSetting,allowGetSchema,allowChangeData,allowAlterSchema,diff --git a/frontend/src/components/DatabaseBackup/BackupTable.vue b/frontend/src/components/DatabaseBackup/BackupTable.vuedeleted file mode 100644index 8534008ff6..0000000000--- a/frontend/src/components/DatabaseBackup/BackupTable.vue+++ /dev/null@@ -1,387 +0,0 @@-<template>- <div>- <div- v-for="section in backupSectionList"- :key="section.title"- class="border-x border-b first:border-t"- >- <div class="py-2 px-2">{{ section.title }}</div>-- <BBGrid- :column-list="columnList"- :data-source="section.list"- class="border-t"- :row-clickable="false"- :show-placeholder="true"- >- <template #item="{ item: backup }: BackupRow">- <div class="bb-grid-cell">- <span- class="flex items-center justify-center rounded-full select-none"- :class="statusIconClass(backup)"- >- <template- v-if="backup.state === Backup_BackupState.PENDING_CREATE"- >- <span- class="h-2 w-2 bg-info hover:bg-info-hover rounded-full"- style="- animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;- "- >- </span>- </template>- <template v-else-if="backup.state === Backup_BackupState.DONE">- <heroicons-outline:check class="w-4 h-4" />- </template>- <template v-else-if="backup.state === Backup_BackupState.FAILED">- <span- class="h-2 w-2 rounded-full text-center pb-6 font-normal text-base"- aria-hidden="true"- >!</span- >- </template>- </span>- </div>- <div class="bb-grid-cell">- {{ extractBackupResourceName(backup.name) }}- </div>- <div class="bb-grid-cell">- <EllipsisText>- {{ backup.comment }}- </EllipsisText>- </div>- <div class="bb-grid-cell">- <HumanizeDate :date="backup.createTime" />- </div>- <div v-if="allowEdit" class="bb-grid-cell">- <NButton- :disabled="!allowRestore(backup)"- @click.stop="showRestoreDialog(backup)"- >- {{ $t("database.restore") }}- </NButton>- </div>- </template>- </BBGrid>- </div>-- <Drawer- :show="state.restoreBackupContext !== undefined"- @close="state.restoreBackupContext = undefined"- >- <DrawerContent- v-if="state.restoreBackupContext"- :title="$t('database.restore-database')"- >- <div class="w-72">- <div v-if="allowRestoreInPlace" class="space-y-4">- <RestoreTargetForm- :target="state.restoreBackupContext.target"- first="NEW"- @change="state.restoreBackupContext!.target = $event"- />- </div>-- <div class="mt-2">- <CreateDatabasePrepForm- v-if="state.restoreBackupContext.target === 'NEW'"- ref="createDatabasePrepForm"- :project-id="database.projectEntity.uid"- :environment-id="database.instanceEntity.environmentEntity.uid"- :instance-id="database.instanceEntity.uid"- :backup="state.restoreBackupContext.backup"- @dismiss="state.restoreBackupContext = undefined"- />- </div>- <div- v-if="state.creatingRestoreIssue"- class="absolute inset-0 z-10 bg-white/70 flex items-center justify-center"- >- <BBSpin />- </div>- </div>-- <template #footer>- <div v-if="state.restoreBackupContext.target === 'NEW'">- <CreateDatabasePrepButtonGroup :form="createDatabasePrepForm" />- </div>-- <div- v-if="state.restoreBackupContext.target === 'IN-PLACE'"- class="w-full flex justify-end gap-x-3"- >- <NButton @click="state.restoreBackupContext = undefined">- {{ $t("common.cancel") }}- </NButton>-- <NButton type="primary" @click="doRestoreInPlace">- {{ $t("common.confirm") }}- </NButton>- </div>- </template>- </DrawerContent>- </Drawer>- <BBModal- v-if="false && state.restoreBackupContext"- :title="$t('database.restore-database')"- @close="state.restoreBackupContext = undefined"- >- </BBModal>-- <FeatureModal- feature="bb.feature.pitr"- :open="state.showFeatureModal"- :instance="database.instanceEntity"- @cancel="state.showFeatureModal = false"- />- </div>-</template>--<script lang="ts" setup>-import { NButton } from "naive-ui";-import { v4 as uuidv4 } from "uuid";-import { computed, PropType, reactive, ref } from "vue";-import { useI18n } from "vue-i18n";-import { useRouter } from "vue-router";-import { BBGrid, BBGridColumn, BBGridRow } from "@/bbkit";-import {- CreateDatabasePrepForm,- CreateDatabasePrepButtonGroup,-} from "@/components/CreateDatabasePrepForm";-import {- default as RestoreTargetForm,- RestoreTarget,-} from "@/components/DatabaseBackup/RestoreTargetForm.vue";-import EllipsisText from "@/components/EllipsisText.vue";-import HumanizeDate from "@/components/misc/HumanizeDate.vue";-import { Drawer, DrawerContent } from "@/components/v2";-import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";-import {- experimentalCreateIssueByPlan,- useCurrentUserV1,- useSubscriptionV1Store,-} from "@/store";-import { ComposedDatabase } from "@/types";-import { Engine } from "@/types/proto/v1/common";-import {- Backup,- Backup_BackupState,- Backup_BackupType,-} from "@/types/proto/v1/database_service";-import { Issue, Issue_Type } from "@/types/proto/v1/issue_service";-import { Plan, Plan_Spec } from "@/types/proto/v1/rollout_service";-import {- extractBackupResourceName,- extractProjectResourceName,- issueSlug,-} from "@/utils";--export type BackupRow = BBGridRow<Backup>;--type RestoreBackupContext = {- target: RestoreTarget;- backup: Backup;-};--type Section = {- title: string;- list: Backup[];-};--interface LocalState {- restoreBackupContext?: RestoreBackupContext;- loadingMigrationHistory: boolean;- creatingRestoreIssue: boolean;- showFeatureModal: boolean;-}--const props = defineProps({- database: {- required: true,- type: Object as PropType<ComposedDatabase>,- },- backupList: {- required: true,- type: Object as PropType<Backup[]>,- },- allowEdit: {- required: true,- type: Boolean,- },-});--const router = useRouter();-const { t } = useI18n();--const state = reactive<LocalState>({- restoreBackupContext: undefined,- loadingMigrationHistory: false,- creatingRestoreIssue: false,- showFeatureModal: false,-});-const me = useCurrentUserV1();--const allowRestoreInPlace = computed((): boolean => {- return props.database.instanceEntity.engine === Engine.POSTGRES;-});--const hasPITRFeature = computed(() => {- return useSubscriptionV1Store().hasInstanceFeature(- "bb.feature.pitr",- props.database.instanceEntity- );-});--const createDatabasePrepForm =- ref<InstanceType<typeof CreateDatabasePrepForm>>();--const columnList = computed(() => {- const columns: BBGridColumn[] = [- {- title: t("common.status"),- width: "auto",- },- {- title: t("common.name"),- width: "1fr",- },- {- title: t("common.comment"),- width: "2fr",- },- {- title: t("common.time"),- width: "auto",- },- ];- if (props.allowEdit) {- columns.push({- title: "",- width: "auto",- });- }- return columns;-});--const backupSectionList = computed(() => {- const manualList: Backup[] = [];- const automaticList: Backup[] = [];- const pitrList: Backup[] = [];- const sectionList: Section[] = [- {- title: t("common.manual"),- list: manualList,- },- {- title: t("common.automatic"),- list: automaticList,- },- {- title: t("common.pitr"),- list: pitrList,- },- ];-- for (const backup of props.backupList) {- if (backup.backupType === Backup_BackupType.MANUAL) {- manualList.push(backup);- } else if (backup.backupType === Backup_BackupType.AUTOMATIC) {- automaticList.push(backup);- } else if (backup.backupType === Backup_BackupType.PITR) {- pitrList.push(backup);- }- }-- return sectionList;-});--const statusIconClass = (backup: Backup) => {- const iconClass = "w-5 h-5";- switch (backup.state) {- case Backup_BackupState.PENDING_CREATE:- return (- iconClass +- " bg-white border-2 border-info text-info hover:text-info-hover hover:border-info-hover"- );- case Backup_BackupState.DONE:- return iconClass + " bg-success hover:bg-success-hover text-white";- case Backup_BackupState.FAILED:- return (- iconClass + " bg-error text-white hover:text-white hover:bg-error-hover"- );- }-};--const allowRestore = (backup: Backup) => {- return backup.state === Backup_BackupState.DONE;-};--const showRestoreDialog = (backup: Backup) => {- state.restoreBackupContext = {- target: "NEW",- backup,- };-};--const doRestoreInPlaceV1 = async () => {- const { restoreBackupContext } = state;- if (!restoreBackupContext) {- return;- }-- if (!hasPITRFeature.value) {- state.showFeatureModal = true;- return;- }-- state.creatingRestoreIssue = true;-- try {- const { backup } = restoreBackupContext;- const { database } = props;-- const issueNameParts: string[] = [- `Restore database [${database.databaseName}]`,- `to backup snapshot [${extractBackupResourceName(- restoreBackupContext.backup.name- )}]`,- ];-- const restoreDatabaseSpec = Plan_Spec.fromPartial({- id: uuidv4(),- restoreDatabaseConfig: {- backup: backup.name,- target: database.name, // in-place- },- });- const planCreate = Plan.fromPartial({- steps: [{ specs: [restoreDatabaseSpec] }],- });- const issueCreate = Issue.fromPartial({- title: issueNameParts.join(" "),- type: Issue_Type.DATABASE_CHANGE,- creator: `users/${me.value.email}`,- });- const { createdIssue } = await experimentalCreateIssueByPlan(- database.projectEntity,- issueCreate,- planCreate- );-- router.push({- name: PROJECT_V1_ROUTE_ISSUE_DETAIL,- params: {- projectId: extractProjectResourceName(database.project),- issueSlug: issueSlug(createdIssue.title, createdIssue.uid),- },- });- } catch {- state.creatingRestoreIssue = false;- }-};--const doRestoreInPlace = async () => {- await doRestoreInPlaceV1();-};-</script>diff --git a/frontend/src/components/DatabaseBackup/DatabaseBackupSettingForm.vue b/frontend/src/components/DatabaseBackup/DatabaseBackupSettingForm.vuedeleted file mode 100644index 236d1faac5..0000000000--- a/frontend/src/components/DatabaseBackup/DatabaseBackupSettingForm.vue+++ /dev/null@@ -1,438 +0,0 @@-<template>- <DrawerContent :title="$t('database.automatic-backup')">- <div class="max-w-full flex flex-col items-center">- <div class="py-0.5 space-y-6">- <div class="flex flex-col gap-y-2">- <label class="textlabel">- {{ $t("database.backup-setting.form.schedule") }}- </label>- <NPopover- trigger="manual"- :show="state.showBackupPolicyEnforcement"- :show-arrow="false"- placement="bottom-start"- >- <template #trigger>- <div class="flex items-center gap-x-2 text-sm">- <NRadio- v-for="schedule in PLAN_SCHEDULES"- :key="schedule"- :value="schedule"- :checked="schedule === checkedSchedule"- :disabled="!isAllowedScheduleByPolicy(schedule)"- @change="setSchedule(schedule)"- >- {{ nameOfSchedule(schedule) }}- </NRadio>- </div>- </template>-- <router-link- class="normal-link text-sm"- :to="`/${database.effectiveEnvironmentEntity.name}`"- >- {{- $t(- "database.backuppolicy-backup-enforced-and-cant-be-disabled",- [- $t(- `database.backup-policy.${backupPlanScheduleToJSON(- backupPolicy- )}`- ),- ]- )- }}- </router-link>- </NPopover>- </div>-- <div- v-if="checkedSchedule === BackupPlanSchedule.WEEKLY"- class="flex flex-col gap-y-2"- >- <label class="textlabel">- {{ $t("database.backup-setting.form.day-of-week") }}- </label>- <NSelect- :value="- localFromUTC(state.setting.hour, state.setting.dayOfWeek)- .dayOfWeek- "- :options="- AVAILABLE_DAYS_OF_WEEK.map((item) => ({- value: item,- label: nameOfDay(item),- }))- "- @update:value="setDayOfWeek"- />- </div>-- <div- v-if="- checkedSchedule === BackupPlanSchedule.WEEKLY ||- checkedSchedule === BackupPlanSchedule.DAILY- "- class="flex flex-col gap-y-2"- >- <label class="textlabel">- <span>- {{ $t("database.backup-setting.form.time-of-day") }}- </span>- <span class="ml-1 textinfolabel">- ({{ Intl.DateTimeFormat().resolvedOptions().timeZone }})- </span>- </label>- <NSelect- :value="- localFromUTC(state.setting.hour, state.setting.dayOfWeek).hour- "- :options="- AVAILABLE_HOURS_OF_DAY.map((item) => ({- value: item,- label: nameOfHour(item),- }))- "- @update:value="setHour"- />- </div>-- <div- v-if="- checkedSchedule === BackupPlanSchedule.WEEKLY ||- checkedSchedule === BackupPlanSchedule.DAILY- "- class="flex flex-col gap-y-2"- >- <label class="textlabel">- {{ $t("database.backup-setting.form.retention-period") }}- </label>- <NInputNumber- :placeholder="String(DEFAULT_BACKUP_RETENTION_PERIOD_DAYS)"- :value="retentionPeriodDaysInputValue"- @update:value="setRetentionPeriodDays"- />- </div>- </div>-- <div- class="w-full mt-4 pt-4 flex justify-end border-t border-block-border space-x-3"- >- <NButton @click.prevent="$emit('cancel')">- {{ $t("common.cancel") }}- </NButton>- <NButton- type="primary"- :disabled="!isValid"- @click.prevent="handleSave"- >- {{ $t("common.save") }}- </NButton>- </div>-- <div- v-if="state.loading"- class="absolute inset-0 z-10 bg-white/70 flex items-center justify-center rounded-lg"- >- <BBSpin />- </div>- </div>- </DrawerContent>-</template>--<script lang="ts" setup>-import { NPopover, NSelect, NInputNumber, NRadio } from "naive-ui";-import { computed, PropType, reactive, watch } from "vue";-import { useI18n } from "vue-i18n";-import { DrawerContent } from "@/components/v2";-import { pushNotification, useBackupV1Store } from "@/store";-import { ComposedDatabase, unknown } from "@/types";-import { Duration } from "@/types/proto/google/protobuf/duration";-import { BackupSetting } from "@/types/proto/v1/database_service";-import {- BackupPlanSchedule,- backupPlanScheduleToJSON,-} from "@/types/proto/v1/org_policy_service";-import {- AVAILABLE_DAYS_OF_WEEK,- AVAILABLE_HOURS_OF_DAY,- PLAN_SCHEDULES,- DEFAULT_BACKUP_RETENTION_PERIOD_TS,- DEFAULT_BACKUP_RETENTION_PERIOD_DAYS,- localFromUTC,- localToUTC,- parseScheduleFromBackupSetting,-} from "./utils";--interface BackupSettingEdit {- enabled: boolean;- dayOfWeek: number;- hour: number;- retentionPeriodTs: number;-}--type LocalState = {- setting: BackupSettingEdit;- showBackupPolicyEnforcement: boolean;- loading: boolean;-};--const BACKUP_POLICY_ENFORCEMENT_POPUP_DURATION = 5000;--const props = defineProps({- database: {- required: true,- type: Object as PropType<ComposedDatabase>,- },- allowAdmin: {- required: true,- type: Boolean,- },- backupPolicy: {- type: Number as PropType<BackupPlanSchedule>,- default: BackupPlanSchedule.UNSET,- },- backupSetting: {- type: Object as PropType<BackupSetting>,- default: () => unknown("BACKUP_SETTING"),- },-});--const emit = defineEmits<{- (event: "cancel"): void;- (event: "update", setting: BackupSetting): void;-}>();--const backupStore = useBackupV1Store();--const state = reactive<LocalState>({- setting: extractEditValue(props.backupSetting),- showBackupPolicyEnforcement: false,- loading: false,-});--const { t } = useI18n();--const allowDisableAutoBackup = computed(() => {- return props.allowAdmin && props.backupPolicy == BackupPlanSchedule.UNSET;-});--const daysOfWeek = computed(() => [- t("database.week.Sunday"),- t("database.week.Monday"),- t("database.week.Tuesday"),- t("database.week.Wednesday"),- t("database.week.Thursday"),- t("database.week.Friday"),- t("database.week.Saturday"),-]);--watch(- () => props.backupSetting,- () => {- state.setting = extractEditValue(props.backupSetting);- },- { deep: true }-);--const checkedSchedule = computed((): BackupPlanSchedule => {- return parseScheduleFromBackupSetting(- backupStore.buildSimpleSchedule({- enabled: state.setting.enabled,- hourOfDay: state.setting.hour,- dayOfWeek: state.setting.dayOfWeek,- })- );-});--const retentionPeriodDaysInputValue = computed(() => {- const seconds = state.setting.retentionPeriodTs;- if (!seconds || seconds <= 0) return null;- return Math.floor(seconds / 3600 / 24);-});--const isValid = computed((): boolean => {- const schedule = checkedSchedule.value;- if (!isAllowedScheduleByPolicy(schedule)) {- return false;- }-- const { setting } = state;- if (!setting.enabled) {- return true;- }-- return true;-});--const handleSave = async () => {- if (!isValid.value) {- return;- }-- const { setting } = state;- if (setting.enabled && setting.retentionPeriodTs <= 0) {- // Set default value to retentionPeriodTs if needed.- setting.retentionPeriodTs = DEFAULT_BACKUP_RETENTION_PERIOD_TS;- }-- try {- state.loading = true;- const updatedBackupSetting = await backupStore.upsertBackupSetting({- name: `${props.database.name}/backupSetting`,- cronSchedule: backupStore.buildSimpleSchedule({- enabled: setting.enabled,- hourOfDay: setting.hour,- dayOfWeek: setting.dayOfWeek,- }),- hookUrl: props.backupSetting.hookUrl,- backupRetainDuration: Duration.fromPartial({- seconds: setting.retentionPeriodTs,- nanos: 0,- }),- });-- const action = setting.enabled- ? t("database.enabled")- : t("database.disabled");- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t(- "database.action-automatic-backup-for-database-props-database-name",- [action, props.database.databaseName]- ),- });-- emit("update", updatedBackupSetting);- } finally {- state.loading = false;- }-};--function setSchedule(schedule: BackupPlanSchedule) {- if (!isAllowedScheduleByPolicy(schedule)) {- // show a popup and automatically disappear after several seconds- state.showBackupPolicyEnforcement = true;- setTimeout(- () => (state.showBackupPolicyEnforcement = false),- BACKUP_POLICY_ENFORCEMENT_POPUP_DURATION- );- return;- }-- state.showBackupPolicyEnforcement = false;-- const { setting } = state;-- const normalizeHour = () => {- const local = localFromUTC(setting.hour, setting.dayOfWeek);- const minHour = AVAILABLE_HOURS_OF_DAY[0];- const maxHour = AVAILABLE_HOURS_OF_DAY[AVAILABLE_HOURS_OF_DAY.length - 1];- if (local.hour < minHour) local.hour = minHour;- if (local.hour > maxHour) local.hour = maxHour;- const utc = localToUTC(local.hour, local.dayOfWeek);- setting.hour = utc.hour;- setting.dayOfWeek = utc.dayOfWeek;- };-- switch (schedule) {- case BackupPlanSchedule.UNSET:- setting.enabled = false;- break;- case BackupPlanSchedule.WEEKLY:- setting.enabled = true;- if (setting.dayOfWeek < 0) {- setting.dayOfWeek = 0;- }- if (!setting.retentionPeriodTs || setting.retentionPeriodTs <= 0) {- setting.retentionPeriodTs = DEFAULT_BACKUP_RETENTION_PERIOD_TS;- }- normalizeHour();- break;- case BackupPlanSchedule.DAILY:- setting.enabled = true;- setting.dayOfWeek = -1;- if (!setting.retentionPeriodTs || setting.retentionPeriodTs <= 0) {- setting.retentionPeriodTs = DEFAULT_BACKUP_RETENTION_PERIOD_TS;- }- normalizeHour();- break;- }-}--function setDayOfWeek(dayOfWeek: number) {- // Combine the old local hour with the newly selected local dayOfWeek- // and convert them to UTC.- const local = localFromUTC(state.setting.hour, state.setting.dayOfWeek);- const utc = localToUTC(local.hour, dayOfWeek);- state.setting.hour = utc.hour;- state.setting.dayOfWeek = utc.dayOfWeek;-}--function setHour(hour: number) {- // Combine the old local dayOfWeek with the newly selected local hour- // and convert them to UTC.- const local = localFromUTC(state.setting.hour, state.setting.dayOfWeek);- const utc = localToUTC(hour, local.dayOfWeek);- state.setting.hour = utc.hour;- state.setting.dayOfWeek = utc.dayOfWeek;-}--function setRetentionPeriodDays(input: number | null) {- if (!input) {- state.setting.retentionPeriodTs = -1;- } else if (input <= 0 || Number.isNaN(input)) {- state.setting.retentionPeriodTs = -1;- } else {- state.setting.retentionPeriodTs = input * 3600 * 24;- }-}--function extractEditValue(backupSetting: BackupSetting): BackupSettingEdit {- const schedule = backupStore.parseBackupSchedule(backupSetting.cronSchedule);- return {- enabled: backupSetting.cronSchedule !== "",- dayOfWeek: schedule.dayOfWeek,- hour: schedule.hourOfDay,- retentionPeriodTs:- backupSetting.backupRetainDuration?.seconds?.toNumber() ?? 0,- };-}--function isAllowedScheduleByPolicy(schedule: BackupPlanSchedule): boolean {- if (schedule === BackupPlanSchedule.UNSET) {- return allowDisableAutoBackup.value;- }-- // In the future, a db's backup setting and its environment's backup policy- // can be set separately.- // Now, the database backup policy can be configured when its environment- // backup policy is "Not enforced"- return (- props.backupPolicy === schedule ||- props.backupPolicy === BackupPlanSchedule.UNSET- );-}--function nameOfSchedule(schedule: BackupPlanSchedule): string {- switch (schedule) {- case BackupPlanSchedule.WEEKLY:- return t("database.backup-setting.schedule.weekly");- case BackupPlanSchedule.DAILY:- return t("database.backup-setting.schedule.daily");- default:- return t("database.backup-setting.schedule.disabled");- }-}--function nameOfDay(day: number): string {- if (day >= 0 && day < daysOfWeek.value.length) return daysOfWeek.value[day];- return `Invalid day of week: ${day}`;-}--function nameOfHour(hour: number): string {- return `${String(hour).padStart(2, "0")}:00`;-}-</script>diff --git a/frontend/src/components/DatabaseBackup/RestoreTargetForm.vue b/frontend/src/components/DatabaseBackup/RestoreTargetForm.vuedeleted file mode 100644index ef1bd3c1ba..0000000000--- a/frontend/src/components/DatabaseBackup/RestoreTargetForm.vue+++ /dev/null@@ -1,79 +0,0 @@-<template>- <div class="flex flex-col gap-y-2">- <label class="textlabel">- {{ $t("database.pitr.restore-to") }}- </label>- <div class="flex items-center gap-x-6 gap-y-2 flex-wrap">- <NRadio- v-for="value in targets"- :key="value"- :checked="state.target === value"- @update:checked="check(value, $event)"- >- <template v-if="value === 'IN-PLACE'">- {{ $t("database.pitr.restore-to-in-place") }}- </template>- <template v-if="value === 'NEW'">- {{ $t("database.pitr.restore-to-new-db") }}- </template>- </NRadio>- </div>- <div- v-if="state.target === 'IN-PLACE'"- class="flex items-center gap-2 text-error"- >- <heroicons-outline:exclamation-circle class="w-4 h-4" />- <span class="whitespace-nowrap text-sm">- {{ $t("database.pitr.will-overwrite-current-database") }}- </span>- </div>- </div>-</template>--<script lang="ts" setup>-import { NRadio } from "naive-ui";-import { computed } from "vue";-import { PropType, reactive, watch } from "vue";--export type RestoreTarget = "IN-PLACE" | "NEW";--type LocalState = {- target: RestoreTarget;-};--const props = defineProps({- target: {- type: String as PropType<RestoreTarget>,- required: true,- },- first: {- type: String as PropType<RestoreTarget>,- default: "IN-PLACE",- },-});--const emit = defineEmits<{- (event: "change", target: RestoreTarget): void;-}>();--const state = reactive<LocalState>({- target: props.target,-});--const targets = computed((): RestoreTarget[] => {- return props.first === "IN-PLACE" ? ["IN-PLACE", "NEW"] : ["NEW", "IN-PLACE"];-});--const check = (value: RestoreTarget, on: boolean) => {- if (on) {- emit("change", value);- }-};--watch(- () => props.target,- (target) => {- state.target = target;- }-);-</script>diff --git a/frontend/src/components/DatabaseBackup/index.ts b/frontend/src/components/DatabaseBackup/index.tsdeleted file mode 100644index 7fa83ca5e8..0000000000--- a/frontend/src/components/DatabaseBackup/index.ts+++ /dev/null@@ -1,6 +0,0 @@-import BackupTable from "./BackupTable.vue";-import DatabaseBackupSettingForm from "./DatabaseBackupSettingForm.vue";--export * from "./utils";--export { DatabaseBackupSettingForm, BackupTable };diff --git a/frontend/src/components/DatabaseBackup/utils.ts b/frontend/src/components/DatabaseBackup/utils.tsdeleted file mode 100644index c628ea9a15..0000000000--- a/frontend/src/components/DatabaseBackup/utils.ts+++ /dev/null@@ -1,61 +0,0 @@-import { BackupPlanSchedule } from "@/types/proto/v1/org_policy_service";--export const PLAN_SCHEDULES: BackupPlanSchedule[] = [- BackupPlanSchedule.UNSET,- BackupPlanSchedule.WEEKLY,- BackupPlanSchedule.DAILY,-];--export const AVAILABLE_DAYS_OF_WEEK = [...Array(7).keys()]; // [0...6]-export const AVAILABLE_HOURS_OF_DAY = [...Array(24).keys()]; // [0...23]--export const DEFAULT_BACKUP_RETENTION_PERIOD_DAYS = 7;-export const DEFAULT_BACKUP_RETENTION_PERIOD_TS =- DEFAULT_BACKUP_RETENTION_PERIOD_DAYS * 3600 * 24; // 7 days--export function parseScheduleFromBackupSetting(- cronSchedule: string-): BackupPlanSchedule {- if (cronSchedule == "") return BackupPlanSchedule.UNSET;- const sections = cronSchedule.split(" ");- if (sections.length !== 5) {- return BackupPlanSchedule.UNSET;- }- if (sections[4] === "*") return BackupPlanSchedule.DAILY;- return BackupPlanSchedule.WEEKLY;-}--export function levelOfSchedule(schedule: BackupPlanSchedule) {- return PLAN_SCHEDULES.indexOf(schedule) || 0;-}--export function localToUTC(hour: number, dayOfWeek: number) {- return alignUTC(hour, dayOfWeek, new Date().getTimezoneOffset() * 60);-}--export function localFromUTC(hour: number, dayOfWeek: number) {- return alignUTC(hour, dayOfWeek, -new Date().getTimezoneOffset() * 60);-}--export function alignUTC(- hour: number,- dayOfWeek: number,- offsetInSecond: number-) {- if (hour != -1) {- hour = hour + offsetInSecond / 60 / 60;- let dayOffset = 0;- if (hour > 23) {- hour = hour - 24;- dayOffset = 1;- }- if (hour < 0) {- hour = hour + 24;- dayOffset = -1;- }- if (dayOfWeek != -1) {- dayOfWeek = (7 + dayOfWeek + dayOffset) % 7;- }- }- return { hour, dayOfWeek };-}diff --git a/frontend/src/components/DatabaseDetail/PITRRestoreButton.vue b/frontend/src/components/DatabaseDetail/PITRRestoreButton.vuedeleted file mode 100644index 3e1416bd92..0000000000--- a/frontend/src/components/DatabaseDetail/PITRRestoreButton.vue+++ /dev/null@@ -1,426 +0,0 @@-<template>- <div class="flex relative mr-6">- <TooltipButton- type="normal"- tooltip-mode="DISABLED-ONLY"- :disabled="pitrButtonDisabled"- @click="openDialog"- >- <template #default>- <ContextMenuButton- preference-key="pitr"- :default-action-key="'CUSTOM'"- :action-list="buttonActionList"- :disabled="pitrButtonDisabled"- :size="'medium'"- @click="(action) => onClickPITRButton(action as PITRButtonAction)"- >- <template #default="{ action }">- <span>{{ action.text }}</span>- <FeatureBadge- feature="bb.feature.pitr"- custom-class="ml-2 -mr-1"- :instance="database.instanceEntity"- />- </template>- </ContextMenuButton>- </template>-- <template v-if="allowAdmin && !pitrAvailable.result" #tooltip>- {{ pitrAvailable.message }}- </template>- </TooltipButton>- <BBBetaBadge corner />- </div>-- <Drawer v-model:show="state.showDatabasePITRModal">- <DrawerContent :title="$t('database.pitr.restore')">- <div class="w-72 flex flex-col items-center gap-4">- <div class="w-full textinfolabel">- <i18n-t- :keypath="- state.mode === 'LAST_MIGRATION'- ? 'database.pitr.restore-before-last-migration-help-info'- : 'database.pitr.help-info'- "- tag="p"- >- <template #link>- <a- class="normal-link inline-flex items-center"- href="https://www.bytebase.com/docs/disaster-recovery/point-in-time-recovery-for-mysql"- target="__BLANK"- >- {{ $t("common.learn-more") }}- <heroicons-outline:external-link class="w-4 h-4" />- </a>- </template>- </i18n-t>- </div>-- <template- v-if="state.step === 'LAST_MIGRATION_INFO' && lastChangeHistory"- >- <ChangeHistoryBrief- :database="database"- :change-history="lastChangeHistory"- />- </template>-- <template v-else>- <div class="w-72 space-y-4">- <div class="space-y-2">- <label class="textlabel w-full flex items-baseline">- <span>{{ $t("database.pitr.point-in-time") }}</span>- <span class="text-gray-400 text-xs ml-2">{{ timezone }}</span>- <span class="text-red-600 ml-1">*</span>- </label>- <NDatePicker- v-model:value="state.pitrTimestampMS"- type="datetime"- :disabled="state.mode === 'LAST_MIGRATION'"- />- <div v-if="pitrTimestampError" class="text-sm text-red-600">- {{ pitrTimestampError }}- </div>- </div>-- <RestoreTargetForm- :target="state.target"- @change="state.target = $event"- />-- <CreatePITRDatabaseForm- v-if="state.target === 'NEW'"- ref="createDatabaseForm"- :database="database"- :context="state.createContext"- @update="state.createContext = $event"- />- </div>- </template>-- <div- v-if="state.loading"- class="absolute inset-0 z-10 bg-white/70 flex items-center justify-center"- >- <BBSpin />- </div>- </div>-- <template #footer>- <div class="flex justify-end gap-x-3">- <NButton @click.prevent="resetUI">- {{ $t("common.cancel") }}- </NButton>-- <NButton- v-if="state.step === 'LAST_MIGRATION_INFO'"- type="primary"- @click.prevent="initLastChangeParams"- >- {{ $t("common.next") }}- </NButton>-- <NButton- v-if="state.step === 'PITR_FORM'"- type="primary"- :disabled="!!pitrTimestampError"- @click.prevent="onConfirm"- >- {{ $t("common.confirm") }}- </NButton>- </div>- </template>- </DrawerContent>- </Drawer>-- <FeatureModal- feature="bb.feature.pitr"- :open="state.showFeatureModal"- :instance="database.instanceEntity"- @cancel="state.showFeatureModal = false"- />-</template>--<script lang="ts" setup>-import dayjs from "dayjs";-import { NButton, NDatePicker } from "naive-ui";-import { v4 as uuidv4 } from "uuid";-import { computed, PropType, reactive, ref, toRef } from "vue";-import { useI18n } from "vue-i18n";-import { useRouter } from "vue-router";-import { Drawer, DrawerContent } from "@/components/v2";-import {- TooltipButton,- ContextMenuButton,- ContextMenuButtonAction,-} from "@/components/v2";-import { usePITRLogic } from "@/plugins";-import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";-import {- experimentalCreateIssueByPlan,- useCurrentUserV1,- useSubscriptionV1Store,-} from "@/store";-import { ComposedDatabase } from "@/types";-import { Issue, Issue_Type } from "@/types/proto/v1/issue_service";-import {- Plan,- Plan_RestoreDatabaseConfig,- Plan_Spec,-} from "@/types/proto/v1/rollout_service";-import { extractProjectResourceName, issueSlug } from "@/utils";-import RestoreTargetForm from "../DatabaseBackup/RestoreTargetForm.vue";-import ChangeHistoryBrief from "./ChangeHistoryBrief.vue";-import CreatePITRDatabaseForm from "./CreatePITRDatabaseForm.vue";-import { CreatePITRDatabaseContext } from "./utils";--type PITRTarget = "IN-PLACE" | "NEW";--type Mode = "LAST_MIGRATION" | "CUSTOM";-type Step = "LAST_MIGRATION_INFO" | "PITR_FORM";-type PITRButtonAction = ContextMenuButtonAction<{ step: Step; mode: Mode }>;--interface LocalState {- showDatabasePITRModal: boolean;- mode: Mode;- step: Step;- pitrTimestampMS: number;- target: PITRTarget;- createContext: CreatePITRDatabaseContext | undefined;- loading: boolean;- showFeatureModal: boolean;-}--const props = defineProps({- allowAdmin: {- type: Boolean,- require: true,- },- database: {- type: Object as PropType<ComposedDatabase>,- required: true,- },-});--const router = useRouter();-const { t } = useI18n();--const state = reactive<LocalState>({- showDatabasePITRModal: false,- mode: "CUSTOM",- step: "PITR_FORM",- pitrTimestampMS: Date.now(),- target: "IN-PLACE",- createContext: undefined,- loading: false,- showFeatureModal: false,-});-const me = useCurrentUserV1();--const createDatabaseForm = ref<InstanceType<typeof CreatePITRDatabaseForm>>();--const hasPITRFeature = computed(() => {- return useSubscriptionV1Store().hasInstanceFeature(- "bb.feature.pitr",- props.database.instanceEntity- );-});--const timezone = computed(() => "UTC" + dayjs().format("ZZ"));--const { pitrAvailable, doneBackupList, lastChangeHistory } = usePITRLogic(- toRef(props, "database")-);--const pitrButtonDisabled = computed((): boolean => {- return !props.allowAdmin || !pitrAvailable.value.result;-});--const buttonActionList = computed((): PITRButtonAction[] => {- return [- {- key: "CUSTOM",- text: t("database.pitr.restore-to-point-in-time"),- params: { step: "PITR_FORM", mode: "CUSTOM" },- },- {- key: "LAST_MIGRATION",- text: t("database.pitr.restore-before-last-migration"),- params: { step: "LAST_MIGRATION_INFO", mode: "LAST_MIGRATION" },- },- ];-});--const onClickPITRButton = (action: PITRButtonAction) => {- if (!hasPITRFeature.value) {- return;- }- const { step, mode } = action.params;- openDialog(step, mode);-};--const earliest = computed((): number => {- if (!pitrAvailable.value) {- return Infinity;- }- const timestamps = doneBackupList.value.map(- (backup) => backup.createTime?.getTime() ?? 0- );- const earliestAllowedRestoreTS = Math.min(...timestamps);- return earliestAllowedRestoreTS;-});--// Returns error message (string) if error occurs.-// Returns undefined if validation passed.-const pitrTimestampError = computed((): string | undefined => {- const val = state.pitrTimestampMS;- const now = Date.now();- const min = earliest.value;- if (val < min) {- const formattedMin = `${dayjs(min).format("YYYY-MM-DD HH:mm:ss")} ${- timezone.value- }`;- return t("database.pitr.no-earlier-than", {- earliest: formattedMin,- });- }- if (val > now) {- return t("database.pitr.no-later-than-now");- }-- if (!createDatabaseForm.value?.validate()) {- return "";- }-- return undefined;-});--const createDatabaseContextError = computed((): boolean => {- const { target } = state;- if (target === "IN-PLACE") {- return false;- }- return !createDatabaseForm.value?.validate();-});--const isValidParams = computed((): boolean => {- return !pitrTimestampError.value && !createDatabaseContextError.value;-});--const resetUI = () => {- state.loading = false;- state.showDatabasePITRModal = false;- state.pitrTimestampMS = Date.now();- state.target = "IN-PLACE";- state.createContext = undefined;- state.mode = "CUSTOM";-};--const openDialog = (step: Step = "PITR_FORM", mode: Mode = "CUSTOM") => {- state.showDatabasePITRModal = true;- state.pitrTimestampMS = Date.now();- state.target = "IN-PLACE";- state.createContext = undefined;- state.step = step;- state.mode = mode;-};--const initLastChangeParams = () => {- if (lastChangeHistory.value) {- const timestampMS = (- lastChangeHistory.value.createTime ?? new Date(0)- ).getTime();- state.pitrTimestampMS = timestampMS - 1000;- }-- state.step = "PITR_FORM";-};--const onConfirmV1 = async () => {- if (!hasPITRFeature.value) {- state.showFeatureModal = true;- return;- }-- if (!isValidParams.value) {- return;- }-- state.loading = true;-- try {- const { target, createContext: context } = state;- const { database } = props;- const restoreDatabaseConfig: Plan_RestoreDatabaseConfig = {- target: database.name,- pointInTime: dayjs- .unix(Math.floor(state.pitrTimestampMS / 1000))- .toDate(),- };- if (target === "NEW" && context) {- restoreDatabaseConfig.createDatabaseConfig = {- target: database.instance,- database: context.databaseName,- environment: database.environment,- table: "",- backup: "",- characterSet: context.characterSet,- collation: context.collation,- owner: "",- cluster: "",- labels: { ...database.labels },- };- }- const spec = Plan_Spec.fromPartial({- id: uuidv4(),- restoreDatabaseConfig,- });-- const planCreate = Plan.fromPartial({- steps: [{ specs: [spec] }],- });-- const issueNameParts: string[] = [- `Restore database [${props.database.databaseName}]`,- ];- if (state.mode === "CUSTOM") {- const datetime = dayjs(state.pitrTimestampMS).format(- "YYYY-MM-DD HH:mm:ss"- );- issueNameParts.push(`to [${datetime} ${timezone.value}]`);- } else {- issueNameParts.push(- `before migration version [${lastChangeHistory.value!.version}]`- );- }- const issueCreate = Issue.fromPartial({- title: issueNameParts.join(" "),- type: Issue_Type.DATABASE_CHANGE,- creator: `users/${me.value.email}`,- });- const { createdIssue } = await experimentalCreateIssueByPlan(- database.projectEntity,- issueCreate,- planCreate- );-- router.push({- name: PROJECT_V1_ROUTE_ISSUE_DETAIL,- params: {- projectId: extractProjectResourceName(database.project),- issueSlug: issueSlug(createdIssue.title, createdIssue.uid),- },- });- } catch (ex) {- // TODO: error handling- } finally {- resetUI();- }-};--const onConfirm = async () => {- await onConfirmV1();-};-</script>diff --git a/frontend/src/components/DatabaseDetail/index.ts b/frontend/src/components/DatabaseDetail/index.tsindex 2d22db3488..f19b99e7ca 100644--- a/frontend/src/components/DatabaseDetail/index.ts+++ b/frontend/src/components/DatabaseDetail/index.ts@@ -1,11 +1,5 @@-import PITRRestoreButton from "./PITRRestoreButton.vue";import SQLEditorButtonV1 from "./SQLEditorButtonV1.vue";import SchemaDiagramButton from "./SchemaDiagramButton.vue";import { DatabaseSettingsPanel } from "./Settings";-export {- PITRRestoreButton,- SQLEditorButtonV1,- DatabaseSettingsPanel,- SchemaDiagramButton,-};+export { SQLEditorButtonV1, DatabaseSettingsPanel, SchemaDiagramButton };diff --git a/frontend/src/components/EnvironmentForm.vue b/frontend/src/components/EnvironmentForm.vueindex 213cf73397..4357a48fe6 100644--- a/frontend/src/components/EnvironmentForm.vue+++ b/frontend/src/components/EnvironmentForm.vue@@ -80,65 +80,6 @@/></div>- <div- v-if="showBackupSchedulePolicySection"- class="flex flex-col gap-y-2"- >- <label class="textlabel"> {{ $t("policy.backup.name") }} </label>- <span- v-show="valueChanged('backupPolicy')"- class="textlabeltip !ml-0"- >{{ $t("policy.backup.tip") }}</span- >- <NRadioGroup- v-model:value="state.backupPolicy.backupPlanPolicy!.schedule"- :disabled="!allowEdit"- class="!flex flex-col gap-y-2"- >- <NRadio- :value="BackupPlanSchedule.UNSET"- style="--n-label-padding: 0 0 0 1rem"- >- <div class="flex flex-col">- <div class="textlabel">- {{ $t("policy.backup.not-enforced") }}- </div>- <div class="textinfolabel">- {{ $t("policy.backup.not-enforced-info") }}- </div>- </div>- </NRadio>- <NRadio- :value="BackupPlanSchedule.DAILY"- style="--n-label-padding: 0 0 0 1rem"- >- <div class="flex flex-col">- <div class="textlabel flex">- {{ $t("policy.backup.daily") }}- <FeatureBadge feature="bb.feature.backup-policy" />- </div>- <div class="textinfolabel">- {{ $t("policy.backup.daily-info") }}- </div>- </div>- </NRadio>- <NRadio- :value="BackupPlanSchedule.WEEKLY"- style="--n-label-padding: 0 0 0 1rem"- >- <div class="flex flex-col">- <div class="textlabel flex">- {{ $t("policy.backup.weekly") }}- <FeatureBadge feature="bb.feature.backup-policy" />- </div>- <div class="mt-1 textinfolabel">- {{ $t("policy.backup.weekly-info") }}- </div>- </div>- </NRadio>- </NRadioGroup>- </div>-<div v-if="!create" class="flex flex-col gap-y-2"><label class="textlabel">{{ $t("sql-review.title") }}@@ -275,7 +216,7 @@<script lang="ts" setup>import { useEventListener } from "@vueuse/core";import { cloneDeep, isEqual, isEmpty } from "lodash-es";-import { NButton, NCheckbox, NInput, NRadioGroup } from "naive-ui";+import { NButton, NCheckbox, NInput } from "naive-ui";import { Status } from "nice-grpc-common";import { computed, reactive, PropType, watch, ref, onMounted } from "vue";import { useI18n } from "vue-i18n";@@ -311,7 +252,6 @@ import {import {Policy,PolicyType,- BackupPlanSchedule,PolicyResourceType,} from "@/types/proto/v1/org_policy_service";import {@@ -325,7 +265,6 @@ import RolloutPolicyConfig from "./EnvironmentForm/RolloutPolicyConfig.vue";interface LocalState {environment: Environment;rolloutPolicy: Policy;- backupPolicy: Policy;environmentTier: EnvironmentTier;missingRequiredFeature?: FeatureType;}@@ -343,10 +282,6 @@ const props = defineProps({required: true,type: Object as PropType<Policy>,},- backupPolicy: {- required: true,- type: Object as PropType<Policy>,- },environmentTier: {required: true,type: Number as PropType<EnvironmentTier>,@@ -372,13 +307,9 @@ const environmentList = useEnvironmentV1List();const state = reactive<LocalState>({environment: cloneDeep(props.environment),rolloutPolicy: cloneDeep(props.rolloutPolicy),- backupPolicy: cloneDeep(props.backupPolicy),environmentTier: props.environmentTier,});const resourceIdField = ref<InstanceType<typeof ResourceIdField>>();-const showBackupSchedulePolicySection = computed(() => {- return false; // Hide for now-});const bindings = computed(() => {if (props.create) {@@ -449,13 +380,6 @@ watch(});-watch(- () => props.backupPolicy,- (cur: Policy) => {- state.backupPolicy = cloneDeep(cur);- }-);-watch(() => props.environmentTier,(cur: EnvironmentTier) => {@@ -532,20 +456,13 @@ const allowEditSQLReviewPolicy = computed(() => {});const valueChanged = (- field?:- | "environment"- | "approvalPolicy"- | "rolloutPolicy"- | "backupPolicy"- | "environmentTier"+ field?: "environment" | "approvalPolicy" | "rolloutPolicy" | "environmentTier"): boolean => {switch (field) {case "environment":return !isEqual(props.environment, state.environment);case "rolloutPolicy":return !isEqual(props.rolloutPolicy, state.rolloutPolicy);- case "backupPolicy":- return !isEqual(props.backupPolicy, state.backupPolicy);case "environmentTier":return !isEqual(props.environmentTier, state.environmentTier);@@ -553,7 +470,6 @@ const valueChanged = (return (!isEqual(props.environment, state.environment) ||!isEqual(props.rolloutPolicy, state.rolloutPolicy) ||- !isEqual(props.backupPolicy, state.backupPolicy) ||!isEqual(props.environmentTier, state.environmentTier));}@@ -579,7 +495,6 @@ onBeforeRouteLeave((to, from, next) => {const revertEnvironment = () => {state.environment = cloneDeep(props.environment!);state.rolloutPolicy = cloneDeep(props.rolloutPolicy!);- state.backupPolicy = cloneDeep(props.backupPolicy!);state.environmentTier = cloneDeep(props.environmentTier!);};@@ -591,7 +506,6 @@ const createEnvironment = () => {title: state.environment.title,},state.rolloutPolicy,- state.backupPolicy,state.environmentTier);};@@ -617,15 +531,6 @@ const updateEnvironment = () => {state.rolloutPolicy);}-- if (!isEqual(props.backupPolicy, state.backupPolicy)) {- emit(- "update-policy",- state.environment,- PolicyType.BACKUP_PLAN,- state.backupPolicy- );- }};const archiveEnvironment = () => {diff --git a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vueindex 15e6c03fb2..da66e650f2 100644--- a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue+++ b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue@@ -91,8 +91,6 @@ const secondaryViewMode = computed((): SecondaryViewMode => {if ([Task_Type.DATABASE_CREATE,- Task_Type.DATABASE_RESTORE_RESTORE,- Task_Type.DATABASE_RESTORE_CUTOVER,Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC,Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER,].includes(props.task.type)diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vueindex 8056c9dc3e..cc44d47487 100644--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue@@ -19,8 +19,7 @@ import TaskRunTable from "./TaskRunTable.vue";type ViewMode = "SINGLE" | "MERGED";-const { issue, selectedTask, isGhostMode, isPITRMode, isTenantMode } =- useIssueContext();+const { issue, selectedTask, isGhostMode, isTenantMode } = useIssueContext();/*** MERGED mode: merge all tasks' activities into one table@@ -28,7 +27,6 @@ const { issue, selectedTask, isGhostMode, isPITRMode, isTenantMode } =*/const mode = computed((): ViewMode => {if (isGhostMode.value) return "MERGED";- if (isPITRMode.value) return "MERGED";if (isTenantMode.value) return "SINGLE";return "SINGLE";});diff --git a/frontend/src/components/IssueV1/logic/base.ts b/frontend/src/components/IssueV1/logic/base.tsindex d942b75b51..9f2b28332e 100644--- a/frontend/src/components/IssueV1/logic/base.ts+++ b/frontend/src/components/IssueV1/logic/base.ts@@ -154,15 +154,6 @@ export const useBaseIssueContext = (].includes(task.type);});});- const isPITRMode = computed(() => {- return flattenTaskV1List(rollout.value).some((task) => {- return [- Task_Type.DATABASE_RESTORE_RESTORE,- Task_Type.DATABASE_RESTORE_CUTOVER,- Task_Type.DATABASE_CREATE,- ].includes(task.type);- });- });const isTenantMode = computed((): boolean => {// To sync databases schema in tenant mode, we use normal project logic to create issue.if (isCreating.value && route.query.batch !== "1") return false;@@ -189,7 +180,6 @@ export const useBaseIssueContext = (return {phase,isGhostMode,- isPITRMode,isTenantMode,isLegacyIssue,events,diff --git a/frontend/src/components/IssueV1/logic/context.ts b/frontend/src/components/IssueV1/logic/context.tsindex f89f75a12e..44fe91e156 100644--- a/frontend/src/components/IssueV1/logic/context.ts+++ b/frontend/src/components/IssueV1/logic/context.ts@@ -45,7 +45,6 @@ export type IssueContext = {issue: Ref<ComposedIssue>;phase: Ref<IssuePhase>;isGhostMode: Ref<boolean>;- isPITRMode: Ref<boolean>;isTenantMode: Ref<boolean>;isLegacyIssue: Ref<boolean>;releaserCandidates: Ref<User[]>;diff --git a/frontend/src/components/IssueV1/logic/plan-check.ts b/frontend/src/components/IssueV1/logic/plan-check.tsindex f09cbb04de..830ee9bad1 100644--- a/frontend/src/components/IssueV1/logic/plan-check.ts+++ b/frontend/src/components/IssueV1/logic/plan-check.ts@@ -18,11 +18,6 @@ export const planSpecHasPlanChecks = (spec: Plan_Spec) => {if (spec.changeDatabaseConfig !== undefined) {return true;}- if (spec.restoreDatabaseConfig !== undefined) {- if (spec.restoreDatabaseConfig.pointInTime !== undefined) {- return true; // PITR check- }- }return false;};diff --git a/frontend/src/components/IssueV1/logic/plan.ts b/frontend/src/components/IssueV1/logic/plan.tsindex 52f6e5ed8f..664d7609c1 100644--- a/frontend/src/components/IssueV1/logic/plan.ts+++ b/frontend/src/components/IssueV1/logic/plan.ts@@ -13,7 +13,6 @@ export const targetForSpec = (spec: Plan_Spec | undefined) => {return (spec.changeDatabaseConfig?.target ??spec.createDatabaseConfig?.target ??- spec.restoreDatabaseConfig?.target ??undefined);};diff --git a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseTableRow.vue b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseTableRow.vueindex 7109e3454c..e17e3997db 100644--- a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseTableRow.vue+++ b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseTableRow.vue@@ -16,12 +16,6 @@@failed="$emit('goto-sql-editor-failed')"/><DatabaseV1Name :database="database" :link="false" tag="span" />- <BBBadge- v-if="isPITRDatabaseV1(database)"- text="PITR"- :can-remove="false"- class="text-xs"- /></div></div><div v-if="showEnvironmentColumn" class="bb-grid-cell">@@ -58,7 +52,6 @@ import { computed } from "vue";import { InstanceV1Name, EnvironmentV1Name } from "@/components/v2";import { useEnvironmentV1Store } from "@/store";import { ComposedDatabase } from "@/types";-import { isPITRDatabaseV1 } from "@/utils";import LabelsColumn from "./LabelsColumn.vue";import ProjectCol from "./ProjectCol.vue";import { Mode } from "./utils";diff --git a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseV1Table.vue b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseV1Table.vueindex 8244c945d5..7ab0ac6591 100644--- a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseV1Table.vue+++ b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseV1Table.vue@@ -79,16 +79,6 @@<template #placeholder-content><slot name="placeholder"></slot></template>-- <template #footer>- <div- v-if="hasReservedDatabases && !state.showReservedDatabaseList"- class="flex items-center justify-center cursor-pointer hover:bg-gray-200 py-2 text-gray-400 text-sm"- @click="showReservedDatabaseList()"- >- {{ $t("database.show-reserved-databases") }}- </div>- </template></BBGrid></div>@@ -134,7 +124,7 @@ import type { ColumnDef } from "@tanstack/vue-table";import { sortBy } from "lodash-es";import cloneDeep from "lodash-es/cloneDeep";import { NPagination } from "naive-ui";-import { computed, nextTick, PropType, reactive, ref, watch } from "vue";+import { computed, PropType, reactive, ref, watch } from "vue";import { useI18n } from "vue-i18n";import { useRouter } from "vue-router";import { BBGridColumn } from "@/bbkit/types";@@ -146,7 +136,6 @@ import {databaseV1Url,getScrollParent,isDatabaseV1Queryable,- isPITRDatabaseV1,VueClass,} from "@/utils";import DatabaseGroupTableRow from "./DatabaseGroupTableRow.vue";@@ -160,7 +149,6 @@ const { getCoreRowModel, getPaginationRowModel, useVueTable } = await import(interface LocalState {showIncorrectProjectModal: boolean;warningDatabase?: ComposedDatabase;- showReservedDatabaseList: boolean;}const props = defineProps({@@ -236,28 +224,16 @@ const currentUserV1 = useCurrentUserV1();const { t } = useI18n();const state = reactive<LocalState>({showIncorrectProjectModal: false,- showReservedDatabaseList: false,});const pageMode = usePageMode();const wrapper = ref<HTMLElement>();-const regularDatabaseList = computed(() =>- props.databaseList.filter((db) => !isPITRDatabaseV1(db))-);-const reservedDatabaseList = computed(() =>- props.databaseList.filter((db) => isPITRDatabaseV1(db))-);-const hasReservedDatabases = computed(- () => reservedDatabaseList.value.length > 0-);+const regularDatabaseList = computed(() => props.databaseList);const mixedDataList = computed(() => {const dataList: (ComposedDatabase | ComposedDatabaseGroup)[] = [...regularDatabaseList.value,];- if (state.showReservedDatabaseList) {- dataList.push(...reservedDatabaseList.value);- }if (props.databaseGroupList) {dataList.push(...props.databaseGroupList);}@@ -396,17 +372,6 @@ watch({ immediate: true });-const showReservedDatabaseList = () => {- const count = regularDatabaseList.value.length;- const pageCount = table.getPageCount();- const targetPage =- count === pageCount * props.pageSize ? pageCount + 1 : pageCount;- state.showReservedDatabaseList = true;- nextTick(() => {- handleChangePage(targetPage);- });-};-const allowQuery = (database: ComposedDatabase) => {return isDatabaseV1Queryable(database, currentUserV1.value);};diff --git a/frontend/src/plugins/index.ts b/frontend/src/plugins/index.tsindex bbd485342d..23b6100418 100644--- a/frontend/src/plugins/index.ts+++ b/frontend/src/plugins/index.ts@@ -1,4 +1,3 @@export * from "./issue";export * from "./types";-export * from "./pitr";export * from "./window-events";diff --git a/frontend/src/plugins/pitr/index.ts b/frontend/src/plugins/pitr/index.tsdeleted file mode 100644index a3fd9b031a..0000000000--- a/frontend/src/plugins/pitr/index.ts+++ /dev/null@@ -1,82 +0,0 @@-import { head } from "lodash-es";-import { computed, Ref, watch } from "vue";-import { useI18n } from "vue-i18n";-import { useBackupListByDatabaseName, useChangeHistoryStore } from "@/store";-import { ComposedDatabase } from "@/types";-import { Engine } from "@/types/proto/v1/common";-import { Backup_BackupState } from "@/types/proto/v1/database_service";-import { Instance } from "@/types/proto/v1/instance_service";-import { semverCompare } from "@/utils";--export const MIN_PITR_SUPPORT_MYSQL_VERSION = "8.0.0";--export const isPITRAvailableOnInstanceV1 = (instance: Instance): boolean => {- const { engine, engineVersion } = instance;- return (- engine === Engine.MYSQL &&- semverCompare(engineVersion, MIN_PITR_SUPPORT_MYSQL_VERSION)- );-};--export const usePITRLogic = (database: Ref<ComposedDatabase>) => {- const { t } = useI18n();- const changeHistoryStore = useChangeHistoryStore();-- const backupList = useBackupListByDatabaseName(- computed(() => database.value.name)- );- const doneBackupList = computed(() =>- backupList.value.filter(- (backup) => backup.state === Backup_BackupState.DONE- )- );-- const pitrAvailable = computed((): { result: boolean; message: string } => {- const { engine, engineVersion } = database.value.instanceEntity;- if (- engine === Engine.MYSQL &&- semverCompare(engineVersion, MIN_PITR_SUPPORT_MYSQL_VERSION)- ) {- if (doneBackupList.value.length > 0) {- return { result: true, message: "ok" };- }- return {- result: false,- message: t("database.pitr.no-available-backup"),- };- }- return {- result: false,- message: t("database.pitr.minimum-supported-engine-and-version", {- engine: "MySQL",- min_version: MIN_PITR_SUPPORT_MYSQL_VERSION,- }),- };- });-- const prepareChangeHistoryList = async () => {- changeHistoryStore.fetchChangeHistoryList({- parent: database.value.name,- });- };-- watch(() => database.value.name, prepareChangeHistoryList, {- immediate: true,- });-- const changeHistoryList = computed(() => {- return changeHistoryStore.changeHistoryListByDatabase(database.value.name);- });-- const lastChangeHistory = computed(() => {- return head(changeHistoryList.value);- });-- return {- backupList,- doneBackupList,- pitrAvailable,- changeHistoryList,- lastChangeHistory,- };-};diff --git a/frontend/src/store/modules/v1/index.ts b/frontend/src/store/modules/v1/index.tsindex 7d681a3f44..6b00de7429 100644--- a/frontend/src/store/modules/v1/index.ts+++ b/frontend/src/store/modules/v1/index.ts@@ -1,6 +1,5 @@export * from "./environment";export * from "./database";-export * from "./backup";export * from "./project";export * from "./projectIamPolicy";export * from "./projectWebhook";diff --git a/frontend/src/store/modules/v1/policy.ts b/frontend/src/store/modules/v1/policy.tsindex 1b63a4f0ff..3efbbe4b4e 100644--- a/frontend/src/store/modules/v1/policy.ts+++ b/frontend/src/store/modules/v1/policy.ts@@ -8,7 +8,6 @@ import {PolicyType,PolicyResourceType,policyTypeToJSON,- BackupPlanSchedule,RolloutPolicy,} from "@/types/proto/v1/org_policy_service";import { useCurrentUserV1 } from "../auth";@@ -247,32 +246,6 @@ export const usePolicyByParentAndType = (});};-export const defaultBackupSchedule = BackupPlanSchedule.UNSET;--export const getDefaultBackupPlanPolicy = (- parentPath: string,- resourceType: PolicyResourceType-): Policy => {- const name = replacePolicyTypeNameToLowerCase(- `${parentPath}/${policyNamePrefix}${policyTypeToJSON(- PolicyType.BACKUP_PLAN- )}`- );- return {- name,- uid: "",- resourceUid: "",- inheritFromParent: false,- type: PolicyType.BACKUP_PLAN,- resourceType: resourceType,- enforce: true,- backupPlanPolicy: {- schedule: defaultBackupSchedule,- retentionDuration: undefined,- },- };-};-// Default RolloutPolicy payload is somehow strict to prevent auto rolloutexport const getDefaultRolloutPolicyPayload = () => {return RolloutPolicy.fromPartial({diff --git a/frontend/src/types/backup.ts b/frontend/src/types/backup.tsdeleted file mode 100644index 5f2f377d0f..0000000000--- a/frontend/src/types/backup.ts+++ /dev/null@@ -1,40 +0,0 @@-import { BackupId, BackupSettingId, DatabaseId } from "./id";--export type BackupStatus = "PENDING_CREATE" | "DONE" | "FAILED";--export type BackupType = "MANUAL" | "AUTOMATIC" | "PITR";--export type BackupStorageBackend = "LOCAL" | "S3" | "GCS";--// Backup-export type Backup = {- id: BackupId;-- // Related fields- databaseId: DatabaseId;-- // Standard fields- createdTs: number;-- name: string;- status: BackupStatus;- type: BackupType;- storageBackend: BackupStorageBackend;- migrationHistoryVersion: string;- path: string;- comment: string;-};--// Backup setting.-export type BackupSetting = {- id: BackupSettingId;-- // Related fields- databaseId: DatabaseId;-- enabled: boolean;- hour: number;- dayOfWeek: number;- retentionPeriodTs: number;- hookUrl: string;-};diff --git a/frontend/src/types/common.ts b/frontend/src/types/common.tsindex 48d098f07b..2756f95ca1 100644--- a/frontend/src/types/common.ts+++ b/frontend/src/types/common.ts@@ -1,5 +1,4 @@import { Environment as EnvironmentV1 } from "@/types/proto/v1/environment_service";-import { BackupSetting } from "./backup";import { EMPTY_ID, UNKNOWN_ID } from "./const";import { DataSource } from "./dataSource";import { Database } from "./database";@@ -64,7 +63,6 @@ export type ResourceType =| "INSTANCE"| "DATABASE"| "DATA_SOURCE"- | "BACKUP_SETTING"| "ISSUE"| "PIPELINE"| "POLICY"@@ -88,7 +86,6 @@ interface ResourceMaker {(type: "INSTANCE"): Instance;(type: "DATABASE"): Database;(type: "DATA_SOURCE"): DataSource;- (type: "BACKUP_SETTING"): BackupSetting;(type: "ISSUE"): Issue;(type: "PIPELINE"): Pipeline;(type: "STAGE"): Stage;@@ -191,21 +188,12 @@ const makeUnknown = (type: ResourceType) => {sshUser: "",sshPassword: "",sshPrivateKey: "",+ authenticationPrivateKey: "",},// UI-only fieldsupdateSsl: false,};- const UNKNOWN_BACKUP_SETTING: BackupSetting = {- id: UNKNOWN_ID,- databaseId: UNKNOWN_ID,- enabled: false,- hour: 0,- dayOfWeek: 0,- hookUrl: "",- retentionPeriodTs: 0,- };-const UNKNOWN_PIPELINE: Pipeline = {id: UNKNOWN_ID,name: "<<Unknown pipeline>>",@@ -299,8 +287,6 @@ const makeUnknown = (type: ResourceType) => {return UNKNOWN_DATABASE;case "DATA_SOURCE":return UNKNOWN_DATA_SOURCE;- case "BACKUP_SETTING":- return UNKNOWN_BACKUP_SETTING;case "ISSUE":return UNKNOWN_ISSUE;case "PIPELINE":@@ -413,21 +399,12 @@ const makeEmpty = (type: ResourceType) => {sshUser: "",sshPassword: "",sshPrivateKey: "",+ authenticationPrivateKey: "",},// UI-only fieldsupdateSsl: false,};- const EMPTY_BACKUP_SETTING: BackupSetting = {- id: EMPTY_ID,- databaseId: UNKNOWN_ID,- enabled: false,- hour: 0,- dayOfWeek: 0,- hookUrl: "",- retentionPeriodTs: 0,- };-const EMPTY_PIPELINE: Pipeline = {id: EMPTY_ID,name: "",@@ -513,8 +490,6 @@ const makeEmpty = (type: ResourceType) => {return EMPTY_DATABASE;case "DATA_SOURCE":return EMPTY_DATA_SOURCE;- case "BACKUP_SETTING":- return EMPTY_BACKUP_SETTING;case "ISSUE":return EMPTY_ISSUE;case "PIPELINE":diff --git a/frontend/src/types/id.ts b/frontend/src/types/id.tsindex bdc8091dff..17bfda82c8 100644--- a/frontend/src/types/id.ts+++ b/frontend/src/types/id.ts@@ -46,10 +46,6 @@ export type RepositoryId = IdType;export type MigrationHistoryId = string;-export type BackupId = IdType;--export type BackupSettingId = IdType;-export type CommandId = string;export type CommandRegisterId = string;diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.tsindex f801ca9417..22a3fbbf84 100644--- a/frontend/src/types/index.ts+++ b/frontend/src/types/index.ts@@ -3,7 +3,6 @@ export * from "./actuator";export * from "./anomaly";export * from "./auditLog";export * from "./auth";-export * from "./backup";export * from "./common";export * from "./const";export * from "./database";diff --git a/frontend/src/types/issue.ts b/frontend/src/types/issue.tsindex d08f5dd866..0598d4d964 100644--- a/frontend/src/types/issue.ts+++ b/frontend/src/types/issue.ts@@ -1,6 +1,5 @@import { DatabaseResource } from "@/types";import {- BackupId,DatabaseId,InstanceId,IssueId,@@ -27,8 +26,7 @@ type IssueTypeDatabase =| "bb.issue.database.schema.update"| "bb.issue.database.data.update"| "bb.issue.database.rollback"- | "bb.issue.database.schema.update.ghost"- | "bb.issue.database.restore.pitr";+ | "bb.issue.database.schema.update.ghost";type IssueTypeGrantRequest = "bb.issue.grant.request";@@ -49,8 +47,6 @@ export type CreateDatabaseContext = {characterSet: string;collation: string;cluster: string;- backupId?: BackupId;- backupName?: string;labels?: string; // JSON encoded};@@ -83,13 +79,6 @@ export type MigrationContext = {detailList: MigrationDetail[];};-export type PITRContext = {- databaseId: DatabaseId;- pointInTimeTs?: number; // UNIX timestamp- backupId?: BackupId;- createDatabaseContext?: CreateDatabaseContext;-};-// eslint-disable-next-line @typescript-eslint/ban-typesexport type EmptyContext = {};@@ -106,7 +95,6 @@ export interface GrantRequestContext {export type IssueCreateContext =| CreateDatabaseContext| MigrationContext- | PITRContext| GrantRequestContext| EmptyContext;diff --git a/frontend/src/types/pipeline/task.ts b/frontend/src/types/pipeline/task.tsindex a2f4c1fa9d..15edfa30ab 100644--- a/frontend/src/types/pipeline/task.ts+++ b/frontend/src/types/pipeline/task.ts@@ -1,7 +1,6 @@import { ErrorCode, MigrationHistoryId, TaskCheckRunId } from "..";import { Database } from "../database";import {- BackupId,DatabaseId,InstanceId,IssueId,@@ -23,11 +22,8 @@ export type TaskType =| "bb.task.database.schema.update"| "bb.task.database.schema.update-sdl"| "bb.task.database.data.update"- | "bb.task.database.restore"| "bb.task.database.schema.update.ghost.sync"- | "bb.task.database.schema.update.ghost.cutover"- | "bb.task.database.restore.pitr.restore"- | "bb.task.database.restore.pitr.cutover";+ | "bb.task.database.schema.update.ghost.cutover";export type TaskStatus =| "PENDING"@@ -96,25 +92,6 @@ export type TaskDatabaseSchemaUpdateGhostCutoverPayload = {skippedReason: string;};-export type TaskDatabasePITRRestorePayload = {- skipped: boolean;- skippedReason: string;- projectId: ProjectId;- pointInTimeTs: number; // UNIX timestamp- databaseName?: string; // used when PITR to new DB- targetInstanceId?: InstanceId; // used when PITR to new DB-};--export type TaskDatabasePITRCutoverPayload = {- skipped: boolean;- skippedReason: string;-};--export type TaskDatabasePITRDeletePayload = {- // empty by now- // more input and output parameters in the future-};-export type RollbackSQLStatus = "PENDING" | "DONE" | "FAILED";export type TaskDatabaseDataUpdatePayload = {@@ -132,11 +109,6 @@ export type TaskDatabaseDataUpdatePayload = {rollbackFromTaskId?: TaskId;};-export type TaskDatabaseRestorePayload = {- databaseName: string;- backupId: BackupId;-};-export type TaskPayload =| TaskGeneralPayload| TaskDatabaseCreatePayload@@ -145,11 +117,7 @@ export type TaskPayload =| TaskDatabaseSchemaUpdateGhostSyncPayload| TaskDatabaseSchemaUpdateGhostCutoverPayload| TaskDatabaseDataUpdatePayload- | TaskDatabaseRestorePayload- | TaskEarliestAllowedTimePayload- | TaskDatabasePITRRestorePayload- | TaskDatabasePITRCutoverPayload- | TaskDatabasePITRDeletePayload;+ | TaskEarliestAllowedTimePayload;export type TaskProgressPayload = {comment: string;@@ -210,7 +178,6 @@ export type TaskCreate = {databaseName?: string;characterSet?: string;collation?: string;- backupId?: BackupId;earliestAllowedTs: number;rollbackEnabled?: boolean;};diff --git a/frontend/src/types/proto/store/plan.ts b/frontend/src/types/proto/store/plan.tsindex 1f8f422ffc..8063fd9b6a 100644--- a/frontend/src/types/proto/store/plan.ts+++ b/frontend/src/types/proto/store/plan.ts@@ -33,7 +33,6 @@ export interface PlanConfig_Spec {dependsOnSpecs: string[];createDatabaseConfig?: PlanConfig_CreateDatabaseConfig | undefined;changeDatabaseConfig?: PlanConfig_ChangeDatabaseConfig | undefined;- restoreDatabaseConfig?: PlanConfig_RestoreDatabaseConfig | undefined;exportDataConfig?: PlanConfig_ExportDataConfig | undefined;}@@ -205,27 +204,6 @@ export interface PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail {database: string;}-export interface PlanConfig_RestoreDatabaseConfig {- /**- * The resource name of the target to restore.- * Format: instances/{instance}/databases/{database}- */- target: string;- /** create_database_config is present if the user wants to restore to a new database. */- createDatabaseConfig?:- | PlanConfig_CreateDatabaseConfig- | undefined;- /**- * Restore from a backup.- * Format: instances/{instance}/databases/{database}/backups/{backup-name}- */- backup?:- | string- | undefined;- /** After the PITR operations, the database will be recovered to the state at this time. */- pointInTime?: Date | undefined;-}-export interface PlanConfig_ExportDataConfig {/*** The resource name of the target.@@ -388,7 +366,6 @@ function createBasePlanConfig_Spec(): PlanConfig_Spec {dependsOnSpecs: [],createDatabaseConfig: undefined,changeDatabaseConfig: undefined,- restoreDatabaseConfig: undefined,exportDataConfig: undefined,};}@@ -410,9 +387,6 @@ export const PlanConfig_Spec = {if (message.changeDatabaseConfig !== undefined) {PlanConfig_ChangeDatabaseConfig.encode(message.changeDatabaseConfig, writer.uint32(18).fork()).ldelim();}- if (message.restoreDatabaseConfig !== undefined) {- PlanConfig_RestoreDatabaseConfig.encode(message.restoreDatabaseConfig, writer.uint32(26).fork()).ldelim();- }if (message.exportDataConfig !== undefined) {PlanConfig_ExportDataConfig.encode(message.exportDataConfig, writer.uint32(58).fork()).ldelim();}@@ -461,13 +435,6 @@ export const PlanConfig_Spec = {message.changeDatabaseConfig = PlanConfig_ChangeDatabaseConfig.decode(reader, reader.uint32());continue;- case 3:- if (tag !== 26) {- break;- }-- message.restoreDatabaseConfig = PlanConfig_RestoreDatabaseConfig.decode(reader, reader.uint32());- continue;case 7:if (tag !== 58) {break;@@ -499,9 +466,6 @@ export const PlanConfig_Spec = {changeDatabaseConfig: isSet(object.changeDatabaseConfig)? PlanConfig_ChangeDatabaseConfig.fromJSON(object.changeDatabaseConfig): undefined,- restoreDatabaseConfig: isSet(object.restoreDatabaseConfig)- ? PlanConfig_RestoreDatabaseConfig.fromJSON(object.restoreDatabaseConfig)- : undefined,exportDataConfig: isSet(object.exportDataConfig)? PlanConfig_ExportDataConfig.fromJSON(object.exportDataConfig): undefined,@@ -525,9 +489,6 @@ export const PlanConfig_Spec = {if (message.changeDatabaseConfig !== undefined) {obj.changeDatabaseConfig = PlanConfig_ChangeDatabaseConfig.toJSON(message.changeDatabaseConfig);}- if (message.restoreDatabaseConfig !== undefined) {- obj.restoreDatabaseConfig = PlanConfig_RestoreDatabaseConfig.toJSON(message.restoreDatabaseConfig);- }if (message.exportDataConfig !== undefined) {obj.exportDataConfig = PlanConfig_ExportDataConfig.toJSON(message.exportDataConfig);}@@ -548,10 +509,6 @@ export const PlanConfig_Spec = {message.changeDatabaseConfig = (object.changeDatabaseConfig !== undefined && object.changeDatabaseConfig !== null)? PlanConfig_ChangeDatabaseConfig.fromPartial(object.changeDatabaseConfig): undefined;- message.restoreDatabaseConfig =- (object.restoreDatabaseConfig !== undefined && object.restoreDatabaseConfig !== null)- ? PlanConfig_RestoreDatabaseConfig.fromPartial(object.restoreDatabaseConfig)- : undefined;message.exportDataConfig = (object.exportDataConfig !== undefined && object.exportDataConfig !== null)? PlanConfig_ExportDataConfig.fromPartial(object.exportDataConfig): undefined;@@ -1298,114 +1255,6 @@ export const PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail = {},};-function createBasePlanConfig_RestoreDatabaseConfig(): PlanConfig_RestoreDatabaseConfig {- return { target: "", createDatabaseConfig: undefined, backup: undefined, pointInTime: undefined };-}--export const PlanConfig_RestoreDatabaseConfig = {- encode(message: PlanConfig_RestoreDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.target !== "") {- writer.uint32(10).string(message.target);- }- if (message.createDatabaseConfig !== undefined) {- PlanConfig_CreateDatabaseConfig.encode(message.createDatabaseConfig, writer.uint32(18).fork()).ldelim();- }- if (message.backup !== undefined) {- writer.uint32(26).string(message.backup);- }- if (message.pointInTime !== undefined) {- Timestamp.encode(toTimestamp(message.pointInTime), writer.uint32(34).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): PlanConfig_RestoreDatabaseConfig {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlanConfig_RestoreDatabaseConfig();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.target = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.createDatabaseConfig = PlanConfig_CreateDatabaseConfig.decode(reader, reader.uint32());- continue;- case 3:- if (tag !== 26) {- break;- }-- message.backup = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.pointInTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): PlanConfig_RestoreDatabaseConfig {- return {- target: isSet(object.target) ? globalThis.String(object.target) : "",- createDatabaseConfig: isSet(object.createDatabaseConfig)- ? PlanConfig_CreateDatabaseConfig.fromJSON(object.createDatabaseConfig)- : undefined,- backup: isSet(object.backup) ? globalThis.String(object.backup) : undefined,- pointInTime: isSet(object.pointInTime) ? fromJsonTimestamp(object.pointInTime) : undefined,- };- },-- toJSON(message: PlanConfig_RestoreDatabaseConfig): unknown {- const obj: any = {};- if (message.target !== "") {- obj.target = message.target;- }- if (message.createDatabaseConfig !== undefined) {- obj.createDatabaseConfig = PlanConfig_CreateDatabaseConfig.toJSON(message.createDatabaseConfig);- }- if (message.backup !== undefined) {- obj.backup = message.backup;- }- if (message.pointInTime !== undefined) {- obj.pointInTime = message.pointInTime.toISOString();- }- return obj;- },-- create(base?: DeepPartial<PlanConfig_RestoreDatabaseConfig>): PlanConfig_RestoreDatabaseConfig {- return PlanConfig_RestoreDatabaseConfig.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<PlanConfig_RestoreDatabaseConfig>): PlanConfig_RestoreDatabaseConfig {- const message = createBasePlanConfig_RestoreDatabaseConfig();- message.target = object.target ?? "";- message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)- ? PlanConfig_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig)- : undefined;- message.backup = object.backup ?? undefined;- message.pointInTime = object.pointInTime ?? undefined;- return message;- },-};-function createBasePlanConfig_ExportDataConfig(): PlanConfig_ExportDataConfig {return { target: "", sheet: "", maxRows: 0, format: 0, password: undefined };}diff --git a/frontend/src/types/proto/v1/anomaly_service.ts b/frontend/src/types/proto/v1/anomaly_service.tsindex c243840ecf..1e4a00f625 100644--- a/frontend/src/types/proto/v1/anomaly_service.ts+++ b/frontend/src/types/proto/v1/anomaly_service.ts@@ -2,7 +2,6 @@import Long from "long";import _m0 from "protobufjs/minimal";import { Timestamp } from "../google/protobuf/timestamp";-import { BackupPlanSchedule, backupPlanScheduleFromJSON, backupPlanScheduleToJSON } from "./org_policy_service";export const protobufPackage = "bytebase.v1";@@ -13,7 +12,7 @@ export interface SearchAnomaliesRequest {* Only support filter by resource and type for now.* For example:* Search the anomalies of a specific resource: 'resource="instances/{instance}".'- * Search the specified types of anomalies: 'type="DATABASE_BACKUP_POLICY_VIOLATION" | "MIGRATION_SCHEMA".'+ * Search the specified types of anomalies: 'type="MIGRATION_SCHEMA".'*/filter: string;/**@@ -57,8 +56,6 @@ export interface Anomaly {severity: Anomaly_AnomalySeverity;instanceConnectionDetail?: Anomaly_InstanceConnectionDetail | undefined;databaseConnectionDetail?: Anomaly_DatabaseConnectionDetail | undefined;- databaseBackupPolicyViolationDetail?: Anomaly_DatabaseBackupPolicyViolationDetail | undefined;- databaseBackupMissingDetail?: Anomaly_DatabaseBackupMissingDetail | undefined;databaseSchemaDriftDetail?: Anomaly_DatabaseSchemaDriftDetail | undefined;createTime: Date | undefined;updateTime: Date | undefined;@@ -77,15 +74,10 @@ export enum Anomaly_AnomalyType {/** MIGRATION_SCHEMA - MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing. */MIGRATION_SCHEMA = 2,/**- * DATABASE_BACKUP_POLICY_VIOLATION - Database level anomaly.+ * DATABASE_CONNECTION - Database level anomaly.*- * DATABASE_BACKUP_POLICY_VIOLATION is the anomaly type for database backup policy violation,- * e.g. the database backup policy is not meet the environment backup policy.+ * DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted.*/- DATABASE_BACKUP_POLICY_VIOLATION = 3,- /** DATABASE_BACKUP_MISSING - DATABASE_BACKUP_MISSING is the anomaly type for the backup missing, e.g. the backup is missing. */- DATABASE_BACKUP_MISSING = 4,- /** DATABASE_CONNECTION - DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted. */DATABASE_CONNECTION = 5,/*** DATABASE_SCHEMA_DRIFT - DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift,@@ -106,12 +98,6 @@ export function anomaly_AnomalyTypeFromJSON(object: any): Anomaly_AnomalyType {case 2:case "MIGRATION_SCHEMA":return Anomaly_AnomalyType.MIGRATION_SCHEMA;- case 3:- case "DATABASE_BACKUP_POLICY_VIOLATION":- return Anomaly_AnomalyType.DATABASE_BACKUP_POLICY_VIOLATION;- case 4:- case "DATABASE_BACKUP_MISSING":- return Anomaly_AnomalyType.DATABASE_BACKUP_MISSING;case 5:case "DATABASE_CONNECTION":return Anomaly_AnomalyType.DATABASE_CONNECTION;@@ -133,10 +119,6 @@ export function anomaly_AnomalyTypeToJSON(object: Anomaly_AnomalyType): string {return "INSTANCE_CONNECTION";case Anomaly_AnomalyType.MIGRATION_SCHEMA:return "MIGRATION_SCHEMA";- case Anomaly_AnomalyType.DATABASE_BACKUP_POLICY_VIOLATION:- return "DATABASE_BACKUP_POLICY_VIOLATION";- case Anomaly_AnomalyType.DATABASE_BACKUP_MISSING:- return "DATABASE_BACKUP_MISSING";case Anomaly_AnomalyType.DATABASE_CONNECTION:return "DATABASE_CONNECTION";case Anomaly_AnomalyType.DATABASE_SCHEMA_DRIFT:@@ -217,27 +199,6 @@ export interface Anomaly_DatabaseConnectionDetail {detail: string;}-/** DatabaseBackupPolicyViolationDetail is the detail for database backup policy violation anomaly. */-export interface Anomaly_DatabaseBackupPolicyViolationDetail {- /**- * parent is the parent of the database.- * Format: environments/{environment}- */- parent: string;- /** expected_schedule is the expected backup plan schedule in the parent. */- expectedSchedule: BackupPlanSchedule;- /** actual_schedule is the actual backup plan schedule in the database. */- actualSchedule: BackupPlanSchedule;-}--/** DatabaseBackupMissingDetail is the detail for database backup missing anomaly. */-export interface Anomaly_DatabaseBackupMissingDetail {- /** expected_schedule is the expected backup plan schedule in the database. */- expectedSchedule: BackupPlanSchedule;- /** latest_backup_time is the latest backup time in the database. */- latestBackupTime: Date | undefined;-}-/** DatabaseSchemaDriftDetail is the detail for database schema drift anomaly. */export interface Anomaly_DatabaseSchemaDriftDetail {/** record_version is the record version of the database schema drift. */@@ -420,8 +381,6 @@ function createBaseAnomaly(): Anomaly {severity: 0,instanceConnectionDetail: undefined,databaseConnectionDetail: undefined,- databaseBackupPolicyViolationDetail: undefined,- databaseBackupMissingDetail: undefined,databaseSchemaDriftDetail: undefined,createTime: undefined,updateTime: undefined,@@ -445,16 +404,6 @@ export const Anomaly = {if (message.databaseConnectionDetail !== undefined) {Anomaly_DatabaseConnectionDetail.encode(message.databaseConnectionDetail, writer.uint32(42).fork()).ldelim();}- if (message.databaseBackupPolicyViolationDetail !== undefined) {- Anomaly_DatabaseBackupPolicyViolationDetail.encode(- message.databaseBackupPolicyViolationDetail,- writer.uint32(50).fork(),- ).ldelim();- }- if (message.databaseBackupMissingDetail !== undefined) {- Anomaly_DatabaseBackupMissingDetail.encode(message.databaseBackupMissingDetail, writer.uint32(58).fork())- .ldelim();- }if (message.databaseSchemaDriftDetail !== undefined) {Anomaly_DatabaseSchemaDriftDetail.encode(message.databaseSchemaDriftDetail, writer.uint32(66).fork()).ldelim();}@@ -509,23 +458,6 @@ export const Anomaly = {message.databaseConnectionDetail = Anomaly_DatabaseConnectionDetail.decode(reader, reader.uint32());continue;- case 6:- if (tag !== 50) {- break;- }-- message.databaseBackupPolicyViolationDetail = Anomaly_DatabaseBackupPolicyViolationDetail.decode(- reader,- reader.uint32(),- );- continue;- case 7:- if (tag !== 58) {- break;- }-- message.databaseBackupMissingDetail = Anomaly_DatabaseBackupMissingDetail.decode(reader, reader.uint32());- continue;case 8:if (tag !== 66) {break;@@ -567,12 +499,6 @@ export const Anomaly = {databaseConnectionDetail: isSet(object.databaseConnectionDetail)? Anomaly_DatabaseConnectionDetail.fromJSON(object.databaseConnectionDetail): undefined,- databaseBackupPolicyViolationDetail: isSet(object.databaseBackupPolicyViolationDetail)- ? Anomaly_DatabaseBackupPolicyViolationDetail.fromJSON(object.databaseBackupPolicyViolationDetail)- : undefined,- databaseBackupMissingDetail: isSet(object.databaseBackupMissingDetail)- ? Anomaly_DatabaseBackupMissingDetail.fromJSON(object.databaseBackupMissingDetail)- : undefined,databaseSchemaDriftDetail: isSet(object.databaseSchemaDriftDetail)? Anomaly_DatabaseSchemaDriftDetail.fromJSON(object.databaseSchemaDriftDetail): undefined,@@ -598,14 +524,6 @@ export const Anomaly = {if (message.databaseConnectionDetail !== undefined) {obj.databaseConnectionDetail = Anomaly_DatabaseConnectionDetail.toJSON(message.databaseConnectionDetail);}- if (message.databaseBackupPolicyViolationDetail !== undefined) {- obj.databaseBackupPolicyViolationDetail = Anomaly_DatabaseBackupPolicyViolationDetail.toJSON(- message.databaseBackupPolicyViolationDetail,- );- }- if (message.databaseBackupMissingDetail !== undefined) {- obj.databaseBackupMissingDetail = Anomaly_DatabaseBackupMissingDetail.toJSON(message.databaseBackupMissingDetail);- }if (message.databaseSchemaDriftDetail !== undefined) {obj.databaseSchemaDriftDetail = Anomaly_DatabaseSchemaDriftDetail.toJSON(message.databaseSchemaDriftDetail);}@@ -634,14 +552,6 @@ export const Anomaly = {(object.databaseConnectionDetail !== undefined && object.databaseConnectionDetail !== null)? Anomaly_DatabaseConnectionDetail.fromPartial(object.databaseConnectionDetail): undefined;- message.databaseBackupPolicyViolationDetail =- (object.databaseBackupPolicyViolationDetail !== undefined && object.databaseBackupPolicyViolationDetail !== null)- ? Anomaly_DatabaseBackupPolicyViolationDetail.fromPartial(object.databaseBackupPolicyViolationDetail)- : undefined;- message.databaseBackupMissingDetail =- (object.databaseBackupMissingDetail !== undefined && object.databaseBackupMissingDetail !== null)- ? Anomaly_DatabaseBackupMissingDetail.fromPartial(object.databaseBackupMissingDetail)- : undefined;message.databaseSchemaDriftDetail =(object.databaseSchemaDriftDetail !== undefined && object.databaseSchemaDriftDetail !== null)? Anomaly_DatabaseSchemaDriftDetail.fromPartial(object.databaseSchemaDriftDetail)@@ -766,171 +676,6 @@ export const Anomaly_DatabaseConnectionDetail = {},};-function createBaseAnomaly_DatabaseBackupPolicyViolationDetail(): Anomaly_DatabaseBackupPolicyViolationDetail {- return { parent: "", expectedSchedule: 0, actualSchedule: 0 };-}--export const Anomaly_DatabaseBackupPolicyViolationDetail = {- encode(message: Anomaly_DatabaseBackupPolicyViolationDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.expectedSchedule !== 0) {- writer.uint32(16).int32(message.expectedSchedule);- }- if (message.actualSchedule !== 0) {- writer.uint32(24).int32(message.actualSchedule);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Anomaly_DatabaseBackupPolicyViolationDetail {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseAnomaly_DatabaseBackupPolicyViolationDetail();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.parent = reader.string();- continue;- case 2:- if (tag !== 16) {- break;- }-- message.expectedSchedule = reader.int32() as any;- continue;- case 3:- if (tag !== 24) {- break;- }-- message.actualSchedule = reader.int32() as any;- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Anomaly_DatabaseBackupPolicyViolationDetail {- return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- expectedSchedule: isSet(object.expectedSchedule) ? backupPlanScheduleFromJSON(object.expectedSchedule) : 0,- actualSchedule: isSet(object.actualSchedule) ? backupPlanScheduleFromJSON(object.actualSchedule) : 0,- };- },-- toJSON(message: Anomaly_DatabaseBackupPolicyViolationDetail): unknown {- const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.expectedSchedule !== 0) {- obj.expectedSchedule = backupPlanScheduleToJSON(message.expectedSchedule);- }- if (message.actualSchedule !== 0) {- obj.actualSchedule = backupPlanScheduleToJSON(message.actualSchedule);- }- return obj;- },-- create(base?: DeepPartial<Anomaly_DatabaseBackupPolicyViolationDetail>): Anomaly_DatabaseBackupPolicyViolationDetail {- return Anomaly_DatabaseBackupPolicyViolationDetail.fromPartial(base ?? {});- },- fromPartial(- object: DeepPartial<Anomaly_DatabaseBackupPolicyViolationDetail>,- ): Anomaly_DatabaseBackupPolicyViolationDetail {- const message = createBaseAnomaly_DatabaseBackupPolicyViolationDetail();- message.parent = object.parent ?? "";- message.expectedSchedule = object.expectedSchedule ?? 0;- message.actualSchedule = object.actualSchedule ?? 0;- return message;- },-};--function createBaseAnomaly_DatabaseBackupMissingDetail(): Anomaly_DatabaseBackupMissingDetail {- return { expectedSchedule: 0, latestBackupTime: undefined };-}--export const Anomaly_DatabaseBackupMissingDetail = {- encode(message: Anomaly_DatabaseBackupMissingDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.expectedSchedule !== 0) {- writer.uint32(8).int32(message.expectedSchedule);- }- if (message.latestBackupTime !== undefined) {- Timestamp.encode(toTimestamp(message.latestBackupTime), writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Anomaly_DatabaseBackupMissingDetail {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseAnomaly_DatabaseBackupMissingDetail();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.expectedSchedule = reader.int32() as any;- continue;- case 2:- if (tag !== 18) {- break;- }-- message.latestBackupTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Anomaly_DatabaseBackupMissingDetail {- return {- expectedSchedule: isSet(object.expectedSchedule) ? backupPlanScheduleFromJSON(object.expectedSchedule) : 0,- latestBackupTime: isSet(object.latestBackupTime) ? fromJsonTimestamp(object.latestBackupTime) : undefined,- };- },-- toJSON(message: Anomaly_DatabaseBackupMissingDetail): unknown {- const obj: any = {};- if (message.expectedSchedule !== 0) {- obj.expectedSchedule = backupPlanScheduleToJSON(message.expectedSchedule);- }- if (message.latestBackupTime !== undefined) {- obj.latestBackupTime = message.latestBackupTime.toISOString();- }- return obj;- },-- create(base?: DeepPartial<Anomaly_DatabaseBackupMissingDetail>): Anomaly_DatabaseBackupMissingDetail {- return Anomaly_DatabaseBackupMissingDetail.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Anomaly_DatabaseBackupMissingDetail>): Anomaly_DatabaseBackupMissingDetail {- const message = createBaseAnomaly_DatabaseBackupMissingDetail();- message.expectedSchedule = object.expectedSchedule ?? 0;- message.latestBackupTime = object.latestBackupTime ?? undefined;- return message;- },-};-function createBaseAnomaly_DatabaseSchemaDriftDetail(): Anomaly_DatabaseSchemaDriftDetail {return { recordVersion: "", expectedSchema: "", actualSchema: "" };}diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.tsindex 63adc1625f..0082921d1d 100644--- a/frontend/src/types/proto/v1/database_service.ts+++ b/frontend/src/types/proto/v1/database_service.ts@@ -310,63 +310,6 @@ export interface DiffSchemaResponse {diff: string;}-export interface GetBackupSettingRequest {- /**- * The name of the database to retrieve backup setting.- * Format: instances/{instance}/databases/{database}/backupSetting- */- name: string;-}--export interface UpdateBackupSettingRequest {- /** The database backup setting to update. */- setting: BackupSetting | undefined;-}--/** CreateBackupRequest is the request message for CreateBackup. */-export interface CreateBackupRequest {- /**- * The parent resource where this backup will be created.- * Format: instances/{instance}/databases/{database}- */- parent: string;- backup: Backup | undefined;-}--/** ListBackupsRequest is the request message for ListBackup. */-export interface ListBackupsRequest {- /**- * The parent resource where this backup will be created.- * Format: instances/{instance}/databases/{database}- */- parent: string;- /**- * Not used. The maximum number of backups to return. The service may return fewer than- * this value.- * If unspecified, at most 50 backups will be returned.- * The maximum value is 1000; values above 1000 will be coerced to 1000.- */- pageSize: number;- /**- * Not used. A page token, received from a previous `ListBackup` call.- * Provide this to retrieve the subsequent page.- *- * When paginating, all other parameters provided to `ListBackup` must match- * the call that provided the page token.- */- pageToken: string;-}--export interface ListBackupsResponse {- /** The backups from the specified request. */- backups: Backup[];- /**- * Not used. A token, which can be sent as `page_token` to retrieve the next page.- * If this field is omitted, there are no subsequent pages.- */- nextPageToken: string;-}-export interface Database {/*** The name of the database.@@ -974,157 +917,6 @@ export interface DatabaseSchema {schema: string;}-/** BackupSetting is the setting for database backup. */-export interface BackupSetting {- /**- * The name of the database backup setting.- * Format: instances/{instance}/databases/{database}/backupSetting- */- name: string;- /**- * The default maximum age of a Backup created via this BackupPlan.- * If specified, a Backup will be automatically deleted after its age reaches.- * If not specified, Backups created under this BackupPlan will be deleted after 7 DAYS.- * It will be rounded up to the number of days.- */- backupRetainDuration:- | Duration- | undefined;- /**- * Cron(https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups.- * Support hour of day, day of week. (UTC time)- *- * Default (empty): Disable automatic backup.- */- cronSchedule: string;- /** hook_url(https://www.bytebase.com/docs/disaster-recovery/backup/#post-backup-webhook) is the URL to send a notification when a backup is created. */- hookUrl: string;-}--/** The message of the backup. */-export interface Backup {- /**- * The resource name of the database backup. backup-name is specified by the client.- * Format: instances/{instance}/databases/{database}/backups/{backup-name}- */- name: string;- /** The timestamp when the backup resource was created initially. */- createTime:- | Date- | undefined;- /** The timestamp when the backup resource was updated. */- updateTime:- | Date- | undefined;- /** The state of the backup. */- state: Backup_BackupState;- /** The type of the backup. */- backupType: Backup_BackupType;- /** The comment of the backup. */- comment: string;- uid: string;-}--/** The type of the backup. */-export enum Backup_BackupType {- /** BACKUP_TYPE_UNSPECIFIED - The type of the backup is unknown. */- BACKUP_TYPE_UNSPECIFIED = 0,- /** MANUAL - The backup is created by user. */- MANUAL = 1,- /** AUTOMATIC - The backup is created by automatic backup. */- AUTOMATIC = 2,- /** PITR - The backup is created automatically after doing PITR. */- PITR = 3,- UNRECOGNIZED = -1,-}--export function backup_BackupTypeFromJSON(object: any): Backup_BackupType {- switch (object) {- case 0:- case "BACKUP_TYPE_UNSPECIFIED":- return Backup_BackupType.BACKUP_TYPE_UNSPECIFIED;- case 1:- case "MANUAL":- return Backup_BackupType.MANUAL;- case 2:- case "AUTOMATIC":- return Backup_BackupType.AUTOMATIC;- case 3:- case "PITR":- return Backup_BackupType.PITR;- case -1:- case "UNRECOGNIZED":- default:- return Backup_BackupType.UNRECOGNIZED;- }-}--export function backup_BackupTypeToJSON(object: Backup_BackupType): string {- switch (object) {- case Backup_BackupType.BACKUP_TYPE_UNSPECIFIED:- return "BACKUP_TYPE_UNSPECIFIED";- case Backup_BackupType.MANUAL:- return "MANUAL";- case Backup_BackupType.AUTOMATIC:- return "AUTOMATIC";- case Backup_BackupType.PITR:- return "PITR";- case Backup_BackupType.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--/** The state of the backup. */-export enum Backup_BackupState {- /** BACKUP_STATE_UNSPECIFIED - The state of the backup is unknown. */- BACKUP_STATE_UNSPECIFIED = 0,- /** PENDING_CREATE - The backup is being pending to create. */- PENDING_CREATE = 1,- /** DONE - The backup is ready to use. */- DONE = 2,- /** FAILED - The backup is being deleted. */- FAILED = 3,- UNRECOGNIZED = -1,-}--export function backup_BackupStateFromJSON(object: any): Backup_BackupState {- switch (object) {- case 0:- case "BACKUP_STATE_UNSPECIFIED":- return Backup_BackupState.BACKUP_STATE_UNSPECIFIED;- case 1:- case "PENDING_CREATE":- return Backup_BackupState.PENDING_CREATE;- case 2:- case "DONE":- return Backup_BackupState.DONE;- case 3:- case "FAILED":- return Backup_BackupState.FAILED;- case -1:- case "UNRECOGNIZED":- default:- return Backup_BackupState.UNRECOGNIZED;- }-}--export function backup_BackupStateToJSON(object: Backup_BackupState): string {- switch (object) {- case Backup_BackupState.BACKUP_STATE_UNSPECIFIED:- return "BACKUP_STATE_UNSPECIFIED";- case Backup_BackupState.PENDING_CREATE:- return "PENDING_CREATE";- case Backup_BackupState.DONE:- return "DONE";- case Backup_BackupState.FAILED:- return "FAILED";- case Backup_BackupState.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}-/** ListSlowQueriesRequest is the request of listing slow query. */export interface ListSlowQueriesRequest {/** Format: instances/{instance}/databases/{database} */@@ -2752,22 +2544,60 @@ export const DiffSchemaResponse = {},};-function createBaseGetBackupSettingRequest(): GetBackupSettingRequest {- return { name: "" };+function createBaseDatabase(): Database {+ return {+ name: "",+ uid: "",+ syncState: 0,+ successfulSyncTime: undefined,+ project: "",+ schemaVersion: "",+ environment: "",+ effectiveEnvironment: "",+ labels: {},+ instanceResource: undefined,+ };}-export const GetBackupSettingRequest = {- encode(message: GetBackupSettingRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const Database = {+ encode(message: Database, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.syncState !== 0) {+ writer.uint32(24).int32(message.syncState);+ }+ if (message.successfulSyncTime !== undefined) {+ Timestamp.encode(toTimestamp(message.successfulSyncTime), writer.uint32(34).fork()).ldelim();+ }+ if (message.project !== "") {+ writer.uint32(42).string(message.project);+ }+ if (message.schemaVersion !== "") {+ writer.uint32(50).string(message.schemaVersion);+ }+ if (message.environment !== "") {+ writer.uint32(58).string(message.environment);+ }+ if (message.effectiveEnvironment !== "") {+ writer.uint32(66).string(message.effectiveEnvironment);+ }+ Object.entries(message.labels).forEach(([key, value]) => {+ Database_LabelsEntry.encode({ key: key as any, value }, writer.uint32(74).fork()).ldelim();+ });+ if (message.instanceResource !== undefined) {+ InstanceResource.encode(message.instanceResource, writer.uint32(82).fork()).ldelim();+ }return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): GetBackupSettingRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): Database {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetBackupSettingRequest();+ const message = createBaseDatabase();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -2778,62 +2608,71 @@ export const GetBackupSettingRequest = {message.name = reader.string();continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },+ case 2:+ if (tag !== 18) {+ break;+ }- fromJSON(object: any): GetBackupSettingRequest {- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };- },+ message.uid = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }- toJSON(message: GetBackupSettingRequest): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- return obj;- },+ message.syncState = reader.int32() as any;+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }- create(base?: DeepPartial<GetBackupSettingRequest>): GetBackupSettingRequest {- return GetBackupSettingRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<GetBackupSettingRequest>): GetBackupSettingRequest {- const message = createBaseGetBackupSettingRequest();- message.name = object.name ?? "";- return message;- },-};+ message.successfulSyncTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }-function createBaseUpdateBackupSettingRequest(): UpdateBackupSettingRequest {- return { setting: undefined };-}+ message.project = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }-export const UpdateBackupSettingRequest = {- encode(message: UpdateBackupSettingRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.setting !== undefined) {- BackupSetting.encode(message.setting, writer.uint32(10).fork()).ldelim();- }- return writer;- },+ message.schemaVersion = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }- decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBackupSettingRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdateBackupSettingRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {+ message.environment = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.effectiveEnvironment = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ const entry9 = Database_LabelsEntry.decode(reader, reader.uint32());+ if (entry9.value !== undefined) {+ message.labels[entry9.key] = entry9.value;+ }+ continue;+ case 10:+ if (tag !== 82) {break;}- message.setting = BackupSetting.decode(reader, reader.uint32());+ message.instanceResource = InstanceResource.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2844,128 +2683,112 @@ export const UpdateBackupSettingRequest = {return message;},- fromJSON(object: any): UpdateBackupSettingRequest {- return { setting: isSet(object.setting) ? BackupSetting.fromJSON(object.setting) : undefined };- },-- toJSON(message: UpdateBackupSettingRequest): unknown {- const obj: any = {};- if (message.setting !== undefined) {- obj.setting = BackupSetting.toJSON(message.setting);- }- return obj;- },-- create(base?: DeepPartial<UpdateBackupSettingRequest>): UpdateBackupSettingRequest {- return UpdateBackupSettingRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<UpdateBackupSettingRequest>): UpdateBackupSettingRequest {- const message = createBaseUpdateBackupSettingRequest();- message.setting = (object.setting !== undefined && object.setting !== null)- ? BackupSetting.fromPartial(object.setting)- : undefined;- return message;- },-};--function createBaseCreateBackupRequest(): CreateBackupRequest {- return { parent: "", backup: undefined };-}--export const CreateBackupRequest = {- encode(message: CreateBackupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.backup !== undefined) {- Backup.encode(message.backup, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): CreateBackupRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseCreateBackupRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.parent = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.backup = Backup.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): CreateBackupRequest {+ fromJSON(object: any): Database {return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- backup: isSet(object.backup) ? Backup.fromJSON(object.backup) : undefined,+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ uid: isSet(object.uid) ? globalThis.String(object.uid) : "",+ syncState: isSet(object.syncState) ? stateFromJSON(object.syncState) : 0,+ successfulSyncTime: isSet(object.successfulSyncTime) ? fromJsonTimestamp(object.successfulSyncTime) : undefined,+ project: isSet(object.project) ? globalThis.String(object.project) : "",+ schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",+ environment: isSet(object.environment) ? globalThis.String(object.environment) : "",+ effectiveEnvironment: isSet(object.effectiveEnvironment) ? globalThis.String(object.effectiveEnvironment) : "",+ labels: isObject(object.labels)+ ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ instanceResource: isSet(object.instanceResource) ? InstanceResource.fromJSON(object.instanceResource) : undefined,};},- toJSON(message: CreateBackupRequest): unknown {+ toJSON(message: Database): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;+ if (message.name !== "") {+ obj.name = message.name;+ }+ if (message.uid !== "") {+ obj.uid = message.uid;+ }+ if (message.syncState !== 0) {+ obj.syncState = stateToJSON(message.syncState);+ }+ if (message.successfulSyncTime !== undefined) {+ obj.successfulSyncTime = message.successfulSyncTime.toISOString();}- if (message.backup !== undefined) {- obj.backup = Backup.toJSON(message.backup);+ if (message.project !== "") {+ obj.project = message.project;+ }+ if (message.schemaVersion !== "") {+ obj.schemaVersion = message.schemaVersion;+ }+ if (message.environment !== "") {+ obj.environment = message.environment;+ }+ if (message.effectiveEnvironment !== "") {+ obj.effectiveEnvironment = message.effectiveEnvironment;+ }+ if (message.labels) {+ const entries = Object.entries(message.labels);+ if (entries.length > 0) {+ obj.labels = {};+ entries.forEach(([k, v]) => {+ obj.labels[k] = v;+ });+ }+ }+ if (message.instanceResource !== undefined) {+ obj.instanceResource = InstanceResource.toJSON(message.instanceResource);}return obj;},- create(base?: DeepPartial<CreateBackupRequest>): CreateBackupRequest {- return CreateBackupRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<Database>): Database {+ return Database.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<CreateBackupRequest>): CreateBackupRequest {- const message = createBaseCreateBackupRequest();- message.parent = object.parent ?? "";- message.backup = (object.backup !== undefined && object.backup !== null)- ? Backup.fromPartial(object.backup)+ fromPartial(object: DeepPartial<Database>): Database {+ const message = createBaseDatabase();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.syncState = object.syncState ?? 0;+ message.successfulSyncTime = object.successfulSyncTime ?? undefined;+ message.project = object.project ?? "";+ message.schemaVersion = object.schemaVersion ?? "";+ message.environment = object.environment ?? "";+ message.effectiveEnvironment = object.effectiveEnvironment ?? "";+ message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = globalThis.String(value);+ }+ return acc;+ }, {});+ message.instanceResource = (object.instanceResource !== undefined && object.instanceResource !== null)+ ? InstanceResource.fromPartial(object.instanceResource): undefined;return message;},};-function createBaseListBackupsRequest(): ListBackupsRequest {- return { parent: "", pageSize: 0, pageToken: "" };+function createBaseDatabase_LabelsEntry(): Database_LabelsEntry {+ return { key: "", value: "" };}-export const ListBackupsRequest = {- encode(message: ListBackupsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.pageSize !== 0) {- writer.uint32(16).int32(message.pageSize);+export const Database_LabelsEntry = {+ encode(message: Database_LabelsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);}- if (message.pageToken !== "") {- writer.uint32(26).string(message.pageToken);+ if (message.value !== "") {+ writer.uint32(18).string(message.value);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListBackupsRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): Database_LabelsEntry {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListBackupsRequest();+ const message = createBaseDatabase_LabelsEntry();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -2974,21 +2797,14 @@ export const ListBackupsRequest = {break;}- message.parent = reader.string();+ message.key = reader.string();continue;case 2:- if (tag !== 16) {- break;- }-- message.pageSize = reader.int32();- continue;- case 3:- if (tag !== 26) {+ if (tag !== 18) {break;}- message.pageToken = reader.string();+ message.value = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2999,59 +2815,66 @@ export const ListBackupsRequest = {return message;},- fromJSON(object: any): ListBackupsRequest {+ fromJSON(object: any): Database_LabelsEntry {return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,- pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",};},- toJSON(message: ListBackupsRequest): unknown {+ toJSON(message: Database_LabelsEntry): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.pageSize !== 0) {- obj.pageSize = Math.round(message.pageSize);+ if (message.key !== "") {+ obj.key = message.key;}- if (message.pageToken !== "") {- obj.pageToken = message.pageToken;+ if (message.value !== "") {+ obj.value = message.value;}return obj;},- create(base?: DeepPartial<ListBackupsRequest>): ListBackupsRequest {- return ListBackupsRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<Database_LabelsEntry>): Database_LabelsEntry {+ return Database_LabelsEntry.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListBackupsRequest>): ListBackupsRequest {- const message = createBaseListBackupsRequest();- message.parent = object.parent ?? "";- message.pageSize = object.pageSize ?? 0;- message.pageToken = object.pageToken ?? "";+ fromPartial(object: DeepPartial<Database_LabelsEntry>): Database_LabelsEntry {+ const message = createBaseDatabase_LabelsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";return message;},};-function createBaseListBackupsResponse(): ListBackupsResponse {- return { backups: [], nextPageToken: "" };+function createBaseDatabaseMetadata(): DatabaseMetadata {+ return { name: "", schemas: [], characterSet: "", collation: "", extensions: [], schemaConfigs: [] };}-export const ListBackupsResponse = {- encode(message: ListBackupsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.backups) {- Backup.encode(v!, writer.uint32(10).fork()).ldelim();+export const DatabaseMetadata = {+ encode(message: DatabaseMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (message.nextPageToken !== "") {- writer.uint32(18).string(message.nextPageToken);+ for (const v of message.schemas) {+ SchemaMetadata.encode(v!, writer.uint32(18).fork()).ldelim();+ }+ if (message.characterSet !== "") {+ writer.uint32(26).string(message.characterSet);+ }+ if (message.collation !== "") {+ writer.uint32(34).string(message.collation);+ }+ for (const v of message.extensions) {+ ExtensionMetadata.encode(v!, writer.uint32(42).fork()).ldelim();+ }+ for (const v of message.schemaConfigs) {+ SchemaConfig.encode(v!, writer.uint32(50).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListBackupsResponse {+ decode(input: _m0.Reader | Uint8Array, length?: number): DatabaseMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListBackupsResponse();+ const message = createBaseDatabaseMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3060,14 +2883,42 @@ export const ListBackupsResponse = {break;}- message.backups.push(Backup.decode(reader, reader.uint32()));+ message.name = reader.string();continue;case 2:if (tag !== 18) {break;}- message.nextPageToken = reader.string();+ message.schemas.push(SchemaMetadata.decode(reader, reader.uint32()));+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.characterSet = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.collation = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.extensions.push(ExtensionMetadata.decode(reader, reader.uint32()));+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.schemaConfigs.push(SchemaConfig.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3078,89 +2929,107 @@ export const ListBackupsResponse = {return message;},- fromJSON(object: any): ListBackupsResponse {+ fromJSON(object: any): DatabaseMetadata {return {- backups: globalThis.Array.isArray(object?.backups) ? object.backups.map((e: any) => Backup.fromJSON(e)) : [],- nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ schemas: globalThis.Array.isArray(object?.schemas)+ ? object.schemas.map((e: any) => SchemaMetadata.fromJSON(e))+ : [],+ characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",+ extensions: globalThis.Array.isArray(object?.extensions)+ ? object.extensions.map((e: any) => ExtensionMetadata.fromJSON(e))+ : [],+ schemaConfigs: globalThis.Array.isArray(object?.schemaConfigs)+ ? object.schemaConfigs.map((e: any) => SchemaConfig.fromJSON(e))+ : [],};},- toJSON(message: ListBackupsResponse): unknown {+ toJSON(message: DatabaseMetadata): unknown {const obj: any = {};- if (message.backups?.length) {- obj.backups = message.backups.map((e) => Backup.toJSON(e));+ if (message.name !== "") {+ obj.name = message.name;}- if (message.nextPageToken !== "") {- obj.nextPageToken = message.nextPageToken;+ if (message.schemas?.length) {+ obj.schemas = message.schemas.map((e) => SchemaMetadata.toJSON(e));+ }+ if (message.characterSet !== "") {+ obj.characterSet = message.characterSet;+ }+ if (message.collation !== "") {+ obj.collation = message.collation;+ }+ if (message.extensions?.length) {+ obj.extensions = message.extensions.map((e) => ExtensionMetadata.toJSON(e));+ }+ if (message.schemaConfigs?.length) {+ obj.schemaConfigs = message.schemaConfigs.map((e) => SchemaConfig.toJSON(e));}return obj;},- create(base?: DeepPartial<ListBackupsResponse>): ListBackupsResponse {- return ListBackupsResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<DatabaseMetadata>): DatabaseMetadata {+ return DatabaseMetadata.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListBackupsResponse>): ListBackupsResponse {- const message = createBaseListBackupsResponse();- message.backups = object.backups?.map((e) => Backup.fromPartial(e)) || [];- message.nextPageToken = object.nextPageToken ?? "";+ fromPartial(object: DeepPartial<DatabaseMetadata>): DatabaseMetadata {+ const message = createBaseDatabaseMetadata();+ message.name = object.name ?? "";+ message.schemas = object.schemas?.map((e) => SchemaMetadata.fromPartial(e)) || [];+ message.characterSet = object.characterSet ?? "";+ message.collation = object.collation ?? "";+ message.extensions = object.extensions?.map((e) => ExtensionMetadata.fromPartial(e)) || [];+ message.schemaConfigs = object.schemaConfigs?.map((e) => SchemaConfig.fromPartial(e)) || [];return message;},};-function createBaseDatabase(): Database {+function createBaseSchemaMetadata(): SchemaMetadata {return {name: "",- uid: "",- syncState: 0,- successfulSyncTime: undefined,- project: "",- schemaVersion: "",- environment: "",- effectiveEnvironment: "",- labels: {},- instanceResource: undefined,+ tables: [],+ externalTables: [],+ views: [],+ functions: [],+ streams: [],+ tasks: [],+ materializedViews: [],};}-export const Database = {- encode(message: Database, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const SchemaMetadata = {+ encode(message: SchemaMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}- if (message.uid !== "") {- writer.uint32(18).string(message.uid);- }- if (message.syncState !== 0) {- writer.uint32(24).int32(message.syncState);+ for (const v of message.tables) {+ TableMetadata.encode(v!, writer.uint32(18).fork()).ldelim();}- if (message.successfulSyncTime !== undefined) {- Timestamp.encode(toTimestamp(message.successfulSyncTime), writer.uint32(34).fork()).ldelim();+ for (const v of message.externalTables) {+ ExternalTableMetadata.encode(v!, writer.uint32(26).fork()).ldelim();}- if (message.project !== "") {- writer.uint32(42).string(message.project);+ for (const v of message.views) {+ ViewMetadata.encode(v!, writer.uint32(34).fork()).ldelim();}- if (message.schemaVersion !== "") {- writer.uint32(50).string(message.schemaVersion);+ for (const v of message.functions) {+ FunctionMetadata.encode(v!, writer.uint32(42).fork()).ldelim();}- if (message.environment !== "") {- writer.uint32(58).string(message.environment);+ for (const v of message.streams) {+ StreamMetadata.encode(v!, writer.uint32(50).fork()).ldelim();}- if (message.effectiveEnvironment !== "") {- writer.uint32(66).string(message.effectiveEnvironment);+ for (const v of message.tasks) {+ TaskMetadata.encode(v!, writer.uint32(58).fork()).ldelim();}- Object.entries(message.labels).forEach(([key, value]) => {- Database_LabelsEntry.encode({ key: key as any, value }, writer.uint32(74).fork()).ldelim();- });- if (message.instanceResource !== undefined) {- InstanceResource.encode(message.instanceResource, writer.uint32(82).fork()).ldelim();+ for (const v of message.materializedViews) {+ MaterializedViewMetadata.encode(v!, writer.uint32(66).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Database {+ decode(input: _m0.Reader | Uint8Array, length?: number): SchemaMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDatabase();+ const message = createBaseSchemaMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3176,66 +3045,49 @@ export const Database = {break;}- message.uid = reader.string();+ message.tables.push(TableMetadata.decode(reader, reader.uint32()));continue;case 3:- if (tag !== 24) {+ if (tag !== 26) {break;}- message.syncState = reader.int32() as any;+ message.externalTables.push(ExternalTableMetadata.decode(reader, reader.uint32()));continue;case 4:if (tag !== 34) {break;}- message.successfulSyncTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ message.views.push(ViewMetadata.decode(reader, reader.uint32()));continue;case 5:if (tag !== 42) {break;}- message.project = reader.string();+ message.functions.push(FunctionMetadata.decode(reader, reader.uint32()));continue;case 6:if (tag !== 50) {break;}- message.schemaVersion = reader.string();+ message.streams.push(StreamMetadata.decode(reader, reader.uint32()));continue;case 7:if (tag !== 58) {break;}- message.environment = reader.string();+ message.tasks.push(TaskMetadata.decode(reader, reader.uint32()));continue;case 8:if (tag !== 66) {break;}- message.effectiveEnvironment = reader.string();- continue;- case 9:- if (tag !== 74) {- break;- }-- const entry9 = Database_LabelsEntry.decode(reader, reader.uint32());- if (entry9.value !== undefined) {- message.labels[entry9.key] = entry9.value;- }- continue;- case 10:- if (tag !== 82) {- break;- }-- message.instanceResource = InstanceResource.decode(reader, reader.uint32());+ message.materializedViews.push(MaterializedViewMetadata.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3246,112 +3098,98 @@ export const Database = {return message;},- fromJSON(object: any): Database {+ fromJSON(object: any): SchemaMetadata {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",- syncState: isSet(object.syncState) ? stateFromJSON(object.syncState) : 0,- successfulSyncTime: isSet(object.successfulSyncTime) ? fromJsonTimestamp(object.successfulSyncTime) : undefined,- project: isSet(object.project) ? globalThis.String(object.project) : "",- schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",- environment: isSet(object.environment) ? globalThis.String(object.environment) : "",- effectiveEnvironment: isSet(object.effectiveEnvironment) ? globalThis.String(object.effectiveEnvironment) : "",- labels: isObject(object.labels)- ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {- acc[key] = String(value);- return acc;- }, {})- : {},- instanceResource: isSet(object.instanceResource) ? InstanceResource.fromJSON(object.instanceResource) : undefined,+ tables: globalThis.Array.isArray(object?.tables) ? object.tables.map((e: any) => TableMetadata.fromJSON(e)) : [],+ externalTables: globalThis.Array.isArray(object?.externalTables)+ ? object.externalTables.map((e: any) => ExternalTableMetadata.fromJSON(e))+ : [],+ views: globalThis.Array.isArray(object?.views) ? object.views.map((e: any) => ViewMetadata.fromJSON(e)) : [],+ functions: globalThis.Array.isArray(object?.functions)+ ? object.functions.map((e: any) => FunctionMetadata.fromJSON(e))+ : [],+ streams: globalThis.Array.isArray(object?.streams)+ ? object.streams.map((e: any) => StreamMetadata.fromJSON(e))+ : [],+ tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => TaskMetadata.fromJSON(e)) : [],+ materializedViews: globalThis.Array.isArray(object?.materializedViews)+ ? object.materializedViews.map((e: any) => MaterializedViewMetadata.fromJSON(e))+ : [],};},- toJSON(message: Database): unknown {+ toJSON(message: SchemaMetadata): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}- if (message.uid !== "") {- obj.uid = message.uid;- }- if (message.syncState !== 0) {- obj.syncState = stateToJSON(message.syncState);- }- if (message.successfulSyncTime !== undefined) {- obj.successfulSyncTime = message.successfulSyncTime.toISOString();+ if (message.tables?.length) {+ obj.tables = message.tables.map((e) => TableMetadata.toJSON(e));}- if (message.project !== "") {- obj.project = message.project;+ if (message.externalTables?.length) {+ obj.externalTables = message.externalTables.map((e) => ExternalTableMetadata.toJSON(e));}- if (message.schemaVersion !== "") {- obj.schemaVersion = message.schemaVersion;+ if (message.views?.length) {+ obj.views = message.views.map((e) => ViewMetadata.toJSON(e));}- if (message.environment !== "") {- obj.environment = message.environment;+ if (message.functions?.length) {+ obj.functions = message.functions.map((e) => FunctionMetadata.toJSON(e));}- if (message.effectiveEnvironment !== "") {- obj.effectiveEnvironment = message.effectiveEnvironment;+ if (message.streams?.length) {+ obj.streams = message.streams.map((e) => StreamMetadata.toJSON(e));}- if (message.labels) {- const entries = Object.entries(message.labels);- if (entries.length > 0) {- obj.labels = {};- entries.forEach(([k, v]) => {- obj.labels[k] = v;- });- }+ if (message.tasks?.length) {+ obj.tasks = message.tasks.map((e) => TaskMetadata.toJSON(e));}- if (message.instanceResource !== undefined) {- obj.instanceResource = InstanceResource.toJSON(message.instanceResource);+ if (message.materializedViews?.length) {+ obj.materializedViews = message.materializedViews.map((e) => MaterializedViewMetadata.toJSON(e));}return obj;},- create(base?: DeepPartial<Database>): Database {- return Database.fromPartial(base ?? {});+ create(base?: DeepPartial<SchemaMetadata>): SchemaMetadata {+ return SchemaMetadata.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Database>): Database {- const message = createBaseDatabase();+ fromPartial(object: DeepPartial<SchemaMetadata>): SchemaMetadata {+ const message = createBaseSchemaMetadata();message.name = object.name ?? "";- message.uid = object.uid ?? "";- message.syncState = object.syncState ?? 0;- message.successfulSyncTime = object.successfulSyncTime ?? undefined;- message.project = object.project ?? "";- message.schemaVersion = object.schemaVersion ?? "";- message.environment = object.environment ?? "";- message.effectiveEnvironment = object.effectiveEnvironment ?? "";- message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {- if (value !== undefined) {- acc[key] = globalThis.String(value);- }- return acc;- }, {});- message.instanceResource = (object.instanceResource !== undefined && object.instanceResource !== null)- ? InstanceResource.fromPartial(object.instanceResource)- : undefined;+ message.tables = object.tables?.map((e) => TableMetadata.fromPartial(e)) || [];+ message.externalTables = object.externalTables?.map((e) => ExternalTableMetadata.fromPartial(e)) || [];+ message.views = object.views?.map((e) => ViewMetadata.fromPartial(e)) || [];+ message.functions = object.functions?.map((e) => FunctionMetadata.fromPartial(e)) || [];+ message.streams = object.streams?.map((e) => StreamMetadata.fromPartial(e)) || [];+ message.tasks = object.tasks?.map((e) => TaskMetadata.fromPartial(e)) || [];+ message.materializedViews = object.materializedViews?.map((e) => MaterializedViewMetadata.fromPartial(e)) || [];return message;},};-function createBaseDatabase_LabelsEntry(): Database_LabelsEntry {- return { key: "", value: "" };+function createBaseExternalTableMetadata(): ExternalTableMetadata {+ return { name: "", externalServerName: "", externalDatabaseName: "", columns: [] };}-export const Database_LabelsEntry = {- encode(message: Database_LabelsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.key !== "") {- writer.uint32(10).string(message.key);+export const ExternalTableMetadata = {+ encode(message: ExternalTableMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (message.value !== "") {- writer.uint32(18).string(message.value);+ if (message.externalServerName !== "") {+ writer.uint32(18).string(message.externalServerName);+ }+ if (message.externalDatabaseName !== "") {+ writer.uint32(26).string(message.externalDatabaseName);+ }+ for (const v of message.columns) {+ ColumnMetadata.encode(v!, writer.uint32(34).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Database_LabelsEntry {+ decode(input: _m0.Reader | Uint8Array, length?: number): ExternalTableMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDatabase_LabelsEntry();+ const message = createBaseExternalTableMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3360,14 +3198,28 @@ export const Database_LabelsEntry = {break;}- message.key = reader.string();+ message.name = reader.string();continue;case 2:if (tag !== 18) {break;}- message.value = reader.string();+ message.externalServerName = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.externalDatabaseName = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.columns.push(ColumnMetadata.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3378,66 +3230,121 @@ export const Database_LabelsEntry = {return message;},- fromJSON(object: any): Database_LabelsEntry {+ fromJSON(object: any): ExternalTableMetadata {return {- key: isSet(object.key) ? globalThis.String(object.key) : "",- value: isSet(object.value) ? globalThis.String(object.value) : "",- };- },+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ externalServerName: isSet(object.externalServerName) ? globalThis.String(object.externalServerName) : "",+ externalDatabaseName: isSet(object.externalDatabaseName) ? globalThis.String(object.externalDatabaseName) : "",+ columns: globalThis.Array.isArray(object?.columns)+ ? object.columns.map((e: any) => ColumnMetadata.fromJSON(e))+ : [],+ };+ },- toJSON(message: Database_LabelsEntry): unknown {+ toJSON(message: ExternalTableMetadata): unknown {const obj: any = {};- if (message.key !== "") {- obj.key = message.key;+ if (message.name !== "") {+ obj.name = message.name;}- if (message.value !== "") {- obj.value = message.value;+ if (message.externalServerName !== "") {+ obj.externalServerName = message.externalServerName;+ }+ if (message.externalDatabaseName !== "") {+ obj.externalDatabaseName = message.externalDatabaseName;+ }+ if (message.columns?.length) {+ obj.columns = message.columns.map((e) => ColumnMetadata.toJSON(e));}return obj;},- create(base?: DeepPartial<Database_LabelsEntry>): Database_LabelsEntry {- return Database_LabelsEntry.fromPartial(base ?? {});+ create(base?: DeepPartial<ExternalTableMetadata>): ExternalTableMetadata {+ return ExternalTableMetadata.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Database_LabelsEntry>): Database_LabelsEntry {- const message = createBaseDatabase_LabelsEntry();- message.key = object.key ?? "";- message.value = object.value ?? "";+ fromPartial(object: DeepPartial<ExternalTableMetadata>): ExternalTableMetadata {+ const message = createBaseExternalTableMetadata();+ message.name = object.name ?? "";+ message.externalServerName = object.externalServerName ?? "";+ message.externalDatabaseName = object.externalDatabaseName ?? "";+ message.columns = object.columns?.map((e) => ColumnMetadata.fromPartial(e)) || [];return message;},};-function createBaseDatabaseMetadata(): DatabaseMetadata {- return { name: "", schemas: [], characterSet: "", collation: "", extensions: [], schemaConfigs: [] };+function createBaseTableMetadata(): TableMetadata {+ return {+ name: "",+ columns: [],+ indexes: [],+ engine: "",+ collation: "",+ rowCount: Long.ZERO,+ dataSize: Long.ZERO,+ indexSize: Long.ZERO,+ dataFree: Long.ZERO,+ createOptions: "",+ comment: "",+ classification: "",+ userComment: "",+ foreignKeys: [],+ partitions: [],+ };}-export const DatabaseMetadata = {- encode(message: DatabaseMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const TableMetadata = {+ encode(message: TableMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}- for (const v of message.schemas) {- SchemaMetadata.encode(v!, writer.uint32(18).fork()).ldelim();+ for (const v of message.columns) {+ ColumnMetadata.encode(v!, writer.uint32(18).fork()).ldelim();}- if (message.characterSet !== "") {- writer.uint32(26).string(message.characterSet);+ for (const v of message.indexes) {+ IndexMetadata.encode(v!, writer.uint32(26).fork()).ldelim();+ }+ if (message.engine !== "") {+ writer.uint32(34).string(message.engine);}if (message.collation !== "") {- writer.uint32(34).string(message.collation);+ writer.uint32(42).string(message.collation);}- for (const v of message.extensions) {- ExtensionMetadata.encode(v!, writer.uint32(42).fork()).ldelim();+ if (!message.rowCount.isZero()) {+ writer.uint32(48).int64(message.rowCount);}- for (const v of message.schemaConfigs) {- SchemaConfig.encode(v!, writer.uint32(50).fork()).ldelim();+ if (!message.dataSize.isZero()) {+ writer.uint32(56).int64(message.dataSize);+ }+ if (!message.indexSize.isZero()) {+ writer.uint32(64).int64(message.indexSize);+ }+ if (!message.dataFree.isZero()) {+ writer.uint32(72).int64(message.dataFree);+ }+ if (message.createOptions !== "") {+ writer.uint32(82).string(message.createOptions);+ }+ if (message.comment !== "") {+ writer.uint32(90).string(message.comment);+ }+ if (message.classification !== "") {+ writer.uint32(106).string(message.classification);+ }+ if (message.userComment !== "") {+ writer.uint32(114).string(message.userComment);+ }+ for (const v of message.foreignKeys) {+ ForeignKeyMetadata.encode(v!, writer.uint32(98).fork()).ldelim();+ }+ for (const v of message.partitions) {+ TablePartitionMetadata.encode(v!, writer.uint32(122).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): DatabaseMetadata {+ decode(input: _m0.Reader | Uint8Array, length?: number): TableMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDatabaseMetadata();+ const message = createBaseTableMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3453,35 +3360,98 @@ export const DatabaseMetadata = {break;}- message.schemas.push(SchemaMetadata.decode(reader, reader.uint32()));+ message.columns.push(ColumnMetadata.decode(reader, reader.uint32()));continue;case 3:if (tag !== 26) {break;}- message.characterSet = reader.string();+ message.indexes.push(IndexMetadata.decode(reader, reader.uint32()));continue;case 4:if (tag !== 34) {break;}- message.collation = reader.string();+ message.engine = reader.string();continue;case 5:if (tag !== 42) {break;}- message.extensions.push(ExtensionMetadata.decode(reader, reader.uint32()));+ message.collation = reader.string();continue;case 6:- if (tag !== 50) {+ if (tag !== 48) {break;}- message.schemaConfigs.push(SchemaConfig.decode(reader, reader.uint32()));+ message.rowCount = reader.int64() as Long;+ continue;+ case 7:+ if (tag !== 56) {+ break;+ }++ message.dataSize = reader.int64() as Long;+ continue;+ case 8:+ if (tag !== 64) {+ break;+ }++ message.indexSize = reader.int64() as Long;+ continue;+ case 9:+ if (tag !== 72) {+ break;+ }++ message.dataFree = reader.int64() as Long;+ continue;+ case 10:+ if (tag !== 82) {+ break;+ }++ message.createOptions = reader.string();+ continue;+ case 11:+ if (tag !== 90) {+ break;+ }++ message.comment = reader.string();+ continue;+ case 13:+ if (tag !== 106) {+ break;+ }++ message.classification = reader.string();+ continue;+ case 14:+ if (tag !== 114) {+ break;+ }++ message.userComment = reader.string();+ continue;+ case 12:+ if (tag !== 98) {+ break;+ }++ message.foreignKeys.push(ForeignKeyMetadata.decode(reader, reader.uint32()));+ continue;+ case 15:+ if (tag !== 122) {+ break;+ }++ message.partitions.push(TablePartitionMetadata.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3492,107 +3462,147 @@ export const DatabaseMetadata = {return message;},- fromJSON(object: any): DatabaseMetadata {+ fromJSON(object: any): TableMetadata {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- schemas: globalThis.Array.isArray(object?.schemas)- ? object.schemas.map((e: any) => SchemaMetadata.fromJSON(e))+ columns: globalThis.Array.isArray(object?.columns)+ ? object.columns.map((e: any) => ColumnMetadata.fromJSON(e)): [],- characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",+ indexes: globalThis.Array.isArray(object?.indexes)+ ? object.indexes.map((e: any) => IndexMetadata.fromJSON(e))+ : [],+ engine: isSet(object.engine) ? globalThis.String(object.engine) : "",collation: isSet(object.collation) ? globalThis.String(object.collation) : "",- extensions: globalThis.Array.isArray(object?.extensions)- ? object.extensions.map((e: any) => ExtensionMetadata.fromJSON(e))+ rowCount: isSet(object.rowCount) ? Long.fromValue(object.rowCount) : Long.ZERO,+ dataSize: isSet(object.dataSize) ? Long.fromValue(object.dataSize) : Long.ZERO,+ indexSize: isSet(object.indexSize) ? Long.fromValue(object.indexSize) : Long.ZERO,+ dataFree: isSet(object.dataFree) ? Long.fromValue(object.dataFree) : Long.ZERO,+ createOptions: isSet(object.createOptions) ? globalThis.String(object.createOptions) : "",+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",+ userComment: isSet(object.userComment) ? globalThis.String(object.userComment) : "",+ foreignKeys: globalThis.Array.isArray(object?.foreignKeys)+ ? object.foreignKeys.map((e: any) => ForeignKeyMetadata.fromJSON(e)): [],- schemaConfigs: globalThis.Array.isArray(object?.schemaConfigs)- ? object.schemaConfigs.map((e: any) => SchemaConfig.fromJSON(e))+ partitions: globalThis.Array.isArray(object?.partitions)+ ? object.partitions.map((e: any) => TablePartitionMetadata.fromJSON(e)): [],};},- toJSON(message: DatabaseMetadata): unknown {+ toJSON(message: TableMetadata): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}- if (message.schemas?.length) {- obj.schemas = message.schemas.map((e) => SchemaMetadata.toJSON(e));+ if (message.columns?.length) {+ obj.columns = message.columns.map((e) => ColumnMetadata.toJSON(e));}- if (message.characterSet !== "") {- obj.characterSet = message.characterSet;+ if (message.indexes?.length) {+ obj.indexes = message.indexes.map((e) => IndexMetadata.toJSON(e));+ }+ if (message.engine !== "") {+ obj.engine = message.engine;}if (message.collation !== "") {obj.collation = message.collation;}- if (message.extensions?.length) {- obj.extensions = message.extensions.map((e) => ExtensionMetadata.toJSON(e));+ if (!message.rowCount.isZero()) {+ obj.rowCount = (message.rowCount || Long.ZERO).toString();}- if (message.schemaConfigs?.length) {- obj.schemaConfigs = message.schemaConfigs.map((e) => SchemaConfig.toJSON(e));+ if (!message.dataSize.isZero()) {+ obj.dataSize = (message.dataSize || Long.ZERO).toString();}- return obj;- },-- create(base?: DeepPartial<DatabaseMetadata>): DatabaseMetadata {- return DatabaseMetadata.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<DatabaseMetadata>): DatabaseMetadata {- const message = createBaseDatabaseMetadata();- message.name = object.name ?? "";- message.schemas = object.schemas?.map((e) => SchemaMetadata.fromPartial(e)) || [];- message.characterSet = object.characterSet ?? "";- message.collation = object.collation ?? "";- message.extensions = object.extensions?.map((e) => ExtensionMetadata.fromPartial(e)) || [];- message.schemaConfigs = object.schemaConfigs?.map((e) => SchemaConfig.fromPartial(e)) || [];- return message;- },-};--function createBaseSchemaMetadata(): SchemaMetadata {- return {- name: "",- tables: [],- externalTables: [],- views: [],- functions: [],- streams: [],- tasks: [],- materializedViews: [],- };+ if (!message.indexSize.isZero()) {+ obj.indexSize = (message.indexSize || Long.ZERO).toString();+ }+ if (!message.dataFree.isZero()) {+ obj.dataFree = (message.dataFree || Long.ZERO).toString();+ }+ if (message.createOptions !== "") {+ obj.createOptions = message.createOptions;+ }+ if (message.comment !== "") {+ obj.comment = message.comment;+ }+ if (message.classification !== "") {+ obj.classification = message.classification;+ }+ if (message.userComment !== "") {+ obj.userComment = message.userComment;+ }+ if (message.foreignKeys?.length) {+ obj.foreignKeys = message.foreignKeys.map((e) => ForeignKeyMetadata.toJSON(e));+ }+ if (message.partitions?.length) {+ obj.partitions = message.partitions.map((e) => TablePartitionMetadata.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<TableMetadata>): TableMetadata {+ return TableMetadata.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<TableMetadata>): TableMetadata {+ const message = createBaseTableMetadata();+ message.name = object.name ?? "";+ message.columns = object.columns?.map((e) => ColumnMetadata.fromPartial(e)) || [];+ message.indexes = object.indexes?.map((e) => IndexMetadata.fromPartial(e)) || [];+ message.engine = object.engine ?? "";+ message.collation = object.collation ?? "";+ message.rowCount = (object.rowCount !== undefined && object.rowCount !== null)+ ? Long.fromValue(object.rowCount)+ : Long.ZERO;+ message.dataSize = (object.dataSize !== undefined && object.dataSize !== null)+ ? Long.fromValue(object.dataSize)+ : Long.ZERO;+ message.indexSize = (object.indexSize !== undefined && object.indexSize !== null)+ ? Long.fromValue(object.indexSize)+ : Long.ZERO;+ message.dataFree = (object.dataFree !== undefined && object.dataFree !== null)+ ? Long.fromValue(object.dataFree)+ : Long.ZERO;+ message.createOptions = object.createOptions ?? "";+ message.comment = object.comment ?? "";+ message.classification = object.classification ?? "";+ message.userComment = object.userComment ?? "";+ message.foreignKeys = object.foreignKeys?.map((e) => ForeignKeyMetadata.fromPartial(e)) || [];+ message.partitions = object.partitions?.map((e) => TablePartitionMetadata.fromPartial(e)) || [];+ return message;+ },+};++function createBaseTablePartitionMetadata(): TablePartitionMetadata {+ return { name: "", type: 0, expression: "", value: "", useDefault: "", subpartitions: [] };}-export const SchemaMetadata = {- encode(message: SchemaMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const TablePartitionMetadata = {+ encode(message: TablePartitionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}- for (const v of message.tables) {- TableMetadata.encode(v!, writer.uint32(18).fork()).ldelim();- }- for (const v of message.externalTables) {- ExternalTableMetadata.encode(v!, writer.uint32(26).fork()).ldelim();- }- for (const v of message.views) {- ViewMetadata.encode(v!, writer.uint32(34).fork()).ldelim();+ if (message.type !== 0) {+ writer.uint32(16).int32(message.type);}- for (const v of message.functions) {- FunctionMetadata.encode(v!, writer.uint32(42).fork()).ldelim();+ if (message.expression !== "") {+ writer.uint32(26).string(message.expression);}- for (const v of message.streams) {- StreamMetadata.encode(v!, writer.uint32(50).fork()).ldelim();+ if (message.value !== "") {+ writer.uint32(34).string(message.value);}- for (const v of message.tasks) {- TaskMetadata.encode(v!, writer.uint32(58).fork()).ldelim();+ if (message.useDefault !== "") {+ writer.uint32(42).string(message.useDefault);}- for (const v of message.materializedViews) {- MaterializedViewMetadata.encode(v!, writer.uint32(66).fork()).ldelim();+ for (const v of message.subpartitions) {+ TablePartitionMetadata.encode(v!, writer.uint32(50).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): SchemaMetadata {+ decode(input: _m0.Reader | Uint8Array, length?: number): TablePartitionMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSchemaMetadata();+ const message = createBaseTablePartitionMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3604,53 +3614,39 @@ export const SchemaMetadata = {message.name = reader.string();continue;case 2:- if (tag !== 18) {+ if (tag !== 16) {break;}- message.tables.push(TableMetadata.decode(reader, reader.uint32()));+ message.type = reader.int32() as any;continue;case 3:if (tag !== 26) {break;}- message.externalTables.push(ExternalTableMetadata.decode(reader, reader.uint32()));+ message.expression = reader.string();continue;case 4:if (tag !== 34) {break;}- message.views.push(ViewMetadata.decode(reader, reader.uint32()));+ message.value = reader.string();continue;case 5:if (tag !== 42) {break;}- message.functions.push(FunctionMetadata.decode(reader, reader.uint32()));+ message.useDefault = reader.string();continue;case 6:if (tag !== 50) {break;}- message.streams.push(StreamMetadata.decode(reader, reader.uint32()));- continue;- case 7:- if (tag !== 58) {- break;- }-- message.tasks.push(TaskMetadata.decode(reader, reader.uint32()));- continue;- case 8:- if (tag !== 66) {- break;- }-- message.materializedViews.push(MaterializedViewMetadata.decode(reader, reader.uint32()));+ message.subpartitions.push(TablePartitionMetadata.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3661,253 +3657,131 @@ export const SchemaMetadata = {return message;},- fromJSON(object: any): SchemaMetadata {+ fromJSON(object: any): TablePartitionMetadata {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- tables: globalThis.Array.isArray(object?.tables) ? object.tables.map((e: any) => TableMetadata.fromJSON(e)) : [],- externalTables: globalThis.Array.isArray(object?.externalTables)- ? object.externalTables.map((e: any) => ExternalTableMetadata.fromJSON(e))- : [],- views: globalThis.Array.isArray(object?.views) ? object.views.map((e: any) => ViewMetadata.fromJSON(e)) : [],- functions: globalThis.Array.isArray(object?.functions)- ? object.functions.map((e: any) => FunctionMetadata.fromJSON(e))- : [],- streams: globalThis.Array.isArray(object?.streams)- ? object.streams.map((e: any) => StreamMetadata.fromJSON(e))- : [],- tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => TaskMetadata.fromJSON(e)) : [],- materializedViews: globalThis.Array.isArray(object?.materializedViews)- ? object.materializedViews.map((e: any) => MaterializedViewMetadata.fromJSON(e))+ type: isSet(object.type) ? tablePartitionMetadata_TypeFromJSON(object.type) : 0,+ expression: isSet(object.expression) ? globalThis.String(object.expression) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",+ useDefault: isSet(object.useDefault) ? globalThis.String(object.useDefault) : "",+ subpartitions: globalThis.Array.isArray(object?.subpartitions)+ ? object.subpartitions.map((e: any) => TablePartitionMetadata.fromJSON(e)): [],};},- toJSON(message: SchemaMetadata): unknown {+ toJSON(message: TablePartitionMetadata): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}- if (message.tables?.length) {- obj.tables = message.tables.map((e) => TableMetadata.toJSON(e));- }- if (message.externalTables?.length) {- obj.externalTables = message.externalTables.map((e) => ExternalTableMetadata.toJSON(e));- }- if (message.views?.length) {- obj.views = message.views.map((e) => ViewMetadata.toJSON(e));+ if (message.type !== 0) {+ obj.type = tablePartitionMetadata_TypeToJSON(message.type);}- if (message.functions?.length) {- obj.functions = message.functions.map((e) => FunctionMetadata.toJSON(e));+ if (message.expression !== "") {+ obj.expression = message.expression;}- if (message.streams?.length) {- obj.streams = message.streams.map((e) => StreamMetadata.toJSON(e));+ if (message.value !== "") {+ obj.value = message.value;}- if (message.tasks?.length) {- obj.tasks = message.tasks.map((e) => TaskMetadata.toJSON(e));+ if (message.useDefault !== "") {+ obj.useDefault = message.useDefault;}- if (message.materializedViews?.length) {- obj.materializedViews = message.materializedViews.map((e) => MaterializedViewMetadata.toJSON(e));+ if (message.subpartitions?.length) {+ obj.subpartitions = message.subpartitions.map((e) => TablePartitionMetadata.toJSON(e));}return obj;},- create(base?: DeepPartial<SchemaMetadata>): SchemaMetadata {- return SchemaMetadata.fromPartial(base ?? {});+ create(base?: DeepPartial<TablePartitionMetadata>): TablePartitionMetadata {+ return TablePartitionMetadata.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<SchemaMetadata>): SchemaMetadata {- const message = createBaseSchemaMetadata();+ fromPartial(object: DeepPartial<TablePartitionMetadata>): TablePartitionMetadata {+ const message = createBaseTablePartitionMetadata();message.name = object.name ?? "";- message.tables = object.tables?.map((e) => TableMetadata.fromPartial(e)) || [];- message.externalTables = object.externalTables?.map((e) => ExternalTableMetadata.fromPartial(e)) || [];- message.views = object.views?.map((e) => ViewMetadata.fromPartial(e)) || [];- message.functions = object.functions?.map((e) => FunctionMetadata.fromPartial(e)) || [];- message.streams = object.streams?.map((e) => StreamMetadata.fromPartial(e)) || [];- message.tasks = object.tasks?.map((e) => TaskMetadata.fromPartial(e)) || [];- message.materializedViews = object.materializedViews?.map((e) => MaterializedViewMetadata.fromPartial(e)) || [];+ message.type = object.type ?? 0;+ message.expression = object.expression ?? "";+ message.value = object.value ?? "";+ message.useDefault = object.useDefault ?? "";+ message.subpartitions = object.subpartitions?.map((e) => TablePartitionMetadata.fromPartial(e)) || [];return message;},};-function createBaseExternalTableMetadata(): ExternalTableMetadata {- return { name: "", externalServerName: "", externalDatabaseName: "", columns: [] };+function createBaseColumnMetadata(): ColumnMetadata {+ return {+ name: "",+ position: 0,+ hasDefault: false,+ defaultNull: undefined,+ defaultString: undefined,+ defaultExpression: undefined,+ onUpdate: "",+ nullable: false,+ type: "",+ characterSet: "",+ collation: "",+ comment: "",+ classification: "",+ userComment: "",+ effectiveMaskingLevel: 0,+ };}-export const ExternalTableMetadata = {- encode(message: ExternalTableMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const ColumnMetadata = {+ encode(message: ColumnMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}- if (message.externalServerName !== "") {- writer.uint32(18).string(message.externalServerName);+ if (message.position !== 0) {+ writer.uint32(16).int32(message.position);}- if (message.externalDatabaseName !== "") {- writer.uint32(26).string(message.externalDatabaseName);+ if (message.hasDefault === true) {+ writer.uint32(24).bool(message.hasDefault);}- for (const v of message.columns) {- ColumnMetadata.encode(v!, writer.uint32(34).fork()).ldelim();+ if (message.defaultNull !== undefined) {+ writer.uint32(32).bool(message.defaultNull);}- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ExternalTableMetadata {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseExternalTableMetadata();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.externalServerName = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.externalDatabaseName = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.columns.push(ColumnMetadata.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): ExternalTableMetadata {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- externalServerName: isSet(object.externalServerName) ? globalThis.String(object.externalServerName) : "",- externalDatabaseName: isSet(object.externalDatabaseName) ? globalThis.String(object.externalDatabaseName) : "",- columns: globalThis.Array.isArray(object?.columns)- ? object.columns.map((e: any) => ColumnMetadata.fromJSON(e))- : [],- };- },-- toJSON(message: ExternalTableMetadata): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.externalServerName !== "") {- obj.externalServerName = message.externalServerName;- }- if (message.externalDatabaseName !== "") {- obj.externalDatabaseName = message.externalDatabaseName;+ if (message.defaultString !== undefined) {+ writer.uint32(42).string(message.defaultString);}- if (message.columns?.length) {- obj.columns = message.columns.map((e) => ColumnMetadata.toJSON(e));+ if (message.defaultExpression !== undefined) {+ writer.uint32(50).string(message.defaultExpression);}- return obj;- },-- create(base?: DeepPartial<ExternalTableMetadata>): ExternalTableMetadata {- return ExternalTableMetadata.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ExternalTableMetadata>): ExternalTableMetadata {- const message = createBaseExternalTableMetadata();- message.name = object.name ?? "";- message.externalServerName = object.externalServerName ?? "";- message.externalDatabaseName = object.externalDatabaseName ?? "";- message.columns = object.columns?.map((e) => ColumnMetadata.fromPartial(e)) || [];- return message;- },-};--function createBaseTableMetadata(): TableMetadata {- return {- name: "",- columns: [],- indexes: [],- engine: "",- collation: "",- rowCount: Long.ZERO,- dataSize: Long.ZERO,- indexSize: Long.ZERO,- dataFree: Long.ZERO,- createOptions: "",- comment: "",- classification: "",- userComment: "",- foreignKeys: [],- partitions: [],- };-}--export const TableMetadata = {- encode(message: TableMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);+ if (message.onUpdate !== "") {+ writer.uint32(122).string(message.onUpdate);}- for (const v of message.columns) {- ColumnMetadata.encode(v!, writer.uint32(18).fork()).ldelim();+ if (message.nullable === true) {+ writer.uint32(56).bool(message.nullable);}- for (const v of message.indexes) {- IndexMetadata.encode(v!, writer.uint32(26).fork()).ldelim();+ if (message.type !== "") {+ writer.uint32(66).string(message.type);}- if (message.engine !== "") {- writer.uint32(34).string(message.engine);+ if (message.characterSet !== "") {+ writer.uint32(74).string(message.characterSet);}if (message.collation !== "") {- writer.uint32(42).string(message.collation);- }- if (!message.rowCount.isZero()) {- writer.uint32(48).int64(message.rowCount);- }- if (!message.dataSize.isZero()) {- writer.uint32(56).int64(message.dataSize);- }- if (!message.indexSize.isZero()) {- writer.uint32(64).int64(message.indexSize);- }- if (!message.dataFree.isZero()) {- writer.uint32(72).int64(message.dataFree);- }- if (message.createOptions !== "") {- writer.uint32(82).string(message.createOptions);+ writer.uint32(82).string(message.collation);}if (message.comment !== "") {writer.uint32(90).string(message.comment);}if (message.classification !== "") {- writer.uint32(106).string(message.classification);+ writer.uint32(98).string(message.classification);}if (message.userComment !== "") {- writer.uint32(114).string(message.userComment);- }- for (const v of message.foreignKeys) {- ForeignKeyMetadata.encode(v!, writer.uint32(98).fork()).ldelim();+ writer.uint32(106).string(message.userComment);}- for (const v of message.partitions) {- TablePartitionMetadata.encode(v!, writer.uint32(122).fork()).ldelim();+ if (message.effectiveMaskingLevel !== 0) {+ writer.uint32(112).int32(message.effectiveMaskingLevel);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): TableMetadata {+ decode(input: _m0.Reader | Uint8Array, length?: number): ColumnMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTableMetadata();+ const message = createBaseColumnMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3919,67 +3793,74 @@ export const TableMetadata = {message.name = reader.string();continue;case 2:- if (tag !== 18) {+ if (tag !== 16) {break;}- message.columns.push(ColumnMetadata.decode(reader, reader.uint32()));+ message.position = reader.int32();continue;case 3:- if (tag !== 26) {+ if (tag !== 24) {break;}- message.indexes.push(IndexMetadata.decode(reader, reader.uint32()));+ message.hasDefault = reader.bool();continue;case 4:- if (tag !== 34) {+ if (tag !== 32) {break;}- message.engine = reader.string();+ message.defaultNull = reader.bool();continue;case 5:if (tag !== 42) {break;}- message.collation = reader.string();+ message.defaultString = reader.string();continue;case 6:- if (tag !== 48) {+ if (tag !== 50) {break;}- message.rowCount = reader.int64() as Long;+ message.defaultExpression = reader.string();+ continue;+ case 15:+ if (tag !== 122) {+ break;+ }++ message.onUpdate = reader.string();continue;case 7:if (tag !== 56) {break;}- message.dataSize = reader.int64() as Long;+ message.nullable = reader.bool();continue;case 8:- if (tag !== 64) {+ if (tag !== 66) {break;}- message.indexSize = reader.int64() as Long;+ message.type = reader.string();continue;case 9:- if (tag !== 72) {+ if (tag !== 74) {break;}- message.dataFree = reader.int64() as Long;+ message.characterSet = reader.string();continue;case 10:if (tag !== 82) {break;}- message.createOptions = reader.string();+ message.collation = reader.string();continue;case 11:if (tag !== 90) {@@ -3988,33 +3869,26 @@ export const TableMetadata = {message.comment = reader.string();continue;- case 13:- if (tag !== 106) {+ case 12:+ if (tag !== 98) {break;}message.classification = reader.string();continue;- case 14:- if (tag !== 114) {+ case 13:+ if (tag !== 106) {break;}message.userComment = reader.string();continue;- case 12:- if (tag !== 98) {- break;- }-- message.foreignKeys.push(ForeignKeyMetadata.decode(reader, reader.uint32()));- continue;- case 15:- if (tag !== 122) {+ case 14:+ if (tag !== 112) {break;}- message.partitions.push(TablePartitionMetadata.decode(reader, reader.uint32()));+ message.effectiveMaskingLevel = reader.int32() as any;continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4025,65 +3899,62 @@ export const TableMetadata = {return message;},- fromJSON(object: any): TableMetadata {+ fromJSON(object: any): ColumnMetadata {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- columns: globalThis.Array.isArray(object?.columns)- ? object.columns.map((e: any) => ColumnMetadata.fromJSON(e))- : [],- indexes: globalThis.Array.isArray(object?.indexes)- ? object.indexes.map((e: any) => IndexMetadata.fromJSON(e))- : [],- engine: isSet(object.engine) ? globalThis.String(object.engine) : "",+ position: isSet(object.position) ? globalThis.Number(object.position) : 0,+ hasDefault: isSet(object.hasDefault) ? globalThis.Boolean(object.hasDefault) : false,+ defaultNull: isSet(object.defaultNull) ? globalThis.Boolean(object.defaultNull) : undefined,+ defaultString: isSet(object.defaultString) ? globalThis.String(object.defaultString) : undefined,+ defaultExpression: isSet(object.defaultExpression) ? globalThis.String(object.defaultExpression) : undefined,+ onUpdate: isSet(object.onUpdate) ? globalThis.String(object.onUpdate) : "",+ nullable: isSet(object.nullable) ? globalThis.Boolean(object.nullable) : false,+ type: isSet(object.type) ? globalThis.String(object.type) : "",+ characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",collation: isSet(object.collation) ? globalThis.String(object.collation) : "",- rowCount: isSet(object.rowCount) ? Long.fromValue(object.rowCount) : Long.ZERO,- dataSize: isSet(object.dataSize) ? Long.fromValue(object.dataSize) : Long.ZERO,- indexSize: isSet(object.indexSize) ? Long.fromValue(object.indexSize) : Long.ZERO,- dataFree: isSet(object.dataFree) ? Long.fromValue(object.dataFree) : Long.ZERO,- createOptions: isSet(object.createOptions) ? globalThis.String(object.createOptions) : "",comment: isSet(object.comment) ? globalThis.String(object.comment) : "",classification: isSet(object.classification) ? globalThis.String(object.classification) : "",userComment: isSet(object.userComment) ? globalThis.String(object.userComment) : "",- foreignKeys: globalThis.Array.isArray(object?.foreignKeys)- ? object.foreignKeys.map((e: any) => ForeignKeyMetadata.fromJSON(e))- : [],- partitions: globalThis.Array.isArray(object?.partitions)- ? object.partitions.map((e: any) => TablePartitionMetadata.fromJSON(e))- : [],+ effectiveMaskingLevel: isSet(object.effectiveMaskingLevel)+ ? maskingLevelFromJSON(object.effectiveMaskingLevel)+ : 0,};},- toJSON(message: TableMetadata): unknown {+ toJSON(message: ColumnMetadata): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}- if (message.columns?.length) {- obj.columns = message.columns.map((e) => ColumnMetadata.toJSON(e));+ if (message.position !== 0) {+ obj.position = Math.round(message.position);}- if (message.indexes?.length) {- obj.indexes = message.indexes.map((e) => IndexMetadata.toJSON(e));+ if (message.hasDefault === true) {+ obj.hasDefault = message.hasDefault;}- if (message.engine !== "") {- obj.engine = message.engine;+ if (message.defaultNull !== undefined) {+ obj.defaultNull = message.defaultNull;}- if (message.collation !== "") {- obj.collation = message.collation;+ if (message.defaultString !== undefined) {+ obj.defaultString = message.defaultString;}- if (!message.rowCount.isZero()) {- obj.rowCount = (message.rowCount || Long.ZERO).toString();+ if (message.defaultExpression !== undefined) {+ obj.defaultExpression = message.defaultExpression;}- if (!message.dataSize.isZero()) {- obj.dataSize = (message.dataSize || Long.ZERO).toString();+ if (message.onUpdate !== "") {+ obj.onUpdate = message.onUpdate;}- if (!message.indexSize.isZero()) {- obj.indexSize = (message.indexSize || Long.ZERO).toString();+ if (message.nullable === true) {+ obj.nullable = message.nullable;}- if (!message.dataFree.isZero()) {- obj.dataFree = (message.dataFree || Long.ZERO).toString();+ if (message.type !== "") {+ obj.type = message.type;}- if (message.createOptions !== "") {- obj.createOptions = message.createOptions;+ if (message.characterSet !== "") {+ obj.characterSet = message.characterSet;+ }+ if (message.collation !== "") {+ obj.collation = message.collation;}if (message.comment !== "") {obj.comment = message.comment;@@ -4094,78 +3965,61 @@ export const TableMetadata = {if (message.userComment !== "") {obj.userComment = message.userComment;}- if (message.foreignKeys?.length) {- obj.foreignKeys = message.foreignKeys.map((e) => ForeignKeyMetadata.toJSON(e));- }- if (message.partitions?.length) {- obj.partitions = message.partitions.map((e) => TablePartitionMetadata.toJSON(e));+ if (message.effectiveMaskingLevel !== 0) {+ obj.effectiveMaskingLevel = maskingLevelToJSON(message.effectiveMaskingLevel);}return obj;},- create(base?: DeepPartial<TableMetadata>): TableMetadata {- return TableMetadata.fromPartial(base ?? {});+ create(base?: DeepPartial<ColumnMetadata>): ColumnMetadata {+ return ColumnMetadata.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<TableMetadata>): TableMetadata {- const message = createBaseTableMetadata();+ fromPartial(object: DeepPartial<ColumnMetadata>): ColumnMetadata {+ const message = createBaseColumnMetadata();message.name = object.name ?? "";- message.columns = object.columns?.map((e) => ColumnMetadata.fromPartial(e)) || [];- message.indexes = object.indexes?.map((e) => IndexMetadata.fromPartial(e)) || [];- message.engine = object.engine ?? "";+ message.position = object.position ?? 0;+ message.hasDefault = object.hasDefault ?? false;+ message.defaultNull = object.defaultNull ?? undefined;+ message.defaultString = object.defaultString ?? undefined;+ message.defaultExpression = object.defaultExpression ?? undefined;+ message.onUpdate = object.onUpdate ?? "";+ message.nullable = object.nullable ?? false;+ message.type = object.type ?? "";+ message.characterSet = object.characterSet ?? "";message.collation = object.collation ?? "";- message.rowCount = (object.rowCount !== undefined && object.rowCount !== null)- ? Long.fromValue(object.rowCount)- : Long.ZERO;- message.dataSize = (object.dataSize !== undefined && object.dataSize !== null)- ? Long.fromValue(object.dataSize)- : Long.ZERO;- message.indexSize = (object.indexSize !== undefined && object.indexSize !== null)- ? Long.fromValue(object.indexSize)- : Long.ZERO;- message.dataFree = (object.dataFree !== undefined && object.dataFree !== null)- ? Long.fromValue(object.dataFree)- : Long.ZERO;- message.createOptions = object.createOptions ?? "";message.comment = object.comment ?? "";message.classification = object.classification ?? "";message.userComment = object.userComment ?? "";- message.foreignKeys = object.foreignKeys?.map((e) => ForeignKeyMetadata.fromPartial(e)) || [];- message.partitions = object.partitions?.map((e) => TablePartitionMetadata.fromPartial(e)) || [];+ message.effectiveMaskingLevel = object.effectiveMaskingLevel ?? 0;return message;},};-function createBaseTablePartitionMetadata(): TablePartitionMetadata {- return { name: "", type: 0, expression: "", value: "", useDefault: "", subpartitions: [] };+function createBaseViewMetadata(): ViewMetadata {+ return { name: "", definition: "", comment: "", dependentColumns: [] };}-export const TablePartitionMetadata = {- encode(message: TablePartitionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const ViewMetadata = {+ encode(message: ViewMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}- if (message.type !== 0) {- writer.uint32(16).int32(message.type);- }- if (message.expression !== "") {- writer.uint32(26).string(message.expression);- }- if (message.value !== "") {- writer.uint32(34).string(message.value);+ if (message.definition !== "") {+ writer.uint32(18).string(message.definition);}- if (message.useDefault !== "") {- writer.uint32(42).string(message.useDefault);+ if (message.comment !== "") {+ writer.uint32(26).string(message.comment);}- for (const v of message.subpartitions) {- TablePartitionMetadata.encode(v!, writer.uint32(50).fork()).ldelim();+ for (const v of message.dependentColumns) {+ DependentColumn.encode(v!, writer.uint32(34).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): TablePartitionMetadata {+ decode(input: _m0.Reader | Uint8Array, length?: number): ViewMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTablePartitionMetadata();+ const message = createBaseViewMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4177,39 +4031,25 @@ export const TablePartitionMetadata = {message.name = reader.string();continue;case 2:- if (tag !== 16) {+ if (tag !== 18) {break;}- message.type = reader.int32() as any;+ message.definition = reader.string();continue;case 3:if (tag !== 26) {break;}- message.expression = reader.string();+ message.comment = reader.string();continue;case 4:if (tag !== 34) {break;}- message.value = reader.string();- continue;- case 5:- if (tag !== 42) {- break;- }-- message.useDefault = reader.string();- continue;- case 6:- if (tag !== 50) {- break;- }-- message.subpartitions.push(TablePartitionMetadata.decode(reader, reader.uint32()));+ message.dependentColumns.push(DependentColumn.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4220,131 +4060,69 @@ export const TablePartitionMetadata = {return message;},- fromJSON(object: any): TablePartitionMetadata {+ fromJSON(object: any): ViewMetadata {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- type: isSet(object.type) ? tablePartitionMetadata_TypeFromJSON(object.type) : 0,- expression: isSet(object.expression) ? globalThis.String(object.expression) : "",- value: isSet(object.value) ? globalThis.String(object.value) : "",- useDefault: isSet(object.useDefault) ? globalThis.String(object.useDefault) : "",- subpartitions: globalThis.Array.isArray(object?.subpartitions)- ? object.subpartitions.map((e: any) => TablePartitionMetadata.fromJSON(e))+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",+ dependentColumns: globalThis.Array.isArray(object?.dependentColumns)+ ? object.dependentColumns.map((e: any) => DependentColumn.fromJSON(e)): [],};},- toJSON(message: TablePartitionMetadata): unknown {+ toJSON(message: ViewMetadata): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}- if (message.type !== 0) {- obj.type = tablePartitionMetadata_TypeToJSON(message.type);- }- if (message.expression !== "") {- obj.expression = message.expression;- }- if (message.value !== "") {- obj.value = message.value;+ if (message.definition !== "") {+ obj.definition = message.definition;}- if (message.useDefault !== "") {- obj.useDefault = message.useDefault;+ if (message.comment !== "") {+ obj.comment = message.comment;}- if (message.subpartitions?.length) {- obj.subpartitions = message.subpartitions.map((e) => TablePartitionMetadata.toJSON(e));+ if (message.dependentColumns?.length) {+ obj.dependentColumns = message.dependentColumns.map((e) => DependentColumn.toJSON(e));}return obj;},- create(base?: DeepPartial<TablePartitionMetadata>): TablePartitionMetadata {- return TablePartitionMetadata.fromPartial(base ?? {});+ create(base?: DeepPartial<ViewMetadata>): ViewMetadata {+ return ViewMetadata.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<TablePartitionMetadata>): TablePartitionMetadata {- const message = createBaseTablePartitionMetadata();+ fromPartial(object: DeepPartial<ViewMetadata>): ViewMetadata {+ const message = createBaseViewMetadata();message.name = object.name ?? "";- message.type = object.type ?? 0;- message.expression = object.expression ?? "";- message.value = object.value ?? "";- message.useDefault = object.useDefault ?? "";- message.subpartitions = object.subpartitions?.map((e) => TablePartitionMetadata.fromPartial(e)) || [];+ message.definition = object.definition ?? "";+ message.comment = object.comment ?? "";+ message.dependentColumns = object.dependentColumns?.map((e) => DependentColumn.fromPartial(e)) || [];return message;},};-function createBaseColumnMetadata(): ColumnMetadata {- return {- name: "",- position: 0,- hasDefault: false,- defaultNull: undefined,- defaultString: undefined,- defaultExpression: undefined,- onUpdate: "",- nullable: false,- type: "",- characterSet: "",- collation: "",- comment: "",- classification: "",- userComment: "",- effectiveMaskingLevel: 0,- };+function createBaseDependentColumn(): DependentColumn {+ return { schema: "", table: "", column: "" };}-export const ColumnMetadata = {- encode(message: ColumnMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.position !== 0) {- writer.uint32(16).int32(message.position);- }- if (message.hasDefault === true) {- writer.uint32(24).bool(message.hasDefault);- }- if (message.defaultNull !== undefined) {- writer.uint32(32).bool(message.defaultNull);- }- if (message.defaultString !== undefined) {- writer.uint32(42).string(message.defaultString);- }- if (message.defaultExpression !== undefined) {- writer.uint32(50).string(message.defaultExpression);- }- if (message.onUpdate !== "") {- writer.uint32(122).string(message.onUpdate);- }- if (message.nullable === true) {- writer.uint32(56).bool(message.nullable);- }- if (message.type !== "") {- writer.uint32(66).string(message.type);- }- if (message.characterSet !== "") {- writer.uint32(74).string(message.characterSet);- }- if (message.collation !== "") {- writer.uint32(82).string(message.collation);- }- if (message.comment !== "") {- writer.uint32(90).string(message.comment);- }- if (message.classification !== "") {- writer.uint32(98).string(message.classification);+export const DependentColumn = {+ encode(message: DependentColumn, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.schema !== "") {+ writer.uint32(10).string(message.schema);}- if (message.userComment !== "") {- writer.uint32(106).string(message.userComment);+ if (message.table !== "") {+ writer.uint32(18).string(message.table);}- if (message.effectiveMaskingLevel !== 0) {- writer.uint32(112).int32(message.effectiveMaskingLevel);+ if (message.column !== "") {+ writer.uint32(26).string(message.column);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ColumnMetadata {+ decode(input: _m0.Reader | Uint8Array, length?: number): DependentColumn {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseColumnMetadata();+ const message = createBaseDependentColumn();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4353,217 +4131,71 @@ export const ColumnMetadata = {break;}- message.name = reader.string();+ message.schema = reader.string();continue;case 2:- if (tag !== 16) {+ if (tag !== 18) {break;}- message.position = reader.int32();+ message.table = reader.string();continue;case 3:- if (tag !== 24) {+ if (tag !== 26) {break;}- message.hasDefault = reader.bool();+ message.column = reader.string();continue;- case 4:- if (tag !== 32) {- break;- }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },- message.defaultNull = reader.bool();- continue;- case 5:- if (tag !== 42) {- break;- }-- message.defaultString = reader.string();- continue;- case 6:- if (tag !== 50) {- break;- }-- message.defaultExpression = reader.string();- continue;- case 15:- if (tag !== 122) {- break;- }-- message.onUpdate = reader.string();- continue;- case 7:- if (tag !== 56) {- break;- }-- message.nullable = reader.bool();- continue;- case 8:- if (tag !== 66) {- break;- }-- message.type = reader.string();- continue;- case 9:- if (tag !== 74) {- break;- }-- message.characterSet = reader.string();- continue;- case 10:- if (tag !== 82) {- break;- }-- message.collation = reader.string();- continue;- case 11:- if (tag !== 90) {- break;- }-- message.comment = reader.string();- continue;- case 12:- if (tag !== 98) {- break;- }-- message.classification = reader.string();- continue;- case 13:- if (tag !== 106) {- break;- }-- message.userComment = reader.string();- continue;- case 14:- if (tag !== 112) {- break;- }-- message.effectiveMaskingLevel = reader.int32() as any;- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): ColumnMetadata {+ fromJSON(object: any): DependentColumn {return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- position: isSet(object.position) ? globalThis.Number(object.position) : 0,- hasDefault: isSet(object.hasDefault) ? globalThis.Boolean(object.hasDefault) : false,- defaultNull: isSet(object.defaultNull) ? globalThis.Boolean(object.defaultNull) : undefined,- defaultString: isSet(object.defaultString) ? globalThis.String(object.defaultString) : undefined,- defaultExpression: isSet(object.defaultExpression) ? globalThis.String(object.defaultExpression) : undefined,- onUpdate: isSet(object.onUpdate) ? globalThis.String(object.onUpdate) : "",- nullable: isSet(object.nullable) ? globalThis.Boolean(object.nullable) : false,- type: isSet(object.type) ? globalThis.String(object.type) : "",- characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",- collation: isSet(object.collation) ? globalThis.String(object.collation) : "",- comment: isSet(object.comment) ? globalThis.String(object.comment) : "",- classification: isSet(object.classification) ? globalThis.String(object.classification) : "",- userComment: isSet(object.userComment) ? globalThis.String(object.userComment) : "",- effectiveMaskingLevel: isSet(object.effectiveMaskingLevel)- ? maskingLevelFromJSON(object.effectiveMaskingLevel)- : 0,+ schema: isSet(object.schema) ? globalThis.String(object.schema) : "",+ table: isSet(object.table) ? globalThis.String(object.table) : "",+ column: isSet(object.column) ? globalThis.String(object.column) : "",};},- toJSON(message: ColumnMetadata): unknown {+ toJSON(message: DependentColumn): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.position !== 0) {- obj.position = Math.round(message.position);- }- if (message.hasDefault === true) {- obj.hasDefault = message.hasDefault;- }- if (message.defaultNull !== undefined) {- obj.defaultNull = message.defaultNull;- }- if (message.defaultString !== undefined) {- obj.defaultString = message.defaultString;- }- if (message.defaultExpression !== undefined) {- obj.defaultExpression = message.defaultExpression;- }- if (message.onUpdate !== "") {- obj.onUpdate = message.onUpdate;- }- if (message.nullable === true) {- obj.nullable = message.nullable;- }- if (message.type !== "") {- obj.type = message.type;- }- if (message.characterSet !== "") {- obj.characterSet = message.characterSet;- }- if (message.collation !== "") {- obj.collation = message.collation;- }- if (message.comment !== "") {- obj.comment = message.comment;- }- if (message.classification !== "") {- obj.classification = message.classification;+ if (message.schema !== "") {+ obj.schema = message.schema;}- if (message.userComment !== "") {- obj.userComment = message.userComment;+ if (message.table !== "") {+ obj.table = message.table;}- if (message.effectiveMaskingLevel !== 0) {- obj.effectiveMaskingLevel = maskingLevelToJSON(message.effectiveMaskingLevel);+ if (message.column !== "") {+ obj.column = message.column;}return obj;},- create(base?: DeepPartial<ColumnMetadata>): ColumnMetadata {- return ColumnMetadata.fromPartial(base ?? {});+ create(base?: DeepPartial<DependentColumn>): DependentColumn {+ return DependentColumn.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ColumnMetadata>): ColumnMetadata {- const message = createBaseColumnMetadata();- message.name = object.name ?? "";- message.position = object.position ?? 0;- message.hasDefault = object.hasDefault ?? false;- message.defaultNull = object.defaultNull ?? undefined;- message.defaultString = object.defaultString ?? undefined;- message.defaultExpression = object.defaultExpression ?? undefined;- message.onUpdate = object.onUpdate ?? "";- message.nullable = object.nullable ?? false;- message.type = object.type ?? "";- message.characterSet = object.characterSet ?? "";- message.collation = object.collation ?? "";- message.comment = object.comment ?? "";- message.classification = object.classification ?? "";- message.userComment = object.userComment ?? "";- message.effectiveMaskingLevel = object.effectiveMaskingLevel ?? 0;+ fromPartial(object: DeepPartial<DependentColumn>): DependentColumn {+ const message = createBaseDependentColumn();+ message.schema = object.schema ?? "";+ message.table = object.table ?? "";+ message.column = object.column ?? "";return message;},};-function createBaseViewMetadata(): ViewMetadata {+function createBaseMaterializedViewMetadata(): MaterializedViewMetadata {return { name: "", definition: "", comment: "", dependentColumns: [] };}-export const ViewMetadata = {- encode(message: ViewMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const MaterializedViewMetadata = {+ encode(message: MaterializedViewMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}@@ -4579,10 +4211,10 @@ export const ViewMetadata = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ViewMetadata {+ decode(input: _m0.Reader | Uint8Array, length?: number): MaterializedViewMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseViewMetadata();+ const message = createBaseMaterializedViewMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4623,7 +4255,7 @@ export const ViewMetadata = {return message;},- fromJSON(object: any): ViewMetadata {+ fromJSON(object: any): MaterializedViewMetadata {return {name: isSet(object.name) ? globalThis.String(object.name) : "",definition: isSet(object.definition) ? globalThis.String(object.definition) : "",@@ -4634,7 +4266,7 @@ export const ViewMetadata = {};},- toJSON(message: ViewMetadata): unknown {+ toJSON(message: MaterializedViewMetadata): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;@@ -4651,11 +4283,11 @@ export const ViewMetadata = {return obj;},- create(base?: DeepPartial<ViewMetadata>): ViewMetadata {- return ViewMetadata.fromPartial(base ?? {});+ create(base?: DeepPartial<MaterializedViewMetadata>): MaterializedViewMetadata {+ return MaterializedViewMetadata.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ViewMetadata>): ViewMetadata {- const message = createBaseViewMetadata();+ fromPartial(object: DeepPartial<MaterializedViewMetadata>): MaterializedViewMetadata {+ const message = createBaseMaterializedViewMetadata();message.name = object.name ?? "";message.definition = object.definition ?? "";message.comment = object.comment ?? "";@@ -4664,28 +4296,25 @@ export const ViewMetadata = {},};-function createBaseDependentColumn(): DependentColumn {- return { schema: "", table: "", column: "" };+function createBaseFunctionMetadata(): FunctionMetadata {+ return { name: "", definition: "" };}-export const DependentColumn = {- encode(message: DependentColumn, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.schema !== "") {- writer.uint32(10).string(message.schema);- }- if (message.table !== "") {- writer.uint32(18).string(message.table);+export const FunctionMetadata = {+ encode(message: FunctionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (message.column !== "") {- writer.uint32(26).string(message.column);+ if (message.definition !== "") {+ writer.uint32(18).string(message.definition);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): DependentColumn {+ decode(input: _m0.Reader | Uint8Array, length?: number): FunctionMetadata {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDependentColumn();+ const message = createBaseFunctionMetadata();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4694,21 +4323,14 @@ export const DependentColumn = {break;}- message.schema = reader.string();+ message.name = reader.string();continue;case 2:if (tag !== 18) {break;}- message.table = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.column = reader.string();+ message.definition = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4719,202 +4341,17 @@ export const DependentColumn = {return message;},- fromJSON(object: any): DependentColumn {+ fromJSON(object: any): FunctionMetadata {return {- schema: isSet(object.schema) ? globalThis.String(object.schema) : "",- table: isSet(object.table) ? globalThis.String(object.table) : "",- column: isSet(object.column) ? globalThis.String(object.column) : "",+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ definition: isSet(object.definition) ? globalThis.String(object.definition) : "",};},- toJSON(message: DependentColumn): unknown {+ toJSON(message: FunctionMetadata): unknown {const obj: any = {};- if (message.schema !== "") {- obj.schema = message.schema;- }- if (message.table !== "") {- obj.table = message.table;- }- if (message.column !== "") {- obj.column = message.column;- }- return obj;- },-- create(base?: DeepPartial<DependentColumn>): DependentColumn {- return DependentColumn.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<DependentColumn>): DependentColumn {- const message = createBaseDependentColumn();- message.schema = object.schema ?? "";- message.table = object.table ?? "";- message.column = object.column ?? "";- return message;- },-};--function createBaseMaterializedViewMetadata(): MaterializedViewMetadata {- return { name: "", definition: "", comment: "", dependentColumns: [] };-}--export const MaterializedViewMetadata = {- encode(message: MaterializedViewMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.definition !== "") {- writer.uint32(18).string(message.definition);- }- if (message.comment !== "") {- writer.uint32(26).string(message.comment);- }- for (const v of message.dependentColumns) {- DependentColumn.encode(v!, writer.uint32(34).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): MaterializedViewMetadata {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseMaterializedViewMetadata();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.definition = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.comment = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.dependentColumns.push(DependentColumn.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): MaterializedViewMetadata {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- definition: isSet(object.definition) ? globalThis.String(object.definition) : "",- comment: isSet(object.comment) ? globalThis.String(object.comment) : "",- dependentColumns: globalThis.Array.isArray(object?.dependentColumns)- ? object.dependentColumns.map((e: any) => DependentColumn.fromJSON(e))- : [],- };- },-- toJSON(message: MaterializedViewMetadata): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.definition !== "") {- obj.definition = message.definition;- }- if (message.comment !== "") {- obj.comment = message.comment;- }- if (message.dependentColumns?.length) {- obj.dependentColumns = message.dependentColumns.map((e) => DependentColumn.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<MaterializedViewMetadata>): MaterializedViewMetadata {- return MaterializedViewMetadata.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<MaterializedViewMetadata>): MaterializedViewMetadata {- const message = createBaseMaterializedViewMetadata();- message.name = object.name ?? "";- message.definition = object.definition ?? "";- message.comment = object.comment ?? "";- message.dependentColumns = object.dependentColumns?.map((e) => DependentColumn.fromPartial(e)) || [];- return message;- },-};--function createBaseFunctionMetadata(): FunctionMetadata {- return { name: "", definition: "" };-}--export const FunctionMetadata = {- encode(message: FunctionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.definition !== "") {- writer.uint32(18).string(message.definition);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): FunctionMetadata {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseFunctionMetadata();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.definition = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): FunctionMetadata {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- definition: isSet(object.definition) ? globalThis.String(object.definition) : "",- };- },-- toJSON(message: FunctionMetadata): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;+ if (message.name !== "") {+ obj.name = message.name;}if (message.definition !== "") {obj.definition = message.definition;@@ -6253,31 +5690,28 @@ export const DatabaseSchema = {},};-function createBaseBackupSetting(): BackupSetting {- return { name: "", backupRetainDuration: undefined, cronSchedule: "", hookUrl: "" };+function createBaseListSlowQueriesRequest(): ListSlowQueriesRequest {+ return { parent: "", filter: "", orderBy: "" };}-export const BackupSetting = {- encode(message: BackupSetting, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.backupRetainDuration !== undefined) {- Duration.encode(message.backupRetainDuration, writer.uint32(18).fork()).ldelim();+export const ListSlowQueriesRequest = {+ encode(message: ListSlowQueriesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);}- if (message.cronSchedule !== "") {- writer.uint32(26).string(message.cronSchedule);+ if (message.filter !== "") {+ writer.uint32(18).string(message.filter);}- if (message.hookUrl !== "") {- writer.uint32(34).string(message.hookUrl);+ if (message.orderBy !== "") {+ writer.uint32(26).string(message.orderBy);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): BackupSetting {+ decode(input: _m0.Reader | Uint8Array, length?: number): ListSlowQueriesRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBackupSetting();+ const message = createBaseListSlowQueriesRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -6286,28 +5720,21 @@ export const BackupSetting = {break;}- message.name = reader.string();+ message.parent = reader.string();continue;case 2:if (tag !== 18) {break;}- message.backupRetainDuration = Duration.decode(reader, reader.uint32());+ message.filter = reader.string();continue;case 3:if (tag !== 26) {break;}- message.cronSchedule = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.hookUrl = reader.string();+ message.orderBy = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -6318,83 +5745,56 @@ export const BackupSetting = {return message;},- fromJSON(object: any): BackupSetting {+ fromJSON(object: any): ListSlowQueriesRequest {return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- backupRetainDuration: isSet(object.backupRetainDuration)- ? Duration.fromJSON(object.backupRetainDuration)- : undefined,- cronSchedule: isSet(object.cronSchedule) ? globalThis.String(object.cronSchedule) : "",- hookUrl: isSet(object.hookUrl) ? globalThis.String(object.hookUrl) : "",+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ filter: isSet(object.filter) ? globalThis.String(object.filter) : "",+ orderBy: isSet(object.orderBy) ? globalThis.String(object.orderBy) : "",};},- toJSON(message: BackupSetting): unknown {+ toJSON(message: ListSlowQueriesRequest): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.backupRetainDuration !== undefined) {- obj.backupRetainDuration = Duration.toJSON(message.backupRetainDuration);+ if (message.parent !== "") {+ obj.parent = message.parent;}- if (message.cronSchedule !== "") {- obj.cronSchedule = message.cronSchedule;+ if (message.filter !== "") {+ obj.filter = message.filter;}- if (message.hookUrl !== "") {- obj.hookUrl = message.hookUrl;+ if (message.orderBy !== "") {+ obj.orderBy = message.orderBy;}return obj;},- create(base?: DeepPartial<BackupSetting>): BackupSetting {- return BackupSetting.fromPartial(base ?? {});+ create(base?: DeepPartial<ListSlowQueriesRequest>): ListSlowQueriesRequest {+ return ListSlowQueriesRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<BackupSetting>): BackupSetting {- const message = createBaseBackupSetting();- message.name = object.name ?? "";- message.backupRetainDuration = (object.backupRetainDuration !== undefined && object.backupRetainDuration !== null)- ? Duration.fromPartial(object.backupRetainDuration)- : undefined;- message.cronSchedule = object.cronSchedule ?? "";- message.hookUrl = object.hookUrl ?? "";+ fromPartial(object: DeepPartial<ListSlowQueriesRequest>): ListSlowQueriesRequest {+ const message = createBaseListSlowQueriesRequest();+ message.parent = object.parent ?? "";+ message.filter = object.filter ?? "";+ message.orderBy = object.orderBy ?? "";return message;},};-function createBaseBackup(): Backup {- return { name: "", createTime: undefined, updateTime: undefined, state: 0, backupType: 0, comment: "", uid: "" };+function createBaseListSlowQueriesResponse(): ListSlowQueriesResponse {+ return { slowQueryLogs: [] };}-export const Backup = {- encode(message: Backup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.createTime !== undefined) {- Timestamp.encode(toTimestamp(message.createTime), writer.uint32(18).fork()).ldelim();- }- if (message.updateTime !== undefined) {- Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(26).fork()).ldelim();- }- if (message.state !== 0) {- writer.uint32(32).int32(message.state);- }- if (message.backupType !== 0) {- writer.uint32(40).int32(message.backupType);- }- if (message.comment !== "") {- writer.uint32(50).string(message.comment);- }- if (message.uid !== "") {- writer.uint32(58).string(message.uid);+export const ListSlowQueriesResponse = {+ encode(message: ListSlowQueriesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.slowQueryLogs) {+ SlowQueryLog.encode(v!, writer.uint32(10).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Backup {+ decode(input: _m0.Reader | Uint8Array, length?: number): ListSlowQueriesResponse {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBackup();+ const message = createBaseListSlowQueriesResponse();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -6403,227 +5803,7 @@ export const Backup = {break;}- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 3:- if (tag !== 26) {- break;- }-- message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 4:- if (tag !== 32) {- break;- }-- message.state = reader.int32() as any;- continue;- case 5:- if (tag !== 40) {- break;- }-- message.backupType = reader.int32() as any;- continue;- case 6:- if (tag !== 50) {- break;- }-- message.comment = reader.string();- continue;- case 7:- if (tag !== 58) {- break;- }-- message.uid = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Backup {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,- state: isSet(object.state) ? backup_BackupStateFromJSON(object.state) : 0,- backupType: isSet(object.backupType) ? backup_BackupTypeFromJSON(object.backupType) : 0,- comment: isSet(object.comment) ? globalThis.String(object.comment) : "",- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",- };- },-- toJSON(message: Backup): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.createTime !== undefined) {- obj.createTime = message.createTime.toISOString();- }- if (message.updateTime !== undefined) {- obj.updateTime = message.updateTime.toISOString();- }- if (message.state !== 0) {- obj.state = backup_BackupStateToJSON(message.state);- }- if (message.backupType !== 0) {- obj.backupType = backup_BackupTypeToJSON(message.backupType);- }- if (message.comment !== "") {- obj.comment = message.comment;- }- if (message.uid !== "") {- obj.uid = message.uid;- }- return obj;- },-- create(base?: DeepPartial<Backup>): Backup {- return Backup.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Backup>): Backup {- const message = createBaseBackup();- message.name = object.name ?? "";- message.createTime = object.createTime ?? undefined;- message.updateTime = object.updateTime ?? undefined;- message.state = object.state ?? 0;- message.backupType = object.backupType ?? 0;- message.comment = object.comment ?? "";- message.uid = object.uid ?? "";- return message;- },-};--function createBaseListSlowQueriesRequest(): ListSlowQueriesRequest {- return { parent: "", filter: "", orderBy: "" };-}--export const ListSlowQueriesRequest = {- encode(message: ListSlowQueriesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.filter !== "") {- writer.uint32(18).string(message.filter);- }- if (message.orderBy !== "") {- writer.uint32(26).string(message.orderBy);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ListSlowQueriesRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListSlowQueriesRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.parent = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.filter = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.orderBy = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): ListSlowQueriesRequest {- return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- filter: isSet(object.filter) ? globalThis.String(object.filter) : "",- orderBy: isSet(object.orderBy) ? globalThis.String(object.orderBy) : "",- };- },-- toJSON(message: ListSlowQueriesRequest): unknown {- const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.filter !== "") {- obj.filter = message.filter;- }- if (message.orderBy !== "") {- obj.orderBy = message.orderBy;- }- return obj;- },-- create(base?: DeepPartial<ListSlowQueriesRequest>): ListSlowQueriesRequest {- return ListSlowQueriesRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ListSlowQueriesRequest>): ListSlowQueriesRequest {- const message = createBaseListSlowQueriesRequest();- message.parent = object.parent ?? "";- message.filter = object.filter ?? "";- message.orderBy = object.orderBy ?? "";- return message;- },-};--function createBaseListSlowQueriesResponse(): ListSlowQueriesResponse {- return { slowQueryLogs: [] };-}--export const ListSlowQueriesResponse = {- encode(message: ListSlowQueriesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.slowQueryLogs) {- SlowQueryLog.encode(v!, writer.uint32(10).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ListSlowQueriesResponse {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListSlowQueriesResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.slowQueryLogs.push(SlowQueryLog.decode(reader, reader.uint32()));+ message.slowQueryLogs.push(SlowQueryLog.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -8735,357 +7915,9 @@ export const DatabaseServiceDefinition = {8410: [new Uint8Array([4, 110, 97, 109, 101])],578365826: [new Uint8Array([- 36,- 18,- 34,- 47,- 118,- 49,- 47,- 123,- 110,- 97,- 109,- 101,- 61,- 105,- 110,- 115,- 116,- 97,- 110,- 99,- 101,- 115,- 47,- 42,- 47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 115,- 47,- 42,- 125,- ]),- ],- },- },- },- listDatabases: {- name: "ListDatabases",- requestType: ListDatabasesRequest,- requestStream: false,- responseType: ListDatabasesResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([0])],- 578365826: [- new Uint8Array([- 73,- 90,- 35,- 18,- 33,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- 47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 115,- 18,- 34,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 105,- 110,- 115,- 116,- 97,- 110,- 99,- 101,- 115,- 47,- 42,- 125,- 47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 115,- ]),- ],- },- },- },- /** Search for databases that the caller has the bb.databases.get permission on, and also satisfy the specified query. */- searchDatabases: {- name: "SearchDatabases",- requestType: SearchDatabasesRequest,- requestStream: false,- responseType: SearchDatabasesResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([0])],- 578365826: [- new Uint8Array([- 22,- 18,- 20,- 47,- 118,- 49,- 47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 115,- 58,- 115,- 101,- 97,- 114,- 99,- 104,- ]),- ],- },- },- },- updateDatabase: {- name: "UpdateDatabase",- requestType: UpdateDatabaseRequest,- requestStream: false,- responseType: Database,- responseStream: false,- options: {- _unknownFields: {- 8410: [- new Uint8Array([- 20,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 44,- 117,- 112,- 100,- 97,- 116,- 101,- 95,- 109,- 97,- 115,- 107,- ]),- ],- 578365826: [- new Uint8Array([- 55,- 58,- 8,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 50,- 43,- 47,- 118,- 49,- 47,- 123,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 46,- 110,- 97,- 109,- 101,- 61,- 105,- 110,- 115,- 116,- 97,- 110,- 99,- 101,- 115,- 47,- 42,- 47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 115,- 47,- 42,- 125,- ]),- ],- },- },- },- batchUpdateDatabases: {- name: "BatchUpdateDatabases",- requestType: BatchUpdateDatabasesRequest,- requestStream: false,- responseType: BatchUpdateDatabasesResponse,- responseStream: false,- options: {- _unknownFields: {- 578365826: [- new Uint8Array([- 51,- 58,- 1,- 42,- 34,- 46,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 105,- 110,- 115,- 116,- 97,- 110,- 99,- 101,- 115,- 47,- 42,- 125,- 47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 115,- 58,- 98,- 97,- 116,- 99,- 104,- 85,- 112,- 100,- 97,- 116,- 101,- ]),- ],- },- },- },- syncDatabase: {- name: "SyncDatabase",- requestType: SyncDatabaseRequest,- requestStream: false,- responseType: SyncDatabaseResponse,- responseStream: false,- options: {- _unknownFields: {- 578365826: [- new Uint8Array([- 44,- 58,- 1,- 42,+ 36,+ 18,34,- 39,47,118,49,@@ -9120,50 +7952,50 @@ export const DatabaseServiceDefinition = {47,42,125,- 58,- 115,- 121,- 110,- 99,]),],},},},- getDatabaseMetadata: {- name: "GetDatabaseMetadata",- requestType: GetDatabaseMetadataRequest,+ listDatabases: {+ name: "ListDatabases",+ requestType: ListDatabasesRequest,requestStream: false,- responseType: DatabaseMetadata,+ responseType: ListDatabasesResponse,responseStream: false,options: {_unknownFields: {+ 8410: [new Uint8Array([0])],578365826: [new Uint8Array([- 45,+ 73,+ 90,+ 35,18,- 43,+ 33,47,118,49,47,123,- 110,+ 112,97,- 109,+ 114,101,- 61,- 105,110,- 115,116,- 97,- 110,- 99,+ 61,+ 112,+ 114,+ 111,+ 106,101,+ 99,+ 116,115,47,42,+ 125,47,100,97,@@ -9174,36 +8006,66 @@ export const DatabaseServiceDefinition = {115,101,115,+ 18,+ 34,47,- 42,+ 118,+ 49,47,- 109,+ 123,+ 112,+ 97,+ 114,101,+ 110,+ 116,+ 61,+ 105,+ 110,+ 115,116,97,+ 110,+ 99,+ 101,+ 115,+ 47,+ 42,+ 125,+ 47,100,97,116,97,- 125,+ 98,+ 97,+ 115,+ 101,+ 115,]),],},},},- updateDatabaseMetadata: {- name: "UpdateDatabaseMetadata",- requestType: UpdateDatabaseMetadataRequest,+ /** Search for databases that the caller has the bb.databases.get permission on, and also satisfy the specified query. */+ searchDatabases: {+ name: "SearchDatabases",+ requestType: SearchDatabasesRequest,requestStream: false,- responseType: DatabaseMetadata,+ responseType: SearchDatabasesResponse,responseStream: false,options: {_unknownFields: {+ 8410: [new Uint8Array([0])],578365826: [new Uint8Array([- 82,- 58,- 17,+ 22,+ 18,+ 20,+ 47,+ 118,+ 49,+ 47,100,97,116,@@ -9212,22 +8074,30 @@ export const DatabaseServiceDefinition = {97,115,101,- 95,- 109,+ 115,+ 58,+ 115,101,- 116,- 97,- 100,- 97,- 116,97,- 50,- 61,- 47,- 118,- 49,- 47,- 123,+ 114,+ 99,+ 104,+ ]),+ ],+ },+ },+ },+ updateDatabase: {+ name: "UpdateDatabase",+ requestType: UpdateDatabaseRequest,+ requestStream: false,+ responseType: Database,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [+ new Uint8Array([+ 20,100,97,116,@@ -9236,33 +8106,25 @@ export const DatabaseServiceDefinition = {97,115,101,- 95,- 109,- 101,- 116,- 97,+ 44,+ 117,+ 112,100,97,116,- 97,- 46,- 110,- 97,- 109,101,- 61,- 105,- 110,- 115,- 116,+ 95,+ 109,97,- 110,- 99,- 101,115,- 47,- 42,- 47,+ 107,+ ]),+ ],+ 578365826: [+ new Uint8Array([+ 55,+ 58,+ 8,100,97,116,@@ -9271,42 +8133,22 @@ export const DatabaseServiceDefinition = {97,115,101,- 115,- 47,- 42,- 47,- 109,- 101,- 116,- 97,- 100,- 97,- 116,- 97,- 125,- ]),- ],- },- },- },- getDatabaseSchema: {- name: "GetDatabaseSchema",- requestType: GetDatabaseSchemaRequest,- requestStream: false,- responseType: DatabaseSchema,- responseStream: false,- options: {- _unknownFields: {- 578365826: [- new Uint8Array([+ 50,43,- 18,- 41,47,118,49,47,123,+ 100,+ 97,+ 116,+ 97,+ 98,+ 97,+ 115,+ 101,+ 46,110,97,109,@@ -9335,46 +8177,39 @@ export const DatabaseServiceDefinition = {115,47,42,- 47,- 115,- 99,- 104,- 101,- 109,- 97,125,]),],},},},- diffSchema: {- name: "DiffSchema",- requestType: DiffSchemaRequest,+ batchUpdateDatabases: {+ name: "BatchUpdateDatabases",+ requestType: BatchUpdateDatabasesRequest,requestStream: false,- responseType: DiffSchemaResponse,+ responseType: BatchUpdateDatabasesResponse,responseStream: false,options: {_unknownFields: {578365826: [new Uint8Array([- 117,+ 51,58,1,42,- 90,- 65,34,- 63,+ 46,47,118,49,47,123,- 110,+ 112,97,- 109,+ 114,101,+ 110,+ 116,61,105,110,@@ -9387,6 +8222,7 @@ export const DatabaseServiceDefinition = {115,47,42,+ 125,47,100,97,@@ -9397,40 +8233,39 @@ export const DatabaseServiceDefinition = {115,101,115,- 47,- 42,- 47,- 99,- 104,- 97,- 110,- 103,- 101,- 72,- 105,- 115,- 116,- 111,- 114,- 105,- 101,- 115,- 47,- 42,- 125,- 58,- 100,- 105,- 102,- 102,- 83,+ 58,+ 98,+ 97,+ 116,99,104,- 101,- 109,+ 85,+ 112,+ 100,97,+ 116,+ 101,+ ]),+ ],+ },+ },+ },+ syncDatabase: {+ name: "SyncDatabase",+ requestType: SyncDatabaseRequest,+ requestStream: false,+ responseType: SyncDatabaseResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 578365826: [+ new Uint8Array([+ 44,+ 58,+ 1,+ 42,34,- 45,+ 39,47,118,49,@@ -9466,34 +8301,28 @@ export const DatabaseServiceDefinition = {42,125,58,- 100,- 105,- 102,- 102,- 83,+ 115,+ 121,+ 110,99,- 104,- 101,- 109,- 97,]),],},},},- getBackupSetting: {- name: "GetBackupSetting",- requestType: GetBackupSettingRequest,+ getDatabaseMetadata: {+ name: "GetDatabaseMetadata",+ requestType: GetDatabaseMetadataRequest,requestStream: false,- responseType: BackupSetting,+ responseType: DatabaseMetadata,responseStream: false,options: {_unknownFields: {578365826: [new Uint8Array([- 50,+ 45,18,- 48,+ 43,47,118,49,@@ -9528,59 +8357,74 @@ export const DatabaseServiceDefinition = {47,42,47,- 98,- 97,- 99,- 107,- 117,- 112,- 83,+ 109,101,116,+ 97,+ 100,+ 97,116,- 105,- 110,- 103,+ 97,125,]),],},},},- updateBackupSetting: {- name: "UpdateBackupSetting",- requestType: UpdateBackupSettingRequest,+ updateDatabaseMetadata: {+ name: "UpdateDatabaseMetadata",+ requestType: UpdateDatabaseMetadataRequest,requestStream: false,- responseType: BackupSetting,+ responseType: DatabaseMetadata,responseStream: false,options: {_unknownFields: {578365826: [new Uint8Array([- 67,+ 82,58,- 7,+ 17,+ 100,+ 97,+ 116,+ 97,+ 98,+ 97,115,101,+ 95,+ 109,+ 101,116,+ 97,+ 100,+ 97,116,- 105,- 110,- 103,+ 97,50,- 56,+ 61,47,118,49,47,123,+ 100,+ 97,+ 116,+ 97,+ 98,+ 97,115,101,+ 95,+ 109,+ 101,116,+ 97,+ 100,+ 97,116,- 105,- 110,- 103,+ 97,46,110,97,@@ -9611,57 +8455,42 @@ export const DatabaseServiceDefinition = {47,42,47,- 98,- 97,- 99,- 107,- 117,- 112,- 83,+ 109,101,116,+ 97,+ 100,+ 97,116,- 105,- 110,- 103,+ 97,125,]),],},},},- createBackup: {- name: "CreateBackup",- requestType: CreateBackupRequest,+ getDatabaseSchema: {+ name: "GetDatabaseSchema",+ requestType: GetDatabaseSchemaRequest,requestStream: false,- responseType: Backup,+ responseType: DatabaseSchema,responseStream: false,options: {_unknownFields: {578365826: [new Uint8Array([- 54,- 58,- 6,- 98,- 97,- 99,- 107,- 117,- 112,- 34,- 44,+ 43,+ 18,+ 41,47,118,49,47,123,- 112,+ 110,97,- 114,+ 109,101,- 110,- 116,61,105,110,@@ -9686,45 +8515,46 @@ export const DatabaseServiceDefinition = {115,47,42,- 125,47,- 98,- 97,- 99,- 107,- 117,- 112,115,+ 99,+ 104,+ 101,+ 109,+ 97,+ 125,]),],},},},- listBackups: {- name: "ListBackups",- requestType: ListBackupsRequest,+ diffSchema: {+ name: "DiffSchema",+ requestType: DiffSchemaRequest,requestStream: false,- responseType: ListBackupsResponse,+ responseType: DiffSchemaResponse,responseStream: false,options: {_unknownFields: {- 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],578365826: [new Uint8Array([- 46,- 18,- 44,+ 117,+ 58,+ 1,+ 42,+ 90,+ 65,+ 34,+ 63,47,118,49,47,123,- 112,+ 110,97,- 114,+ 109,101,- 110,- 116,61,105,110,@@ -9749,15 +8579,83 @@ export const DatabaseServiceDefinition = {115,47,42,+ 47,+ 99,+ 104,+ 97,+ 110,+ 103,+ 101,+ 72,+ 105,+ 115,+ 116,+ 111,+ 114,+ 105,+ 101,+ 115,+ 47,+ 42,125,+ 58,+ 100,+ 105,+ 102,+ 102,+ 83,+ 99,+ 104,+ 101,+ 109,+ 97,+ 34,+ 45,47,- 98,+ 118,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,+ 101,+ 61,+ 105,+ 110,+ 115,+ 116,97,+ 110,99,- 107,- 117,- 112,+ 101,+ 115,+ 47,+ 42,+ 47,+ 100,+ 97,+ 116,+ 97,+ 98,+ 97,115,+ 101,+ 115,+ 47,+ 42,+ 125,+ 58,+ 100,+ 105,+ 102,+ 102,+ 83,+ 99,+ 104,+ 101,+ 109,+ 97,]),],},diff --git a/frontend/src/types/proto/v1/environment_service.ts b/frontend/src/types/proto/v1/environment_service.tsindex 150f5cd7c8..c8c9691b62 100644--- a/frontend/src/types/proto/v1/environment_service.ts+++ b/frontend/src/types/proto/v1/environment_service.ts@@ -143,20 +143,6 @@ export interface Environment {tier: EnvironmentTier;}-export interface UpdateEnvironmentBackupSettingRequest {- /** The environment backup setting to update. */- setting: EnvironmentBackupSetting | undefined;-}--export interface EnvironmentBackupSetting {- /**- * The name of the environment backup setting.- * Format: environments/{environment}/backupSetting- */- name: string;- enabled: boolean;-}-function createBaseGetEnvironmentRequest(): GetEnvironmentRequest {return { name: "" };}@@ -779,139 +765,6 @@ export const Environment = {},};-function createBaseUpdateEnvironmentBackupSettingRequest(): UpdateEnvironmentBackupSettingRequest {- return { setting: undefined };-}--export const UpdateEnvironmentBackupSettingRequest = {- encode(message: UpdateEnvironmentBackupSettingRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.setting !== undefined) {- EnvironmentBackupSetting.encode(message.setting, writer.uint32(10).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): UpdateEnvironmentBackupSettingRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdateEnvironmentBackupSettingRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.setting = EnvironmentBackupSetting.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): UpdateEnvironmentBackupSettingRequest {- return { setting: isSet(object.setting) ? EnvironmentBackupSetting.fromJSON(object.setting) : undefined };- },-- toJSON(message: UpdateEnvironmentBackupSettingRequest): unknown {- const obj: any = {};- if (message.setting !== undefined) {- obj.setting = EnvironmentBackupSetting.toJSON(message.setting);- }- return obj;- },-- create(base?: DeepPartial<UpdateEnvironmentBackupSettingRequest>): UpdateEnvironmentBackupSettingRequest {- return UpdateEnvironmentBackupSettingRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<UpdateEnvironmentBackupSettingRequest>): UpdateEnvironmentBackupSettingRequest {- const message = createBaseUpdateEnvironmentBackupSettingRequest();- message.setting = (object.setting !== undefined && object.setting !== null)- ? EnvironmentBackupSetting.fromPartial(object.setting)- : undefined;- return message;- },-};--function createBaseEnvironmentBackupSetting(): EnvironmentBackupSetting {- return { name: "", enabled: false };-}--export const EnvironmentBackupSetting = {- encode(message: EnvironmentBackupSetting, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.enabled === true) {- writer.uint32(16).bool(message.enabled);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): EnvironmentBackupSetting {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseEnvironmentBackupSetting();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 16) {- break;- }-- message.enabled = reader.bool();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): EnvironmentBackupSetting {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,- };- },-- toJSON(message: EnvironmentBackupSetting): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.enabled === true) {- obj.enabled = message.enabled;- }- return obj;- },-- create(base?: DeepPartial<EnvironmentBackupSetting>): EnvironmentBackupSetting {- return EnvironmentBackupSetting.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<EnvironmentBackupSetting>): EnvironmentBackupSetting {- const message = createBaseEnvironmentBackupSetting();- message.name = object.name ?? "";- message.enabled = object.enabled ?? false;- return message;- },-};-export type EnvironmentServiceDefinition = typeof EnvironmentServiceDefinition;export const EnvironmentServiceDefinition = {name: "EnvironmentService",@@ -1219,80 +1072,6 @@ export const EnvironmentServiceDefinition = {},},},- updateBackupSetting: {- name: "UpdateBackupSetting",- requestType: UpdateEnvironmentBackupSettingRequest,- requestStream: false,- responseType: EnvironmentBackupSetting,- responseStream: false,- options: {- _unknownFields: {- 578365826: [- new Uint8Array([- 58,- 58,- 7,- 115,- 101,- 116,- 116,- 105,- 110,- 103,- 50,- 47,- 47,- 118,- 49,- 47,- 123,- 115,- 101,- 116,- 116,- 105,- 110,- 103,- 46,- 110,- 97,- 109,- 101,- 61,- 101,- 110,- 118,- 105,- 114,- 111,- 110,- 109,- 101,- 110,- 116,- 115,- 47,- 42,- 47,- 98,- 97,- 99,- 107,- 117,- 112,- 83,- 101,- 116,- 116,- 105,- 110,- 103,- 125,- ]),- ],- },- },- },},} as const;diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.tsindex e7da7c9d69..de24aa3479 100644--- a/frontend/src/types/proto/v1/org_policy_service.ts+++ b/frontend/src/types/proto/v1/org_policy_service.ts@@ -1,7 +1,6 @@/* eslint-disable */import Long from "long";import _m0 from "protobufjs/minimal";-import { Duration } from "../google/protobuf/duration";import { Empty } from "../google/protobuf/empty";import { FieldMask } from "../google/protobuf/field_mask";import { Expr } from "../google/type/expr";@@ -14,7 +13,6 @@ export enum PolicyType {POLICY_TYPE_UNSPECIFIED = 0,WORKSPACE_IAM = 1,ROLLOUT_POLICY = 11,- BACKUP_PLAN = 3,SQL_REVIEW = 4,MASKING = 5,SLOW_QUERY = 7,@@ -36,9 +34,6 @@ export function policyTypeFromJSON(object: any): PolicyType {case 11:case "ROLLOUT_POLICY":return PolicyType.ROLLOUT_POLICY;- case 3:- case "BACKUP_PLAN":- return PolicyType.BACKUP_PLAN;case 4:case "SQL_REVIEW":return PolicyType.SQL_REVIEW;@@ -75,8 +70,6 @@ export function policyTypeToJSON(object: PolicyType): string {return "WORKSPACE_IAM";case PolicyType.ROLLOUT_POLICY:return "ROLLOUT_POLICY";- case PolicyType.BACKUP_PLAN:- return "BACKUP_PLAN";case PolicyType.SQL_REVIEW:return "SQL_REVIEW";case PolicyType.MASKING:@@ -154,51 +147,6 @@ export function policyResourceTypeToJSON(object: PolicyResourceType): string {}}-export enum BackupPlanSchedule {- SCHEDULE_UNSPECIFIED = 0,- UNSET = 1,- DAILY = 2,- WEEKLY = 3,- UNRECOGNIZED = -1,-}--export function backupPlanScheduleFromJSON(object: any): BackupPlanSchedule {- switch (object) {- case 0:- case "SCHEDULE_UNSPECIFIED":- return BackupPlanSchedule.SCHEDULE_UNSPECIFIED;- case 1:- case "UNSET":- return BackupPlanSchedule.UNSET;- case 2:- case "DAILY":- return BackupPlanSchedule.DAILY;- case 3:- case "WEEKLY":- return BackupPlanSchedule.WEEKLY;- case -1:- case "UNRECOGNIZED":- default:- return BackupPlanSchedule.UNRECOGNIZED;- }-}--export function backupPlanScheduleToJSON(object: BackupPlanSchedule): string {- switch (object) {- case BackupPlanSchedule.SCHEDULE_UNSPECIFIED:- return "SCHEDULE_UNSPECIFIED";- case BackupPlanSchedule.UNSET:- return "UNSET";- case BackupPlanSchedule.DAILY:- return "DAILY";- case BackupPlanSchedule.WEEKLY:- return "WEEKLY";- case BackupPlanSchedule.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}-export enum SQLReviewRuleLevel {LEVEL_UNSPECIFIED = 0,ERROR = 1,@@ -357,7 +305,6 @@ export interface Policy {type: PolicyType;workspaceIamPolicy?: IamPolicy | undefined;rolloutPolicy?: RolloutPolicy | undefined;- backupPlanPolicy?: BackupPlanPolicy | undefined;maskingPolicy?: MaskingPolicy | undefined;sqlReviewPolicy?: SQLReviewPolicy | undefined;slowQueryPolicy?: SlowQueryPolicy | undefined;@@ -383,11 +330,6 @@ export interface RolloutPolicy {issueRoles: string[];}-export interface BackupPlanPolicy {- schedule: BackupPlanSchedule;- retentionDuration: Duration | undefined;-}-export interface SlowQueryPolicy {active: boolean;}@@ -997,7 +939,6 @@ function createBasePolicy(): Policy {type: 0,workspaceIamPolicy: undefined,rolloutPolicy: undefined,- backupPlanPolicy: undefined,maskingPolicy: undefined,sqlReviewPolicy: undefined,slowQueryPolicy: undefined,@@ -1031,9 +972,6 @@ export const Policy = {if (message.rolloutPolicy !== undefined) {RolloutPolicy.encode(message.rolloutPolicy, writer.uint32(154).fork()).ldelim();}- if (message.backupPlanPolicy !== undefined) {- BackupPlanPolicy.encode(message.backupPlanPolicy, writer.uint32(66).fork()).ldelim();- }if (message.maskingPolicy !== undefined) {MaskingPolicy.encode(message.maskingPolicy, writer.uint32(74).fork()).ldelim();}@@ -1119,13 +1057,6 @@ export const Policy = {message.rolloutPolicy = RolloutPolicy.decode(reader, reader.uint32());continue;- case 8:- if (tag !== 66) {- break;- }-- message.backupPlanPolicy = BackupPlanPolicy.decode(reader, reader.uint32());- continue;case 9:if (tag !== 74) {break;@@ -1216,7 +1147,6 @@ export const Policy = {type: isSet(object.type) ? policyTypeFromJSON(object.type) : 0,workspaceIamPolicy: isSet(object.workspaceIamPolicy) ? IamPolicy.fromJSON(object.workspaceIamPolicy) : undefined,rolloutPolicy: isSet(object.rolloutPolicy) ? RolloutPolicy.fromJSON(object.rolloutPolicy) : undefined,- backupPlanPolicy: isSet(object.backupPlanPolicy) ? BackupPlanPolicy.fromJSON(object.backupPlanPolicy) : undefined,maskingPolicy: isSet(object.maskingPolicy) ? MaskingPolicy.fromJSON(object.maskingPolicy) : undefined,sqlReviewPolicy: isSet(object.sqlReviewPolicy) ? SQLReviewPolicy.fromJSON(object.sqlReviewPolicy) : undefined,slowQueryPolicy: isSet(object.slowQueryPolicy) ? SlowQueryPolicy.fromJSON(object.slowQueryPolicy) : undefined,@@ -1258,9 +1188,6 @@ export const Policy = {if (message.rolloutPolicy !== undefined) {obj.rolloutPolicy = RolloutPolicy.toJSON(message.rolloutPolicy);}- if (message.backupPlanPolicy !== undefined) {- obj.backupPlanPolicy = BackupPlanPolicy.toJSON(message.backupPlanPolicy);- }if (message.maskingPolicy !== undefined) {obj.maskingPolicy = MaskingPolicy.toJSON(message.maskingPolicy);}@@ -1311,9 +1238,6 @@ export const Policy = {message.rolloutPolicy = (object.rolloutPolicy !== undefined && object.rolloutPolicy !== null)? RolloutPolicy.fromPartial(object.rolloutPolicy): undefined;- message.backupPlanPolicy = (object.backupPlanPolicy !== undefined && object.backupPlanPolicy !== null)- ? BackupPlanPolicy.fromPartial(object.backupPlanPolicy)- : undefined;message.maskingPolicy = (object.maskingPolicy !== undefined && object.maskingPolicy !== null)? MaskingPolicy.fromPartial(object.maskingPolicy): undefined;@@ -1456,82 +1380,6 @@ export const RolloutPolicy = {},};-function createBaseBackupPlanPolicy(): BackupPlanPolicy {- return { schedule: 0, retentionDuration: undefined };-}--export const BackupPlanPolicy = {- encode(message: BackupPlanPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.schedule !== 0) {- writer.uint32(8).int32(message.schedule);- }- if (message.retentionDuration !== undefined) {- Duration.encode(message.retentionDuration, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): BackupPlanPolicy {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBackupPlanPolicy();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.schedule = reader.int32() as any;- continue;- case 2:- if (tag !== 18) {- break;- }-- message.retentionDuration = Duration.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): BackupPlanPolicy {- return {- schedule: isSet(object.schedule) ? backupPlanScheduleFromJSON(object.schedule) : 0,- retentionDuration: isSet(object.retentionDuration) ? Duration.fromJSON(object.retentionDuration) : undefined,- };- },-- toJSON(message: BackupPlanPolicy): unknown {- const obj: any = {};- if (message.schedule !== 0) {- obj.schedule = backupPlanScheduleToJSON(message.schedule);- }- if (message.retentionDuration !== undefined) {- obj.retentionDuration = Duration.toJSON(message.retentionDuration);- }- return obj;- },-- create(base?: DeepPartial<BackupPlanPolicy>): BackupPlanPolicy {- return BackupPlanPolicy.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<BackupPlanPolicy>): BackupPlanPolicy {- const message = createBaseBackupPlanPolicy();- message.schedule = object.schedule ?? 0;- message.retentionDuration = (object.retentionDuration !== undefined && object.retentionDuration !== null)- ? Duration.fromPartial(object.retentionDuration)- : undefined;- return message;- },-};-function createBaseSlowQueryPolicy(): SlowQueryPolicy {return { active: false };}diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.tsindex 10f0e65261..b1d63f0727 100644--- a/frontend/src/types/proto/v1/project_service.ts+++ b/frontend/src/types/proto/v1/project_service.ts@@ -777,11 +777,6 @@ export enum Activity_Type {* TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.*/TYPE_SQL_EDITOR_QUERY = 19,- /**- * TYPE_DATABASE_RECOVERY_PITR_DONE - Database related activity types.- * TYPE_DATABASE_RECOVERY_PITR_DONE represents the database recovery to a point in time is done.- */- TYPE_DATABASE_RECOVERY_PITR_DONE = 20,UNRECOGNIZED = -1,}@@ -856,9 +851,6 @@ export function activity_TypeFromJSON(object: any): Activity_Type {case 19:case "TYPE_SQL_EDITOR_QUERY":return Activity_Type.TYPE_SQL_EDITOR_QUERY;- case 20:- case "TYPE_DATABASE_RECOVERY_PITR_DONE":- return Activity_Type.TYPE_DATABASE_RECOVERY_PITR_DONE;case -1:case "UNRECOGNIZED":default:@@ -914,8 +906,6 @@ export function activity_TypeToJSON(object: Activity_Type): string {return "TYPE_PROJECT_MEMBER_DELETE";case Activity_Type.TYPE_SQL_EDITOR_QUERY:return "TYPE_SQL_EDITOR_QUERY";- case Activity_Type.TYPE_DATABASE_RECOVERY_PITR_DONE:- return "TYPE_DATABASE_RECOVERY_PITR_DONE";case Activity_Type.UNRECOGNIZED:default:return "UNRECOGNIZED";diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.tsindex a336cd46bf..3149e6e161 100644--- a/frontend/src/types/proto/v1/rollout_service.ts+++ b/frontend/src/types/proto/v1/rollout_service.ts@@ -113,7 +113,6 @@ export interface Plan_Spec {dependsOnSpecs: string[];createDatabaseConfig?: Plan_CreateDatabaseConfig | undefined;changeDatabaseConfig?: Plan_ChangeDatabaseConfig | undefined;- restoreDatabaseConfig?: Plan_RestoreDatabaseConfig | undefined;exportDataConfig?: Plan_ExportDataConfig | undefined;}@@ -138,11 +137,6 @@ export interface Plan_CreateDatabaseConfig {cluster: string;/** owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". */owner: string;- /**- * backup is the resource name of the backup.- * Format: instances/{instance}/databases/{database}/backups/{backup-name}- */- backup: string;/*** The environment resource.* Format: environments/prod where prod is the environment resource ID.@@ -200,8 +194,6 @@ export enum Plan_ChangeDatabaseConfig_Type {MIGRATE_SDL = 3,/** MIGRATE_GHOST - Used for DDL changes using gh-ost. */MIGRATE_GHOST = 4,- /** BRANCH - Used when restoring from a backup (the restored database branched from the original backup). */- BRANCH = 5,/** DATA - Used for DML change. */DATA = 6,UNRECOGNIZED = -1,@@ -224,9 +216,6 @@ export function plan_ChangeDatabaseConfig_TypeFromJSON(object: any): Plan_Changecase 4:case "MIGRATE_GHOST":return Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST;- case 5:- case "BRANCH":- return Plan_ChangeDatabaseConfig_Type.BRANCH;case 6:case "DATA":return Plan_ChangeDatabaseConfig_Type.DATA;@@ -249,8 +238,6 @@ export function plan_ChangeDatabaseConfig_TypeToJSON(object: Plan_ChangeDatabasereturn "MIGRATE_SDL";case Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST:return "MIGRATE_GHOST";- case Plan_ChangeDatabaseConfig_Type.BRANCH:- return "BRANCH";case Plan_ChangeDatabaseConfig_Type.DATA:return "DATA";case Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED:@@ -285,21 +272,6 @@ export interface Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {database: string;}-export interface Plan_RestoreDatabaseConfig {- /**- * The resource name of the target to restore.- * Format: instances/{instance}/databases/{database}- */- target: string;- /** create_database_config is present if the user wants to restore to a new database. */- createDatabaseConfig?: Plan_CreateDatabaseConfig | undefined;- backup?:- | string- | undefined;- /** After the PITR operations, the database will be recovered to the state at this time. */- pointInTime?: Date | undefined;-}-export interface Plan_ExportDataConfig {/*** The resource name of the target.@@ -444,7 +416,6 @@ export enum PlanCheckRun_Type {DATABASE_STATEMENT_SUMMARY_REPORT = 5,DATABASE_CONNECT = 6,DATABASE_GHOST_SYNC = 7,- DATABASE_PITR_MYSQL = 8,UNRECOGNIZED = -1,}@@ -474,9 +445,6 @@ export function planCheckRun_TypeFromJSON(object: any): PlanCheckRun_Type {case 7:case "DATABASE_GHOST_SYNC":return PlanCheckRun_Type.DATABASE_GHOST_SYNC;- case 8:- case "DATABASE_PITR_MYSQL":- return PlanCheckRun_Type.DATABASE_PITR_MYSQL;case -1:case "UNRECOGNIZED":default:@@ -502,8 +470,6 @@ export function planCheckRun_TypeToJSON(object: PlanCheckRun_Type): string {return "DATABASE_CONNECT";case PlanCheckRun_Type.DATABASE_GHOST_SYNC:return "DATABASE_GHOST_SYNC";- case PlanCheckRun_Type.DATABASE_PITR_MYSQL:- return "DATABASE_PITR_MYSQL";case PlanCheckRun_Type.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -748,8 +714,6 @@ export interface Task {databaseSchemaBaseline?: Task_DatabaseSchemaBaseline | undefined;databaseSchemaUpdate?: Task_DatabaseSchemaUpdate | undefined;databaseDataUpdate?: Task_DatabaseDataUpdate | undefined;- databaseBackup?: Task_DatabaseBackup | undefined;- databaseRestoreRestore?: Task_DatabaseRestoreRestore | undefined;databaseDataExport?: Task_DatabaseDataExport | undefined;}@@ -839,12 +803,6 @@ export enum Task_Type {DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER = 7,/** DATABASE_DATA_UPDATE - use payload DatabaseDataUpdate */DATABASE_DATA_UPDATE = 8,- /** DATABASE_BACKUP - use payload DatabaseBackup */- DATABASE_BACKUP = 9,- /** DATABASE_RESTORE_RESTORE - use payload DatabaseRestoreRestore */- DATABASE_RESTORE_RESTORE = 10,- /** DATABASE_RESTORE_CUTOVER - use payload nil */- DATABASE_RESTORE_CUTOVER = 11,/** DATABASE_DATA_EXPORT - use payload DatabaseDataExport */DATABASE_DATA_EXPORT = 12,UNRECOGNIZED = -1,@@ -879,15 +837,6 @@ export function task_TypeFromJSON(object: any): Task_Type {case 8:case "DATABASE_DATA_UPDATE":return Task_Type.DATABASE_DATA_UPDATE;- case 9:- case "DATABASE_BACKUP":- return Task_Type.DATABASE_BACKUP;- case 10:- case "DATABASE_RESTORE_RESTORE":- return Task_Type.DATABASE_RESTORE_RESTORE;- case 11:- case "DATABASE_RESTORE_CUTOVER":- return Task_Type.DATABASE_RESTORE_CUTOVER;case 12:case "DATABASE_DATA_EXPORT":return Task_Type.DATABASE_DATA_EXPORT;@@ -918,12 +867,6 @@ export function task_TypeToJSON(object: Task_Type): string {return "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER";case Task_Type.DATABASE_DATA_UPDATE:return "DATABASE_DATA_UPDATE";- case Task_Type.DATABASE_BACKUP:- return "DATABASE_BACKUP";- case Task_Type.DATABASE_RESTORE_RESTORE:- return "DATABASE_RESTORE_RESTORE";- case Task_Type.DATABASE_RESTORE_CUTOVER:- return "DATABASE_RESTORE_CUTOVER";case Task_Type.DATABASE_DATA_EXPORT:return "DATABASE_DATA_EXPORT";case Task_Type.UNRECOGNIZED:@@ -1043,34 +986,6 @@ export function task_DatabaseDataUpdate_RollbackSqlStatusToJSON(}}-export interface Task_DatabaseBackup {- /**- * The resource name of the backup.- * Format: instances/{instance}/databases/{database}/backups/{backup-name}- */- backup: string;-}--export interface Task_DatabaseRestoreRestore {- /**- * Target is only used when doing restore to a new database now.- * It is empty for the case of in-place restore.- * Target {instance} must be within the same environment as the instance of the original database.- * {database} is the target database name.- * Format: instances/{instance}/databases/database- */- target: string;- /**- * Only used when doing restore full backup only.- * Format: instances/{instance}/databases/{database}/backups/{backup-name}- */- backup?:- | string- | undefined;- /** After the PITR operations, the database will be recovered to the state at this time. */- pointInTime?: Date | undefined;-}-export interface Task_DatabaseDataExport {/*** The resource name of the target.@@ -1821,7 +1736,6 @@ function createBasePlan_Spec(): Plan_Spec {dependsOnSpecs: [],createDatabaseConfig: undefined,changeDatabaseConfig: undefined,- restoreDatabaseConfig: undefined,exportDataConfig: undefined,};}@@ -1843,9 +1757,6 @@ export const Plan_Spec = {if (message.changeDatabaseConfig !== undefined) {Plan_ChangeDatabaseConfig.encode(message.changeDatabaseConfig, writer.uint32(18).fork()).ldelim();}- if (message.restoreDatabaseConfig !== undefined) {- Plan_RestoreDatabaseConfig.encode(message.restoreDatabaseConfig, writer.uint32(26).fork()).ldelim();- }if (message.exportDataConfig !== undefined) {Plan_ExportDataConfig.encode(message.exportDataConfig, writer.uint32(58).fork()).ldelim();}@@ -1894,13 +1805,6 @@ export const Plan_Spec = {message.changeDatabaseConfig = Plan_ChangeDatabaseConfig.decode(reader, reader.uint32());continue;- case 3:- if (tag !== 26) {- break;- }-- message.restoreDatabaseConfig = Plan_RestoreDatabaseConfig.decode(reader, reader.uint32());- continue;case 7:if (tag !== 58) {break;@@ -1932,9 +1836,6 @@ export const Plan_Spec = {changeDatabaseConfig: isSet(object.changeDatabaseConfig)? Plan_ChangeDatabaseConfig.fromJSON(object.changeDatabaseConfig): undefined,- restoreDatabaseConfig: isSet(object.restoreDatabaseConfig)- ? Plan_RestoreDatabaseConfig.fromJSON(object.restoreDatabaseConfig)- : undefined,exportDataConfig: isSet(object.exportDataConfig)? Plan_ExportDataConfig.fromJSON(object.exportDataConfig): undefined,@@ -1958,9 +1859,6 @@ export const Plan_Spec = {if (message.changeDatabaseConfig !== undefined) {obj.changeDatabaseConfig = Plan_ChangeDatabaseConfig.toJSON(message.changeDatabaseConfig);}- if (message.restoreDatabaseConfig !== undefined) {- obj.restoreDatabaseConfig = Plan_RestoreDatabaseConfig.toJSON(message.restoreDatabaseConfig);- }if (message.exportDataConfig !== undefined) {obj.exportDataConfig = Plan_ExportDataConfig.toJSON(message.exportDataConfig);}@@ -1981,10 +1879,6 @@ export const Plan_Spec = {message.changeDatabaseConfig = (object.changeDatabaseConfig !== undefined && object.changeDatabaseConfig !== null)? Plan_ChangeDatabaseConfig.fromPartial(object.changeDatabaseConfig): undefined;- message.restoreDatabaseConfig =- (object.restoreDatabaseConfig !== undefined && object.restoreDatabaseConfig !== null)- ? Plan_RestoreDatabaseConfig.fromPartial(object.restoreDatabaseConfig)- : undefined;message.exportDataConfig = (object.exportDataConfig !== undefined && object.exportDataConfig !== null)? Plan_ExportDataConfig.fromPartial(object.exportDataConfig): undefined;@@ -2001,7 +1895,6 @@ function createBasePlan_CreateDatabaseConfig(): Plan_CreateDatabaseConfig {collation: "",cluster: "",owner: "",- backup: "",environment: "",labels: {},};@@ -2030,9 +1923,6 @@ export const Plan_CreateDatabaseConfig = {if (message.owner !== "") {writer.uint32(58).string(message.owner);}- if (message.backup !== "") {- writer.uint32(66).string(message.backup);- }if (message.environment !== "") {writer.uint32(74).string(message.environment);}@@ -2098,13 +1988,6 @@ export const Plan_CreateDatabaseConfig = {message.owner = reader.string();continue;- case 8:- if (tag !== 66) {- break;- }-- message.backup = reader.string();- continue;case 9:if (tag !== 74) {break;@@ -2140,7 +2023,6 @@ export const Plan_CreateDatabaseConfig = {collation: isSet(object.collation) ? globalThis.String(object.collation) : "",cluster: isSet(object.cluster) ? globalThis.String(object.cluster) : "",owner: isSet(object.owner) ? globalThis.String(object.owner) : "",- backup: isSet(object.backup) ? globalThis.String(object.backup) : "",environment: isSet(object.environment) ? globalThis.String(object.environment) : "",labels: isObject(object.labels)? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {@@ -2174,9 +2056,6 @@ export const Plan_CreateDatabaseConfig = {if (message.owner !== "") {obj.owner = message.owner;}- if (message.backup !== "") {- obj.backup = message.backup;- }if (message.environment !== "") {obj.environment = message.environment;}@@ -2204,7 +2083,6 @@ export const Plan_CreateDatabaseConfig = {message.collation = object.collation ?? "";message.cluster = object.cluster ?? "";message.owner = object.owner ?? "";- message.backup = object.backup ?? "";message.environment = object.environment ?? "";message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {if (value !== undefined) {@@ -2712,114 +2590,6 @@ export const Plan_ChangeDatabaseConfig_PreUpdateBackupDetail = {},};-function createBasePlan_RestoreDatabaseConfig(): Plan_RestoreDatabaseConfig {- return { target: "", createDatabaseConfig: undefined, backup: undefined, pointInTime: undefined };-}--export const Plan_RestoreDatabaseConfig = {- encode(message: Plan_RestoreDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.target !== "") {- writer.uint32(10).string(message.target);- }- if (message.createDatabaseConfig !== undefined) {- Plan_CreateDatabaseConfig.encode(message.createDatabaseConfig, writer.uint32(18).fork()).ldelim();- }- if (message.backup !== undefined) {- writer.uint32(26).string(message.backup);- }- if (message.pointInTime !== undefined) {- Timestamp.encode(toTimestamp(message.pointInTime), writer.uint32(34).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_RestoreDatabaseConfig {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_RestoreDatabaseConfig();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.target = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.createDatabaseConfig = Plan_CreateDatabaseConfig.decode(reader, reader.uint32());- continue;- case 3:- if (tag !== 26) {- break;- }-- message.backup = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.pointInTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Plan_RestoreDatabaseConfig {- return {- target: isSet(object.target) ? globalThis.String(object.target) : "",- createDatabaseConfig: isSet(object.createDatabaseConfig)- ? Plan_CreateDatabaseConfig.fromJSON(object.createDatabaseConfig)- : undefined,- backup: isSet(object.backup) ? globalThis.String(object.backup) : undefined,- pointInTime: isSet(object.pointInTime) ? fromJsonTimestamp(object.pointInTime) : undefined,- };- },-- toJSON(message: Plan_RestoreDatabaseConfig): unknown {- const obj: any = {};- if (message.target !== "") {- obj.target = message.target;- }- if (message.createDatabaseConfig !== undefined) {- obj.createDatabaseConfig = Plan_CreateDatabaseConfig.toJSON(message.createDatabaseConfig);- }- if (message.backup !== undefined) {- obj.backup = message.backup;- }- if (message.pointInTime !== undefined) {- obj.pointInTime = message.pointInTime.toISOString();- }- return obj;- },-- create(base?: DeepPartial<Plan_RestoreDatabaseConfig>): Plan_RestoreDatabaseConfig {- return Plan_RestoreDatabaseConfig.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Plan_RestoreDatabaseConfig>): Plan_RestoreDatabaseConfig {- const message = createBasePlan_RestoreDatabaseConfig();- message.target = object.target ?? "";- message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)- ? Plan_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig)- : undefined;- message.backup = object.backup ?? undefined;- message.pointInTime = object.pointInTime ?? undefined;- return message;- },-};-function createBasePlan_ExportDataConfig(): Plan_ExportDataConfig {return { target: "", sheet: "", maxRows: 0, format: 0, password: undefined };}@@ -4768,8 +4538,6 @@ function createBaseTask(): Task {databaseSchemaBaseline: undefined,databaseSchemaUpdate: undefined,databaseDataUpdate: undefined,- databaseBackup: undefined,- databaseRestoreRestore: undefined,databaseDataExport: undefined,};}@@ -4815,12 +4583,6 @@ export const Task = {if (message.databaseDataUpdate !== undefined) {Task_DatabaseDataUpdate.encode(message.databaseDataUpdate, writer.uint32(98).fork()).ldelim();}- if (message.databaseBackup !== undefined) {- Task_DatabaseBackup.encode(message.databaseBackup, writer.uint32(106).fork()).ldelim();- }- if (message.databaseRestoreRestore !== undefined) {- Task_DatabaseRestoreRestore.encode(message.databaseRestoreRestore, writer.uint32(114).fork()).ldelim();- }if (message.databaseDataExport !== undefined) {Task_DatabaseDataExport.encode(message.databaseDataExport, writer.uint32(130).fork()).ldelim();}@@ -4925,20 +4687,6 @@ export const Task = {message.databaseDataUpdate = Task_DatabaseDataUpdate.decode(reader, reader.uint32());continue;- case 13:- if (tag !== 106) {- break;- }-- message.databaseBackup = Task_DatabaseBackup.decode(reader, reader.uint32());- continue;- case 14:- if (tag !== 114) {- break;- }-- message.databaseRestoreRestore = Task_DatabaseRestoreRestore.decode(reader, reader.uint32());- continue;case 16:if (tag !== 130) {break;@@ -4978,10 +4726,6 @@ export const Task = {databaseDataUpdate: isSet(object.databaseDataUpdate)? Task_DatabaseDataUpdate.fromJSON(object.databaseDataUpdate): undefined,- databaseBackup: isSet(object.databaseBackup) ? Task_DatabaseBackup.fromJSON(object.databaseBackup) : undefined,- databaseRestoreRestore: isSet(object.databaseRestoreRestore)- ? Task_DatabaseRestoreRestore.fromJSON(object.databaseRestoreRestore)- : undefined,databaseDataExport: isSet(object.databaseDataExport)? Task_DatabaseDataExport.fromJSON(object.databaseDataExport): undefined,@@ -5029,12 +4773,6 @@ export const Task = {if (message.databaseDataUpdate !== undefined) {obj.databaseDataUpdate = Task_DatabaseDataUpdate.toJSON(message.databaseDataUpdate);}- if (message.databaseBackup !== undefined) {- obj.databaseBackup = Task_DatabaseBackup.toJSON(message.databaseBackup);- }- if (message.databaseRestoreRestore !== undefined) {- obj.databaseRestoreRestore = Task_DatabaseRestoreRestore.toJSON(message.databaseRestoreRestore);- }if (message.databaseDataExport !== undefined) {obj.databaseDataExport = Task_DatabaseDataExport.toJSON(message.databaseDataExport);}@@ -5068,13 +4806,6 @@ export const Task = {message.databaseDataUpdate = (object.databaseDataUpdate !== undefined && object.databaseDataUpdate !== null)? Task_DatabaseDataUpdate.fromPartial(object.databaseDataUpdate): undefined;- message.databaseBackup = (object.databaseBackup !== undefined && object.databaseBackup !== null)- ? Task_DatabaseBackup.fromPartial(object.databaseBackup)- : undefined;- message.databaseRestoreRestore =- (object.databaseRestoreRestore !== undefined && object.databaseRestoreRestore !== null)- ? Task_DatabaseRestoreRestore.fromPartial(object.databaseRestoreRestore)- : undefined;message.databaseDataExport = (object.databaseDataExport !== undefined && object.databaseDataExport !== null)? Task_DatabaseDataExport.fromPartial(object.databaseDataExport): undefined;@@ -5654,152 +5385,6 @@ export const Task_DatabaseDataUpdate = {},};-function createBaseTask_DatabaseBackup(): Task_DatabaseBackup {- return { backup: "" };-}--export const Task_DatabaseBackup = {- encode(message: Task_DatabaseBackup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.backup !== "") {- writer.uint32(10).string(message.backup);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseBackup {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask_DatabaseBackup();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.backup = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task_DatabaseBackup {- return { backup: isSet(object.backup) ? globalThis.String(object.backup) : "" };- },-- toJSON(message: Task_DatabaseBackup): unknown {- const obj: any = {};- if (message.backup !== "") {- obj.backup = message.backup;- }- return obj;- },-- create(base?: DeepPartial<Task_DatabaseBackup>): Task_DatabaseBackup {- return Task_DatabaseBackup.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task_DatabaseBackup>): Task_DatabaseBackup {- const message = createBaseTask_DatabaseBackup();- message.backup = object.backup ?? "";- return message;- },-};--function createBaseTask_DatabaseRestoreRestore(): Task_DatabaseRestoreRestore {- return { target: "", backup: undefined, pointInTime: undefined };-}--export const Task_DatabaseRestoreRestore = {- encode(message: Task_DatabaseRestoreRestore, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.target !== "") {- writer.uint32(10).string(message.target);- }- if (message.backup !== undefined) {- writer.uint32(18).string(message.backup);- }- if (message.pointInTime !== undefined) {- Timestamp.encode(toTimestamp(message.pointInTime), writer.uint32(26).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseRestoreRestore {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask_DatabaseRestoreRestore();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.target = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.backup = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.pointInTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task_DatabaseRestoreRestore {- return {- target: isSet(object.target) ? globalThis.String(object.target) : "",- backup: isSet(object.backup) ? globalThis.String(object.backup) : undefined,- pointInTime: isSet(object.pointInTime) ? fromJsonTimestamp(object.pointInTime) : undefined,- };- },-- toJSON(message: Task_DatabaseRestoreRestore): unknown {- const obj: any = {};- if (message.target !== "") {- obj.target = message.target;- }- if (message.backup !== undefined) {- obj.backup = message.backup;- }- if (message.pointInTime !== undefined) {- obj.pointInTime = message.pointInTime.toISOString();- }- return obj;- },-- create(base?: DeepPartial<Task_DatabaseRestoreRestore>): Task_DatabaseRestoreRestore {- return Task_DatabaseRestoreRestore.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task_DatabaseRestoreRestore>): Task_DatabaseRestoreRestore {- const message = createBaseTask_DatabaseRestoreRestore();- message.target = object.target ?? "";- message.backup = object.backup ?? undefined;- message.pointInTime = object.pointInTime ?? undefined;- return message;- },-};-function createBaseTask_DatabaseDataExport(): Task_DatabaseDataExport {return { target: "", sheet: "", maxRows: 0, format: 0, password: undefined };}diff --git a/frontend/src/types/v1/issue/rollout.ts b/frontend/src/types/v1/issue/rollout.tsindex c2e7c63798..5b9287cfc8 100644--- a/frontend/src/types/v1/issue/rollout.ts+++ b/frontend/src/types/v1/issue/rollout.ts@@ -73,5 +73,4 @@ export const TaskTypeListWithStatement: Task_Type[] = [export const TaskTypeListWithProgress: Task_Type[] = [Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC,- Task_Type.DATABASE_RESTORE_RESTORE,];diff --git a/frontend/src/utils/database.ts b/frontend/src/utils/database.tsindex 6e6f4dd0e3..9fc0d078d6 100644--- a/frontend/src/utils/database.ts+++ b/frontend/src/utils/database.ts@@ -111,12 +111,6 @@ export function filterDatabaseByKeyword(return false;}-export function isPITRDatabase(db: Database): boolean {- const { name } = db;- // A pitr database's name is xxx_pitr_1234567890 or xxx_pitr_1234567890_del- return !!name.match(/^(.+?)_pitr_(\d+)(_del)?$/);-}-export function isArchivedDatabase(db: Database): boolean {if (db.instance.rowStatus === "ARCHIVED") {return true;diff --git a/frontend/src/utils/instance.ts b/frontend/src/utils/instance.tsindex b2f2151632..18fa5daf7d 100644--- a/frontend/src/utils/instance.ts+++ b/frontend/src/utils/instance.ts@@ -111,17 +111,6 @@ export const instanceHasAlterSchema = (return true;};-export const instanceHasBackupRestore = (- instanceOrEngine: Instance | EngineType-): boolean => {- const engine = engineOfInstance(instanceOrEngine);- if (engine === "MONGODB") return false;- if (engine === "REDIS") return false;- if (engine === "SPANNER") return false;- if (engine === "REDSHIFT") return false;- return true;-};-export const instanceHasReadonlyMode = (instanceOrEngine: Instance | EngineType): boolean => {diff --git a/frontend/src/utils/issue/index.ts b/frontend/src/utils/issue/index.tsindex c4d3d19ceb..cf6b8b2f6d 100644--- a/frontend/src/utils/issue/index.ts+++ b/frontend/src/utils/issue/index.ts@@ -23,7 +23,6 @@ export function isDatabaseRelatedIssueType(issueType: IssueType): boolean {"bb.issue.database.data.update","bb.issue.database.rollback","bb.issue.database.schema.update.ghost",- "bb.issue.database.restore.pitr",].includes(issueType);}diff --git a/frontend/src/utils/task.ts b/frontend/src/utils/task.tsindex 1df9b751aa..b7eb77df2c 100644--- a/frontend/src/utils/task.ts+++ b/frontend/src/utils/task.ts@@ -12,7 +12,6 @@ import {TaskCreate,TaskDatabaseCreatePayload,TaskDatabaseDataUpdatePayload,- TaskDatabasePITRRestorePayload,TaskDatabaseSchemaBaselinePayload,TaskDatabaseSchemaUpdateGhostSyncPayload,TaskDatabaseSchemaUpdatePayload,@@ -42,17 +41,6 @@ export const extractDatabaseNameFromTask = (}const taskType = taskEntity.type;- if (taskType === "bb.task.database.restore.pitr.restore") {- // When PITR to new DB, the database might not be created yet.- // So we need to extract the name from the task's payload。- const payload = taskEntity.payload as TaskDatabasePITRRestorePayload;- if (payload.databaseName) {- return payload.databaseName;- }-- // When PITR in-place, taskEntity.database will be the database entity itself.- }-// The task entity is related to a database entityif (taskEntity.database) {return taskEntity.database.name;@@ -60,10 +48,7 @@ export const extractDatabaseNameFromTask = (// The task entity is irrelative to any databases or the related// database is not created yet.- if (- taskType === "bb.task.database.create" ||- taskType === "bb.task.database.restore"- ) {+ if (taskType === "bb.task.database.create") {// The database is not created yet.// extract database info from the task's and payload's properties.const payload = taskEntity.payload as TaskDatabaseCreatePayload;diff --git a/frontend/src/utils/v1/database.ts b/frontend/src/utils/v1/database.tsindex bf732e7aa6..f61d520c22 100644--- a/frontend/src/utils/v1/database.ts+++ b/frontend/src/utils/v1/database.ts@@ -70,11 +70,6 @@ export const sortDatabaseV1List = (databaseList: ComposedDatabase[]) => {);};-export const isPITRDatabaseV1 = (db: ComposedDatabase): boolean => {- // A pitr database's name is xxx_pitr_1234567890 or xxx_pitr_1234567890_del- return !!db.databaseName.match(/^(.+?)_pitr_(\d+)(_del)?$/);-};-export const isArchivedDatabaseV1 = (db: ComposedDatabase): boolean => {if (db.instanceEntity.state === State.DELETED) {return true;diff --git a/frontend/src/utils/v1/index.ts b/frontend/src/utils/v1/index.tsindex 40e2582059..bccd0858e6 100644--- a/frontend/src/utils/v1/index.ts+++ b/frontend/src/utils/v1/index.ts@@ -3,7 +3,6 @@ export * from "./environment";export * from "./instance";export * from "./database";export * from "./databaseGroup";-export * from "./backup";export * from "./project";export * from "./projectWebhook";export * from "./deploymentConfig";diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vueindex 3a0a3ccd5e..2fec2b74f9 100644--- a/frontend/src/views/DatabaseDetail.vue+++ b/frontend/src/views/DatabaseDetail.vue@@ -24,13 +24,6 @@:tooltip="true"class="w-5 h-5"/>-- <BBBadge- v-if="isPITRDatabaseV1(database)"- text="PITR"- :can-remove="false"- class="text-xs"- /></h1></div></div>@@ -140,15 +133,6 @@><DatabaseChangeHistoryPanel :database="database" /></NTabPane>- <NTabPane- v-if="- showBackupRestoreTab && allowToChangeDatabase && allowGetBackupSetting- "- name="backup-and-restore"- :tab="$t('common.backup-and-restore')"- >- <DatabaseBackupPanel :database="database" />- </NTabPane><NTabPanev-if="allowToChangeDatabase && allowListSlowQueries"name="slow-query"@@ -219,7 +203,6 @@ import { computed, reactive, watch, ref, onMounted } from "vue";import { useI18n } from "vue-i18n";import { useRouter } from "vue-router";import { useRoute } from "vue-router";-import DatabaseBackupPanel from "@/components/Database/DatabaseBackupPanel.vue";import DatabaseChangeHistoryPanel from "@/components/Database/DatabaseChangeHistoryPanel.vue";import DatabaseOverviewPanel from "@/components/Database/DatabaseOverviewPanel.vue";import DatabaseSlowQueryPanel from "@/components/Database/DatabaseSlowQueryPanel.vue";@@ -255,7 +238,6 @@ import { UNKNOWN_ID, unknownEnvironment } from "@/types";import { Anomaly } from "@/types/proto/v1/anomaly_service";import { State } from "@/types/proto/v1/common";import {- isPITRDatabaseV1,instanceV1HasAlterSchema,isDatabaseV1Queryable,allowUsingSchemaEditorV1,@@ -265,7 +247,6 @@ import {const databaseHashList = ["overview","change-history",- "backup-and-restore","slow-query","setting",] as const;@@ -312,13 +293,9 @@ const {allowTransferDatabase,allowChangeData,allowAlterSchema,- allowGetBackupSetting,allowListChangeHistories,allowListSlowQueries,} = useDatabaseDetailContext();-const showBackupRestoreTab = computed(() => {- return false; // hide for now-});onMounted(async () => {anomalyList.value = await useAnomalyV1Store().fetchAnomalyList({diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vueindex 88eb62b293..a400827c2d 100644--- a/frontend/src/views/EnvironmentDashboard.vue+++ b/frontend/src/views/EnvironmentDashboard.vue@@ -41,7 +41,6 @@:create="true":environment="getEnvironmentCreate()":rollout-policy="DEFAULT_NEW_ROLLOUT_POLICY"- :backup-policy="DEFAULT_NEW_BACKUP_PLAN_POLICY":environment-tier="defaultEnvironmentTier"@create="doCreate"@cancel="state.showCreateModal = false"@@ -73,8 +72,6 @@ import {} from "@/store";import {usePolicyV1Store,- defaultBackupSchedule,- getDefaultBackupPlanPolicy,getEmptyRolloutPolicy,} from "@/store/modules/v1/policy";import { VirtualRoleType, emptyEnvironment } from "@/types";@@ -96,12 +93,6 @@ const DEFAULT_NEW_ROLLOUT_POLICY: Policy = getEmptyRolloutPolicy(PolicyResourceType.ENVIRONMENT);-// The default value should be consistent with the GetDefaultPolicy from the backend.-const DEFAULT_NEW_BACKUP_PLAN_POLICY: Policy = getDefaultBackupPlanPolicy(- "",- PolicyResourceType.ENVIRONMENT-);-interface LocalState {selectedId: string;reorderedEnvironmentList: Environment[];@@ -110,7 +101,6 @@ interface LocalState {missingRequiredFeature?:| "bb.feature.approval-policy"| "bb.feature.custom-approval"- | "bb.feature.backup-policy"| "bb.feature.environment-tier-policy";}@@ -207,7 +197,6 @@ const createEnvironment = () => {const doCreate = async (newEnvironment: Environment,rolloutPolicy: Policy,- backupPolicy: Policy,environmentTier: EnvironmentTier) => {const rp = rolloutPolicy.rolloutPolicy;@@ -223,20 +212,6 @@ const doCreate = async (return;}}- if (- backupPolicy.backupPlanPolicy?.schedule !== defaultBackupSchedule &&- !hasFeature("bb.feature.backup-policy")- ) {- state.missingRequiredFeature = "bb.feature.backup-policy";- return;- }- if (- environmentTier !== defaultEnvironmentTier &&- !hasFeature("bb.feature.backup-policy")- ) {- state.missingRequiredFeature = "bb.feature.environment-tier-policy";- return;- }const environment = await environmentV1Store.createEnvironment({name: newEnvironment.name,@@ -252,11 +227,6 @@ const doCreate = async (updateMask: ["payload"],policy: rolloutPolicy,}),- policyV1Store.upsertPolicy({- parentPath: environment.name,- updateMask: ["payload"],- policy: backupPolicy,- }),];await Promise.all(requests);state.showCreateModal = false;diff --git a/frontend/src/views/EnvironmentDetail.vue b/frontend/src/views/EnvironmentDetail.vueindex 81950726a4..a0a8ebc17d 100644--- a/frontend/src/views/EnvironmentDetail.vue+++ b/frontend/src/views/EnvironmentDetail.vue@@ -3,10 +3,9 @@<ArchiveBanner v-if="state.environment.state == State.DELETED" /></div><EnvironmentForm- v-if="state.rolloutPolicy && state.backupPolicy && state.environmentTier"+ v-if="state.rolloutPolicy && state.environmentTier":environment="state.environment":rollout-policy="state.rolloutPolicy"- :backup-policy="state.backupPolicy":environment-tier="state.environmentTier"@update="doUpdate"@archive="doArchive"@@ -18,40 +17,18 @@:feature="state.missingRequiredFeature"@cancel="state.missingRequiredFeature = undefined"/>- <BBModal- v-if="state.showDisableAutoBackupModal"- :title="$t('environment.disable-auto-backup.self')"- @close="state.showDisableAutoBackupModal = false"- >- <div class="space-y-2 textinfolabel pr-16">- <p v-for="(line, i) in disableAutoBackupContent.split('\n')" :key="i">- {{ line }}- </p>- </div>-- <div class="flex items-center justify-end gap-x-3 pt-4 mt-4 border-t">- <NButton @click="state.showDisableAutoBackupModal = false">- {{ $t("common.no") }}- </NButton>- <NButton type="primary" @click="disableEnvironmentAutoBackup">- {{ $t("common.yes") }}- </NButton>- </div>- </BBModal></template><script lang="ts" setup>import { cloneDeep } from "lodash-es";-import { NButton } from "naive-ui";-import { computed, reactive, watch, watchEffect } from "vue";+import { reactive, watch, watchEffect } from "vue";import { useI18n } from "vue-i18n";import { useRouter } from "vue-router";-import BBModal from "@/bbkit/BBModal.vue";import ArchiveBanner from "@/components/ArchiveBanner.vue";import EnvironmentForm from "@/components/EnvironmentForm.vue";import { ENVIRONMENT_V1_ROUTE_DETAIL } from "@/router/dashboard/environmentV1";import { ENVIRONMENT_V1_ROUTE_DASHBOARD } from "@/router/dashboard/workspaceRoutes";-import { hasFeature, pushNotification, useBackupV1Store } from "@/store";+import { hasFeature, pushNotification } from "@/store";import { environmentNamePrefix } from "@/store/modules/v1/common";import {useEnvironmentV1Store,@@ -59,8 +36,6 @@ import {} from "@/store/modules/v1/environment";import {usePolicyV1Store,- defaultBackupSchedule,- getDefaultBackupPlanPolicy,getEmptyRolloutPolicy,} from "@/store/modules/v1/policy";import { VirtualRoleType, unknownEnvironment } from "@/types";@@ -73,7 +48,6 @@ import {Policy as PolicyV1,PolicyType as PolicyTypeV1,PolicyResourceType,- BackupPlanSchedule,} from "@/types/proto/v1/org_policy_service";import { extractEnvironmentResourceName } from "@/utils";@@ -81,14 +55,11 @@ interface LocalState {environment: Environment;showArchiveModal: boolean;rolloutPolicy?: PolicyV1;- backupPolicy?: PolicyV1;environmentTier?: EnvironmentTier;missingRequiredFeature?:| "bb.feature.approval-policy"| "bb.feature.custom-approval"- | "bb.feature.backup-policy"| "bb.feature.environment-tier-policy";- showDisableAutoBackupModal: boolean;}const props = defineProps({@@ -104,7 +75,6 @@ const router = useRouter();const { t } = useI18n();const environmentV1Store = useEnvironmentV1Store();const policyV1Store = usePolicyV1Store();-const backupStore = useBackupV1Store();const state = reactive<LocalState>({environment:@@ -112,7 +82,6 @@ const state = reactive<LocalState>({`${environmentNamePrefix}${props.environmentId}`) || unknownEnvironment(),showArchiveModal: false,- showDisableAutoBackupModal: false,});const prepareEnvironment = async () => {@@ -135,21 +104,12 @@ const preparePolicy = () => {const rolloutPolicy = policies.find((policy) => policy.type === PolicyTypeV1.ROLLOUT_POLICY);- const backupPolicy = policies.find(- (policy) => policy.type === PolicyTypeV1.BACKUP_PLAN- );state.rolloutPolicy =rolloutPolicy ||getEmptyRolloutPolicy(state.environment.name,PolicyResourceType.ENVIRONMENT);- state.backupPolicy =- backupPolicy ||- getDefaultBackupPlanPolicy(- state.environment.name,- PolicyResourceType.ENVIRONMENT- );});state.environmentTier = state.environment.tier;@@ -250,15 +210,6 @@ const updatePolicy = async (}}}- if (policyType === PolicyTypeV1.BACKUP_PLAN) {- if (- policy.backupPlanPolicy?.schedule != defaultBackupSchedule &&- !hasFeature("bb.feature.backup-policy")- ) {- state.missingRequiredFeature = "bb.feature.backup-policy";- return;- }- }const updatedPolicy = await policyV1Store.upsertPolicy({parentPath: environment.name,@@ -269,32 +220,8 @@ const updatePolicy = async (case PolicyTypeV1.ROLLOUT_POLICY:state.rolloutPolicy = updatedPolicy;break;- case PolicyTypeV1.BACKUP_PLAN:- state.backupPolicy = updatedPolicy;- break;}success();- if (policyType === PolicyTypeV1.BACKUP_PLAN) {- if (- state.backupPolicy?.backupPlanPolicy?.schedule == BackupPlanSchedule.UNSET- ) {- // Changing backup policy from "DAILY"|"WEEKLY" to "UNSET"- state.showDisableAutoBackupModal = true;- }- }-};--const disableAutoBackupContent = computed(() => {- return t("environment.disable-auto-backup.content");-});--const disableEnvironmentAutoBackup = async () => {- await backupStore.upsertEnvironmentBackupSetting({- name: `${state.environment.name}/backupSetting`,- enabled: false,- });- success();- state.showDisableAutoBackupModal = false;};</script>diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex d4c65aee79..08aba3063e 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -126,7 +126,6 @@- [PlanConfig.CreateDatabaseConfig](#bytebase-store-PlanConfig-CreateDatabaseConfig)- [PlanConfig.CreateDatabaseConfig.LabelsEntry](#bytebase-store-PlanConfig-CreateDatabaseConfig-LabelsEntry)- [PlanConfig.ExportDataConfig](#bytebase-store-PlanConfig-ExportDataConfig)- - [PlanConfig.RestoreDatabaseConfig](#bytebase-store-PlanConfig-RestoreDatabaseConfig)- [PlanConfig.Spec](#bytebase-store-PlanConfig-Spec)- [PlanConfig.Step](#bytebase-store-PlanConfig-Step)@@ -2051,24 +2050,6 @@ InstanceOptions is the option for instances.-<a name="bytebase-store-PlanConfig-RestoreDatabaseConfig"></a>--### PlanConfig.RestoreDatabaseConfig----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the target to restore. Format: instances/{instance}/databases/{database} |-| create_database_config | [PlanConfig.CreateDatabaseConfig](#bytebase-store-PlanConfig-CreateDatabaseConfig) | optional | create_database_config is present if the user wants to restore to a new database. |-| backup | [string](#string) | | Restore from a backup. Format: instances/{instance}/databases/{database}/backups/{backup-name} |-| point_in_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | After the PITR operations, the database will be recovered to the state at this time. |------<a name="bytebase-store-PlanConfig-Spec"></a>### PlanConfig.Spec@@ -2082,7 +2063,6 @@ InstanceOptions is the option for instances.| depends_on_specs | [string](#string) | repeated | IDs of the specs that this spec depends on. Must be a subset of the specs in the same step. || create_database_config | [PlanConfig.CreateDatabaseConfig](#bytebase-store-PlanConfig-CreateDatabaseConfig) | | || change_database_config | [PlanConfig.ChangeDatabaseConfig](#bytebase-store-PlanConfig-ChangeDatabaseConfig) | | |-| restore_database_config | [PlanConfig.RestoreDatabaseConfig](#bytebase-store-PlanConfig-RestoreDatabaseConfig) | | || export_data_config | [PlanConfig.ExportDataConfig](#bytebase-store-PlanConfig-ExportDataConfig) | | |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex fcc4a1e366..660fa2e591 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -678,10 +678,6 @@<a href="#bytebase.store.PlanConfig.ExportDataConfig"><span class="badge">M</span>PlanConfig.ExportDataConfig</a></li>- <li>- <a href="#bytebase.store.PlanConfig.RestoreDatabaseConfig"><span class="badge">M</span>PlanConfig.RestoreDatabaseConfig</a>- </li>-<li><a href="#bytebase.store.PlanConfig.Spec"><span class="badge">M</span>PlanConfig.Spec</a></li>@@ -5438,53 +5434,6 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanConfig.RestoreDatabaseConfig">PlanConfig.RestoreDatabaseConfig</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>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the target to restore.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>create_database_config</td>- <td><a href="#bytebase.store.PlanConfig.CreateDatabaseConfig">PlanConfig.CreateDatabaseConfig</a></td>- <td>optional</td>- <td><p>create_database_config is present if the user wants to restore to a new database. </p></td>- </tr>-- <tr>- <td>backup</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Restore from a backup.-Format: instances/{instance}/databases/{database}/backups/{backup-name} </p></td>- </tr>-- <tr>- <td>point_in_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>After the PITR operations, the database will be recovered to the state at this time. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.store.PlanConfig.Spec">PlanConfig.Spec</h3><p></p>@@ -5531,13 +5480,6 @@ Must be a subset of the specs in the same step. </p></td><td><p> </p></td></tr>- <tr>- <td>restore_database_config</td>- <td><a href="#bytebase.store.PlanConfig.RestoreDatabaseConfig">PlanConfig.RestoreDatabaseConfig</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>export_data_config</td><td><a href="#bytebase.store.PlanConfig.ExportDataConfig">PlanConfig.ExportDataConfig</a></td>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 4bdd678da8..6ae2d33c47 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -16,50 +16,8 @@- [ActuatorService](#bytebase-v1-ActuatorService)-- [v1/common.proto](#v1_common-proto)- - [Engine](#bytebase-v1-Engine)- - [ExportFormat](#bytebase-v1-ExportFormat)- - [MaskingLevel](#bytebase-v1-MaskingLevel)- - [State](#bytebase-v1-State)--- [v1/iam_policy.proto](#v1_iam_policy-proto)- - [Binding](#bytebase-v1-Binding)- - [IamPolicy](#bytebase-v1-IamPolicy)--- [v1/org_policy_service.proto](#v1_org_policy_service-proto)- - [BackupPlanPolicy](#bytebase-v1-BackupPlanPolicy)- - [CreatePolicyRequest](#bytebase-v1-CreatePolicyRequest)- - [DeletePolicyRequest](#bytebase-v1-DeletePolicyRequest)- - [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy)- - [GetPolicyRequest](#bytebase-v1-GetPolicyRequest)- - [ListPoliciesRequest](#bytebase-v1-ListPoliciesRequest)- - [ListPoliciesResponse](#bytebase-v1-ListPoliciesResponse)- - [MaskData](#bytebase-v1-MaskData)- - [MaskingExceptionPolicy](#bytebase-v1-MaskingExceptionPolicy)- - [MaskingExceptionPolicy.MaskingException](#bytebase-v1-MaskingExceptionPolicy-MaskingException)- - [MaskingPolicy](#bytebase-v1-MaskingPolicy)- - [MaskingRulePolicy](#bytebase-v1-MaskingRulePolicy)- - [MaskingRulePolicy.MaskingRule](#bytebase-v1-MaskingRulePolicy-MaskingRule)- - [Policy](#bytebase-v1-Policy)- - [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy)- - [RolloutPolicy](#bytebase-v1-RolloutPolicy)- - [SQLReviewPolicy](#bytebase-v1-SQLReviewPolicy)- - [SQLReviewRule](#bytebase-v1-SQLReviewRule)- - [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy)- - [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest)-- - [BackupPlanSchedule](#bytebase-v1-BackupPlanSchedule)- - [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action)- - [PolicyResourceType](#bytebase-v1-PolicyResourceType)- - [PolicyType](#bytebase-v1-PolicyType)- - [SQLReviewRuleLevel](#bytebase-v1-SQLReviewRuleLevel)-- - [OrgPolicyService](#bytebase-v1-OrgPolicyService)-- [v1/anomaly_service.proto](#v1_anomaly_service-proto)- [Anomaly](#bytebase-v1-Anomaly)- - [Anomaly.DatabaseBackupMissingDetail](#bytebase-v1-Anomaly-DatabaseBackupMissingDetail)- - [Anomaly.DatabaseBackupPolicyViolationDetail](#bytebase-v1-Anomaly-DatabaseBackupPolicyViolationDetail)- [Anomaly.DatabaseConnectionDetail](#bytebase-v1-Anomaly-DatabaseConnectionDetail)- [Anomaly.DatabaseSchemaDriftDetail](#bytebase-v1-Anomaly-DatabaseSchemaDriftDetail)- [Anomaly.InstanceConnectionDetail](#bytebase-v1-Anomaly-InstanceConnectionDetail)@@ -71,6 +29,12 @@- [AnomalyService](#bytebase-v1-AnomalyService)+- [v1/common.proto](#v1_common-proto)+ - [Engine](#bytebase-v1-Engine)+ - [ExportFormat](#bytebase-v1-ExportFormat)+ - [MaskingLevel](#bytebase-v1-MaskingLevel)+ - [State](#bytebase-v1-State)+- [v1/auth_service.proto](#v1_auth_service-proto)- [CreateUserRequest](#bytebase-v1-CreateUserRequest)- [DeleteUserRequest](#bytebase-v1-DeleteUserRequest)@@ -132,8 +96,6 @@- [v1/database_service.proto](#v1_database_service-proto)- [AdviseIndexRequest](#bytebase-v1-AdviseIndexRequest)- [AdviseIndexResponse](#bytebase-v1-AdviseIndexResponse)- - [Backup](#bytebase-v1-Backup)- - [BackupSetting](#bytebase-v1-BackupSetting)- [BatchUpdateDatabasesRequest](#bytebase-v1-BatchUpdateDatabasesRequest)- [BatchUpdateDatabasesResponse](#bytebase-v1-BatchUpdateDatabasesResponse)- [ChangeHistory](#bytebase-v1-ChangeHistory)@@ -144,7 +106,6 @@- [ColumnConfig](#bytebase-v1-ColumnConfig)- [ColumnConfig.LabelsEntry](#bytebase-v1-ColumnConfig-LabelsEntry)- [ColumnMetadata](#bytebase-v1-ColumnMetadata)- - [CreateBackupRequest](#bytebase-v1-CreateBackupRequest)- [Database](#bytebase-v1-Database)- [Database.LabelsEntry](#bytebase-v1-Database-LabelsEntry)- [DatabaseConfig](#bytebase-v1-DatabaseConfig)@@ -158,14 +119,11 @@- [ExternalTableMetadata](#bytebase-v1-ExternalTableMetadata)- [ForeignKeyMetadata](#bytebase-v1-ForeignKeyMetadata)- [FunctionMetadata](#bytebase-v1-FunctionMetadata)- - [GetBackupSettingRequest](#bytebase-v1-GetBackupSettingRequest)- [GetChangeHistoryRequest](#bytebase-v1-GetChangeHistoryRequest)- [GetDatabaseMetadataRequest](#bytebase-v1-GetDatabaseMetadataRequest)- [GetDatabaseRequest](#bytebase-v1-GetDatabaseRequest)- [GetDatabaseSchemaRequest](#bytebase-v1-GetDatabaseSchemaRequest)- [IndexMetadata](#bytebase-v1-IndexMetadata)- - [ListBackupsRequest](#bytebase-v1-ListBackupsRequest)- - [ListBackupsResponse](#bytebase-v1-ListBackupsResponse)- [ListChangeHistoriesRequest](#bytebase-v1-ListChangeHistoriesRequest)- [ListChangeHistoriesResponse](#bytebase-v1-ListChangeHistoriesResponse)- [ListDatabasesRequest](#bytebase-v1-ListDatabasesRequest)@@ -190,14 +148,11 @@- [TableMetadata](#bytebase-v1-TableMetadata)- [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata)- [TaskMetadata](#bytebase-v1-TaskMetadata)- - [UpdateBackupSettingRequest](#bytebase-v1-UpdateBackupSettingRequest)- [UpdateDatabaseMetadataRequest](#bytebase-v1-UpdateDatabaseMetadataRequest)- [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest)- [UpdateSecretRequest](#bytebase-v1-UpdateSecretRequest)- [ViewMetadata](#bytebase-v1-ViewMetadata)- - [Backup.BackupState](#bytebase-v1-Backup-BackupState)- - [Backup.BackupType](#bytebase-v1-Backup-BackupType)- [ChangeHistory.Source](#bytebase-v1-ChangeHistory-Source)- [ChangeHistory.Status](#bytebase-v1-ChangeHistory-Status)- [ChangeHistory.Type](#bytebase-v1-ChangeHistory-Type)@@ -254,18 +209,20 @@- [CreateEnvironmentRequest](#bytebase-v1-CreateEnvironmentRequest)- [DeleteEnvironmentRequest](#bytebase-v1-DeleteEnvironmentRequest)- [Environment](#bytebase-v1-Environment)- - [EnvironmentBackupSetting](#bytebase-v1-EnvironmentBackupSetting)- [GetEnvironmentRequest](#bytebase-v1-GetEnvironmentRequest)- [ListEnvironmentsRequest](#bytebase-v1-ListEnvironmentsRequest)- [ListEnvironmentsResponse](#bytebase-v1-ListEnvironmentsResponse)- [UndeleteEnvironmentRequest](#bytebase-v1-UndeleteEnvironmentRequest)- - [UpdateEnvironmentBackupSettingRequest](#bytebase-v1-UpdateEnvironmentBackupSettingRequest)- [UpdateEnvironmentRequest](#bytebase-v1-UpdateEnvironmentRequest)- [EnvironmentTier](#bytebase-v1-EnvironmentTier)- [EnvironmentService](#bytebase-v1-EnvironmentService)+- [v1/iam_policy.proto](#v1_iam_policy-proto)+ - [Binding](#bytebase-v1-Binding)+ - [IamPolicy](#bytebase-v1-IamPolicy)+- [v1/idp_service.proto](#v1_idp_service-proto)- [CreateIdentityProviderRequest](#bytebase-v1-CreateIdentityProviderRequest)- [DeleteIdentityProviderRequest](#bytebase-v1-DeleteIdentityProviderRequest)@@ -349,6 +306,34 @@- [LoggingService](#bytebase-v1-LoggingService)+- [v1/org_policy_service.proto](#v1_org_policy_service-proto)+ - [CreatePolicyRequest](#bytebase-v1-CreatePolicyRequest)+ - [DeletePolicyRequest](#bytebase-v1-DeletePolicyRequest)+ - [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy)+ - [GetPolicyRequest](#bytebase-v1-GetPolicyRequest)+ - [ListPoliciesRequest](#bytebase-v1-ListPoliciesRequest)+ - [ListPoliciesResponse](#bytebase-v1-ListPoliciesResponse)+ - [MaskData](#bytebase-v1-MaskData)+ - [MaskingExceptionPolicy](#bytebase-v1-MaskingExceptionPolicy)+ - [MaskingExceptionPolicy.MaskingException](#bytebase-v1-MaskingExceptionPolicy-MaskingException)+ - [MaskingPolicy](#bytebase-v1-MaskingPolicy)+ - [MaskingRulePolicy](#bytebase-v1-MaskingRulePolicy)+ - [MaskingRulePolicy.MaskingRule](#bytebase-v1-MaskingRulePolicy-MaskingRule)+ - [Policy](#bytebase-v1-Policy)+ - [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy)+ - [RolloutPolicy](#bytebase-v1-RolloutPolicy)+ - [SQLReviewPolicy](#bytebase-v1-SQLReviewPolicy)+ - [SQLReviewRule](#bytebase-v1-SQLReviewRule)+ - [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy)+ - [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest)++ - [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action)+ - [PolicyResourceType](#bytebase-v1-PolicyResourceType)+ - [PolicyType](#bytebase-v1-PolicyType)+ - [SQLReviewRuleLevel](#bytebase-v1-SQLReviewRuleLevel)++ - [OrgPolicyService](#bytebase-v1-OrgPolicyService)+- [v1/vcs_provider_service.proto](#v1_vcs_provider_service-proto)- [CreateVCSProviderRequest](#bytebase-v1-CreateVCSProviderRequest)- [DeleteVCSProviderRequest](#bytebase-v1-DeleteVCSProviderRequest)@@ -490,7 +475,6 @@- [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig)- [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry)- [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig)- - [Plan.RestoreDatabaseConfig](#bytebase-v1-Plan-RestoreDatabaseConfig)- [Plan.Spec](#bytebase-v1-Plan-Spec)- [Plan.Step](#bytebase-v1-Plan-Step)- [PlanCheckRun](#bytebase-v1-PlanCheckRun)@@ -503,12 +487,10 @@- [RunPlanChecksResponse](#bytebase-v1-RunPlanChecksResponse)- [Stage](#bytebase-v1-Stage)- [Task](#bytebase-v1-Task)- - [Task.DatabaseBackup](#bytebase-v1-Task-DatabaseBackup)- [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate)- [Task.DatabaseCreate.LabelsEntry](#bytebase-v1-Task-DatabaseCreate-LabelsEntry)- [Task.DatabaseDataExport](#bytebase-v1-Task-DatabaseDataExport)- [Task.DatabaseDataUpdate](#bytebase-v1-Task-DatabaseDataUpdate)- - [Task.DatabaseRestoreRestore](#bytebase-v1-Task-DatabaseRestoreRestore)- [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline)- [Task.DatabaseSchemaUpdate](#bytebase-v1-Task-DatabaseSchemaUpdate)- [TaskRun](#bytebase-v1-TaskRun)@@ -821,6 +803,173 @@ The theme resources.+<a name="v1_anomaly_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/anomaly_service.proto++++<a name="bytebase-v1-Anomaly"></a>++### Anomaly++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| resource | [string](#string) | | The resource that is the target of the operation. Format: - Instance: instnaces/{instance} - Database: instnaces/{instance}/databases/{database} |+| type | [Anomaly.AnomalyType](#bytebase-v1-Anomaly-AnomalyType) | | type is the type of the anomaly. |+| severity | [Anomaly.AnomalySeverity](#bytebase-v1-Anomaly-AnomalySeverity) | | severity is the severity of the anomaly. |+| instance_connection_detail | [Anomaly.InstanceConnectionDetail](#bytebase-v1-Anomaly-InstanceConnectionDetail) | | |+| database_connection_detail | [Anomaly.DatabaseConnectionDetail](#bytebase-v1-Anomaly-DatabaseConnectionDetail) | | |+| database_schema_drift_detail | [Anomaly.DatabaseSchemaDriftDetail](#bytebase-v1-Anomaly-DatabaseSchemaDriftDetail) | | |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+++++++<a name="bytebase-v1-Anomaly-DatabaseConnectionDetail"></a>++### Anomaly.DatabaseConnectionDetail+Database level anomaly detial.++DatbaaseConnectionDetail is the detail for database connection anomaly.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| detail | [string](#string) | | detail is the detail of the database connection failure. |+++++++<a name="bytebase-v1-Anomaly-DatabaseSchemaDriftDetail"></a>++### Anomaly.DatabaseSchemaDriftDetail+DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| record_version | [string](#string) | | record_version is the record version of the database schema drift. |+| expected_schema | [string](#string) | | expected_schema is the expected schema in the database. |+| actual_schema | [string](#string) | | actual_schema is the actual schema in the database. |+++++++<a name="bytebase-v1-Anomaly-InstanceConnectionDetail"></a>++### Anomaly.InstanceConnectionDetail+Instance level anomaly detail.++InstanceConnectionDetail is the detail for instance connection anomaly.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| detail | [string](#string) | | detail is the detail of the instance connection failure. |+++++++<a name="bytebase-v1-SearchAnomaliesRequest"></a>++### SearchAnomaliesRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| filter | [string](#string) | | filter is the filter to apply on the search anomaly request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Only support filter by resource and type for now. For example: Search the anomalies of a specific resource: 'resource="instances/{instance}".' Search the specified types of anomalies: 'type="MIGRATION_SCHEMA".' |+| page_size | [int32](#int32) | | Not used. The maximum number of anomalies to return. The service may return fewer than this value. If unspecified, at most 50 anomalies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `SearchAnomalies` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `SearchAnomalies` must match the call that provided the page token. |+++++++<a name="bytebase-v1-SearchAnomaliesResponse"></a>++### SearchAnomaliesResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| anomalies | [Anomaly](#bytebase-v1-Anomaly) | repeated | anomalies is the list of anomalies. |+| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+++++++++<a name="bytebase-v1-Anomaly-AnomalySeverity"></a>++### Anomaly.AnomalySeverity+AnomalySeverity is the severity of the anomaly.++| Name | Number | Description |+| ---- | ------ | ----------- |+| ANOMALY_SEVERITY_UNSPECIFIED | 0 | Unspecified anomaly severity. |+| MEDIUM | 1 | MEDIUM is the info level anomaly severity. |+| HIGH | 2 | HIGH is the warning level anomaly severity. |+| CRITICAL | 3 | CRITICAL is the critical level anomaly severity. |++++<a name="bytebase-v1-Anomaly-AnomalyType"></a>++### Anomaly.AnomalyType+AnomalyType is the type of the anomaly.++| Name | Number | Description |+| ---- | ------ | ----------- |+| ANOMALY_TYPE_UNSPECIFIED | 0 | Unspecified anomaly type. |+| INSTANCE_CONNECTION | 1 | Instance level anomaly.++INSTANCE_CONNECTION is the anomaly type for instance connection, e.g. the instance is down. |+| MIGRATION_SCHEMA | 2 | MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing. |+| DATABASE_CONNECTION | 5 | Database level anomaly.++DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted. |+| DATABASE_SCHEMA_DRIFT | 6 | DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift, e.g. the database schema had been changed without bytebase migration. |++++++++<a name="bytebase-v1-AnomalyService"></a>++### AnomalyService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| SearchAnomalies | [SearchAnomaliesRequest](#bytebase-v1-SearchAnomaliesRequest) | [SearchAnomaliesResponse](#bytebase-v1-SearchAnomaliesResponse) | |+++++<a name="v1_common-proto"></a><p align="right"><a href="#top">Top</a></p>@@ -909,2257 +1058,2277 @@ The theme resources.-<a name="v1_iam_policy-proto"></a>+<a name="v1_auth_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/iam_policy.proto+## v1/auth_service.proto-<a name="bytebase-v1-Binding"></a>+<a name="bytebase-v1-CreateUserRequest"></a>-### Binding+### CreateUserRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [string](#string) | | The role that is assigned to the members. Format: roles/{role} |-| members | [string](#string) | repeated | Specifies the principals requesting access for a Bytebase resource. |-| condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this binding. If the condition evaluates to true, then this binding applies to the current request. If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. |-| parsed_expr | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | | The parsed expression of the condition. |+| user | [User](#bytebase-v1-User) | | The user to create. |-<a name="bytebase-v1-IamPolicy"></a>+<a name="bytebase-v1-DeleteUserRequest"></a>-### IamPolicy+### DeleteUserRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| bindings | [Binding](#bytebase-v1-Binding) | repeated | Collection of binding. A binding binds one or more project members to a single project role. |+| name | [string](#string) | | The name of the user to delete. Format: users/{user} |--+<a name="bytebase-v1-GetUserRequest"></a>++### GetUserRequest--+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the user to retrieve. Format: users/{user uid or user email} |-<a name="v1_org_policy_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/org_policy_service.proto-<a name="bytebase-v1-BackupPlanPolicy"></a>+<a name="bytebase-v1-IdentityProviderContext"></a>-### BackupPlanPolicy+### IdentityProviderContext| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schedule | [BackupPlanSchedule](#bytebase-v1-BackupPlanSchedule) | | |-| retention_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |+| oauth2_context | [OAuth2IdentityProviderContext](#bytebase-v1-OAuth2IdentityProviderContext) | | |+| oidc_context | [OIDCIdentityProviderContext](#bytebase-v1-OIDCIdentityProviderContext) | | |-<a name="bytebase-v1-CreatePolicyRequest"></a>+<a name="bytebase-v1-ListUsersRequest"></a>-### CreatePolicyRequest+### ListUsersRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this instance will be created. Workspace resource name: "". Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |-| policy | [Policy](#bytebase-v1-Policy) | | The policy to create. |-| type | [PolicyType](#bytebase-v1-PolicyType) | | |+| page_size | [int32](#int32) | | The maximum number of users to return. The service may return fewer than this value. If unspecified, at most 50 users will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListUsers` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListUsers` must match the call that provided the page token. |+| show_deleted | [bool](#bool) | | Show deleted users if specified. |-<a name="bytebase-v1-DeletePolicyRequest"></a>-### DeletePolicyRequest+<a name="bytebase-v1-ListUsersResponse"></a>++### ListUsersResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The policy's `name` field is used to identify the instance to update. Format: {resource name}/policies/{policy type} Workspace resource name: "". Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |+| users | [User](#bytebase-v1-User) | repeated | The users from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-DisableCopyDataPolicy"></a>+<a name="bytebase-v1-LoginRequest"></a>-### DisableCopyDataPolicy+### LoginRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| active | [bool](#bool) | | |+| email | [string](#string) | | |+| password | [string](#string) | | |+| web | [bool](#bool) | | If web is set, we will set access token, refresh token, and user to the cookie. |+| idp_name | [string](#string) | | The name of the identity provider. Format: idps/{idp} |+| idp_context | [IdentityProviderContext](#bytebase-v1-IdentityProviderContext) | | The idp_context is using to get the user information from identity provider. |+| otp_code | [string](#string) | optional | The otp_code is used to verify the user's identity by MFA. |+| recovery_code | [string](#string) | optional | The recovery_code is used to recovery the user's identity with MFA. |+| mfa_temp_token | [string](#string) | optional | The mfa_temp_token is used to verify the user's identity by MFA. |-<a name="bytebase-v1-GetPolicyRequest"></a>+<a name="bytebase-v1-LoginResponse"></a>-### GetPolicyRequest+### LoginResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the policy to retrieve. Format: {resource type}/{resource id}/policies/{policy type} |---+| token | [string](#string) | | |+| mfa_temp_token | [string](#string) | optional | |-<a name="bytebase-v1-ListPoliciesRequest"></a>-### ListPoliciesRequest+<a name="bytebase-v1-LogoutRequest"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of policies. Format: {resource type}/{resource id} |-| policy_type | [PolicyType](#bytebase-v1-PolicyType) | optional | |-| page_size | [int32](#int32) | | The maximum number of policies to return. The service may return fewer than this value. If unspecified, at most 50 policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `GetPolicies` call. Provide this to retrieve the subsequent page.+### LogoutRequest-When paginating, all other parameters provided to `GetPolicies` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted policies if specified. |-<a name="bytebase-v1-ListPoliciesResponse"></a>+<a name="bytebase-v1-OAuth2IdentityProviderContext"></a>-### ListPoliciesResponse+### OAuth2IdentityProviderContext| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| policies | [Policy](#bytebase-v1-Policy) | repeated | The policies from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-+| code | [string](#string) | | |-<a name="bytebase-v1-MaskData"></a>-### MaskData+<a name="bytebase-v1-OIDCIdentityProviderContext"></a>+### OIDCIdentityProviderContext-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | |-| table | [string](#string) | | |-| column | [string](#string) | | |-| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | |-| full_masking_algorithm_id | [string](#string) | | |-| partial_masking_algorithm_id | [string](#string) | | |+<a name="bytebase-v1-UndeleteUserRequest"></a>-<a name="bytebase-v1-MaskingExceptionPolicy"></a>+### UndeleteUserRequest-### MaskingExceptionPolicy-MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| masking_exceptions | [MaskingExceptionPolicy.MaskingException](#bytebase-v1-MaskingExceptionPolicy-MaskingException) | repeated | |+| name | [string](#string) | | The name of the deleted user. Format: users/{user} |-<a name="bytebase-v1-MaskingExceptionPolicy-MaskingException"></a>+<a name="bytebase-v1-UpdateUserRequest"></a>-### MaskingExceptionPolicy.MaskingException+### UpdateUserRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| action | [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action) | | action is the action that the user can access sensitive data. |-| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | Level is the masking level that the user can access sensitive data. |-| member | [string](#string) | | Member is the principal who bind to this exception policy instance.+| user | [User](#bytebase-v1-User) | | The user to update.-* `user:{emailid}`: An email address that represents a specific Bytebase account. For example, `[email protected]`. |-| condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this exception policy instance. |+The user's `name` field is used to identify the user to update. Format: users/{user} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| otp_code | [string](#string) | optional | The otp_code is used to verify the user's identity by MFA. |+| regenerate_temp_mfa_secret | [bool](#bool) | | The regenerate_temp_mfa_secret flag means to regenerate temporary MFA secret for user. This is used for MFA setup. The temporary MFA secret and recovery codes will be returned in the response. |+| regenerate_recovery_codes | [bool](#bool) | | The regenerate_recovery_codes flag means to regenerate recovery codes for user. |-<a name="bytebase-v1-MaskingPolicy"></a>+<a name="bytebase-v1-User"></a>-### MaskingPolicy+### User| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| mask_data | [MaskData](#bytebase-v1-MaskData) | repeated | |+| name | [string](#string) | | The name of the user. Format: users/{user}. {user} is a system-generated unique ID. |+| state | [State](#bytebase-v1-State) | | |+| email | [string](#string) | | |+| title | [string](#string) | | |+| user_type | [UserType](#bytebase-v1-UserType) | | |+| password | [string](#string) | | |+| service_key | [string](#string) | | |+| mfa_enabled | [bool](#bool) | | The mfa_enabled flag means if the user has enabled MFA. |+| mfa_secret | [string](#string) | | The mfa_secret is the temporary secret using in two phase verification. |+| recovery_codes | [string](#string) | repeated | The recovery_codes is the temporary recovery codes using in two phase verification. |+| phone | [string](#string) | | Should be a valid E.164 compliant phone number. Could be empty. |+| roles | [string](#string) | repeated | The roles of the user. This filed is to supersede the `user_role` field. |+-<a name="bytebase-v1-MaskingRulePolicy"></a>-### MaskingRulePolicy+<a name="bytebase-v1-UserType"></a>+### UserType-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| rules | [MaskingRulePolicy.MaskingRule](#bytebase-v1-MaskingRulePolicy-MaskingRule) | repeated | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| USER_TYPE_UNSPECIFIED | 0 | |+| USER | 1 | |+| SYSTEM_BOT | 2 | |+| SERVICE_ACCOUNT | 3 | |+++<a name="bytebase-v1-AuthService"></a>-<a name="bytebase-v1-MaskingRulePolicy-MaskingRule"></a>+### AuthService-### MaskingRulePolicy.MaskingRule+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetUser | [GetUserRequest](#bytebase-v1-GetUserRequest) | [User](#bytebase-v1-User) | |+| ListUsers | [ListUsersRequest](#bytebase-v1-ListUsersRequest) | [ListUsersResponse](#bytebase-v1-ListUsersResponse) | |+| CreateUser | [CreateUserRequest](#bytebase-v1-CreateUserRequest) | [User](#bytebase-v1-User) | |+| UpdateUser | [UpdateUserRequest](#bytebase-v1-UpdateUserRequest) | [User](#bytebase-v1-User) | |+| DeleteUser | [DeleteUserRequest](#bytebase-v1-DeleteUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteUser | [UndeleteUserRequest](#bytebase-v1-UndeleteUserRequest) | [User](#bytebase-v1-User) | |+| Login | [LoginRequest](#bytebase-v1-LoginRequest) | [LoginResponse](#bytebase-v1-LoginResponse) | |+| Logout | [LogoutRequest](#bytebase-v1-LogoutRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| id | [string](#string) | | A unique identifier for a node in UUID format. |-| condition | [google.type.Expr](#google-type-Expr) | | |-| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | |+<a name="v1_instance_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/instance_service.proto-<a name="bytebase-v1-Policy"></a>+<a name="bytebase-v1-AddDataSourceRequest"></a>-### Policy+### AddDataSourceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the policy. Format: {resource name}/policies/{policy type} Workspace resource name: "". Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| inherit_from_parent | [bool](#bool) | | |-| type | [PolicyType](#bytebase-v1-PolicyType) | | |-| workspace_iam_policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |-| rollout_policy | [RolloutPolicy](#bytebase-v1-RolloutPolicy) | | |-| backup_plan_policy | [BackupPlanPolicy](#bytebase-v1-BackupPlanPolicy) | | |-| masking_policy | [MaskingPolicy](#bytebase-v1-MaskingPolicy) | | |-| sql_review_policy | [SQLReviewPolicy](#bytebase-v1-SQLReviewPolicy) | | |-| slow_query_policy | [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy) | | |-| disable_copy_data_policy | [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy) | | |-| masking_rule_policy | [MaskingRulePolicy](#bytebase-v1-MaskingRulePolicy) | | |-| masking_exception_policy | [MaskingExceptionPolicy](#bytebase-v1-MaskingExceptionPolicy) | | |-| restrict_issue_creation_for_sql_review_policy | [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy) | | |-| enforce | [bool](#bool) | | |-| resource_type | [PolicyResourceType](#bytebase-v1-PolicyResourceType) | | The resource type for the policy. |-| resource_uid | [string](#string) | | The system-assigned, unique identifier for the resource. |+| instance | [string](#string) | | The name of the instance to add a data source to. Format: instances/{instance} |+| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. Only READ_ONLY data source can be added. |+| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |-<a name="bytebase-v1-RestrictIssueCreationForSQLReviewPolicy"></a>+<a name="bytebase-v1-BatchSyncInstanceRequest"></a>-### RestrictIssueCreationForSQLReviewPolicy+### BatchSyncInstanceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| disallow | [bool](#bool) | | |--+| requests | [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest) | repeated | The request message specifying the instances to sync. A maximum of 1000 instances can be synced in a batch. |-<a name="bytebase-v1-RolloutPolicy"></a>-### RolloutPolicy+<a name="bytebase-v1-BatchSyncInstanceResponse"></a>+### BatchSyncInstanceResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| automatic | [bool](#bool) | | |-| workspace_roles | [string](#string) | repeated | |-| project_roles | [string](#string) | repeated | |-| issue_roles | [string](#string) | repeated | roles/LAST_APPROVER roles/CREATOR |-<a name="bytebase-v1-SQLReviewPolicy"></a>+<a name="bytebase-v1-CreateInstanceRequest"></a>-### SQLReviewPolicy+### CreateInstanceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| rules | [SQLReviewRule](#bytebase-v1-SQLReviewRule) | repeated | |+| instance | [Instance](#bytebase-v1-Instance) | | The instance to create. |+| instance_id | [string](#string) | | The ID to use for the instance, which will become the final component of the instance's resource name.+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |-<a name="bytebase-v1-SQLReviewRule"></a>-### SQLReviewRule+<a name="bytebase-v1-DataSource"></a>++### DataSource| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [string](#string) | | |-| level | [SQLReviewRuleLevel](#bytebase-v1-SQLReviewRuleLevel) | | |-| payload | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |-| comment | [string](#string) | | |+| id | [string](#string) | | |+| type | [DataSourceType](#bytebase-v1-DataSourceType) | | |+| username | [string](#string) | | |+| password | [string](#string) | | |+| ssl_ca | [string](#string) | | |+| ssl_cert | [string](#string) | | |+| ssl_key | [string](#string) | | |+| host | [string](#string) | | |+| port | [string](#string) | | |+| database | [string](#string) | | |+| srv | [bool](#bool) | | srv and authentication_database are used for MongoDB. |+| authentication_database | [string](#string) | | |+| sid | [string](#string) | | sid and service_name are used for Oracle. |+| service_name | [string](#string) | | |+| ssh_host | [string](#string) | | Connection over SSH. The hostname of the SSH server agent. Required. |+| ssh_port | [string](#string) | | The port of the SSH server agent. It's 22 typically. Required. |+| ssh_user | [string](#string) | | The user to login the server. Required. |+| ssh_password | [string](#string) | | The password to login the server. If it's empty string, no password is required. |+| ssh_private_key | [string](#string) | | The private key to login the server. If it's empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK"). |+| authentication_private_key | [string](#string) | | PKCS#8 private key in PEM format. If it's empty string, no private key is required. Used for authentication when connecting to the data source. |+| external_secret | [DataSourceExternalSecret](#bytebase-v1-DataSourceExternalSecret) | | |-<a name="bytebase-v1-SlowQueryPolicy"></a>+<a name="bytebase-v1-DataSourceExternalSecret"></a>-### SlowQueryPolicy+### DataSourceExternalSecret| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| active | [bool](#bool) | | |+| secret_type | [DataSourceExternalSecret.SecretType](#bytebase-v1-DataSourceExternalSecret-SecretType) | | |+| url | [string](#string) | | |+| auth_type | [DataSourceExternalSecret.AuthType](#bytebase-v1-DataSourceExternalSecret-AuthType) | | |+| app_role | [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption) | | |+| token | [string](#string) | | |+| engine_name | [string](#string) | | engine name is the name for secret engine. |+| secret_name | [string](#string) | | the secret name in the engine to store the password. |+| password_key_name | [string](#string) | | the key name for the password. |-<a name="bytebase-v1-UpdatePolicyRequest"></a>+<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption"></a>-### UpdatePolicyRequest+### DataSourceExternalSecret.AppRoleAuthOption| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| policy | [Policy](#bytebase-v1-Policy) | | The policy to update.--The policy's `name` field is used to identify the instance to update. Format: {resource name}/policies/{policy type} Workspace resource name: "". Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| allow_missing | [bool](#bool) | | If set to true, and the policy is not found, a new policy will be created. In this situation, `update_mask` is ignored. |------+| role_id | [string](#string) | | |+| secret_id | [string](#string) | | the secret id for the role without ttl. |+| type | [DataSourceExternalSecret.AppRoleAuthOption.SecretType](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption-SecretType) | | |+| mount_path | [string](#string) | | The path where the approle auth method is mounted. |-<a name="bytebase-v1-BackupPlanSchedule"></a>-### BackupPlanSchedule-| Name | Number | Description |-| ---- | ------ | ----------- |-| SCHEDULE_UNSPECIFIED | 0 | |-| UNSET | 1 | |-| DAILY | 2 | |-| WEEKLY | 3 | |+<a name="bytebase-v1-DeleteInstanceRequest"></a>+### DeleteInstanceRequest-<a name="bytebase-v1-MaskingExceptionPolicy-MaskingException-Action"></a>-### MaskingExceptionPolicy.MaskingException.Action+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the instance to delete. Format: instances/{instance} |+| force | [bool](#bool) | | If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. |-| Name | Number | Description |-| ---- | ------ | ----------- |-| ACTION_UNSPECIFIED | 0 | |-| QUERY | 1 | |-| EXPORT | 2 | |-<a name="bytebase-v1-PolicyResourceType"></a>-### PolicyResourceType+<a name="bytebase-v1-GetInstanceRequest"></a>-| Name | Number | Description |-| ---- | ------ | ----------- |-| RESOURCE_TYPE_UNSPECIFIED | 0 | |-| WORKSPACE | 1 | |-| ENVIRONMENT | 2 | |-| PROJECT | 3 | |-| INSTANCE | 4 | |-| DATABASE | 5 | |+### GetInstanceRequest-<a name="bytebase-v1-PolicyType"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the instance to retrieve. Format: instances/{instance} |-### PolicyType-| Name | Number | Description |-| ---- | ------ | ----------- |-| POLICY_TYPE_UNSPECIFIED | 0 | |-| WORKSPACE_IAM | 1 | |-| ROLLOUT_POLICY | 11 | |-| BACKUP_PLAN | 3 | |-| SQL_REVIEW | 4 | |-| MASKING | 5 | |-| SLOW_QUERY | 7 | |-| DISABLE_COPY_DATA | 8 | |-| MASKING_RULE | 9 | |-| MASKING_EXCEPTION | 10 | |-| RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW | 12 | |-<a name="bytebase-v1-SQLReviewRuleLevel"></a>+<a name="bytebase-v1-Instance"></a>-### SQLReviewRuleLevel+### Instance-| Name | Number | Description |-| ---- | ------ | ----------- |-| LEVEL_UNSPECIFIED | 0 | |-| ERROR | 1 | |-| WARNING | 2 | |-| DISABLED | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the instance. Format: instances/{instance} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| engine_version | [string](#string) | | |+| external_link | [string](#string) | | |+| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |+| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |+| activation | [bool](#bool) | | |+| options | [InstanceOptions](#bytebase-v1-InstanceOptions) | | |---<a name="bytebase-v1-OrgPolicyService"></a>-### OrgPolicyService+<a name="bytebase-v1-InstanceOptions"></a>-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetPolicy | [GetPolicyRequest](#bytebase-v1-GetPolicyRequest) | [Policy](#bytebase-v1-Policy) | |-| ListPolicies | [ListPoliciesRequest](#bytebase-v1-ListPoliciesRequest) | [ListPoliciesResponse](#bytebase-v1-ListPoliciesResponse) | |-| CreatePolicy | [CreatePolicyRequest](#bytebase-v1-CreatePolicyRequest) | [Policy](#bytebase-v1-Policy) | |-| UpdatePolicy | [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest) | [Policy](#bytebase-v1-Policy) | |-| DeletePolicy | [DeletePolicyRequest](#bytebase-v1-DeletePolicyRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+### InstanceOptions+InstanceOptions is the option for instances.-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| schema_tenant_mode | [bool](#bool) | | The schema tenant mode is used to determine whether the instance is in schema tenant mode. For Oracle schema tenant mode, the instance a Oracle database and the database is the Oracle schema. |+| sync_interval | [google.protobuf.Duration](#google-protobuf-Duration) | | How often the instance is synced. |+| maximum_connections | [int32](#int32) | | The maximum number of connections. The default is 10 if the value is unset or zero. |-<a name="v1_anomaly_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/anomaly_service.proto-<a name="bytebase-v1-Anomaly"></a>+<a name="bytebase-v1-InstanceResource"></a>-### Anomaly+### InstanceResource| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| resource | [string](#string) | | The resource that is the target of the operation. Format: - Instance: instnaces/{instance} - Database: instnaces/{instance}/databases/{database} |-| type | [Anomaly.AnomalyType](#bytebase-v1-Anomaly-AnomalyType) | | type is the type of the anomaly. |-| severity | [Anomaly.AnomalySeverity](#bytebase-v1-Anomaly-AnomalySeverity) | | severity is the severity of the anomaly. |-| instance_connection_detail | [Anomaly.InstanceConnectionDetail](#bytebase-v1-Anomaly-InstanceConnectionDetail) | | |-| database_connection_detail | [Anomaly.DatabaseConnectionDetail](#bytebase-v1-Anomaly-DatabaseConnectionDetail) | | |-| database_backup_policy_violation_detail | [Anomaly.DatabaseBackupPolicyViolationDetail](#bytebase-v1-Anomaly-DatabaseBackupPolicyViolationDetail) | | |-| database_backup_missing_detail | [Anomaly.DatabaseBackupMissingDetail](#bytebase-v1-Anomaly-DatabaseBackupMissingDetail) | | |-| database_schema_drift_detail | [Anomaly.DatabaseSchemaDriftDetail](#bytebase-v1-Anomaly-DatabaseSchemaDriftDetail) | | |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| title | [string](#string) | | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| engine_version | [string](#string) | | |+| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |+| activation | [bool](#bool) | | |++<a name="bytebase-v1-ListInstancesRequest"></a>-<a name="bytebase-v1-Anomaly-DatabaseBackupMissingDetail"></a>+### ListInstancesRequest-### Anomaly.DatabaseBackupMissingDetail-DatabaseBackupMissingDetail is the detail for database backup missing anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| expected_schedule | [BackupPlanSchedule](#bytebase-v1-BackupPlanSchedule) | | expected_schedule is the expected backup plan schedule in the database. |-| latest_backup_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | latest_backup_time is the latest backup time in the database. |+| parent | [string](#string) | | The parent parameter's value depends on the target resource for the request. - instances.list(): An empty string. This method doesn't require a resource; it simply returns all instances the user has access to. - projects.instances.list(): projects/{PROJECT_ID}. This method lists all instances that have databases in the project. |+| page_size | [int32](#int32) | | The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 50 instances will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListInstances` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListInstances` must match the call that provided the page token. |+| show_deleted | [bool](#bool) | | Show deleted instances if specified. |-<a name="bytebase-v1-Anomaly-DatabaseBackupPolicyViolationDetail"></a>+<a name="bytebase-v1-ListInstancesResponse"></a>++### ListInstancesResponse-### Anomaly.DatabaseBackupPolicyViolationDetail-DatabaseBackupPolicyViolationDetail is the detail for database backup policy violation anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | parent is the parent of the database. Format: environments/{environment} |-| expected_schedule | [BackupPlanSchedule](#bytebase-v1-BackupPlanSchedule) | | expected_schedule is the expected backup plan schedule in the parent. |-| actual_schedule | [BackupPlanSchedule](#bytebase-v1-BackupPlanSchedule) | | actual_schedule is the actual backup plan schedule in the database. |+| instances | [Instance](#bytebase-v1-Instance) | repeated | The instances from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-Anomaly-DatabaseConnectionDetail"></a>+<a name="bytebase-v1-RemoveDataSourceRequest"></a>-### Anomaly.DatabaseConnectionDetail-Database level anomaly detial.+### RemoveDataSourceRequest-DatbaaseConnectionDetail is the detail for database connection anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| detail | [string](#string) | | detail is the detail of the database connection failure. |+| instance | [string](#string) | | The name of the instance to remove a data source from. Format: instances/{instance} |+| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. Only READ_ONLY data source can be removed. |-<a name="bytebase-v1-Anomaly-DatabaseSchemaDriftDetail"></a>+<a name="bytebase-v1-SearchInstancesRequest"></a>++### SearchInstancesRequest-### Anomaly.DatabaseSchemaDriftDetail-DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| record_version | [string](#string) | | record_version is the record version of the database schema drift. |-| expected_schema | [string](#string) | | expected_schema is the expected schema in the database. |-| actual_schema | [string](#string) | | actual_schema is the actual schema in the database. |+| parent | [string](#string) | | The parent parameter's value depends on the target resource for the request. - instances.list(): An empty string. This method doesn't require a resource; it simply returns all instances the user has access to. - projects.instances.list(): projects/{PROJECT_ID}. This method lists all instances that have databases in the project. |+| show_deleted | [bool](#bool) | | Show deleted instances if specified. |-<a name="bytebase-v1-Anomaly-InstanceConnectionDetail"></a>+<a name="bytebase-v1-SearchInstancesResponse"></a>-### Anomaly.InstanceConnectionDetail-Instance level anomaly detail.+### SearchInstancesResponse-InstanceConnectionDetail is the detail for instance connection anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| detail | [string](#string) | | detail is the detail of the instance connection failure. |+| instances | [Instance](#bytebase-v1-Instance) | repeated | The instances from the specified request. |-<a name="bytebase-v1-SearchAnomaliesRequest"></a>+<a name="bytebase-v1-SyncInstanceRequest"></a>-### SearchAnomaliesRequest+### SyncInstanceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| filter | [string](#string) | | filter is the filter to apply on the search anomaly request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Only support filter by resource and type for now. For example: Search the anomalies of a specific resource: 'resource="instances/{instance}".' Search the specified types of anomalies: 'type="DATABASE_BACKUP_POLICY_VIOLATION" | "MIGRATION_SCHEMA".' |-| page_size | [int32](#int32) | | Not used. The maximum number of anomalies to return. The service may return fewer than this value. If unspecified, at most 50 anomalies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `SearchAnomalies` call. Provide this to retrieve the subsequent page.+| name | [string](#string) | | The name of instance. Format: instances/{instance} |-When paginating, all other parameters provided to `SearchAnomalies` must match the call that provided the page token. |+<a name="bytebase-v1-SyncInstanceResponse"></a>-<a name="bytebase-v1-SearchAnomaliesResponse"></a>+### SyncInstanceResponse-### SearchAnomaliesResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| anomalies | [Anomaly](#bytebase-v1-Anomaly) | repeated | anomalies is the list of anomalies. |-| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+<a name="bytebase-v1-SyncSlowQueriesRequest"></a>+### SyncSlowQueriesRequest--<a name="bytebase-v1-Anomaly-AnomalySeverity"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The name of the instance to sync slow queries. Format: instances/{instance} for one instance or projects/{project} for one project. |-### Anomaly.AnomalySeverity-AnomalySeverity is the severity of the anomaly.-| Name | Number | Description |-| ---- | ------ | ----------- |-| ANOMALY_SEVERITY_UNSPECIFIED | 0 | Unspecified anomaly severity. |-| MEDIUM | 1 | MEDIUM is the info level anomaly severity. |-| HIGH | 2 | HIGH is the warning level anomaly severity. |-| CRITICAL | 3 | CRITICAL is the critical level anomaly severity. |-<a name="bytebase-v1-Anomaly-AnomalyType"></a>-### Anomaly.AnomalyType-AnomalyType is the type of the anomaly.+<a name="bytebase-v1-UndeleteInstanceRequest"></a>-| Name | Number | Description |-| ---- | ------ | ----------- |-| ANOMALY_TYPE_UNSPECIFIED | 0 | Unspecified anomaly type. |-| INSTANCE_CONNECTION | 1 | Instance level anomaly.+### UndeleteInstanceRequest-INSTANCE_CONNECTION is the anomaly type for instance connection, e.g. the instance is down. |-| MIGRATION_SCHEMA | 2 | MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing. |-| DATABASE_BACKUP_POLICY_VIOLATION | 3 | Database level anomaly.-DATABASE_BACKUP_POLICY_VIOLATION is the anomaly type for database backup policy violation, e.g. the database backup policy is not meet the environment backup policy. |-| DATABASE_BACKUP_MISSING | 4 | DATABASE_BACKUP_MISSING is the anomaly type for the backup missing, e.g. the backup is missing. |-| DATABASE_CONNECTION | 5 | DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted. |-| DATABASE_SCHEMA_DRIFT | 6 | DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift, e.g. the database schema had been changed without bytebase migration. |++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the deleted instance. Format: instances/{instance} |---<a name="bytebase-v1-AnomalyService"></a>-### AnomalyService+<a name="bytebase-v1-UpdateDataSourceRequest"></a>+### UpdateDataSourceRequest-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| SearchAnomalies | [SearchAnomaliesRequest](#bytebase-v1-SearchAnomaliesRequest) | [SearchAnomaliesResponse](#bytebase-v1-SearchAnomaliesResponse) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| instance | [string](#string) | | The name of the instance to update a data source. Format: instances/{instance} |+| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |-<a name="v1_auth_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/auth_service.proto-<a name="bytebase-v1-CreateUserRequest"></a>+<a name="bytebase-v1-UpdateInstanceRequest"></a>-### CreateUserRequest+### UpdateInstanceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| user | [User](#bytebase-v1-User) | | The user to create. |+| instance | [Instance](#bytebase-v1-Instance) | | The instance to update.+The instance's `name` field is used to identify the instance to update. Format: instances/{instance} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-DeleteUserRequest"></a>+-### DeleteUserRequest+<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption-SecretType"></a>--| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the user to delete. Format: users/{user} |-+### DataSourceExternalSecret.AppRoleAuthOption.SecretType+| Name | Number | Description |+| ---- | ------ | ----------- |+| SECRET_TYPE_UNSPECIFIED | 0 | |+| PLAIN | 1 | |+| ENVIRONMENT | 2 | |-<a name="bytebase-v1-GetUserRequest"></a>+<a name="bytebase-v1-DataSourceExternalSecret-AuthType"></a>-### GetUserRequest+### DataSourceExternalSecret.AuthType+| Name | Number | Description |+| ---- | ------ | ----------- |+| AUTH_TYPE_UNSPECIFIED | 0 | |+| TOKEN | 1 | ref: https://developer.hashicorp.com/vault/docs/auth/token |+| APP_ROLE | 2 | ref: https://developer.hashicorp.com/vault/docs/auth/approle |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the user to retrieve. Format: users/{user uid or user email} |+<a name="bytebase-v1-DataSourceExternalSecret-SecretType"></a>+### DataSourceExternalSecret.SecretType+| Name | Number | Description |+| ---- | ------ | ----------- |+| SAECRET_TYPE_UNSPECIFIED | 0 | |+| VAULT_KV_V2 | 1 | ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2 |-<a name="bytebase-v1-IdentityProviderContext"></a>-### IdentityProviderContext+<a name="bytebase-v1-DataSourceType"></a>+### DataSourceType-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| oauth2_context | [OAuth2IdentityProviderContext](#bytebase-v1-OAuth2IdentityProviderContext) | | |-| oidc_context | [OIDCIdentityProviderContext](#bytebase-v1-OIDCIdentityProviderContext) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| DATA_SOURCE_UNSPECIFIED | 0 | |+| ADMIN | 1 | |+| READ_ONLY | 2 | |++-<a name="bytebase-v1-ListUsersRequest"></a>+<a name="bytebase-v1-InstanceService"></a>-### ListUsersRequest+### InstanceService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetInstance | [GetInstanceRequest](#bytebase-v1-GetInstanceRequest) | [Instance](#bytebase-v1-Instance) | |+| ListInstances | [ListInstancesRequest](#bytebase-v1-ListInstancesRequest) | [ListInstancesResponse](#bytebase-v1-ListInstancesResponse) | |+| SearchInstances | [SearchInstancesRequest](#bytebase-v1-SearchInstancesRequest) | [SearchInstancesResponse](#bytebase-v1-SearchInstancesResponse) | |+| CreateInstance | [CreateInstanceRequest](#bytebase-v1-CreateInstanceRequest) | [Instance](#bytebase-v1-Instance) | |+| UpdateInstance | [UpdateInstanceRequest](#bytebase-v1-UpdateInstanceRequest) | [Instance](#bytebase-v1-Instance) | |+| DeleteInstance | [DeleteInstanceRequest](#bytebase-v1-DeleteInstanceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteInstance | [UndeleteInstanceRequest](#bytebase-v1-UndeleteInstanceRequest) | [Instance](#bytebase-v1-Instance) | |+| SyncInstance | [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest) | [SyncInstanceResponse](#bytebase-v1-SyncInstanceResponse) | |+| BatchSyncInstance | [BatchSyncInstanceRequest](#bytebase-v1-BatchSyncInstanceRequest) | [BatchSyncInstanceResponse](#bytebase-v1-BatchSyncInstanceResponse) | |+| AddDataSource | [AddDataSourceRequest](#bytebase-v1-AddDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |+| RemoveDataSource | [RemoveDataSourceRequest](#bytebase-v1-RemoveDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |+| UpdateDataSource | [UpdateDataSourceRequest](#bytebase-v1-UpdateDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |+| SyncSlowQueries | [SyncSlowQueriesRequest](#bytebase-v1-SyncSlowQueriesRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of users to return. The service may return fewer than this value. If unspecified, at most 50 users will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListUsers` call. Provide this to retrieve the subsequent page.+-When paginating, all other parameters provided to `ListUsers` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted users if specified. |+<a name="v1_vcs-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/vcs.proto-<a name="bytebase-v1-ListUsersResponse"></a>+<a name="bytebase-v1-Commit"></a>-### ListUsersResponse+### Commit| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| users | [User](#bytebase-v1-User) | repeated | The users from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| id | [string](#string) | | |+| title | [string](#string) | | |+| message | [string](#string) | | |+| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| url | [string](#string) | | |+| author_name | [string](#string) | | |+| author_email | [string](#string) | | |+| added_list | [string](#string) | repeated | |+| modified_list | [string](#string) | repeated | |-<a name="bytebase-v1-LoginRequest"></a>+<a name="bytebase-v1-PushEvent"></a>-### LoginRequest+### PushEvent| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| email | [string](#string) | | |-| password | [string](#string) | | |-| web | [bool](#bool) | | If web is set, we will set access token, refresh token, and user to the cookie. |-| idp_name | [string](#string) | | The name of the identity provider. Format: idps/{idp} |-| idp_context | [IdentityProviderContext](#bytebase-v1-IdentityProviderContext) | | The idp_context is using to get the user information from identity provider. |-| otp_code | [string](#string) | optional | The otp_code is used to verify the user's identity by MFA. |-| recovery_code | [string](#string) | optional | The recovery_code is used to recovery the user's identity with MFA. |-| mfa_temp_token | [string](#string) | optional | The mfa_temp_token is used to verify the user's identity by MFA. |----+| vcs_type | [VcsType](#bytebase-v1-VcsType) | | |+| ref | [string](#string) | | |+| before | [string](#string) | | |+| after | [string](#string) | | |+| repository_id | [string](#string) | | |+| repository_url | [string](#string) | | |+| repository_full_path | [string](#string) | | |+| author_name | [string](#string) | | |+| commits | [Commit](#bytebase-v1-Commit) | repeated | |-<a name="bytebase-v1-LoginResponse"></a>-### LoginResponse+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| token | [string](#string) | | |-| mfa_temp_token | [string](#string) | optional | |+<a name="bytebase-v1-VcsType"></a>+### VcsType+| Name | Number | Description |+| ---- | ------ | ----------- |+| VCS_TYPE_UNSPECIFIED | 0 | |+| GITLAB | 1 | |+| GITHUB | 2 | |+| BITBUCKET | 3 | |-<a name="bytebase-v1-LogoutRequest"></a>+-### LogoutRequest+++<a name="v1_database_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/database_service.proto-<a name="bytebase-v1-OAuth2IdentityProviderContext"></a>-### OAuth2IdentityProviderContext+<a name="bytebase-v1-AdviseIndexRequest"></a>+### AdviseIndexRequest+AdviseIndexRequest is the request of advising index.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| code | [string](#string) | | |+| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |+| statement | [string](#string) | | The statement to be advised. |-<a name="bytebase-v1-OIDCIdentityProviderContext"></a>+<a name="bytebase-v1-AdviseIndexResponse"></a>-### OIDCIdentityProviderContext+### AdviseIndexResponse+AdviseIndexResponse is the response of advising index.+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| current_index | [string](#string) | | The current index of the statement used. |+| suggestion | [string](#string) | | The suggested index of the statement. |+| create_index_statement | [string](#string) | | The create index statement of the suggested index. |+-<a name="bytebase-v1-UndeleteUserRequest"></a>+<a name="bytebase-v1-BatchUpdateDatabasesRequest"></a>-### UndeleteUserRequest+### BatchUpdateDatabasesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted user. Format: users/{user} |+| parent | [string](#string) | | The parent resource shared by all databases being updated. Format: instances/{instance} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the project of databases for now. |+| requests | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | repeated | The request message specifying the resources to update. A maximum of 1000 databases can be modified in a batch. |-<a name="bytebase-v1-UpdateUserRequest"></a>+<a name="bytebase-v1-BatchUpdateDatabasesResponse"></a>-### UpdateUserRequest+### BatchUpdateDatabasesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| user | [User](#bytebase-v1-User) | | The user to update.--The user's `name` field is used to identify the user to update. Format: users/{user} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| otp_code | [string](#string) | optional | The otp_code is used to verify the user's identity by MFA. |-| regenerate_temp_mfa_secret | [bool](#bool) | | The regenerate_temp_mfa_secret flag means to regenerate temporary MFA secret for user. This is used for MFA setup. The temporary MFA secret and recovery codes will be returned in the response. |-| regenerate_recovery_codes | [bool](#bool) | | The regenerate_recovery_codes flag means to regenerate recovery codes for user. |+| databases | [Database](#bytebase-v1-Database) | repeated | Databases updated. |-<a name="bytebase-v1-User"></a>+<a name="bytebase-v1-ChangeHistory"></a>-### User+### ChangeHistory| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the user. Format: users/{user}. {user} is a system-generated unique ID. |-| state | [State](#bytebase-v1-State) | | |-| email | [string](#string) | | |-| title | [string](#string) | | |-| user_type | [UserType](#bytebase-v1-UserType) | | |-| password | [string](#string) | | |-| service_key | [string](#string) | | |-| mfa_enabled | [bool](#bool) | | The mfa_enabled flag means if the user has enabled MFA. |-| mfa_secret | [string](#string) | | The mfa_secret is the temporary secret using in two phase verification. |-| recovery_codes | [string](#string) | repeated | The recovery_codes is the temporary recovery codes using in two phase verification. |-| phone | [string](#string) | | Should be a valid E.164 compliant phone number. Could be empty. |-| roles | [string](#string) | repeated | The roles of the user. This filed is to supersede the `user_role` field. |+| name | [string](#string) | | Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| uid | [string](#string) | | |+| creator | [string](#string) | | Format: users/[email protected] |+| updater | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| release_version | [string](#string) | | release version of Bytebase |+| source | [ChangeHistory.Source](#bytebase-v1-ChangeHistory-Source) | | |+| type | [ChangeHistory.Type](#bytebase-v1-ChangeHistory-Type) | | |+| status | [ChangeHistory.Status](#bytebase-v1-ChangeHistory-Status) | | |+| version | [string](#string) | | |+| description | [string](#string) | | |+| statement | [string](#string) | | The statement is used for preview purpose. |+| statement_size | [int64](#int64) | | |+| statement_sheet | [string](#string) | | The name of the sheet resource. Format: projects/{project}/sheets/{sheet} |+| schema | [string](#string) | | |+| schema_size | [int64](#int64) | | |+| prev_schema | [string](#string) | | |+| prev_schema_size | [int64](#int64) | | |+| execution_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |+| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |+| push_event | [PushEvent](#bytebase-v1-PushEvent) | | |+| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |-+<a name="bytebase-v1-ChangedResourceDatabase"></a>-<a name="bytebase-v1-UserType"></a>+### ChangedResourceDatabase-### UserType-| Name | Number | Description |-| ---- | ------ | ----------- |-| USER_TYPE_UNSPECIFIED | 0 | |-| USER | 1 | |-| SYSTEM_BOT | 2 | |-| SERVICE_ACCOUNT | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | |+| schemas | [ChangedResourceSchema](#bytebase-v1-ChangedResourceSchema) | repeated | |---<a name="bytebase-v1-AuthService"></a>-### AuthService+<a name="bytebase-v1-ChangedResourceSchema"></a>+### ChangedResourceSchema-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetUser | [GetUserRequest](#bytebase-v1-GetUserRequest) | [User](#bytebase-v1-User) | |-| ListUsers | [ListUsersRequest](#bytebase-v1-ListUsersRequest) | [ListUsersResponse](#bytebase-v1-ListUsersResponse) | |-| CreateUser | [CreateUserRequest](#bytebase-v1-CreateUserRequest) | [User](#bytebase-v1-User) | |-| UpdateUser | [UpdateUserRequest](#bytebase-v1-UpdateUserRequest) | [User](#bytebase-v1-User) | |-| DeleteUser | [DeleteUserRequest](#bytebase-v1-DeleteUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteUser | [UndeleteUserRequest](#bytebase-v1-UndeleteUserRequest) | [User](#bytebase-v1-User) | |-| Login | [LoginRequest](#bytebase-v1-LoginRequest) | [LoginResponse](#bytebase-v1-LoginResponse) | |-| Logout | [LogoutRequest](#bytebase-v1-LogoutRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | |+| tables | [ChangedResourceTable](#bytebase-v1-ChangedResourceTable) | repeated | |-<a name="v1_instance_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/instance_service.proto-<a name="bytebase-v1-AddDataSourceRequest"></a>+<a name="bytebase-v1-ChangedResourceTable"></a>-### AddDataSourceRequest+### ChangedResourceTable| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instance | [string](#string) | | The name of the instance to add a data source to. Format: instances/{instance} |-| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. Only READ_ONLY data source can be added. |-| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |+| name | [string](#string) | | |-<a name="bytebase-v1-BatchSyncInstanceRequest"></a>+<a name="bytebase-v1-ChangedResources"></a>-### BatchSyncInstanceRequest+### ChangedResources| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| requests | [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest) | repeated | The request message specifying the instances to sync. A maximum of 1000 instances can be synced in a batch. |-------<a name="bytebase-v1-BatchSyncInstanceResponse"></a>--### BatchSyncInstanceResponse-+| databases | [ChangedResourceDatabase](#bytebase-v1-ChangedResourceDatabase) | repeated | |-<a name="bytebase-v1-CreateInstanceRequest"></a>+<a name="bytebase-v1-ColumnConfig"></a>-### CreateInstanceRequest+### ColumnConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instance | [Instance](#bytebase-v1-Instance) | | The instance to create. |-| instance_id | [string](#string) | | The ID to use for the instance, which will become the final component of the instance's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |+| name | [string](#string) | | The name is the name of a column. |+| semantic_type_id | [string](#string) | | |+| labels | [ColumnConfig.LabelsEntry](#bytebase-v1-ColumnConfig-LabelsEntry) | repeated | The user labels for a column. |-<a name="bytebase-v1-DataSource"></a>+<a name="bytebase-v1-ColumnConfig-LabelsEntry"></a>-### DataSource+### ColumnConfig.LabelsEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | |-| type | [DataSourceType](#bytebase-v1-DataSourceType) | | |-| username | [string](#string) | | |-| password | [string](#string) | | |-| ssl_ca | [string](#string) | | |-| ssl_cert | [string](#string) | | |-| ssl_key | [string](#string) | | |-| host | [string](#string) | | |-| port | [string](#string) | | |-| database | [string](#string) | | |-| srv | [bool](#bool) | | srv and authentication_database are used for MongoDB. |-| authentication_database | [string](#string) | | |-| sid | [string](#string) | | sid and service_name are used for Oracle. |-| service_name | [string](#string) | | |-| ssh_host | [string](#string) | | Connection over SSH. The hostname of the SSH server agent. Required. |-| ssh_port | [string](#string) | | The port of the SSH server agent. It's 22 typically. Required. |-| ssh_user | [string](#string) | | The user to login the server. Required. |-| ssh_password | [string](#string) | | The password to login the server. If it's empty string, no password is required. |-| ssh_private_key | [string](#string) | | The private key to login the server. If it's empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK"). |-| authentication_private_key | [string](#string) | | PKCS#8 private key in PEM format. If it's empty string, no private key is required. Used for authentication when connecting to the data source. |-| external_secret | [DataSourceExternalSecret](#bytebase-v1-DataSourceExternalSecret) | | |-+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="bytebase-v1-DataSourceExternalSecret"></a>-### DataSourceExternalSecret+<a name="bytebase-v1-ColumnMetadata"></a>+### ColumnMetadata+ColumnMetadata is the metadata for columns.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| secret_type | [DataSourceExternalSecret.SecretType](#bytebase-v1-DataSourceExternalSecret-SecretType) | | |-| url | [string](#string) | | |-| auth_type | [DataSourceExternalSecret.AuthType](#bytebase-v1-DataSourceExternalSecret-AuthType) | | |-| app_role | [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption) | | |-| token | [string](#string) | | |-| engine_name | [string](#string) | | engine name is the name for secret engine. |-| secret_name | [string](#string) | | the secret name in the engine to store the password. |-| password_key_name | [string](#string) | | the key name for the password. |+| name | [string](#string) | | The name is the name of a column. |+| position | [int32](#int32) | | The position is the position in columns. |+| has_default | [bool](#bool) | | |+| default_null | [bool](#bool) | | |+| default_string | [string](#string) | | |+| default_expression | [string](#string) | | |+| on_update | [string](#string) | | The on_update is the on update action of a column. For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value. |+| nullable | [bool](#bool) | | The nullable is the nullable of a column. |+| type | [string](#string) | | The type is the type of a column. |+| character_set | [string](#string) | | The character_set is the character_set of a column. |+| collation | [string](#string) | | The collation is the collation of a column. |+| comment | [string](#string) | | The comment is the comment of a column. classification and user_comment is parsed from the comment. |+| classification | [string](#string) | | The classification is the classification of a column parsed from the comment. |+| user_comment | [string](#string) | | The user_comment is the user comment of a column parsed from the comment. |+| effective_masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | The effective_masking_level is the effective masking level of the column, evaluate from the column masking data and global masking rules. |-<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption"></a>+<a name="bytebase-v1-Database"></a>-### DataSourceExternalSecret.AppRoleAuthOption+### Database| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role_id | [string](#string) | | |-| secret_id | [string](#string) | | the secret id for the role without ttl. |-| type | [DataSourceExternalSecret.AppRoleAuthOption.SecretType](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption-SecretType) | | |-| mount_path | [string](#string) | | The path where the approle auth method is mounted. |+| name | [string](#string) | | The name of the database. Format: instances/{instance}/databases/{database} {database} is the database name in the instance. |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| sync_state | [State](#bytebase-v1-State) | | The existence of a database on latest sync. |+| successful_sync_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest synchronization time. |+| project | [string](#string) | | The project for a database. Format: projects/{project} |+| schema_version | [string](#string) | | The version of database schema. |+| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |+| effective_environment | [string](#string) | | The effective environment based on environment tag above and environment tag on the instance. Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-overview. |+| labels | [Database.LabelsEntry](#bytebase-v1-Database-LabelsEntry) | repeated | Labels will be used for deployment and policy control. |+| instance_resource | [InstanceResource](#bytebase-v1-InstanceResource) | | The instance resource. |-<a name="bytebase-v1-DeleteInstanceRequest"></a>+<a name="bytebase-v1-Database-LabelsEntry"></a>-### DeleteInstanceRequest+### Database.LabelsEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance to delete. Format: instances/{instance} |-| force | [bool](#bool) | | If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. |+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="bytebase-v1-GetInstanceRequest"></a>+<a name="bytebase-v1-DatabaseConfig"></a>-### GetInstanceRequest+### DatabaseConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance to retrieve. Format: instances/{instance} |-+| name | [string](#string) | | |+| schema_configs | [SchemaConfig](#bytebase-v1-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |-<a name="bytebase-v1-Instance"></a>-### Instance+<a name="bytebase-v1-DatabaseMetadata"></a>+### DatabaseMetadata+DatabaseMetadata is the metadata for databases.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance. Format: instances/{instance} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |-| engine_version | [string](#string) | | |-| external_link | [string](#string) | | |-| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |-| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |-| activation | [bool](#bool) | | |-| options | [InstanceOptions](#bytebase-v1-InstanceOptions) | | |+| name | [string](#string) | | The database metadata name.++Format: instances/{instance}/databases/{database}/metadata |+| schemas | [SchemaMetadata](#bytebase-v1-SchemaMetadata) | repeated | The schemas is the list of schemas in a database. |+| character_set | [string](#string) | | The character_set is the character set of a database. |+| collation | [string](#string) | | The collation is the collation of a database. |+| extensions | [ExtensionMetadata](#bytebase-v1-ExtensionMetadata) | repeated | The extensions is the list of extensions in a database. |+| schema_configs | [SchemaConfig](#bytebase-v1-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |-<a name="bytebase-v1-InstanceOptions"></a>+<a name="bytebase-v1-DatabaseSchema"></a>-### InstanceOptions-InstanceOptions is the option for instances.+### DatabaseSchema+DatabaseSchema is the metadata for databases.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema_tenant_mode | [bool](#bool) | | The schema tenant mode is used to determine whether the instance is in schema tenant mode. For Oracle schema tenant mode, the instance a Oracle database and the database is the Oracle schema. |-| sync_interval | [google.protobuf.Duration](#google-protobuf-Duration) | | How often the instance is synced. |-| maximum_connections | [int32](#int32) | | The maximum number of connections. The default is 10 if the value is unset or zero. |+| schema | [string](#string) | | The schema dump from database. |-<a name="bytebase-v1-InstanceResource"></a>+<a name="bytebase-v1-DeleteSecretRequest"></a>-### InstanceResource+### DeleteSecretRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| title | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |-| engine_version | [string](#string) | | |-| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |-| activation | [bool](#bool) | | |-+| name | [string](#string) | | The name of the secret to be deleted. Format: instances/{instance}/databases/{database}/secrets/{secret} |-<a name="bytebase-v1-ListInstancesRequest"></a>-### ListInstancesRequest+<a name="bytebase-v1-DependentColumn"></a>+### DependentColumn+DependentColumn is the metadata for dependent columns.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent parameter's value depends on the target resource for the request. - instances.list(): An empty string. This method doesn't require a resource; it simply returns all instances the user has access to. - projects.instances.list(): projects/{PROJECT_ID}. This method lists all instances that have databases in the project. |-| page_size | [int32](#int32) | | The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 50 instances will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListInstances` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListInstances` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted instances if specified. |+| schema | [string](#string) | | The schema is the schema of a reference column. |+| table | [string](#string) | | The table is the table of a reference column. |+| column | [string](#string) | | The column is the name of a reference column. |-<a name="bytebase-v1-ListInstancesResponse"></a>+<a name="bytebase-v1-DiffSchemaRequest"></a>-### ListInstancesResponse+### DiffSchemaRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instances | [Instance](#bytebase-v1-Instance) | repeated | The instances from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the database or change history. Format: database: instances/{instance}/databases/{database} change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| schema | [string](#string) | | The target schema. |+| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |-<a name="bytebase-v1-RemoveDataSourceRequest"></a>+<a name="bytebase-v1-DiffSchemaResponse"></a>-### RemoveDataSourceRequest+### DiffSchemaResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instance | [string](#string) | | The name of the instance to remove a data source from. Format: instances/{instance} |-| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. Only READ_ONLY data source can be removed. |-+| diff | [string](#string) | | |-<a name="bytebase-v1-SearchInstancesRequest"></a>-### SearchInstancesRequest+<a name="bytebase-v1-ExtensionMetadata"></a>+### ExtensionMetadata+ExtensionMetadata is the metadata for extensions.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent parameter's value depends on the target resource for the request. - instances.list(): An empty string. This method doesn't require a resource; it simply returns all instances the user has access to. - projects.instances.list(): projects/{PROJECT_ID}. This method lists all instances that have databases in the project. |-| show_deleted | [bool](#bool) | | Show deleted instances if specified. |+| name | [string](#string) | | The name is the name of an extension. |+| schema | [string](#string) | | The schema is the extension that is installed to. But the extension usage is not limited to the schema. |+| version | [string](#string) | | The version is the version of an extension. |+| description | [string](#string) | | The description is the description of an extension. |-<a name="bytebase-v1-SearchInstancesResponse"></a>+<a name="bytebase-v1-ExternalTableMetadata"></a>-### SearchInstancesResponse+### ExternalTableMetadata| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instances | [Instance](#bytebase-v1-Instance) | repeated | The instances from the specified request. |-+| name | [string](#string) | | The name is the name of a external table. |+| external_server_name | [string](#string) | | The external_server_name is the name of the external server. |+| external_database_name | [string](#string) | | The external_database_name is the name of the external database. |+| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a foreign table. |-<a name="bytebase-v1-SyncInstanceRequest"></a>-### SyncInstanceRequest+<a name="bytebase-v1-ForeignKeyMetadata"></a>+### ForeignKeyMetadata+ForeignKeyMetadata is the metadata for foreign keys.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of instance. Format: instances/{instance} |+| name | [string](#string) | | The name is the name of a foreign key. |+| columns | [string](#string) | repeated | The columns are the ordered referencing columns of a foreign key. |+| referenced_schema | [string](#string) | | The referenced_schema is the referenced schema name of a foreign key. It is an empty string for databases without such concept such as MySQL. |+| referenced_table | [string](#string) | | The referenced_table is the referenced table name of a foreign key. |+| referenced_columns | [string](#string) | repeated | The referenced_columns are the ordered referenced columns of a foreign key. |+| on_delete | [string](#string) | | The on_delete is the on delete action of a foreign key. |+| on_update | [string](#string) | | The on_update is the on update action of a foreign key. |+| match_type | [string](#string) | | The match_type is the match type of a foreign key. The match_type is the PostgreSQL specific field. It's empty string for other databases. |-<a name="bytebase-v1-SyncInstanceResponse"></a>+<a name="bytebase-v1-FunctionMetadata"></a>-### SyncInstanceResponse+### FunctionMetadata+FunctionMetadata is the metadata for functions.+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name is the name of a view. |+| definition | [string](#string) | | The definition is the definition of a view. |-<a name="bytebase-v1-SyncSlowQueriesRequest"></a>-### SyncSlowQueriesRequest+<a name="bytebase-v1-GetChangeHistoryRequest"></a>++### GetChangeHistoryRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the instance to sync slow queries. Format: instances/{instance} for one instance or projects/{project} for one project. |+| name | [string](#string) | | The name of the change history to retrieve. Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |+| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |+| concise | [bool](#bool) | | When true, the schema dump will be concise. |-<a name="bytebase-v1-UndeleteInstanceRequest"></a>+<a name="bytebase-v1-GetDatabaseMetadataRequest"></a>-### UndeleteInstanceRequest+### GetDatabaseMetadataRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted instance. Format: instances/{instance} |+| name | [string](#string) | | The name of the database to retrieve metadata. Format: instances/{instance}/databases/{database}/metadata |+| view | [DatabaseMetadataView](#bytebase-v1-DatabaseMetadataView) | | The view to return. Defaults to DATABASE_METADATA_VIEW_BASIC. |+| filter | [string](#string) | | The filter used for a specific schema object such as "schemas/schema-a/tables/table-a". The column masking level will only be returned when a table filter is used. |-<a name="bytebase-v1-UpdateDataSourceRequest"></a>+<a name="bytebase-v1-GetDatabaseRequest"></a>-### UpdateDataSourceRequest+### GetDatabaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instance | [string](#string) | | The name of the instance to update a data source. Format: instances/{instance} |-| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |+| name | [string](#string) | | The name of the database to retrieve. Format: instances/{instance}/databases/{database} |-<a name="bytebase-v1-UpdateInstanceRequest"></a>+<a name="bytebase-v1-GetDatabaseSchemaRequest"></a>-### UpdateInstanceRequest+### GetDatabaseSchemaRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instance | [Instance](#bytebase-v1-Instance) | | The instance to update.+| name | [string](#string) | | The name of the database to retrieve schema. Format: instances/{instance}/databases/{database}/schema |+| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |+| concise | [bool](#bool) | | When true, the schema dump will be concise. For Oracle, there will be tables and indexes only for Sync Schema. |-The instance's `name` field is used to identify the instance to update. Format: instances/{instance} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-+<a name="bytebase-v1-IndexMetadata"></a>+### IndexMetadata+IndexMetadata is the metadata for indexes.-<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption-SecretType"></a>-### DataSourceExternalSecret.AppRoleAuthOption.SecretType+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name is the name of an index. |+| expressions | [string](#string) | repeated | The expressions are the ordered columns or expressions of an index. This could refer to a column or an expression. |+| key_length | [int64](#int64) | repeated | The key_lengths are the ordered key lengths of an index. If the key length is not specified, it's -1. |+| type | [string](#string) | | The type is the type of an index. |+| unique | [bool](#bool) | | The unique is whether the index is unique. |+| primary | [bool](#bool) | | The primary is whether the index is a primary key index. |+| visible | [bool](#bool) | | The visible is whether the index is visible. |+| comment | [string](#string) | | The comment is the comment of an index. |+| definition | [string](#string) | | The definition of an index. |-| Name | Number | Description |-| ---- | ------ | ----------- |-| SECRET_TYPE_UNSPECIFIED | 0 | |-| PLAIN | 1 | |-| ENVIRONMENT | 2 | |-<a name="bytebase-v1-DataSourceExternalSecret-AuthType"></a>-### DataSourceExternalSecret.AuthType+<a name="bytebase-v1-ListChangeHistoriesRequest"></a>+### ListChangeHistoriesRequest-| Name | Number | Description |-| ---- | ------ | ----------- |-| AUTH_TYPE_UNSPECIFIED | 0 | |-| TOKEN | 1 | ref: https://developer.hashicorp.com/vault/docs/auth/token |-| APP_ROLE | 2 | ref: https://developer.hashicorp.com/vault/docs/auth/approle |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent of the change histories. Format: instances/{instance}/databases/{database} |+| page_size | [int32](#int32) | | The maximum number of change histories to return. The service may return fewer than this value. If unspecified, at most 10 change histories will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListChangeHistories` call. Provide this to retrieve the subsequent page.-<a name="bytebase-v1-DataSourceExternalSecret-SecretType"></a>+When paginating, all other parameters provided to `ListChangeHistories` must match the call that provided the page token. |+| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |+| filter | [string](#string) | | The filter of the change histories. Follow the CEL syntax. currently, we have one function for CEL: - tableExists(database, schema, table): return true if the table exists in changed resources.-### DataSourceExternalSecret.SecretType+examples: Use tableExists("db", "public", "table1") to filter the change histories which have the table "table1" in the schema "public" of the database "db". For MySQL, the schema is always "", such as tableExists("db", "", "table1").+Combine multiple functions with "&&" and "||", we MUST use the Disjunctive Normal Form(DNF). In other words, the CEL expression consists of several parts connected by OR operators. For example, the following expression is valid: ( tableExists("db", "public", "table1") && tableExists("db", "public", "table2") ) || ( tableExists("db", "public", "table3") ) |-| Name | Number | Description |-| ---- | ------ | ----------- |-| SAECRET_TYPE_UNSPECIFIED | 0 | |-| VAULT_KV_V2 | 1 | ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2 |-<a name="bytebase-v1-DataSourceType"></a>-### DataSourceType+<a name="bytebase-v1-ListChangeHistoriesResponse"></a>-| Name | Number | Description |-| ---- | ------ | ----------- |-| DATA_SOURCE_UNSPECIFIED | 0 | |-| ADMIN | 1 | |-| READ_ONLY | 2 | |+### ListChangeHistoriesResponse--+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| change_histories | [ChangeHistory](#bytebase-v1-ChangeHistory) | repeated | The list of change histories. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-InstanceService"></a>-### InstanceService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetInstance | [GetInstanceRequest](#bytebase-v1-GetInstanceRequest) | [Instance](#bytebase-v1-Instance) | |-| ListInstances | [ListInstancesRequest](#bytebase-v1-ListInstancesRequest) | [ListInstancesResponse](#bytebase-v1-ListInstancesResponse) | |-| SearchInstances | [SearchInstancesRequest](#bytebase-v1-SearchInstancesRequest) | [SearchInstancesResponse](#bytebase-v1-SearchInstancesResponse) | |-| CreateInstance | [CreateInstanceRequest](#bytebase-v1-CreateInstanceRequest) | [Instance](#bytebase-v1-Instance) | |-| UpdateInstance | [UpdateInstanceRequest](#bytebase-v1-UpdateInstanceRequest) | [Instance](#bytebase-v1-Instance) | |-| DeleteInstance | [DeleteInstanceRequest](#bytebase-v1-DeleteInstanceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteInstance | [UndeleteInstanceRequest](#bytebase-v1-UndeleteInstanceRequest) | [Instance](#bytebase-v1-Instance) | |-| SyncInstance | [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest) | [SyncInstanceResponse](#bytebase-v1-SyncInstanceResponse) | |-| BatchSyncInstance | [BatchSyncInstanceRequest](#bytebase-v1-BatchSyncInstanceRequest) | [BatchSyncInstanceResponse](#bytebase-v1-BatchSyncInstanceResponse) | |-| AddDataSource | [AddDataSourceRequest](#bytebase-v1-AddDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |-| RemoveDataSource | [RemoveDataSourceRequest](#bytebase-v1-RemoveDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |-| UpdateDataSource | [UpdateDataSourceRequest](#bytebase-v1-UpdateDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |-| SyncSlowQueries | [SyncSlowQueriesRequest](#bytebase-v1-SyncSlowQueriesRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-+<a name="bytebase-v1-ListDatabasesRequest"></a>+### ListDatabasesRequest-<a name="v1_vcs-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/vcs.proto+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent, which owns this collection of databases. - instances/{instance}: list all databases for an instance. Use "instances/-" to list all databases. - projects/{project}: list all databases in a project. |+| page_size | [int32](#int32) | | The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token. |+| filter | [string](#string) | | Filter is used to filter databases returned in the list. For example, "project = projects/{project}" can be used to list databases in a project. Note: the project filter will be moved to parent. |-<a name="bytebase-v1-Commit"></a>-### Commit+++<a name="bytebase-v1-ListDatabasesResponse"></a>++### ListDatabasesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | |-| title | [string](#string) | | |-| message | [string](#string) | | |-| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| url | [string](#string) | | |-| author_name | [string](#string) | | |-| author_email | [string](#string) | | |-| added_list | [string](#string) | repeated | |-| modified_list | [string](#string) | repeated | |+| databases | [Database](#bytebase-v1-Database) | repeated | The databases from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-PushEvent"></a>+<a name="bytebase-v1-ListSecretsRequest"></a>-### PushEvent+### ListSecretsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| vcs_type | [VcsType](#bytebase-v1-VcsType) | | |-| ref | [string](#string) | | |-| before | [string](#string) | | |-| after | [string](#string) | | |-| repository_id | [string](#string) | | |-| repository_url | [string](#string) | | |-| repository_full_path | [string](#string) | | |-| author_name | [string](#string) | | |-| commits | [Commit](#bytebase-v1-Commit) | repeated | |+| parent | [string](#string) | | The parent of the secret. Format: instances/{instance}/databases/{database} |+| page_size | [int32](#int32) | | Not used. The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListSecrets` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListSecrets` must match the call that provided the page token. |--<a name="bytebase-v1-VcsType"></a>+<a name="bytebase-v1-ListSecretsResponse"></a>-### VcsType+### ListSecretsResponse-| Name | Number | Description |-| ---- | ------ | ----------- |-| VCS_TYPE_UNSPECIFIED | 0 | |-| GITLAB | 1 | |-| GITHUB | 2 | |-| BITBUCKET | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| secrets | [Secret](#bytebase-v1-Secret) | repeated | The list of secrets. |+| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |----<a name="v1_database_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>+<a name="bytebase-v1-ListSlowQueriesRequest"></a>-## v1/database_service.proto+### ListSlowQueriesRequest+ListSlowQueriesRequest is the request of listing slow query.+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |+| filter | [string](#string) | | The filter of the slow query log. follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Support filter by project and start_time in SlowQueryDetails for now. For example: Search the slow query log of the specific project: - the specific project: project = "projects/{project}" Search the slow query log that start_time after 2022-01-01T12:00:00.000Z: - start_time > "2022-01-01T12:00:00.000Z" - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339). - Currently we only support filtering down to date granularity. |+| order_by | [string](#string) | | The order by of the slow query log. Support order by count, latest_log_time, average_query_time, maximum_query_time, average_rows_sent, maximum_rows_sent, average_rows_examined, maximum_rows_examined for now. For example: - order by count: order_by = "count" - order by latest_log_time desc: order_by = "latest_log_time desc" Default: order by average_query_time desc. |-<a name="bytebase-v1-AdviseIndexRequest"></a>-### AdviseIndexRequest-AdviseIndexRequest is the request of advising index.+++++<a name="bytebase-v1-ListSlowQueriesResponse"></a>++### ListSlowQueriesResponse+ListSlowQueriesResponse is the response of listing slow query.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |-| statement | [string](#string) | | The statement to be advised. |+| slow_query_logs | [SlowQueryLog](#bytebase-v1-SlowQueryLog) | repeated | The slow query logs. |-<a name="bytebase-v1-AdviseIndexResponse"></a>+<a name="bytebase-v1-MaterializedViewMetadata"></a>-### AdviseIndexResponse-AdviseIndexResponse is the response of advising index.+### MaterializedViewMetadata+MaterializedViewMetadata is the metadata for materialized views.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| current_index | [string](#string) | | The current index of the statement used. |-| suggestion | [string](#string) | | The suggested index of the statement. |-| create_index_statement | [string](#string) | | The create index statement of the suggested index. |+| name | [string](#string) | | The name is the name of a materialized view. |+| definition | [string](#string) | | The definition is the definition of a materialized view. |+| comment | [string](#string) | | The comment is the comment of a materialized view. |+| dependent_columns | [DependentColumn](#bytebase-v1-DependentColumn) | repeated | The dependent_columns is the list of dependent columns of a materialized view. |++<a name="bytebase-v1-SchemaConfig"></a>-<a name="bytebase-v1-Backup"></a>+### SchemaConfig-### Backup-The message of the backup.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The resource name of the database backup. backup-name is specified by the client. Format: instances/{instance}/databases/{database}/backups/{backup-name} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the backup resource was created initially. |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the backup resource was updated. |-| state | [Backup.BackupState](#bytebase-v1-Backup-BackupState) | | The state of the backup. |-| backup_type | [Backup.BackupType](#bytebase-v1-Backup-BackupType) | | The type of the backup. |-| comment | [string](#string) | | The comment of the backup. |-| uid | [string](#string) | | |+| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |+| table_configs | [TableConfig](#bytebase-v1-TableConfig) | repeated | The table_configs is the list of configs for tables in a schema. |-<a name="bytebase-v1-BackupSetting"></a>+<a name="bytebase-v1-SchemaMetadata"></a>-### BackupSetting-BackupSetting is the setting for database backup.+### SchemaMetadata+SchemaMetadata is the metadata for schemas.+This is the concept of schema in Postgres, but it's a no-op for MySQL.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database backup setting. Format: instances/{instance}/databases/{database}/backupSetting |-| backup_retain_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | The default maximum age of a Backup created via this BackupPlan. If specified, a Backup will be automatically deleted after its age reaches. If not specified, Backups created under this BackupPlan will be deleted after 7 DAYS. It will be rounded up to the number of days. |-| cron_schedule | [string](#string) | | Cron(https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups. Support hour of day, day of week. (UTC time)--Default (empty): Disable automatic backup. |-| hook_url | [string](#string) | | hook_url(https://www.bytebase.com/docs/disaster-recovery/backup/#post-backup-webhook) is the URL to send a notification when a backup is created. |+| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |+| tables | [TableMetadata](#bytebase-v1-TableMetadata) | repeated | The tables is the list of tables in a schema. |+| external_tables | [ExternalTableMetadata](#bytebase-v1-ExternalTableMetadata) | repeated | The external_tables is the list of external tables in a schema. |+| views | [ViewMetadata](#bytebase-v1-ViewMetadata) | repeated | The views is the list of views in a schema. |+| functions | [FunctionMetadata](#bytebase-v1-FunctionMetadata) | repeated | The functions is the list of functions in a schema. |+| streams | [StreamMetadata](#bytebase-v1-StreamMetadata) | repeated | The streams is the list of streams in a schema, currently, only used for Snowflake. |+| tasks | [TaskMetadata](#bytebase-v1-TaskMetadata) | repeated | The routines is the list of routines in a schema, currently, only used for Snowflake. |+| materialized_views | [MaterializedViewMetadata](#bytebase-v1-MaterializedViewMetadata) | repeated | The materialized_views is the list of materialized views in a schema. |-<a name="bytebase-v1-BatchUpdateDatabasesRequest"></a>+<a name="bytebase-v1-SearchDatabasesRequest"></a>-### BatchUpdateDatabasesRequest+### SearchDatabasesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource shared by all databases being updated. Format: instances/{instance} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the project of databases for now. |-| requests | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | repeated | The request message specifying the resources to update. A maximum of 1000 databases can be modified in a batch. |+| page_size | [int32](#int32) | | The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token. |+| filter | [string](#string) | | Filter is used to filter databases returned in the list. follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - project with "=" operator, for example: - project = "projects/sample-project" - project = "projects/-" - instance with "=" operator, for example: - instance = "instances/mysql" - instance = "instances/-" for example, we can use project = "projects/sample" && instance = "instances/-" to list all databases in the sample project. |+| permission | [string](#string) | | By default, the permission "bb.databases.get" is used. Alternatively, "bb.databases.query" can be used to retrieve databases with query permissions to. |-<a name="bytebase-v1-BatchUpdateDatabasesResponse"></a>-### BatchUpdateDatabasesResponse+<a name="bytebase-v1-SearchDatabasesResponse"></a>++### SearchDatabasesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| databases | [Database](#bytebase-v1-Database) | repeated | Databases updated. |-+| databases | [Database](#bytebase-v1-Database) | repeated | The databases from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-ChangeHistory"></a>-### ChangeHistory+<a name="bytebase-v1-Secret"></a>+### Secret+Secret is the secret of the database now.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| uid | [string](#string) | | |-| creator | [string](#string) | | Format: users/[email protected] |-| updater | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| release_version | [string](#string) | | release version of Bytebase |-| source | [ChangeHistory.Source](#bytebase-v1-ChangeHistory-Source) | | |-| type | [ChangeHistory.Type](#bytebase-v1-ChangeHistory-Type) | | |-| status | [ChangeHistory.Status](#bytebase-v1-ChangeHistory-Status) | | |-| version | [string](#string) | | |-| description | [string](#string) | | |-| statement | [string](#string) | | The statement is used for preview purpose. |-| statement_size | [int64](#int64) | | |-| statement_sheet | [string](#string) | | The name of the sheet resource. Format: projects/{project}/sheets/{sheet} |-| schema | [string](#string) | | |-| schema_size | [int64](#int64) | | |-| prev_schema | [string](#string) | | |-| prev_schema_size | [int64](#int64) | | |-| execution_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |-| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |-| push_event | [PushEvent](#bytebase-v1-PushEvent) | | |-| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |-+| name | [string](#string) | | name is the unique name of the secret, which is specified by the client. Format: instances/{instance}/databases/{database}/secrets/{secret} |+| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was created initially. |+| updated_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was updated. |+| value | [string](#string) | | The value of the secret. |+| description | [string](#string) | | The description of the secret. |-<a name="bytebase-v1-ChangedResourceDatabase"></a>-### ChangedResourceDatabase+<a name="bytebase-v1-SlowQueryDetails"></a>+### SlowQueryDetails+SlowQueryDetails is the details of the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| schemas | [ChangedResourceSchema](#bytebase-v1-ChangedResourceSchema) | repeated | |-+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The start time of the slow query log. |+| query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The query time of the slow query log. |+| lock_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The lock time of the slow query log. |+| rows_sent | [int32](#int32) | | The rows sent of the slow query log. |+| rows_examined | [int32](#int32) | | The rows examined of the slow query log. |+| sql_text | [string](#string) | | The sql text of the slow query log. |-<a name="bytebase-v1-ChangedResourceSchema"></a>-### ChangedResourceSchema+<a name="bytebase-v1-SlowQueryLog"></a>+### SlowQueryLog+SlowQueryLog is the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| tables | [ChangedResourceTable](#bytebase-v1-ChangedResourceTable) | repeated | |-+| resource | [string](#string) | | The resource of the slow query log. The format is "instances/{instance}/databases/{database}". |+| project | [string](#string) | | The project of the slow query log. The format is "projects/{project}". |+| statistics | [SlowQueryStatistics](#bytebase-v1-SlowQueryStatistics) | | The statistics of the slow query log. |-<a name="bytebase-v1-ChangedResourceTable"></a>-### ChangedResourceTable+<a name="bytebase-v1-SlowQueryStatistics"></a>+### SlowQueryStatistics+SlowQueryStatistics is the statistics of the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |+| sql_fingerprint | [string](#string) | | The fingerprint of the slow query log. |+| count | [int32](#int32) | | The count of the slow query log. |+| latest_log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest log time of the slow query log. |+| average_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The average query time of the slow query log. |+| maximum_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The maximum query time of the slow query log. |+| average_rows_sent | [int32](#int32) | | The average rows sent of the slow query log. |+| maximum_rows_sent | [int32](#int32) | | The maximum rows sent of the slow query log. |+| average_rows_examined | [int32](#int32) | | The average rows examined of the slow query log. |+| maximum_rows_examined | [int32](#int32) | | The maximum rows examined of the slow query log. |+| query_time_percent | [double](#double) | | The percentage of the query time. |+| count_percent | [double](#double) | | The percentage of the count. |+| samples | [SlowQueryDetails](#bytebase-v1-SlowQueryDetails) | repeated | Samples are details of the sample slow query logs with the same fingerprint. |-<a name="bytebase-v1-ChangedResources"></a>+<a name="bytebase-v1-StreamMetadata"></a>-### ChangedResources+### StreamMetadata| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| databases | [ChangedResourceDatabase](#bytebase-v1-ChangedResourceDatabase) | repeated | |+| name | [string](#string) | | The name is the name of a stream. |+| table_name | [string](#string) | | The table_name is the name of the table/view that the stream is created on. |+| owner | [string](#string) | | The owner of the stream. |+| comment | [string](#string) | | The comment of the stream. |+| type | [StreamMetadata.Type](#bytebase-v1-StreamMetadata-Type) | | The type of the stream. |+| stale | [bool](#bool) | | Indicates whether the stream was last read before the `stale_after` time. |+| mode | [StreamMetadata.Mode](#bytebase-v1-StreamMetadata-Mode) | | The mode of the stream. |+| definition | [string](#string) | | The definition of the stream. |-<a name="bytebase-v1-ColumnConfig"></a>+<a name="bytebase-v1-SyncDatabaseRequest"></a>-### ColumnConfig+### SyncDatabaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a column. |-| semantic_type_id | [string](#string) | | |-| labels | [ColumnConfig.LabelsEntry](#bytebase-v1-ColumnConfig-LabelsEntry) | repeated | The user labels for a column. |-+| name | [string](#string) | | The name of the database to sync. Format: instances/{instance}/databases/{database} |-<a name="bytebase-v1-ColumnConfig-LabelsEntry"></a>-### ColumnConfig.LabelsEntry+<a name="bytebase-v1-SyncDatabaseResponse"></a>+### SyncDatabaseResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+<a name="bytebase-v1-TableConfig"></a>-<a name="bytebase-v1-ColumnMetadata"></a>+### TableConfig-### ColumnMetadata-ColumnMetadata is the metadata for columns.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a column. |-| position | [int32](#int32) | | The position is the position in columns. |-| has_default | [bool](#bool) | | |-| default_null | [bool](#bool) | | |-| default_string | [string](#string) | | |-| default_expression | [string](#string) | | |-| on_update | [string](#string) | | The on_update is the on update action of a column. For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value. |-| nullable | [bool](#bool) | | The nullable is the nullable of a column. |-| type | [string](#string) | | The type is the type of a column. |-| character_set | [string](#string) | | The character_set is the character_set of a column. |-| collation | [string](#string) | | The collation is the collation of a column. |-| comment | [string](#string) | | The comment is the comment of a column. classification and user_comment is parsed from the comment. |-| classification | [string](#string) | | The classification is the classification of a column parsed from the comment. |-| user_comment | [string](#string) | | The user_comment is the user comment of a column parsed from the comment. |-| effective_masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | The effective_masking_level is the effective masking level of the column, evaluate from the column masking data and global masking rules. |+| name | [string](#string) | | The name is the name of a table. |+| column_configs | [ColumnConfig](#bytebase-v1-ColumnConfig) | repeated | The column_configs is the ordered list of configs for columns in a table. |-<a name="bytebase-v1-CreateBackupRequest"></a>+<a name="bytebase-v1-TableMetadata"></a>-### CreateBackupRequest-CreateBackupRequest is the request message for CreateBackup.+### TableMetadata+TableMetadata is the metadata for tables.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this backup will be created. Format: instances/{instance}/databases/{database} |-| backup | [Backup](#bytebase-v1-Backup) | | |-+| name | [string](#string) | | The name is the name of a table. |+| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a table. |+| indexes | [IndexMetadata](#bytebase-v1-IndexMetadata) | repeated | The indexes is the list of indexes in a table. |+| engine | [string](#string) | | The engine is the engine of a table. |+| collation | [string](#string) | | The collation is the collation of a table. |+| row_count | [int64](#int64) | | The row_count is the estimated number of rows of a table. |+| data_size | [int64](#int64) | | The data_size is the estimated data size of a table. |+| index_size | [int64](#int64) | | The index_size is the estimated index size of a table. |+| data_free | [int64](#int64) | | The data_free is the estimated free data size of a table. |+| create_options | [string](#string) | | The create_options is the create option of a table. |+| comment | [string](#string) | | The comment is the comment of a table. classification and user_comment is parsed from the comment. |+| classification | [string](#string) | | The classification is the classification of a table parsed from the comment. |+| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |+| foreign_keys | [ForeignKeyMetadata](#bytebase-v1-ForeignKeyMetadata) | repeated | The foreign_keys is the list of foreign keys in a table. |+| partitions | [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata) | repeated | The partitions is the list of partitions in a table. |-<a name="bytebase-v1-Database"></a>-### Database+<a name="bytebase-v1-TablePartitionMetadata"></a>+### TablePartitionMetadata+TablePartitionMetadata is the metadata for table partitions.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database. Format: instances/{instance}/databases/{database} {database} is the database name in the instance. |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| sync_state | [State](#bytebase-v1-State) | | The existence of a database on latest sync. |-| successful_sync_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest synchronization time. |-| project | [string](#string) | | The project for a database. Format: projects/{project} |-| schema_version | [string](#string) | | The version of database schema. |-| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |-| effective_environment | [string](#string) | | The effective environment based on environment tag above and environment tag on the instance. Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-overview. |-| labels | [Database.LabelsEntry](#bytebase-v1-Database-LabelsEntry) | repeated | Labels will be used for deployment and policy control. |-| instance_resource | [InstanceResource](#bytebase-v1-InstanceResource) | | The instance resource. |+| name | [string](#string) | | The name is the name of a table partition. |+| type | [TablePartitionMetadata.Type](#bytebase-v1-TablePartitionMetadata-Type) | | The type of a table partition. |+| expression | [string](#string) | | The expression is the expression of a table partition. For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html. For MySQL, the expression is the `expr` or `column_list` of the following syntax. PARTITION BY { [LINEAR] HASH(expr) | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list) | RANGE{(expr) | COLUMNS(column_list)} | LIST{(expr) | COLUMNS(column_list)} }. |+| value | [string](#string) | | The value is the value of a table partition. For MySQL, the value is for RANGE and LIST partition types, - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE. - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values. - For others, it's an empty string. |+| use_default | [string](#string) | | The use_default is whether the users use the default partition, it stores the different value for different database engines. For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}. |+| subpartitions | [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata) | repeated | The subpartitions is the list of subpartitions in a table partition. |-<a name="bytebase-v1-Database-LabelsEntry"></a>+<a name="bytebase-v1-TaskMetadata"></a>-### Database.LabelsEntry+### TaskMetadata| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| name | [string](#string) | | The name is the name of a task. |+| id | [string](#string) | | The id is the snowflake-generated id of a task. Example: 01ad32a0-1bb6-5e93-0000-000000000001 |+| owner | [string](#string) | | The owner of the task. |+| comment | [string](#string) | | The comment of the task. |+| warehouse | [string](#string) | | The warehouse of the task. |+| schedule | [string](#string) | | The schedule interval of the task. |+| predecessors | [string](#string) | repeated | The predecessor tasks of the task. |+| state | [TaskMetadata.State](#bytebase-v1-TaskMetadata-State) | | The state of the task. |+| condition | [string](#string) | | The condition of the task. |+| definition | [string](#string) | | The definition of the task. |-<a name="bytebase-v1-DatabaseConfig"></a>+<a name="bytebase-v1-UpdateDatabaseMetadataRequest"></a>-### DatabaseConfig+### UpdateDatabaseMetadataRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| schema_configs | [SchemaConfig](#bytebase-v1-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |+| database_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The database metadata to update.+The database_metadata's `name` field is used to identify the database metadata to update. Format: instances/{instance}/databases/{database}/metadata |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-DatabaseMetadata"></a>-### DatabaseMetadata-DatabaseMetadata is the metadata for databases.+<a name="bytebase-v1-UpdateDatabaseRequest"></a>++### UpdateDatabaseRequest+| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The database metadata name.+| database | [Database](#bytebase-v1-Database) | | The database to update.-Format: instances/{instance}/databases/{database}/metadata |-| schemas | [SchemaMetadata](#bytebase-v1-SchemaMetadata) | repeated | The schemas is the list of schemas in a database. |-| character_set | [string](#string) | | The character_set is the character set of a database. |-| collation | [string](#string) | | The collation is the collation of a database. |-| extensions | [ExtensionMetadata](#bytebase-v1-ExtensionMetadata) | repeated | The extensions is the list of extensions in a database. |-| schema_configs | [SchemaConfig](#bytebase-v1-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |+The database's `name` field is used to identify the database to update. Format: instances/{instance}/databases/{database} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-DatabaseSchema"></a>+<a name="bytebase-v1-UpdateSecretRequest"></a>++### UpdateSecretRequest-### DatabaseSchema-DatabaseSchema is the metadata for databases.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | The schema dump from database. |-+| secret | [Secret](#bytebase-v1-Secret) | | The secret to be created or updated. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The mask of the fields to be updated. |+| allow_missing | [bool](#bool) | | If true, the secret will be created if it does not exist. |-<a name="bytebase-v1-DeleteSecretRequest"></a>-### DeleteSecretRequest+<a name="bytebase-v1-ViewMetadata"></a>+### ViewMetadata+ViewMetadata is the metadata for views.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the secret to be deleted. Format: instances/{instance}/databases/{database}/secrets/{secret} |+| name | [string](#string) | | The name is the name of a view. |+| definition | [string](#string) | | The definition is the definition of a view. |+| comment | [string](#string) | | The comment is the comment of a view. |+| dependent_columns | [DependentColumn](#bytebase-v1-DependentColumn) | repeated | The dependent_columns is the list of dependent columns of a view. |+-<a name="bytebase-v1-DependentColumn"></a>-### DependentColumn-DependentColumn is the metadata for dependent columns.+<a name="bytebase-v1-ChangeHistory-Source"></a>+### ChangeHistory.Source-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | The schema is the schema of a reference column. |-| table | [string](#string) | | The table is the table of a reference column. |-| column | [string](#string) | | The column is the name of a reference column. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| SOURCE_UNSPECIFIED | 0 | |+| UI | 1 | |+| VCS | 2 | |+| LIBRARY | 3 | |+<a name="bytebase-v1-ChangeHistory-Status"></a>+### ChangeHistory.Status-<a name="bytebase-v1-DiffSchemaRequest"></a>-### DiffSchemaRequest+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| DONE | 2 | |+| FAILED | 3 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database or change history. Format: database: instances/{instance}/databases/{database} change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| schema | [string](#string) | | The target schema. |-| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |+<a name="bytebase-v1-ChangeHistory-Type"></a>+### ChangeHistory.Type+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| BASELINE | 1 | |+| MIGRATE | 2 | |+| MIGRATE_SDL | 3 | |+| MIGRATE_GHOST | 4 | |+| BRANCH | 5 | |+| DATA | 6 | |-<a name="bytebase-v1-DiffSchemaResponse"></a>+<a name="bytebase-v1-ChangeHistoryView"></a>-### DiffSchemaResponse+### ChangeHistoryView+| Name | Number | Description |+| ---- | ------ | ----------- |+| CHANGE_HISTORY_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |+| CHANGE_HISTORY_VIEW_BASIC | 1 | |+| CHANGE_HISTORY_VIEW_FULL | 2 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| diff | [string](#string) | | |+<a name="bytebase-v1-DatabaseMetadataView"></a>+### DatabaseMetadataView+| Name | Number | Description |+| ---- | ------ | ----------- |+| DATABASE_METADATA_VIEW_UNSPECIFIED | 0 | The default and unset value. The API will default to the BASIC view. |+| DATABASE_METADATA_VIEW_BASIC | 1 | Include basic information of schema object names such as schema, table, view, function names. |+| DATABASE_METADATA_VIEW_FULL | 2 | Include everything such as columns and column masking level. |-<a name="bytebase-v1-ExtensionMetadata"></a>-### ExtensionMetadata-ExtensionMetadata is the metadata for extensions.+<a name="bytebase-v1-StreamMetadata-Mode"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of an extension. |-| schema | [string](#string) | | The schema is the extension that is installed to. But the extension usage is not limited to the schema. |-| version | [string](#string) | | The version is the version of an extension. |-| description | [string](#string) | | The description is the description of an extension. |+### StreamMetadata.Mode+| Name | Number | Description |+| ---- | ------ | ----------- |+| MODE_UNSPECIFIED | 0 | |+| MODE_DEFAULT | 1 | |+| MODE_APPEND_ONLY | 2 | |+| MODE_INSERT_ONLY | 3 | |+<a name="bytebase-v1-StreamMetadata-Type"></a>-<a name="bytebase-v1-ExternalTableMetadata"></a>+### StreamMetadata.Type-### ExternalTableMetadata+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| TYPE_DELTA | 1 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a external table. |-| external_server_name | [string](#string) | | The external_server_name is the name of the external server. |-| external_database_name | [string](#string) | | The external_database_name is the name of the external database. |-| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a foreign table. |+<a name="bytebase-v1-TablePartitionMetadata-Type"></a>+### TablePartitionMetadata.Type+Type is the type of a table partition, some database engines may not support all types.+Only avilable for the following database engines now:+MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)+TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY+PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| RANGE | 1 | |+| RANGE_COLUMNS | 2 | |+| LIST | 3 | |+| LIST_COLUMNS | 4 | |+| HASH | 5 | |+| LINEAR_HASH | 6 | |+| KEY | 7 | |+| LINEAR_KEY | 8 | |-<a name="bytebase-v1-ForeignKeyMetadata"></a>+<a name="bytebase-v1-TaskMetadata-State"></a>-### ForeignKeyMetadata-ForeignKeyMetadata is the metadata for foreign keys.+### TaskMetadata.State-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a foreign key. |-| columns | [string](#string) | repeated | The columns are the ordered referencing columns of a foreign key. |-| referenced_schema | [string](#string) | | The referenced_schema is the referenced schema name of a foreign key. It is an empty string for databases without such concept such as MySQL. |-| referenced_table | [string](#string) | | The referenced_table is the referenced table name of a foreign key. |-| referenced_columns | [string](#string) | repeated | The referenced_columns are the ordered referenced columns of a foreign key. |-| on_delete | [string](#string) | | The on_delete is the on delete action of a foreign key. |-| on_update | [string](#string) | | The on_update is the on update action of a foreign key. |-| match_type | [string](#string) | | The match_type is the match type of a foreign key. The match_type is the PostgreSQL specific field. It's empty string for other databases. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATE_UNSPECIFIED | 0 | |+| STATE_STARTED | 1 | |+| STATE_SUSPENDED | 2 | |+++<a name="bytebase-v1-DatabaseService"></a>-<a name="bytebase-v1-FunctionMetadata"></a>+### DatabaseService-### FunctionMetadata-FunctionMetadata is the metadata for functions.+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetDatabase | [GetDatabaseRequest](#bytebase-v1-GetDatabaseRequest) | [Database](#bytebase-v1-Database) | |+| ListDatabases | [ListDatabasesRequest](#bytebase-v1-ListDatabasesRequest) | [ListDatabasesResponse](#bytebase-v1-ListDatabasesResponse) | |+| SearchDatabases | [SearchDatabasesRequest](#bytebase-v1-SearchDatabasesRequest) | [SearchDatabasesResponse](#bytebase-v1-SearchDatabasesResponse) | Search for databases that the caller has the bb.databases.get permission on, and also satisfy the specified query. |+| UpdateDatabase | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | [Database](#bytebase-v1-Database) | |+| BatchUpdateDatabases | [BatchUpdateDatabasesRequest](#bytebase-v1-BatchUpdateDatabasesRequest) | [BatchUpdateDatabasesResponse](#bytebase-v1-BatchUpdateDatabasesResponse) | |+| SyncDatabase | [SyncDatabaseRequest](#bytebase-v1-SyncDatabaseRequest) | [SyncDatabaseResponse](#bytebase-v1-SyncDatabaseResponse) | |+| GetDatabaseMetadata | [GetDatabaseMetadataRequest](#bytebase-v1-GetDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | |+| UpdateDatabaseMetadata | [UpdateDatabaseMetadataRequest](#bytebase-v1-UpdateDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | |+| GetDatabaseSchema | [GetDatabaseSchemaRequest](#bytebase-v1-GetDatabaseSchemaRequest) | [DatabaseSchema](#bytebase-v1-DatabaseSchema) | |+| DiffSchema | [DiffSchemaRequest](#bytebase-v1-DiffSchemaRequest) | [DiffSchemaResponse](#bytebase-v1-DiffSchemaResponse) | |+| ListSlowQueries | [ListSlowQueriesRequest](#bytebase-v1-ListSlowQueriesRequest) | [ListSlowQueriesResponse](#bytebase-v1-ListSlowQueriesResponse) | |+| ListSecrets | [ListSecretsRequest](#bytebase-v1-ListSecretsRequest) | [ListSecretsResponse](#bytebase-v1-ListSecretsResponse) | |+| UpdateSecret | [UpdateSecretRequest](#bytebase-v1-UpdateSecretRequest) | [Secret](#bytebase-v1-Secret) | |+| DeleteSecret | [DeleteSecretRequest](#bytebase-v1-DeleteSecretRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| AdviseIndex | [AdviseIndexRequest](#bytebase-v1-AdviseIndexRequest) | [AdviseIndexResponse](#bytebase-v1-AdviseIndexResponse) | |+| ListChangeHistories | [ListChangeHistoriesRequest](#bytebase-v1-ListChangeHistoriesRequest) | [ListChangeHistoriesResponse](#bytebase-v1-ListChangeHistoriesResponse) | |+| GetChangeHistory | [GetChangeHistoryRequest](#bytebase-v1-GetChangeHistoryRequest) | [ChangeHistory](#bytebase-v1-ChangeHistory) | |++-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a view. |-| definition | [string](#string) | | The definition is the definition of a view. |+<a name="v1_branch_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/branch_service.proto-<a name="bytebase-v1-GetBackupSettingRequest"></a>+<a name="bytebase-v1-Branch"></a>-### GetBackupSettingRequest+### Branch| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to retrieve backup setting. Format: instances/{instance}/databases/{database}/backupSetting |+| name | [string](#string) | | The name of the branch. Format: projects/{project}/branches/{branch} {branch} should be the id of a sheet. |+| branch_id | [string](#string) | | The branch ID. |+| schema | [string](#string) | | The schema of branch. AKA sheet's statement. |+| schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the current editing schema. |+| baseline_schema | [string](#string) | | The baseline schema. |+| baseline_schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the baseline schema. |+| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the branch. |+| baseline_database | [string](#string) | | The name of the baseline database. Format: instances/{instance}/databases/{database} |+| parent_branch | [string](#string) | | The name of the parent branch. For main branch, it's empty. For child branch, its format will be: projects/{project}/branches/{branch} |+| etag | [string](#string) | | The etag of the branch. |+| creator | [string](#string) | | The creator of the branch. Format: users/{email} |+| updater | [string](#string) | | The updater of the branch. Format: users/{email} |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the branch was created. |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the branch was last updated. |-<a name="bytebase-v1-GetChangeHistoryRequest"></a>+<a name="bytebase-v1-CreateBranchRequest"></a>-### GetChangeHistoryRequest+### CreateBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the change history to retrieve. Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |-| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |-| concise | [bool](#bool) | | When true, the schema dump will be concise. |+| parent | [string](#string) | | The parent, which owns this collection of branches. Format: project/{project} |+| branch | [Branch](#bytebase-v1-Branch) | | |+| branch_id | [string](#string) | | The ID to use for the branch, which will become the final component of the branch's resource name. Format: [a-zA-Z][a-zA-Z0-9-_/]+. |-<a name="bytebase-v1-GetDatabaseMetadataRequest"></a>+<a name="bytebase-v1-DeleteBranchRequest"></a>-### GetDatabaseMetadataRequest+### DeleteBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to retrieve metadata. Format: instances/{instance}/databases/{database}/metadata |-| view | [DatabaseMetadataView](#bytebase-v1-DatabaseMetadataView) | | The view to return. Defaults to DATABASE_METADATA_VIEW_BASIC. |-| filter | [string](#string) | | The filter used for a specific schema object such as "schemas/schema-a/tables/table-a". The column masking level will only be returned when a table filter is used. |+| name | [string](#string) | | The name of the branch to delete. Format: projects/{project}/branches/{branch} |+| force | [bool](#bool) | | By default, server will return `FAILED_PRECONDITION` error if delete the branch that is parent of other branches. If true, server will delete the branch forcely but will not delete its children branches. |-<a name="bytebase-v1-GetDatabaseRequest"></a>+<a name="bytebase-v1-DiffDatabaseRequest"></a>-### GetDatabaseRequest+### DiffDatabaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to retrieve. Format: instances/{instance}/databases/{database} |+| name | [string](#string) | | The name of branch. |+| database | [string](#string) | | The name of the databsae to merge the branch to. |-<a name="bytebase-v1-GetDatabaseSchemaRequest"></a>+<a name="bytebase-v1-DiffDatabaseResponse"></a>-### GetDatabaseSchemaRequest+### DiffDatabaseResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to retrieve schema. Format: instances/{instance}/databases/{database}/schema |-| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |-| concise | [bool](#bool) | | When true, the schema dump will be concise. For Oracle, there will be tables and indexes only for Sync Schema. |+| diff | [string](#string) | | The schema diff when merge occurs seamlessly. |+| schema | [string](#string) | | The merged schema if there is no conflict. |+| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |-<a name="bytebase-v1-IndexMetadata"></a>+<a name="bytebase-v1-DiffMetadataRequest"></a>++### DiffMetadataRequest-### IndexMetadata-IndexMetadata is the metadata for indexes.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of an index. |-| expressions | [string](#string) | repeated | The expressions are the ordered columns or expressions of an index. This could refer to a column or an expression. |-| key_length | [int64](#int64) | repeated | The key_lengths are the ordered key lengths of an index. If the key length is not specified, it's -1. |-| type | [string](#string) | | The type is the type of an index. |-| unique | [bool](#bool) | | The unique is whether the index is unique. |-| primary | [bool](#bool) | | The primary is whether the index is a primary key index. |-| visible | [bool](#bool) | | The visible is whether the index is visible. |-| comment | [string](#string) | | The comment is the comment of an index. |-| definition | [string](#string) | | The definition of an index. |+| source_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the source schema. |+| target_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the target schema. |+| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema. |-<a name="bytebase-v1-ListBackupsRequest"></a>+<a name="bytebase-v1-DiffMetadataResponse"></a>++### DiffMetadataResponse-### ListBackupsRequest-ListBackupsRequest is the request message for ListBackup.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this backup will be created. Format: instances/{instance}/databases/{database} |-| page_size | [int32](#int32) | | Not used. The maximum number of backups to return. The service may return fewer than this value. If unspecified, at most 50 backups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListBackup` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListBackup` must match the call that provided the page token. |+| diff | [string](#string) | | The diff of the metadata. |-<a name="bytebase-v1-ListBackupsResponse"></a>+<a name="bytebase-v1-GetBranchRequest"></a>-### ListBackupsResponse+### GetBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| backups | [Backup](#bytebase-v1-Backup) | repeated | The backups from the specified request. |-| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the branch to retrieve. Format: projects/{project}/branches/{branch} |-<a name="bytebase-v1-ListChangeHistoriesRequest"></a>+<a name="bytebase-v1-ListBranchesRequest"></a>-### ListChangeHistoriesRequest+### ListBranchesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent of the change histories. Format: instances/{instance}/databases/{database} |-| page_size | [int32](#int32) | | The maximum number of change histories to return. The service may return fewer than this value. If unspecified, at most 10 change histories will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListChangeHistories` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListChangeHistories` must match the call that provided the page token. |-| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |-| filter | [string](#string) | | The filter of the change histories. Follow the CEL syntax. currently, we have one function for CEL: - tableExists(database, schema, table): return true if the table exists in changed resources.--examples: Use tableExists("db", "public", "table1") to filter the change histories which have the table "table1" in the schema "public" of the database "db". For MySQL, the schema is always "", such as tableExists("db", "", "table1").+| parent | [string](#string) | | The parent resource of the branch. Format: projects/{project} |+| filter | [string](#string) | | To filter the search result. |+| page_size | [int32](#int32) | | The maximum number of branches to return. The service may return fewer than this value. If unspecified, at most 50 branches will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListBranches` call. Provide this to retrieve the subsequent page.-Combine multiple functions with "&&" and "||", we MUST use the Disjunctive Normal Form(DNF). In other words, the CEL expression consists of several parts connected by OR operators. For example, the following expression is valid: ( tableExists("db", "public", "table1") && tableExists("db", "public", "table2") ) || ( tableExists("db", "public", "table3") ) |+When paginating, all other parameters provided to `ListBranches` must match the call that provided the page token. |+| view | [BranchView](#bytebase-v1-BranchView) | | |-<a name="bytebase-v1-ListChangeHistoriesResponse"></a>+<a name="bytebase-v1-ListBranchesResponse"></a>-### ListChangeHistoriesResponse+### ListBranchesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| change_histories | [ChangeHistory](#bytebase-v1-ChangeHistory) | repeated | The list of change histories. |+| branches | [Branch](#bytebase-v1-Branch) | repeated | The branches from the specified request. || next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |@@ -3167,958 +3336,513 @@ Combine multiple functions with "&&" and "||", we MUST u-<a name="bytebase-v1-ListDatabasesRequest"></a>+<a name="bytebase-v1-MergeBranchRequest"></a>-### ListDatabasesRequest+### MergeBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of databases. - instances/{instance}: list all databases for an instance. Use "instances/-" to list all databases. - projects/{project}: list all databases in a project. |-| page_size | [int32](#int32) | | The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page.+| name | [string](#string) | | The name of the base branch to merge to. Format: projects/{project}/branches/{branch} |+| head_branch | [string](#string) | | The head branch to merge from. Format: projects/{project}/branches/{branch} |+| etag | [string](#string) | | The current etag of the branch. If an etag is provided and does not match the current etag of the branch, the call will be blocked and an ABORTED error will be returned. The etag should be the etag from named branch. |+| validate_only | [bool](#bool) | | validate_only determines if the merge can occur seamlessly without any conflicts. |-When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token. |-| filter | [string](#string) | | Filter is used to filter databases returned in the list. For example, "project = projects/{project}" can be used to list databases in a project. Note: the project filter will be moved to parent. |+<a name="bytebase-v1-RebaseBranchRequest"></a>-<a name="bytebase-v1-ListDatabasesResponse"></a>--### ListDatabasesResponse+### RebaseBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| databases | [Database](#bytebase-v1-Database) | repeated | The databases from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the base branch to merge to. Format: projects/{project}/branches/{branch} |+| source_database | [string](#string) | | The database (remote upstream) used to rebase. We use its schema as baseline and reapply the difference between base and head of the named branch. Format: instances/{instance}/databases/{database} |+| source_branch | [string](#string) | | The branch (remote upstream) used to rebase. We use its head as baseline. We use its head schema as baseline and reapply the difference between base and head of the named branch. Format: projects/{project}/branches/{branch} |+| merged_schema | [string](#string) | | For failed merge, we will pass in this addition merged schema and use it for head. This has to be set together with source_database or source_branch. |+| etag | [string](#string) | | The current etag of the branch. If an etag is provided and does not match the current etag of the branch, the call will be blocked and an ABORTED error will be returned. The etag should be specified for using merged_schema. The etag should be the etag from named branch. |+| validate_only | [bool](#bool) | | validate_only determines if the rebase can occur seamlessly without any conflicts. |-<a name="bytebase-v1-ListSecretsRequest"></a>+<a name="bytebase-v1-RebaseBranchResponse"></a>-### ListSecretsRequest+### RebaseBranchResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent of the secret. Format: instances/{instance}/databases/{database} |-| page_size | [int32](#int32) | | Not used. The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListSecrets` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListSecrets` must match the call that provided the page token. |+| branch | [Branch](#bytebase-v1-Branch) | | The rebased branch when rebase occurs seamlessly. |+| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |-<a name="bytebase-v1-ListSecretsResponse"></a>+<a name="bytebase-v1-UpdateBranchRequest"></a>-### ListSecretsResponse+### UpdateBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| secrets | [Secret](#bytebase-v1-Secret) | repeated | The list of secrets. |-| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| branch | [Branch](#bytebase-v1-Branch) | | The branch to update.++The branch's `name` field is used to identify the branch to update. Format: projects/{project}/branches/{branch} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| etag | [string](#string) | | The current etag of the branch. If an etag is provided and does not match the current etag of the branch, the call will be blocked and an ABORTED error will be returned. The etag should be specified for using merged_schema. The etag should be the etag from named branch. |+-<a name="bytebase-v1-ListSlowQueriesRequest"></a>-### ListSlowQueriesRequest-ListSlowQueriesRequest is the request of listing slow query.+<a name="bytebase-v1-BranchView"></a>+### BranchView-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |-| filter | [string](#string) | | The filter of the slow query log. follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Support filter by project and start_time in SlowQueryDetails for now. For example: Search the slow query log of the specific project: - the specific project: project = "projects/{project}" Search the slow query log that start_time after 2022-01-01T12:00:00.000Z: - start_time > "2022-01-01T12:00:00.000Z" - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339). - Currently we only support filtering down to date granularity. |-| order_by | [string](#string) | | The order by of the slow query log. Support order by count, latest_log_time, average_query_time, maximum_query_time, average_rows_sent, maximum_rows_sent, average_rows_examined, maximum_rows_examined for now. For example: - order by count: order_by = "count" - order by latest_log_time desc: order_by = "latest_log_time desc" Default: order by average_query_time desc. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| BRANCH_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |+| BRANCH_VIEW_BASIC | 1 | Exclude schema, baseline_schema. |+| BRANCH_VIEW_FULL | 2 | Include everything. |++-<a name="bytebase-v1-ListSlowQueriesResponse"></a>+<a name="bytebase-v1-BranchService"></a>-### ListSlowQueriesResponse-ListSlowQueriesResponse is the response of listing slow query.+### BranchService-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| slow_query_logs | [SlowQueryLog](#bytebase-v1-SlowQueryLog) | repeated | The slow query logs. |+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetBranch | [GetBranchRequest](#bytebase-v1-GetBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| ListBranches | [ListBranchesRequest](#bytebase-v1-ListBranchesRequest) | [ListBranchesResponse](#bytebase-v1-ListBranchesResponse) | |+| CreateBranch | [CreateBranchRequest](#bytebase-v1-CreateBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| UpdateBranch | [UpdateBranchRequest](#bytebase-v1-UpdateBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| MergeBranch | [MergeBranchRequest](#bytebase-v1-MergeBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| RebaseBranch | [RebaseBranchRequest](#bytebase-v1-RebaseBranchRequest) | [RebaseBranchResponse](#bytebase-v1-RebaseBranchResponse) | |+| DeleteBranch | [DeleteBranchRequest](#bytebase-v1-DeleteBranchRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| DiffDatabase | [DiffDatabaseRequest](#bytebase-v1-DiffDatabaseRequest) | [DiffDatabaseResponse](#bytebase-v1-DiffDatabaseResponse) | DiffDatabase works similar to branch rebase. 1) set the base as the schema of a database; 2) apply the changes between base and head of branch to the new base (schema of database); 3) return the diff DDLs similar to DiffSchema in database service. 4) return the conflict schema if conflict needs to be resolved by user. Once resolved, user will call DiffSchema() in database service to get diff DDLs. |+| DiffMetadata | [DiffMetadataRequest](#bytebase-v1-DiffMetadataRequest) | [DiffMetadataResponse](#bytebase-v1-DiffMetadataResponse) | |+++<a name="v1_cel_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/cel_service.proto-<a name="bytebase-v1-MaterializedViewMetadata"></a>-### MaterializedViewMetadata-MaterializedViewMetadata is the metadata for materialized views.+<a name="bytebase-v1-BatchDeparseRequest"></a>++### BatchDeparseRequest+| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a materialized view. |-| definition | [string](#string) | | The definition is the definition of a materialized view. |-| comment | [string](#string) | | The comment is the comment of a materialized view. |-| dependent_columns | [DependentColumn](#bytebase-v1-DependentColumn) | repeated | The dependent_columns is the list of dependent columns of a materialized view. |+| expressions | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | repeated | |-<a name="bytebase-v1-SchemaConfig"></a>+<a name="bytebase-v1-BatchDeparseResponse"></a>-### SchemaConfig+### BatchDeparseResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |-| table_configs | [TableConfig](#bytebase-v1-TableConfig) | repeated | The table_configs is the list of configs for tables in a schema. |+| expressions | [string](#string) | repeated | |-<a name="bytebase-v1-SchemaMetadata"></a>+<a name="bytebase-v1-BatchParseRequest"></a>++### BatchParseRequest-### SchemaMetadata-SchemaMetadata is the metadata for schemas.-This is the concept of schema in Postgres, but it's a no-op for MySQL.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |-| tables | [TableMetadata](#bytebase-v1-TableMetadata) | repeated | The tables is the list of tables in a schema. |-| external_tables | [ExternalTableMetadata](#bytebase-v1-ExternalTableMetadata) | repeated | The external_tables is the list of external tables in a schema. |-| views | [ViewMetadata](#bytebase-v1-ViewMetadata) | repeated | The views is the list of views in a schema. |-| functions | [FunctionMetadata](#bytebase-v1-FunctionMetadata) | repeated | The functions is the list of functions in a schema. |-| streams | [StreamMetadata](#bytebase-v1-StreamMetadata) | repeated | The streams is the list of streams in a schema, currently, only used for Snowflake. |-| tasks | [TaskMetadata](#bytebase-v1-TaskMetadata) | repeated | The routines is the list of routines in a schema, currently, only used for Snowflake. |-| materialized_views | [MaterializedViewMetadata](#bytebase-v1-MaterializedViewMetadata) | repeated | The materialized_views is the list of materialized views in a schema. |+| expressions | [string](#string) | repeated | |-<a name="bytebase-v1-SearchDatabasesRequest"></a>+<a name="bytebase-v1-BatchParseResponse"></a>-### SearchDatabasesRequest+### BatchParseResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page.+| expressions | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | repeated | |-When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token. |-| filter | [string](#string) | | Filter is used to filter databases returned in the list. follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - project with "=" operator, for example: - project = "projects/sample-project" - project = "projects/-" - instance with "=" operator, for example: - instance = "instances/mysql" - instance = "instances/-" for example, we can use project = "projects/sample" && instance = "instances/-" to list all databases in the sample project. |-| permission | [string](#string) | | By default, the permission "bb.databases.get" is used. Alternatively, "bb.databases.query" can be used to retrieve databases with query permissions to. |++-<a name="bytebase-v1-SearchDatabasesResponse"></a>+-### SearchDatabasesResponse+<a name="bytebase-v1-CelService"></a>+### CelService-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| databases | [Database](#bytebase-v1-Database) | repeated | The databases from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| BatchParse | [BatchParseRequest](#bytebase-v1-BatchParseRequest) | [BatchParseResponse](#bytebase-v1-BatchParseResponse) | |+| BatchDeparse | [BatchDeparseRequest](#bytebase-v1-BatchDeparseRequest) | [BatchDeparseResponse](#bytebase-v1-BatchDeparseResponse) | |+++<a name="v1_changelist_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/changelist_service.proto-<a name="bytebase-v1-Secret"></a>-### Secret-Secret is the secret of the database now.+<a name="bytebase-v1-Changelist"></a>++### Changelist+| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | name is the unique name of the secret, which is specified by the client. Format: instances/{instance}/databases/{database}/secrets/{secret} |-| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was created initially. |-| updated_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was updated. |-| value | [string](#string) | | The value of the secret. |-| description | [string](#string) | | The description of the secret. |+| name | [string](#string) | | The name of the changelist resource. Canonical parent is project. Format: projects/{project}/changelists/{changelist} |+| description | [string](#string) | | |+| creator | [string](#string) | | The creator of the changelist. Format: users/{email} |+| updater | [string](#string) | | The updater of the changelist. Format: users/{email} |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The create time of the changelist. |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The last update time of the changelist. |+| changes | [Changelist.Change](#bytebase-v1-Changelist-Change) | repeated | |-<a name="bytebase-v1-SlowQueryDetails"></a>+<a name="bytebase-v1-Changelist-Change"></a>++### Changelist.Change-### SlowQueryDetails-SlowQueryDetails is the details of the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The start time of the slow query log. |-| query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The query time of the slow query log. |-| lock_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The lock time of the slow query log. |-| rows_sent | [int32](#int32) | | The rows sent of the slow query log. |-| rows_examined | [int32](#int32) | | The rows examined of the slow query log. |-| sql_text | [string](#string) | | The sql text of the slow query log. |+| sheet | [string](#string) | | The name of a sheet. |+| source | [string](#string) | | The source of origin. 1) change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory}. 2) branch: projects/{project}/branches/{branch}. 3) raw SQL if empty. |+| version | [string](#string) | | The migration version for a change. |-<a name="bytebase-v1-SlowQueryLog"></a>+<a name="bytebase-v1-CreateChangelistRequest"></a>++### CreateChangelistRequest-### SlowQueryLog-SlowQueryLog is the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| resource | [string](#string) | | The resource of the slow query log. The format is "instances/{instance}/databases/{database}". |-| project | [string](#string) | | The project of the slow query log. The format is "projects/{project}". |-| statistics | [SlowQueryStatistics](#bytebase-v1-SlowQueryStatistics) | | The statistics of the slow query log. |+| parent | [string](#string) | | The parent resource where this changelist will be created. Format: projects/{project} |+| changelist | [Changelist](#bytebase-v1-Changelist) | | The changelist to create. |+| changelist_id | [string](#string) | | The ID to use for the changelist, which will become the final component of the changelist's resource name.+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-SlowQueryStatistics"></a>-### SlowQueryStatistics-SlowQueryStatistics is the statistics of the slow query log.+<a name="bytebase-v1-DeleteChangelistRequest"></a>++### DeleteChangelistRequest+| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sql_fingerprint | [string](#string) | | The fingerprint of the slow query log. |-| count | [int32](#int32) | | The count of the slow query log. |-| latest_log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest log time of the slow query log. |-| average_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The average query time of the slow query log. |-| maximum_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The maximum query time of the slow query log. |-| average_rows_sent | [int32](#int32) | | The average rows sent of the slow query log. |-| maximum_rows_sent | [int32](#int32) | | The maximum rows sent of the slow query log. |-| average_rows_examined | [int32](#int32) | | The average rows examined of the slow query log. |-| maximum_rows_examined | [int32](#int32) | | The maximum rows examined of the slow query log. |-| query_time_percent | [double](#double) | | The percentage of the query time. |-| count_percent | [double](#double) | | The percentage of the count. |-| samples | [SlowQueryDetails](#bytebase-v1-SlowQueryDetails) | repeated | Samples are details of the sample slow query logs with the same fingerprint. |+| name | [string](#string) | | The name of the changelist to delete. Format: projects/{project}/changelists/{changelist} |-<a name="bytebase-v1-StreamMetadata"></a>+<a name="bytebase-v1-GetChangelistRequest"></a>-### StreamMetadata+### GetChangelistRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a stream. |-| table_name | [string](#string) | | The table_name is the name of the table/view that the stream is created on. |-| owner | [string](#string) | | The owner of the stream. |-| comment | [string](#string) | | The comment of the stream. |-| type | [StreamMetadata.Type](#bytebase-v1-StreamMetadata-Type) | | The type of the stream. |-| stale | [bool](#bool) | | Indicates whether the stream was last read before the `stale_after` time. |-| mode | [StreamMetadata.Mode](#bytebase-v1-StreamMetadata-Mode) | | The mode of the stream. |-| definition | [string](#string) | | The definition of the stream. |+| name | [string](#string) | | The name of the changelist to retrieve. Format: projects/{project}/changelists/{changelist} |-<a name="bytebase-v1-SyncDatabaseRequest"></a>+<a name="bytebase-v1-ListChangelistsRequest"></a>-### SyncDatabaseRequest+### ListChangelistsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to sync. Format: instances/{instance}/databases/{database} |+| parent | [string](#string) | | The parent, which owns this collection of changelists. Format: projects/{project} Use "projects/-" to list all changelists. |+| page_size | [int32](#int32) | | The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token. |-<a name="bytebase-v1-SyncDatabaseResponse"></a>-### SyncDatabaseResponse+<a name="bytebase-v1-ListChangelistsResponse"></a>+### ListChangelistsResponse+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| changelists | [Changelist](#bytebase-v1-Changelist) | repeated | The changelists from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-TableConfig"></a>-### TableConfig+++<a name="bytebase-v1-UpdateChangelistRequest"></a>++### UpdateChangelistRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a table. |-| column_configs | [ColumnConfig](#bytebase-v1-ColumnConfig) | repeated | The column_configs is the ordered list of configs for columns in a table. |+| changelist | [Changelist](#bytebase-v1-Changelist) | | The changelist to update.+The changelist's `name` field is used to identify the changelist to update. Format: projects/{project}/changelists/{changelist} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. |-<a name="bytebase-v1-TableMetadata"></a>+-### TableMetadata-TableMetadata is the metadata for tables.+--| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a table. |-| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a table. |-| indexes | [IndexMetadata](#bytebase-v1-IndexMetadata) | repeated | The indexes is the list of indexes in a table. |-| engine | [string](#string) | | The engine is the engine of a table. |-| collation | [string](#string) | | The collation is the collation of a table. |-| row_count | [int64](#int64) | | The row_count is the estimated number of rows of a table. |-| data_size | [int64](#int64) | | The data_size is the estimated data size of a table. |-| index_size | [int64](#int64) | | The index_size is the estimated index size of a table. |-| data_free | [int64](#int64) | | The data_free is the estimated free data size of a table. |-| create_options | [string](#string) | | The create_options is the create option of a table. |-| comment | [string](#string) | | The comment is the comment of a table. classification and user_comment is parsed from the comment. |-| classification | [string](#string) | | The classification is the classification of a table parsed from the comment. |-| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |-| foreign_keys | [ForeignKeyMetadata](#bytebase-v1-ForeignKeyMetadata) | repeated | The foreign_keys is the list of foreign keys in a table. |-| partitions | [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata) | repeated | The partitions is the list of partitions in a table. |-------<a name="bytebase-v1-TablePartitionMetadata"></a>--### TablePartitionMetadata-TablePartitionMetadata is the metadata for table partitions.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a table partition. |-| type | [TablePartitionMetadata.Type](#bytebase-v1-TablePartitionMetadata-Type) | | The type of a table partition. |-| expression | [string](#string) | | The expression is the expression of a table partition. For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html. For MySQL, the expression is the `expr` or `column_list` of the following syntax. PARTITION BY { [LINEAR] HASH(expr) | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list) | RANGE{(expr) | COLUMNS(column_list)} | LIST{(expr) | COLUMNS(column_list)} }. |-| value | [string](#string) | | The value is the value of a table partition. For MySQL, the value is for RANGE and LIST partition types, - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE. - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values. - For others, it's an empty string. |-| use_default | [string](#string) | | The use_default is whether the users use the default partition, it stores the different value for different database engines. For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}. |-| subpartitions | [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata) | repeated | The subpartitions is the list of subpartitions in a table partition. |-------<a name="bytebase-v1-TaskMetadata"></a>--### TaskMetadata----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a task. |-| id | [string](#string) | | The id is the snowflake-generated id of a task. Example: 01ad32a0-1bb6-5e93-0000-000000000001 |-| owner | [string](#string) | | The owner of the task. |-| comment | [string](#string) | | The comment of the task. |-| warehouse | [string](#string) | | The warehouse of the task. |-| schedule | [string](#string) | | The schedule interval of the task. |-| predecessors | [string](#string) | repeated | The predecessor tasks of the task. |-| state | [TaskMetadata.State](#bytebase-v1-TaskMetadata-State) | | The state of the task. |-| condition | [string](#string) | | The condition of the task. |-| definition | [string](#string) | | The definition of the task. |-------<a name="bytebase-v1-UpdateBackupSettingRequest"></a>--### UpdateBackupSettingRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| setting | [BackupSetting](#bytebase-v1-BackupSetting) | | The database backup setting to update. |-------<a name="bytebase-v1-UpdateDatabaseMetadataRequest"></a>--### UpdateDatabaseMetadataRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The database metadata to update.--The database_metadata's `name` field is used to identify the database metadata to update. Format: instances/{instance}/databases/{database}/metadata |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-------<a name="bytebase-v1-UpdateDatabaseRequest"></a>--### UpdateDatabaseRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database | [Database](#bytebase-v1-Database) | | The database to update.--The database's `name` field is used to identify the database to update. Format: instances/{instance}/databases/{database} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-------<a name="bytebase-v1-UpdateSecretRequest"></a>--### UpdateSecretRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| secret | [Secret](#bytebase-v1-Secret) | | The secret to be created or updated. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The mask of the fields to be updated. |-| allow_missing | [bool](#bool) | | If true, the secret will be created if it does not exist. |-------<a name="bytebase-v1-ViewMetadata"></a>--### ViewMetadata-ViewMetadata is the metadata for views.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a view. |-| definition | [string](#string) | | The definition is the definition of a view. |-| comment | [string](#string) | | The comment is the comment of a view. |-| dependent_columns | [DependentColumn](#bytebase-v1-DependentColumn) | repeated | The dependent_columns is the list of dependent columns of a view. |---------<a name="bytebase-v1-Backup-BackupState"></a>--### Backup.BackupState-The state of the backup.--| Name | Number | Description |-| ---- | ------ | ----------- |-| BACKUP_STATE_UNSPECIFIED | 0 | The state of the backup is unknown. |-| PENDING_CREATE | 1 | The backup is being pending to create. |-| DONE | 2 | The backup is ready to use. |-| FAILED | 3 | The backup is being deleted. |----<a name="bytebase-v1-Backup-BackupType"></a>--### Backup.BackupType-The type of the backup.--| Name | Number | Description |-| ---- | ------ | ----------- |-| BACKUP_TYPE_UNSPECIFIED | 0 | The type of the backup is unknown. |-| MANUAL | 1 | The backup is created by user. |-| AUTOMATIC | 2 | The backup is created by automatic backup. |-| PITR | 3 | The backup is created automatically after doing PITR. |----<a name="bytebase-v1-ChangeHistory-Source"></a>--### ChangeHistory.Source---| Name | Number | Description |-| ---- | ------ | ----------- |-| SOURCE_UNSPECIFIED | 0 | |-| UI | 1 | |-| VCS | 2 | |-| LIBRARY | 3 | |----<a name="bytebase-v1-ChangeHistory-Status"></a>--### ChangeHistory.Status---| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| DONE | 2 | |-| FAILED | 3 | |----<a name="bytebase-v1-ChangeHistory-Type"></a>--### ChangeHistory.Type---| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| BASELINE | 1 | |-| MIGRATE | 2 | |-| MIGRATE_SDL | 3 | |-| MIGRATE_GHOST | 4 | |-| BRANCH | 5 | |-| DATA | 6 | |----<a name="bytebase-v1-ChangeHistoryView"></a>--### ChangeHistoryView---| Name | Number | Description |-| ---- | ------ | ----------- |-| CHANGE_HISTORY_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |-| CHANGE_HISTORY_VIEW_BASIC | 1 | |-| CHANGE_HISTORY_VIEW_FULL | 2 | |++<a name="bytebase-v1-ChangelistService"></a>-<a name="bytebase-v1-DatabaseMetadataView"></a>--### DatabaseMetadataView---| Name | Number | Description |-| ---- | ------ | ----------- |-| DATABASE_METADATA_VIEW_UNSPECIFIED | 0 | The default and unset value. The API will default to the BASIC view. |-| DATABASE_METADATA_VIEW_BASIC | 1 | Include basic information of schema object names such as schema, table, view, function names. |-| DATABASE_METADATA_VIEW_FULL | 2 | Include everything such as columns and column masking level. |----<a name="bytebase-v1-StreamMetadata-Mode"></a>--### StreamMetadata.Mode---| Name | Number | Description |-| ---- | ------ | ----------- |-| MODE_UNSPECIFIED | 0 | |-| MODE_DEFAULT | 1 | |-| MODE_APPEND_ONLY | 2 | |-| MODE_INSERT_ONLY | 3 | |----<a name="bytebase-v1-StreamMetadata-Type"></a>--### StreamMetadata.Type---| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| TYPE_DELTA | 1 | |----<a name="bytebase-v1-TablePartitionMetadata-Type"></a>--### TablePartitionMetadata.Type-Type is the type of a table partition, some database engines may not support all types.-Only avilable for the following database engines now:-MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)-TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY-PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)--| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| RANGE | 1 | |-| RANGE_COLUMNS | 2 | |-| LIST | 3 | |-| LIST_COLUMNS | 4 | |-| HASH | 5 | |-| LINEAR_HASH | 6 | |-| KEY | 7 | |-| LINEAR_KEY | 8 | |----<a name="bytebase-v1-TaskMetadata-State"></a>--### TaskMetadata.State---| Name | Number | Description |-| ---- | ------ | ----------- |-| STATE_UNSPECIFIED | 0 | |-| STATE_STARTED | 1 | |-| STATE_SUSPENDED | 2 | |--------<a name="bytebase-v1-DatabaseService"></a>--### DatabaseService+### ChangelistService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| GetDatabase | [GetDatabaseRequest](#bytebase-v1-GetDatabaseRequest) | [Database](#bytebase-v1-Database) | |-| ListDatabases | [ListDatabasesRequest](#bytebase-v1-ListDatabasesRequest) | [ListDatabasesResponse](#bytebase-v1-ListDatabasesResponse) | |-| SearchDatabases | [SearchDatabasesRequest](#bytebase-v1-SearchDatabasesRequest) | [SearchDatabasesResponse](#bytebase-v1-SearchDatabasesResponse) | Search for databases that the caller has the bb.databases.get permission on, and also satisfy the specified query. |-| UpdateDatabase | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | [Database](#bytebase-v1-Database) | |-| BatchUpdateDatabases | [BatchUpdateDatabasesRequest](#bytebase-v1-BatchUpdateDatabasesRequest) | [BatchUpdateDatabasesResponse](#bytebase-v1-BatchUpdateDatabasesResponse) | |-| SyncDatabase | [SyncDatabaseRequest](#bytebase-v1-SyncDatabaseRequest) | [SyncDatabaseResponse](#bytebase-v1-SyncDatabaseResponse) | |-| GetDatabaseMetadata | [GetDatabaseMetadataRequest](#bytebase-v1-GetDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | |-| UpdateDatabaseMetadata | [UpdateDatabaseMetadataRequest](#bytebase-v1-UpdateDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | |-| GetDatabaseSchema | [GetDatabaseSchemaRequest](#bytebase-v1-GetDatabaseSchemaRequest) | [DatabaseSchema](#bytebase-v1-DatabaseSchema) | |-| DiffSchema | [DiffSchemaRequest](#bytebase-v1-DiffSchemaRequest) | [DiffSchemaResponse](#bytebase-v1-DiffSchemaResponse) | |-| GetBackupSetting | [GetBackupSettingRequest](#bytebase-v1-GetBackupSettingRequest) | [BackupSetting](#bytebase-v1-BackupSetting) | |-| UpdateBackupSetting | [UpdateBackupSettingRequest](#bytebase-v1-UpdateBackupSettingRequest) | [BackupSetting](#bytebase-v1-BackupSetting) | |-| CreateBackup | [CreateBackupRequest](#bytebase-v1-CreateBackupRequest) | [Backup](#bytebase-v1-Backup) | |-| ListBackups | [ListBackupsRequest](#bytebase-v1-ListBackupsRequest) | [ListBackupsResponse](#bytebase-v1-ListBackupsResponse) | |-| ListSlowQueries | [ListSlowQueriesRequest](#bytebase-v1-ListSlowQueriesRequest) | [ListSlowQueriesResponse](#bytebase-v1-ListSlowQueriesResponse) | |-| ListSecrets | [ListSecretsRequest](#bytebase-v1-ListSecretsRequest) | [ListSecretsResponse](#bytebase-v1-ListSecretsResponse) | |-| UpdateSecret | [UpdateSecretRequest](#bytebase-v1-UpdateSecretRequest) | [Secret](#bytebase-v1-Secret) | |-| DeleteSecret | [DeleteSecretRequest](#bytebase-v1-DeleteSecretRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| AdviseIndex | [AdviseIndexRequest](#bytebase-v1-AdviseIndexRequest) | [AdviseIndexResponse](#bytebase-v1-AdviseIndexResponse) | |-| ListChangeHistories | [ListChangeHistoriesRequest](#bytebase-v1-ListChangeHistoriesRequest) | [ListChangeHistoriesResponse](#bytebase-v1-ListChangeHistoriesResponse) | |-| GetChangeHistory | [GetChangeHistoryRequest](#bytebase-v1-GetChangeHistoryRequest) | [ChangeHistory](#bytebase-v1-ChangeHistory) | |+| CreateChangelist | [CreateChangelistRequest](#bytebase-v1-CreateChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |+| GetChangelist | [GetChangelistRequest](#bytebase-v1-GetChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |+| ListChangelists | [ListChangelistsRequest](#bytebase-v1-ListChangelistsRequest) | [ListChangelistsResponse](#bytebase-v1-ListChangelistsResponse) | |+| UpdateChangelist | [UpdateChangelistRequest](#bytebase-v1-UpdateChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |+| DeleteChangelist | [DeleteChangelistRequest](#bytebase-v1-DeleteChangelistRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-<a name="v1_branch_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>--## v1/branch_service.proto----<a name="bytebase-v1-Branch"></a>--### Branch----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the branch. Format: projects/{project}/branches/{branch} {branch} should be the id of a sheet. |-| branch_id | [string](#string) | | The branch ID. |-| schema | [string](#string) | | The schema of branch. AKA sheet's statement. |-| schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the current editing schema. |-| baseline_schema | [string](#string) | | The baseline schema. |-| baseline_schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the baseline schema. |-| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the branch. |-| baseline_database | [string](#string) | | The name of the baseline database. Format: instances/{instance}/databases/{database} |-| parent_branch | [string](#string) | | The name of the parent branch. For main branch, it's empty. For child branch, its format will be: projects/{project}/branches/{branch} |-| etag | [string](#string) | | The etag of the branch. |-| creator | [string](#string) | | The creator of the branch. Format: users/{email} |-| updater | [string](#string) | | The updater of the branch. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the branch was created. |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the branch was last updated. |-------<a name="bytebase-v1-CreateBranchRequest"></a>--### CreateBranchRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of branches. Format: project/{project} |-| branch | [Branch](#bytebase-v1-Branch) | | |-| branch_id | [string](#string) | | The ID to use for the branch, which will become the final component of the branch's resource name. Format: [a-zA-Z][a-zA-Z0-9-_/]+. |-------<a name="bytebase-v1-DeleteBranchRequest"></a>--### DeleteBranchRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the branch to delete. Format: projects/{project}/branches/{branch} |-| force | [bool](#bool) | | By default, server will return `FAILED_PRECONDITION` error if delete the branch that is parent of other branches. If true, server will delete the branch forcely but will not delete its children branches. |-------<a name="bytebase-v1-DiffDatabaseRequest"></a>--### DiffDatabaseRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of branch. |-| database | [string](#string) | | The name of the databsae to merge the branch to. |-------<a name="bytebase-v1-DiffDatabaseResponse"></a>--### DiffDatabaseResponse----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| diff | [string](#string) | | The schema diff when merge occurs seamlessly. |-| schema | [string](#string) | | The merged schema if there is no conflict. |-| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |-------<a name="bytebase-v1-DiffMetadataRequest"></a>--### DiffMetadataRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| source_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the source schema. |-| target_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the target schema. |-| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema. |---+<a name="v1_environment_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/environment_service.proto-<a name="bytebase-v1-DiffMetadataResponse"></a>-### DiffMetadataResponse+<a name="bytebase-v1-CreateEnvironmentRequest"></a>++### CreateEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| diff | [string](#string) | | The diff of the metadata. |+| environment | [Environment](#bytebase-v1-Environment) | | The environment to create. |+| environment_id | [string](#string) | | The ID to use for the environment, which will become the final component of the environment's resource name.++This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-GetBranchRequest"></a>+<a name="bytebase-v1-DeleteEnvironmentRequest"></a>-### GetBranchRequest+### DeleteEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the branch to retrieve. Format: projects/{project}/branches/{branch} |+| name | [string](#string) | | The name of the environment to delete. Format: environments/{environment} |-<a name="bytebase-v1-ListBranchesRequest"></a>+<a name="bytebase-v1-Environment"></a>-### ListBranchesRequest+### Environment| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource of the branch. Format: projects/{project} |-| filter | [string](#string) | | To filter the search result. |-| page_size | [int32](#int32) | | The maximum number of branches to return. The service may return fewer than this value. If unspecified, at most 50 branches will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListBranches` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListBranches` must match the call that provided the page token. |-| view | [BranchView](#bytebase-v1-BranchView) | | |+| name | [string](#string) | | The name of the environment. Format: environments/{environment} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | |+| order | [int32](#int32) | | |+| tier | [EnvironmentTier](#bytebase-v1-EnvironmentTier) | | |-<a name="bytebase-v1-ListBranchesResponse"></a>+<a name="bytebase-v1-GetEnvironmentRequest"></a>-### ListBranchesResponse+### GetEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| branches | [Branch](#bytebase-v1-Branch) | repeated | The branches from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the environment to retrieve. Format: environments/{environment} |-<a name="bytebase-v1-MergeBranchRequest"></a>+<a name="bytebase-v1-ListEnvironmentsRequest"></a>-### MergeBranchRequest+### ListEnvironmentsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the base branch to merge to. Format: projects/{project}/branches/{branch} |-| head_branch | [string](#string) | | The head branch to merge from. Format: projects/{project}/branches/{branch} |-| etag | [string](#string) | | The current etag of the branch. If an etag is provided and does not match the current etag of the branch, the call will be blocked and an ABORTED error will be returned. The etag should be the etag from named branch. |-| validate_only | [bool](#bool) | | validate_only determines if the merge can occur seamlessly without any conflicts. |+| page_size | [int32](#int32) | | The maximum number of environments to return. The service may return fewer than this value. If unspecified, at most 50 environments will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListEnvironments` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListEnvironments` must match the call that provided the page token. |+| show_deleted | [bool](#bool) | | Show deleted environments if specified. |-<a name="bytebase-v1-RebaseBranchRequest"></a>-### RebaseBranchRequest+<a name="bytebase-v1-ListEnvironmentsResponse"></a>++### ListEnvironmentsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the base branch to merge to. Format: projects/{project}/branches/{branch} |-| source_database | [string](#string) | | The database (remote upstream) used to rebase. We use its schema as baseline and reapply the difference between base and head of the named branch. Format: instances/{instance}/databases/{database} |-| source_branch | [string](#string) | | The branch (remote upstream) used to rebase. We use its head as baseline. We use its head schema as baseline and reapply the difference between base and head of the named branch. Format: projects/{project}/branches/{branch} |-| merged_schema | [string](#string) | | For failed merge, we will pass in this addition merged schema and use it for head. This has to be set together with source_database or source_branch. |-| etag | [string](#string) | | The current etag of the branch. If an etag is provided and does not match the current etag of the branch, the call will be blocked and an ABORTED error will be returned. The etag should be specified for using merged_schema. The etag should be the etag from named branch. |-| validate_only | [bool](#bool) | | validate_only determines if the rebase can occur seamlessly without any conflicts. |+| environments | [Environment](#bytebase-v1-Environment) | repeated | The environments from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-RebaseBranchResponse"></a>+<a name="bytebase-v1-UndeleteEnvironmentRequest"></a>-### RebaseBranchResponse+### UndeleteEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| branch | [Branch](#bytebase-v1-Branch) | | The rebased branch when rebase occurs seamlessly. |-| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |+| name | [string](#string) | | The name of the deleted environment. Format: environments/{environment} |-<a name="bytebase-v1-UpdateBranchRequest"></a>+<a name="bytebase-v1-UpdateEnvironmentRequest"></a>-### UpdateBranchRequest+### UpdateEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| branch | [Branch](#bytebase-v1-Branch) | | The branch to update.+| environment | [Environment](#bytebase-v1-Environment) | | The environment to update.-The branch's `name` field is used to identify the branch to update. Format: projects/{project}/branches/{branch} |+The environment's `name` field is used to identify the environment to update. Format: environments/{environment} || update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| etag | [string](#string) | | The current etag of the branch. If an etag is provided and does not match the current etag of the branch, the call will be blocked and an ABORTED error will be returned. The etag should be specified for using merged_schema. The etag should be the etag from named branch. |@@ -4127,16 +3851,16 @@ The branch's `name` field is used to identify the branch to update. Format:-<a name="bytebase-v1-BranchView"></a>+<a name="bytebase-v1-EnvironmentTier"></a>-### BranchView+### EnvironmentTier| Name | Number | Description || ---- | ------ | ----------- |-| BRANCH_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |-| BRANCH_VIEW_BASIC | 1 | Exclude schema, baseline_schema. |-| BRANCH_VIEW_FULL | 2 | Include everything. |+| ENVIRONMENT_TIER_UNSPECIFIED | 0 | |+| PROTECTED | 1 | |+| UNPROTECTED | 2 | |@@ -4144,236 +3868,242 @@ The branch's `name` field is used to identify the branch to update. Format:-<a name="bytebase-v1-BranchService"></a>+<a name="bytebase-v1-EnvironmentService"></a>-### BranchService+### EnvironmentService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| GetBranch | [GetBranchRequest](#bytebase-v1-GetBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| ListBranches | [ListBranchesRequest](#bytebase-v1-ListBranchesRequest) | [ListBranchesResponse](#bytebase-v1-ListBranchesResponse) | |-| CreateBranch | [CreateBranchRequest](#bytebase-v1-CreateBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| UpdateBranch | [UpdateBranchRequest](#bytebase-v1-UpdateBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| MergeBranch | [MergeBranchRequest](#bytebase-v1-MergeBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| RebaseBranch | [RebaseBranchRequest](#bytebase-v1-RebaseBranchRequest) | [RebaseBranchResponse](#bytebase-v1-RebaseBranchResponse) | |-| DeleteBranch | [DeleteBranchRequest](#bytebase-v1-DeleteBranchRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| DiffDatabase | [DiffDatabaseRequest](#bytebase-v1-DiffDatabaseRequest) | [DiffDatabaseResponse](#bytebase-v1-DiffDatabaseResponse) | DiffDatabase works similar to branch rebase. 1) set the base as the schema of a database; 2) apply the changes between base and head of branch to the new base (schema of database); 3) return the diff DDLs similar to DiffSchema in database service. 4) return the conflict schema if conflict needs to be resolved by user. Once resolved, user will call DiffSchema() in database service to get diff DDLs. |-| DiffMetadata | [DiffMetadataRequest](#bytebase-v1-DiffMetadataRequest) | [DiffMetadataResponse](#bytebase-v1-DiffMetadataResponse) | |+| GetEnvironment | [GetEnvironmentRequest](#bytebase-v1-GetEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |+| ListEnvironments | [ListEnvironmentsRequest](#bytebase-v1-ListEnvironmentsRequest) | [ListEnvironmentsResponse](#bytebase-v1-ListEnvironmentsResponse) | |+| CreateEnvironment | [CreateEnvironmentRequest](#bytebase-v1-CreateEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |+| UpdateEnvironment | [UpdateEnvironmentRequest](#bytebase-v1-UpdateEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |+| DeleteEnvironment | [DeleteEnvironmentRequest](#bytebase-v1-DeleteEnvironmentRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteEnvironment | [UndeleteEnvironmentRequest](#bytebase-v1-UndeleteEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-<a name="v1_cel_service-proto"></a>+<a name="v1_iam_policy-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/cel_service.proto+## v1/iam_policy.proto-<a name="bytebase-v1-BatchDeparseRequest"></a>+<a name="bytebase-v1-Binding"></a>-### BatchDeparseRequest+### Binding| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| expressions | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | repeated | |+| role | [string](#string) | | The role that is assigned to the members. Format: roles/{role} |+| members | [string](#string) | repeated | Specifies the principals requesting access for a Bytebase resource. |+| condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this binding. If the condition evaluates to true, then this binding applies to the current request. If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. |+| parsed_expr | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | | The parsed expression of the condition. |-<a name="bytebase-v1-BatchDeparseResponse"></a>+<a name="bytebase-v1-IamPolicy"></a>-### BatchDeparseResponse+### IamPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| expressions | [string](#string) | repeated | |-+| bindings | [Binding](#bytebase-v1-Binding) | repeated | Collection of binding. A binding binds one or more project members to a single project role. |-<a name="bytebase-v1-BatchParseRequest"></a>+-### BatchParseRequest+++-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| expressions | [string](#string) | repeated | |+<a name="v1_idp_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/idp_service.proto-<a name="bytebase-v1-BatchParseResponse"></a>+<a name="bytebase-v1-CreateIdentityProviderRequest"></a>-### BatchParseResponse+### CreateIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| expressions | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | repeated | |---+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to create. |+| identity_provider_id | [string](#string) | | The ID to use for the identity provider, which will become the final component of the identity provider's resource name.+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |----<a name="bytebase-v1-CelService"></a>-### CelService+<a name="bytebase-v1-DeleteIdentityProviderRequest"></a>+### DeleteIdentityProviderRequest-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| BatchParse | [BatchParseRequest](#bytebase-v1-BatchParseRequest) | [BatchParseResponse](#bytebase-v1-BatchParseResponse) | |-| BatchDeparse | [BatchDeparseRequest](#bytebase-v1-BatchDeparseRequest) | [BatchDeparseResponse](#bytebase-v1-BatchDeparseResponse) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the identity provider to delete. Format: idps/{identity_provider} |-<a name="v1_changelist_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/changelist_service.proto-<a name="bytebase-v1-Changelist"></a>+<a name="bytebase-v1-FieldMapping"></a>-### Changelist+### FieldMapping+FieldMapping saves the field names from user info API of identity provider.+As we save all raw json string of user info response data into `principal.idp_user_info`,+we can extract the relevant data based with `FieldMapping`.+e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.+Then the identifier of FieldMapping will be `login`, display_name will be `name`,+and email will be `email`.+reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the changelist resource. Canonical parent is project. Format: projects/{project}/changelists/{changelist} |-| description | [string](#string) | | |-| creator | [string](#string) | | The creator of the changelist. Format: users/{email} |-| updater | [string](#string) | | The updater of the changelist. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The create time of the changelist. |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The last update time of the changelist. |-| changes | [Changelist.Change](#bytebase-v1-Changelist-Change) | repeated | |+| identifier | [string](#string) | | Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. |+| display_name | [string](#string) | | DisplayName is the field name of display name in 3rd-party idp user info. |+| email | [string](#string) | | Email is the field name of primary email in 3rd-party idp user info. |+| phone | [string](#string) | | Phone is the field name of primary phone in 3rd-party idp user info. |-<a name="bytebase-v1-Changelist-Change"></a>+<a name="bytebase-v1-GetIdentityProviderRequest"></a>-### Changelist.Change+### GetIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sheet | [string](#string) | | The name of a sheet. |-| source | [string](#string) | | The source of origin. 1) change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory}. 2) branch: projects/{project}/branches/{branch}. 3) raw SQL if empty. |-| version | [string](#string) | | The migration version for a change. |+| name | [string](#string) | | |-<a name="bytebase-v1-CreateChangelistRequest"></a>+<a name="bytebase-v1-IdentityProvider"></a>-### CreateChangelistRequest+### IdentityProvider| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this changelist will be created. Format: projects/{project} |-| changelist | [Changelist](#bytebase-v1-Changelist) | | The changelist to create. |-| changelist_id | [string](#string) | | The ID to use for the changelist, which will become the final component of the changelist's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| name | [string](#string) | | The name of the identity provider. Format: idps/{identity_provider} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | |+| domain | [string](#string) | | |+| type | [IdentityProviderType](#bytebase-v1-IdentityProviderType) | | |+| config | [IdentityProviderConfig](#bytebase-v1-IdentityProviderConfig) | | |-<a name="bytebase-v1-DeleteChangelistRequest"></a>+<a name="bytebase-v1-IdentityProviderConfig"></a>-### DeleteChangelistRequest+### IdentityProviderConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the changelist to delete. Format: projects/{project}/changelists/{changelist} |-+| oauth2_config | [OAuth2IdentityProviderConfig](#bytebase-v1-OAuth2IdentityProviderConfig) | | |+| oidc_config | [OIDCIdentityProviderConfig](#bytebase-v1-OIDCIdentityProviderConfig) | | |+| ldap_config | [LDAPIdentityProviderConfig](#bytebase-v1-LDAPIdentityProviderConfig) | | |-<a name="bytebase-v1-GetChangelistRequest"></a>-### GetChangelistRequest+<a name="bytebase-v1-LDAPIdentityProviderConfig"></a>+### LDAPIdentityProviderConfig+LDAPIdentityProviderConfig is the structure for LDAP identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the changelist to retrieve. Format: projects/{project}/changelists/{changelist} |+| host | [string](#string) | | Host is the hostname or IP address of the LDAP server, e.g. "ldap.example.com". |+| port | [int32](#int32) | | Port is the port number of the LDAP server, e.g. 389. When not set, the default port of the corresponding security protocol will be used, i.e. 389 for StartTLS and 636 for LDAPS. |+| skip_tls_verify | [bool](#bool) | | SkipTLSVerify controls whether to skip TLS certificate verification. |+| bind_dn | [string](#string) | | BindDN is the DN of the user to bind as a service account to perform search requests. |+| bind_password | [string](#string) | | BindPassword is the password of the user to bind as a service account. |+| base_dn | [string](#string) | | BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". |+| user_filter | [string](#string) | | UserFilter is the filter to search for users, e.g. "(uid=%s)". |+| security_protocol | [string](#string) | | SecurityProtocol is the security protocol to be used for establishing connections with the LDAP server. It should be either StartTLS or LDAPS, and cannot be empty. |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | FieldMapping is the mapping of the user attributes returned by the LDAP server. |-<a name="bytebase-v1-ListChangelistsRequest"></a>+<a name="bytebase-v1-ListIdentityProvidersRequest"></a>-### ListChangelistsRequest+### ListIdentityProvidersRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of changelists. Format: projects/{project} Use "projects/-" to list all changelists. |-| page_size | [int32](#int32) | | The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page.+| page_size | [int32](#int32) | | The maximum number of identity providers to return. The service may return fewer than this value. If unspecified, at most 50 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListIdentityProviders` call. Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token. |+When paginating, all other parameters provided to `ListIdentityProviders` must match the call that provided the page token. |+| show_deleted | [bool](#bool) | | Show deleted identity providers if specified. |-<a name="bytebase-v1-ListChangelistsResponse"></a>+<a name="bytebase-v1-ListIdentityProvidersResponse"></a>-### ListChangelistsResponse+### ListIdentityProvidersResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| changelists | [Changelist](#bytebase-v1-Changelist) | repeated | The changelists from the specified request. |+| identity_providers | [IdentityProvider](#bytebase-v1-IdentityProvider) | repeated | The identity providers from the specified request. || next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |@@ -4381,1141 +4111,1174 @@ When paginating, all other parameters provided to `ListDatabases` must match the-<a name="bytebase-v1-UpdateChangelistRequest"></a>--### UpdateChangelistRequest+<a name="bytebase-v1-OAuth2IdentityProviderConfig"></a>+### OAuth2IdentityProviderConfig+OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| changelist | [Changelist](#bytebase-v1-Changelist) | | The changelist to update.--The changelist's `name` field is used to identify the changelist to update. Format: projects/{project}/changelists/{changelist} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. |------+| auth_url | [string](#string) | | |+| token_url | [string](#string) | | |+| user_info_url | [string](#string) | | |+| client_id | [string](#string) | | |+| client_secret | [string](#string) | | |+| scopes | [string](#string) | repeated | |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |+| skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |---<a name="bytebase-v1-ChangelistService"></a>-### ChangelistService+<a name="bytebase-v1-OAuth2IdentityProviderTestRequestContext"></a>-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| CreateChangelist | [CreateChangelistRequest](#bytebase-v1-CreateChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |-| GetChangelist | [GetChangelistRequest](#bytebase-v1-GetChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |-| ListChangelists | [ListChangelistsRequest](#bytebase-v1-ListChangelistsRequest) | [ListChangelistsResponse](#bytebase-v1-ListChangelistsResponse) | |-| UpdateChangelist | [UpdateChangelistRequest](#bytebase-v1-UpdateChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |-| DeleteChangelist | [DeleteChangelistRequest](#bytebase-v1-DeleteChangelistRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+### OAuth2IdentityProviderTestRequestContext-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| code | [string](#string) | | Authorize code from website. |-<a name="v1_environment_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/environment_service.proto-<a name="bytebase-v1-CreateEnvironmentRequest"></a>-### CreateEnvironmentRequest+<a name="bytebase-v1-OIDCIdentityProviderConfig"></a>+### OIDCIdentityProviderConfig+OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| environment | [Environment](#bytebase-v1-Environment) | | The environment to create. |-| environment_id | [string](#string) | | The ID to use for the environment, which will become the final component of the environment's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| issuer | [string](#string) | | |+| client_id | [string](#string) | | |+| client_secret | [string](#string) | | |+| scopes | [string](#string) | repeated | |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |+| skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |-<a name="bytebase-v1-DeleteEnvironmentRequest"></a>+<a name="bytebase-v1-TestIdentityProviderRequest"></a>-### DeleteEnvironmentRequest+### TestIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the environment to delete. Format: environments/{environment} |--+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to test connection including uncreated. |+| oauth2_context | [OAuth2IdentityProviderTestRequestContext](#bytebase-v1-OAuth2IdentityProviderTestRequestContext) | | |-<a name="bytebase-v1-Environment"></a>-### Environment+<a name="bytebase-v1-TestIdentityProviderResponse"></a>+### TestIdentityProviderResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the environment. Format: environments/{environment} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | |-| order | [int32](#int32) | | |-| tier | [EnvironmentTier](#bytebase-v1-EnvironmentTier) | | |-<a name="bytebase-v1-EnvironmentBackupSetting"></a>+<a name="bytebase-v1-UndeleteIdentityProviderRequest"></a>-### EnvironmentBackupSetting+### UndeleteIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the environment backup setting. Format: environments/{environment}/backupSetting |-| enabled | [bool](#bool) | | |+| name | [string](#string) | | The name of the deleted identity provider. Format: idps/{identity_provider} |-<a name="bytebase-v1-GetEnvironmentRequest"></a>+<a name="bytebase-v1-UpdateIdentityProviderRequest"></a>-### GetEnvironmentRequest+### UpdateIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the environment to retrieve. Format: environments/{environment} |----+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to update.+The identity provider's `name` field is used to identify the identity provider to update. Format: idps/{identity_provider} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-ListEnvironmentsRequest"></a>-### ListEnvironmentsRequest-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of environments to return. The service may return fewer than this value. If unspecified, at most 50 environments will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListEnvironments` call. Provide this to retrieve the subsequent page.+-When paginating, all other parameters provided to `ListEnvironments` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted environments if specified. |+<a name="bytebase-v1-IdentityProviderType"></a>+### IdentityProviderType+| Name | Number | Description |+| ---- | ------ | ----------- |+| IDENTITY_PROVIDER_TYPE_UNSPECIFIED | 0 | |+| OAUTH2 | 1 | |+| OIDC | 2 | |+| LDAP | 3 | |-<a name="bytebase-v1-ListEnvironmentsResponse"></a>-### ListEnvironmentsResponse+<a name="bytebase-v1-OAuth2AuthStyle"></a>+### OAuth2AuthStyle-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| environments | [Environment](#bytebase-v1-Environment) | repeated | The environments from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| OAUTH2_AUTH_STYLE_UNSPECIFIED | 0 | |+| IN_PARAMS | 1 | IN_PARAMS sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters. |+| IN_HEADER | 2 | IN_HEADER sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1. |+++<a name="bytebase-v1-IdentityProviderService"></a>-<a name="bytebase-v1-UndeleteEnvironmentRequest"></a>+### IdentityProviderService-### UndeleteEnvironmentRequest+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetIdentityProvider | [GetIdentityProviderRequest](#bytebase-v1-GetIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| ListIdentityProviders | [ListIdentityProvidersRequest](#bytebase-v1-ListIdentityProvidersRequest) | [ListIdentityProvidersResponse](#bytebase-v1-ListIdentityProvidersResponse) | |+| CreateIdentityProvider | [CreateIdentityProviderRequest](#bytebase-v1-CreateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| UpdateIdentityProvider | [UpdateIdentityProviderRequest](#bytebase-v1-UpdateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| DeleteIdentityProvider | [DeleteIdentityProviderRequest](#bytebase-v1-DeleteIdentityProviderRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteIdentityProvider | [UndeleteIdentityProviderRequest](#bytebase-v1-UndeleteIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| TestIdentityProvider | [TestIdentityProviderRequest](#bytebase-v1-TestIdentityProviderRequest) | [TestIdentityProviderResponse](#bytebase-v1-TestIdentityProviderResponse) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted environment. Format: environments/{environment} |+<a name="v1_instance_role_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/instance_role_service.proto-<a name="bytebase-v1-UpdateEnvironmentBackupSettingRequest"></a>+<a name="bytebase-v1-CreateInstanceRoleRequest"></a>-### UpdateEnvironmentBackupSettingRequest+### CreateInstanceRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| setting | [EnvironmentBackupSetting](#bytebase-v1-EnvironmentBackupSetting) | | The environment backup setting to update. |+| parent | [string](#string) | | The parent resource where this role will be created. Format: instances/{instance} |+| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to create. |-<a name="bytebase-v1-UpdateEnvironmentRequest"></a>+<a name="bytebase-v1-DeleteInstanceRoleRequest"></a>-### UpdateEnvironmentRequest+### DeleteInstanceRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| environment | [Environment](#bytebase-v1-Environment) | | The environment to update.--The environment's `name` field is used to identify the environment to update. Format: environments/{environment} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-+| name | [string](#string) | | The name of the role to delete. Format: instances/{instance}/roles/{role name} |--<a name="bytebase-v1-EnvironmentTier"></a>+<a name="bytebase-v1-GetInstanceRoleRequest"></a>-### EnvironmentTier+### GetInstanceRoleRequest-| Name | Number | Description |-| ---- | ------ | ----------- |-| ENVIRONMENT_TIER_UNSPECIFIED | 0 | |-| PROTECTED | 1 | |-| UNPROTECTED | 2 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the role to retrieve. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |---<a name="bytebase-v1-EnvironmentService"></a>-### EnvironmentService+<a name="bytebase-v1-InstanceRole"></a>-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetEnvironment | [GetEnvironmentRequest](#bytebase-v1-GetEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-| ListEnvironments | [ListEnvironmentsRequest](#bytebase-v1-ListEnvironmentsRequest) | [ListEnvironmentsResponse](#bytebase-v1-ListEnvironmentsResponse) | |-| CreateEnvironment | [CreateEnvironmentRequest](#bytebase-v1-CreateEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-| UpdateEnvironment | [UpdateEnvironmentRequest](#bytebase-v1-UpdateEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-| DeleteEnvironment | [DeleteEnvironmentRequest](#bytebase-v1-DeleteEnvironmentRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteEnvironment | [UndeleteEnvironmentRequest](#bytebase-v1-UndeleteEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-| UpdateBackupSetting | [UpdateEnvironmentBackupSettingRequest](#bytebase-v1-UpdateEnvironmentBackupSettingRequest) | [EnvironmentBackupSetting](#bytebase-v1-EnvironmentBackupSetting) | |+### InstanceRole+InstanceRole is the API message for instance role.-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the role. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |+| role_name | [string](#string) | | The role name. It's unique within the instance. |+| password | [string](#string) | optional | The role password. |+| connection_limit | [int32](#int32) | optional | The connection count limit for this role. |+| valid_until | [string](#string) | optional | The expiration for the role's password. |+| attribute | [string](#string) | optional | The role attribute. For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html |-<a name="v1_idp_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/idp_service.proto-<a name="bytebase-v1-CreateIdentityProviderRequest"></a>+<a name="bytebase-v1-ListInstanceRolesRequest"></a>-### CreateIdentityProviderRequest+### ListInstanceRolesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to create. |-| identity_provider_id | [string](#string) | | The ID to use for the identity provider, which will become the final component of the identity provider's resource name.+| parent | [string](#string) | | The parent, which owns this collection of roles. Format: instances/{instance} |+| page_size | [int32](#int32) | | The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 50 roles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.-This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |+| refresh | [bool](#bool) | | Refresh will refresh and return the latest data. |-<a name="bytebase-v1-DeleteIdentityProviderRequest"></a>+<a name="bytebase-v1-ListInstanceRolesResponse"></a>-### DeleteIdentityProviderRequest+### ListInstanceRolesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the identity provider to delete. Format: idps/{identity_provider} |+| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | The roles from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-FieldMapping"></a>+<a name="bytebase-v1-UndeleteInstanceRoleRequest"></a>-### FieldMapping-FieldMapping saves the field names from user info API of identity provider.-As we save all raw json string of user info response data into `principal.idp_user_info`,-we can extract the relevant data based with `FieldMapping`.+### UndeleteInstanceRoleRequest-e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.-Then the identifier of FieldMapping will be `login`, display_name will be `name`,-and email will be `email`.-reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identifier | [string](#string) | | Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. |-| display_name | [string](#string) | | DisplayName is the field name of display name in 3rd-party idp user info. |-| email | [string](#string) | | Email is the field name of primary email in 3rd-party idp user info. |-| phone | [string](#string) | | Phone is the field name of primary phone in 3rd-party idp user info. |+| name | [string](#string) | | The name of the deleted role. Format: instances/{instance}/roles/{role name} |-<a name="bytebase-v1-GetIdentityProviderRequest"></a>+<a name="bytebase-v1-UpdateInstanceRoleRequest"></a>-### GetIdentityProviderRequest+### UpdateInstanceRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |----+| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to update.+The role's `name` and `instance` field is used to identify the role to update. Format: instances/{instance}/roles/{role name} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-IdentityProvider"></a>-### IdentityProvider-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the identity provider. Format: idps/{identity_provider} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | |-| domain | [string](#string) | | |-| type | [IdentityProviderType](#bytebase-v1-IdentityProviderType) | | |-| config | [IdentityProviderConfig](#bytebase-v1-IdentityProviderConfig) | | |++++<a name="bytebase-v1-InstanceRoleService"></a>+### InstanceRoleService-<a name="bytebase-v1-IdentityProviderConfig"></a>-### IdentityProviderConfig+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetInstanceRole | [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| ListInstanceRoles | [ListInstanceRolesRequest](#bytebase-v1-ListInstanceRolesRequest) | [ListInstanceRolesResponse](#bytebase-v1-ListInstanceRolesResponse) | |+| CreateInstanceRole | [CreateInstanceRoleRequest](#bytebase-v1-CreateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| UpdateInstanceRole | [UpdateInstanceRoleRequest](#bytebase-v1-UpdateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| DeleteInstanceRole | [DeleteInstanceRoleRequest](#bytebase-v1-DeleteInstanceRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteInstanceRole | [UndeleteInstanceRoleRequest](#bytebase-v1-UndeleteInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| oauth2_config | [OAuth2IdentityProviderConfig](#bytebase-v1-OAuth2IdentityProviderConfig) | | |-| oidc_config | [OIDCIdentityProviderConfig](#bytebase-v1-OIDCIdentityProviderConfig) | | |-| ldap_config | [LDAPIdentityProviderConfig](#bytebase-v1-LDAPIdentityProviderConfig) | | |+<a name="v1_issue_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/issue_service.proto+<a name="bytebase-v1-ApprovalFlow"></a>-<a name="bytebase-v1-LDAPIdentityProviderConfig"></a>+### ApprovalFlow-### LDAPIdentityProviderConfig-LDAPIdentityProviderConfig is the structure for LDAP identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| host | [string](#string) | | Host is the hostname or IP address of the LDAP server, e.g. "ldap.example.com". |-| port | [int32](#int32) | | Port is the port number of the LDAP server, e.g. 389. When not set, the default port of the corresponding security protocol will be used, i.e. 389 for StartTLS and 636 for LDAPS. |-| skip_tls_verify | [bool](#bool) | | SkipTLSVerify controls whether to skip TLS certificate verification. |-| bind_dn | [string](#string) | | BindDN is the DN of the user to bind as a service account to perform search requests. |-| bind_password | [string](#string) | | BindPassword is the password of the user to bind as a service account. |-| base_dn | [string](#string) | | BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". |-| user_filter | [string](#string) | | UserFilter is the filter to search for users, e.g. "(uid=%s)". |-| security_protocol | [string](#string) | | SecurityProtocol is the security protocol to be used for establishing connections with the LDAP server. It should be either StartTLS or LDAPS, and cannot be empty. |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | FieldMapping is the mapping of the user attributes returned by the LDAP server. |+| steps | [ApprovalStep](#bytebase-v1-ApprovalStep) | repeated | |-<a name="bytebase-v1-ListIdentityProvidersRequest"></a>+<a name="bytebase-v1-ApprovalNode"></a>-### ListIdentityProvidersRequest+### ApprovalNode| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of identity providers to return. The service may return fewer than this value. If unspecified, at most 50 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListIdentityProviders` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIdentityProviders` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted identity providers if specified. |+| type | [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type) | | |+| group_value | [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue) | | |+| role | [string](#string) | | Format: roles/{role} |+| external_node_id | [string](#string) | | |-<a name="bytebase-v1-ListIdentityProvidersResponse"></a>+<a name="bytebase-v1-ApprovalStep"></a>-### ListIdentityProvidersResponse+### ApprovalStep| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identity_providers | [IdentityProvider](#bytebase-v1-IdentityProvider) | repeated | The identity providers from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| type | [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type) | | |+| nodes | [ApprovalNode](#bytebase-v1-ApprovalNode) | repeated | |-<a name="bytebase-v1-OAuth2IdentityProviderConfig"></a>+<a name="bytebase-v1-ApprovalTemplate"></a>++### ApprovalTemplate-### OAuth2IdentityProviderConfig-OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| auth_url | [string](#string) | | |-| token_url | [string](#string) | | |-| user_info_url | [string](#string) | | |-| client_id | [string](#string) | | |-| client_secret | [string](#string) | | |-| scopes | [string](#string) | repeated | |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |-| skip_tls_verify | [bool](#bool) | | |-| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |+| flow | [ApprovalFlow](#bytebase-v1-ApprovalFlow) | | |+| title | [string](#string) | | |+| description | [string](#string) | | |+| creator | [string](#string) | | The name of the creator in users/{email} format. TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator. |-<a name="bytebase-v1-OAuth2IdentityProviderTestRequestContext"></a>+<a name="bytebase-v1-ApproveIssueRequest"></a>-### OAuth2IdentityProviderTestRequestContext+### ApproveIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| code | [string](#string) | | Authorize code from website. |+| name | [string](#string) | | The name of the issue to add an approver. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |-<a name="bytebase-v1-OIDCIdentityProviderConfig"></a>+<a name="bytebase-v1-BatchUpdateIssuesStatusRequest"></a>++### BatchUpdateIssuesStatusRequest-### OIDCIdentityProviderConfig-OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issuer | [string](#string) | | |-| client_id | [string](#string) | | |-| client_secret | [string](#string) | | |-| scopes | [string](#string) | repeated | |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |-| skip_tls_verify | [bool](#bool) | | |-| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |+| parent | [string](#string) | | The parent resource shared by all issues being updated. Format: projects/{project} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the status of databases for now. |+| issues | [string](#string) | repeated | The list of issues to update. Format: projects/{project}/issues/{issue} |+| status | [IssueStatus](#bytebase-v1-IssueStatus) | | The new status. |+| reason | [string](#string) | | |-<a name="bytebase-v1-TestIdentityProviderRequest"></a>+<a name="bytebase-v1-BatchUpdateIssuesStatusResponse"></a>-### TestIdentityProviderRequest+### BatchUpdateIssuesStatusResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to test connection including uncreated. |-| oauth2_context | [OAuth2IdentityProviderTestRequestContext](#bytebase-v1-OAuth2IdentityProviderTestRequestContext) | | |+<a name="bytebase-v1-CreateIssueCommentRequest"></a>+### CreateIssueCommentRequest-<a name="bytebase-v1-TestIdentityProviderResponse"></a>-### TestIdentityProviderResponse+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |+| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |-<a name="bytebase-v1-UndeleteIdentityProviderRequest"></a>+<a name="bytebase-v1-CreateIssueRequest"></a>-### UndeleteIdentityProviderRequest+### CreateIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted identity provider. Format: idps/{identity_provider} |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} |+| issue | [Issue](#bytebase-v1-Issue) | | The issue to create. |-<a name="bytebase-v1-UpdateIdentityProviderRequest"></a>+<a name="bytebase-v1-GetIssueRequest"></a>-### UpdateIdentityProviderRequest+### GetIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to update.+| name | [string](#string) | | The name of the issue to retrieve. Format: projects/{project}/issues/{issue} |+| force | [bool](#bool) | | |-The identity provider's `name` field is used to identify the identity provider to update. Format: idps/{identity_provider} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-+<a name="bytebase-v1-GrantRequest"></a>+### GrantRequest-<a name="bytebase-v1-IdentityProviderType"></a>-### IdentityProviderType+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| role | [string](#string) | | The requested role. Format: roles/EXPORTER. |+| user | [string](#string) | | The user to be granted. Format: users/{email}. |+| condition | [google.type.Expr](#google-type-Expr) | | |+| expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | |-| Name | Number | Description |-| ---- | ------ | ----------- |-| IDENTITY_PROVIDER_TYPE_UNSPECIFIED | 0 | |-| OAUTH2 | 1 | |-| OIDC | 2 | |-| LDAP | 3 | |-<a name="bytebase-v1-OAuth2AuthStyle"></a>-### OAuth2AuthStyle+<a name="bytebase-v1-Issue"></a>-| Name | Number | Description |-| ---- | ------ | ----------- |-| OAUTH2_AUTH_STYLE_UNSPECIFIED | 0 | |-| IN_PARAMS | 1 | IN_PARAMS sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters. |-| IN_HEADER | 2 | IN_HEADER sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1. |+### Issue--+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the issue. Format: projects/{project}/issues/{issue} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| title | [string](#string) | | |+| description | [string](#string) | | |+| type | [Issue.Type](#bytebase-v1-Issue-Type) | | |+| status | [IssueStatus](#bytebase-v1-IssueStatus) | | |+| assignee | [string](#string) | | Format: users/[email protected] |+| assignee_attention | [bool](#bool) | | |+| approvers | [Issue.Approver](#bytebase-v1-Issue-Approver) | repeated | |+| approval_templates | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | repeated | |+| approval_finding_done | [bool](#bool) | | If the value is `false`, it means that the backend is still finding matching approval templates. If `true`, approval_templates & approvers & approval_finding_error are available. |+| approval_finding_error | [string](#string) | | |+| subscribers | [string](#string) | repeated | The subscribers. Format: users/[email protected] |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| plan | [string](#string) | | The plan associated with the issue. Can be empty. Format: projects/{project}/plans/{plan} |+| rollout | [string](#string) | | The rollout associated with the issue. Can be empty. Format: projects/{project}/rollouts/{rollout} |+| grant_request | [GrantRequest](#bytebase-v1-GrantRequest) | | Used if the issue type is GRANT_REQUEST. |+| releasers | [string](#string) | repeated | The releasers of the pending stage of the issue rollout, judging from the rollout policy. If the policy is auto rollout, the releasers are the project owners and the issue creator. Format: - roles/workspaceOwner - roles/workspaceDBA - roles/projectOwner - roles/projectReleaser - users/{email} |+| risk_level | [Issue.RiskLevel](#bytebase-v1-Issue-RiskLevel) | | |+| task_status_count | [Issue.TaskStatusCountEntry](#bytebase-v1-Issue-TaskStatusCountEntry) | repeated | The status count of the issue. Keys are the following: - NOT_STARTED - SKIPPED - PENDING - RUNNING - DONE - FAILED - CANCELED |-<a name="bytebase-v1-IdentityProviderService"></a>-### IdentityProviderService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetIdentityProvider | [GetIdentityProviderRequest](#bytebase-v1-GetIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| ListIdentityProviders | [ListIdentityProvidersRequest](#bytebase-v1-ListIdentityProvidersRequest) | [ListIdentityProvidersResponse](#bytebase-v1-ListIdentityProvidersResponse) | |-| CreateIdentityProvider | [CreateIdentityProviderRequest](#bytebase-v1-CreateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| UpdateIdentityProvider | [UpdateIdentityProviderRequest](#bytebase-v1-UpdateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| DeleteIdentityProvider | [DeleteIdentityProviderRequest](#bytebase-v1-DeleteIdentityProviderRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteIdentityProvider | [UndeleteIdentityProviderRequest](#bytebase-v1-UndeleteIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| TestIdentityProvider | [TestIdentityProviderRequest](#bytebase-v1-TestIdentityProviderRequest) | [TestIdentityProviderResponse](#bytebase-v1-TestIdentityProviderResponse) | |-+<a name="bytebase-v1-Issue-Approver"></a>+### Issue.Approver-<a name="v1_instance_role_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/instance_role_service.proto+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| status | [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status) | | The new status. |+| principal | [string](#string) | | Format: users/[email protected] |-<a name="bytebase-v1-CreateInstanceRoleRequest"></a>-### CreateInstanceRoleRequest+++<a name="bytebase-v1-Issue-TaskStatusCountEntry"></a>++### Issue.TaskStatusCountEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this role will be created. Format: instances/{instance} |-| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to create. |+| key | [string](#string) | | |+| value | [int32](#int32) | | |-<a name="bytebase-v1-DeleteInstanceRoleRequest"></a>+<a name="bytebase-v1-IssueComment"></a>-### DeleteInstanceRoleRequest+### IssueComment| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the role to delete. Format: instances/{instance}/roles/{role name} |+| uid | [string](#string) | | |+| comment | [string](#string) | | |+| payload | [string](#string) | | TODO: use struct message instead. |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-<a name="bytebase-v1-GetInstanceRoleRequest"></a>+<a name="bytebase-v1-ListIssuesRequest"></a>-### GetInstanceRoleRequest+### ListIssuesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the role to retrieve. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |+| page_size | [int32](#int32) | | The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |+| filter | [string](#string) | | Filter is used to filter issues returned in the list. |+| query | [string](#string) | | Query is the query statement. |-<a name="bytebase-v1-InstanceRole"></a>+<a name="bytebase-v1-ListIssuesResponse"></a>++### ListIssuesResponse-### InstanceRole-InstanceRole is the API message for instance role.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the role. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |-| role_name | [string](#string) | | The role name. It's unique within the instance. |-| password | [string](#string) | optional | The role password. |-| connection_limit | [int32](#int32) | optional | The connection count limit for this role. |-| valid_until | [string](#string) | optional | The expiration for the role's password. |-| attribute | [string](#string) | optional | The role attribute. For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html |+| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-ListInstanceRolesRequest"></a>+<a name="bytebase-v1-RejectIssueRequest"></a>-### ListInstanceRolesRequest+### RejectIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of roles. Format: instances/{instance} |-| page_size | [int32](#int32) | | The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 50 roles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |-| refresh | [bool](#bool) | | Refresh will refresh and return the latest data. |+| name | [string](#string) | | The name of the issue to add an rejection. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |-<a name="bytebase-v1-ListInstanceRolesResponse"></a>+<a name="bytebase-v1-RequestIssueRequest"></a>-### ListInstanceRolesResponse+### RequestIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | The roles from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the issue to request a issue. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |-<a name="bytebase-v1-UndeleteInstanceRoleRequest"></a>+<a name="bytebase-v1-SearchIssuesRequest"></a>-### UndeleteInstanceRoleRequest+### SearchIssuesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted role. Format: instances/{instance}/roles/{role name} |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |+| page_size | [int32](#int32) | | The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |+| filter | [string](#string) | | Filter is used to filter issues returned in the list. |+| query | [string](#string) | | Query is the query statement. |-<a name="bytebase-v1-UpdateInstanceRoleRequest"></a>+<a name="bytebase-v1-SearchIssuesResponse"></a>-### UpdateInstanceRoleRequest+### SearchIssuesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to update.+| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-The role's `name` and `instance` field is used to identify the role to update. Format: instances/{instance}/roles/{role name} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-+<a name="bytebase-v1-UpdateIssueCommentRequest"></a>-+### UpdateIssueCommentRequest--<a name="bytebase-v1-InstanceRoleService"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |+| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-### InstanceRoleService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetInstanceRole | [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| ListInstanceRoles | [ListInstanceRolesRequest](#bytebase-v1-ListInstanceRolesRequest) | [ListInstanceRolesResponse](#bytebase-v1-ListInstanceRolesResponse) | |-| CreateInstanceRole | [CreateInstanceRoleRequest](#bytebase-v1-CreateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| UpdateInstanceRole | [UpdateInstanceRoleRequest](#bytebase-v1-UpdateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| DeleteInstanceRole | [DeleteInstanceRoleRequest](#bytebase-v1-DeleteInstanceRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteInstanceRole | [UndeleteInstanceRoleRequest](#bytebase-v1-UndeleteInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-+<a name="bytebase-v1-UpdateIssueRequest"></a>-<a name="v1_issue_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>+### UpdateIssueRequest-## v1/issue_service.proto+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| issue | [Issue](#bytebase-v1-Issue) | | The issue to update.++The issue's `name` field is used to identify the issue to update. Format: projects/{project}/issues/{issue} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-ApprovalFlow"></a>-### ApprovalFlow-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| steps | [ApprovalStep](#bytebase-v1-ApprovalStep) | repeated | |++<a name="bytebase-v1-ApprovalNode-GroupValue"></a>+### ApprovalNode.GroupValue+The predefined user groups are:+- WORKSPACE_OWNER+- WORKSPACE_DBA+- PROJECT_OWNER+- PROJECT_MEMBER+| Name | Number | Description |+| ---- | ------ | ----------- |+| GROUP_VALUE_UNSPECIFILED | 0 | |+| WORKSPACE_OWNER | 1 | |+| WORKSPACE_DBA | 2 | |+| PROJECT_OWNER | 3 | |+| PROJECT_MEMBER | 4 | |-<a name="bytebase-v1-ApprovalNode"></a>-### ApprovalNode+<a name="bytebase-v1-ApprovalNode-Type"></a>+### ApprovalNode.Type+Type of the ApprovalNode.+type determines who should approve this node.+ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.+See GroupValue below for the predefined user groups.+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| ANY_IN_GROUP | 1 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| type | [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type) | | |-| group_value | [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue) | | |-| role | [string](#string) | | Format: roles/{role} |-| external_node_id | [string](#string) | | |+<a name="bytebase-v1-ApprovalStep-Type"></a>+### ApprovalStep.Type+Type of the ApprovalStep+ALL means every node must be approved to proceed.+ANY means approving any node will proceed.+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| ALL | 1 | |+| ANY | 2 | |-<a name="bytebase-v1-ApprovalStep"></a>-### ApprovalStep+<a name="bytebase-v1-Issue-Approver-Status"></a>+### Issue.Approver.Status-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| type | [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type) | | |-| nodes | [ApprovalNode](#bytebase-v1-ApprovalNode) | repeated | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| APPROVED | 2 | |+| REJECTED | 3 | |+<a name="bytebase-v1-Issue-RiskLevel"></a>+### Issue.RiskLevel-<a name="bytebase-v1-ApprovalTemplate"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| RISK_LEVEL_UNSPECIFIED | 0 | |+| LOW | 1 | |+| MODERATE | 2 | |+| HIGH | 3 | |-### ApprovalTemplate+<a name="bytebase-v1-Issue-Type"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| flow | [ApprovalFlow](#bytebase-v1-ApprovalFlow) | | |-| title | [string](#string) | | |-| description | [string](#string) | | |-| creator | [string](#string) | | The name of the creator in users/{email} format. TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator. |+### Issue.Type+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| DATABASE_CHANGE | 1 | |+| GRANT_REQUEST | 2 | |+| DATABASE_DATA_EXPORT | 3 | |+<a name="bytebase-v1-IssueStatus"></a>-<a name="bytebase-v1-ApproveIssueRequest"></a>+### IssueStatus-### ApproveIssueRequest+| Name | Number | Description |+| ---- | ------ | ----------- |+| ISSUE_STATUS_UNSPECIFIED | 0 | |+| OPEN | 1 | |+| DONE | 2 | |+| CANCELED | 3 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to add an approver. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |+++<a name="bytebase-v1-IssueService"></a>+### IssueService-<a name="bytebase-v1-BatchUpdateIssuesStatusRequest"></a>+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetIssue | [GetIssueRequest](#bytebase-v1-GetIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| CreateIssue | [CreateIssueRequest](#bytebase-v1-CreateIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| ListIssues | [ListIssuesRequest](#bytebase-v1-ListIssuesRequest) | [ListIssuesResponse](#bytebase-v1-ListIssuesResponse) | |+| SearchIssues | [SearchIssuesRequest](#bytebase-v1-SearchIssuesRequest) | [SearchIssuesResponse](#bytebase-v1-SearchIssuesResponse) | Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query. |+| UpdateIssue | [UpdateIssueRequest](#bytebase-v1-UpdateIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| CreateIssueComment | [CreateIssueCommentRequest](#bytebase-v1-CreateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |+| UpdateIssueComment | [UpdateIssueCommentRequest](#bytebase-v1-UpdateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |+| BatchUpdateIssuesStatus | [BatchUpdateIssuesStatusRequest](#bytebase-v1-BatchUpdateIssuesStatusRequest) | [BatchUpdateIssuesStatusResponse](#bytebase-v1-BatchUpdateIssuesStatusResponse) | |+| ApproveIssue | [ApproveIssueRequest](#bytebase-v1-ApproveIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| RejectIssue | [RejectIssueRequest](#bytebase-v1-RejectIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| RequestIssue | [RequestIssueRequest](#bytebase-v1-RequestIssueRequest) | [Issue](#bytebase-v1-Issue) | |-### BatchUpdateIssuesStatusRequest+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource shared by all issues being updated. Format: projects/{project} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the status of databases for now. |-| issues | [string](#string) | repeated | The list of issues to update. Format: projects/{project}/issues/{issue} |-| status | [IssueStatus](#bytebase-v1-IssueStatus) | | The new status. |-| reason | [string](#string) | | |+<a name="v1_logging_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/logging_service.proto+<a name="bytebase-v1-ExportLogsRequest"></a>+### ExportLogsRequest-<a name="bytebase-v1-BatchUpdateIssuesStatusResponse"></a>-### BatchUpdateIssuesStatusResponse+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| filter | [string](#string) | | Consistent with filter and order by in ListLogs. filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |+| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |+| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The export format. |-<a name="bytebase-v1-CreateIssueCommentRequest"></a>+<a name="bytebase-v1-ExportLogsResponse"></a>-### CreateIssueCommentRequest+### ExportLogsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |-| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |+| content | [bytes](#bytes) | | |-<a name="bytebase-v1-CreateIssueRequest"></a>+<a name="bytebase-v1-GetLogRequest"></a>-### CreateIssueRequest+### GetLogRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} |-| issue | [Issue](#bytebase-v1-Issue) | | The issue to create. |+| name | [string](#string) | | The name of the log to retrieve. Format: logs/{uid} |-<a name="bytebase-v1-GetIssueRequest"></a>+<a name="bytebase-v1-ListLogsRequest"></a>-### GetIssueRequest+### ListLogsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to retrieve. Format: projects/{project}/issues/{issue} |-| force | [bool](#bool) | | |+| filter | [string](#string) | | filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |+| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |+| page_size | [int32](#int32) | | Not used. The maximum number of logs to return. The service may return fewer than this value. If unspecified, at most 100 log entries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListLogs` call. Provide this to retrieve the subsequent page. |-<a name="bytebase-v1-GrantRequest"></a>+<a name="bytebase-v1-ListLogsResponse"></a>-### GrantRequest+### ListLogsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [string](#string) | | The requested role. Format: roles/EXPORTER. |-| user | [string](#string) | | The user to be granted. Format: users/{email}. |-| condition | [google.type.Expr](#google-type-Expr) | | |-| expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | |+| log_entities | [LogEntity](#bytebase-v1-LogEntity) | repeated | The list of log entities. |+| next_page_token | [string](#string) | | A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to `ListLogs` method to retrieve the next page of log entities. |-<a name="bytebase-v1-Issue"></a>+<a name="bytebase-v1-LogEntity"></a>-### Issue+### LogEntity| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue. Format: projects/{project}/issues/{issue} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| title | [string](#string) | | |-| description | [string](#string) | | |-| type | [Issue.Type](#bytebase-v1-Issue-Type) | | |-| status | [IssueStatus](#bytebase-v1-IssueStatus) | | |-| assignee | [string](#string) | | Format: users/[email protected] |-| assignee_attention | [bool](#bool) | | |-| approvers | [Issue.Approver](#bytebase-v1-Issue-Approver) | repeated | |-| approval_templates | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | repeated | |-| approval_finding_done | [bool](#bool) | | If the value is `false`, it means that the backend is still finding matching approval templates. If `true`, approval_templates & approvers & approval_finding_error are available. |-| approval_finding_error | [string](#string) | | |-| subscribers | [string](#string) | repeated | The subscribers. Format: users/[email protected] |-| creator | [string](#string) | | Format: users/[email protected] |+| name | [string](#string) | | The name of the log. Format: logs/{uid} |+| creator | [string](#string) | | The creator of the log entity. Format: users/{email} || create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | || update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| plan | [string](#string) | | The plan associated with the issue. Can be empty. Format: projects/{project}/plans/{plan} |-| rollout | [string](#string) | | The rollout associated with the issue. Can be empty. Format: projects/{project}/rollouts/{rollout} |-| grant_request | [GrantRequest](#bytebase-v1-GrantRequest) | | Used if the issue type is GRANT_REQUEST. |-| releasers | [string](#string) | repeated | The releasers of the pending stage of the issue rollout, judging from the rollout policy. If the policy is auto rollout, the releasers are the project owners and the issue creator. Format: - roles/workspaceOwner - roles/workspaceDBA - roles/projectOwner - roles/projectReleaser - users/{email} |-| risk_level | [Issue.RiskLevel](#bytebase-v1-Issue-RiskLevel) | | |-| task_status_count | [Issue.TaskStatusCountEntry](#bytebase-v1-Issue-TaskStatusCountEntry) | repeated | The status count of the issue. Keys are the following: - NOT_STARTED - SKIPPED - PENDING - RUNNING - DONE - FAILED - CANCELED |+| action | [LogEntity.Action](#bytebase-v1-LogEntity-Action) | | |+| level | [LogEntity.Level](#bytebase-v1-LogEntity-Level) | | |+| resource | [string](#string) | | The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE". Format: For ACTION_MEMBER_*: users/{email} For ACTION_ISSUE_*: issues/{issue uid} For ACTION_PIPELINE_*: pipelines/{pipeline uid} For ACTION_PROJECT_*: projects/{project resource id} For ACTION_DATABASE_*: instances/{instance resource id} |+| payload | [string](#string) | | The payload of the log entity. TODO: use oneof |+| comment | [string](#string) | | |+-<a name="bytebase-v1-Issue-Approver"></a>-### Issue.Approver+<a name="bytebase-v1-LogEntity-Action"></a>+### LogEntity.Action-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| status | [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status) | | The new status. |-| principal | [string](#string) | | Format: users/[email protected] |+| Name | Number | Description |+| ---- | ------ | ----------- |+| ACTION_UNSPECIFIED | 0 | In worksapce resource only. |+| ACTION_MEMBER_CREATE | 1 | Member related activity types. Enum value 1 - 20+ACTION_MEMBER_CREATE is the type for creating a new member. |+| ACTION_MEMBER_ROLE_UPDATE | 2 | ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role. |+| ACTION_MEMBER_ACTIVATE | 3 | ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members. |+| ACTION_MEMBER_DEACTIVE | 4 | ACTION_MEMBER_DEACTIVE is the type for deactiving members. |+| ACTION_ISSUE_CREATE | 21 | Issue related activity types. Enum value 21 - 40+ACTION_ISSUE_CREATE is the type for creating a new issue. |+| ACTION_ISSUE_COMMENT_CREATE | 22 | ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue. |+| ACTION_ISSUE_FIELD_UPDATE | 23 | ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field. |+| ACTION_ISSUE_STATUS_UPDATE | 24 | ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status. |+| ACTION_ISSUE_APPROVAL_NOTIFY | 25 | ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |+| ACTION_PIPELINE_STAGE_STATUS_UPDATE | 31 | ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |+| ACTION_PIPELINE_TASK_STATUS_UPDATE | 32 | ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |+| ACTION_PIPELINE_TASK_FILE_COMMIT | 33 | ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement. |+| ACTION_PIPELINE_TASK_STATEMENT_UPDATE | 34 | ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |+| ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 35 | ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |+| ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE | 36 | ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, SUCCESS, FAILURE, CANCELED for now. |+| ACTION_PIPELINE_TASK_PRIOR_BACKUP | 37 | ACTION_PIPELINE_TASK_PRIOR_BACKUP represents the pipeline task prior backup activity. |+| ACTION_PROJECT_REPOSITORY_PUSH | 41 | Project related activity types. Enum value 41 - 60+ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |+| ACTION_PROJECT_MEMBER_CREATE | 42 | ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project. |+| ACTION_PROJECT_MEMBER_DELETE | 43 | ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project. |+| ACTION_PROJECT_DATABASE_TRANSFER | 45 | ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another. |+| ACTION_DATABASE_SQL_EDITOR_QUERY | 61 | Database related activity types. Enum value 61 - 80+ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query. |+| ACTION_DATABASE_SQL_EXPORT | 62 | ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL. |-<a name="bytebase-v1-Issue-TaskStatusCountEntry"></a>-### Issue.TaskStatusCountEntry+<a name="bytebase-v1-LogEntity-Level"></a>+### LogEntity.Level-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [int32](#int32) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| LEVEL_UNSPECIFIED | 0 | |+| LEVEL_INFO | 1 | LEVEL_INFO is the type for information. |+| LEVEL_WARNING | 2 | LEVEL_WARNING is the type for warning. |+| LEVEL_ERROR | 3 | LEVEL_ERROR is the type for error. |+++<a name="bytebase-v1-LoggingService"></a>-<a name="bytebase-v1-IssueComment"></a>+### LoggingService-### IssueComment+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListLogs | [ListLogsRequest](#bytebase-v1-ListLogsRequest) | [ListLogsResponse](#bytebase-v1-ListLogsResponse) | |+| GetLog | [GetLogRequest](#bytebase-v1-GetLogRequest) | [LogEntity](#bytebase-v1-LogEntity) | |+| ExportLogs | [ExportLogsRequest](#bytebase-v1-ExportLogsRequest) | [ExportLogsResponse](#bytebase-v1-ExportLogsResponse) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| uid | [string](#string) | | |-| comment | [string](#string) | | |-| payload | [string](#string) | | TODO: use struct message instead. |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+<a name="v1_org_policy_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/org_policy_service.proto-<a name="bytebase-v1-ListIssuesRequest"></a>+<a name="bytebase-v1-CreatePolicyRequest"></a>-### ListIssuesRequest+### CreatePolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |-| page_size | [int32](#int32) | | The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |-| filter | [string](#string) | | Filter is used to filter issues returned in the list. |-| query | [string](#string) | | Query is the query statement. |+| parent | [string](#string) | | The parent resource where this instance will be created. Workspace resource name: "". Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |+| policy | [Policy](#bytebase-v1-Policy) | | The policy to create. |+| type | [PolicyType](#bytebase-v1-PolicyType) | | |-<a name="bytebase-v1-ListIssuesResponse"></a>+<a name="bytebase-v1-DeletePolicyRequest"></a>-### ListIssuesResponse+### DeletePolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The policy's `name` field is used to identify the instance to update. Format: {resource name}/policies/{policy type} Workspace resource name: "". Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |-<a name="bytebase-v1-RejectIssueRequest"></a>+<a name="bytebase-v1-DisableCopyDataPolicy"></a>-### RejectIssueRequest+### DisableCopyDataPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to add an rejection. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |+| active | [bool](#bool) | | |-<a name="bytebase-v1-RequestIssueRequest"></a>+<a name="bytebase-v1-GetPolicyRequest"></a>-### RequestIssueRequest+### GetPolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to request a issue. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |+| name | [string](#string) | | The name of the policy to retrieve. Format: {resource type}/{resource id}/policies/{policy type} |-<a name="bytebase-v1-SearchIssuesRequest"></a>+<a name="bytebase-v1-ListPoliciesRequest"></a>-### SearchIssuesRequest+### ListPoliciesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |-| page_size | [int32](#int32) | | The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.+| parent | [string](#string) | | The parent, which owns this collection of policies. Format: {resource type}/{resource id} |+| policy_type | [PolicyType](#bytebase-v1-PolicyType) | optional | |+| page_size | [int32](#int32) | | The maximum number of policies to return. The service may return fewer than this value. If unspecified, at most 50 policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `GetPolicies` call. Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |-| filter | [string](#string) | | Filter is used to filter issues returned in the list. |-| query | [string](#string) | | Query is the query statement. |+When paginating, all other parameters provided to `GetPolicies` must match the call that provided the page token. |+| show_deleted | [bool](#bool) | | Show deleted policies if specified. |-<a name="bytebase-v1-SearchIssuesResponse"></a>+<a name="bytebase-v1-ListPoliciesResponse"></a>-### SearchIssuesResponse+### ListPoliciesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |+| policies | [Policy](#bytebase-v1-Policy) | repeated | The policies from the specified request. || next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |@@ -5523,280 +5286,234 @@ When paginating, all other parameters provided to `ListIssues` must match the ca-<a name="bytebase-v1-UpdateIssueCommentRequest"></a>+<a name="bytebase-v1-MaskData"></a>-### UpdateIssueCommentRequest+### MaskData| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |-| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-+| schema | [string](#string) | | |+| table | [string](#string) | | |+| column | [string](#string) | | |+| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | |+| full_masking_algorithm_id | [string](#string) | | |+| partial_masking_algorithm_id | [string](#string) | | |-<a name="bytebase-v1-UpdateIssueRequest"></a>-### UpdateIssueRequest+<a name="bytebase-v1-MaskingExceptionPolicy"></a>+### MaskingExceptionPolicy+MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issue | [Issue](#bytebase-v1-Issue) | | The issue to update.--The issue's `name` field is used to identify the issue to update. Format: projects/{project}/issues/{issue} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |----+| masking_exceptions | [MaskingExceptionPolicy.MaskingException](#bytebase-v1-MaskingExceptionPolicy-MaskingException) | repeated | |--<a name="bytebase-v1-ApprovalNode-GroupValue"></a>-### ApprovalNode.GroupValue-The predefined user groups are:-- WORKSPACE_OWNER-- WORKSPACE_DBA-- PROJECT_OWNER-- PROJECT_MEMBER-| Name | Number | Description |-| ---- | ------ | ----------- |-| GROUP_VALUE_UNSPECIFILED | 0 | |-| WORKSPACE_OWNER | 1 | |-| WORKSPACE_DBA | 2 | |-| PROJECT_OWNER | 3 | |-| PROJECT_MEMBER | 4 | |+<a name="bytebase-v1-MaskingExceptionPolicy-MaskingException"></a>+### MaskingExceptionPolicy.MaskingException-<a name="bytebase-v1-ApprovalNode-Type"></a>-### ApprovalNode.Type-Type of the ApprovalNode.-type determines who should approve this node.-ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.-See GroupValue below for the predefined user groups.-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| ANY_IN_GROUP | 1 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| action | [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action) | | action is the action that the user can access sensitive data. |+| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | Level is the masking level that the user can access sensitive data. |+| member | [string](#string) | | Member is the principal who bind to this exception policy instance.+* `user:{emailid}`: An email address that represents a specific Bytebase account. For example, `[email protected]`. |+| condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this exception policy instance. |-<a name="bytebase-v1-ApprovalStep-Type"></a>-### ApprovalStep.Type-Type of the ApprovalStep-ALL means every node must be approved to proceed.-ANY means approving any node will proceed.-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| ALL | 1 | |-| ANY | 2 | |+<a name="bytebase-v1-MaskingPolicy"></a>-<a name="bytebase-v1-Issue-Approver-Status"></a>+### MaskingPolicy-### Issue.Approver.Status-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| APPROVED | 2 | |-| REJECTED | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| mask_data | [MaskData](#bytebase-v1-MaskData) | repeated | |-<a name="bytebase-v1-Issue-RiskLevel"></a>-### Issue.RiskLevel-| Name | Number | Description |-| ---- | ------ | ----------- |-| RISK_LEVEL_UNSPECIFIED | 0 | |-| LOW | 1 | |-| MODERATE | 2 | |-| HIGH | 3 | |+<a name="bytebase-v1-MaskingRulePolicy"></a>+### MaskingRulePolicy-<a name="bytebase-v1-Issue-Type"></a>-### Issue.Type+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| rules | [MaskingRulePolicy.MaskingRule](#bytebase-v1-MaskingRulePolicy-MaskingRule) | repeated | |-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| DATABASE_CHANGE | 1 | |-| GRANT_REQUEST | 2 | |-| DATABASE_DATA_EXPORT | 3 | |-<a name="bytebase-v1-IssueStatus"></a>-### IssueStatus+<a name="bytebase-v1-MaskingRulePolicy-MaskingRule"></a>+### MaskingRulePolicy.MaskingRule-| Name | Number | Description |-| ---- | ------ | ----------- |-| ISSUE_STATUS_UNSPECIFIED | 0 | |-| OPEN | 1 | |-| DONE | 2 | |-| CANCELED | 3 | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | A unique identifier for a node in UUID format. |+| condition | [google.type.Expr](#google-type-Expr) | | |+| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | |--<a name="bytebase-v1-IssueService"></a>-### IssueService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetIssue | [GetIssueRequest](#bytebase-v1-GetIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| CreateIssue | [CreateIssueRequest](#bytebase-v1-CreateIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| ListIssues | [ListIssuesRequest](#bytebase-v1-ListIssuesRequest) | [ListIssuesResponse](#bytebase-v1-ListIssuesResponse) | |-| SearchIssues | [SearchIssuesRequest](#bytebase-v1-SearchIssuesRequest) | [SearchIssuesResponse](#bytebase-v1-SearchIssuesResponse) | Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query. |-| UpdateIssue | [UpdateIssueRequest](#bytebase-v1-UpdateIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| CreateIssueComment | [CreateIssueCommentRequest](#bytebase-v1-CreateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |-| UpdateIssueComment | [UpdateIssueCommentRequest](#bytebase-v1-UpdateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |-| BatchUpdateIssuesStatus | [BatchUpdateIssuesStatusRequest](#bytebase-v1-BatchUpdateIssuesStatusRequest) | [BatchUpdateIssuesStatusResponse](#bytebase-v1-BatchUpdateIssuesStatusResponse) | |-| ApproveIssue | [ApproveIssueRequest](#bytebase-v1-ApproveIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| RejectIssue | [RejectIssueRequest](#bytebase-v1-RejectIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| RequestIssue | [RequestIssueRequest](#bytebase-v1-RequestIssueRequest) | [Issue](#bytebase-v1-Issue) | |+<a name="bytebase-v1-Policy"></a>-+### Policy-<a name="v1_logging_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the policy. Format: {resource name}/policies/{policy type} Workspace resource name: "". Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| inherit_from_parent | [bool](#bool) | | |+| type | [PolicyType](#bytebase-v1-PolicyType) | | |+| workspace_iam_policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |+| rollout_policy | [RolloutPolicy](#bytebase-v1-RolloutPolicy) | | |+| masking_policy | [MaskingPolicy](#bytebase-v1-MaskingPolicy) | | |+| sql_review_policy | [SQLReviewPolicy](#bytebase-v1-SQLReviewPolicy) | | |+| slow_query_policy | [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy) | | |+| disable_copy_data_policy | [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy) | | |+| masking_rule_policy | [MaskingRulePolicy](#bytebase-v1-MaskingRulePolicy) | | |+| masking_exception_policy | [MaskingExceptionPolicy](#bytebase-v1-MaskingExceptionPolicy) | | |+| restrict_issue_creation_for_sql_review_policy | [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy) | | |+| enforce | [bool](#bool) | | |+| resource_type | [PolicyResourceType](#bytebase-v1-PolicyResourceType) | | The resource type for the policy. |+| resource_uid | [string](#string) | | The system-assigned, unique identifier for the resource. |-## v1/logging_service.proto-<a name="bytebase-v1-ExportLogsRequest"></a>-### ExportLogsRequest++<a name="bytebase-v1-RestrictIssueCreationForSQLReviewPolicy"></a>++### RestrictIssueCreationForSQLReviewPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| filter | [string](#string) | | Consistent with filter and order by in ListLogs. filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |-| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |-| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The export format. |+| disallow | [bool](#bool) | | |-<a name="bytebase-v1-ExportLogsResponse"></a>+<a name="bytebase-v1-RolloutPolicy"></a>-### ExportLogsResponse+### RolloutPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| content | [bytes](#bytes) | | |+| automatic | [bool](#bool) | | |+| workspace_roles | [string](#string) | repeated | |+| project_roles | [string](#string) | repeated | |+| issue_roles | [string](#string) | repeated | roles/LAST_APPROVER roles/CREATOR |-<a name="bytebase-v1-GetLogRequest"></a>+<a name="bytebase-v1-SQLReviewPolicy"></a>-### GetLogRequest+### SQLReviewPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the log to retrieve. Format: logs/{uid} |+| name | [string](#string) | | |+| rules | [SQLReviewRule](#bytebase-v1-SQLReviewRule) | repeated | |-<a name="bytebase-v1-ListLogsRequest"></a>+<a name="bytebase-v1-SQLReviewRule"></a>-### ListLogsRequest+### SQLReviewRule| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| filter | [string](#string) | | filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |-| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |-| page_size | [int32](#int32) | | Not used. The maximum number of logs to return. The service may return fewer than this value. If unspecified, at most 100 log entries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListLogs` call. Provide this to retrieve the subsequent page. |+| type | [string](#string) | | |+| level | [SQLReviewRuleLevel](#bytebase-v1-SQLReviewRuleLevel) | | |+| payload | [string](#string) | | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| comment | [string](#string) | | |-<a name="bytebase-v1-ListLogsResponse"></a>+<a name="bytebase-v1-SlowQueryPolicy"></a>-### ListLogsResponse+### SlowQueryPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| log_entities | [LogEntity](#bytebase-v1-LogEntity) | repeated | The list of log entities. |-| next_page_token | [string](#string) | | A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to `ListLogs` method to retrieve the next page of log entities. |+| active | [bool](#bool) | | |-<a name="bytebase-v1-LogEntity"></a>+<a name="bytebase-v1-UpdatePolicyRequest"></a>-### LogEntity+### UpdatePolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the log. Format: logs/{uid} |-| creator | [string](#string) | | The creator of the log entity. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| action | [LogEntity.Action](#bytebase-v1-LogEntity-Action) | | |-| level | [LogEntity.Level](#bytebase-v1-LogEntity-Level) | | |-| resource | [string](#string) | | The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE". Format: For ACTION_MEMBER_*: users/{email} For ACTION_ISSUE_*: issues/{issue uid} For ACTION_PIPELINE_*: pipelines/{pipeline uid} For ACTION_PROJECT_*: projects/{project resource id} For ACTION_DATABASE_*: instances/{instance resource id} |-| payload | [string](#string) | | The payload of the log entity. TODO: use oneof |-| comment | [string](#string) | | |+| policy | [Policy](#bytebase-v1-Policy) | | The policy to update.++The policy's `name` field is used to identify the instance to update. Format: {resource name}/policies/{policy type} Workspace resource name: "". Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| allow_missing | [bool](#bool) | | If set to true, and the policy is not found, a new policy will be created. In this situation, `update_mask` is ignored. |@@ -5805,58 +5522,66 @@ ANY means approving any node will proceed.-<a name="bytebase-v1-LogEntity-Action"></a>+<a name="bytebase-v1-MaskingExceptionPolicy-MaskingException-Action"></a>-### LogEntity.Action+### MaskingExceptionPolicy.MaskingException.Action| Name | Number | Description || ---- | ------ | ----------- |-| ACTION_UNSPECIFIED | 0 | In worksapce resource only. |-| ACTION_MEMBER_CREATE | 1 | Member related activity types. Enum value 1 - 20+| ACTION_UNSPECIFIED | 0 | |+| QUERY | 1 | |+| EXPORT | 2 | |-ACTION_MEMBER_CREATE is the type for creating a new member. |-| ACTION_MEMBER_ROLE_UPDATE | 2 | ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role. |-| ACTION_MEMBER_ACTIVATE | 3 | ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members. |-| ACTION_MEMBER_DEACTIVE | 4 | ACTION_MEMBER_DEACTIVE is the type for deactiving members. |-| ACTION_ISSUE_CREATE | 21 | Issue related activity types. Enum value 21 - 40-ACTION_ISSUE_CREATE is the type for creating a new issue. |-| ACTION_ISSUE_COMMENT_CREATE | 22 | ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue. |-| ACTION_ISSUE_FIELD_UPDATE | 23 | ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field. |-| ACTION_ISSUE_STATUS_UPDATE | 24 | ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status. |-| ACTION_ISSUE_APPROVAL_NOTIFY | 25 | ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |-| ACTION_PIPELINE_STAGE_STATUS_UPDATE | 31 | ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |-| ACTION_PIPELINE_TASK_STATUS_UPDATE | 32 | ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |-| ACTION_PIPELINE_TASK_FILE_COMMIT | 33 | ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement. |-| ACTION_PIPELINE_TASK_STATEMENT_UPDATE | 34 | ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |-| ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 35 | ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |-| ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE | 36 | ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, SUCCESS, FAILURE, CANCELED for now. |-| ACTION_PIPELINE_TASK_PRIOR_BACKUP | 37 | ACTION_PIPELINE_TASK_PRIOR_BACKUP represents the pipeline task prior backup activity. |-| ACTION_PROJECT_REPOSITORY_PUSH | 41 | Project related activity types. Enum value 41 - 60-ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |-| ACTION_PROJECT_MEMBER_CREATE | 42 | ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project. |-| ACTION_PROJECT_MEMBER_DELETE | 43 | ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project. |-| ACTION_PROJECT_DATABASE_TRANSFER | 45 | ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another. |-| ACTION_DATABASE_SQL_EDITOR_QUERY | 61 | Database related activity types. Enum value 61 - 80+<a name="bytebase-v1-PolicyResourceType"></a>-ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query. |-| ACTION_DATABASE_SQL_EXPORT | 62 | ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL. |+### PolicyResourceType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| RESOURCE_TYPE_UNSPECIFIED | 0 | |+| WORKSPACE | 1 | |+| ENVIRONMENT | 2 | |+| PROJECT | 3 | |+| INSTANCE | 4 | |+| DATABASE | 5 | |-<a name="bytebase-v1-LogEntity-Level"></a>+<a name="bytebase-v1-PolicyType"></a>-### LogEntity.Level+### PolicyType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| POLICY_TYPE_UNSPECIFIED | 0 | |+| WORKSPACE_IAM | 1 | |+| ROLLOUT_POLICY | 11 | |+| SQL_REVIEW | 4 | |+| MASKING | 5 | |+| SLOW_QUERY | 7 | |+| DISABLE_COPY_DATA | 8 | |+| MASKING_RULE | 9 | |+| MASKING_EXCEPTION | 10 | |+| RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW | 12 | |++++<a name="bytebase-v1-SQLReviewRuleLevel"></a>++### SQLReviewRuleLevel| Name | Number | Description || ---- | ------ | ----------- || LEVEL_UNSPECIFIED | 0 | |-| LEVEL_INFO | 1 | LEVEL_INFO is the type for information. |-| LEVEL_WARNING | 2 | LEVEL_WARNING is the type for warning. |-| LEVEL_ERROR | 3 | LEVEL_ERROR is the type for error. |+| ERROR | 1 | |+| WARNING | 2 | |+| DISABLED | 3 | |@@ -5864,16 +5589,18 @@ ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query. |-<a name="bytebase-v1-LoggingService"></a>+<a name="bytebase-v1-OrgPolicyService"></a>-### LoggingService+### OrgPolicyService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| ListLogs | [ListLogsRequest](#bytebase-v1-ListLogsRequest) | [ListLogsResponse](#bytebase-v1-ListLogsResponse) | |-| GetLog | [GetLogRequest](#bytebase-v1-GetLogRequest) | [LogEntity](#bytebase-v1-LogEntity) | |-| ExportLogs | [ExportLogsRequest](#bytebase-v1-ExportLogsRequest) | [ExportLogsResponse](#bytebase-v1-ExportLogsResponse) | |+| GetPolicy | [GetPolicyRequest](#bytebase-v1-GetPolicyRequest) | [Policy](#bytebase-v1-Policy) | |+| ListPolicies | [ListPoliciesRequest](#bytebase-v1-ListPoliciesRequest) | [ListPoliciesResponse](#bytebase-v1-ListPoliciesResponse) | |+| CreatePolicy | [CreatePolicyRequest](#bytebase-v1-CreatePolicyRequest) | [Policy](#bytebase-v1-Policy) | |+| UpdatePolicy | [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest) | [Policy](#bytebase-v1-Policy) | |+| DeletePolicy | [DeletePolicyRequest](#bytebase-v1-DeletePolicyRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |@@ -7154,7 +6881,6 @@ TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the| TYPE_PROJECT_MEMBER_CREATE | 16 | TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project. || TYPE_PROJECT_MEMBER_DELETE | 17 | TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project. || TYPE_SQL_EDITOR_QUERY | 19 | SQL Editor related activity types. TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor. |-| TYPE_DATABASE_RECOVERY_PITR_DONE | 20 | Database related activity types. TYPE_DATABASE_RECOVERY_PITR_DONE represents the database recovery to a point in time is done. |@@ -7990,7 +7716,6 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat| collation | [string](#string) | | collation is the collation of the database. || cluster | [string](#string) | | cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". || owner | [string](#string) | | owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". |-| backup | [string](#string) | | backup is the resource name of the backup. Format: instances/{instance}/databases/{database}/backups/{backup-name} || environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. || labels | [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry) | repeated | labels of the database. |@@ -8034,24 +7759,6 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat-<a name="bytebase-v1-Plan-RestoreDatabaseConfig"></a>--### Plan.RestoreDatabaseConfig----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the target to restore. Format: instances/{instance}/databases/{database} |-| create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | optional | create_database_config is present if the user wants to restore to a new database. |-| backup | [string](#string) | | |-| point_in_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | After the PITR operations, the database will be recovered to the state at this time. |------<a name="bytebase-v1-Plan-Spec"></a>### Plan.Spec@@ -8065,7 +7772,6 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat| depends_on_specs | [string](#string) | repeated | IDs of the specs that this spec depends on. Must be a subset of the specs in the same step. || create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | | || change_database_config | [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig) | | |-| restore_database_config | [Plan.RestoreDatabaseConfig](#bytebase-v1-Plan-RestoreDatabaseConfig) | | || export_data_config | [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig) | | |@@ -8268,8 +7974,6 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat| database_schema_baseline | [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline) | | || database_schema_update | [Task.DatabaseSchemaUpdate](#bytebase-v1-Task-DatabaseSchemaUpdate) | | || database_data_update | [Task.DatabaseDataUpdate](#bytebase-v1-Task-DatabaseDataUpdate) | | |-| database_backup | [Task.DatabaseBackup](#bytebase-v1-Task-DatabaseBackup) | | |-| database_restore_restore | [Task.DatabaseRestoreRestore](#bytebase-v1-Task-DatabaseRestoreRestore) | | || database_data_export | [Task.DatabaseDataExport](#bytebase-v1-Task-DatabaseDataExport) | | |@@ -8277,21 +7981,6 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat-<a name="bytebase-v1-Task-DatabaseBackup"></a>--### Task.DatabaseBackup----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| backup | [string](#string) | | The resource name of the backup. Format: instances/{instance}/databases/{database}/backups/{backup-name} |------<a name="bytebase-v1-Task-DatabaseCreate"></a>### Task.DatabaseCreate@@ -8371,23 +8060,6 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat-<a name="bytebase-v1-Task-DatabaseRestoreRestore"></a>--### Task.DatabaseRestoreRestore----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| target | [string](#string) | | Target is only used when doing restore to a new database now. It is empty for the case of in-place restore. Target {instance} must be within the same environment as the instance of the original database. {database} is the target database name. Format: instances/{instance}/databases/database |-| backup | [string](#string) | | Only used when doing restore full backup only. Format: instances/{instance}/databases/{database}/backups/{backup-name} |-| point_in_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | After the PITR operations, the database will be recovered to the state at this time. |------<a name="bytebase-v1-Task-DatabaseSchemaBaseline"></a>### Task.DatabaseSchemaBaseline@@ -8514,7 +8186,6 @@ Type is the database change type.| MIGRATE | 2 | Used for DDL changes including CREATE DATABASE. || MIGRATE_SDL | 3 | Used for schema changes via state-based schema migration including CREATE DATABASE. || MIGRATE_GHOST | 4 | Used for DDL changes using gh-ost. |-| BRANCH | 5 | Used when restoring from a backup (the restored database branched from the original backup). || DATA | 6 | Used for DML change. |@@ -8563,7 +8234,6 @@ Type is the database change type.| DATABASE_STATEMENT_SUMMARY_REPORT | 5 | || DATABASE_CONNECT | 6 | || DATABASE_GHOST_SYNC | 7 | |-| DATABASE_PITR_MYSQL | 8 | |@@ -8615,9 +8285,6 @@ Type is the database change type.| DATABASE_SCHEMA_UPDATE_GHOST_SYNC | 6 | use payload DatabaseSchemaUpdate || DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER | 7 | use payload nil || DATABASE_DATA_UPDATE | 8 | use payload DatabaseDataUpdate |-| DATABASE_BACKUP | 9 | use payload DatabaseBackup |-| DATABASE_RESTORE_RESTORE | 10 | use payload DatabaseRestoreRestore |-| DATABASE_RESTORE_CUTOVER | 11 | use payload nil || DATABASE_DATA_EXPORT | 12 | use payload DatabaseDataExport |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 507d42c6c4..b862248ded 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -226,160 +226,46 @@<li>- <a href="#v1%2fcommon.proto">v1/common.proto</a>- <ul>--- <li>- <a href="#bytebase.v1.Engine"><span class="badge">E</span>Engine</a>- </li>-- <li>- <a href="#bytebase.v1.ExportFormat"><span class="badge">E</span>ExportFormat</a>- </li>-- <li>- <a href="#bytebase.v1.MaskingLevel"><span class="badge">E</span>MaskingLevel</a>- </li>-- <li>- <a href="#bytebase.v1.State"><span class="badge">E</span>State</a>- </li>---- </ul>- </li>--- <li>- <a href="#v1%2fiam_policy.proto">v1/iam_policy.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.Binding"><span class="badge">M</span>Binding</a>- </li>-- <li>- <a href="#bytebase.v1.IamPolicy"><span class="badge">M</span>IamPolicy</a>- </li>----- </ul>- </li>--- <li>- <a href="#v1%2forg_policy_service.proto">v1/org_policy_service.proto</a>+ <a href="#v1%2fanomaly_service.proto">v1/anomaly_service.proto</a><ul><li>- <a href="#bytebase.v1.BackupPlanPolicy"><span class="badge">M</span>BackupPlanPolicy</a>- </li>-- <li>- <a href="#bytebase.v1.CreatePolicyRequest"><span class="badge">M</span>CreatePolicyRequest</a>- </li>-- <li>- <a href="#bytebase.v1.DeletePolicyRequest"><span class="badge">M</span>DeletePolicyRequest</a>- </li>-- <li>- <a href="#bytebase.v1.DisableCopyDataPolicy"><span class="badge">M</span>DisableCopyDataPolicy</a>- </li>-- <li>- <a href="#bytebase.v1.GetPolicyRequest"><span class="badge">M</span>GetPolicyRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListPoliciesRequest"><span class="badge">M</span>ListPoliciesRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListPoliciesResponse"><span class="badge">M</span>ListPoliciesResponse</a>- </li>-- <li>- <a href="#bytebase.v1.MaskData"><span class="badge">M</span>MaskData</a>- </li>-- <li>- <a href="#bytebase.v1.MaskingExceptionPolicy"><span class="badge">M</span>MaskingExceptionPolicy</a>- </li>-- <li>- <a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException"><span class="badge">M</span>MaskingExceptionPolicy.MaskingException</a>- </li>-- <li>- <a href="#bytebase.v1.MaskingPolicy"><span class="badge">M</span>MaskingPolicy</a>- </li>-- <li>- <a href="#bytebase.v1.MaskingRulePolicy"><span class="badge">M</span>MaskingRulePolicy</a>- </li>-- <li>- <a href="#bytebase.v1.MaskingRulePolicy.MaskingRule"><span class="badge">M</span>MaskingRulePolicy.MaskingRule</a>- </li>-- <li>- <a href="#bytebase.v1.Policy"><span class="badge">M</span>Policy</a>- </li>-- <li>- <a href="#bytebase.v1.RestrictIssueCreationForSQLReviewPolicy"><span class="badge">M</span>RestrictIssueCreationForSQLReviewPolicy</a>- </li>-- <li>- <a href="#bytebase.v1.RolloutPolicy"><span class="badge">M</span>RolloutPolicy</a>- </li>-- <li>- <a href="#bytebase.v1.SQLReviewPolicy"><span class="badge">M</span>SQLReviewPolicy</a>+ <a href="#bytebase.v1.Anomaly"><span class="badge">M</span>Anomaly</a></li><li>- <a href="#bytebase.v1.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a>+ <a href="#bytebase.v1.Anomaly.DatabaseConnectionDetail"><span class="badge">M</span>Anomaly.DatabaseConnectionDetail</a></li><li>- <a href="#bytebase.v1.SlowQueryPolicy"><span class="badge">M</span>SlowQueryPolicy</a>+ <a href="#bytebase.v1.Anomaly.DatabaseSchemaDriftDetail"><span class="badge">M</span>Anomaly.DatabaseSchemaDriftDetail</a></li><li>- <a href="#bytebase.v1.UpdatePolicyRequest"><span class="badge">M</span>UpdatePolicyRequest</a>+ <a href="#bytebase.v1.Anomaly.InstanceConnectionDetail"><span class="badge">M</span>Anomaly.InstanceConnectionDetail</a></li>-<li>- <a href="#bytebase.v1.BackupPlanSchedule"><span class="badge">E</span>BackupPlanSchedule</a>+ <a href="#bytebase.v1.SearchAnomaliesRequest"><span class="badge">M</span>SearchAnomaliesRequest</a></li><li>- <a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException.Action"><span class="badge">E</span>MaskingExceptionPolicy.MaskingException.Action</a>+ <a href="#bytebase.v1.SearchAnomaliesResponse"><span class="badge">M</span>SearchAnomaliesResponse</a></li>- <li>- <a href="#bytebase.v1.PolicyResourceType"><span class="badge">E</span>PolicyResourceType</a>- </li><li>- <a href="#bytebase.v1.PolicyType"><span class="badge">E</span>PolicyType</a>+ <a href="#bytebase.v1.Anomaly.AnomalySeverity"><span class="badge">E</span>Anomaly.AnomalySeverity</a></li><li>- <a href="#bytebase.v1.SQLReviewRuleLevel"><span class="badge">E</span>SQLReviewRuleLevel</a>+ <a href="#bytebase.v1.Anomaly.AnomalyType"><span class="badge">E</span>Anomaly.AnomalyType</a></li><li>- <a href="#bytebase.v1.OrgPolicyService"><span class="badge">S</span>OrgPolicyService</a>+ <a href="#bytebase.v1.AnomalyService"><span class="badge">S</span>AnomalyService</a></li></ul>@@ -387,56 +273,28 @@<li>- <a href="#v1%2fanomaly_service.proto">v1/anomaly_service.proto</a>+ <a href="#v1%2fcommon.proto">v1/common.proto</a><ul>- <li>- <a href="#bytebase.v1.Anomaly"><span class="badge">M</span>Anomaly</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.DatabaseBackupMissingDetail"><span class="badge">M</span>Anomaly.DatabaseBackupMissingDetail</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.DatabaseBackupPolicyViolationDetail"><span class="badge">M</span>Anomaly.DatabaseBackupPolicyViolationDetail</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.DatabaseConnectionDetail"><span class="badge">M</span>Anomaly.DatabaseConnectionDetail</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.DatabaseSchemaDriftDetail"><span class="badge">M</span>Anomaly.DatabaseSchemaDriftDetail</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.InstanceConnectionDetail"><span class="badge">M</span>Anomaly.InstanceConnectionDetail</a>- </li><li>- <a href="#bytebase.v1.SearchAnomaliesRequest"><span class="badge">M</span>SearchAnomaliesRequest</a>+ <a href="#bytebase.v1.Engine"><span class="badge">E</span>Engine</a></li><li>- <a href="#bytebase.v1.SearchAnomaliesResponse"><span class="badge">M</span>SearchAnomaliesResponse</a>+ <a href="#bytebase.v1.ExportFormat"><span class="badge">E</span>ExportFormat</a></li>-<li>- <a href="#bytebase.v1.Anomaly.AnomalySeverity"><span class="badge">E</span>Anomaly.AnomalySeverity</a>+ <a href="#bytebase.v1.MaskingLevel"><span class="badge">E</span>MaskingLevel</a></li><li>- <a href="#bytebase.v1.Anomaly.AnomalyType"><span class="badge">E</span>Anomaly.AnomalyType</a>+ <a href="#bytebase.v1.State"><span class="badge">E</span>State</a></li>- <li>- <a href="#bytebase.v1.AnomalyService"><span class="badge">S</span>AnomalyService</a>- </li>-</ul></li>@@ -674,14 +532,6 @@<a href="#bytebase.v1.AdviseIndexResponse"><span class="badge">M</span>AdviseIndexResponse</a></li>- <li>- <a href="#bytebase.v1.Backup"><span class="badge">M</span>Backup</a>- </li>-- <li>- <a href="#bytebase.v1.BackupSetting"><span class="badge">M</span>BackupSetting</a>- </li>-<li><a href="#bytebase.v1.BatchUpdateDatabasesRequest"><span class="badge">M</span>BatchUpdateDatabasesRequest</a></li>@@ -722,10 +572,6 @@<a href="#bytebase.v1.ColumnMetadata"><span class="badge">M</span>ColumnMetadata</a></li>- <li>- <a href="#bytebase.v1.CreateBackupRequest"><span class="badge">M</span>CreateBackupRequest</a>- </li>-<li><a href="#bytebase.v1.Database"><span class="badge">M</span>Database</a></li>@@ -778,10 +624,6 @@<a href="#bytebase.v1.FunctionMetadata"><span class="badge">M</span>FunctionMetadata</a></li>- <li>- <a href="#bytebase.v1.GetBackupSettingRequest"><span class="badge">M</span>GetBackupSettingRequest</a>- </li>-<li><a href="#bytebase.v1.GetChangeHistoryRequest"><span class="badge">M</span>GetChangeHistoryRequest</a></li>@@ -802,14 +644,6 @@<a href="#bytebase.v1.IndexMetadata"><span class="badge">M</span>IndexMetadata</a></li>- <li>- <a href="#bytebase.v1.ListBackupsRequest"><span class="badge">M</span>ListBackupsRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListBackupsResponse"><span class="badge">M</span>ListBackupsResponse</a>- </li>-<li><a href="#bytebase.v1.ListChangeHistoriesRequest"><span class="badge">M</span>ListChangeHistoriesRequest</a></li>@@ -906,10 +740,6 @@<a href="#bytebase.v1.TaskMetadata"><span class="badge">M</span>TaskMetadata</a></li>- <li>- <a href="#bytebase.v1.UpdateBackupSettingRequest"><span class="badge">M</span>UpdateBackupSettingRequest</a>- </li>-<li><a href="#bytebase.v1.UpdateDatabaseMetadataRequest"><span class="badge">M</span>UpdateDatabaseMetadataRequest</a></li>@@ -927,14 +757,6 @@</li>- <li>- <a href="#bytebase.v1.Backup.BackupState"><span class="badge">E</span>Backup.BackupState</a>- </li>-- <li>- <a href="#bytebase.v1.Backup.BackupType"><span class="badge">E</span>Backup.BackupType</a>- </li>-<li><a href="#bytebase.v1.ChangeHistory.Source"><span class="badge">E</span>ChangeHistory.Source</a></li>@@ -1150,10 +972,6 @@<a href="#bytebase.v1.Environment"><span class="badge">M</span>Environment</a></li>- <li>- <a href="#bytebase.v1.EnvironmentBackupSetting"><span class="badge">M</span>EnvironmentBackupSetting</a>- </li>-<li><a href="#bytebase.v1.GetEnvironmentRequest"><span class="badge">M</span>GetEnvironmentRequest</a></li>@@ -1170,10 +988,6 @@<a href="#bytebase.v1.UndeleteEnvironmentRequest"><span class="badge">M</span>UndeleteEnvironmentRequest</a></li>- <li>- <a href="#bytebase.v1.UpdateEnvironmentBackupSettingRequest"><span class="badge">M</span>UpdateEnvironmentBackupSettingRequest</a>- </li>-<li><a href="#bytebase.v1.UpdateEnvironmentRequest"><span class="badge">M</span>UpdateEnvironmentRequest</a></li>@@ -1193,6 +1007,25 @@</li>+ <li>+ <a href="#v1%2fiam_policy.proto">v1/iam_policy.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.Binding"><span class="badge">M</span>Binding</a>+ </li>++ <li>+ <a href="#bytebase.v1.IamPolicy"><span class="badge">M</span>IamPolicy</a>+ </li>+++++ </ul>+ </li>++<li><a href="#v1%2fidp_service.proto">v1/idp_service.proto</a><ul>@@ -1510,76 +1343,183 @@<li>- <a href="#v1%2fvcs_provider_service.proto">v1/vcs_provider_service.proto</a>+ <a href="#v1%2forg_policy_service.proto">v1/org_policy_service.proto</a><ul><li>- <a href="#bytebase.v1.CreateVCSProviderRequest"><span class="badge">M</span>CreateVCSProviderRequest</a>+ <a href="#bytebase.v1.CreatePolicyRequest"><span class="badge">M</span>CreatePolicyRequest</a></li><li>- <a href="#bytebase.v1.DeleteVCSProviderRequest"><span class="badge">M</span>DeleteVCSProviderRequest</a>+ <a href="#bytebase.v1.DeletePolicyRequest"><span class="badge">M</span>DeletePolicyRequest</a></li><li>- <a href="#bytebase.v1.ExchangeToken"><span class="badge">M</span>ExchangeToken</a>+ <a href="#bytebase.v1.DisableCopyDataPolicy"><span class="badge">M</span>DisableCopyDataPolicy</a></li><li>- <a href="#bytebase.v1.ExchangeTokenRequest"><span class="badge">M</span>ExchangeTokenRequest</a>+ <a href="#bytebase.v1.GetPolicyRequest"><span class="badge">M</span>GetPolicyRequest</a></li><li>- <a href="#bytebase.v1.GetVCSProviderRequest"><span class="badge">M</span>GetVCSProviderRequest</a>+ <a href="#bytebase.v1.ListPoliciesRequest"><span class="badge">M</span>ListPoliciesRequest</a></li><li>- <a href="#bytebase.v1.ListProjectGitOpsInfoRequest"><span class="badge">M</span>ListProjectGitOpsInfoRequest</a>+ <a href="#bytebase.v1.ListPoliciesResponse"><span class="badge">M</span>ListPoliciesResponse</a></li><li>- <a href="#bytebase.v1.ListProjectGitOpsInfoResponse"><span class="badge">M</span>ListProjectGitOpsInfoResponse</a>+ <a href="#bytebase.v1.MaskData"><span class="badge">M</span>MaskData</a></li><li>- <a href="#bytebase.v1.ListVCSProvidersRequest"><span class="badge">M</span>ListVCSProvidersRequest</a>+ <a href="#bytebase.v1.MaskingExceptionPolicy"><span class="badge">M</span>MaskingExceptionPolicy</a></li><li>- <a href="#bytebase.v1.ListVCSProvidersResponse"><span class="badge">M</span>ListVCSProvidersResponse</a>+ <a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException"><span class="badge">M</span>MaskingExceptionPolicy.MaskingException</a></li><li>- <a href="#bytebase.v1.OAuthToken"><span class="badge">M</span>OAuthToken</a>+ <a href="#bytebase.v1.MaskingPolicy"><span class="badge">M</span>MaskingPolicy</a></li><li>- <a href="#bytebase.v1.ProjectGitOpsInfo"><span class="badge">M</span>ProjectGitOpsInfo</a>+ <a href="#bytebase.v1.MaskingRulePolicy"><span class="badge">M</span>MaskingRulePolicy</a></li><li>- <a href="#bytebase.v1.SearchVCSProviderProjectsRequest"><span class="badge">M</span>SearchVCSProviderProjectsRequest</a>+ <a href="#bytebase.v1.MaskingRulePolicy.MaskingRule"><span class="badge">M</span>MaskingRulePolicy.MaskingRule</a></li><li>- <a href="#bytebase.v1.SearchVCSProviderProjectsResponse"><span class="badge">M</span>SearchVCSProviderProjectsResponse</a>+ <a href="#bytebase.v1.Policy"><span class="badge">M</span>Policy</a></li><li>- <a href="#bytebase.v1.SearchVCSProviderProjectsResponse.Project"><span class="badge">M</span>SearchVCSProviderProjectsResponse.Project</a>+ <a href="#bytebase.v1.RestrictIssueCreationForSQLReviewPolicy"><span class="badge">M</span>RestrictIssueCreationForSQLReviewPolicy</a></li><li>- <a href="#bytebase.v1.UpdateVCSProviderRequest"><span class="badge">M</span>UpdateVCSProviderRequest</a>+ <a href="#bytebase.v1.RolloutPolicy"><span class="badge">M</span>RolloutPolicy</a></li><li>- <a href="#bytebase.v1.VCSProvider"><span class="badge">M</span>VCSProvider</a>+ <a href="#bytebase.v1.SQLReviewPolicy"><span class="badge">M</span>SQLReviewPolicy</a></li>-<li>- <a href="#bytebase.v1.VCSProvider.Type"><span class="badge">E</span>VCSProvider.Type</a>+ <a href="#bytebase.v1.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a>+ </li>++ <li>+ <a href="#bytebase.v1.SlowQueryPolicy"><span class="badge">M</span>SlowQueryPolicy</a>+ </li>++ <li>+ <a href="#bytebase.v1.UpdatePolicyRequest"><span class="badge">M</span>UpdatePolicyRequest</a>+ </li>+++ <li>+ <a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException.Action"><span class="badge">E</span>MaskingExceptionPolicy.MaskingException.Action</a>+ </li>++ <li>+ <a href="#bytebase.v1.PolicyResourceType"><span class="badge">E</span>PolicyResourceType</a>+ </li>++ <li>+ <a href="#bytebase.v1.PolicyType"><span class="badge">E</span>PolicyType</a>+ </li>++ <li>+ <a href="#bytebase.v1.SQLReviewRuleLevel"><span class="badge">E</span>SQLReviewRuleLevel</a>+ </li>++++ <li>+ <a href="#bytebase.v1.OrgPolicyService"><span class="badge">S</span>OrgPolicyService</a>+ </li>++ </ul>+ </li>+++ <li>+ <a href="#v1%2fvcs_provider_service.proto">v1/vcs_provider_service.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.CreateVCSProviderRequest"><span class="badge">M</span>CreateVCSProviderRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.DeleteVCSProviderRequest"><span class="badge">M</span>DeleteVCSProviderRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExchangeToken"><span class="badge">M</span>ExchangeToken</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExchangeTokenRequest"><span class="badge">M</span>ExchangeTokenRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.GetVCSProviderRequest"><span class="badge">M</span>GetVCSProviderRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListProjectGitOpsInfoRequest"><span class="badge">M</span>ListProjectGitOpsInfoRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListProjectGitOpsInfoResponse"><span class="badge">M</span>ListProjectGitOpsInfoResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListVCSProvidersRequest"><span class="badge">M</span>ListVCSProvidersRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListVCSProvidersResponse"><span class="badge">M</span>ListVCSProvidersResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.OAuthToken"><span class="badge">M</span>OAuthToken</a>+ </li>++ <li>+ <a href="#bytebase.v1.ProjectGitOpsInfo"><span class="badge">M</span>ProjectGitOpsInfo</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchVCSProviderProjectsRequest"><span class="badge">M</span>SearchVCSProviderProjectsRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchVCSProviderProjectsResponse"><span class="badge">M</span>SearchVCSProviderProjectsResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchVCSProviderProjectsResponse.Project"><span class="badge">M</span>SearchVCSProviderProjectsResponse.Project</a>+ </li>++ <li>+ <a href="#bytebase.v1.UpdateVCSProviderRequest"><span class="badge">M</span>UpdateVCSProviderRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.VCSProvider"><span class="badge">M</span>VCSProvider</a>+ </li>+++ <li>+ <a href="#bytebase.v1.VCSProvider.Type"><span class="badge">E</span>VCSProvider.Type</a></li>@@ -2057,10 +1997,6 @@<a href="#bytebase.v1.Plan.ExportDataConfig"><span class="badge">M</span>Plan.ExportDataConfig</a></li>- <li>- <a href="#bytebase.v1.Plan.RestoreDatabaseConfig"><span class="badge">M</span>Plan.RestoreDatabaseConfig</a>- </li>-<li><a href="#bytebase.v1.Plan.Spec"><span class="badge">M</span>Plan.Spec</a></li>@@ -2109,10 +2045,6 @@<a href="#bytebase.v1.Task"><span class="badge">M</span>Task</a></li>- <li>- <a href="#bytebase.v1.Task.DatabaseBackup"><span class="badge">M</span>Task.DatabaseBackup</a>- </li>-<li><a href="#bytebase.v1.Task.DatabaseCreate"><span class="badge">M</span>Task.DatabaseCreate</a></li>@@ -2129,10 +2061,6 @@<a href="#bytebase.v1.Task.DatabaseDataUpdate"><span class="badge">M</span>Task.DatabaseDataUpdate</a></li>- <li>- <a href="#bytebase.v1.Task.DatabaseRestoreRestore"><span class="badge">M</span>Task.DatabaseRestoreRestore</a>- </li>-<li><a href="#bytebase.v1.Task.DatabaseSchemaBaseline"><span class="badge">M</span>Task.DatabaseSchemaBaseline</a></li>@@ -3106,263 +3034,113 @@ If this field is omitted, there are no subsequent pages. </p></td><div class="file-heading">- <h2 id="v1/common.proto">v1/common.proto</h2><a href="#title">Top</a>+ <h2 id="v1/anomaly_service.proto">v1/anomaly_service.proto</h2><a href="#title">Top</a></div><p></p>+ <h3 id="bytebase.v1.Anomaly">Anomaly</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>resource</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource that is the target of the operation.+Format:+- Instance: instnaces/{instance}+- Database: instnaces/{instance}/databases/{database} </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.Anomaly.AnomalyType">Anomaly.AnomalyType</a></td>+ <td></td>+ <td><p>type is the type of the anomaly. </p></td>+ </tr>++ <tr>+ <td>severity</td>+ <td><a href="#bytebase.v1.Anomaly.AnomalySeverity">Anomaly.AnomalySeverity</a></td>+ <td></td>+ <td><p>severity is the severity of the anomaly. </p></td>+ </tr>++ <tr>+ <td>instance_connection_detail</td>+ <td><a href="#bytebase.v1.Anomaly.InstanceConnectionDetail">Anomaly.InstanceConnectionDetail</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>database_connection_detail</td>+ <td><a href="#bytebase.v1.Anomaly.DatabaseConnectionDetail">Anomaly.DatabaseConnectionDetail</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>database_schema_drift_detail</td>+ <td><a href="#bytebase.v1.Anomaly.DatabaseSchemaDriftDetail">Anomaly.DatabaseSchemaDriftDetail</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.Engine">Engine</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ENGINE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>CLICKHOUSE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>MYSQL</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>POSTGRES</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>SNOWFLAKE</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>SQLITE</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>TIDB</td>- <td>6</td>- <td><p></p></td>- </tr>-- <tr>- <td>MONGODB</td>- <td>7</td>- <td><p></p></td>- </tr>-- <tr>- <td>REDIS</td>- <td>8</td>- <td><p></p></td>- </tr>-- <tr>- <td>ORACLE</td>- <td>9</td>- <td><p></p></td>- </tr>-- <tr>- <td>SPANNER</td>- <td>10</td>- <td><p></p></td>- </tr>-- <tr>- <td>MSSQL</td>- <td>11</td>- <td><p></p></td>- </tr>-- <tr>- <td>REDSHIFT</td>- <td>12</td>- <td><p></p></td>- </tr>-- <tr>- <td>MARIADB</td>- <td>13</td>- <td><p></p></td>- </tr>-- <tr>- <td>OCEANBASE</td>- <td>14</td>- <td><p></p></td>- </tr>-- <tr>- <td>DM</td>- <td>15</td>- <td><p></p></td>- </tr>-- <tr>- <td>RISINGWAVE</td>- <td>16</td>- <td><p></p></td>- </tr>-- <tr>- <td>OCEANBASE_ORACLE</td>- <td>17</td>- <td><p></p></td>- </tr>-- <tr>- <td>STARROCKS</td>- <td>18</td>- <td><p></p></td>- </tr>-- <tr>- <td>DORIS</td>- <td>19</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.ExportFormat">ExportFormat</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>FORMAT_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>CSV</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>JSON</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>SQL</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>XLSX</td>- <td>4</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.MaskingLevel">MaskingLevel</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>MASKING_LEVEL_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>NONE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>PARTIAL</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>FULL</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.State">State</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ACTIVE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DELETED</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-+ <h3 id="bytebase.v1.Anomaly.DatabaseConnectionDetail">Anomaly.DatabaseConnectionDetail</h3>+ <p>Database level anomaly detial.</p><p>DatbaaseConnectionDetail is the detail for database connection anomaly.</p>-++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>detail</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>detail is the detail of the database connection failure. </p></td>+ </tr>++ </tbody>+ </table>---- <div class="file-heading">- <h2 id="v1/iam_policy.proto">v1/iam_policy.proto</h2><a href="#title">Top</a>- </div>- <p></p>++- <h3 id="bytebase.v1.Binding">Binding</h3>- <p></p>+ <h3 id="bytebase.v1.Anomaly.DatabaseSchemaDriftDetail">Anomaly.DatabaseSchemaDriftDetail</h3>+ <p>DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.</p><table class="field-table">@@ -3372,34 +3150,24 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>role</td>+ <td>record_version</td><td><a href="#string">string</a></td><td></td>- <td><p>The role that is assigned to the members.-Format: roles/{role} </p></td>+ <td><p>record_version is the record version of the database schema drift. </p></td></tr><tr>- <td>members</td>+ <td>expected_schema</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>Specifies the principals requesting access for a Bytebase resource. </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>The condition that is associated with this binding.-If the condition evaluates to true, then this binding applies to the current request.-If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. </p></td>+ <td><p>expected_schema is the expected schema in the database. </p></td></tr><tr>- <td>parsed_expr</td>- <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>+ <td>actual_schema</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The parsed expression of the condition. </p></td>+ <td><p>actual_schema is the actual schema in the database. </p></td></tr></tbody>@@ -3409,8 +3177,8 @@ If the condition evaluates to false, then this binding does not apply to the cur- <h3 id="bytebase.v1.IamPolicy">IamPolicy</h3>- <p></p>+ <h3 id="bytebase.v1.Anomaly.InstanceConnectionDetail">Anomaly.InstanceConnectionDetail</h3>+ <p>Instance level anomaly detail.</p><p>InstanceConnectionDetail is the detail for instance connection anomaly.</p><table class="field-table">@@ -3420,11 +3188,10 @@ If the condition evaluates to false, then this binding does not apply to the cur<tbody><tr>- <td>bindings</td>- <td><a href="#bytebase.v1.Binding">Binding</a></td>- <td>repeated</td>- <td><p>Collection of binding.-A binding binds one or more project members to a single project role. </p></td>+ <td>detail</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>detail is the detail of the instance connection failure. </p></td></tr></tbody>@@ -3434,53 +3201,8 @@ A binding binds one or more project members to a single project role. </p></td>--------- <div class="file-heading">- <h2 id="v1/org_policy_service.proto">v1/org_policy_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.BackupPlanPolicy">BackupPlanPolicy</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>schedule</td>- <td><a href="#bytebase.v1.BackupPlanSchedule">BackupPlanSchedule</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>retention_duration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</h3>- <p></p>+ <h3 id="bytebase.v1.SearchAnomaliesRequest">SearchAnomaliesRequest</h3>+ <p></p><table class="field-table">@@ -3490,28 +3212,36 @@ A binding binds one or more project members to a single project role. </p></td><tbody><tr>- <td>parent</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource where this instance will be created.-Workspace resource name: "".-Environment resource name: environments/environment-id.-Instance resource name: instances/instance-id.-Database resource name: instances/instance-id/databases/database-name. </p></td>+ <td><p>filter is the filter to apply on the search anomaly request,+follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+Only support filter by resource and type for now.+For example:+Search the anomalies of a specific resource: 'resource="instances/{instance}".'+Search the specified types of anomalies: 'type="MIGRATION_SCHEMA".' </p></td></tr><tr>- <td>policy</td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The policy to create. </p></td>+ <td><p>Not used. The maximum number of anomalies to return. The service may return fewer than+this value.+If unspecified, at most 50 anomalies will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>+ <td>page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Not used. A page token, received from a previous `SearchAnomalies` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `SearchAnomalies` must match+the call that provided the page token. </p></td></tr></tbody>@@ -3521,7 +3251,7 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>- <h3 id="bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</h3>+ <h3 id="bytebase.v1.SearchAnomaliesResponse">SearchAnomaliesResponse</h3><p></p>@@ -3532,15 +3262,18 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><tbody><tr>- <td>name</td>+ <td>anomalies</td>+ <td><a href="#bytebase.v1.Anomaly">Anomaly</a></td>+ <td>repeated</td>+ <td><p>anomalies is the list of anomalies. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The policy's `name` field is used to identify the instance to update.-Format: {resource name}/policies/{policy type}-Workspace resource name: "".-Environment resource name: environments/environment-id.-Instance resource name: instances/instance-id.-Database resource name: instances/instance-id/databases/database-name. </p></td>+ <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -3550,1551 +3283,152 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>- <h3 id="bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</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>active</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>++ <h3 id="bytebase.v1.Anomaly.AnomalySeverity">Anomaly.AnomalySeverity</h3>+ <p>AnomalySeverity is the severity of the anomaly.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ANOMALY_SEVERITY_UNSPECIFIED</td>+ <td>0</td>+ <td><p>Unspecified anomaly severity.</p></td>+ </tr>++ <tr>+ <td>MEDIUM</td>+ <td>1</td>+ <td><p>MEDIUM is the info level anomaly severity.</p></td>+ </tr>++ <tr>+ <td>HIGH</td>+ <td>2</td>+ <td><p>HIGH is the warning level anomaly severity.</p></td>+ </tr>++ <tr>+ <td>CRITICAL</td>+ <td>3</td>+ <td><p>CRITICAL is the critical level anomaly severity.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Anomaly.AnomalyType">Anomaly.AnomalyType</h3>+ <p>AnomalyType is the type of the anomaly.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ANOMALY_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p>Unspecified anomaly type.</p></td>+ </tr>++ <tr>+ <td>INSTANCE_CONNECTION</td>+ <td>1</td>+ <td><p>Instance level anomaly.-+INSTANCE_CONNECTION is the anomaly type for instance connection, e.g. the instance is down.</p></td>+ </tr>++ <tr>+ <td>MIGRATION_SCHEMA</td>+ <td>2</td>+ <td><p>MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing.</p></td>+ </tr>++ <tr>+ <td>DATABASE_CONNECTION</td>+ <td>5</td>+ <td><p>Database level anomaly.-+DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted.</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_DRIFT</td>+ <td>6</td>+ <td><p>DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift,+e.g. the database schema had been changed without bytebase migration.</p></td>+ </tr>++ </tbody>+ </table>- <h3 id="bytebase.v1.GetPolicyRequest">GetPolicyRequest</h3>+++++ <h3 id="bytebase.v1.AnomalyService">AnomalyService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SearchAnomalies</td>+ <td><a href="#bytebase.v1.SearchAnomaliesRequest">SearchAnomaliesRequest</a></td>+ <td><a href="#bytebase.v1.SearchAnomaliesResponse">SearchAnomaliesResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the policy to retrieve.-Format: {resource type}/{resource id}/policies/{policy type} </p></td>- </tr>+ <tr>+ <td>SearchAnomalies</td>+ <td>GET</td>+ <td>/v1/anomalies:search</td>+ <td></td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</h3>- <p></p>+ <div class="file-heading">+ <h2 id="v1/common.proto">v1/common.proto</h2><a href="#title">Top</a>+ </div>+ <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>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of policies.-Format: {resource type}/{resource id} </p></td>- </tr>-- <tr>- <td>policy_type</td>- <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of policies to return. The service may return fewer than-this value.-If unspecified, at most 50 policies will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `GetPolicies` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `GetPolicies` must match-the call that provided the page token. </p></td>- </tr>-- <tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Show deleted policies if specified. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</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>policies</td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>- <td>repeated</td>- <td><p>The policies from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.MaskData">MaskData</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>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>column</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>masking_level</td>- <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>full_masking_algorithm_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>partial_masking_algorithm_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.MaskingExceptionPolicy">MaskingExceptionPolicy</h3>- <p>MaskingExceptionPolicy is the allowlist of users who can access sensitive data.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>masking_exceptions</td>- <td><a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException">MaskingExceptionPolicy.MaskingException</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.MaskingExceptionPolicy.MaskingException">MaskingExceptionPolicy.MaskingException</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>action</td>- <td><a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException.Action">MaskingExceptionPolicy.MaskingException.Action</a></td>- <td></td>- <td><p>action is the action that the user can access sensitive data. </p></td>- </tr>-- <tr>- <td>masking_level</td>- <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>- <td></td>- <td><p>Level is the masking level that the user can access sensitive data. </p></td>- </tr>-- <tr>- <td>member</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Member is the principal who bind to this exception policy instance.--* `user:{emailid}`: An email address that represents a specific Bytebase account. For example, `[email protected]`. </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>- <td></td>- <td><p>The condition that is associated with this exception policy instance. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.MaskingPolicy">MaskingPolicy</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>mask_data</td>- <td><a href="#bytebase.v1.MaskData">MaskData</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</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>rules</td>- <td><a href="#bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</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>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A unique identifier for a node in UUID format. </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>masking_level</td>- <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Policy">Policy</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>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the policy.-Format: {resource name}/policies/{policy type}-Workspace resource name: "".-Environment resource name: environments/environment-id.-Instance resource name: instances/instance-id.-Database resource name: instances/instance-id/databases/database-name. </p></td>- </tr>-- <tr>- <td>uid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>- </tr>-- <tr>- <td>inherit_from_parent</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>workspace_iam_policy</td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>rollout_policy</td>- <td><a href="#bytebase.v1.RolloutPolicy">RolloutPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>backup_plan_policy</td>- <td><a href="#bytebase.v1.BackupPlanPolicy">BackupPlanPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>masking_policy</td>- <td><a href="#bytebase.v1.MaskingPolicy">MaskingPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>sql_review_policy</td>- <td><a href="#bytebase.v1.SQLReviewPolicy">SQLReviewPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>slow_query_policy</td>- <td><a href="#bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>disable_copy_data_policy</td>- <td><a href="#bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>masking_rule_policy</td>- <td><a href="#bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>masking_exception_policy</td>- <td><a href="#bytebase.v1.MaskingExceptionPolicy">MaskingExceptionPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>restrict_issue_creation_for_sql_review_policy</td>- <td><a href="#bytebase.v1.RestrictIssueCreationForSQLReviewPolicy">RestrictIssueCreationForSQLReviewPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>enforce</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>resource_type</td>- <td><a href="#bytebase.v1.PolicyResourceType">PolicyResourceType</a></td>- <td></td>- <td><p>The resource type for the policy. </p></td>- </tr>-- <tr>- <td>resource_uid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The system-assigned, unique identifier for the resource. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.RestrictIssueCreationForSQLReviewPolicy">RestrictIssueCreationForSQLReviewPolicy</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>disallow</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.RolloutPolicy">RolloutPolicy</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>automatic</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>workspace_roles</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>project_roles</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>issue_roles</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>roles/LAST_APPROVER-roles/CREATOR </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SQLReviewPolicy">SQLReviewPolicy</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>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>rules</td>- <td><a href="#bytebase.v1.SQLReviewRule">SQLReviewRule</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SQLReviewRule">SQLReviewRule</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>type</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>level</td>- <td><a href="#bytebase.v1.SQLReviewRuleLevel">SQLReviewRuleLevel</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>payload</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</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>active</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</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>policy</td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>- <td></td>- <td><p>The policy to update.--The policy's `name` field is used to identify the instance to update.-Format: {resource name}/policies/{policy type}-Workspace resource name: "".-Environment resource name: environments/environment-id.-Instance resource name: instances/instance-id.-Database resource name: instances/instance-id/databases/database-name. </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>- </tr>-- <tr>- <td>allow_missing</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If set to true, and the policy is not found, a new policy will be created.-In this situation, `update_mask` is ignored. </p></td>- </tr>-- </tbody>- </table>-------- <h3 id="bytebase.v1.BackupPlanSchedule">BackupPlanSchedule</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SCHEDULE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>UNSET</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DAILY</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>WEEKLY</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.MaskingExceptionPolicy.MaskingException.Action">MaskingExceptionPolicy.MaskingException.Action</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ACTION_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>QUERY</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>EXPORT</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.PolicyResourceType">PolicyResourceType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>RESOURCE_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>WORKSPACE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>ENVIRONMENT</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>PROJECT</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>INSTANCE</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE</td>- <td>5</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.PolicyType">PolicyType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>POLICY_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>WORKSPACE_IAM</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>ROLLOUT_POLICY</td>- <td>11</td>- <td><p></p></td>- </tr>-- <tr>- <td>BACKUP_PLAN</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>SQL_REVIEW</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>MASKING</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>SLOW_QUERY</td>- <td>7</td>- <td><p></p></td>- </tr>-- <tr>- <td>DISABLE_COPY_DATA</td>- <td>8</td>- <td><p></p></td>- </tr>-- <tr>- <td>MASKING_RULE</td>- <td>9</td>- <td><p></p></td>- </tr>-- <tr>- <td>MASKING_EXCEPTION</td>- <td>10</td>- <td><p></p></td>- </tr>-- <tr>- <td>RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW</td>- <td>12</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.SQLReviewRuleLevel">SQLReviewRuleLevel</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>LEVEL_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ERROR</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>WARNING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DISABLED</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.OrgPolicyService">OrgPolicyService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetPolicy</td>- <td><a href="#bytebase.v1.GetPolicyRequest">GetPolicyRequest</a></td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td><a href="#bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</a></td>- <td><a href="#bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td><a href="#bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</a></td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdatePolicy</td>- <td><a href="#bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</a></td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeletePolicy</td>- <td><a href="#bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>- </thead>- <tbody>---- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=policies/*}</td>- <td></td>- </tr>-- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=projects/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=environments/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=instances/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=instances/*/databases/*/policies/*}</td>- <td></td>- </tr>----- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/policies</td>- <td></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/policies</td>- <td></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/{parent=environments/*}/policies</td>- <td></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/{parent=instances/*}/policies</td>- <td></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/{parent=instances/*/databases/*}/policies</td>- <td></td>- </tr>----- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/policies</td>- <td>policy</td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/policies</td>- <td>policy</td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/{parent=environments/*}/policies</td>- <td>policy</td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/{parent=instances/*}/policies</td>- <td>policy</td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/{parent=instances/*/databases/*}/policies</td>- <td>policy</td>- </tr>----- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=policies/*}</td>- <td>policy</td>- </tr>-- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=projects/*/policies/*}</td>- <td>policy</td>- </tr>-- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=environments/*/policies/*}</td>- <td>policy</td>- </tr>-- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=instances/*/policies/*}</td>- <td>policy</td>- </tr>-- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=instances/*/databases/*/policies/*}</td>- <td>policy</td>- </tr>----- <tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=policies/*}</td>- <td></td>- </tr>-- <tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=environments/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=instances/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=instances/*/databases/*/policies/*}</td>- <td></td>- </tr>--- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/anomaly_service.proto">v1/anomaly_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.Anomaly">Anomaly</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>resource</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource that is the target of the operation.-Format:-- Instance: instnaces/{instance}-- Database: instnaces/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Anomaly.AnomalyType">Anomaly.AnomalyType</a></td>- <td></td>- <td><p>type is the type of the anomaly. </p></td>- </tr>-- <tr>- <td>severity</td>- <td><a href="#bytebase.v1.Anomaly.AnomalySeverity">Anomaly.AnomalySeverity</a></td>- <td></td>- <td><p>severity is the severity of the anomaly. </p></td>- </tr>-- <tr>- <td>instance_connection_detail</td>- <td><a href="#bytebase.v1.Anomaly.InstanceConnectionDetail">Anomaly.InstanceConnectionDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_connection_detail</td>- <td><a href="#bytebase.v1.Anomaly.DatabaseConnectionDetail">Anomaly.DatabaseConnectionDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_backup_policy_violation_detail</td>- <td><a href="#bytebase.v1.Anomaly.DatabaseBackupPolicyViolationDetail">Anomaly.DatabaseBackupPolicyViolationDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_backup_missing_detail</td>- <td><a href="#bytebase.v1.Anomaly.DatabaseBackupMissingDetail">Anomaly.DatabaseBackupMissingDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_schema_drift_detail</td>- <td><a href="#bytebase.v1.Anomaly.DatabaseSchemaDriftDetail">Anomaly.DatabaseSchemaDriftDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Anomaly.DatabaseBackupMissingDetail">Anomaly.DatabaseBackupMissingDetail</h3>- <p>DatabaseBackupMissingDetail is the detail for database backup missing anomaly.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>expected_schedule</td>- <td><a href="#bytebase.v1.BackupPlanSchedule">BackupPlanSchedule</a></td>- <td></td>- <td><p>expected_schedule is the expected backup plan schedule in the database. </p></td>- </tr>-- <tr>- <td>latest_backup_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>latest_backup_time is the latest backup time in the database. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Anomaly.DatabaseBackupPolicyViolationDetail">Anomaly.DatabaseBackupPolicyViolationDetail</h3>- <p>DatabaseBackupPolicyViolationDetail is the detail for database backup policy violation anomaly.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>parent is the parent of the database.-Format: environments/{environment} </p></td>- </tr>-- <tr>- <td>expected_schedule</td>- <td><a href="#bytebase.v1.BackupPlanSchedule">BackupPlanSchedule</a></td>- <td></td>- <td><p>expected_schedule is the expected backup plan schedule in the parent. </p></td>- </tr>-- <tr>- <td>actual_schedule</td>- <td><a href="#bytebase.v1.BackupPlanSchedule">BackupPlanSchedule</a></td>- <td></td>- <td><p>actual_schedule is the actual backup plan schedule in the database. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Anomaly.DatabaseConnectionDetail">Anomaly.DatabaseConnectionDetail</h3>- <p>Database level anomaly detial.</p><p>DatbaaseConnectionDetail is the detail for database connection anomaly.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>detail</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>detail is the detail of the database connection failure. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Anomaly.DatabaseSchemaDriftDetail">Anomaly.DatabaseSchemaDriftDetail</h3>- <p>DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>record_version</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>record_version is the record version of the database schema drift. </p></td>- </tr>-- <tr>- <td>expected_schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>expected_schema is the expected schema in the database. </p></td>- </tr>-- <tr>- <td>actual_schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>actual_schema is the actual schema in the database. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Anomaly.InstanceConnectionDetail">Anomaly.InstanceConnectionDetail</h3>- <p>Instance level anomaly detail.</p><p>InstanceConnectionDetail is the detail for instance connection anomaly.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>detail</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>detail is the detail of the instance connection failure. </p></td>- </tr>-- </tbody>- </table>----- <h3 id="bytebase.v1.SearchAnomaliesRequest">SearchAnomaliesRequest</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>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>filter is the filter to apply on the search anomaly request,-follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.-Only support filter by resource and type for now.-For example:-Search the anomalies of a specific resource: 'resource="instances/{instance}".'-Search the specified types of anomalies: 'type="DATABASE_BACKUP_POLICY_VIOLATION" | "MIGRATION_SCHEMA".' </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>Not used. The maximum number of anomalies to return. The service may return fewer than-this value.-If unspecified, at most 50 anomalies will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Not used. A page token, received from a previous `SearchAnomalies` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `SearchAnomalies` must match-the call that provided the page token. </p></td>- </tr>-- </tbody>- </table>---- <h3 id="bytebase.v1.SearchAnomaliesResponse">SearchAnomaliesResponse</h3>+ <h3 id="bytebase.v1.Engine">Engine</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>anomalies</td>- <td><a href="#bytebase.v1.Anomaly">Anomaly</a></td>- <td>repeated</td>- <td><p>anomalies is the list of anomalies. </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>-- </tbody>- </table>-------- <h3 id="bytebase.v1.Anomaly.AnomalySeverity">Anomaly.AnomalySeverity</h3>- <p>AnomalySeverity is the severity of the anomaly.</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -5102,34 +3436,130 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>ANOMALY_SEVERITY_UNSPECIFIED</td>- <td>0</td>- <td><p>Unspecified anomaly severity.</p></td>+ <td>ENGINE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CLICKHOUSE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MYSQL</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>POSTGRES</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SNOWFLAKE</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SQLITE</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TIDB</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MONGODB</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REDIS</td>+ <td>8</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ORACLE</td>+ <td>9</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SPANNER</td>+ <td>10</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MSSQL</td>+ <td>11</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REDSHIFT</td>+ <td>12</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MARIADB</td>+ <td>13</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OCEANBASE</td>+ <td>14</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DM</td>+ <td>15</td>+ <td><p></p></td></tr><tr>- <td>MEDIUM</td>- <td>1</td>- <td><p>MEDIUM is the info level anomaly severity.</p></td>+ <td>RISINGWAVE</td>+ <td>16</td>+ <td><p></p></td></tr><tr>- <td>HIGH</td>- <td>2</td>- <td><p>HIGH is the warning level anomaly severity.</p></td>+ <td>OCEANBASE_ORACLE</td>+ <td>17</td>+ <td><p></p></td></tr><tr>- <td>CRITICAL</td>- <td>3</td>- <td><p>CRITICAL is the critical level anomaly severity.</p></td>+ <td>STARROCKS</td>+ <td>18</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DORIS</td>+ <td>19</td>+ <td><p></p></td></tr></tbody></table>- <h3 id="bytebase.v1.Anomaly.AnomalyType">Anomaly.AnomalyType</h3>- <p>AnomalyType is the type of the anomaly.</p>+ <h3 id="bytebase.v1.ExportFormat">ExportFormat</h3>+ <p></p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -5137,107 +3567,106 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>ANOMALY_TYPE_UNSPECIFIED</td>+ <td>FORMAT_UNSPECIFIED</td><td>0</td>- <td><p>Unspecified anomaly type.</p></td>+ <td><p></p></td></tr><tr>- <td>INSTANCE_CONNECTION</td>+ <td>CSV</td><td>1</td>- <td><p>Instance level anomaly.--INSTANCE_CONNECTION is the anomaly type for instance connection, e.g. the instance is down.</p></td>+ <td><p></p></td></tr><tr>- <td>MIGRATION_SCHEMA</td>+ <td>JSON</td><td>2</td>- <td><p>MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing.</p></td>+ <td><p></p></td></tr><tr>- <td>DATABASE_BACKUP_POLICY_VIOLATION</td>+ <td>SQL</td><td>3</td>- <td><p>Database level anomaly.--DATABASE_BACKUP_POLICY_VIOLATION is the anomaly type for database backup policy violation,-e.g. the database backup policy is not meet the environment backup policy.</p></td>+ <td><p></p></td></tr><tr>- <td>DATABASE_BACKUP_MISSING</td>+ <td>XLSX</td><td>4</td>- <td><p>DATABASE_BACKUP_MISSING is the anomaly type for the backup missing, e.g. the backup is missing.</p></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.MaskingLevel">MaskingLevel</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>MASKING_LEVEL_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td></tr><tr>- <td>DATABASE_CONNECTION</td>- <td>5</td>- <td><p>DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted.</p></td>+ <td>NONE</td>+ <td>1</td>+ <td><p></p></td></tr><tr>- <td>DATABASE_SCHEMA_DRIFT</td>- <td>6</td>- <td><p>DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift,-e.g. the database schema had been changed without bytebase migration.</p></td>+ <td>PARTIAL</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FULL</td>+ <td>3</td>+ <td><p></p></td></tr></tbody></table>----- <h3 id="bytebase.v1.AnomalyService">AnomalyService</h3>+ <h3 id="bytebase.v1.State">State</h3><p></p><table class="enum-table"><thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody><tr>- <td>SearchAnomalies</td>- <td><a href="#bytebase.v1.SearchAnomaliesRequest">SearchAnomaliesRequest</a></td>- <td><a href="#bytebase.v1.SearchAnomaliesResponse">SearchAnomaliesResponse</a></td>+ <td>STATE_UNSPECIFIED</td>+ <td>0</td><td><p></p></td></tr>- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead><tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>+ <td>ACTIVE</td>+ <td>1</td>+ <td><p></p></td></tr>- </thead>- <tbody>--<tr>- <td>SearchAnomalies</td>- <td>GET</td>- <td>/v1/anomalies:search</td>- <td></td>+ <td>DELETED</td>+ <td>2</td>+ <td><p></p></td></tr>-- </tbody>- </table>--+ </tbody>+ </table>+++++<div class="file-heading">@@ -7549,145 +5978,40 @@ Format: instances/{instance} </p></td></tbody></table>------- <div class="file-heading">- <h2 id="v1/database_service.proto">v1/database_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.AdviseIndexRequest">AdviseIndexRequest</h3>- <p>AdviseIndexRequest is the request of advising index.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>statement</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The statement to be advised. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.AdviseIndexResponse">AdviseIndexResponse</h3>- <p>AdviseIndexResponse is the response of advising index.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>current_index</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The current index of the statement used. </p></td>- </tr>-- <tr>- <td>suggestion</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The suggested index of the statement. </p></td>- </tr>-- <tr>- <td>create_index_statement</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The create index statement of the suggested index. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Backup">Backup</h3>- <p>The message of the backup.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the database backup. backup-name is specified by the client.-Format: instances/{instance}/databases/{database}/backups/{backup-name} </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The timestamp when the backup resource was created initially. </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The timestamp when the backup resource was updated. </p></td>- </tr>-- <tr>- <td>state</td>- <td><a href="#bytebase.v1.Backup.BackupState">Backup.BackupState</a></td>- <td></td>- <td><p>The state of the backup. </p></td>- </tr>-- <tr>- <td>backup_type</td>- <td><a href="#bytebase.v1.Backup.BackupType">Backup.BackupType</a></td>- <td></td>- <td><p>The type of the backup. </p></td>- </tr>+++++++ <div class="file-heading">+ <h2 id="v1/database_service.proto">v1/database_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.AdviseIndexRequest">AdviseIndexRequest</h3>+ <p>AdviseIndexRequest is the request of advising index.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>comment</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The comment of the backup. </p></td>+ <td><p>Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>uid</td>+ <td>statement</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The statement to be advised. </p></td></tr></tbody>@@ -7697,8 +6021,8 @@ Format: instances/{instance}/databases/{database}/backups/{backup-name} </p></td- <h3 id="bytebase.v1.BackupSetting">BackupSetting</h3>- <p>BackupSetting is the setting for database backup.</p>+ <h3 id="bytebase.v1.AdviseIndexResponse">AdviseIndexResponse</h3>+ <p>AdviseIndexResponse is the response of advising index.</p><table class="field-table">@@ -7708,38 +6032,24 @@ Format: instances/{instance}/databases/{database}/backups/{backup-name} </p></td<tbody><tr>- <td>name</td>+ <td>current_index</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the database backup setting.-Format: instances/{instance}/databases/{database}/backupSetting </p></td>- </tr>-- <tr>- <td>backup_retain_duration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The default maximum age of a Backup created via this BackupPlan.-If specified, a Backup will be automatically deleted after its age reaches.-If not specified, Backups created under this BackupPlan will be deleted after 7 DAYS.-It will be rounded up to the number of days. </p></td>+ <td><p>The current index of the statement used. </p></td></tr><tr>- <td>cron_schedule</td>+ <td>suggestion</td><td><a href="#string">string</a></td><td></td>- <td><p>Cron(https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups.-Support hour of day, day of week. (UTC time)--Default (empty): Disable automatic backup. </p></td>+ <td><p>The suggested index of the statement. </p></td></tr><tr>- <td>hook_url</td>+ <td>create_index_statement</td><td><a href="#string">string</a></td><td></td>- <td><p>hook_url(https://www.bytebase.com/docs/disaster-recovery/backup/#post-backup-webhook) is the URL to send a notification when a backup is created. </p></td>+ <td><p>The create index statement of the suggested index. </p></td></tr></tbody>@@ -8291,38 +6601,6 @@ column masking data and global masking rules. </p></td>- <h3 id="bytebase.v1.CreateBackupRequest">CreateBackupRequest</h3>- <p>CreateBackupRequest is the request message for CreateBackup.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent resource where this backup will be created.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>backup</td>- <td><a href="#bytebase.v1.Backup">Backup</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.Database">Database</h3><p></p>@@ -8896,31 +7174,6 @@ It's empty string for other databases. </p></td>- <h3 id="bytebase.v1.GetBackupSettingRequest">GetBackupSettingRequest</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>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the database to retrieve backup setting.-Format: instances/{instance}/databases/{database}/backupSetting </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.GetChangeHistoryRequest">GetChangeHistoryRequest</h3><p></p>@@ -9155,84 +7408,6 @@ If the key length is not specified, it's -1. </p></td>- <h3 id="bytebase.v1.ListBackupsRequest">ListBackupsRequest</h3>- <p>ListBackupsRequest is the request message for ListBackup.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent resource where this backup will be created.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>Not used. The maximum number of backups to return. The service may return fewer than-this value.-If unspecified, at most 50 backups will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Not used. A page token, received from a previous `ListBackup` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListBackup` must match-the call that provided the page token. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListBackupsResponse">ListBackupsResponse</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>backups</td>- <td><a href="#bytebase.v1.Backup">Backup</a></td>- <td>repeated</td>- <td><p>The backups from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.ListChangeHistoriesRequest">ListChangeHistoriesRequest</h3><p></p>@@ -10503,30 +8678,6 @@ Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td>- <h3 id="bytebase.v1.UpdateBackupSettingRequest">UpdateBackupSettingRequest</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>setting</td>- <td><a href="#bytebase.v1.BackupSetting">BackupSetting</a></td>- <td></td>- <td><p>The database backup setting to update. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.UpdateDatabaseMetadataRequest">UpdateDatabaseMetadataRequest</h3><p></p>@@ -10680,76 +8831,6 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.Backup.BackupState">Backup.BackupState</h3>- <p>The state of the backup.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>BACKUP_STATE_UNSPECIFIED</td>- <td>0</td>- <td><p>The state of the backup is unknown.</p></td>- </tr>-- <tr>- <td>PENDING_CREATE</td>- <td>1</td>- <td><p>The backup is being pending to create.</p></td>- </tr>-- <tr>- <td>DONE</td>- <td>2</td>- <td><p>The backup is ready to use.</p></td>- </tr>-- <tr>- <td>FAILED</td>- <td>3</td>- <td><p>The backup is being deleted.</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.Backup.BackupType">Backup.BackupType</h3>- <p>The type of the backup.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>BACKUP_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p>The type of the backup is unknown.</p></td>- </tr>-- <tr>- <td>MANUAL</td>- <td>1</td>- <td><p>The backup is created by user.</p></td>- </tr>-- <tr>- <td>AUTOMATIC</td>- <td>2</td>- <td><p>The backup is created by automatic backup.</p></td>- </tr>-- <tr>- <td>PITR</td>- <td>3</td>- <td><p>The backup is created automatically after doing PITR.</p></td>- </tr>-- </tbody>- </table>-<h3 id="bytebase.v1.ChangeHistory.Source">ChangeHistory.Source</h3><p></p><table class="enum-table">@@ -11148,50 +9229,22 @@ The API will default to the BASIC view.</p></td><tr><td>UpdateDatabaseMetadata</td>- <td><a href="#bytebase.v1.UpdateDatabaseMetadataRequest">UpdateDatabaseMetadataRequest</a></td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetDatabaseSchema</td>- <td><a href="#bytebase.v1.GetDatabaseSchemaRequest">GetDatabaseSchemaRequest</a></td>- <td><a href="#bytebase.v1.DatabaseSchema">DatabaseSchema</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DiffSchema</td>- <td><a href="#bytebase.v1.DiffSchemaRequest">DiffSchemaRequest</a></td>- <td><a href="#bytebase.v1.DiffSchemaResponse">DiffSchemaResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetBackupSetting</td>- <td><a href="#bytebase.v1.GetBackupSettingRequest">GetBackupSettingRequest</a></td>- <td><a href="#bytebase.v1.BackupSetting">BackupSetting</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateBackupSetting</td>- <td><a href="#bytebase.v1.UpdateBackupSettingRequest">UpdateBackupSettingRequest</a></td>- <td><a href="#bytebase.v1.BackupSetting">BackupSetting</a></td>+ <td><a href="#bytebase.v1.UpdateDatabaseMetadataRequest">UpdateDatabaseMetadataRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td><td><p></p></td></tr><tr>- <td>CreateBackup</td>- <td><a href="#bytebase.v1.CreateBackupRequest">CreateBackupRequest</a></td>- <td><a href="#bytebase.v1.Backup">Backup</a></td>+ <td>GetDatabaseSchema</td>+ <td><a href="#bytebase.v1.GetDatabaseSchemaRequest">GetDatabaseSchemaRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseSchema">DatabaseSchema</a></td><td><p></p></td></tr><tr>- <td>ListBackups</td>- <td><a href="#bytebase.v1.ListBackupsRequest">ListBackupsRequest</a></td>- <td><a href="#bytebase.v1.ListBackupsResponse">ListBackupsResponse</a></td>+ <td>DiffSchema</td>+ <td><a href="#bytebase.v1.DiffSchemaRequest">DiffSchemaRequest</a></td>+ <td><a href="#bytebase.v1.DiffSchemaResponse">DiffSchemaResponse</a></td><td><p></p></td></tr>@@ -11378,46 +9431,6 @@ The API will default to the BASIC view.</p></td>- <tr>- <td>GetBackupSetting</td>- <td>GET</td>- <td>/v1/{name=instances/*/databases/*/backupSetting}</td>- <td></td>- </tr>----- <tr>- <td>UpdateBackupSetting</td>- <td>PATCH</td>- <td>/v1/{setting.name=instances/*/databases/*/backupSetting}</td>- <td>setting</td>- </tr>----- <tr>- <td>CreateBackup</td>- <td>POST</td>- <td>/v1/{parent=instances/*/databases/*}/backups</td>- <td>backup</td>- </tr>----- <tr>- <td>ListBackups</td>- <td>GET</td>- <td>/v1/{parent=instances/*/databases/*}/backups</td>- <td></td>- </tr>----<tr><td>ListSlowQueries</td><td>GET</td>@@ -11695,7 +9708,227 @@ If true, server will delete the branch forcely but will not delete its children- <h3 id="bytebase.v1.DiffDatabaseRequest">DiffDatabaseRequest</h3>+ <h3 id="bytebase.v1.DiffDatabaseRequest">DiffDatabaseRequest</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of branch. </p></td>+ </tr>++ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the databsae to merge the branch to. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DiffDatabaseResponse">DiffDatabaseResponse</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>diff</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The schema diff when merge occurs seamlessly. </p></td>+ </tr>++ <tr>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The merged schema if there is no conflict. </p></td>+ </tr>++ <tr>+ <td>conflict_schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The conflict schema when rebase has conflicts.+The conflict section is enclosed by the following.+<<<<< HEAD+====+>>>>> main </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</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>source_metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td></td>+ <td><p>The metadata of the source schema. </p></td>+ </tr>++ <tr>+ <td>target_metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td></td>+ <td><p>The metadata of the target schema. </p></td>+ </tr>++ <tr>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p>The database engine of the schema. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</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>diff</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The diff of the metadata. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetBranchRequest">GetBranchRequest</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the branch to retrieve.+Format: projects/{project}/branches/{branch} </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListBranchesRequest">ListBranchesRequest</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>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource of the branch.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>To filter the search result. </p></td>+ </tr>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of branches to return. The service may return fewer than+this value.+If unspecified, at most 50 branches will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListBranches` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListBranches` must match+the call that provided the page token. </p></td>+ </tr>++ <tr>+ <td>view</td>+ <td><a href="#bytebase.v1.BranchView">BranchView</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListBranchesResponse">ListBranchesResponse</h3><p></p>@@ -11706,17 +9939,18 @@ If true, server will delete the branch forcely but will not delete its children<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of branch. </p></td>+ <td>branches</td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td>repeated</td>+ <td><p>The branches from the specified request. </p></td></tr><tr>- <td>database</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the databsae to merge the branch to. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -11726,7 +9960,7 @@ If true, server will delete the branch forcely but will not delete its children- <h3 id="bytebase.v1.DiffDatabaseResponse">DiffDatabaseResponse</h3>+ <h3 id="bytebase.v1.MergeBranchRequest">MergeBranchRequest</h3><p></p>@@ -11737,28 +9971,36 @@ If true, server will delete the branch forcely but will not delete its children<tbody><tr>- <td>diff</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The schema diff when merge occurs seamlessly. </p></td>+ <td><p>The name of the base branch to merge to.+Format: projects/{project}/branches/{branch} </p></td></tr><tr>- <td>schema</td>+ <td>head_branch</td><td><a href="#string">string</a></td><td></td>- <td><p>The merged schema if there is no conflict. </p></td>+ <td><p>The head branch to merge from.+Format: projects/{project}/branches/{branch} </p></td></tr><tr>- <td>conflict_schema</td>+ <td>etag</td><td><a href="#string">string</a></td><td></td>- <td><p>The conflict schema when rebase has conflicts.-The conflict section is enclosed by the following.-<<<<< HEAD-====->>>>> main </p></td>+ <td><p>The current etag of the branch.+If an etag is provided and does not match the current etag of the branch,+the call will be blocked and an ABORTED error will be returned.+The etag should be the etag from named branch. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>validate_only determines if the merge can occur seamlessly without any conflicts. </p></td></tr></tbody>@@ -11768,7 +10010,7 @@ The conflict section is enclosed by the following.- <h3 id="bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</h3>+ <h3 id="bytebase.v1.RebaseBranchRequest">RebaseBranchRequest</h3><p></p>@@ -11779,24 +10021,54 @@ The conflict section is enclosed by the following.<tbody><tr>- <td>source_metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The metadata of the source schema. </p></td>+ <td><p>The name of the base branch to merge to.+Format: projects/{project}/branches/{branch} </p></td></tr><tr>- <td>target_metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td>source_database</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The metadata of the target schema. </p></td>+ <td><p>The database (remote upstream) used to rebase.+We use its schema as baseline and reapply the difference between base and head of the named branch.+Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td>source_branch</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The database engine of the schema. </p></td>+ <td><p>The branch (remote upstream) used to rebase. We use its head as baseline.+We use its head schema as baseline and reapply the difference between base and head of the named branch.+Format: projects/{project}/branches/{branch} </p></td>+ </tr>++ <tr>+ <td>merged_schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>For failed merge, we will pass in this addition merged schema and use it for head.+This has to be set together with source_database or source_branch. </p></td>+ </tr>++ <tr>+ <td>etag</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The current etag of the branch.+If an etag is provided and does not match the current etag of the branch,+the call will be blocked and an ABORTED error will be returned.+The etag should be specified for using merged_schema. The etag should be the etag from named branch. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>validate_only determines if the rebase can occur seamlessly without any conflicts. </p></td></tr></tbody>@@ -11806,7 +10078,7 @@ The conflict section is enclosed by the following.- <h3 id="bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</h3>+ <h3 id="bytebase.v1.RebaseBranchResponse">RebaseBranchResponse</h3><p></p>@@ -11817,10 +10089,21 @@ The conflict section is enclosed by the following.<tbody><tr>- <td>diff</td>+ <td>branch</td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td></td>+ <td><p>The rebased branch when rebase occurs seamlessly. </p></td>+ </tr>++ <tr>+ <td>conflict_schema</td><td><a href="#string">string</a></td><td></td>- <td><p>The diff of the metadata. </p></td>+ <td><p>The conflict schema when rebase has conflicts.+The conflict section is enclosed by the following.+<<<<< HEAD+====+>>>>> main </p></td></tr></tbody>@@ -11830,7 +10113,7 @@ The conflict section is enclosed by the following.- <h3 id="bytebase.v1.GetBranchRequest">GetBranchRequest</h3>+ <h3 id="bytebase.v1.UpdateBranchRequest">UpdateBranchRequest</h3><p></p>@@ -11841,13 +10124,32 @@ The conflict section is enclosed by the following.<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>branch</td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td><td></td>- <td><p>The name of the branch to retrieve.+ <td><p>The branch to update.++The branch's `name` field is used to identify the branch to update.Format: projects/{project}/branches/{branch} </p></td></tr>+ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ <tr>+ <td>etag</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The current etag of the branch.+If an etag is provided and does not match the current etag of the branch,+the call will be blocked and an ABORTED error will be returned.+The etag should be specified for using merged_schema. The etag should be the etag from named branch. </p></td>+ </tr>+</tbody></table>@@ -11855,149 +10157,239 @@ Format: projects/{project}/branches/{branch} </p></td>- <h3 id="bytebase.v1.ListBranchesRequest">ListBranchesRequest</h3>+++ <h3 id="bytebase.v1.BranchView">BranchView</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>BRANCH_VIEW_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The default / unset value.+The API will default to the BASIC view.</p></td>+ </tr>++ <tr>+ <td>BRANCH_VIEW_BASIC</td>+ <td>1</td>+ <td><p>Exclude schema, baseline_schema.</p></td>+ </tr>++ <tr>+ <td>BRANCH_VIEW_FULL</td>+ <td>2</td>+ <td><p>Include everything.</p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BranchService">BranchService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetBranch</td>+ <td><a href="#bytebase.v1.GetBranchRequest">GetBranchRequest</a></td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListBranches</td>+ <td><a href="#bytebase.v1.ListBranchesRequest">ListBranchesRequest</a></td>+ <td><a href="#bytebase.v1.ListBranchesResponse">ListBranchesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateBranch</td>+ <td><a href="#bytebase.v1.CreateBranchRequest">CreateBranchRequest</a></td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateBranch</td>+ <td><a href="#bytebase.v1.UpdateBranchRequest">UpdateBranchRequest</a></td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MergeBranch</td>+ <td><a href="#bytebase.v1.MergeBranchRequest">MergeBranchRequest</a></td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RebaseBranch</td>+ <td><a href="#bytebase.v1.RebaseBranchRequest">RebaseBranchRequest</a></td>+ <td><a href="#bytebase.v1.RebaseBranchResponse">RebaseBranchResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteBranch</td>+ <td><a href="#bytebase.v1.DeleteBranchRequest">DeleteBranchRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DiffDatabase</td>+ <td><a href="#bytebase.v1.DiffDatabaseRequest">DiffDatabaseRequest</a></td>+ <td><a href="#bytebase.v1.DiffDatabaseResponse">DiffDatabaseResponse</a></td>+ <td><p>DiffDatabase works similar to branch rebase.+1) set the base as the schema of a database;+2) apply the changes between base and head of branch to the new base (schema of database);+3) return the diff DDLs similar to DiffSchema in database service.+4) return the conflict schema if conflict needs to be resolved by user. Once resolved, user+will call DiffSchema() in database service to get diff DDLs.</p></td>+ </tr>++ <tr>+ <td>DiffMetadata</td>+ <td><a href="#bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</a></td>+ <td><a href="#bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent resource of the branch.-Format: projects/{project} </p></td>- </tr>- <tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>To filter the search result. </p></td>- </tr>+ <tr>+ <td>GetBranch</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/branches/*}</td>+ <td></td>+ </tr>- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of branches to return. The service may return fewer than-this value.-If unspecified, at most 50 branches will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>+- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `ListBranches` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListBranches` must match-the call that provided the page token. </p></td>- </tr>- <tr>- <td>view</td>- <td><a href="#bytebase.v1.BranchView">BranchView</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>ListBranches</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/branches</td>+ <td></td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListBranchesResponse">ListBranchesResponse</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>branches</td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td>repeated</td>- <td><p>The branches from the specified request. </p></td>- </tr>- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>+ <tr>+ <td>CreateBranch</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/branch</td>+ <td>branch</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.MergeBranchRequest">MergeBranchRequest</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>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the base branch to merge to.-Format: projects/{project}/branches/{branch} </p></td>- </tr>- <tr>- <td>head_branch</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The head branch to merge from.-Format: projects/{project}/branches/{branch} </p></td>- </tr>+ <tr>+ <td>UpdateBranch</td>+ <td>PATCH</td>+ <td>/v1/{branch.name=projects/*/branches/*}</td>+ <td>branch</td>+ </tr>- <tr>- <td>etag</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The current etag of the branch.-If an etag is provided and does not match the current etag of the branch,-the call will be blocked and an ABORTED error will be returned.-The etag should be the etag from named branch. </p></td>- </tr>+- <tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>validate_only determines if the merge can occur seamlessly without any conflicts. </p></td>- </tr>+ <tr>+ <td>MergeBranch</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/branches/*}:merge</td>+ <td></td>+ </tr>+++++ <tr>+ <td>RebaseBranch</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/branches/*}:rebase</td>+ <td></td>+ </tr>+++++ <tr>+ <td>DeleteBranch</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/branches/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>DiffDatabase</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/branches/*}:diffDatabase</td>+ <td></td>+ </tr>+++++ <tr>+ <td>DiffMetadata</td>+ <td>POST</td>+ <td>/v1/schemaDesign:diffMetadata</td>+ <td>*</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.RebaseBranchRequest">RebaseBranchRequest</h3>+ <div class="file-heading">+ <h2 id="v1/cel_service.proto">v1/cel_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</h3><p></p>@@ -12008,54 +10400,10 @@ The etag should be the etag from named branch. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the base branch to merge to.-Format: projects/{project}/branches/{branch} </p></td>- </tr>-- <tr>- <td>source_database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The database (remote upstream) used to rebase.-We use its schema as baseline and reapply the difference between base and head of the named branch.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>source_branch</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The branch (remote upstream) used to rebase. We use its head as baseline.-We use its head schema as baseline and reapply the difference between base and head of the named branch.-Format: projects/{project}/branches/{branch} </p></td>- </tr>-- <tr>- <td>merged_schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>For failed merge, we will pass in this addition merged schema and use it for head.-This has to be set together with source_database or source_branch. </p></td>- </tr>-- <tr>- <td>etag</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The current etag of the branch.-If an etag is provided and does not match the current etag of the branch,-the call will be blocked and an ABORTED error will be returned.-The etag should be specified for using merged_schema. The etag should be the etag from named branch. </p></td>- </tr>-- <tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>validate_only determines if the rebase can occur seamlessly without any conflicts. </p></td>+ <td>expressions</td>+ <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -12065,7 +10413,7 @@ The etag should be specified for using merged_schema. The etag should be the eta- <h3 id="bytebase.v1.RebaseBranchResponse">RebaseBranchResponse</h3>+ <h3 id="bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</h3><p></p>@@ -12076,21 +10424,10 @@ The etag should be specified for using merged_schema. The etag should be the eta<tbody><tr>- <td>branch</td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td></td>- <td><p>The rebased branch when rebase occurs seamlessly. </p></td>- </tr>-- <tr>- <td>conflict_schema</td>+ <td>expressions</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The conflict schema when rebase has conflicts.-The conflict section is enclosed by the following.-<<<<< HEAD-====->>>>> main </p></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -12100,7 +10437,7 @@ The conflict section is enclosed by the following.- <h3 id="bytebase.v1.UpdateBranchRequest">UpdateBranchRequest</h3>+ <h3 id="bytebase.v1.BatchParseRequest">BatchParseRequest</h3><p></p>@@ -12111,30 +10448,34 @@ The conflict section is enclosed by the following.<tbody><tr>- <td>branch</td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td></td>- <td><p>The branch to update.--The branch's `name` field is used to identify the branch to update.-Format: projects/{project}/branches/{branch} </p></td>+ <td>expressions</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr>- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchParseResponse">BatchParseResponse</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>etag</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The current etag of the branch.-If an etag is provided and does not match the current etag of the branch,-the call will be blocked and an ABORTED error will be returned.-The etag should be specified for using merged_schema. The etag should be the etag from named branch. </p></td>+ <td>expressions</td>+ <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -12146,41 +10487,11 @@ The etag should be specified for using merged_schema. The etag should be the eta- <h3 id="bytebase.v1.BranchView">BranchView</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>BRANCH_VIEW_UNSPECIFIED</td>- <td>0</td>- <td><p>The default / unset value.-The API will default to the BASIC view.</p></td>- </tr>-- <tr>- <td>BRANCH_VIEW_BASIC</td>- <td>1</td>- <td><p>Exclude schema, baseline_schema.</p></td>- </tr>-- <tr>- <td>BRANCH_VIEW_FULL</td>- <td>2</td>- <td><p>Include everything.</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.BranchService">BranchService</h3>+ <h3 id="bytebase.v1.CelService">CelService</h3><p></p><table class="enum-table"><thead>@@ -12189,70 +10500,16 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>GetBranch</td>- <td><a href="#bytebase.v1.GetBranchRequest">GetBranchRequest</a></td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListBranches</td>- <td><a href="#bytebase.v1.ListBranchesRequest">ListBranchesRequest</a></td>- <td><a href="#bytebase.v1.ListBranchesResponse">ListBranchesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateBranch</td>- <td><a href="#bytebase.v1.CreateBranchRequest">CreateBranchRequest</a></td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateBranch</td>- <td><a href="#bytebase.v1.UpdateBranchRequest">UpdateBranchRequest</a></td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>MergeBranch</td>- <td><a href="#bytebase.v1.MergeBranchRequest">MergeBranchRequest</a></td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>RebaseBranch</td>- <td><a href="#bytebase.v1.RebaseBranchRequest">RebaseBranchRequest</a></td>- <td><a href="#bytebase.v1.RebaseBranchResponse">RebaseBranchResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteBranch</td>- <td><a href="#bytebase.v1.DeleteBranchRequest">DeleteBranchRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>BatchParse</td>+ <td><a href="#bytebase.v1.BatchParseRequest">BatchParseRequest</a></td>+ <td><a href="#bytebase.v1.BatchParseResponse">BatchParseResponse</a></td><td><p></p></td></tr><tr>- <td>DiffDatabase</td>- <td><a href="#bytebase.v1.DiffDatabaseRequest">DiffDatabaseRequest</a></td>- <td><a href="#bytebase.v1.DiffDatabaseResponse">DiffDatabaseResponse</a></td>- <td><p>DiffDatabase works similar to branch rebase.-1) set the base as the schema of a database;-2) apply the changes between base and head of branch to the new base (schema of database);-3) return the diff DDLs similar to DiffSchema in database service.-4) return the conflict schema if conflict needs to be resolved by user. Once resolved, user-will call DiffSchema() in database service to get diff DDLs.</p></td>- </tr>-- <tr>- <td>DiffMetadata</td>- <td><a href="#bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</a></td>- <td><a href="#bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</a></td>+ <td>BatchDeparse</td>+ <td><a href="#bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</a></td>+ <td><a href="#bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</a></td><td><p></p></td></tr>@@ -12277,106 +10534,215 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><tr>- <td>GetBranch</td>- <td>GET</td>- <td>/v1/{name=projects/*/branches/*}</td>- <td></td>- </tr>----- <tr>- <td>ListBranches</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/branches</td>- <td></td>+ <td>BatchParse</td>+ <td>POST</td>+ <td>/v1/cel/batchParse</td>+ <td>*</td></tr><tr>- <td>CreateBranch</td>+ <td>BatchDeparse</td><td>POST</td>- <td>/v1/{parent=projects/*}/branch</td>- <td>branch</td>+ <td>/v1/cel/batchDeparse</td>+ <td>*</td></tr>+ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/changelist_service.proto">v1/changelist_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.Changelist">Changelist</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the changelist resource.+Canonical parent is project.+Format: projects/{project}/changelists/{changelist} </p></td>+ </tr>- <tr>- <td>UpdateBranch</td>- <td>PATCH</td>- <td>/v1/{branch.name=projects/*/branches/*}</td>- <td>branch</td>- </tr>---+ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>MergeBranch</td>- <td>POST</td>- <td>/v1/{name=projects/*/branches/*}:merge</td>- <td></td>- </tr>+ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The creator of the changelist.+Format: users/{email} </p></td>+ </tr>-+ <tr>+ <td>updater</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The updater of the changelist.+Format: users/{email} </p></td>+ </tr>+ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The create time of the changelist. </p></td>+ </tr>- <tr>- <td>RebaseBranch</td>- <td>POST</td>- <td>/v1/{name=projects/*/branches/*}:rebase</td>- <td></td>- </tr>+ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The last update time of the changelist. </p></td>+ </tr>-+ <tr>+ <td>changes</td>+ <td><a href="#bytebase.v1.Changelist.Change">Changelist.Change</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Changelist.Change">Changelist.Change</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>DeleteBranch</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/branches/*}</td>- <td></td>- </tr>+ <tr>+ <td>sheet</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of a sheet. </p></td>+ </tr>-+ <tr>+ <td>source</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The source of origin.+1) change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory}.+2) branch: projects/{project}/branches/{branch}.+3) raw SQL if empty. </p></td>+ </tr>+ <tr>+ <td>version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The migration version for a change. </p></td>+ </tr>- <tr>- <td>DiffDatabase</td>- <td>POST</td>- <td>/v1/{name=projects/*/branches/*}:diffDatabase</td>- <td></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.CreateChangelistRequest">CreateChangelistRequest</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>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource where this changelist will be created.+Format: projects/{project} </p></td>+ </tr>+ <tr>+ <td>changelist</td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td></td>+ <td><p>The changelist to create. </p></td>+ </tr>- <tr>- <td>DiffMetadata</td>- <td>POST</td>- <td>/v1/schemaDesign:diffMetadata</td>- <td>*</td>- </tr>+ <tr>+ <td>changelist_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The ID to use for the changelist, which will become the final component of+the changelist's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td>+ </tr>-</tbody></table>++-- <div class="file-heading">- <h2 id="v1/cel_service.proto">v1/cel_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+ <h3 id="bytebase.v1.DeleteChangelistRequest">DeleteChangelistRequest</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the changelist to delete.+Format: projects/{project}/changelists/{changelist} </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</h3>+ <h3 id="bytebase.v1.GetChangelistRequest">GetChangelistRequest</h3><p></p>@@ -12387,10 +10753,11 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><tbody><tr>- <td>expressions</td>- <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the changelist to retrieve.+Format: projects/{project}/changelists/{changelist} </p></td></tr></tbody>@@ -12400,7 +10767,7 @@ will call DiffSchema() in database service to get diff DDLs.</p></td>- <h3 id="bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</h3>+ <h3 id="bytebase.v1.ListChangelistsRequest">ListChangelistsRequest</h3><p></p>@@ -12411,10 +10778,33 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><tbody><tr>- <td>expressions</td>+ <td>parent</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td></td>+ <td><p>The parent, which owns this collection of changelists.+Format: projects/{project}+Use "projects/-" to list all changelists. </p></td>+ </tr>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of databases to return. The service may return fewer than+this value.+If unspecified, at most 50 databases will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListDatabases` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListDatabases` must match+the call that provided the page token. </p></td></tr></tbody>@@ -12424,7 +10814,7 @@ will call DiffSchema() in database service to get diff DDLs.</p></td>- <h3 id="bytebase.v1.BatchParseRequest">BatchParseRequest</h3>+ <h3 id="bytebase.v1.ListChangelistsResponse">ListChangelistsResponse</h3><p></p>@@ -12435,10 +10825,18 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><tbody><tr>- <td>expressions</td>- <td><a href="#string">string</a></td>+ <td>changelists</td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>The changelists from the specified request. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -12448,7 +10846,7 @@ will call DiffSchema() in database service to get diff DDLs.</p></td>- <h3 id="bytebase.v1.BatchParseResponse">BatchParseResponse</h3>+ <h3 id="bytebase.v1.UpdateChangelistRequest">UpdateChangelistRequest</h3><p></p>@@ -12459,10 +10857,20 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><tbody><tr>- <td>expressions</td>- <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>changelist</td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td></td>+ <td><p>The changelist to update.++The changelist's `name` field is used to identify the changelist to update.+Format: projects/{project}/changelists/{changelist} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to be updated. </p></td></tr></tbody>@@ -12478,7 +10886,7 @@ will call DiffSchema() in database service to get diff DDLs.</p></td>- <h3 id="bytebase.v1.CelService">CelService</h3>+ <h3 id="bytebase.v1.ChangelistService">ChangelistService</h3><p></p><table class="enum-table"><thead>@@ -12487,16 +10895,37 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><tbody><tr>- <td>BatchParse</td>- <td><a href="#bytebase.v1.BatchParseRequest">BatchParseRequest</a></td>- <td><a href="#bytebase.v1.BatchParseResponse">BatchParseResponse</a></td>+ <td>CreateChangelist</td>+ <td><a href="#bytebase.v1.CreateChangelistRequest">CreateChangelistRequest</a></td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetChangelist</td>+ <td><a href="#bytebase.v1.GetChangelistRequest">GetChangelistRequest</a></td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListChangelists</td>+ <td><a href="#bytebase.v1.ListChangelistsRequest">ListChangelistsRequest</a></td>+ <td><a href="#bytebase.v1.ListChangelistsResponse">ListChangelistsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateChangelist</td>+ <td><a href="#bytebase.v1.UpdateChangelistRequest">UpdateChangelistRequest</a></td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td><td><p></p></td></tr><tr>- <td>BatchDeparse</td>- <td><a href="#bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</a></td>- <td><a href="#bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</a></td>+ <td>DeleteChangelist</td>+ <td><a href="#bytebase.v1.DeleteChangelistRequest">DeleteChangelistRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr>@@ -12521,20 +10950,50 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><tr>- <td>BatchParse</td>+ <td>CreateChangelist</td><td>POST</td>- <td>/v1/cel/batchParse</td>- <td>*</td>+ <td>/v1/{parent=projects/*}/changelists</td>+ <td>changelist</td></tr><tr>- <td>BatchDeparse</td>- <td>POST</td>- <td>/v1/cel/batchDeparse</td>- <td>*</td>+ <td>GetChangelist</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/changelists/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>ListChangelists</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/changelists</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UpdateChangelist</td>+ <td>PATCH</td>+ <td>/v1/{changelist.name=projects/*/changelists/*}</td>+ <td>changelist</td>+ </tr>+++++ <tr>+ <td>DeleteChangelist</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/changelists/*}</td>+ <td></td></tr>@@ -12545,12 +11004,12 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><div class="file-heading">- <h2 id="v1/changelist_service.proto">v1/changelist_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/environment_service.proto">v1/environment_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.Changelist">Changelist</h3>+ <h3 id="bytebase.v1.CreateEnvironmentRequest">CreateEnvironmentRequest</h3><p></p>@@ -12561,56 +11020,21 @@ will call DiffSchema() in database service to get diff DDLs.</p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the changelist resource.-Canonical parent is project.-Format: projects/{project}/changelists/{changelist} </p></td>- </tr>-- <tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>+ <td>environment</td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td></td>- <td><p>The creator of the changelist.-Format: users/{email} </p></td>+ <td><p>The environment to create. </p></td></tr><tr>- <td>updater</td>+ <td>environment_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The updater of the changelist.-Format: users/{email} </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The create time of the changelist. </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The last update time of the changelist. </p></td>- </tr>-- <tr>- <td>changes</td>- <td><a href="#bytebase.v1.Changelist.Change">Changelist.Change</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>The ID to use for the environment, which will become the final component of+the environment's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td></tr></tbody>@@ -12620,7 +11044,7 @@ Format: users/{email} </p></td>- <h3 id="bytebase.v1.Changelist.Change">Changelist.Change</h3>+ <h3 id="bytebase.v1.DeleteEnvironmentRequest">DeleteEnvironmentRequest</h3><p></p>@@ -12631,27 +11055,11 @@ Format: users/{email} </p></td><tbody><tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of a sheet. </p></td>- </tr>-- <tr>- <td>source</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The source of origin.-1) change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory}.-2) branch: projects/{project}/branches/{branch}.-3) raw SQL if empty. </p></td>- </tr>-- <tr>- <td>version</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The migration version for a change. </p></td>+ <td><p>The name of the environment to delete.+Format: environments/{environment} </p></td></tr></tbody>@@ -12661,7 +11069,7 @@ Format: users/{email} </p></td>- <h3 id="bytebase.v1.CreateChangelistRequest">CreateChangelistRequest</h3>+ <h3 id="bytebase.v1.Environment">Environment</h3><p></p>@@ -12672,29 +11080,46 @@ Format: users/{email} </p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource where this changelist will be created.-Format: projects/{project} </p></td>+ <td><p>The name of the environment.+Format: environments/{environment} </p></td></tr><tr>- <td>changelist</td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td>uid</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The changelist to create. </p></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td></tr><tr>- <td>changelist_id</td>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The ID to use for the changelist, which will become the final component of-the changelist's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][0-9]-/. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>order</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>tier</td>+ <td><a href="#bytebase.v1.EnvironmentTier">EnvironmentTier</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -12704,7 +11129,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.DeleteChangelistRequest">DeleteChangelistRequest</h3>+ <h3 id="bytebase.v1.GetEnvironmentRequest">GetEnvironmentRequest</h3><p></p>@@ -12718,8 +11143,8 @@ are /[a-z][0-9]-/. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the changelist to delete.-Format: projects/{project}/changelists/{changelist} </p></td>+ <td><p>The name of the environment to retrieve.+Format: environments/{environment} </p></td></tr></tbody>@@ -12729,7 +11154,7 @@ Format: projects/{project}/changelists/{changelist} </p></td>- <h3 id="bytebase.v1.GetChangelistRequest">GetChangelistRequest</h3>+ <h3 id="bytebase.v1.ListEnvironmentsRequest">ListEnvironmentsRequest</h3><p></p>@@ -12740,11 +11165,31 @@ Format: projects/{project}/changelists/{changelist} </p></td><tbody><tr>- <td>name</td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of environments to return. The service may return fewer than+this value.+If unspecified, at most 50 environments will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the changelist to retrieve.-Format: projects/{project}/changelists/{changelist} </p></td>+ <td><p>A page token, received from a previous `ListEnvironments` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListEnvironments` must match+the call that provided the page token. </p></td>+ </tr>++ <tr>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Show deleted environments if specified. </p></td></tr></tbody>@@ -12754,7 +11199,7 @@ Format: projects/{project}/changelists/{changelist} </p></td>- <h3 id="bytebase.v1.ListChangelistsRequest">ListChangelistsRequest</h3>+ <h3 id="bytebase.v1.ListEnvironmentsResponse">ListEnvironmentsResponse</h3><p></p>@@ -12765,33 +11210,18 @@ Format: projects/{project}/changelists/{changelist} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of changelists.-Format: projects/{project}-Use "projects/-" to list all changelists. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of databases to return. The service may return fewer than-this value.-If unspecified, at most 50 databases will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td>environments</td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>repeated</td>+ <td><p>The environments from the specified request. </p></td></tr><tr>- <td>page_token</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListDatabases` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListDatabases` must match-the call that provided the page token. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -12801,7 +11231,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListChangelistsResponse">ListChangelistsResponse</h3>+ <h3 id="bytebase.v1.UndeleteEnvironmentRequest">UndeleteEnvironmentRequest</h3><p></p>@@ -12809,21 +11239,14 @@ the call that provided the page token. </p></td><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead>- <tbody>-- <tr>- <td>changelists</td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>- <td>repeated</td>- <td><p>The changelists from the specified request. </p></td>- </tr>+ <tbody><tr>- <td>next_page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The name of the deleted environment.+Format: environments/{environment} </p></td></tr></tbody>@@ -12833,7 +11256,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateChangelistRequest">UpdateChangelistRequest</h3>+ <h3 id="bytebase.v1.UpdateEnvironmentRequest">UpdateEnvironmentRequest</h3><p></p>@@ -12844,20 +11267,20 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>changelist</td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td>environment</td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td></td>- <td><p>The changelist to update.+ <td><p>The environment to update.-The changelist's `name` field is used to identify the changelist to update.-Format: projects/{project}/changelists/{changelist} </p></td>+The environment's `name` field is used to identify the environment to update.+Format: environments/{environment} </p></td></tr><tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>The list of fields to be updated. </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -12869,11 +11292,40 @@ Format: projects/{project}/changelists/{changelist} </p></td>+ <h3 id="bytebase.v1.EnvironmentTier">EnvironmentTier</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ENVIRONMENT_TIER_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PROTECTED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UNPROTECTED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+- <h3 id="bytebase.v1.ChangelistService">ChangelistService</h3>+ <h3 id="bytebase.v1.EnvironmentService">EnvironmentService</h3><p></p><table class="enum-table"><thead>@@ -12882,40 +11334,47 @@ Format: projects/{project}/changelists/{changelist} </p></td><tbody><tr>- <td>CreateChangelist</td>- <td><a href="#bytebase.v1.CreateChangelistRequest">CreateChangelistRequest</a></td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td>GetEnvironment</td>+ <td><a href="#bytebase.v1.GetEnvironmentRequest">GetEnvironmentRequest</a></td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td><p></p></td></tr><tr>- <td>GetChangelist</td>- <td><a href="#bytebase.v1.GetChangelistRequest">GetChangelistRequest</a></td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td>ListEnvironments</td>+ <td><a href="#bytebase.v1.ListEnvironmentsRequest">ListEnvironmentsRequest</a></td>+ <td><a href="#bytebase.v1.ListEnvironmentsResponse">ListEnvironmentsResponse</a></td><td><p></p></td></tr><tr>- <td>ListChangelists</td>- <td><a href="#bytebase.v1.ListChangelistsRequest">ListChangelistsRequest</a></td>- <td><a href="#bytebase.v1.ListChangelistsResponse">ListChangelistsResponse</a></td>+ <td>CreateEnvironment</td>+ <td><a href="#bytebase.v1.CreateEnvironmentRequest">CreateEnvironmentRequest</a></td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td><p></p></td></tr><tr>- <td>UpdateChangelist</td>- <td><a href="#bytebase.v1.UpdateChangelistRequest">UpdateChangelistRequest</a></td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td>UpdateEnvironment</td>+ <td><a href="#bytebase.v1.UpdateEnvironmentRequest">UpdateEnvironmentRequest</a></td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td><p></p></td></tr><tr>- <td>DeleteChangelist</td>- <td><a href="#bytebase.v1.DeleteChangelistRequest">DeleteChangelistRequest</a></td>+ <td>DeleteEnvironment</td>+ <td><a href="#bytebase.v1.DeleteEnvironmentRequest">DeleteEnvironmentRequest</a></td><td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr>+ <tr>+ <td>UndeleteEnvironment</td>+ <td><a href="#bytebase.v1.UndeleteEnvironmentRequest">UndeleteEnvironmentRequest</a></td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td><p></p></td>+ </tr>+</tbody></table>@@ -12937,19 +11396,19 @@ Format: projects/{project}/changelists/{changelist} </p></td><tr>- <td>CreateChangelist</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/changelists</td>- <td>changelist</td>+ <td>GetEnvironment</td>+ <td>GET</td>+ <td>/v1/{name=environments/*}</td>+ <td></td></tr><tr>- <td>GetChangelist</td>+ <td>ListEnvironments</td><td>GET</td>- <td>/v1/{name=projects/*/changelists/*}</td>+ <td>/v1/environments</td><td></td></tr>@@ -12957,33 +11416,43 @@ Format: projects/{project}/changelists/{changelist} </p></td><tr>- <td>ListChangelists</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/changelists</td>- <td></td>+ <td>CreateEnvironment</td>+ <td>POST</td>+ <td>/v1/environments</td>+ <td>environment</td></tr><tr>- <td>UpdateChangelist</td>+ <td>UpdateEnvironment</td><td>PATCH</td>- <td>/v1/{changelist.name=projects/*/changelists/*}</td>- <td>changelist</td>+ <td>/v1/{environment.name=environments/*}</td>+ <td>environment</td></tr><tr>- <td>DeleteChangelist</td>+ <td>DeleteEnvironment</td><td>DELETE</td>- <td>/v1/{name=projects/*/changelists/*}</td>+ <td>/v1/{name=environments/*}</td><td></td></tr>+++ <tr>+ <td>UndeleteEnvironment</td>+ <td>POST</td>+ <td>/v1/{name=environments/*}:undelete</td>+ <td>*</td>+ </tr>++</tbody></table>@@ -12991,72 +11460,12 @@ Format: projects/{project}/changelists/{changelist} </p></td><div class="file-heading">- <h2 id="v1/environment_service.proto">v1/environment_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/iam_policy.proto">v1/iam_policy.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.CreateEnvironmentRequest">CreateEnvironmentRequest</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>environment</td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>- <td></td>- <td><p>The environment to create. </p></td>- </tr>-- <tr>- <td>environment_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The ID to use for the environment, which will become the final component of-the environment's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][0-9]-/. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.DeleteEnvironmentRequest">DeleteEnvironmentRequest</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>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the environment to delete.-Format: environments/{environment} </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Environment">Environment</h3>+ <h3 id="bytebase.v1.Binding">Binding</h3><p></p>@@ -13067,78 +11476,34 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the environment.-Format: environments/{environment} </p></td>- </tr>-- <tr>- <td>uid</td>+ <td>role</td><td><a href="#string">string</a></td><td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>- </tr>-- <tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The role that is assigned to the members.+Format: roles/{role} </p></td></tr><tr>- <td>title</td>+ <td>members</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>order</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>tier</td>- <td><a href="#bytebase.v1.EnvironmentTier">EnvironmentTier</a></td>- <td></td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>Specifies the principals requesting access for a Bytebase resource. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.EnvironmentBackupSetting">EnvironmentBackupSetting</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>name</td>- <td><a href="#string">string</a></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>The name of the environment backup setting.-Format: environments/{environment}/backupSetting </p></td>+ <td><p>The condition that is associated with this binding.+If the condition evaluates to true, then this binding applies to the current request.+If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. </p></td></tr><tr>- <td>enabled</td>- <td><a href="#bool">bool</a></td>+ <td>parsed_expr</td>+ <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td><td></td>- <td><p> </p></td>+ <td><p>The parsed expression of the condition. </p></td></tr></tbody>@@ -13148,7 +11513,7 @@ Format: environments/{environment}/backupSetting </p></td>- <h3 id="bytebase.v1.GetEnvironmentRequest">GetEnvironmentRequest</h3>+ <h3 id="bytebase.v1.IamPolicy">IamPolicy</h3><p></p>@@ -13159,11 +11524,11 @@ Format: environments/{environment}/backupSetting </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the environment to retrieve.-Format: environments/{environment} </p></td>+ <td>bindings</td>+ <td><a href="#bytebase.v1.Binding">Binding</a></td>+ <td>repeated</td>+ <td><p>Collection of binding.+A binding binds one or more project members to a single project role. </p></td></tr></tbody>@@ -13173,7 +11538,21 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.ListEnvironmentsRequest">ListEnvironmentsRequest</h3>+++++++++ <div class="file-heading">+ <h2 id="v1/idp_service.proto">v1/idp_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</h3><p></p>@@ -13184,31 +11563,21 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td></td>- <td><p>The maximum number of environments to return. The service may return fewer than-this value.-If unspecified, at most 50 environments will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p>The identity provider to create. </p></td></tr><tr>- <td>page_token</td>+ <td>identity_provider_id</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListEnvironments` call.-Provide this to retrieve the subsequent page.+ <td><p>The ID to use for the identity provider, which will become the final component of+the identity provider's resource name.-When paginating, all other parameters provided to `ListEnvironments` must match-the call that provided the page token. </p></td>- </tr>-- <tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Show deleted environments if specified. </p></td>+This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td></tr></tbody>@@ -13218,7 +11587,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListEnvironmentsResponse">ListEnvironmentsResponse</h3>+ <h3 id="bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</h3><p></p>@@ -13229,18 +11598,11 @@ the call that provided the page token. </p></td><tbody><tr>- <td>environments</td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>- <td>repeated</td>- <td><p>The environments from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The name of the identity provider to delete.+Format: idps/{identity_provider} </p></td></tr></tbody>@@ -13250,8 +11612,8 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UndeleteEnvironmentRequest">UndeleteEnvironmentRequest</h3>- <p></p>+ <h3 id="bytebase.v1.FieldMapping">FieldMapping</h3>+ <p>FieldMapping saves the field names from user info API of identity provider.</p><p>As we save all raw json string of user info response data into `principal.idp_user_info`,</p><p>we can extract the relevant data based with `FieldMapping`.</p><p>e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.</p><p>Then the identifier of FieldMapping will be `login`, display_name will be `name`,</p><p>and email will be `email`.</p><p>reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user</p><table class="field-table">@@ -13261,11 +11623,31 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>+ <td>identifier</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the deleted environment.-Format: environments/{environment} </p></td>+ <td><p>Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. </p></td>+ </tr>++ <tr>+ <td>display_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>DisplayName is the field name of display name in 3rd-party idp user info. </p></td>+ </tr>++ <tr>+ <td>email</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Email is the field name of primary email in 3rd-party idp user info. </p></td>+ </tr>++ <tr>+ <td>phone</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Phone is the field name of primary phone in 3rd-party idp user info. </p></td></tr></tbody>@@ -13275,7 +11657,7 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.UpdateEnvironmentBackupSettingRequest">UpdateEnvironmentBackupSettingRequest</h3>+ <h3 id="bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</h3><p></p>@@ -13286,10 +11668,10 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>setting</td>- <td><a href="#bytebase.v1.EnvironmentBackupSetting">EnvironmentBackupSetting</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The environment backup setting to update. </p></td>+ <td><p> </p></td></tr></tbody>@@ -13299,7 +11681,7 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.UpdateEnvironmentRequest">UpdateEnvironmentRequest</h3>+ <h3 id="bytebase.v1.IdentityProvider">IdentityProvider</h3><p></p>@@ -13310,20 +11692,53 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>environment</td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The environment to update.--The environment's `name` field is used to identify the environment to update.-Format: environments/{environment} </p></td>+ <td><p>The name of the identity provider.+Format: idps/{identity_provider} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>uid</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td>+ </tr>++ <tr>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>domain</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.IdentityProviderType">IdentityProviderType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>config</td>+ <td><a href="#bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -13333,199 +11748,132 @@ Format: environments/{environment} </p></td>--- <h3 id="bytebase.v1.EnvironmentTier">EnvironmentTier</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ENVIRONMENT_TIER_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PROTECTED</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>UNPROTECTED</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.EnvironmentService">EnvironmentService</h3>+ <h3 id="bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetEnvironment</td>- <td><a href="#bytebase.v1.GetEnvironmentRequest">GetEnvironmentRequest</a></td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListEnvironments</td>- <td><a href="#bytebase.v1.ListEnvironmentsRequest">ListEnvironmentsRequest</a></td>- <td><a href="#bytebase.v1.ListEnvironmentsResponse">ListEnvironmentsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateEnvironment</td>- <td><a href="#bytebase.v1.CreateEnvironmentRequest">CreateEnvironmentRequest</a></td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateEnvironment</td>- <td><a href="#bytebase.v1.UpdateEnvironmentRequest">UpdateEnvironmentRequest</a></td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteEnvironment</td>- <td><a href="#bytebase.v1.DeleteEnvironmentRequest">DeleteEnvironmentRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UndeleteEnvironment</td>- <td><a href="#bytebase.v1.UndeleteEnvironmentRequest">UndeleteEnvironmentRequest</a></td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateBackupSetting</td>- <td><a href="#bytebase.v1.UpdateEnvironmentBackupSettingRequest">UpdateEnvironmentBackupSettingRequest</a></td>- <td><a href="#bytebase.v1.EnvironmentBackupSetting">EnvironmentBackupSetting</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>GetEnvironment</td>- <td>GET</td>- <td>/v1/{name=environments/*}</td>- <td></td>- </tr>----- <tr>- <td>ListEnvironments</td>- <td>GET</td>- <td>/v1/environments</td>- <td></td>- </tr>---- <tr>- <td>CreateEnvironment</td>- <td>POST</td>- <td>/v1/environments</td>- <td>environment</td>- </tr>+ <tr>+ <td>oauth2_config</td>+ <td><a href="#bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>oidc_config</td>+ <td><a href="#bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>ldap_config</td>+ <td><a href="#bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>UpdateEnvironment</td>- <td>PATCH</td>- <td>/v1/{environment.name=environments/*}</td>- <td>environment</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</h3>+ <p>LDAPIdentityProviderConfig is the structure for LDAP identity provider config.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>-+ <tr>+ <td>host</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Host is the hostname or IP address of the LDAP server, e.g.+"ldap.example.com". </p></td>+ </tr>+ <tr>+ <td>port</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>Port is the port number of the LDAP server, e.g. 389. When not set, the+default port of the corresponding security protocol will be used, i.e. 389+for StartTLS and 636 for LDAPS. </p></td>+ </tr>- <tr>- <td>DeleteEnvironment</td>- <td>DELETE</td>- <td>/v1/{name=environments/*}</td>- <td></td>- </tr>+ <tr>+ <td>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>SkipTLSVerify controls whether to skip TLS certificate verification. </p></td>+ </tr>-+ <tr>+ <td>bind_dn</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>BindDN is the DN of the user to bind as a service account to perform+search requests. </p></td>+ </tr>+ <tr>+ <td>bind_password</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>BindPassword is the password of the user to bind as a service account. </p></td>+ </tr>- <tr>- <td>UndeleteEnvironment</td>- <td>POST</td>- <td>/v1/{name=environments/*}:undelete</td>- <td>*</td>- </tr>+ <tr>+ <td>base_dn</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". </p></td>+ </tr>-+ <tr>+ <td>user_filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>UserFilter is the filter to search for users, e.g. "(uid=%s)". </p></td>+ </tr>+ <tr>+ <td>security_protocol</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>SecurityProtocol is the security protocol to be used for establishing+connections with the LDAP server. It should be either StartTLS or LDAPS, and+cannot be empty. </p></td>+ </tr>- <tr>- <td>UpdateBackupSetting</td>- <td>PATCH</td>- <td>/v1/{setting.name=environments/*/backupSetting}</td>- <td>setting</td>- </tr>+ <tr>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>+ <td></td>+ <td><p>FieldMapping is the mapping of the user attributes returned by the LDAP+server. </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/idp_service.proto">v1/idp_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</h3><p></p>@@ -13536,21 +11884,31 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The identity provider to create. </p></td>+ <td><p>The maximum number of identity providers to return. The service may return fewer than+this value.+If unspecified, at most 50 will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>identity_provider_id</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The ID to use for the identity provider, which will become the final component of-the identity provider's resource name.+ <td><p>A page token, received from a previous `ListIdentityProviders` call.+Provide this to retrieve the subsequent page.-This value should be 4-63 characters, and valid characters-are /[a-z][0-9]-/. </p></td>+When paginating, all other parameters provided to `ListIdentityProviders` must match+the call that provided the page token. </p></td>+ </tr>++ <tr>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Show deleted identity providers if specified. </p></td></tr></tbody>@@ -13560,7 +11918,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</h3><p></p>@@ -13571,11 +11929,18 @@ are /[a-z][0-9]-/. </p></td><tbody><tr>- <td>name</td>+ <td>identity_providers</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>repeated</td>+ <td><p>The identity providers from the specified request. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the identity provider to delete.-Format: idps/{identity_provider} </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -13585,8 +11950,8 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.FieldMapping">FieldMapping</h3>- <p>FieldMapping saves the field names from user info API of identity provider.</p><p>As we save all raw json string of user info response data into `principal.idp_user_info`,</p><p>we can extract the relevant data based with `FieldMapping`.</p><p>e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.</p><p>Then the identifier of FieldMapping will be `login`, display_name will be `name`,</p><p>and email will be `email`.</p><p>reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user</p>+ <h3 id="bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</h3>+ <p>OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.</p><table class="field-table">@@ -13596,31 +11961,66 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>identifier</td>+ <td>auth_url</td><td><a href="#string">string</a></td><td></td>- <td><p>Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. </p></td>+ <td><p> </p></td></tr><tr>- <td>display_name</td>+ <td>token_url</td><td><a href="#string">string</a></td><td></td>- <td><p>DisplayName is the field name of display name in 3rd-party idp user info. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>user_info_url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>client_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>client_secret</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>scopes</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>email</td>- <td><a href="#string">string</a></td>+ <td>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Email is the field name of primary email in 3rd-party idp user info. </p></td>+ <td><p> </p></td></tr><tr>- <td>phone</td>- <td><a href="#string">string</a></td>+ <td>auth_style</td>+ <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td>- <td><p>Phone is the field name of primary phone in 3rd-party idp user info. </p></td>+ <td><p> </p></td></tr></tbody>@@ -13630,7 +12030,7 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</h3><p></p>@@ -13641,10 +12041,10 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>name</td>+ <td>code</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Authorize code from website. </p></td></tr></tbody>@@ -13654,8 +12054,8 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.IdentityProvider">IdentityProvider</h3>- <p></p>+ <h3 id="bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</h3>+ <p>OIDCIdentityProviderConfig is the structure for OIDC identity provider config.</p><table class="field-table">@@ -13665,51 +12065,50 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>name</td>+ <td>issuer</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the identity provider.-Format: idps/{identity_provider} </p></td>+ <td><p> </p></td></tr><tr>- <td>uid</td>+ <td>client_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>+ <td><p> </p></td></tr><tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>+ <td>client_secret</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>title</td>+ <td>scopes</td><td><a href="#string">string</a></td>- <td></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>domain</td>- <td><a href="#string">string</a></td>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td><td></td><td><p> </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.IdentityProviderType">IdentityProviderType</a></td>+ <td>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>config</td>- <td><a href="#bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</a></td>+ <td>auth_style</td>+ <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td><td><p> </p></td></tr>@@ -13721,7 +12120,7 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</h3>+ <h3 id="bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</h3><p></p>@@ -13732,24 +12131,49 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>oauth2_config</td>- <td><a href="#bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</a></td>+ <td>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td></td>- <td><p> </p></td>+ <td><p>The identity provider to test connection including uncreated. </p></td></tr><tr>- <td>oidc_config</td>- <td><a href="#bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</a></td>+ <td>oauth2_context</td>+ <td><a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</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>ldap_config</td>- <td><a href="#bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the deleted identity provider.+Format: idps/{identity_provider} </p></td></tr></tbody>@@ -13759,241 +12183,292 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</h3>- <p>LDAPIdentityProviderConfig is the structure for LDAP identity provider config.</p>+ <h3 id="bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</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>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td></td>+ <td><p>The identity provider to update.++The identity provider's `name` field is used to identify the identity provider to update.+Format: idps/{identity_provider} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.v1.IdentityProviderType">IdentityProviderType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>IDENTITY_PROVIDER_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OAUTH2</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OIDC</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>LDAP</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>OAUTH2_AUTH_STYLE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>IN_PARAMS</td>+ <td>1</td>+ <td><p>IN_PARAMS sends the "client_id" and "client_secret" in the POST body+as application/x-www-form-urlencoded parameters.</p></td>+ </tr>++ <tr>+ <td>IN_HEADER</td>+ <td>2</td>+ <td><p>IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.IdentityProviderService">IdentityProviderService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetIdentityProvider</td>+ <td><a href="#bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListIdentityProviders</td>+ <td><a href="#bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</a></td>+ <td><a href="#bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateIdentityProvider</td>+ <td><a href="#bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateIdentityProvider</td>+ <td><a href="#bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteIdentityProvider</td>+ <td><a href="#bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UndeleteIdentityProvider</td>+ <td><a href="#bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TestIdentityProvider</td>+ <td><a href="#bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>host</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Host is the hostname or IP address of the LDAP server, e.g.-"ldap.example.com". </p></td>- </tr>- <tr>- <td>port</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>Port is the port number of the LDAP server, e.g. 389. When not set, the-default port of the corresponding security protocol will be used, i.e. 389-for StartTLS and 636 for LDAPS. </p></td>- </tr>+ <tr>+ <td>GetIdentityProvider</td>+ <td>GET</td>+ <td>/v1/{name=idps/*}</td>+ <td></td>+ </tr>- <tr>- <td>skip_tls_verify</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>SkipTLSVerify controls whether to skip TLS certificate verification. </p></td>- </tr>+- <tr>- <td>bind_dn</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BindDN is the DN of the user to bind as a service account to perform-search requests. </p></td>- </tr>- <tr>- <td>bind_password</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BindPassword is the password of the user to bind as a service account. </p></td>- </tr>+ <tr>+ <td>ListIdentityProviders</td>+ <td>GET</td>+ <td>/v1/idps</td>+ <td></td>+ </tr>- <tr>- <td>base_dn</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". </p></td>- </tr>+- <tr>- <td>user_filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>UserFilter is the filter to search for users, e.g. "(uid=%s)". </p></td>- </tr>- <tr>- <td>security_protocol</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>SecurityProtocol is the security protocol to be used for establishing-connections with the LDAP server. It should be either StartTLS or LDAPS, and-cannot be empty. </p></td>- </tr>+ <tr>+ <td>CreateIdentityProvider</td>+ <td>POST</td>+ <td>/v1/idps</td>+ <td>identity_provider</td>+ </tr>- <tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>- <td></td>- <td><p>FieldMapping is the mapping of the user attributes returned by the LDAP-server. </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</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>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of identity providers to return. The service may return fewer than-this value.-If unspecified, at most 50 will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>+ <tr>+ <td>UpdateIdentityProvider</td>+ <td>PATCH</td>+ <td>/v1/{identity_provider.name=idps/*}</td>+ <td>identity_provider</td>+ </tr>- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `ListIdentityProviders` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIdentityProviders` must match-the call that provided the page token. </p></td>- </tr>+- <tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Show deleted identity providers if specified. </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</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>DeleteIdentityProvider</td>+ <td>DELETE</td>+ <td>/v1/{name=idps/*}</td>+ <td></td>+ </tr>- <tr>- <td>identity_providers</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td>repeated</td>- <td><p>The identity providers from the specified request. </p></td>- </tr>+- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>+ <tr>+ <td>UndeleteIdentityProvider</td>+ <td>POST</td>+ <td>/v1/{name=idps/*}:undelete</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>TestIdentityProvider</td>+ <td>POST</td>+ <td>/v1/idps/*:test</td>+ <td>*</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</h3>- <p>OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.</p>+ <div class="file-heading">+ <h2 id="v1/instance_role_service.proto">v1/instance_role_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateInstanceRoleRequest">CreateInstanceRoleRequest</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>auth_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>token_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>user_info_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>client_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>client_secret</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>scopes</td>+ <td>parent</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>skip_tls_verify</td>- <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>The parent resource where this role will be created.+Format: instances/{instance} </p></td></tr><tr>- <td>auth_style</td>- <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td></td>- <td><p> </p></td>+ <td><p>The role to create. </p></td></tr></tbody>@@ -14003,7 +12478,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</h3>+ <h3 id="bytebase.v1.DeleteInstanceRoleRequest">DeleteInstanceRoleRequest</h3><p></p>@@ -14014,10 +12489,11 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>code</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Authorize code from website. </p></td>+ <td><p>The name of the role to delete.+Format: instances/{instance}/roles/{role name} </p></td></tr></tbody>@@ -14027,8 +12503,8 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</h3>- <p>OIDCIdentityProviderConfig is the structure for OIDC identity provider config.</p>+ <h3 id="bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</h3>+ <p></p><table class="field-table">@@ -14038,52 +12514,75 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>issuer</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the role to retrieve.+Format: instances/{instance}/roles/{role name}+The role name is the unique name for the role. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.InstanceRole">InstanceRole</h3>+ <p>InstanceRole is the API message for instance role.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>client_id</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the role.+Format: instances/{instance}/roles/{role name}+The role name is the unique name for the role. </p></td></tr><tr>- <td>client_secret</td>+ <td>role_name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The role name. It's unique within the instance. </p></td></tr><tr>- <td>scopes</td>+ <td>password</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>optional</td>+ <td><p>The role password. </p></td></tr><tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>- <td></td>- <td><p> </p></td>+ <td>connection_limit</td>+ <td><a href="#int32">int32</a></td>+ <td>optional</td>+ <td><p>The connection count limit for this role. </p></td></tr><tr>- <td>skip_tls_verify</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>+ <td>valid_until</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The expiration for the role's password. </p></td></tr><tr>- <td>auth_style</td>- <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td>- <td></td>- <td><p> </p></td>+ <td>attribute</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The role attribute.+For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html+For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html </p></td></tr></tbody>@@ -14093,7 +12592,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</h3><p></p>@@ -14104,17 +12603,39 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The identity provider to test connection including uncreated. </p></td>+ <td><p>The parent, which owns this collection of roles.+Format: instances/{instance} </p></td></tr><tr>- <td>oauth2_context</td>- <td><a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>The maximum number of roles to return. The service may return fewer than+this value.+If unspecified, at most 50 roles will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListRoles` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListRoles` must match+the call that provided the page token. </p></td>+ </tr>++ <tr>+ <td>refresh</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Refresh will refresh and return the latest data. </p></td></tr></tbody>@@ -14124,14 +12645,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</h3>- <p></p>------ <h3 id="bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</h3><p></p>@@ -14142,11 +12656,18 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>+ <td>roles</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>repeated</td>+ <td><p>The roles from the specified request. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the deleted identity provider.-Format: idps/{identity_provider} </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -14156,7 +12677,7 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.UndeleteInstanceRoleRequest">UndeleteInstanceRoleRequest</h3><p></p>@@ -14167,20 +12688,11 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td></td>- <td><p>The identity provider to update.--The identity provider's `name` field is used to identify the identity provider to update.-Format: idps/{identity_provider} </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>The name of the deleted role.+Format: instances/{instance}/roles/{role name} </p></td></tr></tbody>@@ -14190,79 +12702,47 @@ Format: idps/{identity_provider} </p></td>--- <h3 id="bytebase.v1.IdentityProviderType">IdentityProviderType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>IDENTITY_PROVIDER_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>OAUTH2</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>OIDC</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>LDAP</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</h3>+ <h3 id="bytebase.v1.UpdateInstanceRoleRequest">UpdateInstanceRoleRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>OAUTH2_AUTH_STYLE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>IN_PARAMS</td>- <td>1</td>- <td><p>IN_PARAMS sends the "client_id" and "client_secret" in the POST body-as application/x-www-form-urlencoded parameters.</p></td>- </tr>-- <tr>- <td>IN_HEADER</td>- <td>2</td>- <td><p>IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.-This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>role</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td></td>+ <td><p>The role to update.++The role's `name` and `instance` field is used to identify the role to update.+Format: instances/{instance}/roles/{role name} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.IdentityProviderService">IdentityProviderService</h3>+++ <h3 id="bytebase.v1.InstanceRoleService">InstanceRoleService</h3><p></p><table class="enum-table"><thead>@@ -14271,51 +12751,44 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tbody><tr>- <td>GetIdentityProvider</td>- <td><a href="#bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>GetInstanceRole</td>+ <td><a href="#bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td><p></p></td></tr><tr>- <td>ListIdentityProviders</td>- <td><a href="#bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</a></td>- <td><a href="#bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</a></td>+ <td>ListInstanceRoles</td>+ <td><a href="#bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</a></td>+ <td><a href="#bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</a></td><td><p></p></td></tr><tr>- <td>CreateIdentityProvider</td>- <td><a href="#bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>CreateInstanceRole</td>+ <td><a href="#bytebase.v1.CreateInstanceRoleRequest">CreateInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td><p></p></td></tr><tr>- <td>UpdateIdentityProvider</td>- <td><a href="#bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>UpdateInstanceRole</td>+ <td><a href="#bytebase.v1.UpdateInstanceRoleRequest">UpdateInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td><p></p></td></tr><tr>- <td>DeleteIdentityProvider</td>- <td><a href="#bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</a></td>+ <td>DeleteInstanceRole</td>+ <td><a href="#bytebase.v1.DeleteInstanceRoleRequest">DeleteInstanceRoleRequest</a></td><td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr><tr>- <td>UndeleteIdentityProvider</td>- <td><a href="#bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>TestIdentityProvider</td>- <td><a href="#bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</a></td>+ <td>UndeleteInstanceRole</td>+ <td><a href="#bytebase.v1.UndeleteInstanceRoleRequest">UndeleteInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td><p></p></td></tr>@@ -14340,9 +12813,9 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tr>- <td>GetIdentityProvider</td>+ <td>GetInstanceRole</td><td>GET</td>- <td>/v1/{name=idps/*}</td>+ <td>/v1/{name=instances/*/roles/*}</td><td></td></tr>@@ -14350,9 +12823,9 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tr>- <td>ListIdentityProviders</td>+ <td>ListInstanceRoles</td><td>GET</td>- <td>/v1/idps</td>+ <td>/v1/{parent=instances/*}/roles</td><td></td></tr>@@ -14360,66 +12833,290 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tr>- <td>CreateIdentityProvider</td>+ <td>CreateInstanceRole</td><td>POST</td>- <td>/v1/idps</td>- <td>identity_provider</td>+ <td>/v1/{parent=instances/*}/roles</td>+ <td>role</td></tr><tr>- <td>UpdateIdentityProvider</td>+ <td>UpdateInstanceRole</td><td>PATCH</td>- <td>/v1/{identity_provider.name=idps/*}</td>- <td>identity_provider</td>+ <td>/v1/{role.name=instances/*/roles/*}</td>+ <td>role</td>+ </tr>+++++ <tr>+ <td>DeleteInstanceRole</td>+ <td>DELETE</td>+ <td>/v1/{name=instances/*/roles/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UndeleteInstanceRole</td>+ <td>POST</td>+ <td>/v1/{name=instances/*/roles/*}:undelete</td>+ <td>*</td></tr>+ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/issue_service.proto">v1/issue_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.ApprovalFlow">ApprovalFlow</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>steps</td>+ <td><a href="#bytebase.v1.ApprovalStep">ApprovalStep</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ApprovalNode">ApprovalNode</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>type</td>+ <td><a href="#bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>group_value</td>+ <td><a href="#bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>role</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: roles/{role} </p></td>+ </tr>++ <tr>+ <td>external_node_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ApprovalStep">ApprovalStep</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>type</td>+ <td><a href="#bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>nodes</td>+ <td><a href="#bytebase.v1.ApprovalNode">ApprovalNode</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ApprovalTemplate">ApprovalTemplate</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>flow</td>+ <td><a href="#bytebase.v1.ApprovalFlow">ApprovalFlow</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the creator in users/{email} format.+TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator. </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</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>DeleteIdentityProvider</td>- <td>DELETE</td>- <td>/v1/{name=idps/*}</td>- <td></td>- </tr>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the issue to add an approver.+Format: projects/{project}/issues/{issue} </p></td>+ </tr>-+ <tr>+ <td>comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</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>UndeleteIdentityProvider</td>- <td>POST</td>- <td>/v1/{name=idps/*}:undelete</td>- <td>*</td>- </tr>+ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource shared by all issues being updated.+Format: projects/{project}+If the operation spans parents, a dash (-) may be accepted as a wildcard.+We only support updating the status of databases for now. </p></td>+ </tr>-+ <tr>+ <td>issues</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The list of issues to update.+Format: projects/{project}/issues/{issue} </p></td>+ </tr>+ <tr>+ <td>status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td></td>+ <td><p>The new status. </p></td>+ </tr>- <tr>- <td>TestIdentityProvider</td>- <td>POST</td>- <td>/v1/idps/*:test</td>- <td>*</td>- </tr>+ <tr>+ <td>reason</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-</tbody></table>++-- <div class="file-heading">- <h2 id="v1/instance_role_service.proto">v1/instance_role_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+ <h3 id="bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</h3>+ <p></p>+++- <h3 id="bytebase.v1.CreateInstanceRoleRequest">CreateInstanceRoleRequest</h3>+ <h3 id="bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</h3><p></p>@@ -14433,15 +13130,15 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource where this role will be created.-Format: instances/{instance} </p></td>+ <td><p>The issue name+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>role</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>issue_comment</td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td><td></td>- <td><p>The role to create. </p></td>+ <td><p> </p></td></tr></tbody>@@ -14451,7 +13148,7 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.DeleteInstanceRoleRequest">DeleteInstanceRoleRequest</h3>+ <h3 id="bytebase.v1.CreateIssueRequest">CreateIssueRequest</h3><p></p>@@ -14462,11 +13159,18 @@ Format: instances/{instance} </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the role to delete.-Format: instances/{instance}/roles/{role name} </p></td>+ <td><p>The parent, which owns this collection of issues.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>issue</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td></td>+ <td><p>The issue to create. </p></td></tr></tbody>@@ -14476,7 +13180,7 @@ Format: instances/{instance}/roles/{role name} </p></td>- <h3 id="bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</h3>+ <h3 id="bytebase.v1.GetIssueRequest">GetIssueRequest</h3><p></p>@@ -14490,9 +13194,15 @@ Format: instances/{instance}/roles/{role name} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the role to retrieve.-Format: instances/{instance}/roles/{role name}-The role name is the unique name for the role. </p></td>+ <td><p>The name of the issue to retrieve.+Format: projects/{project}/issues/{issue} </p></td>+ </tr>++ <tr>+ <td>force</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -14502,8 +13212,55 @@ The role name is the unique name for the role. </p></td>- <h3 id="bytebase.v1.InstanceRole">InstanceRole</h3>- <p>InstanceRole is the API message for instance role.</p>+ <h3 id="bytebase.v1.GrantRequest">GrantRequest</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>role</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The requested role.+Format: roles/EXPORTER. </p></td>+ </tr>++ <tr>+ <td>user</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The user to be granted.+Format: users/{email}. </p></td>+ </tr>++ <tr>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>expiration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Issue">Issue</h3>+ <p></p><table class="field-table">@@ -14516,190 +13273,177 @@ The role name is the unique name for the role. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the role.-Format: instances/{instance}/roles/{role name}-The role name is the unique name for the role. </p></td>+ <td><p>The name of the issue.+Format: projects/{project}/issues/{issue} </p></td>+ </tr>++ <tr>+ <td>uid</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.Issue.Type">Issue.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>assignee</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: users/[email protected] </p></td>+ </tr>++ <tr>+ <td>assignee_attention</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>role_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The role name. It's unique within the instance. </p></td>+ <td>approvers</td>+ <td><a href="#bytebase.v1.Issue.Approver">Issue.Approver</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The role password. </p></td>+ <td>approval_templates</td>+ <td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>connection_limit</td>- <td><a href="#int32">int32</a></td>- <td>optional</td>- <td><p>The connection count limit for this role. </p></td>+ <td>approval_finding_done</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If the value is `false`, it means that the backend is still finding matching approval templates.+If `true`, approval_templates & approvers & approval_finding_error are available. </p></td></tr><tr>- <td>valid_until</td>+ <td>approval_finding_error</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The expiration for the role's password. </p></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>attribute</td>+ <td>subscribers</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The role attribute.-For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html-For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html </p></td>+ <td>repeated</td>+ <td><p>The subscribers.+Format: users/[email protected] </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</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>parent</td>+ <td>creator</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of roles.-Format: instances/{instance} </p></td>+ <td><p>Format: users/[email protected] </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The maximum number of roles to return. The service may return fewer than-this value.-If unspecified, at most 50 roles will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>- <td><a href="#string">string</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>A page token, received from a previous `ListRoles` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match-the call that provided the page token. </p></td>+ <td><p> </p></td></tr><tr>- <td>refresh</td>- <td><a href="#bool">bool</a></td>+ <td>plan</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Refresh will refresh and return the latest data. </p></td>+ <td><p>The plan associated with the issue.+Can be empty.+Format: projects/{project}/plans/{plan} </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</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>roles</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td>repeated</td>- <td><p>The roles from the specified request. </p></td>+ <td>rollout</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The rollout associated with the issue.+Can be empty.+Format: projects/{project}/rollouts/{rollout} </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>grant_request</td>+ <td><a href="#bytebase.v1.GrantRequest">GrantRequest</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>Used if the issue type is GRANT_REQUEST. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.UndeleteInstanceRoleRequest">UndeleteInstanceRoleRequest</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>name</td>+ <td>releasers</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the deleted role.-Format: instances/{instance}/roles/{role name} </p></td>+ <td>repeated</td>+ <td><p>The releasers of the pending stage of the issue rollout, judging+from the rollout policy.+If the policy is auto rollout, the releasers are the project owners and the issue creator.+Format:+- roles/workspaceOwner+- roles/workspaceDBA+- roles/projectOwner+- roles/projectReleaser+- users/{email} </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateInstanceRoleRequest">UpdateInstanceRoleRequest</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>role</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>risk_level</td>+ <td><a href="#bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</a></td><td></td>- <td><p>The role to update.--The role's `name` and `instance` field is used to identify the role to update.-Format: instances/{instance}/roles/{role name} </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>+ <td>task_status_count</td>+ <td><a href="#bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</a></td>+ <td>repeated</td>+ <td><p>The status count of the issue.+Keys are the following:+- NOT_STARTED+- SKIPPED+- PENDING+- RUNNING+- DONE+- FAILED+- CANCELED </p></td></tr></tbody>@@ -14709,153 +13453,38 @@ Format: instances/{instance}/roles/{role name} </p></td>------- <h3 id="bytebase.v1.InstanceRoleService">InstanceRoleService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetInstanceRole</td>- <td><a href="#bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListInstanceRoles</td>- <td><a href="#bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</a></td>- <td><a href="#bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateInstanceRole</td>- <td><a href="#bytebase.v1.CreateInstanceRoleRequest">CreateInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateInstanceRole</td>- <td><a href="#bytebase.v1.UpdateInstanceRoleRequest">UpdateInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteInstanceRole</td>- <td><a href="#bytebase.v1.DeleteInstanceRoleRequest">DeleteInstanceRoleRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UndeleteInstanceRole</td>- <td><a href="#bytebase.v1.UndeleteInstanceRoleRequest">UndeleteInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>+ <h3 id="bytebase.v1.Issue.Approver">Issue.Approver</h3>+ <p></p>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>GetInstanceRole</td>- <td>GET</td>- <td>/v1/{name=instances/*/roles/*}</td>- <td></td>- </tr>----- <tr>- <td>ListInstanceRoles</td>- <td>GET</td>- <td>/v1/{parent=instances/*}/roles</td>- <td></td>- </tr>----- <tr>- <td>CreateInstanceRole</td>- <td>POST</td>- <td>/v1/{parent=instances/*}/roles</td>- <td>role</td>- </tr>----- <tr>- <td>UpdateInstanceRole</td>- <td>PATCH</td>- <td>/v1/{role.name=instances/*/roles/*}</td>- <td>role</td>- </tr>----- <tr>- <td>DeleteInstanceRole</td>- <td>DELETE</td>- <td>/v1/{name=instances/*/roles/*}</td>- <td></td>- </tr>--+ <tr>+ <td>status</td>+ <td><a href="#bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</a></td>+ <td></td>+ <td><p>The new status. </p></td>+ </tr>- <tr>- <td>UndeleteInstanceRole</td>- <td>POST</td>- <td>/v1/{name=instances/*/roles/*}:undelete</td>- <td>*</td>- </tr>+ <tr>+ <td>principal</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: users/[email protected] </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/issue_service.proto">v1/issue_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.ApprovalFlow">ApprovalFlow</h3>+ <h3 id="bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</h3><p></p>@@ -14866,9 +13495,16 @@ Format: instances/{instance}/roles/{role name} </p></td><tbody><tr>- <td>steps</td>- <td><a href="#bytebase.v1.ApprovalStep">ApprovalStep</a></td>- <td>repeated</td>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#int32">int32</a></td>+ <td></td><td><p> </p></td></tr>@@ -14879,7 +13515,7 @@ Format: instances/{instance}/roles/{role name} </p></td>- <h3 id="bytebase.v1.ApprovalNode">ApprovalNode</h3>+ <h3 id="bytebase.v1.IssueComment">IssueComment</h3><p></p>@@ -14890,29 +13526,36 @@ Format: instances/{instance}/roles/{role name} </p></td><tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</a></td>+ <td>uid</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>group_value</td>- <td><a href="#bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</a></td>+ <td>comment</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>role</td>+ <td>payload</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: roles/{role} </p></td>+ <td><p>TODO: use struct message instead. </p></td></tr><tr>- <td>external_node_id</td>- <td><a href="#string">string</a></td>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>@@ -14924,7 +13567,7 @@ Format: instances/{instance}/roles/{role name} </p></td>- <h3 id="bytebase.v1.ApprovalStep">ApprovalStep</h3>+ <h3 id="bytebase.v1.ListIssuesRequest">ListIssuesRequest</h3><p></p>@@ -14935,17 +13578,47 @@ Format: instances/{instance}/roles/{role name} </p></td><tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The parent, which owns this collection of issues.+Format: projects/{project}+Use "projects/-" to list all issues from all projects. </p></td></tr><tr>- <td>nodes</td>- <td><a href="#bytebase.v1.ApprovalNode">ApprovalNode</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of issues to return. The service may return fewer than+this value.+If unspecified, at most 50 issues will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListIssues` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListIssues` must match+the call that provided the page token. </p></td>+ </tr>++ <tr>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Filter is used to filter issues returned in the list. </p></td>+ </tr>++ <tr>+ <td>query</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Query is the query statement. </p></td></tr></tbody>@@ -14955,7 +13628,7 @@ Format: instances/{instance}/roles/{role name} </p></td>- <h3 id="bytebase.v1.ApprovalTemplate">ApprovalTemplate</h3>+ <h3 id="bytebase.v1.ListIssuesResponse">ListIssuesResponse</h3><p></p>@@ -14966,32 +13639,50 @@ Format: instances/{instance}/roles/{role name} </p></td><tbody><tr>- <td>flow</td>- <td><a href="#bytebase.v1.ApprovalFlow">ApprovalFlow</a></td>- <td></td>- <td><p> </p></td>+ <td>issues</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>repeated</td>+ <td><p>The issues from the specified request. </p></td></tr><tr>- <td>title</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.RejectIssueRequest">RejectIssueRequest</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>description</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the issue to add an rejection.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>creator</td>+ <td>comment</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the creator in users/{email} format.-TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator. </p></td>+ <td><p> </p></td></tr></tbody>@@ -15001,7 +13692,7 @@ TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the- <h3 id="bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</h3>+ <h3 id="bytebase.v1.RequestIssueRequest">RequestIssueRequest</h3><p></p>@@ -15015,7 +13706,7 @@ TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the issue to add an approver.+ <td><p>The name of the issue to request a issue.Format: projects/{project}/issues/{issue} </p></td></tr>@@ -15033,7 +13724,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</h3>+ <h3 id="bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</h3><p></p>@@ -15047,32 +13738,44 @@ Format: projects/{project}/issues/{issue} </p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource shared by all issues being updated.+ <td><p>The parent, which owns this collection of issues.Format: projects/{project}-If the operation spans parents, a dash (-) may be accepted as a wildcard.-We only support updating the status of databases for now. </p></td>+Use "projects/-" to list all issues from all projects. </p></td></tr><tr>- <td>issues</td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of issues to return. The service may return fewer than+this value.+If unspecified, at most 50 issues will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The list of issues to update.-Format: projects/{project}/issues/{issue} </p></td>+ <td></td>+ <td><p>A page token, received from a previous `ListIssues` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListIssues` must match+the call that provided the page token. </p></td></tr><tr>- <td>status</td>- <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td>filter</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The new status. </p></td>+ <td><p>Filter is used to filter issues returned in the list. </p></td></tr><tr>- <td>reason</td>+ <td>query</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Query is the query statement. </p></td></tr></tbody>@@ -15082,14 +13785,39 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</h3>+ <h3 id="bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</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>issues</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>repeated</td>+ <td><p>The issues from the specified request. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>++ </tbody>+ </table>++- <h3 id="bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</h3>+ <h3 id="bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</h3><p></p>@@ -15114,6 +13842,13 @@ Format: projects/{project}/issues/{issue} </p></td><td><p> </p></td></tr>+ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>+</tbody></table>@@ -15121,7 +13856,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.CreateIssueRequest">CreateIssueRequest</h3>+ <h3 id="bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</h3><p></p>@@ -15132,18 +13867,20 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>issue</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td><td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project} </p></td>+ <td><p>The issue to update.++The issue's `name` field is used to identify the issue to update.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>issue</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>The issue to create. </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -15153,394 +13890,471 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.GetIssueRequest">GetIssueRequest</h3>+++ <h3 id="bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</h3>+ <p>The predefined user groups are:</p><p>- WORKSPACE_OWNER</p><p>- WORKSPACE_DBA</p><p>- PROJECT_OWNER</p><p>- PROJECT_MEMBER</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GROUP_VALUE_UNSPECIFILED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WORKSPACE_OWNER</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WORKSPACE_DBA</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PROJECT_OWNER</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PROJECT_MEMBER</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</h3>+ <p>Type of the ApprovalNode.</p><p>type determines who should approve this node.</p><p>ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.</p><p>See GroupValue below for the predefined user groups.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ANY_IN_GROUP</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</h3>+ <p>Type of the ApprovalStep</p><p>ALL means every node must be approved to proceed.</p><p>ANY means approving any node will proceed.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ALL</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ANY</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PENDING</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>APPROVED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REJECTED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>RISK_LEVEL_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>LOW</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MODERATE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>HIGH</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Issue.Type">Issue.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_CHANGE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GRANT_REQUEST</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_DATA_EXPORT</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.IssueStatus">IssueStatus</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>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the issue to retrieve.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>force</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>----+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ISSUE_STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OPEN</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <h3 id="bytebase.v1.GrantRequest">GrantRequest</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>role</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The requested role.-Format: roles/EXPORTER. </p></td>- </tr>-- <tr>- <td>user</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The user to be granted.-Format: users/{email}. </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>expiration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>-+-- <h3 id="bytebase.v1.Issue">Issue</h3>+ <h3 id="bytebase.v1.IssueService">IssueService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetIssue</td>+ <td><a href="#bytebase.v1.GetIssueRequest">GetIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateIssue</td>+ <td><a href="#bytebase.v1.CreateIssueRequest">CreateIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListIssues</td>+ <td><a href="#bytebase.v1.ListIssuesRequest">ListIssuesRequest</a></td>+ <td><a href="#bytebase.v1.ListIssuesResponse">ListIssuesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SearchIssues</td>+ <td><a href="#bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</a></td>+ <td><a href="#bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</a></td>+ <td><p>Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.</p></td>+ </tr>++ <tr>+ <td>UpdateIssue</td>+ <td><a href="#bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateIssueComment</td>+ <td><a href="#bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</a></td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateIssueComment</td>+ <td><a href="#bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</a></td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BatchUpdateIssuesStatus</td>+ <td><a href="#bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</a></td>+ <td><a href="#bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ApproveIssue</td>+ <td><a href="#bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RejectIssue</td>+ <td><a href="#bytebase.v1.RejectIssueRequest">RejectIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RequestIssue</td>+ <td><a href="#bytebase.v1.RequestIssueRequest">RequestIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the issue.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>uid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Issue.Type">Issue.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>status</td>- <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>GetIssue</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/issues/*}</td>+ <td></td>+ </tr>- <tr>- <td>assignee</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>+- <tr>- <td>assignee_attention</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>approvers</td>- <td><a href="#bytebase.v1.Issue.Approver">Issue.Approver</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>+ <tr>+ <td>CreateIssue</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/issues</td>+ <td>issue</td>+ </tr>- <tr>- <td>approval_templates</td>- <td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>+- <tr>- <td>approval_finding_done</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If the value is `false`, it means that the backend is still finding matching approval templates.-If `true`, approval_templates & approvers & approval_finding_error are available. </p></td>- </tr>- <tr>- <td>approval_finding_error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>ListIssues</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/issues</td>+ <td></td>+ </tr>- <tr>- <td>subscribers</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The subscribers.-Format: users/[email protected] </p></td>- </tr>+- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>SearchIssues</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/issues:search</td>+ <td></td>+ </tr>- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>plan</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The plan associated with the issue.-Can be empty.-Format: projects/{project}/plans/{plan} </p></td>- </tr>- <tr>- <td>rollout</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The rollout associated with the issue.-Can be empty.-Format: projects/{project}/rollouts/{rollout} </p></td>- </tr>+ <tr>+ <td>UpdateIssue</td>+ <td>PATCH</td>+ <td>/v1/{issue.name=projects/*/issues/*}</td>+ <td>issue</td>+ </tr>- <tr>- <td>grant_request</td>- <td><a href="#bytebase.v1.GrantRequest">GrantRequest</a></td>- <td></td>- <td><p>Used if the issue type is GRANT_REQUEST. </p></td>- </tr>+- <tr>- <td>releasers</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The releasers of the pending stage of the issue rollout, judging-from the rollout policy.-If the policy is auto rollout, the releasers are the project owners and the issue creator.-Format:-- roles/workspaceOwner-- roles/workspaceDBA-- roles/projectOwner-- roles/projectReleaser-- users/{email} </p></td>- </tr>- <tr>- <td>risk_level</td>- <td><a href="#bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>CreateIssueComment</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/issues/*}:comment</td>+ <td>issue_comment</td>+ </tr>- <tr>- <td>task_status_count</td>- <td><a href="#bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</a></td>- <td>repeated</td>- <td><p>The status count of the issue.-Keys are the following:-- NOT_STARTED-- SKIPPED-- PENDING-- RUNNING-- DONE-- FAILED-- CANCELED </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.Issue.Approver">Issue.Approver</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>status</td>- <td><a href="#bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</a></td>- <td></td>- <td><p>The new status. </p></td>- </tr>+ <tr>+ <td>UpdateIssueComment</td>+ <td>PATCH</td>+ <td>/v1/{parent=projects/*/issues/*}:comment</td>+ <td>issue_comment</td>+ </tr>- <tr>- <td>principal</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</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>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>BatchUpdateIssuesStatus</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/issues:batchUpdateStatus</td>+ <td>*</td>+ </tr>- <tr>- <td>value</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.IssueComment">IssueComment</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>uid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>ApproveIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:approve</td>+ <td>*</td>+ </tr>++- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>payload</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>TODO: use struct message instead. </p></td>- </tr>+ <tr>+ <td>RejectIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:reject</td>+ <td>*</td>+ </tr>- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>RequestIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:request</td>+ <td>*</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.ListIssuesRequest">ListIssuesRequest</h3>+ <div class="file-heading">+ <h2 id="v1/logging_service.proto">v1/logging_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.ExportLogsRequest">ExportLogsRequest</h3><p></p>@@ -15551,47 +14365,45 @@ Keys are the following:<tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project}-Use "projects/-" to list all issues from all projects. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of issues to return. The service may return fewer than-this value.-If unspecified, at most 50 issues will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListIssues` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIssues` must match-the call that provided the page token. </p></td>+ <td><p>Consistent with filter and order by in ListLogs.+filter is the filter to apply on the list logs request,+follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+The field only support in filter:+- creator, example:+ - creator = "users/{email}"+- resource, example:+ - resource = "projects/{project resource id}"+- level, example:+ - level = "INFO"+ - level = "ERROR | WARN"+- action, example:+ - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE"+- create_time, example:+ - create_time <= "2022-01-01T12:00:00.000Z"+ - create_time >= "2022-01-01T12:00:00.000Z"+For example:+List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' </p></td></tr><tr>- <td>filter</td>+ <td>order_by</td><td><a href="#string">string</a></td><td></td>- <td><p>Filter is used to filter issues returned in the list. </p></td>+ <td><p>The order by of the log.+Only support order by create_time.+For example:+ - order_by = "create_time asc"+ - order_by = "create_time desc" </p></td></tr><tr>- <td>query</td>- <td><a href="#string">string</a></td>+ <td>format</td>+ <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td><td></td>- <td><p>Query is the query statement. </p></td>+ <td><p>The export format. </p></td></tr></tbody>@@ -15601,7 +14413,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListIssuesResponse">ListIssuesResponse</h3>+ <h3 id="bytebase.v1.ExportLogsResponse">ExportLogsResponse</h3><p></p>@@ -15612,18 +14424,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>issues</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td>repeated</td>- <td><p>The issues from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>content</td>+ <td><a href="#bytes">bytes</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p> </p></td></tr></tbody>@@ -15633,7 +14437,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.RejectIssueRequest">RejectIssueRequest</h3>+ <h3 id="bytebase.v1.GetLogRequest">GetLogRequest</h3><p></p>@@ -15647,15 +14451,8 @@ If this field is omitted, there are no subsequent pages. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the issue to add an rejection.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the log to retrieve.+Format: logs/{uid} </p></td></tr></tbody>@@ -15665,7 +14462,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.RequestIssueRequest">RequestIssueRequest</h3>+ <h3 id="bytebase.v1.ListLogsRequest">ListLogsRequest</h3><p></p>@@ -15676,53 +14473,47 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the issue to request a issue.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>comment</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>filter is the filter to apply on the list logs request,+follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+The field only support in filter:+- creator, example:+ - creator = "users/{email}"+- resource, example:+ - resource = "projects/{project resource id}"+- level, example:+ - level = "INFO"+ - level = "ERROR | WARN"+- action, example:+ - action = "ACTION_MEMBER_CREATE"+ - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE"+- create_time, example:+ - create_time <= "2022-01-01T12:00:00.000Z"+ - create_time >= "2022-01-01T12:00:00.000Z"+For example:+List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</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>parent</td>+ <td>order_by</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project}-Use "projects/-" to list all issues from all projects. </p></td>+ <td><p>The order by of the log.+Only support order by create_time.+For example:+ - order_by = "create_time asc"+ - order_by = "create_time desc" </p></td></tr><tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>The maximum number of issues to return. The service may return fewer than-this value.-If unspecified, at most 50 issues will be returned.+ <td><p>Not used. The maximum number of logs to return.+The service may return fewer than this value.+If unspecified, at most 100 log entries will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>@@ -15730,25 +14521,8 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListIssues` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIssues` must match-the call that provided the page token. </p></td>- </tr>-- <tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Filter is used to filter issues returned in the list. </p></td>- </tr>-- <tr>- <td>query</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Query is the query statement. </p></td>+ <td><p>Not used. A page token, received from a previous `ListLogs` call.+Provide this to retrieve the subsequent page. </p></td></tr></tbody>@@ -15758,7 +14532,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</h3>+ <h3 id="bytebase.v1.ListLogsResponse">ListLogsResponse</h3><p></p>@@ -15769,18 +14543,19 @@ the call that provided the page token. </p></td><tbody><tr>- <td>issues</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>log_entities</td>+ <td><a href="#bytebase.v1.LogEntity">LogEntity</a></td><td>repeated</td>- <td><p>The issues from the specified request. </p></td>+ <td><p>The list of log entities. </p></td></tr><tr><td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>A token to retrieve next page of log entities.+Pass this value in the page_token field in the subsequent call to `ListLogs` method+to retrieve the next page of log entities. </p></td></tr></tbody>@@ -15790,7 +14565,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</h3>+ <h3 id="bytebase.v1.LogEntity">LogEntity</h3><p></p>@@ -15801,59 +14576,75 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the log.+Format: logs/{uid} </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The creator of the log entity.+Format: users/{email} </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The issue name-Format: projects/{project}/issues/{issue} </p></td>+ <td><p> </p></td></tr><tr>- <td>issue_comment</td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td>action</td>+ <td><a href="#bytebase.v1.LogEntity.Action">LogEntity.Action</a></td><td></td><td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>level</td>+ <td><a href="#bytebase.v1.LogEntity.Level">LogEntity.Level</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</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>resource</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE".+Format:+For ACTION_MEMBER_*: users/{email}+For ACTION_ISSUE_*: issues/{issue uid}+For ACTION_PIPELINE_*: pipelines/{pipeline uid}+For ACTION_PROJECT_*: projects/{project resource id}+For ACTION_DATABASE_*: instances/{instance resource id} </p></td>+ </tr><tr>- <td>issue</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>payload</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The issue to update.--The issue's `name` field is used to identify the issue to update.-Format: projects/{project}/issues/{issue} </p></td>+ <td><p>The payload of the log entity.+TODO: use oneof </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>comment</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr></tbody>@@ -15865,8 +14656,8 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</h3>- <p>The predefined user groups are:</p><p>- WORKSPACE_OWNER</p><p>- WORKSPACE_DBA</p><p>- PROJECT_OWNER</p><p>- PROJECT_MEMBER</p>+ <h3 id="bytebase.v1.LogEntity.Action">LogEntity.Action</h3>+ <p></p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -15874,196 +14665,159 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>GROUP_VALUE_UNSPECIFILED</td>+ <td>ACTION_UNSPECIFIED</td><td>0</td>- <td><p></p></td>+ <td><p>In worksapce resource only.</p></td></tr><tr>- <td>WORKSPACE_OWNER</td>+ <td>ACTION_MEMBER_CREATE</td><td>1</td>- <td><p></p></td>+ <td><p>Member related activity types.+Enum value 1 - 20++ACTION_MEMBER_CREATE is the type for creating a new member.</p></td></tr><tr>- <td>WORKSPACE_DBA</td>+ <td>ACTION_MEMBER_ROLE_UPDATE</td><td>2</td>- <td><p></p></td>+ <td><p>ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role.</p></td></tr><tr>- <td>PROJECT_OWNER</td>+ <td>ACTION_MEMBER_ACTIVATE</td><td>3</td>- <td><p></p></td>+ <td><p>ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members.</p></td></tr><tr>- <td>PROJECT_MEMBER</td>+ <td>ACTION_MEMBER_DEACTIVE</td><td>4</td>- <td><p></p></td>+ <td><p>ACTION_MEMBER_DEACTIVE is the type for deactiving members.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</h3>- <p>Type of the ApprovalNode.</p><p>type determines who should approve this node.</p><p>ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.</p><p>See GroupValue below for the predefined user groups.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>ACTION_ISSUE_CREATE</td>+ <td>21</td>+ <td><p>Issue related activity types.+Enum value 21 - 40++ACTION_ISSUE_CREATE is the type for creating a new issue.</p></td></tr><tr>- <td>ANY_IN_GROUP</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_ISSUE_COMMENT_CREATE</td>+ <td>22</td>+ <td><p>ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</h3>- <p>Type of the ApprovalStep</p><p>ALL means every node must be approved to proceed.</p><p>ANY means approving any node will proceed.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>ACTION_ISSUE_FIELD_UPDATE</td>+ <td>23</td>+ <td><p>ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field.</p></td></tr><tr>- <td>ALL</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_ISSUE_STATUS_UPDATE</td>+ <td>24</td>+ <td><p>ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status.</p></td></tr><tr>- <td>ANY</td>- <td>2</td>- <td><p></p></td>+ <td>ACTION_ISSUE_APPROVAL_NOTIFY</td>+ <td>25</td>+ <td><p>ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_STAGE_STATUS_UPDATE</td>+ <td>31</td>+ <td><p>ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td></tr><tr>- <td>PENDING</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_STATUS_UPDATE</td>+ <td>32</td>+ <td><p>ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td></tr><tr>- <td>APPROVED</td>- <td>2</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_FILE_COMMIT</td>+ <td>33</td>+ <td><p>ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement.</p></td></tr><tr>- <td>REJECTED</td>- <td>3</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_STATEMENT_UPDATE</td>+ <td>34</td>+ <td><p>ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>RISK_LEVEL_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE</td>+ <td>35</td>+ <td><p>ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time.</p></td></tr><tr>- <td>LOW</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE</td>+ <td>36</td>+ <td><p>ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td></tr><tr>- <td>MODERATE</td>- <td>2</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_PRIOR_BACKUP</td>+ <td>37</td>+ <td><p>ACTION_PIPELINE_TASK_PRIOR_BACKUP represents the pipeline task prior backup activity.</p></td></tr><tr>- <td>HIGH</td>- <td>3</td>- <td><p></p></td>+ <td>ACTION_PROJECT_REPOSITORY_PUSH</td>+ <td>41</td>+ <td><p>Project related activity types.+Enum value 41 - 60++ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.Issue.Type">Issue.Type</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>ACTION_PROJECT_MEMBER_CREATE</td>+ <td>42</td>+ <td><p>ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project.</p></td>+ </tr><tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>ACTION_PROJECT_MEMBER_DELETE</td>+ <td>43</td>+ <td><p>ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project.</p></td></tr><tr>- <td>DATABASE_CHANGE</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_PROJECT_DATABASE_TRANSFER</td>+ <td>45</td>+ <td><p>ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another.</p></td></tr><tr>- <td>GRANT_REQUEST</td>- <td>2</td>- <td><p></p></td>+ <td>ACTION_DATABASE_SQL_EDITOR_QUERY</td>+ <td>61</td>+ <td><p>Database related activity types.+Enum value 61 - 80++ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query.</p></td></tr><tr>- <td>DATABASE_DATA_EXPORT</td>- <td>3</td>- <td><p></p></td>+ <td>ACTION_DATABASE_SQL_EXPORT</td>+ <td>62</td>+ <td><p>ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL.</p></td></tr></tbody></table>- <h3 id="bytebase.v1.IssueStatus">IssueStatus</h3>+ <h3 id="bytebase.v1.LogEntity.Level">LogEntity.Level</h3><p></p><table class="enum-table"><thead>@@ -16072,27 +14826,27 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>ISSUE_STATUS_UNSPECIFIED</td>+ <td>LEVEL_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>OPEN</td>+ <td>LEVEL_INFO</td><td>1</td>- <td><p></p></td>+ <td><p>LEVEL_INFO is the type for information.</p></td></tr><tr>- <td>DONE</td>+ <td>LEVEL_WARNING</td><td>2</td>- <td><p></p></td>+ <td><p>LEVEL_WARNING is the type for warning.</p></td></tr><tr>- <td>CANCELED</td>+ <td>LEVEL_ERROR</td><td>3</td>- <td><p></p></td>+ <td><p>LEVEL_ERROR is the type for error.</p></td></tr></tbody>@@ -16102,7 +14856,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.IssueService">IssueService</h3>+ <h3 id="bytebase.v1.LoggingService">LoggingService</h3><p></p><table class="enum-table"><thead>@@ -16111,79 +14865,23 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>GetIssue</td>- <td><a href="#bytebase.v1.GetIssueRequest">GetIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateIssue</td>- <td><a href="#bytebase.v1.CreateIssueRequest">CreateIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListIssues</td>- <td><a href="#bytebase.v1.ListIssuesRequest">ListIssuesRequest</a></td>- <td><a href="#bytebase.v1.ListIssuesResponse">ListIssuesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>SearchIssues</td>- <td><a href="#bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</a></td>- <td><a href="#bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</a></td>- <td><p>Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.</p></td>- </tr>-- <tr>- <td>UpdateIssue</td>- <td><a href="#bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateIssueComment</td>- <td><a href="#bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</a></td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateIssueComment</td>- <td><a href="#bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</a></td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchUpdateIssuesStatus</td>- <td><a href="#bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</a></td>- <td><a href="#bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ApproveIssue</td>- <td><a href="#bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>ListLogs</td>+ <td><a href="#bytebase.v1.ListLogsRequest">ListLogsRequest</a></td>+ <td><a href="#bytebase.v1.ListLogsResponse">ListLogsResponse</a></td><td><p></p></td></tr><tr>- <td>RejectIssue</td>- <td><a href="#bytebase.v1.RejectIssueRequest">RejectIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>GetLog</td>+ <td><a href="#bytebase.v1.GetLogRequest">GetLogRequest</a></td>+ <td><a href="#bytebase.v1.LogEntity">LogEntity</a></td><td><p></p></td></tr><tr>- <td>RequestIssue</td>- <td><a href="#bytebase.v1.RequestIssueRequest">RequestIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>ExportLogs</td>+ <td><a href="#bytebase.v1.ExportLogsRequest">ExportLogsRequest</a></td>+ <td><a href="#bytebase.v1.ExportLogsResponse">ExportLogsResponse</a></td><td><p></p></td></tr>@@ -16208,9 +14906,9 @@ Format: projects/{project}/issues/{issue} </p></td><tr>- <td>GetIssue</td>+ <td>ListLogs</td><td>GET</td>- <td>/v1/{name=projects/*/issues/*}</td>+ <td>/v1/logs:search</td><td></td></tr>@@ -16218,116 +14916,426 @@ Format: projects/{project}/issues/{issue} </p></td><tr>- <td>CreateIssue</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/issues</td>- <td>issue</td>+ <td>GetLog</td>+ <td>GET</td>+ <td>/v1/{name=logs/*}</td>+ <td></td></tr><tr>- <td>ListIssues</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/issues</td>- <td></td>+ <td>ExportLogs</td>+ <td>POST</td>+ <td>/v1/logs:export</td>+ <td>*</td></tr>+ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/org_policy_service.proto">v1/org_policy_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</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>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource where this instance will be created.+Workspace resource name: "".+Environment resource name: environments/environment-id.+Instance resource name: instances/instance-id.+Database resource name: instances/instance-id/databases/database-name. </p></td>+ </tr>++ <tr>+ <td>policy</td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td></td>+ <td><p>The policy to create. </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The policy's `name` field is used to identify the instance to update.+Format: {resource name}/policies/{policy type}+Workspace resource name: "".+Environment resource name: environments/environment-id.+Instance resource name: instances/instance-id.+Database resource name: instances/instance-id/databases/database-name. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</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>active</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetPolicyRequest">GetPolicyRequest</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the policy to retrieve.+Format: {resource type}/{resource id}/policies/{policy type} </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</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>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent, which owns this collection of policies.+Format: {resource type}/{resource id} </p></td>+ </tr>- <tr>- <td>SearchIssues</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/issues:search</td>- <td></td>- </tr>+ <tr>+ <td>policy_type</td>+ <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of policies to return. The service may return fewer than+this value.+If unspecified, at most 50 policies will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>+ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `GetPolicies` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `GetPolicies` must match+the call that provided the page token. </p></td>+ </tr>- <tr>- <td>UpdateIssue</td>- <td>PATCH</td>- <td>/v1/{issue.name=projects/*/issues/*}</td>- <td>issue</td>- </tr>+ <tr>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Show deleted policies if specified. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</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>policies</td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td>repeated</td>+ <td><p>The policies from the specified request. </p></td>+ </tr>- <tr>- <td>CreateIssueComment</td>- <td>POST</td>- <td>/v1/{parent=projects/*/issues/*}:comment</td>- <td>issue_comment</td>- </tr>+ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.MaskData">MaskData</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>schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>UpdateIssueComment</td>- <td>PATCH</td>- <td>/v1/{parent=projects/*/issues/*}:comment</td>- <td>issue_comment</td>- </tr>+ <tr>+ <td>table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>column</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>masking_level</td>+ <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>BatchUpdateIssuesStatus</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/issues:batchUpdateStatus</td>- <td>*</td>- </tr>+ <tr>+ <td>full_masking_algorithm_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>partial_masking_algorithm_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.MaskingExceptionPolicy">MaskingExceptionPolicy</h3>+ <p>MaskingExceptionPolicy is the allowlist of users who can access sensitive data.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>- <tr>- <td>ApproveIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:approve</td>- <td>*</td>- </tr>+ <tr>+ <td>masking_exceptions</td>+ <td><a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException">MaskingExceptionPolicy.MaskingException</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.MaskingExceptionPolicy.MaskingException">MaskingExceptionPolicy.MaskingException</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>action</td>+ <td><a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException.Action">MaskingExceptionPolicy.MaskingException.Action</a></td>+ <td></td>+ <td><p>action is the action that the user can access sensitive data. </p></td>+ </tr>- <tr>- <td>RejectIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:reject</td>- <td>*</td>- </tr>+ <tr>+ <td>masking_level</td>+ <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>+ <td></td>+ <td><p>Level is the masking level that the user can access sensitive data. </p></td>+ </tr>-+ <tr>+ <td>member</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Member is the principal who bind to this exception policy instance.++* `user:{emailid}`: An email address that represents a specific Bytebase account. For example, `[email protected]`. </p></td>+ </tr>+ <tr>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p>The condition that is associated with this exception policy instance. </p></td>+ </tr>- <tr>- <td>RequestIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:request</td>- <td>*</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.MaskingPolicy">MaskingPolicy</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>mask_data</td>+ <td><a href="#bytebase.v1.MaskData">MaskData</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>-</tbody></table>++-- <div class="file-heading">- <h2 id="v1/logging_service.proto">v1/logging_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+ <h3 id="bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</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>rules</td>+ <td><a href="#bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.ExportLogsRequest">ExportLogsRequest</h3>+ <h3 id="bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</h3><p></p>@@ -16338,45 +15346,24 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>filter</td>+ <td>id</td><td><a href="#string">string</a></td><td></td>- <td><p>Consistent with filter and order by in ListLogs.-filter is the filter to apply on the list logs request,-follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.-The field only support in filter:-- creator, example:- - creator = "users/{email}"-- resource, example:- - resource = "projects/{project resource id}"-- level, example:- - level = "INFO"- - level = "ERROR | WARN"-- action, example:- - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE"-- create_time, example:- - create_time <= "2022-01-01T12:00:00.000Z"- - create_time >= "2022-01-01T12:00:00.000Z"-For example:-List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' </p></td>+ <td><p>A unique identifier for a node in UUID format. </p></td></tr><tr>- <td>order_by</td>- <td><a href="#string">string</a></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>The order by of the log.-Only support order by create_time.-For example:- - order_by = "create_time asc"- - order_by = "create_time desc" </p></td>+ <td><p> </p></td></tr><tr>- <td>format</td>- <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>+ <td>masking_level</td>+ <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td><td></td>- <td><p>The export format. </p></td>+ <td><p> </p></td></tr></tbody>@@ -16386,7 +15373,7 @@ For example:- <h3 id="bytebase.v1.ExportLogsResponse">ExportLogsResponse</h3>+ <h3 id="bytebase.v1.Policy">Policy</h3><p></p>@@ -16397,12 +15384,122 @@ For example:<tbody><tr>- <td>content</td>- <td><a href="#bytes">bytes</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the policy.+Format: {resource name}/policies/{policy type}+Workspace resource name: "".+Environment resource name: environments/environment-id.+Instance resource name: instances/instance-id.+Database resource name: instances/instance-id/databases/database-name. </p></td>+ </tr>++ <tr>+ <td>uid</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td>+ </tr>++ <tr>+ <td>inherit_from_parent</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>workspace_iam_policy</td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>rollout_policy</td>+ <td><a href="#bytebase.v1.RolloutPolicy">RolloutPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>masking_policy</td>+ <td><a href="#bytebase.v1.MaskingPolicy">MaskingPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>sql_review_policy</td>+ <td><a href="#bytebase.v1.SQLReviewPolicy">SQLReviewPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>slow_query_policy</td>+ <td><a href="#bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>disable_copy_data_policy</td>+ <td><a href="#bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>masking_rule_policy</td>+ <td><a href="#bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>masking_exception_policy</td>+ <td><a href="#bytebase.v1.MaskingExceptionPolicy">MaskingExceptionPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>restrict_issue_creation_for_sql_review_policy</td>+ <td><a href="#bytebase.v1.RestrictIssueCreationForSQLReviewPolicy">RestrictIssueCreationForSQLReviewPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>enforce</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>+ <tr>+ <td>resource_type</td>+ <td><a href="#bytebase.v1.PolicyResourceType">PolicyResourceType</a></td>+ <td></td>+ <td><p>The resource type for the policy. </p></td>+ </tr>++ <tr>+ <td>resource_uid</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The system-assigned, unique identifier for the resource. </p></td>+ </tr>+</tbody></table>@@ -16410,7 +15507,7 @@ For example:- <h3 id="bytebase.v1.GetLogRequest">GetLogRequest</h3>+ <h3 id="bytebase.v1.RestrictIssueCreationForSQLReviewPolicy">RestrictIssueCreationForSQLReviewPolicy</h3><p></p>@@ -16421,11 +15518,10 @@ For example:<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>disallow</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The name of the log to retrieve.-Format: logs/{uid} </p></td>+ <td><p> </p></td></tr></tbody>@@ -16435,7 +15531,7 @@ Format: logs/{uid} </p></td>- <h3 id="bytebase.v1.ListLogsRequest">ListLogsRequest</h3>+ <h3 id="bytebase.v1.RolloutPolicy">RolloutPolicy</h3><p></p>@@ -16446,56 +15542,32 @@ Format: logs/{uid} </p></td><tbody><tr>- <td>filter</td>- <td><a href="#string">string</a></td>+ <td>automatic</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>filter is the filter to apply on the list logs request,-follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.-The field only support in filter:-- creator, example:- - creator = "users/{email}"-- resource, example:- - resource = "projects/{project resource id}"-- level, example:- - level = "INFO"- - level = "ERROR | WARN"-- action, example:- - action = "ACTION_MEMBER_CREATE"- - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE"-- create_time, example:- - create_time <= "2022-01-01T12:00:00.000Z"- - create_time >= "2022-01-01T12:00:00.000Z"-For example:-List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' </p></td>+ <td><p> </p></td></tr><tr>- <td>order_by</td>+ <td>workspace_roles</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The order by of the log.-Only support order by create_time.-For example:- - order_by = "create_time asc"- - order_by = "create_time desc" </p></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>Not used. The maximum number of logs to return.-The service may return fewer than this value.-If unspecified, at most 100 log entries will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td>project_roles</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>issue_roles</td><td><a href="#string">string</a></td>- <td></td>- <td><p>Not used. A page token, received from a previous `ListLogs` call.-Provide this to retrieve the subsequent page. </p></td>+ <td>repeated</td>+ <td><p>roles/LAST_APPROVER+roles/CREATOR </p></td></tr></tbody>@@ -16505,7 +15577,7 @@ Provide this to retrieve the subsequent page. </p></td>- <h3 id="bytebase.v1.ListLogsResponse">ListLogsResponse</h3>+ <h3 id="bytebase.v1.SQLReviewPolicy">SQLReviewPolicy</h3><p></p>@@ -16516,19 +15588,17 @@ Provide this to retrieve the subsequent page. </p></td><tbody><tr>- <td>log_entities</td>- <td><a href="#bytebase.v1.LogEntity">LogEntity</a></td>- <td>repeated</td>- <td><p>The list of log entities. </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token to retrieve next page of log entities.-Pass this value in the page_token field in the subsequent call to `ListLogs` method-to retrieve the next page of log entities. </p></td>+ <td>rules</td>+ <td><a href="#bytebase.v1.SQLReviewRule">SQLReviewRule</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -16538,7 +15608,7 @@ to retrieve the next page of log entities. </p></td>- <h3 id="bytebase.v1.LogEntity">LogEntity</h3>+ <h3 id="bytebase.v1.SQLReviewRule">SQLReviewRule</h3><p></p>@@ -16549,75 +15619,108 @@ to retrieve the next page of log entities. </p></td><tbody><tr>- <td>name</td>+ <td>type</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the log.-Format: logs/{uid} </p></td>+ <td><p> </p></td></tr><tr>- <td>creator</td>- <td><a href="#string">string</a></td>+ <td>level</td>+ <td><a href="#bytebase.v1.SQLReviewRuleLevel">SQLReviewRuleLevel</a></td><td></td>- <td><p>The creator of the log entity.-Format: users/{email} </p></td>+ <td><p> </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>payload</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td><td></td><td><p> </p></td></tr><tr>- <td>action</td>- <td><a href="#bytebase.v1.LogEntity.Action">LogEntity.Action</a></td>+ <td>comment</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</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>level</td>- <td><a href="#bytebase.v1.LogEntity.Level">LogEntity.Level</a></td>+ <td>active</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</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>resource</td>- <td><a href="#string">string</a></td>+ <td>policy</td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td><td></td>- <td><p>The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE".-Format:-For ACTION_MEMBER_*: users/{email}-For ACTION_ISSUE_*: issues/{issue uid}-For ACTION_PIPELINE_*: pipelines/{pipeline uid}-For ACTION_PROJECT_*: projects/{project resource id}-For ACTION_DATABASE_*: instances/{instance resource id} </p></td>+ <td><p>The policy to update.++The policy's `name` field is used to identify the instance to update.+Format: {resource name}/policies/{policy type}+Workspace resource name: "".+Environment resource name: environments/environment-id.+Instance resource name: instances/instance-id.+Database resource name: instances/instance-id/databases/database-name. </p></td></tr><tr>- <td>payload</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>The payload of the log entity.-TODO: use oneof </p></td>+ <td><p>The list of fields to update. </p></td></tr><tr>- <td>comment</td>- <td><a href="#string">string</a></td>+ <td>allow_missing</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>If set to true, and the policy is not found, a new policy will be created.+In this situation, `update_mask` is ignored. </p></td></tr></tbody>@@ -16629,7 +15732,154 @@ TODO: use oneof </p></td>- <h3 id="bytebase.v1.LogEntity.Action">LogEntity.Action</h3>+ <h3 id="bytebase.v1.MaskingExceptionPolicy.MaskingException.Action">MaskingExceptionPolicy.MaskingException.Action</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ACTION_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>QUERY</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>EXPORT</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.PolicyResourceType">PolicyResourceType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>RESOURCE_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WORKSPACE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ENVIRONMENT</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PROJECT</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>INSTANCE</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.PolicyType">PolicyType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>POLICY_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WORKSPACE_IAM</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ROLLOUT_POLICY</td>+ <td>11</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SQL_REVIEW</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MASKING</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SLOW_QUERY</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DISABLE_COPY_DATA</td>+ <td>8</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MASKING_RULE</td>+ <td>9</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MASKING_EXCEPTION</td>+ <td>10</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW</td>+ <td>12</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.SQLReviewRuleLevel">SQLReviewRuleLevel</h3><p></p><table class="enum-table"><thead>@@ -16638,271 +15888,284 @@ TODO: use oneof </p></td><tbody><tr>- <td>ACTION_UNSPECIFIED</td>+ <td>LEVEL_UNSPECIFIED</td><td>0</td>- <td><p>In worksapce resource only.</p></td>+ <td><p></p></td></tr><tr>- <td>ACTION_MEMBER_CREATE</td>+ <td>ERROR</td><td>1</td>- <td><p>Member related activity types.-Enum value 1 - 20--ACTION_MEMBER_CREATE is the type for creating a new member.</p></td>+ <td><p></p></td></tr><tr>- <td>ACTION_MEMBER_ROLE_UPDATE</td>+ <td>WARNING</td><td>2</td>- <td><p>ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role.</p></td>+ <td><p></p></td></tr><tr>- <td>ACTION_MEMBER_ACTIVATE</td>+ <td>DISABLED</td><td>3</td>- <td><p>ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members.</p></td>+ <td><p></p></td></tr>- <tr>- <td>ACTION_MEMBER_DEACTIVE</td>- <td>4</td>- <td><p>ACTION_MEMBER_DEACTIVE is the type for deactiving members.</p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.OrgPolicyService">OrgPolicyService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>ACTION_ISSUE_CREATE</td>- <td>21</td>- <td><p>Issue related activity types.-Enum value 21 - 40--ACTION_ISSUE_CREATE is the type for creating a new issue.</p></td>+ <td>GetPolicy</td>+ <td><a href="#bytebase.v1.GetPolicyRequest">GetPolicyRequest</a></td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td><p></p></td></tr><tr>- <td>ACTION_ISSUE_COMMENT_CREATE</td>- <td>22</td>- <td><p>ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue.</p></td>+ <td>ListPolicies</td>+ <td><a href="#bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</a></td>+ <td><a href="#bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</a></td>+ <td><p></p></td></tr><tr>- <td>ACTION_ISSUE_FIELD_UPDATE</td>- <td>23</td>- <td><p>ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field.</p></td>+ <td>CreatePolicy</td>+ <td><a href="#bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</a></td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td><p></p></td></tr><tr>- <td>ACTION_ISSUE_STATUS_UPDATE</td>- <td>24</td>- <td><p>ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status.</p></td>+ <td>UpdatePolicy</td>+ <td><a href="#bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</a></td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td><p></p></td></tr><tr>- <td>ACTION_ISSUE_APPROVAL_NOTIFY</td>- <td>25</td>- <td><p>ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td>+ <td>DeletePolicy</td>+ <td><a href="#bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td></tr>+ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead><tr>- <td>ACTION_PIPELINE_STAGE_STATUS_UPDATE</td>- <td>31</td>- <td><p>ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td></tr>+ </thead>+ <tbody>++<tr>- <td>ACTION_PIPELINE_TASK_STATUS_UPDATE</td>- <td>32</td>- <td><p>ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>+ <td>GetPolicy</td>+ <td>GET</td>+ <td>/v1/{name=policies/*}</td>+ <td></td></tr>-+<tr>- <td>ACTION_PIPELINE_TASK_FILE_COMMIT</td>- <td>33</td>- <td><p>ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement.</p></td>+ <td>GetPolicy</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/policies/*}</td>+ <td></td></tr>-+<tr>- <td>ACTION_PIPELINE_TASK_STATEMENT_UPDATE</td>- <td>34</td>- <td><p>ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement.</p></td>+ <td>GetPolicy</td>+ <td>GET</td>+ <td>/v1/{name=environments/*/policies/*}</td>+ <td></td></tr>-+<tr>- <td>ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE</td>- <td>35</td>- <td><p>ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time.</p></td>+ <td>GetPolicy</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/policies/*}</td>+ <td></td></tr>-+<tr>- <td>ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE</td>- <td>36</td>- <td><p>ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>+ <td>GetPolicy</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/databases/*/policies/*}</td>+ <td></td></tr>+++<tr>- <td>ACTION_PIPELINE_TASK_PRIOR_BACKUP</td>- <td>37</td>- <td><p>ACTION_PIPELINE_TASK_PRIOR_BACKUP represents the pipeline task prior backup activity.</p></td>+ <td>ListPolicies</td>+ <td>GET</td>+ <td>/v1/policies</td>+ <td></td></tr>-+<tr>- <td>ACTION_PROJECT_REPOSITORY_PUSH</td>- <td>41</td>- <td><p>Project related activity types.-Enum value 41 - 60--ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository.</p></td>+ <td>ListPolicies</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/policies</td>+ <td></td></tr>-+<tr>- <td>ACTION_PROJECT_MEMBER_CREATE</td>- <td>42</td>- <td><p>ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project.</p></td>+ <td>ListPolicies</td>+ <td>GET</td>+ <td>/v1/{parent=environments/*}/policies</td>+ <td></td></tr>-+<tr>- <td>ACTION_PROJECT_MEMBER_DELETE</td>- <td>43</td>- <td><p>ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project.</p></td>+ <td>ListPolicies</td>+ <td>GET</td>+ <td>/v1/{parent=instances/*}/policies</td>+ <td></td></tr>-+<tr>- <td>ACTION_PROJECT_DATABASE_TRANSFER</td>- <td>45</td>- <td><p>ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another.</p></td>+ <td>ListPolicies</td>+ <td>GET</td>+ <td>/v1/{parent=instances/*/databases/*}/policies</td>+ <td></td></tr>+++<tr>- <td>ACTION_DATABASE_SQL_EDITOR_QUERY</td>- <td>61</td>- <td><p>Database related activity types.-Enum value 61 - 80--ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query.</p></td>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/policies</td>+ <td>policy</td></tr>-+<tr>- <td>ACTION_DATABASE_SQL_EXPORT</td>- <td>62</td>- <td><p>ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL.</p></td>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/policies</td>+ <td>policy</td></tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.LogEntity.Level">LogEntity.Level</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-+<tr>- <td>LEVEL_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/{parent=environments/*}/policies</td>+ <td>policy</td></tr>-+<tr>- <td>LEVEL_INFO</td>- <td>1</td>- <td><p>LEVEL_INFO is the type for information.</p></td>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/{parent=instances/*}/policies</td>+ <td>policy</td></tr>-+<tr>- <td>LEVEL_WARNING</td>- <td>2</td>- <td><p>LEVEL_WARNING is the type for warning.</p></td>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/{parent=instances/*/databases/*}/policies</td>+ <td>policy</td></tr>+++<tr>- <td>LEVEL_ERROR</td>- <td>3</td>- <td><p>LEVEL_ERROR is the type for error.</p></td>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=policies/*}</td>+ <td>policy</td></tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.LoggingService">LoggingService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-+<tr>- <td>ListLogs</td>- <td><a href="#bytebase.v1.ListLogsRequest">ListLogsRequest</a></td>- <td><a href="#bytebase.v1.ListLogsResponse">ListLogsResponse</a></td>- <td><p></p></td>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=projects/*/policies/*}</td>+ <td>policy</td></tr>-+<tr>- <td>GetLog</td>- <td><a href="#bytebase.v1.GetLogRequest">GetLogRequest</a></td>- <td><a href="#bytebase.v1.LogEntity">LogEntity</a></td>- <td><p></p></td>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=environments/*/policies/*}</td>+ <td>policy</td></tr>-+<tr>- <td>ExportLogs</td>- <td><a href="#bytebase.v1.ExportLogsRequest">ExportLogsRequest</a></td>- <td><a href="#bytebase.v1.ExportLogsResponse">ExportLogsResponse</a></td>- <td><p></p></td>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=instances/*/policies/*}</td>+ <td>policy</td></tr>-- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>+<tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=instances/*/databases/*/policies/*}</td>+ <td>policy</td></tr>- </thead>- <tbody>+<tr>- <td>ListLogs</td>- <td>GET</td>- <td>/v1/logs:search</td>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=policies/*}</td><td></td></tr>---<tr>- <td>GetLog</td>- <td>GET</td>- <td>/v1/{name=logs/*}</td>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/policies/*}</td><td></td></tr>-+ <tr>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=environments/*/policies/*}</td>+ <td></td>+ </tr>+ <tr>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=instances/*/policies/*}</td>+ <td></td>+ </tr><tr>- <td>ExportLogs</td>- <td>POST</td>- <td>/v1/logs:export</td>- <td>*</td>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=instances/*/databases/*/policies/*}</td>+ <td></td></tr>@@ -19787,13 +19050,6 @@ TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from theTYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td></tr>- <tr>- <td>TYPE_DATABASE_RECOVERY_PITR_DONE</td>- <td>20</td>- <td><p>Database related activity types.-TYPE_DATABASE_RECOVERY_PITR_DONE represents the database recovery to a point in time is done.</p></td>- </tr>-</tbody></table>@@ -22206,14 +21462,6 @@ For example, in MongoDB, it only creates the database when we first store data i<td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td></tr>- <tr>- <td>backup</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>backup is the resource name of the backup.-Format: instances/{instance}/databases/{database}/backups/{backup-name} </p></td>- </tr>-<tr><td>environment</td><td><a href="#string">string</a></td>@@ -22322,52 +21570,6 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Plan.RestoreDatabaseConfig">Plan.RestoreDatabaseConfig</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>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the target to restore.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>create_database_config</td>- <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</a></td>- <td>optional</td>- <td><p>create_database_config is present if the user wants to restore to a new database. </p></td>- </tr>-- <tr>- <td>backup</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>point_in_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>After the PITR operations, the database will be recovered to the state at this time. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.Plan.Spec">Plan.Spec</h3><p></p>@@ -22414,13 +21616,6 @@ Must be a subset of the specs in the same step. </p></td><td><p> </p></td></tr>- <tr>- <td>restore_database_config</td>- <td><a href="#bytebase.v1.Plan.RestoreDatabaseConfig">Plan.RestoreDatabaseConfig</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>export_data_config</td><td><a href="#bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</a></td>@@ -22968,20 +22163,6 @@ Format: instances/{instance}/databases/{database} </p></td><td><p> </p></td></tr>- <tr>- <td>database_backup</td>- <td><a href="#bytebase.v1.Task.DatabaseBackup">Task.DatabaseBackup</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_restore_restore</td>- <td><a href="#bytebase.v1.Task.DatabaseRestoreRestore">Task.DatabaseRestoreRestore</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>database_data_export</td><td><a href="#bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</a></td>@@ -22996,31 +22177,6 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.Task.DatabaseBackup">Task.DatabaseBackup</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>backup</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the backup.-Format: instances/{instance}/databases/{database}/backups/{backup-name} </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</h3><p></p>@@ -23260,49 +22416,6 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></- <h3 id="bytebase.v1.Task.DatabaseRestoreRestore">Task.DatabaseRestoreRestore</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>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Target is only used when doing restore to a new database now.-It is empty for the case of in-place restore.-Target {instance} must be within the same environment as the instance of the original database.-{database} is the target database name.-Format: instances/{instance}/databases/database </p></td>- </tr>-- <tr>- <td>backup</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Only used when doing restore full backup only.-Format: instances/{instance}/databases/{database}/backups/{backup-name} </p></td>- </tr>-- <tr>- <td>point_in_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>After the PITR operations, the database will be recovered to the state at this time. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</h3><p></p>@@ -23633,12 +22746,6 @@ Format: projects/{project}/plans/{plan} </p></td><td><p>Used for DDL changes using gh-ost.</p></td></tr>- <tr>- <td>BRANCH</td>- <td>5</td>- <td><p>Used when restoring from a backup (the restored database branched from the original backup).</p></td>- </tr>-<tr><td>DATA</td><td>6</td>@@ -23780,12 +22887,6 @@ Format: projects/{project}/plans/{plan} </p></td><td><p></p></td></tr>- <tr>- <td>DATABASE_PITR_MYSQL</td>- <td>8</td>- <td><p></p></td>- </tr>-</tbody></table>@@ -23945,24 +23046,6 @@ Format: projects/{project}/plans/{plan} </p></td><td><p>use payload DatabaseDataUpdate</p></td></tr>- <tr>- <td>DATABASE_BACKUP</td>- <td>9</td>- <td><p>use payload DatabaseBackup</p></td>- </tr>-- <tr>- <td>DATABASE_RESTORE_RESTORE</td>- <td>10</td>- <td><p>use payload DatabaseRestoreRestore</p></td>- </tr>-- <tr>- <td>DATABASE_RESTORE_CUTOVER</td>- <td>11</td>- <td><p>use payload nil</p></td>- </tr>-<tr><td>DATABASE_DATA_EXPORT</td><td>12</td>diff --git a/proto/generated-go/store/plan.pb.go b/proto/generated-go/store/plan.pb.goindex 7d1eb0bf64..00ad5d7d69 100644--- a/proto/generated-go/store/plan.pb.go+++ b/proto/generated-go/store/plan.pb.go@@ -212,7 +212,6 @@ type PlanConfig_Spec struct {//// *PlanConfig_Spec_CreateDatabaseConfig// *PlanConfig_Spec_ChangeDatabaseConfig- // *PlanConfig_Spec_RestoreDatabaseConfig// *PlanConfig_Spec_ExportDataConfigConfig isPlanConfig_Spec_Config `protobuf_oneof:"config"`}@@ -291,13 +290,6 @@ func (x *PlanConfig_Spec) GetChangeDatabaseConfig() *PlanConfig_ChangeDatabaseCoreturn nil}-func (x *PlanConfig_Spec) GetRestoreDatabaseConfig() *PlanConfig_RestoreDatabaseConfig {- if x, ok := x.GetConfig().(*PlanConfig_Spec_RestoreDatabaseConfig); ok {- return x.RestoreDatabaseConfig- }- return nil-}-func (x *PlanConfig_Spec) GetExportDataConfig() *PlanConfig_ExportDataConfig {if x, ok := x.GetConfig().(*PlanConfig_Spec_ExportDataConfig); ok {return x.ExportDataConfig@@ -317,10 +309,6 @@ type PlanConfig_Spec_ChangeDatabaseConfig struct {ChangeDatabaseConfig *PlanConfig_ChangeDatabaseConfig `protobuf:"bytes,2,opt,name=change_database_config,json=changeDatabaseConfig,proto3,oneof"`}-type PlanConfig_Spec_RestoreDatabaseConfig struct {- RestoreDatabaseConfig *PlanConfig_RestoreDatabaseConfig `protobuf:"bytes,3,opt,name=restore_database_config,json=restoreDatabaseConfig,proto3,oneof"`-}-type PlanConfig_Spec_ExportDataConfig struct {ExportDataConfig *PlanConfig_ExportDataConfig `protobuf:"bytes,7,opt,name=export_data_config,json=exportDataConfig,proto3,oneof"`}@@ -329,8 +317,6 @@ func (*PlanConfig_Spec_CreateDatabaseConfig) isPlanConfig_Spec_Config() {}func (*PlanConfig_Spec_ChangeDatabaseConfig) isPlanConfig_Spec_Config() {}-func (*PlanConfig_Spec_RestoreDatabaseConfig) isPlanConfig_Spec_Config() {}-func (*PlanConfig_Spec_ExportDataConfig) isPlanConfig_Spec_Config() {}type PlanConfig_CreateDatabaseConfig struct {@@ -580,113 +566,6 @@ func (x *PlanConfig_ChangeDatabaseConfig) GetPreUpdateBackupDetail() *PlanConfigreturn nil}-type PlanConfig_RestoreDatabaseConfig struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the target to restore.- // Format: instances/{instance}/databases/{database}- Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`- // create_database_config is present if the user wants to restore to a new database.- CreateDatabaseConfig *PlanConfig_CreateDatabaseConfig `protobuf:"bytes,2,opt,name=create_database_config,json=createDatabaseConfig,proto3,oneof" json:"create_database_config,omitempty"`- // source determines how to restore the database.- // 1. from a backup- // 2. from a point in time- //- // Types that are assignable to Source:- //- // *PlanConfig_RestoreDatabaseConfig_Backup- // *PlanConfig_RestoreDatabaseConfig_PointInTime- Source isPlanConfig_RestoreDatabaseConfig_Source `protobuf_oneof:"source"`-}--func (x *PlanConfig_RestoreDatabaseConfig) Reset() {- *x = PlanConfig_RestoreDatabaseConfig{}- if protoimpl.UnsafeEnabled {- mi := &file_store_plan_proto_msgTypes[5]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *PlanConfig_RestoreDatabaseConfig) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*PlanConfig_RestoreDatabaseConfig) ProtoMessage() {}--func (x *PlanConfig_RestoreDatabaseConfig) ProtoReflect() protoreflect.Message {- mi := &file_store_plan_proto_msgTypes[5]- 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 PlanConfig_RestoreDatabaseConfig.ProtoReflect.Descriptor instead.-func (*PlanConfig_RestoreDatabaseConfig) Descriptor() ([]byte, []int) {- return file_store_plan_proto_rawDescGZIP(), []int{0, 4}-}--func (x *PlanConfig_RestoreDatabaseConfig) GetTarget() string {- if x != nil {- return x.Target- }- return ""-}--func (x *PlanConfig_RestoreDatabaseConfig) GetCreateDatabaseConfig() *PlanConfig_CreateDatabaseConfig {- if x != nil {- return x.CreateDatabaseConfig- }- return nil-}--func (m *PlanConfig_RestoreDatabaseConfig) GetSource() isPlanConfig_RestoreDatabaseConfig_Source {- if m != nil {- return m.Source- }- return nil-}--func (x *PlanConfig_RestoreDatabaseConfig) GetBackup() string {- if x, ok := x.GetSource().(*PlanConfig_RestoreDatabaseConfig_Backup); ok {- return x.Backup- }- return ""-}--func (x *PlanConfig_RestoreDatabaseConfig) GetPointInTime() *timestamppb.Timestamp {- if x, ok := x.GetSource().(*PlanConfig_RestoreDatabaseConfig_PointInTime); ok {- return x.PointInTime- }- return nil-}--type isPlanConfig_RestoreDatabaseConfig_Source interface {- isPlanConfig_RestoreDatabaseConfig_Source()-}--type PlanConfig_RestoreDatabaseConfig_Backup struct {- // Restore from a backup.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- Backup string `protobuf:"bytes,3,opt,name=backup,proto3,oneof"`-}--type PlanConfig_RestoreDatabaseConfig_PointInTime struct {- // After the PITR operations, the database will be recovered to the state at this time.- PointInTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=point_in_time,json=pointInTime,proto3,oneof"`-}--func (*PlanConfig_RestoreDatabaseConfig_Backup) isPlanConfig_RestoreDatabaseConfig_Source() {}--func (*PlanConfig_RestoreDatabaseConfig_PointInTime) isPlanConfig_RestoreDatabaseConfig_Source() {}-type PlanConfig_ExportDataConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -710,7 +589,7 @@ type PlanConfig_ExportDataConfig struct {func (x *PlanConfig_ExportDataConfig) Reset() {*x = PlanConfig_ExportDataConfig{}if protoimpl.UnsafeEnabled {- mi := &file_store_plan_proto_msgTypes[6]+ mi := &file_store_plan_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -723,7 +602,7 @@ func (x *PlanConfig_ExportDataConfig) String() string {func (*PlanConfig_ExportDataConfig) ProtoMessage() {}func (x *PlanConfig_ExportDataConfig) ProtoReflect() protoreflect.Message {- mi := &file_store_plan_proto_msgTypes[6]+ mi := &file_store_plan_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -736,7 +615,7 @@ func (x *PlanConfig_ExportDataConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use PlanConfig_ExportDataConfig.ProtoReflect.Descriptor instead.func (*PlanConfig_ExportDataConfig) Descriptor() ([]byte, []int) {- return file_store_plan_proto_rawDescGZIP(), []int{0, 5}+ return file_store_plan_proto_rawDescGZIP(), []int{0, 4}}func (x *PlanConfig_ExportDataConfig) GetTarget() string {@@ -790,7 +669,7 @@ type PlanConfig_ChangeDatabaseConfig_RollbackDetail struct {func (x *PlanConfig_ChangeDatabaseConfig_RollbackDetail) Reset() {*x = PlanConfig_ChangeDatabaseConfig_RollbackDetail{}if protoimpl.UnsafeEnabled {- mi := &file_store_plan_proto_msgTypes[8]+ mi := &file_store_plan_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -803,7 +682,7 @@ func (x *PlanConfig_ChangeDatabaseConfig_RollbackDetail) String() string {func (*PlanConfig_ChangeDatabaseConfig_RollbackDetail) ProtoMessage() {}func (x *PlanConfig_ChangeDatabaseConfig_RollbackDetail) ProtoReflect() protoreflect.Message {- mi := &file_store_plan_proto_msgTypes[8]+ mi := &file_store_plan_proto_msgTypes[7]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -846,7 +725,7 @@ type PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail struct {func (x *PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail) Reset() {*x = PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail{}if protoimpl.UnsafeEnabled {- mi := &file_store_plan_proto_msgTypes[10]+ mi := &file_store_plan_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -859,7 +738,7 @@ func (x *PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail) String() stringfunc (*PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoMessage() {}func (x *PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoReflect() protoreflect.Message {- mi := &file_store_plan_proto_msgTypes[10]+ mi := &file_store_plan_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -892,7 +771,7 @@ var file_store_plan_proto_rawDesc = []byte{0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,- 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x14, 0x0a, 0x0a, 0x50, 0x6c, 0x61,+ 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x11, 0x0a, 0x0a, 0x50, 0x6c, 0x61,0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73,0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66,@@ -902,7 +781,7 @@ var file_store_plan_proto_rawDesc = []byte{0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61,0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70,- 0x65, 0x63, 0x73, 0x1a, 0xb5, 0x04, 0x0a, 0x04, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4e, 0x0a, 0x15,+ 0x65, 0x63, 0x73, 0x1a, 0xc9, 0x03, 0x0a, 0x04, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4e, 0x0a, 0x15,0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64,0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 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,@@ -924,141 +803,117 @@ var file_store_plan_proto_rawDesc = []byte{0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x68, 0x61, 0x6e,0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,0x48, 0x00, 0x52, 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x6a, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x15, 0x72,- 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5b, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64,- 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x78, 0x70,- 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,- 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xcf, 0x03, 0x0a, 0x14,- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,- 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x28, 0x0a,- 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61,- 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61,- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,- 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6c,- 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,- 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e,- 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x6f,- 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x08,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75,- 0x70, 0x12, 0x25, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,- 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x65, 0x6e, 0x76,- 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65,- 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,- 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65,- 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72,- 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,- 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xbe, 0x07,- 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14,- 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73,- 0x68, 0x65, 0x65, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x25,- 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65,- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,- 0x6b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,- 0x12, 0x6c, 0x0a, 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x74,- 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62,- 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x6f, 0x6c,- 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x60,- 0x0a, 0x0b, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20,- 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,- 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x47, 0x68, 0x6f, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45,- 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73,- 0x12, 0x83, 0x01, 0x0a, 0x18, 0x70, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,- 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,- 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61,- 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x01, 0x52, 0x15, 0x70, 0x72,- 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74,- 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0x6e, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61,- 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x6f, 0x6c, 0x6c,- 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72,- 0x6f, 0x6d, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61,- 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f,- 0x6d, 0x49, 0x73, 0x73, 0x75, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x47, 0x68, 0x6f, 0x73, 0x74, 0x46,- 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,- 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,- 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x33, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x55, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1a,- 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x71, 0x0a, 0x04, 0x54, 0x79,- 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x53, 0x45,- 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54,- 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53,- 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f,- 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x41, 0x4e, 0x43,- 0x48, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x06, 0x42, 0x12, 0x0a,- 0x10, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x70, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x1a, 0x9c,- 0x02, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67,- 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,- 0x12, 0x6a, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x2f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x48, 0x01, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x88, 0x01, 0x01, 0x12, 0x18, 0x0a, 0x06,- 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06,- 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f,- 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 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, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x6f, 0x69,- 0x6e, 0x74, 0x49, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x42, 0x19, 0x0a, 0x17, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xbf, 0x01,- 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66,- 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68,- 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74,- 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x66,- 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x70,- 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61,- 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x05, 0x20,- 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88,- 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 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,+ 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5b, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f,+ 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43,+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a,+ 0xcf, 0x03, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67,+ 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x74,+ 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c,+ 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73,+ 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x63,+ 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x63,+ 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,+ 0xe0, 0x41, 0x01, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d,+ 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a,+ 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x01, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b,+ 0x75, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x62,+ 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x25, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,+ 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,+ 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x06,+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c,+ 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61,+ 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06,+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,+ 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,+ 0x01, 0x1a, 0xbe, 0x07, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61,+ 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67,+ 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,+ 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72,+ 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c,+ 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61,+ 0x62, 0x6c, 0x65, 0x64, 0x12, 0x6c, 0x0a, 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,+ 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50,+ 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52,+ 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x00, 0x52,+ 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x88,+ 0x01, 0x01, 0x12, 0x60, 0x0a, 0x0b, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67,+ 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x47, 0x68, 0x6f, 0x73, 0x74, 0x46, 0x6c,+ 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x46,+ 0x6c, 0x61, 0x67, 0x73, 0x12, 0x83, 0x01, 0x0a, 0x18, 0x70, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69,+ 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x65, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x01,+ 0x52, 0x15, 0x70, 0x72, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75,+ 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0x6e, 0x0a, 0x0e, 0x52, 0x6f,+ 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x2c, 0x0a, 0x12,+ 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61,+ 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61,+ 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f,+ 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x69, 0x73, 0x73, 0x75,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,+ 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x49, 0x73, 0x73, 0x75, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x47, 0x68,+ 0x6f, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,+ 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x33, 0x0a, 0x15, 0x50, 0x72, 0x65,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61,+ 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x71,+ 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08,+ 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49,+ 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41,+ 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52,+ 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x42,+ 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10,+ 0x06, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x64,+ 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x70, 0x72, 0x65, 0x5f, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x61,+ 0x69, 0x6c, 0x1a, 0xbf, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74,+ 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12,+ 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,+ 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x6f, 0x77,+ 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x6f, 0x77, 0x73,+ 0x12, 0x34, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06,+ 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,+ 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73,+ 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73,+ 0x77, 0x6f, 0x72, 0x64, 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 (@@ -1074,7 +929,7 @@ func file_store_plan_proto_rawDescGZIP() []byte {}var file_store_plan_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_store_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 11)+var file_store_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 10)var file_store_plan_proto_goTypes = []interface{}{(PlanConfig_ChangeDatabaseConfig_Type)(0), // 0: bytebase.store.PlanConfig.ChangeDatabaseConfig.Type(*PlanConfig)(nil), // 1: bytebase.store.PlanConfig@@ -1082,36 +937,32 @@ var file_store_plan_proto_goTypes = []interface{}{(*PlanConfig_Spec)(nil), // 3: bytebase.store.PlanConfig.Spec(*PlanConfig_CreateDatabaseConfig)(nil), // 4: bytebase.store.PlanConfig.CreateDatabaseConfig(*PlanConfig_ChangeDatabaseConfig)(nil), // 5: bytebase.store.PlanConfig.ChangeDatabaseConfig- (*PlanConfig_RestoreDatabaseConfig)(nil), // 6: bytebase.store.PlanConfig.RestoreDatabaseConfig- (*PlanConfig_ExportDataConfig)(nil), // 7: bytebase.store.PlanConfig.ExportDataConfig- nil, // 8: bytebase.store.PlanConfig.CreateDatabaseConfig.LabelsEntry- (*PlanConfig_ChangeDatabaseConfig_RollbackDetail)(nil), // 9: bytebase.store.PlanConfig.ChangeDatabaseConfig.RollbackDetail- nil, // 10: bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry- (*PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 11: bytebase.store.PlanConfig.ChangeDatabaseConfig.PreUpdateBackupDetail- (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp- (ExportFormat)(0), // 13: bytebase.store.ExportFormat+ (*PlanConfig_ExportDataConfig)(nil), // 6: bytebase.store.PlanConfig.ExportDataConfig+ nil, // 7: bytebase.store.PlanConfig.CreateDatabaseConfig.LabelsEntry+ (*PlanConfig_ChangeDatabaseConfig_RollbackDetail)(nil), // 8: bytebase.store.PlanConfig.ChangeDatabaseConfig.RollbackDetail+ nil, // 9: bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry+ (*PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 10: bytebase.store.PlanConfig.ChangeDatabaseConfig.PreUpdateBackupDetail+ (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp+ (ExportFormat)(0), // 12: bytebase.store.ExportFormat}var file_store_plan_proto_depIdxs = []int32{2, // 0: bytebase.store.PlanConfig.steps:type_name -> bytebase.store.PlanConfig.Step3, // 1: bytebase.store.PlanConfig.Step.specs:type_name -> bytebase.store.PlanConfig.Spec- 12, // 2: bytebase.store.PlanConfig.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp+ 11, // 2: bytebase.store.PlanConfig.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp4, // 3: bytebase.store.PlanConfig.Spec.create_database_config:type_name -> bytebase.store.PlanConfig.CreateDatabaseConfig5, // 4: bytebase.store.PlanConfig.Spec.change_database_config:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig- 6, // 5: bytebase.store.PlanConfig.Spec.restore_database_config:type_name -> bytebase.store.PlanConfig.RestoreDatabaseConfig- 7, // 6: bytebase.store.PlanConfig.Spec.export_data_config:type_name -> bytebase.store.PlanConfig.ExportDataConfig- 8, // 7: bytebase.store.PlanConfig.CreateDatabaseConfig.labels:type_name -> bytebase.store.PlanConfig.CreateDatabaseConfig.LabelsEntry- 0, // 8: bytebase.store.PlanConfig.ChangeDatabaseConfig.type:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.Type- 9, // 9: bytebase.store.PlanConfig.ChangeDatabaseConfig.rollback_detail:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.RollbackDetail- 10, // 10: bytebase.store.PlanConfig.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry- 11, // 11: bytebase.store.PlanConfig.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.PreUpdateBackupDetail- 4, // 12: bytebase.store.PlanConfig.RestoreDatabaseConfig.create_database_config:type_name -> bytebase.store.PlanConfig.CreateDatabaseConfig- 12, // 13: bytebase.store.PlanConfig.RestoreDatabaseConfig.point_in_time:type_name -> google.protobuf.Timestamp- 13, // 14: bytebase.store.PlanConfig.ExportDataConfig.format:type_name -> bytebase.store.ExportFormat- 15, // [15:15] is the sub-list for method output_type- 15, // [15:15] is the sub-list for method input_type- 15, // [15:15] is the sub-list for extension type_name- 15, // [15:15] is the sub-list for extension extendee- 0, // [0:15] is the sub-list for field type_name+ 6, // 5: bytebase.store.PlanConfig.Spec.export_data_config:type_name -> bytebase.store.PlanConfig.ExportDataConfig+ 7, // 6: bytebase.store.PlanConfig.CreateDatabaseConfig.labels:type_name -> bytebase.store.PlanConfig.CreateDatabaseConfig.LabelsEntry+ 0, // 7: bytebase.store.PlanConfig.ChangeDatabaseConfig.type:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.Type+ 8, // 8: bytebase.store.PlanConfig.ChangeDatabaseConfig.rollback_detail:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.RollbackDetail+ 9, // 9: bytebase.store.PlanConfig.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry+ 10, // 10: bytebase.store.PlanConfig.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.PreUpdateBackupDetail+ 12, // 11: bytebase.store.PlanConfig.ExportDataConfig.format:type_name -> bytebase.store.ExportFormat+ 12, // [12:12] is the sub-list for method output_type+ 12, // [12:12] is the sub-list for method input_type+ 12, // [12:12] is the sub-list for extension type_name+ 12, // [12:12] is the sub-list for extension extendee+ 0, // [0:12] is the sub-list for field type_name}func init() { file_store_plan_proto_init() }@@ -1182,18 +1033,6 @@ func file_store_plan_proto_init() {}}file_store_plan_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*PlanConfig_RestoreDatabaseConfig); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_store_plan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*PlanConfig_ExportDataConfig); i {case 0:return &v.state@@ -1205,7 +1044,7 @@ func file_store_plan_proto_init() {return nil}}- file_store_plan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {+ file_store_plan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*PlanConfig_ChangeDatabaseConfig_RollbackDetail); i {case 0:return &v.state@@ -1217,7 +1056,7 @@ func file_store_plan_proto_init() {return nil}}- file_store_plan_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ file_store_plan_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*PlanConfig_ChangeDatabaseConfig_PreUpdateBackupDetail); i {case 0:return &v.state@@ -1233,22 +1072,17 @@ func file_store_plan_proto_init() {file_store_plan_proto_msgTypes[2].OneofWrappers = []interface{}{(*PlanConfig_Spec_CreateDatabaseConfig)(nil),(*PlanConfig_Spec_ChangeDatabaseConfig)(nil),- (*PlanConfig_Spec_RestoreDatabaseConfig)(nil),(*PlanConfig_Spec_ExportDataConfig)(nil),}file_store_plan_proto_msgTypes[4].OneofWrappers = []interface{}{}- file_store_plan_proto_msgTypes[5].OneofWrappers = []interface{}{- (*PlanConfig_RestoreDatabaseConfig_Backup)(nil),- (*PlanConfig_RestoreDatabaseConfig_PointInTime)(nil),- }- file_store_plan_proto_msgTypes[6].OneofWrappers = []interface{}{}+ file_store_plan_proto_msgTypes[5].OneofWrappers = []interface{}{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_plan_proto_rawDesc,NumEnums: 1,- NumMessages: 11,+ NumMessages: 10,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/anomaly_service.pb.go b/proto/generated-go/v1/anomaly_service.pb.goindex 19a3c5db65..e4eb764a98 100644--- a/proto/generated-go/v1/anomaly_service.pb.go+++ b/proto/generated-go/v1/anomaly_service.pb.go@@ -36,11 +36,6 @@ const (Anomaly_MIGRATION_SCHEMA Anomaly_AnomalyType = 2// Database level anomaly.//- // DATABASE_BACKUP_POLICY_VIOLATION is the anomaly type for database backup policy violation,- // e.g. the database backup policy is not meet the environment backup policy.- Anomaly_DATABASE_BACKUP_POLICY_VIOLATION Anomaly_AnomalyType = 3- // DATABASE_BACKUP_MISSING is the anomaly type for the backup missing, e.g. the backup is missing.- Anomaly_DATABASE_BACKUP_MISSING Anomaly_AnomalyType = 4// DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted.Anomaly_DATABASE_CONNECTION Anomaly_AnomalyType = 5// DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift,@@ -54,19 +49,15 @@ var (0: "ANOMALY_TYPE_UNSPECIFIED",1: "INSTANCE_CONNECTION",2: "MIGRATION_SCHEMA",- 3: "DATABASE_BACKUP_POLICY_VIOLATION",- 4: "DATABASE_BACKUP_MISSING",5: "DATABASE_CONNECTION",6: "DATABASE_SCHEMA_DRIFT",}Anomaly_AnomalyType_value = map[string]int32{- "ANOMALY_TYPE_UNSPECIFIED": 0,- "INSTANCE_CONNECTION": 1,- "MIGRATION_SCHEMA": 2,- "DATABASE_BACKUP_POLICY_VIOLATION": 3,- "DATABASE_BACKUP_MISSING": 4,- "DATABASE_CONNECTION": 5,- "DATABASE_SCHEMA_DRIFT": 6,+ "ANOMALY_TYPE_UNSPECIFIED": 0,+ "INSTANCE_CONNECTION": 1,+ "MIGRATION_SCHEMA": 2,+ "DATABASE_CONNECTION": 5,+ "DATABASE_SCHEMA_DRIFT": 6,})@@ -164,7 +155,7 @@ type SearchAnomaliesRequest struct {// Only support filter by resource and type for now.// For example:// Search the anomalies of a specific resource: 'resource="instances/{instance}".'- // Search the specified types of anomalies: 'type="DATABASE_BACKUP_POLICY_VIOLATION" | "MIGRATION_SCHEMA".'+ // Search the specified types of anomalies: 'type="MIGRATION_SCHEMA".'Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`// Not used. The maximum number of anomalies to return. The service may return fewer than// this value.@@ -310,8 +301,6 @@ type Anomaly struct {//// *Anomaly_InstanceConnectionDetail_// *Anomaly_DatabaseConnectionDetail_- // *Anomaly_DatabaseBackupPolicyViolationDetail_- // *Anomaly_DatabaseBackupMissingDetail_// *Anomaly_DatabaseSchemaDriftDetail_Detail isAnomaly_Detail `protobuf_oneof:"detail"`CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`@@ -392,20 +381,6 @@ func (x *Anomaly) GetDatabaseConnectionDetail() *Anomaly_DatabaseConnectionDetaireturn nil}-func (x *Anomaly) GetDatabaseBackupPolicyViolationDetail() *Anomaly_DatabaseBackupPolicyViolationDetail {- if x, ok := x.GetDetail().(*Anomaly_DatabaseBackupPolicyViolationDetail_); ok {- return x.DatabaseBackupPolicyViolationDetail- }- return nil-}--func (x *Anomaly) GetDatabaseBackupMissingDetail() *Anomaly_DatabaseBackupMissingDetail {- if x, ok := x.GetDetail().(*Anomaly_DatabaseBackupMissingDetail_); ok {- return x.DatabaseBackupMissingDetail- }- return nil-}-func (x *Anomaly) GetDatabaseSchemaDriftDetail() *Anomaly_DatabaseSchemaDriftDetail {if x, ok := x.GetDetail().(*Anomaly_DatabaseSchemaDriftDetail_); ok {return x.DatabaseSchemaDriftDetail@@ -439,14 +414,6 @@ type Anomaly_DatabaseConnectionDetail_ struct {DatabaseConnectionDetail *Anomaly_DatabaseConnectionDetail `protobuf:"bytes,5,opt,name=database_connection_detail,json=databaseConnectionDetail,proto3,oneof"`}-type Anomaly_DatabaseBackupPolicyViolationDetail_ struct {- DatabaseBackupPolicyViolationDetail *Anomaly_DatabaseBackupPolicyViolationDetail `protobuf:"bytes,6,opt,name=database_backup_policy_violation_detail,json=databaseBackupPolicyViolationDetail,proto3,oneof"`-}--type Anomaly_DatabaseBackupMissingDetail_ struct {- DatabaseBackupMissingDetail *Anomaly_DatabaseBackupMissingDetail `protobuf:"bytes,7,opt,name=database_backup_missing_detail,json=databaseBackupMissingDetail,proto3,oneof"`-}-type Anomaly_DatabaseSchemaDriftDetail_ struct {DatabaseSchemaDriftDetail *Anomaly_DatabaseSchemaDriftDetail `protobuf:"bytes,8,opt,name=database_schema_drift_detail,json=databaseSchemaDriftDetail,proto3,oneof"`}@@ -455,10 +422,6 @@ func (*Anomaly_InstanceConnectionDetail_) isAnomaly_Detail() {}func (*Anomaly_DatabaseConnectionDetail_) isAnomaly_Detail() {}-func (*Anomaly_DatabaseBackupPolicyViolationDetail_) isAnomaly_Detail() {}--func (*Anomaly_DatabaseBackupMissingDetail_) isAnomaly_Detail() {}-func (*Anomaly_DatabaseSchemaDriftDetail_) isAnomaly_Detail() {}// Instance level anomaly detail.@@ -563,132 +526,6 @@ func (x *Anomaly_DatabaseConnectionDetail) GetDetail() string {return ""}-// DatabaseBackupPolicyViolationDetail is the detail for database backup policy violation anomaly.-type Anomaly_DatabaseBackupPolicyViolationDetail struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // parent is the parent of the database.- // Format: environments/{environment}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // expected_schedule is the expected backup plan schedule in the parent.- ExpectedSchedule BackupPlanSchedule `protobuf:"varint,2,opt,name=expected_schedule,json=expectedSchedule,proto3,enum=bytebase.v1.BackupPlanSchedule" json:"expected_schedule,omitempty"`- // actual_schedule is the actual backup plan schedule in the database.- ActualSchedule BackupPlanSchedule `protobuf:"varint,3,opt,name=actual_schedule,json=actualSchedule,proto3,enum=bytebase.v1.BackupPlanSchedule" json:"actual_schedule,omitempty"`-}--func (x *Anomaly_DatabaseBackupPolicyViolationDetail) Reset() {- *x = Anomaly_DatabaseBackupPolicyViolationDetail{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_anomaly_service_proto_msgTypes[5]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Anomaly_DatabaseBackupPolicyViolationDetail) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Anomaly_DatabaseBackupPolicyViolationDetail) ProtoMessage() {}--func (x *Anomaly_DatabaseBackupPolicyViolationDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_anomaly_service_proto_msgTypes[5]- 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 Anomaly_DatabaseBackupPolicyViolationDetail.ProtoReflect.Descriptor instead.-func (*Anomaly_DatabaseBackupPolicyViolationDetail) Descriptor() ([]byte, []int) {- return file_v1_anomaly_service_proto_rawDescGZIP(), []int{2, 2}-}--func (x *Anomaly_DatabaseBackupPolicyViolationDetail) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *Anomaly_DatabaseBackupPolicyViolationDetail) GetExpectedSchedule() BackupPlanSchedule {- if x != nil {- return x.ExpectedSchedule- }- return BackupPlanSchedule_SCHEDULE_UNSPECIFIED-}--func (x *Anomaly_DatabaseBackupPolicyViolationDetail) GetActualSchedule() BackupPlanSchedule {- if x != nil {- return x.ActualSchedule- }- return BackupPlanSchedule_SCHEDULE_UNSPECIFIED-}--// DatabaseBackupMissingDetail is the detail for database backup missing anomaly.-type Anomaly_DatabaseBackupMissingDetail struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // expected_schedule is the expected backup plan schedule in the database.- ExpectedSchedule BackupPlanSchedule `protobuf:"varint,1,opt,name=expected_schedule,json=expectedSchedule,proto3,enum=bytebase.v1.BackupPlanSchedule" json:"expected_schedule,omitempty"`- // latest_backup_time is the latest backup time in the database.- LatestBackupTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest_backup_time,json=latestBackupTime,proto3" json:"latest_backup_time,omitempty"`-}--func (x *Anomaly_DatabaseBackupMissingDetail) Reset() {- *x = Anomaly_DatabaseBackupMissingDetail{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_anomaly_service_proto_msgTypes[6]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Anomaly_DatabaseBackupMissingDetail) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Anomaly_DatabaseBackupMissingDetail) ProtoMessage() {}--func (x *Anomaly_DatabaseBackupMissingDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_anomaly_service_proto_msgTypes[6]- 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 Anomaly_DatabaseBackupMissingDetail.ProtoReflect.Descriptor instead.-func (*Anomaly_DatabaseBackupMissingDetail) Descriptor() ([]byte, []int) {- return file_v1_anomaly_service_proto_rawDescGZIP(), []int{2, 3}-}--func (x *Anomaly_DatabaseBackupMissingDetail) GetExpectedSchedule() BackupPlanSchedule {- if x != nil {- return x.ExpectedSchedule- }- return BackupPlanSchedule_SCHEDULE_UNSPECIFIED-}--func (x *Anomaly_DatabaseBackupMissingDetail) GetLatestBackupTime() *timestamppb.Timestamp {- if x != nil {- return x.LatestBackupTime- }- return nil-}-// DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.type Anomaly_DatabaseSchemaDriftDetail struct {state protoimpl.MessageState@@ -706,7 +543,7 @@ type Anomaly_DatabaseSchemaDriftDetail struct {func (x *Anomaly_DatabaseSchemaDriftDetail) Reset() {*x = Anomaly_DatabaseSchemaDriftDetail{}if protoimpl.UnsafeEnabled {- mi := &file_v1_anomaly_service_proto_msgTypes[7]+ mi := &file_v1_anomaly_service_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -719,7 +556,7 @@ func (x *Anomaly_DatabaseSchemaDriftDetail) String() string {func (*Anomaly_DatabaseSchemaDriftDetail) ProtoMessage() {}func (x *Anomaly_DatabaseSchemaDriftDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_anomaly_service_proto_msgTypes[7]+ mi := &file_v1_anomaly_service_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -732,7 +569,7 @@ func (x *Anomaly_DatabaseSchemaDriftDetail) ProtoReflect() protoreflect.Message// Deprecated: Use Anomaly_DatabaseSchemaDriftDetail.ProtoReflect.Descriptor instead.func (*Anomaly_DatabaseSchemaDriftDetail) Descriptor() ([]byte, []int) {- return file_v1_anomaly_service_proto_rawDescGZIP(), []int{2, 4}+ return file_v1_anomaly_service_proto_rawDescGZIP(), []int{2, 2}}func (x *Anomaly_DatabaseSchemaDriftDetail) GetRecordVersion() string {@@ -767,150 +604,102 @@ var file_v1_anomaly_service_proto_rawDesc = []byte{0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,- 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x5f,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6c, 0x0a, 0x16, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6e,- 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,- 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,- 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,- 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,- 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,- 0x65, 0x6e, 0x22, 0x75, 0x0a, 0x17, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6e, 0x6f, 0x6d,- 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a,- 0x09, 0x61, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,- 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,- 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x52, 0x09, 0x61, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65,- 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,- 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74,- 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xc5, 0x0e, 0x0a, 0x07, 0x41, 0x6e,- 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x12, 0x1f, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65,- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61,- 0x6c, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x40, 0x0a, 0x08,- 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f,- 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x53, 0x65, 0x76, 0x65,- 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x6d,- 0x0a, 0x1a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65,- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,- 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x48, 0x00, 0x52, 0x18, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e,- 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x6d, 0x0a,- 0x1a, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,- 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6c, 0x0a, 0x16, 0x53, 0x65, 0x61, 0x72, 0x63,+ 0x68, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,+ 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,+ 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x75, 0x0a, 0x17, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41,+ 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,+ 0x12, 0x32, 0x0a, 0x09, 0x61, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x52, 0x09, 0x61, 0x6e, 0x6f, 0x6d, 0x61,+ 0x6c, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,+ 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,+ 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe6, 0x08, 0x0a,+ 0x07, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x12, 0x1f, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,+ 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x6e,+ 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,+ 0x40, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x53,+ 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74,+ 0x79, 0x12, 0x6d, 0x0a, 0x1a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f,+ 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x49, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65,+ 0x74, 0x61, 0x69, 0x6c, 0x48, 0x00, 0x52, 0x18, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,- 0x48, 0x00, 0x52, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x6e,- 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x90, 0x01, 0x0a,- 0x27, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70,- 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f,- 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69,- 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x00, 0x52, 0x23, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,- 0x77, 0x0a, 0x1e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b,- 0x75, 0x70, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x4d, 0x69, 0x73, 0x73,- 0x69, 0x6e, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x00, 0x52, 0x1b, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x4d, 0x69, 0x73, 0x73, 0x69,- 0x6e, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x71, 0x0a, 0x1c, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x72, 0x69, 0x66,- 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f,- 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x44, 0x72, 0x69, 0x66, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x00,- 0x52, 0x19, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x44, 0x72, 0x69, 0x66, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x40, 0x0a, 0x0b, 0x63,- 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 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, 0x42, 0x03, 0xe0, 0x41,- 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a,- 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 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, 0x42, 0x03,- 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x1a,- 0x32, 0x0a, 0x18, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65,- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x64,- 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74,- 0x61, 0x69, 0x6c, 0x1a, 0x32, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,+ 0x12, 0x6d, 0x0a, 0x1a, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e,+ 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74,+ 0x61, 0x69, 0x6c, 0x48, 0x00, 0x52, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,- 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x1a, 0xd5, 0x01, 0x0a, 0x23, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,- 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x65, 0x63,- 0x74, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64,- 0x75, 0x6c, 0x65, 0x52, 0x10, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x63, 0x68,- 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x48, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x5f,- 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52,- 0x0e, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x1a,- 0xb5, 0x01, 0x0a, 0x1b, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63, 0x6b,- 0x75, 0x70, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,- 0x4c, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65,- 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50,- 0x6c, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x10, 0x65, 0x78, 0x70,- 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x48, 0x0a,- 0x12, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 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, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x42, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x90, 0x01, 0x0a, 0x19, 0x44, 0x61, 0x74, 0x61,+ 0x71, 0x0a, 0x1c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x5f, 0x64, 0x72, 0x69, 0x66, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18,+ 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61,0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x72, 0x69, 0x66, 0x74, 0x44,- 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f,- 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72,- 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f,- 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x5f,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x63,- 0x74, 0x75, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x41,- 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x4e,- 0x4f, 0x4d, 0x41, 0x4c, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x53, 0x54,- 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10,- 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53,- 0x43, 0x48, 0x45, 0x4d, 0x41, 0x10, 0x02, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42,- 0x41, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43,- 0x59, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x1b, 0x0a,- 0x17, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50,- 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41,- 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f,- 0x4e, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f,- 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x52, 0x49, 0x46, 0x54, 0x10, 0x06, 0x22, 0x57,- 0x0a, 0x0f, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74,- 0x79, 0x12, 0x20, 0x0a, 0x1c, 0x41, 0x4e, 0x4f, 0x4d, 0x41, 0x4c, 0x59, 0x5f, 0x53, 0x45, 0x56,- 0x45, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x44, 0x49, 0x55, 0x4d, 0x10, 0x01, 0x12,- 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x49,- 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x03, 0x42, 0x08, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x32, 0x8c, 0x01, 0x0a, 0x0e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x53, 0x65, 0x72,- 0x76, 0x69, 0x63, 0x65, 0x12, 0x7a, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6e,- 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6e, 0x6f, 0x6d,- 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,- 0x68, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f,- 0x61, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68,- 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, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x00, 0x52, 0x19, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x72, 0x69, 0x66, 0x74, 0x44, 0x65, 0x74, 0x61,+ 0x69, 0x6c, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,+ 0x65, 0x18, 0x09, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,+ 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74,+ 0x69, 0x6d, 0x65, 0x18, 0x0a, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x32, 0x0a, 0x18, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,+ 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61,+ 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x1a, 0x32, 0x0a, 0x18, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x1a, 0x90,+ 0x01, 0x0a, 0x19, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x44, 0x72, 0x69, 0x66, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x25, 0x0a, 0x0e,+ 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x65, 0x72, 0x73,+ 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78,+ 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x23, 0x0a, 0x0d,+ 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x22, 0x8e, 0x01, 0x0a, 0x0b, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x54, 0x79, 0x70,+ 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x4e, 0x4f, 0x4d, 0x41, 0x4c, 0x59, 0x5f, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e,+ 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x49, 0x47, 0x52,+ 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x10, 0x02, 0x12, 0x17,+ 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45,+ 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x41, 0x54, 0x41, 0x42,+ 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x52, 0x49, 0x46, 0x54,+ 0x10, 0x06, 0x22, 0x57, 0x0a, 0x0f, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x53, 0x65, 0x76,+ 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x1c, 0x41, 0x4e, 0x4f, 0x4d, 0x41, 0x4c, 0x59,+ 0x5f, 0x53, 0x45, 0x56, 0x45, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x44, 0x49, 0x55,+ 0x4d, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x02, 0x12, 0x0c, 0x0a,+ 0x08, 0x43, 0x52, 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x03, 0x42, 0x08, 0x0a, 0x06, 0x64,+ 0x65, 0x74, 0x61, 0x69, 0x6c, 0x32, 0x8c, 0x01, 0x0a, 0x0e, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c,+ 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7a, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72,+ 0x63, 0x68, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,+ 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14,+ 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x3a, 0x73, 0x65,+ 0x61, 0x72, 0x63, 0x68, 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 (@@ -926,43 +715,34 @@ func file_v1_anomaly_service_proto_rawDescGZIP() []byte {}var file_v1_anomaly_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_v1_anomaly_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)+var file_v1_anomaly_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)var file_v1_anomaly_service_proto_goTypes = []interface{}{- (Anomaly_AnomalyType)(0), // 0: bytebase.v1.Anomaly.AnomalyType- (Anomaly_AnomalySeverity)(0), // 1: bytebase.v1.Anomaly.AnomalySeverity- (*SearchAnomaliesRequest)(nil), // 2: bytebase.v1.SearchAnomaliesRequest- (*SearchAnomaliesResponse)(nil), // 3: bytebase.v1.SearchAnomaliesResponse- (*Anomaly)(nil), // 4: bytebase.v1.Anomaly- (*Anomaly_InstanceConnectionDetail)(nil), // 5: bytebase.v1.Anomaly.InstanceConnectionDetail- (*Anomaly_DatabaseConnectionDetail)(nil), // 6: bytebase.v1.Anomaly.DatabaseConnectionDetail- (*Anomaly_DatabaseBackupPolicyViolationDetail)(nil), // 7: bytebase.v1.Anomaly.DatabaseBackupPolicyViolationDetail- (*Anomaly_DatabaseBackupMissingDetail)(nil), // 8: bytebase.v1.Anomaly.DatabaseBackupMissingDetail- (*Anomaly_DatabaseSchemaDriftDetail)(nil), // 9: bytebase.v1.Anomaly.DatabaseSchemaDriftDetail- (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp- (BackupPlanSchedule)(0), // 11: bytebase.v1.BackupPlanSchedule+ (Anomaly_AnomalyType)(0), // 0: bytebase.v1.Anomaly.AnomalyType+ (Anomaly_AnomalySeverity)(0), // 1: bytebase.v1.Anomaly.AnomalySeverity+ (*SearchAnomaliesRequest)(nil), // 2: bytebase.v1.SearchAnomaliesRequest+ (*SearchAnomaliesResponse)(nil), // 3: bytebase.v1.SearchAnomaliesResponse+ (*Anomaly)(nil), // 4: bytebase.v1.Anomaly+ (*Anomaly_InstanceConnectionDetail)(nil), // 5: bytebase.v1.Anomaly.InstanceConnectionDetail+ (*Anomaly_DatabaseConnectionDetail)(nil), // 6: bytebase.v1.Anomaly.DatabaseConnectionDetail+ (*Anomaly_DatabaseSchemaDriftDetail)(nil), // 7: bytebase.v1.Anomaly.DatabaseSchemaDriftDetail+ (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp}var file_v1_anomaly_service_proto_depIdxs = []int32{- 4, // 0: bytebase.v1.SearchAnomaliesResponse.anomalies:type_name -> bytebase.v1.Anomaly- 0, // 1: bytebase.v1.Anomaly.type:type_name -> bytebase.v1.Anomaly.AnomalyType- 1, // 2: bytebase.v1.Anomaly.severity:type_name -> bytebase.v1.Anomaly.AnomalySeverity- 5, // 3: bytebase.v1.Anomaly.instance_connection_detail:type_name -> bytebase.v1.Anomaly.InstanceConnectionDetail- 6, // 4: bytebase.v1.Anomaly.database_connection_detail:type_name -> bytebase.v1.Anomaly.DatabaseConnectionDetail- 7, // 5: bytebase.v1.Anomaly.database_backup_policy_violation_detail:type_name -> bytebase.v1.Anomaly.DatabaseBackupPolicyViolationDetail- 8, // 6: bytebase.v1.Anomaly.database_backup_missing_detail:type_name -> bytebase.v1.Anomaly.DatabaseBackupMissingDetail- 9, // 7: bytebase.v1.Anomaly.database_schema_drift_detail:type_name -> bytebase.v1.Anomaly.DatabaseSchemaDriftDetail- 10, // 8: bytebase.v1.Anomaly.create_time:type_name -> google.protobuf.Timestamp- 10, // 9: bytebase.v1.Anomaly.update_time:type_name -> google.protobuf.Timestamp- 11, // 10: bytebase.v1.Anomaly.DatabaseBackupPolicyViolationDetail.expected_schedule:type_name -> bytebase.v1.BackupPlanSchedule- 11, // 11: bytebase.v1.Anomaly.DatabaseBackupPolicyViolationDetail.actual_schedule:type_name -> bytebase.v1.BackupPlanSchedule- 11, // 12: bytebase.v1.Anomaly.DatabaseBackupMissingDetail.expected_schedule:type_name -> bytebase.v1.BackupPlanSchedule- 10, // 13: bytebase.v1.Anomaly.DatabaseBackupMissingDetail.latest_backup_time:type_name -> google.protobuf.Timestamp- 2, // 14: bytebase.v1.AnomalyService.SearchAnomalies:input_type -> bytebase.v1.SearchAnomaliesRequest- 3, // 15: bytebase.v1.AnomalyService.SearchAnomalies:output_type -> bytebase.v1.SearchAnomaliesResponse- 15, // [15:16] is the sub-list for method output_type- 14, // [14:15] is the sub-list for method input_type- 14, // [14:14] is the sub-list for extension type_name- 14, // [14:14] is the sub-list for extension extendee- 0, // [0:14] is the sub-list for field type_name+ 4, // 0: bytebase.v1.SearchAnomaliesResponse.anomalies:type_name -> bytebase.v1.Anomaly+ 0, // 1: bytebase.v1.Anomaly.type:type_name -> bytebase.v1.Anomaly.AnomalyType+ 1, // 2: bytebase.v1.Anomaly.severity:type_name -> bytebase.v1.Anomaly.AnomalySeverity+ 5, // 3: bytebase.v1.Anomaly.instance_connection_detail:type_name -> bytebase.v1.Anomaly.InstanceConnectionDetail+ 6, // 4: bytebase.v1.Anomaly.database_connection_detail:type_name -> bytebase.v1.Anomaly.DatabaseConnectionDetail+ 7, // 5: bytebase.v1.Anomaly.database_schema_drift_detail:type_name -> bytebase.v1.Anomaly.DatabaseSchemaDriftDetail+ 8, // 6: bytebase.v1.Anomaly.create_time:type_name -> google.protobuf.Timestamp+ 8, // 7: bytebase.v1.Anomaly.update_time:type_name -> google.protobuf.Timestamp+ 2, // 8: bytebase.v1.AnomalyService.SearchAnomalies:input_type -> bytebase.v1.SearchAnomaliesRequest+ 3, // 9: bytebase.v1.AnomalyService.SearchAnomalies:output_type -> bytebase.v1.SearchAnomaliesResponse+ 9, // [9:10] is the sub-list for method output_type+ 8, // [8:9] is the sub-list for method input_type+ 8, // [8:8] is the sub-list for extension type_name+ 8, // [8:8] is the sub-list for extension extendee+ 0, // [0:8] is the sub-list for field type_name}func init() { file_v1_anomaly_service_proto_init() }@@ -970,7 +750,6 @@ func file_v1_anomaly_service_proto_init() {if File_v1_anomaly_service_proto != nil {return}- file_v1_org_policy_service_proto_init()if !protoimpl.UnsafeEnabled {file_v1_anomaly_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SearchAnomaliesRequest); i {@@ -1033,30 +812,6 @@ func file_v1_anomaly_service_proto_init() {}}file_v1_anomaly_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Anomaly_DatabaseBackupPolicyViolationDetail); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_anomaly_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Anomaly_DatabaseBackupMissingDetail); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_anomaly_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Anomaly_DatabaseSchemaDriftDetail); i {case 0:return &v.state@@ -1072,8 +827,6 @@ func file_v1_anomaly_service_proto_init() {file_v1_anomaly_service_proto_msgTypes[2].OneofWrappers = []interface{}{(*Anomaly_InstanceConnectionDetail_)(nil),(*Anomaly_DatabaseConnectionDetail_)(nil),- (*Anomaly_DatabaseBackupPolicyViolationDetail_)(nil),- (*Anomaly_DatabaseBackupMissingDetail_)(nil),(*Anomaly_DatabaseSchemaDriftDetail_)(nil),}type x struct{}@@ -1082,7 +835,7 @@ func file_v1_anomaly_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_anomaly_service_proto_rawDesc,NumEnums: 2,- NumMessages: 8,+ NumMessages: 6,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/database_service.pb.go b/proto/generated-go/v1/database_service.pb.goindex c1b4364929..2fa77e878b 100644--- a/proto/generated-go/v1/database_service.pb.go+++ b/proto/generated-go/v1/database_service.pb.go@@ -198,7 +198,7 @@ func (x TablePartitionMetadata_Type) Number() protoreflect.EnumNumber {// Deprecated: Use TablePartitionMetadata_Type.Descriptor instead.func (TablePartitionMetadata_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{25, 0}+ return file_v1_database_service_proto_rawDescGZIP(), []int{20, 0}}type TaskMetadata_State int32@@ -247,7 +247,7 @@ func (x TaskMetadata_State) Number() protoreflect.EnumNumber {// Deprecated: Use TaskMetadata_State.Descriptor instead.func (TaskMetadata_State) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{31, 0}+ return file_v1_database_service_proto_rawDescGZIP(), []int{26, 0}}type StreamMetadata_Type int32@@ -293,7 +293,7 @@ func (x StreamMetadata_Type) Number() protoreflect.EnumNumber {// Deprecated: Use StreamMetadata_Type.Descriptor instead.func (StreamMetadata_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{32, 0}+ return file_v1_database_service_proto_rawDescGZIP(), []int{27, 0}}type StreamMetadata_Mode int32@@ -345,121 +345,7 @@ func (x StreamMetadata_Mode) Number() protoreflect.EnumNumber {// Deprecated: Use StreamMetadata_Mode.Descriptor instead.func (StreamMetadata_Mode) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{32, 1}-}--// The type of the backup.-type Backup_BackupType int32--const (- // The type of the backup is unknown.- Backup_BACKUP_TYPE_UNSPECIFIED Backup_BackupType = 0- // The backup is created by user.- Backup_MANUAL Backup_BackupType = 1- // The backup is created by automatic backup.- Backup_AUTOMATIC Backup_BackupType = 2- // The backup is created automatically after doing PITR.- Backup_PITR Backup_BackupType = 3-)--// Enum value maps for Backup_BackupType.-var (- Backup_BackupType_name = map[int32]string{- 0: "BACKUP_TYPE_UNSPECIFIED",- 1: "MANUAL",- 2: "AUTOMATIC",- 3: "PITR",- }- Backup_BackupType_value = map[string]int32{- "BACKUP_TYPE_UNSPECIFIED": 0,- "MANUAL": 1,- "AUTOMATIC": 2,- "PITR": 3,- }-)--func (x Backup_BackupType) Enum() *Backup_BackupType {- p := new(Backup_BackupType)- *p = x- return p-}--func (x Backup_BackupType) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (Backup_BackupType) Descriptor() protoreflect.EnumDescriptor {- return file_v1_database_service_proto_enumTypes[6].Descriptor()-}--func (Backup_BackupType) Type() protoreflect.EnumType {- return &file_v1_database_service_proto_enumTypes[6]-}--func (x Backup_BackupType) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use Backup_BackupType.Descriptor instead.-func (Backup_BackupType) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{42, 0}-}--// The state of the backup.-type Backup_BackupState int32--const (- // The state of the backup is unknown.- Backup_BACKUP_STATE_UNSPECIFIED Backup_BackupState = 0- // The backup is being pending to create.- Backup_PENDING_CREATE Backup_BackupState = 1- // The backup is ready to use.- Backup_DONE Backup_BackupState = 2- // The backup is being deleted.- Backup_FAILED Backup_BackupState = 3-)--// Enum value maps for Backup_BackupState.-var (- Backup_BackupState_name = map[int32]string{- 0: "BACKUP_STATE_UNSPECIFIED",- 1: "PENDING_CREATE",- 2: "DONE",- 3: "FAILED",- }- Backup_BackupState_value = map[string]int32{- "BACKUP_STATE_UNSPECIFIED": 0,- "PENDING_CREATE": 1,- "DONE": 2,- "FAILED": 3,- }-)--func (x Backup_BackupState) Enum() *Backup_BackupState {- p := new(Backup_BackupState)- *p = x- return p-}--func (x Backup_BackupState) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (Backup_BackupState) Descriptor() protoreflect.EnumDescriptor {- return file_v1_database_service_proto_enumTypes[7].Descriptor()-}--func (Backup_BackupState) Type() protoreflect.EnumType {- return &file_v1_database_service_proto_enumTypes[7]-}--func (x Backup_BackupState) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use Backup_BackupState.Descriptor instead.-func (Backup_BackupState) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{42, 1}+ return file_v1_database_service_proto_rawDescGZIP(), []int{27, 1}}type ChangeHistory_Source int32@@ -498,11 +384,11 @@ func (x ChangeHistory_Source) String() string {}func (ChangeHistory_Source) Descriptor() protoreflect.EnumDescriptor {- return file_v1_database_service_proto_enumTypes[8].Descriptor()+ return file_v1_database_service_proto_enumTypes[6].Descriptor()}func (ChangeHistory_Source) Type() protoreflect.EnumType {- return &file_v1_database_service_proto_enumTypes[8]+ return &file_v1_database_service_proto_enumTypes[6]}func (x ChangeHistory_Source) Number() protoreflect.EnumNumber {@@ -511,7 +397,7 @@ func (x ChangeHistory_Source) Number() protoreflect.EnumNumber {// Deprecated: Use ChangeHistory_Source.Descriptor instead.func (ChangeHistory_Source) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{55, 0}+ return file_v1_database_service_proto_rawDescGZIP(), []int{48, 0}}type ChangeHistory_Type int32@@ -559,11 +445,11 @@ func (x ChangeHistory_Type) String() string {}func (ChangeHistory_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_database_service_proto_enumTypes[9].Descriptor()+ return file_v1_database_service_proto_enumTypes[7].Descriptor()}func (ChangeHistory_Type) Type() protoreflect.EnumType {- return &file_v1_database_service_proto_enumTypes[9]+ return &file_v1_database_service_proto_enumTypes[7]}func (x ChangeHistory_Type) Number() protoreflect.EnumNumber {@@ -572,7 +458,7 @@ func (x ChangeHistory_Type) Number() protoreflect.EnumNumber {// Deprecated: Use ChangeHistory_Type.Descriptor instead.func (ChangeHistory_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{55, 1}+ return file_v1_database_service_proto_rawDescGZIP(), []int{48, 1}}type ChangeHistory_Status int32@@ -611,11 +497,11 @@ func (x ChangeHistory_Status) String() string {}func (ChangeHistory_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_database_service_proto_enumTypes[10].Descriptor()+ return file_v1_database_service_proto_enumTypes[8].Descriptor()}func (ChangeHistory_Status) Type() protoreflect.EnumType {- return &file_v1_database_service_proto_enumTypes[10]+ return &file_v1_database_service_proto_enumTypes[8]}func (x ChangeHistory_Status) Number() protoreflect.EnumNumber {@@ -624,7 +510,7 @@ func (x ChangeHistory_Status) Number() protoreflect.EnumNumber {// Deprecated: Use ChangeHistory_Status.Descriptor instead.func (ChangeHistory_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{55, 2}+ return file_v1_database_service_proto_rawDescGZIP(), []int{48, 2}}type GetDatabaseRequest struct {@@ -1577,294 +1463,6 @@ func (x *DiffSchemaResponse) GetDiff() string {return ""}-type GetBackupSettingRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the database to retrieve backup setting.- // Format: instances/{instance}/databases/{database}/backupSetting- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`-}--func (x *GetBackupSettingRequest) Reset() {- *x = GetBackupSettingRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[15]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *GetBackupSettingRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*GetBackupSettingRequest) ProtoMessage() {}--func (x *GetBackupSettingRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[15]- 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 GetBackupSettingRequest.ProtoReflect.Descriptor instead.-func (*GetBackupSettingRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{15}-}--func (x *GetBackupSettingRequest) GetName() string {- if x != nil {- return x.Name- }- return ""-}--type UpdateBackupSettingRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The database backup setting to update.- Setting *BackupSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`-}--func (x *UpdateBackupSettingRequest) Reset() {- *x = UpdateBackupSettingRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[16]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *UpdateBackupSettingRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*UpdateBackupSettingRequest) ProtoMessage() {}--func (x *UpdateBackupSettingRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[16]- 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 UpdateBackupSettingRequest.ProtoReflect.Descriptor instead.-func (*UpdateBackupSettingRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{16}-}--func (x *UpdateBackupSettingRequest) GetSetting() *BackupSetting {- if x != nil {- return x.Setting- }- return nil-}--// CreateBackupRequest is the request message for CreateBackup.-type CreateBackupRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The parent resource where this backup will be created.- // Format: instances/{instance}/databases/{database}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- Backup *Backup `protobuf:"bytes,2,opt,name=backup,proto3" json:"backup,omitempty"`-}--func (x *CreateBackupRequest) Reset() {- *x = CreateBackupRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[17]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *CreateBackupRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*CreateBackupRequest) ProtoMessage() {}--func (x *CreateBackupRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[17]- 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 CreateBackupRequest.ProtoReflect.Descriptor instead.-func (*CreateBackupRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{17}-}--func (x *CreateBackupRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *CreateBackupRequest) GetBackup() *Backup {- if x != nil {- return x.Backup- }- return nil-}--// ListBackupsRequest is the request message for ListBackup.-type ListBackupsRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The parent resource where this backup will be created.- // Format: instances/{instance}/databases/{database}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // Not used. The maximum number of backups to return. The service may return fewer than- // this value.- // If unspecified, at most 50 backups will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`- // Not used. A page token, received from a previous `ListBackup` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListBackup` must match- // the call that provided the page token.- PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`-}--func (x *ListBackupsRequest) Reset() {- *x = ListBackupsRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[18]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListBackupsRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListBackupsRequest) ProtoMessage() {}--func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[18]- 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 ListBackupsRequest.ProtoReflect.Descriptor instead.-func (*ListBackupsRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{18}-}--func (x *ListBackupsRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *ListBackupsRequest) GetPageSize() int32 {- if x != nil {- return x.PageSize- }- return 0-}--func (x *ListBackupsRequest) GetPageToken() string {- if x != nil {- return x.PageToken- }- return ""-}--type ListBackupsResponse struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The backups from the specified request.- Backups []*Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"`- // Not used. A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`-}--func (x *ListBackupsResponse) Reset() {- *x = ListBackupsResponse{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[19]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListBackupsResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListBackupsResponse) ProtoMessage() {}--func (x *ListBackupsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[19]- 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 ListBackupsResponse.ProtoReflect.Descriptor instead.-func (*ListBackupsResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{19}-}--func (x *ListBackupsResponse) GetBackups() []*Backup {- if x != nil {- return x.Backups- }- return nil-}--func (x *ListBackupsResponse) GetNextPageToken() string {- if x != nil {- return x.NextPageToken- }- return ""-}-type Database struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1900,7 +1498,7 @@ type Database struct {func (x *Database) Reset() {*x = Database{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[20]+ mi := &file_v1_database_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1913,7 +1511,7 @@ func (x *Database) String() string {func (*Database) ProtoMessage() {}func (x *Database) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[20]+ mi := &file_v1_database_service_proto_msgTypes[15]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1926,7 +1524,7 @@ func (x *Database) ProtoReflect() protoreflect.Message {// Deprecated: Use Database.ProtoReflect.Descriptor instead.func (*Database) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{20}+ return file_v1_database_service_proto_rawDescGZIP(), []int{15}}func (x *Database) GetName() string {@@ -2024,7 +1622,7 @@ type DatabaseMetadata struct {func (x *DatabaseMetadata) Reset() {*x = DatabaseMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[21]+ mi := &file_v1_database_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2037,7 +1635,7 @@ func (x *DatabaseMetadata) String() string {func (*DatabaseMetadata) ProtoMessage() {}func (x *DatabaseMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[21]+ mi := &file_v1_database_service_proto_msgTypes[16]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2050,7 +1648,7 @@ func (x *DatabaseMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use DatabaseMetadata.ProtoReflect.Descriptor instead.func (*DatabaseMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{21}+ return file_v1_database_service_proto_rawDescGZIP(), []int{16}}func (x *DatabaseMetadata) GetName() string {@@ -2124,7 +1722,7 @@ type SchemaMetadata struct {func (x *SchemaMetadata) Reset() {*x = SchemaMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[22]+ mi := &file_v1_database_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2137,7 +1735,7 @@ func (x *SchemaMetadata) String() string {func (*SchemaMetadata) ProtoMessage() {}func (x *SchemaMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[22]+ mi := &file_v1_database_service_proto_msgTypes[17]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2150,7 +1748,7 @@ func (x *SchemaMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use SchemaMetadata.ProtoReflect.Descriptor instead.func (*SchemaMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{22}+ return file_v1_database_service_proto_rawDescGZIP(), []int{17}}func (x *SchemaMetadata) GetName() string {@@ -2227,7 +1825,7 @@ type ExternalTableMetadata struct {func (x *ExternalTableMetadata) Reset() {*x = ExternalTableMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[23]+ mi := &file_v1_database_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2240,7 +1838,7 @@ func (x *ExternalTableMetadata) String() string {func (*ExternalTableMetadata) ProtoMessage() {}func (x *ExternalTableMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[23]+ mi := &file_v1_database_service_proto_msgTypes[18]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2253,7 +1851,7 @@ func (x *ExternalTableMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use ExternalTableMetadata.ProtoReflect.Descriptor instead.func (*ExternalTableMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{23}+ return file_v1_database_service_proto_rawDescGZIP(), []int{18}}func (x *ExternalTableMetadata) GetName() string {@@ -2326,7 +1924,7 @@ type TableMetadata struct {func (x *TableMetadata) Reset() {*x = TableMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[24]+ mi := &file_v1_database_service_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2339,7 +1937,7 @@ func (x *TableMetadata) String() string {func (*TableMetadata) ProtoMessage() {}func (x *TableMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[24]+ mi := &file_v1_database_service_proto_msgTypes[19]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2352,7 +1950,7 @@ func (x *TableMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use TableMetadata.ProtoReflect.Descriptor instead.func (*TableMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{24}+ return file_v1_database_service_proto_rawDescGZIP(), []int{19}}func (x *TableMetadata) GetName() string {@@ -2496,7 +2094,7 @@ type TablePartitionMetadata struct {func (x *TablePartitionMetadata) Reset() {*x = TablePartitionMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[25]+ mi := &file_v1_database_service_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2509,7 +2107,7 @@ func (x *TablePartitionMetadata) String() string {func (*TablePartitionMetadata) ProtoMessage() {}func (x *TablePartitionMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[25]+ mi := &file_v1_database_service_proto_msgTypes[20]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2522,7 +2120,7 @@ func (x *TablePartitionMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use TablePartitionMetadata.ProtoReflect.Descriptor instead.func (*TablePartitionMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{25}+ return file_v1_database_service_proto_rawDescGZIP(), []int{20}}func (x *TablePartitionMetadata) GetName() string {@@ -2612,7 +2210,7 @@ type ColumnMetadata struct {func (x *ColumnMetadata) Reset() {*x = ColumnMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[26]+ mi := &file_v1_database_service_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2625,7 +2223,7 @@ func (x *ColumnMetadata) String() string {func (*ColumnMetadata) ProtoMessage() {}func (x *ColumnMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[26]+ mi := &file_v1_database_service_proto_msgTypes[21]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2638,7 +2236,7 @@ func (x *ColumnMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use ColumnMetadata.ProtoReflect.Descriptor instead.func (*ColumnMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{26}+ return file_v1_database_service_proto_rawDescGZIP(), []int{21}}func (x *ColumnMetadata) GetName() string {@@ -2794,7 +2392,7 @@ type ViewMetadata struct {func (x *ViewMetadata) Reset() {*x = ViewMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[27]+ mi := &file_v1_database_service_proto_msgTypes[22]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2807,7 +2405,7 @@ func (x *ViewMetadata) String() string {func (*ViewMetadata) ProtoMessage() {}func (x *ViewMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[27]+ mi := &file_v1_database_service_proto_msgTypes[22]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2820,7 +2418,7 @@ func (x *ViewMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use ViewMetadata.ProtoReflect.Descriptor instead.func (*ViewMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{27}+ return file_v1_database_service_proto_rawDescGZIP(), []int{22}}func (x *ViewMetadata) GetName() string {@@ -2868,7 +2466,7 @@ type DependentColumn struct {func (x *DependentColumn) Reset() {*x = DependentColumn{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[28]+ mi := &file_v1_database_service_proto_msgTypes[23]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2881,7 +2479,7 @@ func (x *DependentColumn) String() string {func (*DependentColumn) ProtoMessage() {}func (x *DependentColumn) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[28]+ mi := &file_v1_database_service_proto_msgTypes[23]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2894,7 +2492,7 @@ func (x *DependentColumn) ProtoReflect() protoreflect.Message {// Deprecated: Use DependentColumn.ProtoReflect.Descriptor instead.func (*DependentColumn) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{28}+ return file_v1_database_service_proto_rawDescGZIP(), []int{23}}func (x *DependentColumn) GetSchema() string {@@ -2937,7 +2535,7 @@ type MaterializedViewMetadata struct {func (x *MaterializedViewMetadata) Reset() {*x = MaterializedViewMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[29]+ mi := &file_v1_database_service_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2950,7 +2548,7 @@ func (x *MaterializedViewMetadata) String() string {func (*MaterializedViewMetadata) ProtoMessage() {}func (x *MaterializedViewMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[29]+ mi := &file_v1_database_service_proto_msgTypes[24]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2963,7 +2561,7 @@ func (x *MaterializedViewMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use MaterializedViewMetadata.ProtoReflect.Descriptor instead.func (*MaterializedViewMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{29}+ return file_v1_database_service_proto_rawDescGZIP(), []int{24}}func (x *MaterializedViewMetadata) GetName() string {@@ -3009,7 +2607,7 @@ type FunctionMetadata struct {func (x *FunctionMetadata) Reset() {*x = FunctionMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[30]+ mi := &file_v1_database_service_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3022,7 +2620,7 @@ func (x *FunctionMetadata) String() string {func (*FunctionMetadata) ProtoMessage() {}func (x *FunctionMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[30]+ mi := &file_v1_database_service_proto_msgTypes[25]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3035,7 +2633,7 @@ func (x *FunctionMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use FunctionMetadata.ProtoReflect.Descriptor instead.func (*FunctionMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{30}+ return file_v1_database_service_proto_rawDescGZIP(), []int{25}}func (x *FunctionMetadata) GetName() string {@@ -3083,7 +2681,7 @@ type TaskMetadata struct {func (x *TaskMetadata) Reset() {*x = TaskMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[31]+ mi := &file_v1_database_service_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3096,7 +2694,7 @@ func (x *TaskMetadata) String() string {func (*TaskMetadata) ProtoMessage() {}func (x *TaskMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[31]+ mi := &file_v1_database_service_proto_msgTypes[26]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3109,7 +2707,7 @@ func (x *TaskMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use TaskMetadata.ProtoReflect.Descriptor instead.func (*TaskMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{31}+ return file_v1_database_service_proto_rawDescGZIP(), []int{26}}func (x *TaskMetadata) GetName() string {@@ -3208,7 +2806,7 @@ type StreamMetadata struct {func (x *StreamMetadata) Reset() {*x = StreamMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[32]+ mi := &file_v1_database_service_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3221,7 +2819,7 @@ func (x *StreamMetadata) String() string {func (*StreamMetadata) ProtoMessage() {}func (x *StreamMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[32]+ mi := &file_v1_database_service_proto_msgTypes[27]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3234,7 +2832,7 @@ func (x *StreamMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use StreamMetadata.ProtoReflect.Descriptor instead.func (*StreamMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{32}+ return file_v1_database_service_proto_rawDescGZIP(), []int{27}}func (x *StreamMetadata) GetName() string {@@ -3324,7 +2922,7 @@ type IndexMetadata struct {func (x *IndexMetadata) Reset() {*x = IndexMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[33]+ mi := &file_v1_database_service_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3337,7 +2935,7 @@ func (x *IndexMetadata) String() string {func (*IndexMetadata) ProtoMessage() {}func (x *IndexMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[33]+ mi := &file_v1_database_service_proto_msgTypes[28]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3350,7 +2948,7 @@ func (x *IndexMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use IndexMetadata.ProtoReflect.Descriptor instead.func (*IndexMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{33}+ return file_v1_database_service_proto_rawDescGZIP(), []int{28}}func (x *IndexMetadata) GetName() string {@@ -3435,7 +3033,7 @@ type ExtensionMetadata struct {func (x *ExtensionMetadata) Reset() {*x = ExtensionMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[34]+ mi := &file_v1_database_service_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3448,7 +3046,7 @@ func (x *ExtensionMetadata) String() string {func (*ExtensionMetadata) ProtoMessage() {}func (x *ExtensionMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[34]+ mi := &file_v1_database_service_proto_msgTypes[29]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3461,7 +3059,7 @@ func (x *ExtensionMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use ExtensionMetadata.ProtoReflect.Descriptor instead.func (*ExtensionMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{34}+ return file_v1_database_service_proto_rawDescGZIP(), []int{29}}func (x *ExtensionMetadata) GetName() string {@@ -3522,7 +3120,7 @@ type ForeignKeyMetadata struct {func (x *ForeignKeyMetadata) Reset() {*x = ForeignKeyMetadata{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[35]+ mi := &file_v1_database_service_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3535,7 +3133,7 @@ func (x *ForeignKeyMetadata) String() string {func (*ForeignKeyMetadata) ProtoMessage() {}func (x *ForeignKeyMetadata) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[35]+ mi := &file_v1_database_service_proto_msgTypes[30]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3548,7 +3146,7 @@ func (x *ForeignKeyMetadata) ProtoReflect() protoreflect.Message {// Deprecated: Use ForeignKeyMetadata.ProtoReflect.Descriptor instead.func (*ForeignKeyMetadata) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{35}+ return file_v1_database_service_proto_rawDescGZIP(), []int{30}}func (x *ForeignKeyMetadata) GetName() string {@@ -3620,7 +3218,7 @@ type DatabaseConfig struct {func (x *DatabaseConfig) Reset() {*x = DatabaseConfig{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[36]+ mi := &file_v1_database_service_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3633,7 +3231,7 @@ func (x *DatabaseConfig) String() string {func (*DatabaseConfig) ProtoMessage() {}func (x *DatabaseConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[36]+ mi := &file_v1_database_service_proto_msgTypes[31]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3646,7 +3244,7 @@ func (x *DatabaseConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use DatabaseConfig.ProtoReflect.Descriptor instead.func (*DatabaseConfig) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{36}+ return file_v1_database_service_proto_rawDescGZIP(), []int{31}}func (x *DatabaseConfig) GetName() string {@@ -3678,7 +3276,7 @@ type SchemaConfig struct {func (x *SchemaConfig) Reset() {*x = SchemaConfig{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[37]+ mi := &file_v1_database_service_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3691,7 +3289,7 @@ func (x *SchemaConfig) String() string {func (*SchemaConfig) ProtoMessage() {}func (x *SchemaConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[37]+ mi := &file_v1_database_service_proto_msgTypes[32]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3704,7 +3302,7 @@ func (x *SchemaConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use SchemaConfig.ProtoReflect.Descriptor instead.func (*SchemaConfig) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{37}+ return file_v1_database_service_proto_rawDescGZIP(), []int{32}}func (x *SchemaConfig) GetName() string {@@ -3735,7 +3333,7 @@ type TableConfig struct {func (x *TableConfig) Reset() {*x = TableConfig{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[38]+ mi := &file_v1_database_service_proto_msgTypes[33]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3748,7 +3346,7 @@ func (x *TableConfig) String() string {func (*TableConfig) ProtoMessage() {}func (x *TableConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[38]+ mi := &file_v1_database_service_proto_msgTypes[33]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3761,7 +3359,7 @@ func (x *TableConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use TableConfig.ProtoReflect.Descriptor instead.func (*TableConfig) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{38}+ return file_v1_database_service_proto_rawDescGZIP(), []int{33}}func (x *TableConfig) GetName() string {@@ -3793,7 +3391,7 @@ type ColumnConfig struct {func (x *ColumnConfig) Reset() {*x = ColumnConfig{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[39]+ mi := &file_v1_database_service_proto_msgTypes[34]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3806,7 +3404,7 @@ func (x *ColumnConfig) String() string {func (*ColumnConfig) ProtoMessage() {}func (x *ColumnConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[39]+ mi := &file_v1_database_service_proto_msgTypes[34]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3819,7 +3417,7 @@ func (x *ColumnConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use ColumnConfig.ProtoReflect.Descriptor instead.func (*ColumnConfig) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{39}+ return file_v1_database_service_proto_rawDescGZIP(), []int{34}}func (x *ColumnConfig) GetName() string {@@ -3856,7 +3454,7 @@ type DatabaseSchema struct {func (x *DatabaseSchema) Reset() {*x = DatabaseSchema{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[40]+ mi := &file_v1_database_service_proto_msgTypes[35]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3869,7 +3467,7 @@ func (x *DatabaseSchema) String() string {func (*DatabaseSchema) ProtoMessage() {}func (x *DatabaseSchema) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[40]+ mi := &file_v1_database_service_proto_msgTypes[35]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3882,7 +3480,7 @@ func (x *DatabaseSchema) ProtoReflect() protoreflect.Message {// Deprecated: Use DatabaseSchema.ProtoReflect.Descriptor instead.func (*DatabaseSchema) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{40}+ return file_v1_database_service_proto_rawDescGZIP(), []int{35}}func (x *DatabaseSchema) GetSchema() string {@@ -3892,192 +3490,6 @@ func (x *DatabaseSchema) GetSchema() string {return ""}-// BackupSetting is the setting for database backup.-type BackupSetting struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the database backup setting.- // Format: instances/{instance}/databases/{database}/backupSetting- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The default maximum age of a Backup created via this BackupPlan.- // If specified, a Backup will be automatically deleted after its age reaches.- // If not specified, Backups created under this BackupPlan will be deleted after 7 DAYS.- // It will be rounded up to the number of days.- BackupRetainDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=backup_retain_duration,json=backupRetainDuration,proto3" json:"backup_retain_duration,omitempty"`- // Cron(https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups.- // Support hour of day, day of week. (UTC time)- //- // Default (empty): Disable automatic backup.- CronSchedule string `protobuf:"bytes,3,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"`- // hook_url(https://www.bytebase.com/docs/disaster-recovery/backup/#post-backup-webhook) is the URL to send a notification when a backup is created.- HookUrl string `protobuf:"bytes,4,opt,name=hook_url,json=hookUrl,proto3" json:"hook_url,omitempty"`-}--func (x *BackupSetting) Reset() {- *x = BackupSetting{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[41]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *BackupSetting) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*BackupSetting) ProtoMessage() {}--func (x *BackupSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[41]- 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 BackupSetting.ProtoReflect.Descriptor instead.-func (*BackupSetting) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{41}-}--func (x *BackupSetting) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *BackupSetting) GetBackupRetainDuration() *durationpb.Duration {- if x != nil {- return x.BackupRetainDuration- }- return nil-}--func (x *BackupSetting) GetCronSchedule() string {- if x != nil {- return x.CronSchedule- }- return ""-}--func (x *BackupSetting) GetHookUrl() string {- if x != nil {- return x.HookUrl- }- return ""-}--// The message of the backup.-type Backup struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the database backup. backup-name is specified by the client.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The timestamp when the backup resource was created initially.- CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`- // The timestamp when the backup resource was updated.- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`- // The state of the backup.- State Backup_BackupState `protobuf:"varint,4,opt,name=state,proto3,enum=bytebase.v1.Backup_BackupState" json:"state,omitempty"`- // The type of the backup.- BackupType Backup_BackupType `protobuf:"varint,5,opt,name=backup_type,json=backupType,proto3,enum=bytebase.v1.Backup_BackupType" json:"backup_type,omitempty"`- // The comment of the backup.- Comment string `protobuf:"bytes,6,opt,name=comment,proto3" json:"comment,omitempty"`- Uid string `protobuf:"bytes,7,opt,name=uid,proto3" json:"uid,omitempty"`-}--func (x *Backup) Reset() {- *x = Backup{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[42]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Backup) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Backup) ProtoMessage() {}--func (x *Backup) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[42]- 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 Backup.ProtoReflect.Descriptor instead.-func (*Backup) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{42}-}--func (x *Backup) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *Backup) GetCreateTime() *timestamppb.Timestamp {- if x != nil {- return x.CreateTime- }- return nil-}--func (x *Backup) GetUpdateTime() *timestamppb.Timestamp {- if x != nil {- return x.UpdateTime- }- return nil-}--func (x *Backup) GetState() Backup_BackupState {- if x != nil {- return x.State- }- return Backup_BACKUP_STATE_UNSPECIFIED-}--func (x *Backup) GetBackupType() Backup_BackupType {- if x != nil {- return x.BackupType- }- return Backup_BACKUP_TYPE_UNSPECIFIED-}--func (x *Backup) GetComment() string {- if x != nil {- return x.Comment- }- return ""-}--func (x *Backup) GetUid() string {- if x != nil {- return x.Uid- }- return ""-}-// ListSlowQueriesRequest is the request of listing slow query.type ListSlowQueriesRequest struct {state protoimpl.MessageState@@ -4112,7 +3524,7 @@ type ListSlowQueriesRequest struct {func (x *ListSlowQueriesRequest) Reset() {*x = ListSlowQueriesRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[43]+ mi := &file_v1_database_service_proto_msgTypes[36]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4125,7 +3537,7 @@ func (x *ListSlowQueriesRequest) String() string {func (*ListSlowQueriesRequest) ProtoMessage() {}func (x *ListSlowQueriesRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[43]+ mi := &file_v1_database_service_proto_msgTypes[36]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4138,7 +3550,7 @@ func (x *ListSlowQueriesRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ListSlowQueriesRequest.ProtoReflect.Descriptor instead.func (*ListSlowQueriesRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{43}+ return file_v1_database_service_proto_rawDescGZIP(), []int{36}}func (x *ListSlowQueriesRequest) GetParent() string {@@ -4175,7 +3587,7 @@ type ListSlowQueriesResponse struct {func (x *ListSlowQueriesResponse) Reset() {*x = ListSlowQueriesResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[44]+ mi := &file_v1_database_service_proto_msgTypes[37]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4188,7 +3600,7 @@ func (x *ListSlowQueriesResponse) String() string {func (*ListSlowQueriesResponse) ProtoMessage() {}func (x *ListSlowQueriesResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[44]+ mi := &file_v1_database_service_proto_msgTypes[37]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4201,7 +3613,7 @@ func (x *ListSlowQueriesResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ListSlowQueriesResponse.ProtoReflect.Descriptor instead.func (*ListSlowQueriesResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{44}+ return file_v1_database_service_proto_rawDescGZIP(), []int{37}}func (x *ListSlowQueriesResponse) GetSlowQueryLogs() []*SlowQueryLog {@@ -4230,7 +3642,7 @@ type SlowQueryLog struct {func (x *SlowQueryLog) Reset() {*x = SlowQueryLog{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[45]+ mi := &file_v1_database_service_proto_msgTypes[38]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4243,7 +3655,7 @@ func (x *SlowQueryLog) String() string {func (*SlowQueryLog) ProtoMessage() {}func (x *SlowQueryLog) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[45]+ mi := &file_v1_database_service_proto_msgTypes[38]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4256,7 +3668,7 @@ func (x *SlowQueryLog) ProtoReflect() protoreflect.Message {// Deprecated: Use SlowQueryLog.ProtoReflect.Descriptor instead.func (*SlowQueryLog) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{45}+ return file_v1_database_service_proto_rawDescGZIP(), []int{38}}func (x *SlowQueryLog) GetResource() string {@@ -4315,7 +3727,7 @@ type SlowQueryStatistics struct {func (x *SlowQueryStatistics) Reset() {*x = SlowQueryStatistics{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[46]+ mi := &file_v1_database_service_proto_msgTypes[39]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4328,7 +3740,7 @@ func (x *SlowQueryStatistics) String() string {func (*SlowQueryStatistics) ProtoMessage() {}func (x *SlowQueryStatistics) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[46]+ mi := &file_v1_database_service_proto_msgTypes[39]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4341,7 +3753,7 @@ func (x *SlowQueryStatistics) ProtoReflect() protoreflect.Message {// Deprecated: Use SlowQueryStatistics.ProtoReflect.Descriptor instead.func (*SlowQueryStatistics) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{46}+ return file_v1_database_service_proto_rawDescGZIP(), []int{39}}func (x *SlowQueryStatistics) GetSqlFingerprint() string {@@ -4451,7 +3863,7 @@ type SlowQueryDetails struct {func (x *SlowQueryDetails) Reset() {*x = SlowQueryDetails{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[47]+ mi := &file_v1_database_service_proto_msgTypes[40]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4464,7 +3876,7 @@ func (x *SlowQueryDetails) String() string {func (*SlowQueryDetails) ProtoMessage() {}func (x *SlowQueryDetails) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[47]+ mi := &file_v1_database_service_proto_msgTypes[40]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4477,7 +3889,7 @@ func (x *SlowQueryDetails) ProtoReflect() protoreflect.Message {// Deprecated: Use SlowQueryDetails.ProtoReflect.Descriptor instead.func (*SlowQueryDetails) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{47}+ return file_v1_database_service_proto_rawDescGZIP(), []int{40}}func (x *SlowQueryDetails) GetStartTime() *timestamppb.Timestamp {@@ -4546,7 +3958,7 @@ type ListSecretsRequest struct {func (x *ListSecretsRequest) Reset() {*x = ListSecretsRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[48]+ mi := &file_v1_database_service_proto_msgTypes[41]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4559,7 +3971,7 @@ func (x *ListSecretsRequest) String() string {func (*ListSecretsRequest) ProtoMessage() {}func (x *ListSecretsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[48]+ mi := &file_v1_database_service_proto_msgTypes[41]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4572,7 +3984,7 @@ func (x *ListSecretsRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ListSecretsRequest.ProtoReflect.Descriptor instead.func (*ListSecretsRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{48}+ return file_v1_database_service_proto_rawDescGZIP(), []int{41}}func (x *ListSecretsRequest) GetParent() string {@@ -4611,7 +4023,7 @@ type ListSecretsResponse struct {func (x *ListSecretsResponse) Reset() {*x = ListSecretsResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[49]+ mi := &file_v1_database_service_proto_msgTypes[42]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4624,7 +4036,7 @@ func (x *ListSecretsResponse) String() string {func (*ListSecretsResponse) ProtoMessage() {}func (x *ListSecretsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[49]+ mi := &file_v1_database_service_proto_msgTypes[42]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4637,7 +4049,7 @@ func (x *ListSecretsResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ListSecretsResponse.ProtoReflect.Descriptor instead.func (*ListSecretsResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{49}+ return file_v1_database_service_proto_rawDescGZIP(), []int{42}}func (x *ListSecretsResponse) GetSecrets() []*Secret {@@ -4670,7 +4082,7 @@ type UpdateSecretRequest struct {func (x *UpdateSecretRequest) Reset() {*x = UpdateSecretRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[50]+ mi := &file_v1_database_service_proto_msgTypes[43]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4683,7 +4095,7 @@ func (x *UpdateSecretRequest) String() string {func (*UpdateSecretRequest) ProtoMessage() {}func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[50]+ mi := &file_v1_database_service_proto_msgTypes[43]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4696,7 +4108,7 @@ func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use UpdateSecretRequest.ProtoReflect.Descriptor instead.func (*UpdateSecretRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{50}+ return file_v1_database_service_proto_rawDescGZIP(), []int{43}}func (x *UpdateSecretRequest) GetSecret() *Secret {@@ -4734,7 +4146,7 @@ type DeleteSecretRequest struct {func (x *DeleteSecretRequest) Reset() {*x = DeleteSecretRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[51]+ mi := &file_v1_database_service_proto_msgTypes[44]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4747,7 +4159,7 @@ func (x *DeleteSecretRequest) String() string {func (*DeleteSecretRequest) ProtoMessage() {}func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[51]+ mi := &file_v1_database_service_proto_msgTypes[44]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4760,7 +4172,7 @@ func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use DeleteSecretRequest.ProtoReflect.Descriptor instead.func (*DeleteSecretRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{51}+ return file_v1_database_service_proto_rawDescGZIP(), []int{44}}func (x *DeleteSecretRequest) GetName() string {@@ -4793,7 +4205,7 @@ type Secret struct {func (x *Secret) Reset() {*x = Secret{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[52]+ mi := &file_v1_database_service_proto_msgTypes[45]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4806,7 +4218,7 @@ func (x *Secret) String() string {func (*Secret) ProtoMessage() {}func (x *Secret) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[52]+ mi := &file_v1_database_service_proto_msgTypes[45]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4819,7 +4231,7 @@ func (x *Secret) ProtoReflect() protoreflect.Message {// Deprecated: Use Secret.ProtoReflect.Descriptor instead.func (*Secret) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{52}+ return file_v1_database_service_proto_rawDescGZIP(), []int{45}}func (x *Secret) GetName() string {@@ -4872,7 +4284,7 @@ type AdviseIndexRequest struct {func (x *AdviseIndexRequest) Reset() {*x = AdviseIndexRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[53]+ mi := &file_v1_database_service_proto_msgTypes[46]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4885,7 +4297,7 @@ func (x *AdviseIndexRequest) String() string {func (*AdviseIndexRequest) ProtoMessage() {}func (x *AdviseIndexRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[53]+ mi := &file_v1_database_service_proto_msgTypes[46]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4898,7 +4310,7 @@ func (x *AdviseIndexRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use AdviseIndexRequest.ProtoReflect.Descriptor instead.func (*AdviseIndexRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{53}+ return file_v1_database_service_proto_rawDescGZIP(), []int{46}}func (x *AdviseIndexRequest) GetParent() string {@@ -4932,7 +4344,7 @@ type AdviseIndexResponse struct {func (x *AdviseIndexResponse) Reset() {*x = AdviseIndexResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[54]+ mi := &file_v1_database_service_proto_msgTypes[47]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4945,7 +4357,7 @@ func (x *AdviseIndexResponse) String() string {func (*AdviseIndexResponse) ProtoMessage() {}func (x *AdviseIndexResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[54]+ mi := &file_v1_database_service_proto_msgTypes[47]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4958,7 +4370,7 @@ func (x *AdviseIndexResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use AdviseIndexResponse.ProtoReflect.Descriptor instead.func (*AdviseIndexResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{54}+ return file_v1_database_service_proto_rawDescGZIP(), []int{47}}func (x *AdviseIndexResponse) GetCurrentIndex() string {@@ -5023,7 +4435,7 @@ type ChangeHistory struct {func (x *ChangeHistory) Reset() {*x = ChangeHistory{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[55]+ mi := &file_v1_database_service_proto_msgTypes[48]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5036,7 +4448,7 @@ func (x *ChangeHistory) String() string {func (*ChangeHistory) ProtoMessage() {}func (x *ChangeHistory) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[55]+ mi := &file_v1_database_service_proto_msgTypes[48]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5049,7 +4461,7 @@ func (x *ChangeHistory) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangeHistory.ProtoReflect.Descriptor instead.func (*ChangeHistory) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{55}+ return file_v1_database_service_proto_rawDescGZIP(), []int{48}}func (x *ChangeHistory) GetName() string {@@ -5224,7 +4636,7 @@ type ChangedResources struct {func (x *ChangedResources) Reset() {*x = ChangedResources{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[56]+ mi := &file_v1_database_service_proto_msgTypes[49]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5237,7 +4649,7 @@ func (x *ChangedResources) String() string {func (*ChangedResources) ProtoMessage() {}func (x *ChangedResources) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[56]+ mi := &file_v1_database_service_proto_msgTypes[49]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5250,7 +4662,7 @@ func (x *ChangedResources) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResources.ProtoReflect.Descriptor instead.func (*ChangedResources) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{56}+ return file_v1_database_service_proto_rawDescGZIP(), []int{49}}func (x *ChangedResources) GetDatabases() []*ChangedResourceDatabase {@@ -5272,7 +4684,7 @@ type ChangedResourceDatabase struct {func (x *ChangedResourceDatabase) Reset() {*x = ChangedResourceDatabase{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[57]+ mi := &file_v1_database_service_proto_msgTypes[50]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5285,7 +4697,7 @@ func (x *ChangedResourceDatabase) String() string {func (*ChangedResourceDatabase) ProtoMessage() {}func (x *ChangedResourceDatabase) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[57]+ mi := &file_v1_database_service_proto_msgTypes[50]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5298,7 +4710,7 @@ func (x *ChangedResourceDatabase) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceDatabase.ProtoReflect.Descriptor instead.func (*ChangedResourceDatabase) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{57}+ return file_v1_database_service_proto_rawDescGZIP(), []int{50}}func (x *ChangedResourceDatabase) GetName() string {@@ -5327,7 +4739,7 @@ type ChangedResourceSchema struct {func (x *ChangedResourceSchema) Reset() {*x = ChangedResourceSchema{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[58]+ mi := &file_v1_database_service_proto_msgTypes[51]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5340,7 +4752,7 @@ func (x *ChangedResourceSchema) String() string {func (*ChangedResourceSchema) ProtoMessage() {}func (x *ChangedResourceSchema) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[58]+ mi := &file_v1_database_service_proto_msgTypes[51]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5353,7 +4765,7 @@ func (x *ChangedResourceSchema) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceSchema.ProtoReflect.Descriptor instead.func (*ChangedResourceSchema) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{58}+ return file_v1_database_service_proto_rawDescGZIP(), []int{51}}func (x *ChangedResourceSchema) GetName() string {@@ -5381,7 +4793,7 @@ type ChangedResourceTable struct {func (x *ChangedResourceTable) Reset() {*x = ChangedResourceTable{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[59]+ mi := &file_v1_database_service_proto_msgTypes[52]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5394,7 +4806,7 @@ func (x *ChangedResourceTable) String() string {func (*ChangedResourceTable) ProtoMessage() {}func (x *ChangedResourceTable) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[59]+ mi := &file_v1_database_service_proto_msgTypes[52]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5407,7 +4819,7 @@ func (x *ChangedResourceTable) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceTable.ProtoReflect.Descriptor instead.func (*ChangedResourceTable) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{59}+ return file_v1_database_service_proto_rawDescGZIP(), []int{52}}func (x *ChangedResourceTable) GetName() string {@@ -5468,7 +4880,7 @@ type ListChangeHistoriesRequest struct {func (x *ListChangeHistoriesRequest) Reset() {*x = ListChangeHistoriesRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[60]+ mi := &file_v1_database_service_proto_msgTypes[53]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5481,7 +4893,7 @@ func (x *ListChangeHistoriesRequest) String() string {func (*ListChangeHistoriesRequest) ProtoMessage() {}func (x *ListChangeHistoriesRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[60]+ mi := &file_v1_database_service_proto_msgTypes[53]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5494,7 +4906,7 @@ func (x *ListChangeHistoriesRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ListChangeHistoriesRequest.ProtoReflect.Descriptor instead.func (*ListChangeHistoriesRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{60}+ return file_v1_database_service_proto_rawDescGZIP(), []int{53}}func (x *ListChangeHistoriesRequest) GetParent() string {@@ -5547,7 +4959,7 @@ type ListChangeHistoriesResponse struct {func (x *ListChangeHistoriesResponse) Reset() {*x = ListChangeHistoriesResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[61]+ mi := &file_v1_database_service_proto_msgTypes[54]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5560,7 +4972,7 @@ func (x *ListChangeHistoriesResponse) String() string {func (*ListChangeHistoriesResponse) ProtoMessage() {}func (x *ListChangeHistoriesResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[61]+ mi := &file_v1_database_service_proto_msgTypes[54]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5573,7 +4985,7 @@ func (x *ListChangeHistoriesResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ListChangeHistoriesResponse.ProtoReflect.Descriptor instead.func (*ListChangeHistoriesResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{61}+ return file_v1_database_service_proto_rawDescGZIP(), []int{54}}func (x *ListChangeHistoriesResponse) GetChangeHistories() []*ChangeHistory {@@ -5608,7 +5020,7 @@ type GetChangeHistoryRequest struct {func (x *GetChangeHistoryRequest) Reset() {*x = GetChangeHistoryRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_database_service_proto_msgTypes[62]+ mi := &file_v1_database_service_proto_msgTypes[55]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5621,7 +5033,7 @@ func (x *GetChangeHistoryRequest) String() string {func (*GetChangeHistoryRequest) ProtoMessage() {}func (x *GetChangeHistoryRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[62]+ mi := &file_v1_database_service_proto_msgTypes[55]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5634,7 +5046,7 @@ func (x *GetChangeHistoryRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use GetChangeHistoryRequest.ProtoReflect.Descriptor instead.func (*GetChangeHistoryRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{62}+ return file_v1_database_service_proto_rawDescGZIP(), []int{55}}func (x *GetChangeHistoryRequest) GetName() string {@@ -5788,36 +5200,7 @@ var file_v1_database_service_proto_rawDesc = []byte{0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x28, 0x0a, 0x12, 0x44, 0x69, 0x66, 0x66,0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12,0x0a, 0x04, 0x64, 0x69, 0x66, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69,- 0x66, 0x66, 0x22, 0x32, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53,- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x57, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22,- 0x64, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x62,- 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x6d, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,- 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,- 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,- 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,- 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b,- 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x62,- 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75,- 0x70, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65,- 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,- 0x65, 0x6e, 0x22, 0xae, 0x04, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,+ 0x66, 0x66, 0x22, 0xae, 0x04, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x36, 0x0a, 0x0a, 0x73, 0x79,@@ -6169,467 +5552,387 @@ var file_v1_database_service_proto_rawDesc = []byte{0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x28,0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xb4, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4f,- 0x0a, 0x16, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x5f,- 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,+ 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x68, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74,+ 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,+ 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72,+ 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72,+ 0x42, 0x79, 0x22, 0x5c, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,+ 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a,+ 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x6f, 0x67, 0x73,+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f,+ 0x67, 0x52, 0x0d, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x73,+ 0x22, 0x8b, 0x01, 0x0a, 0x0c, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f,+ 0x67, 0x12, 0x1f, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x40, 0x0a, 0x0a,+ 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,+ 0x63, 0x73, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xf6,+ 0x04, 0x0a, 0x13, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74,+ 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x71, 0x6c, 0x5f, 0x66, 0x69,+ 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0e, 0x73, 0x71, 0x6c, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12,+ 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f,+ 0x6c, 0x6f, 0x67, 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, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x62, 0x61, 0x63, 0x6b, 0x75,- 0x70, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,- 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65,- 0x64, 0x75, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x75, 0x72, 0x6c,- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x6f, 0x6f, 0x6b, 0x55, 0x72, 0x6c, 0x22,- 0xf5, 0x03, 0x0a, 0x06, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40,- 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 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, 0x42,- 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,- 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,- 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61,- 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x44,- 0x0a, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x54,- 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70,- 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,- 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10,- 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64,- 0x22, 0x4e, 0x0a, 0x0a, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b,- 0x0a, 0x17, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d,- 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d,- 0x41, 0x54, 0x49, 0x43, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x54, 0x52, 0x10, 0x03,- 0x22, 0x55, 0x0a, 0x0b, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,- 0x1c, 0x0a, 0x18, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f,- 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a,- 0x0e, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10,- 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46,- 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, 0x68, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x53,- 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16,- 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f,- 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42,- 0x79, 0x22, 0x5c, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65,- 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f,- 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18,- 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67,- 0x52, 0x0d, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x73, 0x22,- 0x8b, 0x01, 0x0a, 0x0c, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67,- 0x12, 0x1f, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x73,- 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c,- 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63,- 0x73, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xf6, 0x04,- 0x0a, 0x13, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69,- 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x71, 0x6c, 0x5f, 0x66, 0x69, 0x6e,- 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,- 0x73, 0x71, 0x6c, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x14,- 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63,- 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6c,- 0x6f, 0x67, 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, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73,- 0x74, 0x4c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x61, 0x76, 0x65, 0x72,- 0x61, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04,+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65,+ 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x61, 0x76, 0x65,+ 0x72, 0x61, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x04, 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, 0x10, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69,+ 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x71, 0x75,+ 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 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, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d,+ 0x75, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61,+ 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74,+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52,+ 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x69, 0x6d,+ 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01,+ 0x28, 0x05, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x53,+ 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72,+ 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01,+ 0x28, 0x05, 0x52, 0x13, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x45,+ 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d,+ 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64,+ 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52,+ 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x71,+ 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e,+ 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x52, 0x10, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69,+ 0x6d, 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x75,+ 0x6e, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x01,+ 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x37,+ 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c,+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07,+ 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x10, 0x53, 0x6c, 0x6f, 0x77,+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a,+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 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, 0x09, 0x73, 0x74,+ 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79,+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 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, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d,+ 0x65, 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03,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,- 0x10, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d,- 0x65, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x71, 0x75, 0x65,- 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 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, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,- 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x76,- 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18,- 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f,- 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,- 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28,- 0x05, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65,- 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f,- 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,- 0x05, 0x52, 0x13, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78,- 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,- 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18,- 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f,- 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x71, 0x75,- 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74,- 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x52, 0x10, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d,- 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e,- 0x74, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x01, 0x52,- 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a,- 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f,- 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x73,- 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x10, 0x53, 0x6c, 0x6f, 0x77, 0x51,- 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73,- 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 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, 0x09, 0x73, 0x74, 0x61,- 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f,- 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 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, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65,- 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 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, 0x08,- 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73,- 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x6f, 0x77,- 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78,- 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72, 0x6f,- 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x71,- 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x71,- 0x6c, 0x54, 0x65, 0x78, 0x74, 0x22, 0x6d, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63,- 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,- 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,- 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,- 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,- 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72,- 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x73,- 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65,- 0x74, 0x52, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65,- 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,- 0x65, 0x6e, 0x22, 0xa9, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63,- 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x65,- 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x42,- 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0b,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 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, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c,- 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,- 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x2e,- 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe6,- 0x01, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61,- 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x05,- 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4f, 0x0a, 0x12, 0x41, 0x64, 0x76, 0x69, 0x73,- 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74,- 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73,- 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x76,- 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65,- 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74,- 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74,- 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65,- 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,- 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64,- 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xc0, 0x09, 0x0a, 0x0d,- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,- 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a,- 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 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, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74,- 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,+ 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77,+ 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x6f,+ 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65,+ 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72,+ 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73,+ 0x71, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,+ 0x71, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x22, 0x6d, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65,+ 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,+ 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,+ 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63,+ 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07,+ 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72,+ 0x65, 0x74, 0x52, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,+ 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,+ 0x6b, 0x65, 0x6e, 0x22, 0xa9, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65,+ 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3b, 0x0a,+ 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 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, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c,+ 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22,+ 0x2e, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,+ 0xe6, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 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, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,- 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x65, 0x72,- 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x6c, 0x65,- 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48,- 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e,- 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74,- 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48,- 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73,- 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,- 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,- 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,- 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0d,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12,- 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a,- 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65,- 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,- 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12,- 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x76,- 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70,- 0x72, 0x65, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72, 0x65,- 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x17, 0x20,- 0x01, 0x28, 0x03, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53,- 0x69, 0x7a, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e,- 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 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, 0x11, 0x65, 0x78, 0x65, 0x63,- 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a,- 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x73,- 0x73, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e,- 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52,- 0x09, 0x70, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x68,- 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18,- 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x3e, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,- 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01,- 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x49, 0x42,- 0x52, 0x41, 0x52, 0x59, 0x10, 0x03, 0x22, 0x71, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,- 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,- 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45,- 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12,- 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x03,- 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53,- 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x05, 0x12,- 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x06, 0x22, 0x43, 0x0a, 0x06, 0x53, 0x74, 0x61,- 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50,- 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45,- 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, 0x56,- 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18,- 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x09, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x22, 0x6b, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,- 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73,- 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74,+ 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x76,+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52,+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73,+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4f, 0x0a, 0x12, 0x41, 0x64, 0x76, 0x69,+ 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,+ 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,+ 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73,+ 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,+ 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x41, 0x64,+ 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64,+ 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,+ 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73,+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67,+ 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,+ 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e,+ 0x64, 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xc0, 0x09, 0x0a,+ 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12,+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18,+ 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 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, 0x63, 0x72, 0x65, 0x61, 0x74,+ 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,+ 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 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, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,+ 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x65,+ 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x6c,+ 0x65, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06,+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79,+ 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73,+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06,+ 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,+ 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,+ 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,+ 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,+ 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18,+ 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74,+ 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69,+ 0x7a, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,+ 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65,+ 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x65, 0x65, 0x74,+ 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65,+ 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,+ 0x70, 0x72, 0x65, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72,+ 0x65, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x17,+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x53, 0x69, 0x7a, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,+ 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 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, 0x11, 0x65, 0x78, 0x65,+ 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14,+ 0x0a, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69,+ 0x73, 0x73, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x65, 0x76, 0x65,+ 0x6e, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74,+ 0x52, 0x09, 0x70, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4a, 0x0a, 0x11, 0x63,+ 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,+ 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x73, 0x22, 0x66, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65,- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x12, 0x39, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,- 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61,- 0x62, 0x6c, 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61,- 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74,- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,- 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,- 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e,- 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76,- 0x69, 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x8c, 0x01, 0x0a, 0x1b,- 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,- 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x63,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18,- 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,- 0x79, 0x52, 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69,- 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f,- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78,- 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x17, 0x47,- 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69,- 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,- 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1d,- 0x0a, 0x0a, 0x73, 0x64, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x08, 0x52, 0x09, 0x73, 0x64, 0x6c, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x18, 0x0a,- 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,- 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x73, 0x65, 0x2a, 0x81, 0x01, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x56, 0x69, 0x65, 0x77,- 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54,- 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x41, 0x54, 0x41,- 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49,- 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x41,- 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f,- 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x75, 0x0a, 0x11, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77,- 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f,- 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,- 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f,- 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53,- 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48,- 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c,- 0x10, 0x02, 0x32, 0xb3, 0x19, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x31, 0xda,- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76,+ 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65,+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x3e, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10,+ 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x49,+ 0x42, 0x52, 0x41, 0x52, 0x59, 0x10, 0x03, 0x22, 0x71, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12,+ 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e,+ 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02,+ 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10,+ 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f,+ 0x53, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x05,+ 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x06, 0x22, 0x43, 0x0a, 0x06, 0x53, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,+ 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e,+ 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22,+ 0x56, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x09, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x22, 0x6b, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x73, 0x22, 0x66, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52,+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x12, 0x39, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,+ 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54,+ 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x14,+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54,+ 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73,+ 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,+ 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,+ 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,+ 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04,+ 0x76, 0x69, 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x8c, 0x01, 0x0a,+ 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,+ 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x10,+ 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73,+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,+ 0x72, 0x79, 0x52, 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,+ 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,+ 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,+ 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x17,+ 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x76,+ 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69,+ 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12,+ 0x1d, 0x0a, 0x0a, 0x73, 0x64, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x64, 0x6c, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x18,+ 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,+ 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x73, 0x65, 0x2a, 0x81, 0x01, 0x0a, 0x14, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x56, 0x69, 0x65,+ 0x77, 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45,+ 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x41, 0x54,+ 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56,+ 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x44,+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41,+ 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x75, 0x0a, 0x11,+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65,+ 0x77, 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54,+ 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45,+ 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41,+ 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f,+ 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c,+ 0x4c, 0x10, 0x02, 0x32, 0xe2, 0x14, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x31,+ 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,+ 0x7d, 0x12, 0xaa, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0xda, 0x41, 0x00, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x7d,+ 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0xda, 0x41,+ 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0xa1, 0x01,+ 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x14,+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,+ 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,+ 0x7d, 0x12, 0xa6, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,+ 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62,+ 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x0c, 0x53,+ 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,+ 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,+ 0x73, 0x79, 0x6e, 0x63, 0x12, 0x92, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,+ 0x64, 0x61, 0x74, 0x61, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76,0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0xaa, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0xda, 0x41, 0x00, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x49, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x7d, 0x0a,- 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,- 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,- 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0xda, 0x41, 0x00,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0xa1, 0x01, 0x0a,- 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x14, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,- 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0xa6, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62, 0x61,- 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x0c, 0x53, 0x79,- 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73,- 0x79, 0x6e, 0x63, 0x12, 0x92, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64,- 0x61, 0x74, 0x61, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,+ 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0xbd, 0x01, 0x0a, 0x16, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,+ 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22,+ 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0x3d, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,+ 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,+ 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x11, 0x47, 0x65,+ 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,+ 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,+ 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31,0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d,- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0xbd, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64,- 0x61, 0x74, 0x61, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x58,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0x3d, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,- 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d,- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x75, 0x3a, 0x01, 0x2a,- 0x5a, 0x41, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74,- 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x75, 0x3a, 0x01,+ 0x2a, 0x5a, 0x41, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x12, 0x8e, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53,- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b,- 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69,- 0x6e, 0x67, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61,- 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,- 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 0x32, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x0c,- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x06, 0x62, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x22, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70,- 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,- 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70,- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b,- 0x75, 0x70, 0x73, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77,+ 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,+ 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77,0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62,@@ -6712,8 +6015,8 @@ func file_v1_database_service_proto_rawDescGZIP() []byte {return file_v1_database_service_proto_rawDescData}-var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 11)-var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 65)+var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 9)+var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 58)var file_v1_database_service_proto_goTypes = []interface{}{(DatabaseMetadataView)(0), // 0: bytebase.v1.DatabaseMetadataView(ChangeHistoryView)(0), // 1: bytebase.v1.ChangeHistoryView@@ -6721,209 +6024,184 @@ var file_v1_database_service_proto_goTypes = []interface{}{(TaskMetadata_State)(0), // 3: bytebase.v1.TaskMetadata.State(StreamMetadata_Type)(0), // 4: bytebase.v1.StreamMetadata.Type(StreamMetadata_Mode)(0), // 5: bytebase.v1.StreamMetadata.Mode- (Backup_BackupType)(0), // 6: bytebase.v1.Backup.BackupType- (Backup_BackupState)(0), // 7: bytebase.v1.Backup.BackupState- (ChangeHistory_Source)(0), // 8: bytebase.v1.ChangeHistory.Source- (ChangeHistory_Type)(0), // 9: bytebase.v1.ChangeHistory.Type- (ChangeHistory_Status)(0), // 10: bytebase.v1.ChangeHistory.Status- (*GetDatabaseRequest)(nil), // 11: bytebase.v1.GetDatabaseRequest- (*ListDatabasesRequest)(nil), // 12: bytebase.v1.ListDatabasesRequest- (*ListDatabasesResponse)(nil), // 13: bytebase.v1.ListDatabasesResponse- (*SearchDatabasesRequest)(nil), // 14: bytebase.v1.SearchDatabasesRequest- (*SearchDatabasesResponse)(nil), // 15: bytebase.v1.SearchDatabasesResponse- (*UpdateDatabaseRequest)(nil), // 16: bytebase.v1.UpdateDatabaseRequest- (*BatchUpdateDatabasesRequest)(nil), // 17: bytebase.v1.BatchUpdateDatabasesRequest- (*BatchUpdateDatabasesResponse)(nil), // 18: bytebase.v1.BatchUpdateDatabasesResponse- (*SyncDatabaseRequest)(nil), // 19: bytebase.v1.SyncDatabaseRequest- (*SyncDatabaseResponse)(nil), // 20: bytebase.v1.SyncDatabaseResponse- (*GetDatabaseMetadataRequest)(nil), // 21: bytebase.v1.GetDatabaseMetadataRequest- (*UpdateDatabaseMetadataRequest)(nil), // 22: bytebase.v1.UpdateDatabaseMetadataRequest- (*GetDatabaseSchemaRequest)(nil), // 23: bytebase.v1.GetDatabaseSchemaRequest- (*DiffSchemaRequest)(nil), // 24: bytebase.v1.DiffSchemaRequest- (*DiffSchemaResponse)(nil), // 25: bytebase.v1.DiffSchemaResponse- (*GetBackupSettingRequest)(nil), // 26: bytebase.v1.GetBackupSettingRequest- (*UpdateBackupSettingRequest)(nil), // 27: bytebase.v1.UpdateBackupSettingRequest- (*CreateBackupRequest)(nil), // 28: bytebase.v1.CreateBackupRequest- (*ListBackupsRequest)(nil), // 29: bytebase.v1.ListBackupsRequest- (*ListBackupsResponse)(nil), // 30: bytebase.v1.ListBackupsResponse- (*Database)(nil), // 31: bytebase.v1.Database- (*DatabaseMetadata)(nil), // 32: bytebase.v1.DatabaseMetadata- (*SchemaMetadata)(nil), // 33: bytebase.v1.SchemaMetadata- (*ExternalTableMetadata)(nil), // 34: bytebase.v1.ExternalTableMetadata- (*TableMetadata)(nil), // 35: bytebase.v1.TableMetadata- (*TablePartitionMetadata)(nil), // 36: bytebase.v1.TablePartitionMetadata- (*ColumnMetadata)(nil), // 37: bytebase.v1.ColumnMetadata- (*ViewMetadata)(nil), // 38: bytebase.v1.ViewMetadata- (*DependentColumn)(nil), // 39: bytebase.v1.DependentColumn- (*MaterializedViewMetadata)(nil), // 40: bytebase.v1.MaterializedViewMetadata- (*FunctionMetadata)(nil), // 41: bytebase.v1.FunctionMetadata- (*TaskMetadata)(nil), // 42: bytebase.v1.TaskMetadata- (*StreamMetadata)(nil), // 43: bytebase.v1.StreamMetadata- (*IndexMetadata)(nil), // 44: bytebase.v1.IndexMetadata- (*ExtensionMetadata)(nil), // 45: bytebase.v1.ExtensionMetadata- (*ForeignKeyMetadata)(nil), // 46: bytebase.v1.ForeignKeyMetadata- (*DatabaseConfig)(nil), // 47: bytebase.v1.DatabaseConfig- (*SchemaConfig)(nil), // 48: bytebase.v1.SchemaConfig- (*TableConfig)(nil), // 49: bytebase.v1.TableConfig- (*ColumnConfig)(nil), // 50: bytebase.v1.ColumnConfig- (*DatabaseSchema)(nil), // 51: bytebase.v1.DatabaseSchema- (*BackupSetting)(nil), // 52: bytebase.v1.BackupSetting- (*Backup)(nil), // 53: bytebase.v1.Backup- (*ListSlowQueriesRequest)(nil), // 54: bytebase.v1.ListSlowQueriesRequest- (*ListSlowQueriesResponse)(nil), // 55: bytebase.v1.ListSlowQueriesResponse- (*SlowQueryLog)(nil), // 56: bytebase.v1.SlowQueryLog- (*SlowQueryStatistics)(nil), // 57: bytebase.v1.SlowQueryStatistics- (*SlowQueryDetails)(nil), // 58: bytebase.v1.SlowQueryDetails- (*ListSecretsRequest)(nil), // 59: bytebase.v1.ListSecretsRequest- (*ListSecretsResponse)(nil), // 60: bytebase.v1.ListSecretsResponse- (*UpdateSecretRequest)(nil), // 61: bytebase.v1.UpdateSecretRequest- (*DeleteSecretRequest)(nil), // 62: bytebase.v1.DeleteSecretRequest- (*Secret)(nil), // 63: bytebase.v1.Secret- (*AdviseIndexRequest)(nil), // 64: bytebase.v1.AdviseIndexRequest- (*AdviseIndexResponse)(nil), // 65: bytebase.v1.AdviseIndexResponse- (*ChangeHistory)(nil), // 66: bytebase.v1.ChangeHistory- (*ChangedResources)(nil), // 67: bytebase.v1.ChangedResources- (*ChangedResourceDatabase)(nil), // 68: bytebase.v1.ChangedResourceDatabase- (*ChangedResourceSchema)(nil), // 69: bytebase.v1.ChangedResourceSchema- (*ChangedResourceTable)(nil), // 70: bytebase.v1.ChangedResourceTable- (*ListChangeHistoriesRequest)(nil), // 71: bytebase.v1.ListChangeHistoriesRequest- (*ListChangeHistoriesResponse)(nil), // 72: bytebase.v1.ListChangeHistoriesResponse- (*GetChangeHistoryRequest)(nil), // 73: bytebase.v1.GetChangeHistoryRequest- nil, // 74: bytebase.v1.Database.LabelsEntry- nil, // 75: bytebase.v1.ColumnConfig.LabelsEntry- (*fieldmaskpb.FieldMask)(nil), // 76: google.protobuf.FieldMask- (State)(0), // 77: bytebase.v1.State- (*timestamppb.Timestamp)(nil), // 78: google.protobuf.Timestamp- (*InstanceResource)(nil), // 79: bytebase.v1.InstanceResource- (MaskingLevel)(0), // 80: bytebase.v1.MaskingLevel- (*durationpb.Duration)(nil), // 81: google.protobuf.Duration- (*PushEvent)(nil), // 82: bytebase.v1.PushEvent- (*emptypb.Empty)(nil), // 83: google.protobuf.Empty+ (ChangeHistory_Source)(0), // 6: bytebase.v1.ChangeHistory.Source+ (ChangeHistory_Type)(0), // 7: bytebase.v1.ChangeHistory.Type+ (ChangeHistory_Status)(0), // 8: bytebase.v1.ChangeHistory.Status+ (*GetDatabaseRequest)(nil), // 9: bytebase.v1.GetDatabaseRequest+ (*ListDatabasesRequest)(nil), // 10: bytebase.v1.ListDatabasesRequest+ (*ListDatabasesResponse)(nil), // 11: bytebase.v1.ListDatabasesResponse+ (*SearchDatabasesRequest)(nil), // 12: bytebase.v1.SearchDatabasesRequest+ (*SearchDatabasesResponse)(nil), // 13: bytebase.v1.SearchDatabasesResponse+ (*UpdateDatabaseRequest)(nil), // 14: bytebase.v1.UpdateDatabaseRequest+ (*BatchUpdateDatabasesRequest)(nil), // 15: bytebase.v1.BatchUpdateDatabasesRequest+ (*BatchUpdateDatabasesResponse)(nil), // 16: bytebase.v1.BatchUpdateDatabasesResponse+ (*SyncDatabaseRequest)(nil), // 17: bytebase.v1.SyncDatabaseRequest+ (*SyncDatabaseResponse)(nil), // 18: bytebase.v1.SyncDatabaseResponse+ (*GetDatabaseMetadataRequest)(nil), // 19: bytebase.v1.GetDatabaseMetadataRequest+ (*UpdateDatabaseMetadataRequest)(nil), // 20: bytebase.v1.UpdateDatabaseMetadataRequest+ (*GetDatabaseSchemaRequest)(nil), // 21: bytebase.v1.GetDatabaseSchemaRequest+ (*DiffSchemaRequest)(nil), // 22: bytebase.v1.DiffSchemaRequest+ (*DiffSchemaResponse)(nil), // 23: bytebase.v1.DiffSchemaResponse+ (*Database)(nil), // 24: bytebase.v1.Database+ (*DatabaseMetadata)(nil), // 25: bytebase.v1.DatabaseMetadata+ (*SchemaMetadata)(nil), // 26: bytebase.v1.SchemaMetadata+ (*ExternalTableMetadata)(nil), // 27: bytebase.v1.ExternalTableMetadata+ (*TableMetadata)(nil), // 28: bytebase.v1.TableMetadata+ (*TablePartitionMetadata)(nil), // 29: bytebase.v1.TablePartitionMetadata+ (*ColumnMetadata)(nil), // 30: bytebase.v1.ColumnMetadata+ (*ViewMetadata)(nil), // 31: bytebase.v1.ViewMetadata+ (*DependentColumn)(nil), // 32: bytebase.v1.DependentColumn+ (*MaterializedViewMetadata)(nil), // 33: bytebase.v1.MaterializedViewMetadata+ (*FunctionMetadata)(nil), // 34: bytebase.v1.FunctionMetadata+ (*TaskMetadata)(nil), // 35: bytebase.v1.TaskMetadata+ (*StreamMetadata)(nil), // 36: bytebase.v1.StreamMetadata+ (*IndexMetadata)(nil), // 37: bytebase.v1.IndexMetadata+ (*ExtensionMetadata)(nil), // 38: bytebase.v1.ExtensionMetadata+ (*ForeignKeyMetadata)(nil), // 39: bytebase.v1.ForeignKeyMetadata+ (*DatabaseConfig)(nil), // 40: bytebase.v1.DatabaseConfig+ (*SchemaConfig)(nil), // 41: bytebase.v1.SchemaConfig+ (*TableConfig)(nil), // 42: bytebase.v1.TableConfig+ (*ColumnConfig)(nil), // 43: bytebase.v1.ColumnConfig+ (*DatabaseSchema)(nil), // 44: bytebase.v1.DatabaseSchema+ (*ListSlowQueriesRequest)(nil), // 45: bytebase.v1.ListSlowQueriesRequest+ (*ListSlowQueriesResponse)(nil), // 46: bytebase.v1.ListSlowQueriesResponse+ (*SlowQueryLog)(nil), // 47: bytebase.v1.SlowQueryLog+ (*SlowQueryStatistics)(nil), // 48: bytebase.v1.SlowQueryStatistics+ (*SlowQueryDetails)(nil), // 49: bytebase.v1.SlowQueryDetails+ (*ListSecretsRequest)(nil), // 50: bytebase.v1.ListSecretsRequest+ (*ListSecretsResponse)(nil), // 51: bytebase.v1.ListSecretsResponse+ (*UpdateSecretRequest)(nil), // 52: bytebase.v1.UpdateSecretRequest+ (*DeleteSecretRequest)(nil), // 53: bytebase.v1.DeleteSecretRequest+ (*Secret)(nil), // 54: bytebase.v1.Secret+ (*AdviseIndexRequest)(nil), // 55: bytebase.v1.AdviseIndexRequest+ (*AdviseIndexResponse)(nil), // 56: bytebase.v1.AdviseIndexResponse+ (*ChangeHistory)(nil), // 57: bytebase.v1.ChangeHistory+ (*ChangedResources)(nil), // 58: bytebase.v1.ChangedResources+ (*ChangedResourceDatabase)(nil), // 59: bytebase.v1.ChangedResourceDatabase+ (*ChangedResourceSchema)(nil), // 60: bytebase.v1.ChangedResourceSchema+ (*ChangedResourceTable)(nil), // 61: bytebase.v1.ChangedResourceTable+ (*ListChangeHistoriesRequest)(nil), // 62: bytebase.v1.ListChangeHistoriesRequest+ (*ListChangeHistoriesResponse)(nil), // 63: bytebase.v1.ListChangeHistoriesResponse+ (*GetChangeHistoryRequest)(nil), // 64: bytebase.v1.GetChangeHistoryRequest+ nil, // 65: bytebase.v1.Database.LabelsEntry+ nil, // 66: bytebase.v1.ColumnConfig.LabelsEntry+ (*fieldmaskpb.FieldMask)(nil), // 67: google.protobuf.FieldMask+ (State)(0), // 68: bytebase.v1.State+ (*timestamppb.Timestamp)(nil), // 69: google.protobuf.Timestamp+ (*InstanceResource)(nil), // 70: bytebase.v1.InstanceResource+ (MaskingLevel)(0), // 71: bytebase.v1.MaskingLevel+ (*durationpb.Duration)(nil), // 72: google.protobuf.Duration+ (*PushEvent)(nil), // 73: bytebase.v1.PushEvent+ (*emptypb.Empty)(nil), // 74: google.protobuf.Empty}var file_v1_database_service_proto_depIdxs = []int32{- 31, // 0: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database- 31, // 1: bytebase.v1.SearchDatabasesResponse.databases:type_name -> bytebase.v1.Database- 31, // 2: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database- 76, // 3: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask- 16, // 4: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest- 31, // 5: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database+ 24, // 0: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database+ 24, // 1: bytebase.v1.SearchDatabasesResponse.databases:type_name -> bytebase.v1.Database+ 24, // 2: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database+ 67, // 3: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask+ 14, // 4: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest+ 24, // 5: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database0, // 6: bytebase.v1.GetDatabaseMetadataRequest.view:type_name -> bytebase.v1.DatabaseMetadataView- 32, // 7: bytebase.v1.UpdateDatabaseMetadataRequest.database_metadata:type_name -> bytebase.v1.DatabaseMetadata- 76, // 8: bytebase.v1.UpdateDatabaseMetadataRequest.update_mask:type_name -> google.protobuf.FieldMask- 52, // 9: bytebase.v1.UpdateBackupSettingRequest.setting:type_name -> bytebase.v1.BackupSetting- 53, // 10: bytebase.v1.CreateBackupRequest.backup:type_name -> bytebase.v1.Backup- 53, // 11: bytebase.v1.ListBackupsResponse.backups:type_name -> bytebase.v1.Backup- 77, // 12: bytebase.v1.Database.sync_state:type_name -> bytebase.v1.State- 78, // 13: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp- 74, // 14: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry- 79, // 15: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource- 33, // 16: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata- 45, // 17: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata- 48, // 18: bytebase.v1.DatabaseMetadata.schema_configs:type_name -> bytebase.v1.SchemaConfig- 35, // 19: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata- 34, // 20: bytebase.v1.SchemaMetadata.external_tables:type_name -> bytebase.v1.ExternalTableMetadata- 38, // 21: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata- 41, // 22: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata- 43, // 23: bytebase.v1.SchemaMetadata.streams:type_name -> bytebase.v1.StreamMetadata- 42, // 24: bytebase.v1.SchemaMetadata.tasks:type_name -> bytebase.v1.TaskMetadata- 40, // 25: bytebase.v1.SchemaMetadata.materialized_views:type_name -> bytebase.v1.MaterializedViewMetadata- 37, // 26: bytebase.v1.ExternalTableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata- 37, // 27: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata- 44, // 28: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata- 46, // 29: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata- 36, // 30: bytebase.v1.TableMetadata.partitions:type_name -> bytebase.v1.TablePartitionMetadata- 2, // 31: bytebase.v1.TablePartitionMetadata.type:type_name -> bytebase.v1.TablePartitionMetadata.Type- 36, // 32: bytebase.v1.TablePartitionMetadata.subpartitions:type_name -> bytebase.v1.TablePartitionMetadata- 80, // 33: bytebase.v1.ColumnMetadata.effective_masking_level:type_name -> bytebase.v1.MaskingLevel- 39, // 34: bytebase.v1.ViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn- 39, // 35: bytebase.v1.MaterializedViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn- 3, // 36: bytebase.v1.TaskMetadata.state:type_name -> bytebase.v1.TaskMetadata.State- 4, // 37: bytebase.v1.StreamMetadata.type:type_name -> bytebase.v1.StreamMetadata.Type- 5, // 38: bytebase.v1.StreamMetadata.mode:type_name -> bytebase.v1.StreamMetadata.Mode- 48, // 39: bytebase.v1.DatabaseConfig.schema_configs:type_name -> bytebase.v1.SchemaConfig- 49, // 40: bytebase.v1.SchemaConfig.table_configs:type_name -> bytebase.v1.TableConfig- 50, // 41: bytebase.v1.TableConfig.column_configs:type_name -> bytebase.v1.ColumnConfig- 75, // 42: bytebase.v1.ColumnConfig.labels:type_name -> bytebase.v1.ColumnConfig.LabelsEntry- 81, // 43: bytebase.v1.BackupSetting.backup_retain_duration:type_name -> google.protobuf.Duration- 78, // 44: bytebase.v1.Backup.create_time:type_name -> google.protobuf.Timestamp- 78, // 45: bytebase.v1.Backup.update_time:type_name -> google.protobuf.Timestamp- 7, // 46: bytebase.v1.Backup.state:type_name -> bytebase.v1.Backup.BackupState- 6, // 47: bytebase.v1.Backup.backup_type:type_name -> bytebase.v1.Backup.BackupType- 56, // 48: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog- 57, // 49: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics- 78, // 50: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp- 81, // 51: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration- 81, // 52: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration- 58, // 53: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails- 78, // 54: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp- 81, // 55: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration- 81, // 56: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration- 63, // 57: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret- 63, // 58: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret- 76, // 59: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask- 78, // 60: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp- 78, // 61: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp- 78, // 62: bytebase.v1.ChangeHistory.create_time:type_name -> google.protobuf.Timestamp- 78, // 63: bytebase.v1.ChangeHistory.update_time:type_name -> google.protobuf.Timestamp- 8, // 64: bytebase.v1.ChangeHistory.source:type_name -> bytebase.v1.ChangeHistory.Source- 9, // 65: bytebase.v1.ChangeHistory.type:type_name -> bytebase.v1.ChangeHistory.Type- 10, // 66: bytebase.v1.ChangeHistory.status:type_name -> bytebase.v1.ChangeHistory.Status- 81, // 67: bytebase.v1.ChangeHistory.execution_duration:type_name -> google.protobuf.Duration- 82, // 68: bytebase.v1.ChangeHistory.push_event:type_name -> bytebase.v1.PushEvent- 67, // 69: bytebase.v1.ChangeHistory.changed_resources:type_name -> bytebase.v1.ChangedResources- 68, // 70: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase- 69, // 71: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema- 70, // 72: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable- 1, // 73: bytebase.v1.ListChangeHistoriesRequest.view:type_name -> bytebase.v1.ChangeHistoryView- 66, // 74: bytebase.v1.ListChangeHistoriesResponse.change_histories:type_name -> bytebase.v1.ChangeHistory- 1, // 75: bytebase.v1.GetChangeHistoryRequest.view:type_name -> bytebase.v1.ChangeHistoryView- 11, // 76: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest- 12, // 77: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest- 14, // 78: bytebase.v1.DatabaseService.SearchDatabases:input_type -> bytebase.v1.SearchDatabasesRequest- 16, // 79: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest- 17, // 80: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest- 19, // 81: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest- 21, // 82: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest- 22, // 83: bytebase.v1.DatabaseService.UpdateDatabaseMetadata:input_type -> bytebase.v1.UpdateDatabaseMetadataRequest- 23, // 84: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest- 24, // 85: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest- 26, // 86: bytebase.v1.DatabaseService.GetBackupSetting:input_type -> bytebase.v1.GetBackupSettingRequest- 27, // 87: bytebase.v1.DatabaseService.UpdateBackupSetting:input_type -> bytebase.v1.UpdateBackupSettingRequest- 28, // 88: bytebase.v1.DatabaseService.CreateBackup:input_type -> bytebase.v1.CreateBackupRequest- 29, // 89: bytebase.v1.DatabaseService.ListBackups:input_type -> bytebase.v1.ListBackupsRequest- 54, // 90: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest- 59, // 91: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest- 61, // 92: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest- 62, // 93: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest- 64, // 94: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest- 71, // 95: bytebase.v1.DatabaseService.ListChangeHistories:input_type -> bytebase.v1.ListChangeHistoriesRequest- 73, // 96: bytebase.v1.DatabaseService.GetChangeHistory:input_type -> bytebase.v1.GetChangeHistoryRequest- 31, // 97: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database- 13, // 98: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse- 15, // 99: bytebase.v1.DatabaseService.SearchDatabases:output_type -> bytebase.v1.SearchDatabasesResponse- 31, // 100: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database- 18, // 101: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse- 20, // 102: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse- 32, // 103: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata- 32, // 104: bytebase.v1.DatabaseService.UpdateDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata- 51, // 105: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema- 25, // 106: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse- 52, // 107: bytebase.v1.DatabaseService.GetBackupSetting:output_type -> bytebase.v1.BackupSetting- 52, // 108: bytebase.v1.DatabaseService.UpdateBackupSetting:output_type -> bytebase.v1.BackupSetting- 53, // 109: bytebase.v1.DatabaseService.CreateBackup:output_type -> bytebase.v1.Backup- 30, // 110: bytebase.v1.DatabaseService.ListBackups:output_type -> bytebase.v1.ListBackupsResponse- 55, // 111: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse- 60, // 112: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse- 63, // 113: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret- 83, // 114: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty- 65, // 115: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse- 72, // 116: bytebase.v1.DatabaseService.ListChangeHistories:output_type -> bytebase.v1.ListChangeHistoriesResponse- 66, // 117: bytebase.v1.DatabaseService.GetChangeHistory:output_type -> bytebase.v1.ChangeHistory- 97, // [97:118] is the sub-list for method output_type- 76, // [76:97] is the sub-list for method input_type- 76, // [76:76] is the sub-list for extension type_name- 76, // [76:76] is the sub-list for extension extendee- 0, // [0:76] is the sub-list for field type_name+ 25, // 7: bytebase.v1.UpdateDatabaseMetadataRequest.database_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 67, // 8: bytebase.v1.UpdateDatabaseMetadataRequest.update_mask:type_name -> google.protobuf.FieldMask+ 68, // 9: bytebase.v1.Database.sync_state:type_name -> bytebase.v1.State+ 69, // 10: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp+ 65, // 11: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry+ 70, // 12: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource+ 26, // 13: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata+ 38, // 14: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata+ 41, // 15: bytebase.v1.DatabaseMetadata.schema_configs:type_name -> bytebase.v1.SchemaConfig+ 28, // 16: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata+ 27, // 17: bytebase.v1.SchemaMetadata.external_tables:type_name -> bytebase.v1.ExternalTableMetadata+ 31, // 18: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata+ 34, // 19: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata+ 36, // 20: bytebase.v1.SchemaMetadata.streams:type_name -> bytebase.v1.StreamMetadata+ 35, // 21: bytebase.v1.SchemaMetadata.tasks:type_name -> bytebase.v1.TaskMetadata+ 33, // 22: bytebase.v1.SchemaMetadata.materialized_views:type_name -> bytebase.v1.MaterializedViewMetadata+ 30, // 23: bytebase.v1.ExternalTableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata+ 30, // 24: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata+ 37, // 25: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata+ 39, // 26: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata+ 29, // 27: bytebase.v1.TableMetadata.partitions:type_name -> bytebase.v1.TablePartitionMetadata+ 2, // 28: bytebase.v1.TablePartitionMetadata.type:type_name -> bytebase.v1.TablePartitionMetadata.Type+ 29, // 29: bytebase.v1.TablePartitionMetadata.subpartitions:type_name -> bytebase.v1.TablePartitionMetadata+ 71, // 30: bytebase.v1.ColumnMetadata.effective_masking_level:type_name -> bytebase.v1.MaskingLevel+ 32, // 31: bytebase.v1.ViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn+ 32, // 32: bytebase.v1.MaterializedViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn+ 3, // 33: bytebase.v1.TaskMetadata.state:type_name -> bytebase.v1.TaskMetadata.State+ 4, // 34: bytebase.v1.StreamMetadata.type:type_name -> bytebase.v1.StreamMetadata.Type+ 5, // 35: bytebase.v1.StreamMetadata.mode:type_name -> bytebase.v1.StreamMetadata.Mode+ 41, // 36: bytebase.v1.DatabaseConfig.schema_configs:type_name -> bytebase.v1.SchemaConfig+ 42, // 37: bytebase.v1.SchemaConfig.table_configs:type_name -> bytebase.v1.TableConfig+ 43, // 38: bytebase.v1.TableConfig.column_configs:type_name -> bytebase.v1.ColumnConfig+ 66, // 39: bytebase.v1.ColumnConfig.labels:type_name -> bytebase.v1.ColumnConfig.LabelsEntry+ 47, // 40: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog+ 48, // 41: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics+ 69, // 42: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp+ 72, // 43: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration+ 72, // 44: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration+ 49, // 45: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails+ 69, // 46: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp+ 72, // 47: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration+ 72, // 48: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration+ 54, // 49: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret+ 54, // 50: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret+ 67, // 51: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask+ 69, // 52: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp+ 69, // 53: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp+ 69, // 54: bytebase.v1.ChangeHistory.create_time:type_name -> google.protobuf.Timestamp+ 69, // 55: bytebase.v1.ChangeHistory.update_time:type_name -> google.protobuf.Timestamp+ 6, // 56: bytebase.v1.ChangeHistory.source:type_name -> bytebase.v1.ChangeHistory.Source+ 7, // 57: bytebase.v1.ChangeHistory.type:type_name -> bytebase.v1.ChangeHistory.Type+ 8, // 58: bytebase.v1.ChangeHistory.status:type_name -> bytebase.v1.ChangeHistory.Status+ 72, // 59: bytebase.v1.ChangeHistory.execution_duration:type_name -> google.protobuf.Duration+ 73, // 60: bytebase.v1.ChangeHistory.push_event:type_name -> bytebase.v1.PushEvent+ 58, // 61: bytebase.v1.ChangeHistory.changed_resources:type_name -> bytebase.v1.ChangedResources+ 59, // 62: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase+ 60, // 63: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema+ 61, // 64: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable+ 1, // 65: bytebase.v1.ListChangeHistoriesRequest.view:type_name -> bytebase.v1.ChangeHistoryView+ 57, // 66: bytebase.v1.ListChangeHistoriesResponse.change_histories:type_name -> bytebase.v1.ChangeHistory+ 1, // 67: bytebase.v1.GetChangeHistoryRequest.view:type_name -> bytebase.v1.ChangeHistoryView+ 9, // 68: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest+ 10, // 69: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest+ 12, // 70: bytebase.v1.DatabaseService.SearchDatabases:input_type -> bytebase.v1.SearchDatabasesRequest+ 14, // 71: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest+ 15, // 72: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest+ 17, // 73: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest+ 19, // 74: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest+ 20, // 75: bytebase.v1.DatabaseService.UpdateDatabaseMetadata:input_type -> bytebase.v1.UpdateDatabaseMetadataRequest+ 21, // 76: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest+ 22, // 77: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest+ 45, // 78: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest+ 50, // 79: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest+ 52, // 80: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest+ 53, // 81: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest+ 55, // 82: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest+ 62, // 83: bytebase.v1.DatabaseService.ListChangeHistories:input_type -> bytebase.v1.ListChangeHistoriesRequest+ 64, // 84: bytebase.v1.DatabaseService.GetChangeHistory:input_type -> bytebase.v1.GetChangeHistoryRequest+ 24, // 85: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database+ 11, // 86: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse+ 13, // 87: bytebase.v1.DatabaseService.SearchDatabases:output_type -> bytebase.v1.SearchDatabasesResponse+ 24, // 88: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database+ 16, // 89: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse+ 18, // 90: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse+ 25, // 91: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata+ 25, // 92: bytebase.v1.DatabaseService.UpdateDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata+ 44, // 93: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema+ 23, // 94: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse+ 46, // 95: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse+ 51, // 96: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse+ 54, // 97: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret+ 74, // 98: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty+ 56, // 99: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse+ 63, // 100: bytebase.v1.DatabaseService.ListChangeHistories:output_type -> bytebase.v1.ListChangeHistoriesResponse+ 57, // 101: bytebase.v1.DatabaseService.GetChangeHistory:output_type -> bytebase.v1.ChangeHistory+ 85, // [85:102] is the sub-list for method output_type+ 68, // [68:85] is the sub-list for method input_type+ 68, // [68:68] is the sub-list for extension type_name+ 68, // [68:68] is the sub-list for extension extendee+ 0, // [0:68] is the sub-list for field type_name}func init() { file_v1_database_service_proto_init() }@@ -7116,66 +6394,6 @@ func file_v1_database_service_proto_init() {}}file_v1_database_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GetBackupSettingRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_database_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*UpdateBackupSettingRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_database_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*CreateBackupRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_database_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListBackupsRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_database_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListBackupsResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_database_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Database); i {case 0:return &v.state@@ -7187,7 +6405,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DatabaseMetadata); i {case 0:return &v.state@@ -7199,7 +6417,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SchemaMetadata); i {case 0:return &v.state@@ -7211,7 +6429,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ExternalTableMetadata); i {case 0:return &v.state@@ -7223,7 +6441,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TableMetadata); i {case 0:return &v.state@@ -7235,7 +6453,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TablePartitionMetadata); i {case 0:return &v.state@@ -7247,7 +6465,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ColumnMetadata); i {case 0:return &v.state@@ -7259,7 +6477,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ViewMetadata); i {case 0:return &v.state@@ -7271,7 +6489,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DependentColumn); i {case 0:return &v.state@@ -7283,7 +6501,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaterializedViewMetadata); i {case 0:return &v.state@@ -7295,7 +6513,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*FunctionMetadata); i {case 0:return &v.state@@ -7307,7 +6525,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskMetadata); i {case 0:return &v.state@@ -7319,7 +6537,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*StreamMetadata); i {case 0:return &v.state@@ -7331,7 +6549,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*IndexMetadata); i {case 0:return &v.state@@ -7343,7 +6561,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ExtensionMetadata); i {case 0:return &v.state@@ -7355,7 +6573,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ForeignKeyMetadata); i {case 0:return &v.state@@ -7367,7 +6585,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DatabaseConfig); i {case 0:return &v.state@@ -7379,7 +6597,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SchemaConfig); i {case 0:return &v.state@@ -7391,7 +6609,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TableConfig); i {case 0:return &v.state@@ -7403,7 +6621,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ColumnConfig); i {case 0:return &v.state@@ -7415,7 +6633,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DatabaseSchema); i {case 0:return &v.state@@ -7427,31 +6645,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*BackupSetting); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_database_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Backup); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_database_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListSlowQueriesRequest); i {case 0:return &v.state@@ -7463,7 +6657,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListSlowQueriesResponse); i {case 0:return &v.state@@ -7475,7 +6669,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SlowQueryLog); i {case 0:return &v.state@@ -7487,7 +6681,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SlowQueryStatistics); i {case 0:return &v.state@@ -7499,7 +6693,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SlowQueryDetails); i {case 0:return &v.state@@ -7511,7 +6705,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListSecretsRequest); i {case 0:return &v.state@@ -7523,7 +6717,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListSecretsResponse); i {case 0:return &v.state@@ -7535,7 +6729,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*UpdateSecretRequest); i {case 0:return &v.state@@ -7547,7 +6741,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DeleteSecretRequest); i {case 0:return &v.state@@ -7559,7 +6753,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Secret); i {case 0:return &v.state@@ -7571,7 +6765,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*AdviseIndexRequest); i {case 0:return &v.state@@ -7583,7 +6777,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*AdviseIndexResponse); i {case 0:return &v.state@@ -7595,7 +6789,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ChangeHistory); i {case 0:return &v.state@@ -7607,7 +6801,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ChangedResources); i {case 0:return &v.state@@ -7619,7 +6813,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ChangedResourceDatabase); i {case 0:return &v.state@@ -7631,7 +6825,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ChangedResourceSchema); i {case 0:return &v.state@@ -7643,7 +6837,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ChangedResourceTable); i {case 0:return &v.state@@ -7655,7 +6849,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListChangeHistoriesRequest); i {case 0:return &v.state@@ -7667,7 +6861,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListChangeHistoriesResponse); i {case 0:return &v.state@@ -7679,7 +6873,7 @@ func file_v1_database_service_proto_init() {return nil}}- file_v1_database_service_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} {+ file_v1_database_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*GetChangeHistoryRequest); i {case 0:return &v.state@@ -7696,7 +6890,7 @@ func file_v1_database_service_proto_init() {(*DiffSchemaRequest_Schema)(nil),(*DiffSchemaRequest_ChangeHistory)(nil),}- file_v1_database_service_proto_msgTypes[26].OneofWrappers = []interface{}{+ file_v1_database_service_proto_msgTypes[21].OneofWrappers = []interface{}{(*ColumnMetadata_DefaultNull)(nil),(*ColumnMetadata_DefaultString)(nil),(*ColumnMetadata_DefaultExpression)(nil),@@ -7706,8 +6900,8 @@ func file_v1_database_service_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_database_service_proto_rawDesc,- NumEnums: 11,- NumMessages: 65,+ NumEnums: 9,+ NumMessages: 58,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/database_service.pb.gw.go b/proto/generated-go/v1/database_service.pb.gw.goindex a3f7870ed2..91b744c897 100644--- a/proto/generated-go/v1/database_service.pb.gw.go+++ b/proto/generated-go/v1/database_service.pb.gw.go@@ -849,248 +849,6 @@ func local_request_DatabaseService_DiffSchema_1(ctx context.Context, marshaler r}-func request_DatabaseService_GetBackupSetting_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetBackupSettingRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := client.GetBackupSetting(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_DatabaseService_GetBackupSetting_0(ctx context.Context, marshaler runtime.Marshaler, server DatabaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetBackupSettingRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := server.GetBackupSetting(ctx, &protoReq)- return msg, metadata, err--}--func request_DatabaseService_UpdateBackupSetting_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateBackupSettingRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Setting); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["setting.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "setting.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "setting.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "setting.name", err)- }-- msg, err := client.UpdateBackupSetting(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_DatabaseService_UpdateBackupSetting_0(ctx context.Context, marshaler runtime.Marshaler, server DatabaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateBackupSettingRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Setting); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["setting.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "setting.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "setting.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "setting.name", err)- }-- msg, err := server.UpdateBackupSetting(ctx, &protoReq)- return msg, metadata, err--}--func request_DatabaseService_CreateBackup_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreateBackupRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Backup); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- msg, err := client.CreateBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_DatabaseService_CreateBackup_0(ctx context.Context, marshaler runtime.Marshaler, server DatabaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreateBackupRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Backup); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- msg, err := server.CreateBackup(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_DatabaseService_ListBackups_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}-)--func request_DatabaseService_ListBackups_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListBackupsRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DatabaseService_ListBackups_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.ListBackups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_DatabaseService_ListBackups_0(ctx context.Context, marshaler runtime.Marshaler, server DatabaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListBackupsRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DatabaseService_ListBackups_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.ListBackups(ctx, &protoReq)- return msg, metadata, err--}-var (filter_DatabaseService_ListSlowQueries_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}})@@ -1899,106 +1657,6 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv})- mux.Handle("GET", pattern_DatabaseService_GetBackupSetting_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetBackupSetting", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/backupSetting}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_DatabaseService_GetBackupSetting_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_DatabaseService_GetBackupSetting_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_DatabaseService_UpdateBackupSetting_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateBackupSetting", runtime.WithHTTPPathPattern("/v1/{setting.name=instances/*/databases/*/backupSetting}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_DatabaseService_UpdateBackupSetting_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_DatabaseService_UpdateBackupSetting_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_DatabaseService_CreateBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/CreateBackup", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/backups"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_DatabaseService_CreateBackup_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_DatabaseService_CreateBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_DatabaseService_ListBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListBackups", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/backups"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_DatabaseService_ListBackups_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_DatabaseService_ListBackups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("GET", pattern_DatabaseService_ListSlowQueries_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -2479,94 +2137,6 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv})- mux.Handle("GET", pattern_DatabaseService_GetBackupSetting_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetBackupSetting", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/backupSetting}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_DatabaseService_GetBackupSetting_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_DatabaseService_GetBackupSetting_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_DatabaseService_UpdateBackupSetting_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateBackupSetting", runtime.WithHTTPPathPattern("/v1/{setting.name=instances/*/databases/*/backupSetting}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_DatabaseService_UpdateBackupSetting_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_DatabaseService_UpdateBackupSetting_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_DatabaseService_CreateBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/CreateBackup", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/backups"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_DatabaseService_CreateBackup_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_DatabaseService_CreateBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_DatabaseService_ListBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListBackups", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/backups"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_DatabaseService_ListBackups_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_DatabaseService_ListBackups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("GET", pattern_DatabaseService_ListSlowQueries_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -2749,14 +2319,6 @@ var (pattern_DatabaseService_DiffSchema_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "changeHistories", "name"}, "diffSchema"))- pattern_DatabaseService_GetBackupSetting_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 4, 5, 5, 4}, []string{"v1", "instances", "databases", "backupSetting", "name"}, ""))-- pattern_DatabaseService_UpdateBackupSetting_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 4, 5, 5, 4}, []string{"v1", "instances", "databases", "backupSetting", "setting.name"}, ""))-- pattern_DatabaseService_CreateBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "backups"}, ""))-- pattern_DatabaseService_ListBackups_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "backups"}, ""))-pattern_DatabaseService_ListSlowQueries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "slowQueries"}, ""))pattern_DatabaseService_ListSecrets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "secrets"}, ""))@@ -2797,14 +2359,6 @@ var (forward_DatabaseService_DiffSchema_1 = runtime.ForwardResponseMessage- forward_DatabaseService_GetBackupSetting_0 = runtime.ForwardResponseMessage-- forward_DatabaseService_UpdateBackupSetting_0 = runtime.ForwardResponseMessage-- forward_DatabaseService_CreateBackup_0 = runtime.ForwardResponseMessage-- forward_DatabaseService_ListBackups_0 = runtime.ForwardResponseMessage-forward_DatabaseService_ListSlowQueries_0 = runtime.ForwardResponseMessageforward_DatabaseService_ListSecrets_0 = runtime.ForwardResponseMessagediff --git a/proto/generated-go/v1/database_service_grpc.pb.go b/proto/generated-go/v1/database_service_grpc.pb.goindex f2091e99bf..784f85ffc7 100644--- a/proto/generated-go/v1/database_service_grpc.pb.go+++ b/proto/generated-go/v1/database_service_grpc.pb.go@@ -30,10 +30,6 @@ const (DatabaseService_UpdateDatabaseMetadata_FullMethodName = "/bytebase.v1.DatabaseService/UpdateDatabaseMetadata"DatabaseService_GetDatabaseSchema_FullMethodName = "/bytebase.v1.DatabaseService/GetDatabaseSchema"DatabaseService_DiffSchema_FullMethodName = "/bytebase.v1.DatabaseService/DiffSchema"- DatabaseService_GetBackupSetting_FullMethodName = "/bytebase.v1.DatabaseService/GetBackupSetting"- DatabaseService_UpdateBackupSetting_FullMethodName = "/bytebase.v1.DatabaseService/UpdateBackupSetting"- DatabaseService_CreateBackup_FullMethodName = "/bytebase.v1.DatabaseService/CreateBackup"- DatabaseService_ListBackups_FullMethodName = "/bytebase.v1.DatabaseService/ListBackups"DatabaseService_ListSlowQueries_FullMethodName = "/bytebase.v1.DatabaseService/ListSlowQueries"DatabaseService_ListSecrets_FullMethodName = "/bytebase.v1.DatabaseService/ListSecrets"DatabaseService_UpdateSecret_FullMethodName = "/bytebase.v1.DatabaseService/UpdateSecret"@@ -58,10 +54,6 @@ type DatabaseServiceClient interface {UpdateDatabaseMetadata(ctx context.Context, in *UpdateDatabaseMetadataRequest, opts ...grpc.CallOption) (*DatabaseMetadata, error)GetDatabaseSchema(ctx context.Context, in *GetDatabaseSchemaRequest, opts ...grpc.CallOption) (*DatabaseSchema, error)DiffSchema(ctx context.Context, in *DiffSchemaRequest, opts ...grpc.CallOption) (*DiffSchemaResponse, error)- GetBackupSetting(ctx context.Context, in *GetBackupSettingRequest, opts ...grpc.CallOption) (*BackupSetting, error)- UpdateBackupSetting(ctx context.Context, in *UpdateBackupSettingRequest, opts ...grpc.CallOption) (*BackupSetting, error)- CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*Backup, error)- ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error)ListSlowQueries(ctx context.Context, in *ListSlowQueriesRequest, opts ...grpc.CallOption) (*ListSlowQueriesResponse, error)ListSecrets(ctx context.Context, in *ListSecretsRequest, opts ...grpc.CallOption) (*ListSecretsResponse, error)UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*Secret, error)@@ -169,42 +161,6 @@ func (c *databaseServiceClient) DiffSchema(ctx context.Context, in *DiffSchemaRereturn out, nil}-func (c *databaseServiceClient) GetBackupSetting(ctx context.Context, in *GetBackupSettingRequest, opts ...grpc.CallOption) (*BackupSetting, error) {- out := new(BackupSetting)- err := c.cc.Invoke(ctx, DatabaseService_GetBackupSetting_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *databaseServiceClient) UpdateBackupSetting(ctx context.Context, in *UpdateBackupSettingRequest, opts ...grpc.CallOption) (*BackupSetting, error) {- out := new(BackupSetting)- err := c.cc.Invoke(ctx, DatabaseService_UpdateBackupSetting_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *databaseServiceClient) CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*Backup, error) {- out := new(Backup)- err := c.cc.Invoke(ctx, DatabaseService_CreateBackup_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *databaseServiceClient) ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error) {- out := new(ListBackupsResponse)- err := c.cc.Invoke(ctx, DatabaseService_ListBackups_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}-func (c *databaseServiceClient) ListSlowQueries(ctx context.Context, in *ListSlowQueriesRequest, opts ...grpc.CallOption) (*ListSlowQueriesResponse, error) {out := new(ListSlowQueriesResponse)err := c.cc.Invoke(ctx, DatabaseService_ListSlowQueries_FullMethodName, in, out, opts...)@@ -283,10 +239,6 @@ type DatabaseServiceServer interface {UpdateDatabaseMetadata(context.Context, *UpdateDatabaseMetadataRequest) (*DatabaseMetadata, error)GetDatabaseSchema(context.Context, *GetDatabaseSchemaRequest) (*DatabaseSchema, error)DiffSchema(context.Context, *DiffSchemaRequest) (*DiffSchemaResponse, error)- GetBackupSetting(context.Context, *GetBackupSettingRequest) (*BackupSetting, error)- UpdateBackupSetting(context.Context, *UpdateBackupSettingRequest) (*BackupSetting, error)- CreateBackup(context.Context, *CreateBackupRequest) (*Backup, error)- ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)ListSlowQueries(context.Context, *ListSlowQueriesRequest) (*ListSlowQueriesResponse, error)ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error)UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error)@@ -331,18 +283,6 @@ func (UnimplementedDatabaseServiceServer) GetDatabaseSchema(context.Context, *Gefunc (UnimplementedDatabaseServiceServer) DiffSchema(context.Context, *DiffSchemaRequest) (*DiffSchemaResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method DiffSchema not implemented")}-func (UnimplementedDatabaseServiceServer) GetBackupSetting(context.Context, *GetBackupSettingRequest) (*BackupSetting, error) {- return nil, status.Errorf(codes.Unimplemented, "method GetBackupSetting not implemented")-}-func (UnimplementedDatabaseServiceServer) UpdateBackupSetting(context.Context, *UpdateBackupSettingRequest) (*BackupSetting, error) {- return nil, status.Errorf(codes.Unimplemented, "method UpdateBackupSetting not implemented")-}-func (UnimplementedDatabaseServiceServer) CreateBackup(context.Context, *CreateBackupRequest) (*Backup, error) {- return nil, status.Errorf(codes.Unimplemented, "method CreateBackup not implemented")-}-func (UnimplementedDatabaseServiceServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListBackups not implemented")-}func (UnimplementedDatabaseServiceServer) ListSlowQueries(context.Context, *ListSlowQueriesRequest) (*ListSlowQueriesResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method ListSlowQueries not implemented")}@@ -557,78 +497,6 @@ func _DatabaseService_DiffSchema_Handler(srv interface{}, ctx context.Context, dreturn interceptor(ctx, in, info, handler)}-func _DatabaseService_GetBackupSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(GetBackupSettingRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(DatabaseServiceServer).GetBackupSetting(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: DatabaseService_GetBackupSetting_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(DatabaseServiceServer).GetBackupSetting(ctx, req.(*GetBackupSettingRequest))- }- return interceptor(ctx, in, info, handler)-}--func _DatabaseService_UpdateBackupSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(UpdateBackupSettingRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(DatabaseServiceServer).UpdateBackupSetting(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: DatabaseService_UpdateBackupSetting_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(DatabaseServiceServer).UpdateBackupSetting(ctx, req.(*UpdateBackupSettingRequest))- }- return interceptor(ctx, in, info, handler)-}--func _DatabaseService_CreateBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(CreateBackupRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(DatabaseServiceServer).CreateBackup(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: DatabaseService_CreateBackup_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(DatabaseServiceServer).CreateBackup(ctx, req.(*CreateBackupRequest))- }- return interceptor(ctx, in, info, handler)-}--func _DatabaseService_ListBackups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListBackupsRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(DatabaseServiceServer).ListBackups(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: DatabaseService_ListBackups_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(DatabaseServiceServer).ListBackups(ctx, req.(*ListBackupsRequest))- }- return interceptor(ctx, in, info, handler)-}-func _DatabaseService_ListSlowQueries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(ListSlowQueriesRequest)if err := dec(in); err != nil {@@ -802,22 +670,6 @@ var DatabaseService_ServiceDesc = grpc.ServiceDesc{MethodName: "DiffSchema",Handler: _DatabaseService_DiffSchema_Handler,},- {- MethodName: "GetBackupSetting",- Handler: _DatabaseService_GetBackupSetting_Handler,- },- {- MethodName: "UpdateBackupSetting",- Handler: _DatabaseService_UpdateBackupSetting_Handler,- },- {- MethodName: "CreateBackup",- Handler: _DatabaseService_CreateBackup_Handler,- },- {- MethodName: "ListBackups",- Handler: _DatabaseService_ListBackups_Handler,- },{MethodName: "ListSlowQueries",Handler: _DatabaseService_ListSlowQueries_Handler,diff --git a/proto/generated-go/v1/environment_service.pb.go b/proto/generated-go/v1/environment_service.pb.goindex 9eceb069e6..ad394e5fb9 100644--- a/proto/generated-go/v1/environment_service.pb.go+++ b/proto/generated-go/v1/environment_service.pb.go@@ -561,111 +561,6 @@ func (x *Environment) GetTier() EnvironmentTier {return EnvironmentTier_ENVIRONMENT_TIER_UNSPECIFIED}-type UpdateEnvironmentBackupSettingRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The environment backup setting to update.- Setting *EnvironmentBackupSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`-}--func (x *UpdateEnvironmentBackupSettingRequest) Reset() {- *x = UpdateEnvironmentBackupSettingRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_environment_service_proto_msgTypes[8]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *UpdateEnvironmentBackupSettingRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*UpdateEnvironmentBackupSettingRequest) ProtoMessage() {}--func (x *UpdateEnvironmentBackupSettingRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_environment_service_proto_msgTypes[8]- 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 UpdateEnvironmentBackupSettingRequest.ProtoReflect.Descriptor instead.-func (*UpdateEnvironmentBackupSettingRequest) Descriptor() ([]byte, []int) {- return file_v1_environment_service_proto_rawDescGZIP(), []int{8}-}--func (x *UpdateEnvironmentBackupSettingRequest) GetSetting() *EnvironmentBackupSetting {- if x != nil {- return x.Setting- }- return nil-}--type EnvironmentBackupSetting struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the environment backup setting.- // Format: environments/{environment}/backupSetting- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`-}--func (x *EnvironmentBackupSetting) Reset() {- *x = EnvironmentBackupSetting{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_environment_service_proto_msgTypes[9]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *EnvironmentBackupSetting) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*EnvironmentBackupSetting) ProtoMessage() {}--func (x *EnvironmentBackupSetting) ProtoReflect() protoreflect.Message {- mi := &file_v1_environment_service_proto_msgTypes[9]- 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 EnvironmentBackupSetting.ProtoReflect.Descriptor instead.-func (*EnvironmentBackupSetting) Descriptor() ([]byte, []int) {- return file_v1_environment_service_proto_rawDescGZIP(), []int{9}-}--func (x *EnvironmentBackupSetting) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *EnvironmentBackupSetting) GetEnabled() bool {- if x != nil {- return x.Enabled- }- return false-}-var File_v1_environment_service_proto protoreflect.FileDescriptorvar file_v1_environment_service_proto_rawDesc = []byte{@@ -738,89 +633,66 @@ var file_v1_environment_service_proto_rawDesc = []byte{0x30, 0x0a, 0x04, 0x74, 0x69, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e,0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69,0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x52, 0x04, 0x74, 0x69, 0x65,- 0x72, 0x22, 0x6d, 0x0a, 0x25, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72,- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x07, 0x73, 0x65,- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f,- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69,- 0x6e, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,- 0x22, 0x48, 0x0a, 0x18, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42,- 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 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, 0x2a, 0x53, 0x0a, 0x0f, 0x45, 0x6e,- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x12, 0x20, 0x0a,- 0x1c, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x49, 0x45,- 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,- 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f,- 0x0a, 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x32,- 0xf6, 0x07, 0x0a, 0x12, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53,- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76,- 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f,- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72,- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x28, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0x7c, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,- 0x65, 0x6e, 0x74, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,- 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76,- 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,- 0x65, 0x22, 0x1b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76,- 0x31, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x7e,- 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,- 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,- 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,- 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x28, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a,- 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x10, 0x2f, 0x76,- 0x31, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xaa,- 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,- 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,- 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f,- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x54, 0xda, 0x41, 0x17, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,- 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,- 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x65, 0x6e, 0x76, 0x69, 0x72,- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69,- 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7c, 0x0a, 0x11, 0x44,- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,- 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,- 0x28, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x19,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x87, 0x01, 0x0a, 0x13, 0x55, 0x6e,- 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,- 0x74, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,- 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,- 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x01, 0x2a, 0x22,- 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x12, 0xb2, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61,- 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x32, 0x2e, 0x62, 0x79,+ 0x72, 0x2a, 0x53, 0x0a, 0x0f, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,+ 0x54, 0x69, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d,+ 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x49, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43,+ 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x54, 0x45,+ 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x32, 0xc1, 0x06, 0x0a, 0x12, 0x45, 0x6e, 0x76, 0x69, 0x72,+ 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a,+ 0x0e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12,+ 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,+ 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x28, 0xda,+ 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,+ 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7c, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x45,+ 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e,+ 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x7e, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45,+ 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45,+ 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x28, 0xda, 0x41, 0x00,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,+ 0x65, 0x6e, 0x74, 0x22, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xaa, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75,- 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e,- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53,- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x07,- 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65,- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70,- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 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,+ 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x54, 0xda, 0x41,+ 0x17, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, 0x0b,+ 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x25, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x12, 0x7c, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69,+ 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69,+ 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x28, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d,+ 0x12, 0x87, 0x01, 0x0a, 0x13, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x76,+ 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45,+ 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x2d, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x27, 0x3a, 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 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 (@@ -836,50 +708,45 @@ func file_v1_environment_service_proto_rawDescGZIP() []byte {}var file_v1_environment_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_v1_environment_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)+var file_v1_environment_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)var file_v1_environment_service_proto_goTypes = []interface{}{- (EnvironmentTier)(0), // 0: bytebase.v1.EnvironmentTier- (*GetEnvironmentRequest)(nil), // 1: bytebase.v1.GetEnvironmentRequest- (*ListEnvironmentsRequest)(nil), // 2: bytebase.v1.ListEnvironmentsRequest- (*ListEnvironmentsResponse)(nil), // 3: bytebase.v1.ListEnvironmentsResponse- (*CreateEnvironmentRequest)(nil), // 4: bytebase.v1.CreateEnvironmentRequest- (*UpdateEnvironmentRequest)(nil), // 5: bytebase.v1.UpdateEnvironmentRequest- (*DeleteEnvironmentRequest)(nil), // 6: bytebase.v1.DeleteEnvironmentRequest- (*UndeleteEnvironmentRequest)(nil), // 7: bytebase.v1.UndeleteEnvironmentRequest- (*Environment)(nil), // 8: bytebase.v1.Environment- (*UpdateEnvironmentBackupSettingRequest)(nil), // 9: bytebase.v1.UpdateEnvironmentBackupSettingRequest- (*EnvironmentBackupSetting)(nil), // 10: bytebase.v1.EnvironmentBackupSetting- (*fieldmaskpb.FieldMask)(nil), // 11: google.protobuf.FieldMask- (State)(0), // 12: bytebase.v1.State- (*emptypb.Empty)(nil), // 13: google.protobuf.Empty+ (EnvironmentTier)(0), // 0: bytebase.v1.EnvironmentTier+ (*GetEnvironmentRequest)(nil), // 1: bytebase.v1.GetEnvironmentRequest+ (*ListEnvironmentsRequest)(nil), // 2: bytebase.v1.ListEnvironmentsRequest+ (*ListEnvironmentsResponse)(nil), // 3: bytebase.v1.ListEnvironmentsResponse+ (*CreateEnvironmentRequest)(nil), // 4: bytebase.v1.CreateEnvironmentRequest+ (*UpdateEnvironmentRequest)(nil), // 5: bytebase.v1.UpdateEnvironmentRequest+ (*DeleteEnvironmentRequest)(nil), // 6: bytebase.v1.DeleteEnvironmentRequest+ (*UndeleteEnvironmentRequest)(nil), // 7: bytebase.v1.UndeleteEnvironmentRequest+ (*Environment)(nil), // 8: bytebase.v1.Environment+ (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask+ (State)(0), // 10: bytebase.v1.State+ (*emptypb.Empty)(nil), // 11: google.protobuf.Empty}var file_v1_environment_service_proto_depIdxs = []int32{8, // 0: bytebase.v1.ListEnvironmentsResponse.environments:type_name -> bytebase.v1.Environment8, // 1: bytebase.v1.CreateEnvironmentRequest.environment:type_name -> bytebase.v1.Environment8, // 2: bytebase.v1.UpdateEnvironmentRequest.environment:type_name -> bytebase.v1.Environment- 11, // 3: bytebase.v1.UpdateEnvironmentRequest.update_mask:type_name -> google.protobuf.FieldMask- 12, // 4: bytebase.v1.Environment.state:type_name -> bytebase.v1.State+ 9, // 3: bytebase.v1.UpdateEnvironmentRequest.update_mask:type_name -> google.protobuf.FieldMask+ 10, // 4: bytebase.v1.Environment.state:type_name -> bytebase.v1.State0, // 5: bytebase.v1.Environment.tier:type_name -> bytebase.v1.EnvironmentTier- 10, // 6: bytebase.v1.UpdateEnvironmentBackupSettingRequest.setting:type_name -> bytebase.v1.EnvironmentBackupSetting- 1, // 7: bytebase.v1.EnvironmentService.GetEnvironment:input_type -> bytebase.v1.GetEnvironmentRequest- 2, // 8: bytebase.v1.EnvironmentService.ListEnvironments:input_type -> bytebase.v1.ListEnvironmentsRequest- 4, // 9: bytebase.v1.EnvironmentService.CreateEnvironment:input_type -> bytebase.v1.CreateEnvironmentRequest- 5, // 10: bytebase.v1.EnvironmentService.UpdateEnvironment:input_type -> bytebase.v1.UpdateEnvironmentRequest- 6, // 11: bytebase.v1.EnvironmentService.DeleteEnvironment:input_type -> bytebase.v1.DeleteEnvironmentRequest- 7, // 12: bytebase.v1.EnvironmentService.UndeleteEnvironment:input_type -> bytebase.v1.UndeleteEnvironmentRequest- 9, // 13: bytebase.v1.EnvironmentService.UpdateBackupSetting:input_type -> bytebase.v1.UpdateEnvironmentBackupSettingRequest- 8, // 14: bytebase.v1.EnvironmentService.GetEnvironment:output_type -> bytebase.v1.Environment- 3, // 15: bytebase.v1.EnvironmentService.ListEnvironments:output_type -> bytebase.v1.ListEnvironmentsResponse- 8, // 16: bytebase.v1.EnvironmentService.CreateEnvironment:output_type -> bytebase.v1.Environment- 8, // 17: bytebase.v1.EnvironmentService.UpdateEnvironment:output_type -> bytebase.v1.Environment- 13, // 18: bytebase.v1.EnvironmentService.DeleteEnvironment:output_type -> google.protobuf.Empty- 8, // 19: bytebase.v1.EnvironmentService.UndeleteEnvironment:output_type -> bytebase.v1.Environment- 10, // 20: bytebase.v1.EnvironmentService.UpdateBackupSetting:output_type -> bytebase.v1.EnvironmentBackupSetting- 14, // [14:21] is the sub-list for method output_type- 7, // [7:14] is the sub-list for method input_type- 7, // [7:7] is the sub-list for extension type_name- 7, // [7:7] is the sub-list for extension extendee- 0, // [0:7] is the sub-list for field type_name+ 1, // 6: bytebase.v1.EnvironmentService.GetEnvironment:input_type -> bytebase.v1.GetEnvironmentRequest+ 2, // 7: bytebase.v1.EnvironmentService.ListEnvironments:input_type -> bytebase.v1.ListEnvironmentsRequest+ 4, // 8: bytebase.v1.EnvironmentService.CreateEnvironment:input_type -> bytebase.v1.CreateEnvironmentRequest+ 5, // 9: bytebase.v1.EnvironmentService.UpdateEnvironment:input_type -> bytebase.v1.UpdateEnvironmentRequest+ 6, // 10: bytebase.v1.EnvironmentService.DeleteEnvironment:input_type -> bytebase.v1.DeleteEnvironmentRequest+ 7, // 11: bytebase.v1.EnvironmentService.UndeleteEnvironment:input_type -> bytebase.v1.UndeleteEnvironmentRequest+ 8, // 12: bytebase.v1.EnvironmentService.GetEnvironment:output_type -> bytebase.v1.Environment+ 3, // 13: bytebase.v1.EnvironmentService.ListEnvironments:output_type -> bytebase.v1.ListEnvironmentsResponse+ 8, // 14: bytebase.v1.EnvironmentService.CreateEnvironment:output_type -> bytebase.v1.Environment+ 8, // 15: bytebase.v1.EnvironmentService.UpdateEnvironment:output_type -> bytebase.v1.Environment+ 11, // 16: bytebase.v1.EnvironmentService.DeleteEnvironment:output_type -> google.protobuf.Empty+ 8, // 17: bytebase.v1.EnvironmentService.UndeleteEnvironment:output_type -> bytebase.v1.Environment+ 12, // [12:18] is the sub-list for method output_type+ 6, // [6:12] is the sub-list for method input_type+ 6, // [6:6] is the sub-list for extension type_name+ 6, // [6:6] is the sub-list for extension extendee+ 0, // [0:6] is the sub-list for field type_name}func init() { file_v1_environment_service_proto_init() }@@ -985,30 +852,6 @@ func file_v1_environment_service_proto_init() {return nil}}- file_v1_environment_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*UpdateEnvironmentBackupSettingRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_environment_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*EnvironmentBackupSetting); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }}type x struct{}out := protoimpl.TypeBuilder{@@ -1016,7 +859,7 @@ func file_v1_environment_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_environment_service_proto_rawDesc,NumEnums: 1,- NumMessages: 10,+ NumMessages: 8,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/environment_service.pb.gw.go b/proto/generated-go/v1/environment_service.pb.gw.goindex 7d87de7f41..424e7bdf71 100644--- a/proto/generated-go/v1/environment_service.pb.gw.go+++ b/proto/generated-go/v1/environment_service.pb.gw.go@@ -375,66 +375,6 @@ func local_request_EnvironmentService_UndeleteEnvironment_0(ctx context.Context,}-func request_EnvironmentService_UpdateBackupSetting_0(ctx context.Context, marshaler runtime.Marshaler, client EnvironmentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateEnvironmentBackupSettingRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Setting); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["setting.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "setting.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "setting.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "setting.name", err)- }-- msg, err := client.UpdateBackupSetting(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_EnvironmentService_UpdateBackupSetting_0(ctx context.Context, marshaler runtime.Marshaler, server EnvironmentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateEnvironmentBackupSettingRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Setting); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["setting.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "setting.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "setting.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "setting.name", err)- }-- msg, err := server.UpdateBackupSetting(ctx, &protoReq)- return msg, metadata, err--}-// RegisterEnvironmentServiceHandlerServer registers the http handlers for service EnvironmentService to "mux".// UnaryRPC :call EnvironmentServiceServer directly.// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.@@ -591,31 +531,6 @@ func RegisterEnvironmentServiceHandlerServer(ctx context.Context, mux *runtime.S})- mux.Handle("PATCH", pattern_EnvironmentService_UpdateBackupSetting_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.EnvironmentService/UpdateBackupSetting", runtime.WithHTTPPathPattern("/v1/{setting.name=environments/*/backupSetting}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_EnvironmentService_UpdateBackupSetting_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_EnvironmentService_UpdateBackupSetting_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-return nil}@@ -789,28 +704,6 @@ func RegisterEnvironmentServiceHandlerClient(ctx context.Context, mux *runtime.S})- mux.Handle("PATCH", pattern_EnvironmentService_UpdateBackupSetting_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.EnvironmentService/UpdateBackupSetting", runtime.WithHTTPPathPattern("/v1/{setting.name=environments/*/backupSetting}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_EnvironmentService_UpdateBackupSetting_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_EnvironmentService_UpdateBackupSetting_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-return nil}@@ -826,8 +719,6 @@ var (pattern_EnvironmentService_DeleteEnvironment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "environments", "name"}, ""))pattern_EnvironmentService_UndeleteEnvironment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "environments", "name"}, "undelete"))-- pattern_EnvironmentService_UpdateBackupSetting_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 4, 3, 5, 3}, []string{"v1", "environments", "backupSetting", "setting.name"}, "")))var (@@ -842,6 +733,4 @@ var (forward_EnvironmentService_DeleteEnvironment_0 = runtime.ForwardResponseMessageforward_EnvironmentService_UndeleteEnvironment_0 = runtime.ForwardResponseMessage-- forward_EnvironmentService_UpdateBackupSetting_0 = runtime.ForwardResponseMessage)diff --git a/proto/generated-go/v1/environment_service_grpc.pb.go b/proto/generated-go/v1/environment_service_grpc.pb.goindex 98ecf0a405..d1a8972507 100644--- a/proto/generated-go/v1/environment_service_grpc.pb.go+++ b/proto/generated-go/v1/environment_service_grpc.pb.go@@ -26,7 +26,6 @@ const (EnvironmentService_UpdateEnvironment_FullMethodName = "/bytebase.v1.EnvironmentService/UpdateEnvironment"EnvironmentService_DeleteEnvironment_FullMethodName = "/bytebase.v1.EnvironmentService/DeleteEnvironment"EnvironmentService_UndeleteEnvironment_FullMethodName = "/bytebase.v1.EnvironmentService/UndeleteEnvironment"- EnvironmentService_UpdateBackupSetting_FullMethodName = "/bytebase.v1.EnvironmentService/UpdateBackupSetting")// EnvironmentServiceClient is the client API for EnvironmentService service.@@ -39,7 +38,6 @@ type EnvironmentServiceClient interface {UpdateEnvironment(ctx context.Context, in *UpdateEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error)DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)UndeleteEnvironment(ctx context.Context, in *UndeleteEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error)- UpdateBackupSetting(ctx context.Context, in *UpdateEnvironmentBackupSettingRequest, opts ...grpc.CallOption) (*EnvironmentBackupSetting, error)}type environmentServiceClient struct {@@ -104,15 +102,6 @@ func (c *environmentServiceClient) UndeleteEnvironment(ctx context.Context, in *return out, nil}-func (c *environmentServiceClient) UpdateBackupSetting(ctx context.Context, in *UpdateEnvironmentBackupSettingRequest, opts ...grpc.CallOption) (*EnvironmentBackupSetting, error) {- out := new(EnvironmentBackupSetting)- err := c.cc.Invoke(ctx, EnvironmentService_UpdateBackupSetting_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}-// EnvironmentServiceServer is the server API for EnvironmentService service.// All implementations must embed UnimplementedEnvironmentServiceServer// for forward compatibility@@ -123,7 +112,6 @@ type EnvironmentServiceServer interface {UpdateEnvironment(context.Context, *UpdateEnvironmentRequest) (*Environment, error)DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*emptypb.Empty, error)UndeleteEnvironment(context.Context, *UndeleteEnvironmentRequest) (*Environment, error)- UpdateBackupSetting(context.Context, *UpdateEnvironmentBackupSettingRequest) (*EnvironmentBackupSetting, error)mustEmbedUnimplementedEnvironmentServiceServer()}@@ -149,9 +137,6 @@ func (UnimplementedEnvironmentServiceServer) DeleteEnvironment(context.Context,func (UnimplementedEnvironmentServiceServer) UndeleteEnvironment(context.Context, *UndeleteEnvironmentRequest) (*Environment, error) {return nil, status.Errorf(codes.Unimplemented, "method UndeleteEnvironment not implemented")}-func (UnimplementedEnvironmentServiceServer) UpdateBackupSetting(context.Context, *UpdateEnvironmentBackupSettingRequest) (*EnvironmentBackupSetting, error) {- return nil, status.Errorf(codes.Unimplemented, "method UpdateBackupSetting not implemented")-}func (UnimplementedEnvironmentServiceServer) mustEmbedUnimplementedEnvironmentServiceServer() {}// UnsafeEnvironmentServiceServer may be embedded to opt out of forward compatibility for this service.@@ -273,24 +258,6 @@ func _EnvironmentService_UndeleteEnvironment_Handler(srv interface{}, ctx contexreturn interceptor(ctx, in, info, handler)}-func _EnvironmentService_UpdateBackupSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(UpdateEnvironmentBackupSettingRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(EnvironmentServiceServer).UpdateBackupSetting(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: EnvironmentService_UpdateBackupSetting_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(EnvironmentServiceServer).UpdateBackupSetting(ctx, req.(*UpdateEnvironmentBackupSettingRequest))- }- return interceptor(ctx, in, info, handler)-}-// EnvironmentService_ServiceDesc is the grpc.ServiceDesc for EnvironmentService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)@@ -322,10 +289,6 @@ var EnvironmentService_ServiceDesc = grpc.ServiceDesc{MethodName: "UndeleteEnvironment",Handler: _EnvironmentService_UndeleteEnvironment_Handler,},- {- MethodName: "UpdateBackupSetting",- Handler: _EnvironmentService_UpdateBackupSetting_Handler,- },},Streams: []grpc.StreamDesc{},Metadata: "v1/environment_service.proto",diff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.goindex 708c115f31..c0bd0a2d3b 100644--- a/proto/generated-go/v1/org_policy_service.pb.go+++ b/proto/generated-go/v1/org_policy_service.pb.go@@ -11,7 +11,6 @@ import (expr "google.golang.org/genproto/googleapis/type/expr"protoreflect "google.golang.org/protobuf/reflect/protoreflect"protoimpl "google.golang.org/protobuf/runtime/protoimpl"- durationpb "google.golang.org/protobuf/types/known/durationpb"emptypb "google.golang.org/protobuf/types/known/emptypb"fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"reflect "reflect"@@ -31,7 +30,6 @@ const (PolicyType_POLICY_TYPE_UNSPECIFIED PolicyType = 0PolicyType_WORKSPACE_IAM PolicyType = 1PolicyType_ROLLOUT_POLICY PolicyType = 11- PolicyType_BACKUP_PLAN PolicyType = 3PolicyType_SQL_REVIEW PolicyType = 4PolicyType_MASKING PolicyType = 5PolicyType_SLOW_QUERY PolicyType = 7@@ -47,7 +45,6 @@ var (0: "POLICY_TYPE_UNSPECIFIED",1: "WORKSPACE_IAM",11: "ROLLOUT_POLICY",- 3: "BACKUP_PLAN",4: "SQL_REVIEW",5: "MASKING",7: "SLOW_QUERY",@@ -60,7 +57,6 @@ var ("POLICY_TYPE_UNSPECIFIED": 0,"WORKSPACE_IAM": 1,"ROLLOUT_POLICY": 11,- "BACKUP_PLAN": 3,"SQL_REVIEW": 4,"MASKING": 5,"SLOW_QUERY": 7,@@ -156,58 +152,6 @@ func (PolicyResourceType) EnumDescriptor() ([]byte, []int) {return file_v1_org_policy_service_proto_rawDescGZIP(), []int{1}}-type BackupPlanSchedule int32--const (- BackupPlanSchedule_SCHEDULE_UNSPECIFIED BackupPlanSchedule = 0- BackupPlanSchedule_UNSET BackupPlanSchedule = 1- BackupPlanSchedule_DAILY BackupPlanSchedule = 2- BackupPlanSchedule_WEEKLY BackupPlanSchedule = 3-)--// Enum value maps for BackupPlanSchedule.-var (- BackupPlanSchedule_name = map[int32]string{- 0: "SCHEDULE_UNSPECIFIED",- 1: "UNSET",- 2: "DAILY",- 3: "WEEKLY",- }- BackupPlanSchedule_value = map[string]int32{- "SCHEDULE_UNSPECIFIED": 0,- "UNSET": 1,- "DAILY": 2,- "WEEKLY": 3,- }-)--func (x BackupPlanSchedule) Enum() *BackupPlanSchedule {- p := new(BackupPlanSchedule)- *p = x- return p-}--func (x BackupPlanSchedule) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (BackupPlanSchedule) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[2].Descriptor()-}--func (BackupPlanSchedule) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[2]-}--func (x BackupPlanSchedule) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use BackupPlanSchedule.Descriptor instead.-func (BackupPlanSchedule) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{2}-}-type SQLReviewRuleLevel int32const (@@ -244,11 +188,11 @@ func (x SQLReviewRuleLevel) String() string {}func (SQLReviewRuleLevel) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[3].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[2].Descriptor()}func (SQLReviewRuleLevel) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[3]+ return &file_v1_org_policy_service_proto_enumTypes[2]}func (x SQLReviewRuleLevel) Number() protoreflect.EnumNumber {@@ -257,7 +201,7 @@ func (x SQLReviewRuleLevel) Number() protoreflect.EnumNumber {// Deprecated: Use SQLReviewRuleLevel.Descriptor instead.func (SQLReviewRuleLevel) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{3}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{2}}type MaskingExceptionPolicy_MaskingException_Action int32@@ -293,11 +237,11 @@ func (x MaskingExceptionPolicy_MaskingException_Action) String() string {}func (MaskingExceptionPolicy_MaskingException_Action) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[4].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[3].Descriptor()}func (MaskingExceptionPolicy_MaskingException_Action) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[4]+ return &file_v1_org_policy_service_proto_enumTypes[3]}func (x MaskingExceptionPolicy_MaskingException_Action) Number() protoreflect.EnumNumber {@@ -306,7 +250,7 @@ func (x MaskingExceptionPolicy_MaskingException_Action) Number() protoreflect.En// Deprecated: Use MaskingExceptionPolicy_MaskingException_Action.Descriptor instead.func (MaskingExceptionPolicy_MaskingException_Action) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15, 0, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14, 0, 0}}type CreatePolicyRequest struct {@@ -723,7 +667,6 @@ type Policy struct {//// *Policy_WorkspaceIamPolicy// *Policy_RolloutPolicy- // *Policy_BackupPlanPolicy// *Policy_MaskingPolicy// *Policy_SqlReviewPolicy// *Policy_SlowQueryPolicy@@ -820,13 +763,6 @@ func (x *Policy) GetRolloutPolicy() *RolloutPolicy {return nil}-func (x *Policy) GetBackupPlanPolicy() *BackupPlanPolicy {- if x, ok := x.GetPolicy().(*Policy_BackupPlanPolicy); ok {- return x.BackupPlanPolicy- }- return nil-}-func (x *Policy) GetMaskingPolicy() *MaskingPolicy {if x, ok := x.GetPolicy().(*Policy_MaskingPolicy); ok {return x.MaskingPolicy@@ -909,10 +845,6 @@ type Policy_RolloutPolicy struct {RolloutPolicy *RolloutPolicy `protobuf:"bytes,19,opt,name=rollout_policy,json=rolloutPolicy,proto3,oneof"`}-type Policy_BackupPlanPolicy struct {- BackupPlanPolicy *BackupPlanPolicy `protobuf:"bytes,8,opt,name=backup_plan_policy,json=backupPlanPolicy,proto3,oneof"`-}-type Policy_MaskingPolicy struct {MaskingPolicy *MaskingPolicy `protobuf:"bytes,9,opt,name=masking_policy,json=maskingPolicy,proto3,oneof"`}@@ -945,8 +877,6 @@ func (*Policy_WorkspaceIamPolicy) isPolicy_Policy() {}func (*Policy_RolloutPolicy) isPolicy_Policy() {}-func (*Policy_BackupPlanPolicy) isPolicy_Policy() {}-func (*Policy_MaskingPolicy) isPolicy_Policy() {}func (*Policy_SqlReviewPolicy) isPolicy_Policy() {}@@ -1034,61 +964,6 @@ func (x *RolloutPolicy) GetIssueRoles() []string {return nil}-type BackupPlanPolicy struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- Schedule BackupPlanSchedule `protobuf:"varint,1,opt,name=schedule,proto3,enum=bytebase.v1.BackupPlanSchedule" json:"schedule,omitempty"`- RetentionDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=retention_duration,json=retentionDuration,proto3" json:"retention_duration,omitempty"`-}--func (x *BackupPlanPolicy) Reset() {- *x = BackupPlanPolicy{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[8]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *BackupPlanPolicy) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*BackupPlanPolicy) ProtoMessage() {}--func (x *BackupPlanPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[8]- 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 BackupPlanPolicy.ProtoReflect.Descriptor instead.-func (*BackupPlanPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{8}-}--func (x *BackupPlanPolicy) GetSchedule() BackupPlanSchedule {- if x != nil {- return x.Schedule- }- return BackupPlanSchedule_SCHEDULE_UNSPECIFIED-}--func (x *BackupPlanPolicy) GetRetentionDuration() *durationpb.Duration {- if x != nil {- return x.RetentionDuration- }- return nil-}-type SlowQueryPolicy struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1100,7 +975,7 @@ type SlowQueryPolicy struct {func (x *SlowQueryPolicy) Reset() {*x = SlowQueryPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[9]+ mi := &file_v1_org_policy_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1113,7 +988,7 @@ func (x *SlowQueryPolicy) String() string {func (*SlowQueryPolicy) ProtoMessage() {}func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[9]+ mi := &file_v1_org_policy_service_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1126,7 +1001,7 @@ func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use SlowQueryPolicy.ProtoReflect.Descriptor instead.func (*SlowQueryPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{9}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{8}}func (x *SlowQueryPolicy) GetActive() bool {@@ -1147,7 +1022,7 @@ type DisableCopyDataPolicy struct {func (x *DisableCopyDataPolicy) Reset() {*x = DisableCopyDataPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1160,7 +1035,7 @@ func (x *DisableCopyDataPolicy) String() string {func (*DisableCopyDataPolicy) ProtoMessage() {}func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1173,7 +1048,7 @@ func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use DisableCopyDataPolicy.ProtoReflect.Descriptor instead.func (*DisableCopyDataPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{9}}func (x *DisableCopyDataPolicy) GetActive() bool {@@ -1194,7 +1069,7 @@ type MaskingPolicy struct {func (x *MaskingPolicy) Reset() {*x = MaskingPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1207,7 +1082,7 @@ func (x *MaskingPolicy) String() string {func (*MaskingPolicy) ProtoMessage() {}func (x *MaskingPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[10]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1220,7 +1095,7 @@ func (x *MaskingPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingPolicy.ProtoReflect.Descriptor instead.func (*MaskingPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}}func (x *MaskingPolicy) GetMaskData() []*MaskData {@@ -1246,7 +1121,7 @@ type MaskData struct {func (x *MaskData) Reset() {*x = MaskData{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1259,7 +1134,7 @@ func (x *MaskData) String() string {func (*MaskData) ProtoMessage() {}func (x *MaskData) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1272,7 +1147,7 @@ func (x *MaskData) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskData.ProtoReflect.Descriptor instead.func (*MaskData) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}}func (x *MaskData) GetSchema() string {@@ -1329,7 +1204,7 @@ type SQLReviewPolicy struct {func (x *SQLReviewPolicy) Reset() {*x = SQLReviewPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1342,7 +1217,7 @@ func (x *SQLReviewPolicy) String() string {func (*SQLReviewPolicy) ProtoMessage() {}func (x *SQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1355,7 +1230,7 @@ func (x *SQLReviewPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use SQLReviewPolicy.ProtoReflect.Descriptor instead.func (*SQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}}func (x *SQLReviewPolicy) GetName() string {@@ -1387,7 +1262,7 @@ type SQLReviewRule struct {func (x *SQLReviewRule) Reset() {*x = SQLReviewRule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1400,7 +1275,7 @@ func (x *SQLReviewRule) String() string {func (*SQLReviewRule) ProtoMessage() {}func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1413,7 +1288,7 @@ func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {// Deprecated: Use SQLReviewRule.ProtoReflect.Descriptor instead.func (*SQLReviewRule) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}}func (x *SQLReviewRule) GetType() string {@@ -1463,7 +1338,7 @@ type MaskingExceptionPolicy struct {func (x *MaskingExceptionPolicy) Reset() {*x = MaskingExceptionPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1476,7 +1351,7 @@ func (x *MaskingExceptionPolicy) String() string {func (*MaskingExceptionPolicy) ProtoMessage() {}func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1489,7 +1364,7 @@ func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingExceptionPolicy.ProtoReflect.Descriptor instead.func (*MaskingExceptionPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}}func (x *MaskingExceptionPolicy) GetMaskingExceptions() []*MaskingExceptionPolicy_MaskingException {@@ -1510,7 +1385,7 @@ type MaskingRulePolicy struct {func (x *MaskingRulePolicy) Reset() {*x = MaskingRulePolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1523,7 +1398,7 @@ func (x *MaskingRulePolicy) String() string {func (*MaskingRulePolicy) ProtoMessage() {}func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1536,7 +1411,7 @@ func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingRulePolicy.ProtoReflect.Descriptor instead.func (*MaskingRulePolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}}func (x *MaskingRulePolicy) GetRules() []*MaskingRulePolicy_MaskingRule {@@ -1557,7 +1432,7 @@ type RestrictIssueCreationForSQLReviewPolicy struct {func (x *RestrictIssueCreationForSQLReviewPolicy) Reset() {*x = RestrictIssueCreationForSQLReviewPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1570,7 +1445,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) String() string {func (*RestrictIssueCreationForSQLReviewPolicy) ProtoMessage() {}func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1583,7 +1458,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Me// Deprecated: Use RestrictIssueCreationForSQLReviewPolicy.ProtoReflect.Descriptor instead.func (*RestrictIssueCreationForSQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}}func (x *RestrictIssueCreationForSQLReviewPolicy) GetDisallow() bool {@@ -1613,7 +1488,7 @@ type MaskingExceptionPolicy_MaskingException struct {func (x *MaskingExceptionPolicy_MaskingException) Reset() {*x = MaskingExceptionPolicy_MaskingException{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[18]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1626,7 +1501,7 @@ func (x *MaskingExceptionPolicy_MaskingException) String() string {func (*MaskingExceptionPolicy_MaskingException) ProtoMessage() {}func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[18]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1639,7 +1514,7 @@ func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Me// Deprecated: Use MaskingExceptionPolicy_MaskingException.ProtoReflect.Descriptor instead.func (*MaskingExceptionPolicy_MaskingException) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14, 0}}func (x *MaskingExceptionPolicy_MaskingException) GetAction() MaskingExceptionPolicy_MaskingException_Action {@@ -1684,7 +1559,7 @@ type MaskingRulePolicy_MaskingRule struct {func (x *MaskingRulePolicy_MaskingRule) Reset() {*x = MaskingRulePolicy_MaskingRule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[19]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1697,7 +1572,7 @@ func (x *MaskingRulePolicy_MaskingRule) String() string {func (*MaskingRulePolicy_MaskingRule) ProtoMessage() {}func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[19]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1710,7 +1585,7 @@ func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingRulePolicy_MaskingRule.ProtoReflect.Descriptor instead.func (*MaskingRulePolicy_MaskingRule) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15, 0}}func (x *MaskingRulePolicy_MaskingRule) GetId() string {@@ -1745,8 +1620,6 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,@@ -1802,7 +1675,7 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74,0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,- 0x22, 0x9b, 0x09, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e,+ 0x22, 0xcc, 0x08, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e,0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69,@@ -1820,304 +1693,283 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c,0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4d, 0x0a, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x70,- 0x6c, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42,- 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48,- 0x00, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x12, 0x43, 0x0a, 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,- 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69,- 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x71, 0x6c, 0x5f,- 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65,- 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c,- 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52,- 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x5d, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x70, 0x79,- 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x10, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,- 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,- 0x50, 0x0a, 0x13, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x43, 0x0a, 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,- 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x11,- 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x5f, 0x0a, 0x18, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63,- 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x12, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,- 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x16, 0x6d, 0x61, 0x73, 0x6b,- 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x96, 0x01, 0x0a, 0x2d, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f,- 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66,- 0x6f, 0x72, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,- 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f,- 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x48, 0x00, 0x52, 0x27, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75,- 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x71, 0x6c, 0x52,- 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65,- 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e,- 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0,- 0x41, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65,- 0x12, 0x26, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x69, 0x64,- 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0x9c,- 0x01, 0x0a, 0x0d, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x12, 0x27,- 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65,- 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,- 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b,- 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,- 0x09, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x99, 0x01,- 0x0a, 0x10, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x63, 0x68,- 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12,- 0x48, 0x0a, 0x12, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x11, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f,- 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x29, 0x0a, 0x0f, 0x53, 0x6c, 0x6f,- 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06,- 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63,- 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43,- 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a,- 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61,- 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x32, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x64,- 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61,- 0x52, 0x08, 0x6d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x22, 0x8c, 0x02, 0x0a, 0x08, 0x4d,- 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,- 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x3e, 0x0a,- 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52,- 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x39, 0x0a,- 0x19, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c,- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67,- 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x70, 0x61, 0x72, 0x74,- 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f,- 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19,- 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c,- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0x57, 0x0a, 0x0f, 0x53, 0x51, 0x4c,- 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x12, 0x30, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51,- 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c,- 0x65, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x0d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,- 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65,- 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52,- 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12,- 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67,- 0x69, 0x6e, 0x65, 0x18, 0x04, 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, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,- 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,- 0x22, 0xa9, 0x03, 0x0a, 0x16, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65,- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x63, 0x0a, 0x12, 0x6d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e,- 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63,- 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73,- 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,- 0x1a, 0xa9, 0x02, 0x0a, 0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65,- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70,- 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,- 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69,- 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x0d, 0x6d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x71, 0x6c,+ 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75,+ 0x65, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00,+ 0x52, 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x5d, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x70,+ 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x10, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74,+ 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62,+ 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x50, 0x0a, 0x13, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65,+ 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52,+ 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x5f, 0x0a, 0x18, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78,+ 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x12,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74,+ 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x16, 0x6d, 0x61, 0x73,+ 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x96, 0x01, 0x0a, 0x2d, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74,+ 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,+ 0x66, 0x6f, 0x72, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69,+ 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46,+ 0x6f, 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x48, 0x00, 0x52, 0x27, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73,+ 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x71, 0x6c,+ 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07,+ 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65,+ 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03,+ 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,+ 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x69,+ 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x72, 0x65,+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22,+ 0x9c, 0x01, 0x0a, 0x0d, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x12,+ 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x72, 0x6f, 0x6c,+ 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70,+ 0x61, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52,+ 0x0c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1f, 0x0a,+ 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03,+ 0x28, 0x09, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x29,+ 0x0a, 0x0f, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44, 0x69, 0x73,+ 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x4d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x32, 0x0a, 0x09, 0x6d,+ 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73,+ 0x6b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x22,+ 0x8c, 0x02, 0x0a, 0x08, 0x4d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f,+ 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75,+ 0x6d, 0x6e, 0x12, 0x3e, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65,+ 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c,+ 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76,+ 0x65, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18,+ 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a,+ 0x1c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,+ 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0x57,+ 0x0a, 0x0f, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65,+ 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x0d, 0x53, 0x51, 0x4c, 0x52,+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a,+ 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65,+ 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c,+ 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2b,+ 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 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, 0x63,+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,+ 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xa9, 0x03, 0x0a, 0x16, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,+ 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x63, 0x0a, 0x12, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63, 0x65,+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,+ 0x6f, 0x6e, 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70,+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xa9, 0x02, 0x0a, 0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,+ 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x06, 0x61, 0x63,+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,+ 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,+ 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e,+ 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,+ 0x3e, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65,+ 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,+ 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69,+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 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, 0x37, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69,+ 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55,+ 0x45, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10,+ 0x02, 0x22, 0xe6, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c,+ 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 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, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75,+ 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x8e, 0x01, 0x0a, 0x0b, 0x4d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e,+ 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x12, 0x3e, 0x0a, 0x0d, 0x6d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65,- 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62,- 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18,- 0x04, 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, 0x37, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a,- 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,- 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x01,- 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x22, 0xe6, 0x01, 0x0a,- 0x11, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 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,- 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72,- 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x8e, 0x01, 0x0a, 0x0b, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,- 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f,- 0x6e, 0x18, 0x02, 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, 0x12, 0x3e, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,- 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,- 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,- 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,- 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f,- 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x2a, 0x86, 0x02, 0x0a,- 0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50,- 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x57, 0x4f, 0x52, 0x4b,- 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x52,- 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b, 0x12,- 0x0f, 0x0a, 0x0b, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x10, 0x03,- 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x04,- 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x0e, 0x0a,- 0x0a, 0x53, 0x4c, 0x4f, 0x57, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x07, 0x12, 0x15, 0x0a,- 0x11, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x50, 0x59, 0x5f, 0x44, 0x41,- 0x54, 0x41, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f,- 0x52, 0x55, 0x4c, 0x45, 0x10, 0x09, 0x12, 0x15, 0x0a, 0x11, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e,- 0x47, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x2a, 0x0a,- 0x26, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,- 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x53, 0x51, 0x4c,- 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x0c, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22,- 0x04, 0x08, 0x06, 0x10, 0x06, 0x2a, 0x7c, 0x0a, 0x12, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,- 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52,- 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53,- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x4f,- 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56,- 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52,- 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x53, 0x54, 0x41,- 0x4e, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,- 0x45, 0x10, 0x05, 0x2a, 0x50, 0x0a, 0x12, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61,- 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x43, 0x48,- 0x45, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x01, 0x12, 0x09,- 0x0a, 0x05, 0x44, 0x41, 0x49, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x57, 0x45, 0x45,- 0x4b, 0x4c, 0x59, 0x10, 0x03, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69,- 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11, 0x4c,- 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a,- 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49,- 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xeb, 0x0b, 0x0a, 0x10, 0x4f, 0x72, 0x67,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x89, 0x02,- 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1d, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,- 0xc7, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01,- 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,- 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x12, 0x21,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x90, 0x02, 0x0a, 0x0c, 0x4c, 0x69,- 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65,+ 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,+ 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,+ 0x77, 0x2a, 0xf5, 0x01, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65,+ 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a,+ 0x0d, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x01,+ 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49,+ 0x43, 0x59, 0x10, 0x0b, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49,+ 0x45, 0x57, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x10,+ 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x4c, 0x4f, 0x57, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10,+ 0x07, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x50,+ 0x59, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x41, 0x53, 0x4b,+ 0x49, 0x4e, 0x47, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x10, 0x09, 0x12, 0x15, 0x0a, 0x11, 0x4d, 0x41,+ 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10,+ 0x0a, 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x5f, 0x49, 0x53,+ 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52,+ 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x0c, 0x22, 0x04, 0x08,+ 0x02, 0x10, 0x02, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x2a, 0x7c, 0x0a, 0x12, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,+ 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d,+ 0x0a, 0x09, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a,+ 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0b,+ 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49,+ 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54,+ 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x05, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65,+ 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a,+ 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12,+ 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08,+ 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xeb, 0x0b, 0x0a, 0x10, 0x4f,+ 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,+ 0x89, 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1d, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x22, 0xc7, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0xb9, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,+ 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23,+ 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x90, 0x02, 0x0a, 0x0c,+ 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0xba, 0x01, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb0, 0x01, 0x5a, 0x22, 0x12, 0x20,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,- 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2f, 0x12,- 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x0c,- 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xb7, 0x02, 0x0a,- 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,- 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x22, 0xef, 0x01, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd8, 0x01, 0x3a, 0x06,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,+ 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 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, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x22, 0xba, 0x01, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb0, 0x01, 0x5a, 0x22,+ 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x5a, 0x2b, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x21, 0x2f, 0x76,+ 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76,0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a,- 0x37, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xe8, 0x02, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xa0,- 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x84, 0x02, 0x3a, 0x06, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32,- 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a,- 0x32, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x34, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0x92, 0x02, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xc7, 0x01, 0xda,- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x2a,- 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x5a, 0x26, 0x2a, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65,- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x2a, 0x21, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f,- 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2a,- 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 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,+ 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xb7,+ 0x02, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,+ 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72,+ 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xef, 0x01, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd8, 0x01,+ 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69,+ 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2b, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x21,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x5a, 0x37, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xe8, 0x02, 0x0a, 0x0c, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x22, 0xa0, 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x84, 0x02, 0x3a,+ 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e,+ 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,+ 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,+ 0x7d, 0x5a, 0x32, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x28, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32,+ 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x2f, 0x2a, 0x7d, 0x12, 0x92, 0x02, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xc7,+ 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a,+ 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x2a, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x2a, 0x21, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x5a, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 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 (@@ -2132,90 +1984,84 @@ func file_v1_org_policy_service_proto_rawDescGZIP() []byte {return file_v1_org_policy_service_proto_rawDescData}-var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)-var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 20)+var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)+var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 19)var file_v1_org_policy_service_proto_goTypes = []interface{}{- (PolicyType)(0), // 0: bytebase.v1.PolicyType- (PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType- (BackupPlanSchedule)(0), // 2: bytebase.v1.BackupPlanSchedule- (SQLReviewRuleLevel)(0), // 3: bytebase.v1.SQLReviewRuleLevel- (MaskingExceptionPolicy_MaskingException_Action)(0), // 4: bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- (*CreatePolicyRequest)(nil), // 5: bytebase.v1.CreatePolicyRequest- (*UpdatePolicyRequest)(nil), // 6: bytebase.v1.UpdatePolicyRequest- (*DeletePolicyRequest)(nil), // 7: bytebase.v1.DeletePolicyRequest- (*GetPolicyRequest)(nil), // 8: bytebase.v1.GetPolicyRequest- (*ListPoliciesRequest)(nil), // 9: bytebase.v1.ListPoliciesRequest- (*ListPoliciesResponse)(nil), // 10: bytebase.v1.ListPoliciesResponse- (*Policy)(nil), // 11: bytebase.v1.Policy- (*RolloutPolicy)(nil), // 12: bytebase.v1.RolloutPolicy- (*BackupPlanPolicy)(nil), // 13: bytebase.v1.BackupPlanPolicy- (*SlowQueryPolicy)(nil), // 14: bytebase.v1.SlowQueryPolicy- (*DisableCopyDataPolicy)(nil), // 15: bytebase.v1.DisableCopyDataPolicy- (*MaskingPolicy)(nil), // 16: bytebase.v1.MaskingPolicy- (*MaskData)(nil), // 17: bytebase.v1.MaskData- (*SQLReviewPolicy)(nil), // 18: bytebase.v1.SQLReviewPolicy- (*SQLReviewRule)(nil), // 19: bytebase.v1.SQLReviewRule- (*MaskingExceptionPolicy)(nil), // 20: bytebase.v1.MaskingExceptionPolicy- (*MaskingRulePolicy)(nil), // 21: bytebase.v1.MaskingRulePolicy- (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 22: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- (*MaskingExceptionPolicy_MaskingException)(nil), // 23: bytebase.v1.MaskingExceptionPolicy.MaskingException- (*MaskingRulePolicy_MaskingRule)(nil), // 24: bytebase.v1.MaskingRulePolicy.MaskingRule- (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask- (*IamPolicy)(nil), // 26: bytebase.v1.IamPolicy- (*durationpb.Duration)(nil), // 27: google.protobuf.Duration- (MaskingLevel)(0), // 28: bytebase.v1.MaskingLevel- (Engine)(0), // 29: bytebase.v1.Engine- (*expr.Expr)(nil), // 30: google.type.Expr- (*emptypb.Empty)(nil), // 31: google.protobuf.Empty+ (PolicyType)(0), // 0: bytebase.v1.PolicyType+ (PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType+ (SQLReviewRuleLevel)(0), // 2: bytebase.v1.SQLReviewRuleLevel+ (MaskingExceptionPolicy_MaskingException_Action)(0), // 3: bytebase.v1.MaskingExceptionPolicy.MaskingException.Action+ (*CreatePolicyRequest)(nil), // 4: bytebase.v1.CreatePolicyRequest+ (*UpdatePolicyRequest)(nil), // 5: bytebase.v1.UpdatePolicyRequest+ (*DeletePolicyRequest)(nil), // 6: bytebase.v1.DeletePolicyRequest+ (*GetPolicyRequest)(nil), // 7: bytebase.v1.GetPolicyRequest+ (*ListPoliciesRequest)(nil), // 8: bytebase.v1.ListPoliciesRequest+ (*ListPoliciesResponse)(nil), // 9: bytebase.v1.ListPoliciesResponse+ (*Policy)(nil), // 10: bytebase.v1.Policy+ (*RolloutPolicy)(nil), // 11: bytebase.v1.RolloutPolicy+ (*SlowQueryPolicy)(nil), // 12: bytebase.v1.SlowQueryPolicy+ (*DisableCopyDataPolicy)(nil), // 13: bytebase.v1.DisableCopyDataPolicy+ (*MaskingPolicy)(nil), // 14: bytebase.v1.MaskingPolicy+ (*MaskData)(nil), // 15: bytebase.v1.MaskData+ (*SQLReviewPolicy)(nil), // 16: bytebase.v1.SQLReviewPolicy+ (*SQLReviewRule)(nil), // 17: bytebase.v1.SQLReviewRule+ (*MaskingExceptionPolicy)(nil), // 18: bytebase.v1.MaskingExceptionPolicy+ (*MaskingRulePolicy)(nil), // 19: bytebase.v1.MaskingRulePolicy+ (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 20: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ (*MaskingExceptionPolicy_MaskingException)(nil), // 21: bytebase.v1.MaskingExceptionPolicy.MaskingException+ (*MaskingRulePolicy_MaskingRule)(nil), // 22: bytebase.v1.MaskingRulePolicy.MaskingRule+ (*fieldmaskpb.FieldMask)(nil), // 23: google.protobuf.FieldMask+ (*IamPolicy)(nil), // 24: bytebase.v1.IamPolicy+ (MaskingLevel)(0), // 25: bytebase.v1.MaskingLevel+ (Engine)(0), // 26: bytebase.v1.Engine+ (*expr.Expr)(nil), // 27: google.type.Expr+ (*emptypb.Empty)(nil), // 28: google.protobuf.Empty}var file_v1_org_policy_service_proto_depIdxs = []int32{- 11, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy+ 10, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy0, // 1: bytebase.v1.CreatePolicyRequest.type:type_name -> bytebase.v1.PolicyType- 11, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy- 25, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask+ 10, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy+ 23, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask0, // 4: bytebase.v1.ListPoliciesRequest.policy_type:type_name -> bytebase.v1.PolicyType- 11, // 5: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy+ 10, // 5: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy0, // 6: bytebase.v1.Policy.type:type_name -> bytebase.v1.PolicyType- 26, // 7: bytebase.v1.Policy.workspace_iam_policy:type_name -> bytebase.v1.IamPolicy- 12, // 8: bytebase.v1.Policy.rollout_policy:type_name -> bytebase.v1.RolloutPolicy- 13, // 9: bytebase.v1.Policy.backup_plan_policy:type_name -> bytebase.v1.BackupPlanPolicy- 16, // 10: bytebase.v1.Policy.masking_policy:type_name -> bytebase.v1.MaskingPolicy- 18, // 11: bytebase.v1.Policy.sql_review_policy:type_name -> bytebase.v1.SQLReviewPolicy- 14, // 12: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy- 15, // 13: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy- 21, // 14: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy- 20, // 15: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy- 22, // 16: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- 1, // 17: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType- 2, // 18: bytebase.v1.BackupPlanPolicy.schedule:type_name -> bytebase.v1.BackupPlanSchedule- 27, // 19: bytebase.v1.BackupPlanPolicy.retention_duration:type_name -> google.protobuf.Duration- 17, // 20: bytebase.v1.MaskingPolicy.mask_data:type_name -> bytebase.v1.MaskData- 28, // 21: bytebase.v1.MaskData.masking_level:type_name -> bytebase.v1.MaskingLevel- 19, // 22: bytebase.v1.SQLReviewPolicy.rules:type_name -> bytebase.v1.SQLReviewRule- 3, // 23: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel- 29, // 24: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine- 23, // 25: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException- 24, // 26: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule- 4, // 27: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- 28, // 28: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel- 30, // 29: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 30, // 30: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 28, // 31: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel- 8, // 32: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest- 9, // 33: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest- 5, // 34: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest- 6, // 35: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest- 7, // 36: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest- 11, // 37: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy- 10, // 38: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse- 11, // 39: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy- 11, // 40: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy- 31, // 41: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty- 37, // [37:42] is the sub-list for method output_type- 32, // [32:37] is the sub-list for method input_type- 32, // [32:32] is the sub-list for extension type_name- 32, // [32:32] is the sub-list for extension extendee- 0, // [0:32] is the sub-list for field type_name+ 24, // 7: bytebase.v1.Policy.workspace_iam_policy:type_name -> bytebase.v1.IamPolicy+ 11, // 8: bytebase.v1.Policy.rollout_policy:type_name -> bytebase.v1.RolloutPolicy+ 14, // 9: bytebase.v1.Policy.masking_policy:type_name -> bytebase.v1.MaskingPolicy+ 16, // 10: bytebase.v1.Policy.sql_review_policy:type_name -> bytebase.v1.SQLReviewPolicy+ 12, // 11: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy+ 13, // 12: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy+ 19, // 13: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy+ 18, // 14: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy+ 20, // 15: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ 1, // 16: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType+ 15, // 17: bytebase.v1.MaskingPolicy.mask_data:type_name -> bytebase.v1.MaskData+ 25, // 18: bytebase.v1.MaskData.masking_level:type_name -> bytebase.v1.MaskingLevel+ 17, // 19: bytebase.v1.SQLReviewPolicy.rules:type_name -> bytebase.v1.SQLReviewRule+ 2, // 20: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel+ 26, // 21: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine+ 21, // 22: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException+ 22, // 23: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule+ 3, // 24: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action+ 25, // 25: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel+ 27, // 26: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 27, // 27: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 25, // 28: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel+ 7, // 29: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest+ 8, // 30: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest+ 4, // 31: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest+ 5, // 32: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest+ 6, // 33: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest+ 10, // 34: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy+ 9, // 35: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse+ 10, // 36: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy+ 10, // 37: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy+ 28, // 38: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty+ 34, // [34:39] is the sub-list for method output_type+ 29, // [29:34] is the sub-list for method input_type+ 29, // [29:29] is the sub-list for extension type_name+ 29, // [29:29] is the sub-list for extension extendee+ 0, // [0:29] is the sub-list for field type_name}func init() { file_v1_org_policy_service_proto_init() }@@ -2323,18 +2169,6 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*BackupPlanPolicy); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_org_policy_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SlowQueryPolicy); i {case 0:return &v.state@@ -2346,7 +2180,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DisableCopyDataPolicy); i {case 0:return &v.state@@ -2358,7 +2192,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingPolicy); i {case 0:return &v.state@@ -2370,7 +2204,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskData); i {case 0:return &v.state@@ -2382,7 +2216,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SQLReviewPolicy); i {case 0:return &v.state@@ -2394,7 +2228,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SQLReviewRule); i {case 0:return &v.state@@ -2406,7 +2240,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingExceptionPolicy); i {case 0:return &v.state@@ -2418,7 +2252,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingRulePolicy); i {case 0:return &v.state@@ -2430,7 +2264,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*RestrictIssueCreationForSQLReviewPolicy); i {case 0:return &v.state@@ -2442,7 +2276,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingExceptionPolicy_MaskingException); i {case 0:return &v.state@@ -2454,7 +2288,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingRulePolicy_MaskingRule); i {case 0:return &v.state@@ -2471,7 +2305,6 @@ func file_v1_org_policy_service_proto_init() {file_v1_org_policy_service_proto_msgTypes[6].OneofWrappers = []interface{}{(*Policy_WorkspaceIamPolicy)(nil),(*Policy_RolloutPolicy)(nil),- (*Policy_BackupPlanPolicy)(nil),(*Policy_MaskingPolicy)(nil),(*Policy_SqlReviewPolicy)(nil),(*Policy_SlowQueryPolicy)(nil),@@ -2485,8 +2318,8 @@ func file_v1_org_policy_service_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_org_policy_service_proto_rawDesc,- NumEnums: 5,- NumMessages: 20,+ NumEnums: 4,+ NumMessages: 19,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.goindex e040127ef6..a73cd851d8 100644--- a/proto/generated-go/v1/project_service.pb.go+++ b/proto/generated-go/v1/project_service.pb.go@@ -548,9 +548,6 @@ const (// SQL Editor related activity types.// TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.Activity_TYPE_SQL_EDITOR_QUERY Activity_Type = 19- // Database related activity types.- // TYPE_DATABASE_RECOVERY_PITR_DONE represents the database recovery to a point in time is done.- Activity_TYPE_DATABASE_RECOVERY_PITR_DONE Activity_Type = 20)// Enum value maps for Activity_Type.@@ -579,7 +576,6 @@ var (16: "TYPE_PROJECT_MEMBER_CREATE",17: "TYPE_PROJECT_MEMBER_DELETE",19: "TYPE_SQL_EDITOR_QUERY",- 20: "TYPE_DATABASE_RECOVERY_PITR_DONE",}Activity_Type_value = map[string]int32{"TYPE_UNSPECIFIED": 0,@@ -605,7 +601,6 @@ var ("TYPE_PROJECT_MEMBER_CREATE": 16,"TYPE_PROJECT_MEMBER_DELETE": 17,"TYPE_SQL_EDITOR_QUERY": 19,- "TYPE_DATABASE_RECOVERY_PITR_DONE": 20,})@@ -4256,8 +4251,8 @@ var file_v1_project_service_proto_rawDesc = []byte{0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65,0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61,0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75,- 0x65, 0x73, 0x22, 0xcb, 0x06, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22,- 0xbe, 0x06, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45,+ 0x65, 0x73, 0x22, 0xa5, 0x06, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22,+ 0x98, 0x06, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45,0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e,0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x5f, 0x49, 0x53,0x53, 0x55, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x17, 0x12, 0x20,@@ -4306,535 +4301,533 @@ var file_v1_project_service_proto_rawDesc = []byte{0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f,0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x11, 0x12,0x19, 0x0a, 0x15, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x44, 0x49, 0x54,- 0x4f, 0x52, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x13, 0x12, 0x24, 0x0a, 0x20, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x4f,- 0x56, 0x45, 0x52, 0x59, 0x5f, 0x50, 0x49, 0x54, 0x52, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x14,- 0x22, 0x74, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,- 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,- 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f,- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67,- 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65,- 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,- 0x65, 0x6e, 0x22, 0x66, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,- 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xd2, 0x01, 0x0a, 0x1a, 0x43,- 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x4f, 0x52, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x13, 0x22, 0x74, 0x0a, 0x19, 0x4c, 0x69,+ 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,+ 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,+ 0x22, 0x89, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,+ 0x43, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75,+ 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,+ 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,+ 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x66, 0x0a, 0x17,+ 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e,0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a,- 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,- 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61,- 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22,- 0xa1, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46,- 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x5f, 0x6d, 0x61, 0x73, 0x6b, 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, 0x46, 0x69,- 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,- 0x61, 0x73, 0x6b, 0x22, 0x35, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,- 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x12, 0x31, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x6c, 0x61,- 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c,- 0x64, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,- 0x65, 0x78, 0x70, 0x72, 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, 0x0c, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x55, 0x0a, 0x11, 0x6d,- 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,- 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03,- 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x73, 0x12, 0x59, 0x0a, 0x13, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x12, 0x75, 0x6e, 0x6d, 0x61, 0x74,- 0x63, 0x68, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x1a, 0x1e, 0x0a,- 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc6, 0x01,- 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49,- 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e,- 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,- 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72,- 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,- 0x6d, 0x61, 0x73, 0x6b, 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, 0x46, 0x69, 0x65,- 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,- 0x73, 0x6b, 0x22, 0x33, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17,- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,- 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x72, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,- 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,- 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x18,- 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f,- 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22,- 0x62, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04,+ 0x76, 0x69, 0x65, 0x77, 0x22, 0xd2, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,+ 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f,+ 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,+ 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c,+ 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xa1, 0x01, 0x0a, 0x1a, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 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, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73,+ 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x35, 0x0a,+ 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x14, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64,+ 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x36, 0x0a,+ 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x72, 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, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x55, 0x0a, 0x11, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64,+ 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63,+ 0x68, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x13,+ 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x03,+ 0xe0, 0x41, 0x03, 0x52, 0x12, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x1a, 0x1e, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75,+ 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72,+ 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76,+ 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79,+ 0x22, 0x99, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a,+ 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0,+ 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,+ 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 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, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b,+ 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x33, 0x0a, 0x18,+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x12, 0x30, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76,- 0x69, 0x65, 0x77, 0x22, 0xef, 0x02, 0x0a, 0x0b, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65,- 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x02, 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,- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x61, 0x62,- 0x6c, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65,- 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x0e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65,- 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x03,- 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c,- 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x10, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f,- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41,- 0x03, 0x52, 0x0f, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c,- 0x65, 0x73, 0x1a, 0x51, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,- 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x3b, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c,- 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x22, 0x73, 0x0a, 0x23, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c,- 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x10, 0x70, 0x72, 0x6f,- 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65,- 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69,- 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x65,- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31,- 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74,- 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65,- 0x73, 0x22, 0xf7, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,- 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c,- 0x65, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,- 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65,- 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x6c,- 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65,- 0x64, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,- 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e,+ 0x65, 0x22, 0x72, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,+ 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,+ 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f,+ 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74,+ 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x62, 0x0a, 0x15, 0x47, 0x65, 0x74,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x76,+ 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xef, 0x02,+ 0x0a, 0x0b, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18,+ 0x02, 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, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x45,+ 0x78, 0x70, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x6c, 0x61,+ 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72,+ 0x12, 0x4a, 0x0a, 0x0e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c,+ 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6d,+ 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x10,+ 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73,+ 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x75, 0x6e, 0x6d,+ 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, 0x51, 0x0a, 0x05,+ 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62,+ 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22,+ 0x3b, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f,+ 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x73, 0x0a, 0x23,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f,+ 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f,+ 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74,- 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63,- 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x47, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12,- 0x21, 0x0a, 0x1d, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41,- 0x52, 0x47, 0x45, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x0e,- 0x0a, 0x0a, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x22, 0x3b,- 0x0a, 0x0c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d,- 0x0a, 0x19, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,- 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a,- 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x35, 0x0a, 0x08, 0x57,- 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x18, 0x0a, 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46,- 0x4c, 0x4f, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,- 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53,- 0x10, 0x02, 0x2a, 0x57, 0x0a, 0x0a, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,- 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55,- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11,- 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49,- 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54,- 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x5c, 0x0a, 0x0a, 0x54,- 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x45, 0x4e,- 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54,- 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01,- 0x12, 0x17, 0x0a, 0x13, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f,- 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x4c, 0x0a, 0x0d, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x43,- 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53,- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49,- 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x4d,- 0x41, 0x4e, 0x54, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x3f, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x43, 0x48, 0x45, 0x4d,- 0x41, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x44, 0x4c, 0x10, 0x01, 0x12,- 0x07, 0x0a, 0x03, 0x53, 0x44, 0x4c, 0x10, 0x02, 0x2a, 0x5d, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x72,- 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52,- 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41,- 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a,- 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45,- 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x2a, 0x75, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x12, 0x23, 0x0a, 0x1f,- 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56,- 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,- 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52,- 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01,- 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f,- 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x6d,- 0x0a, 0x0f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65,- 0x77, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55,- 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,- 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47,- 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10,- 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55,- 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0x93, 0x25,- 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,- 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,+ 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02,+ 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65,+ 0x73, 0x22, 0x58, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,+ 0x75, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65,+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0xf7, 0x02, 0x0a, 0x0e,+ 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e,+ 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a,+ 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f,+ 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x54, 0x61, 0x72, 0x67,+ 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x61,+ 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61,+ 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03,+ 0x28, 0x09, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x6f, 0x6c, 0x65, 0x73,+ 0x12, 0x4d, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22,+ 0x47, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x52, 0x4f,+ 0x54, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,+ 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x48, 0x41, 0x4e,+ 0x47, 0x45, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x22, 0x3b, 0x0a, 0x0c, 0x42, 0x72, 0x61, 0x6e,+ 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x52, 0x41, 0x4e,+ 0x43, 0x48, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42,+ 0x41, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x35, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f,+ 0x77, 0x12, 0x18, 0x0a, 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55,+ 0x49, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x2a, 0x57, 0x0a, 0x0a,+ 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49,+ 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49,+ 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a,+ 0x12, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56,+ 0x41, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x5c, 0x0a, 0x0a, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d,+ 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f,+ 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x18, 0x0a, 0x14, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f,+ 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x45,+ 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45,+ 0x44, 0x10, 0x02, 0x2a, 0x4c, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72,+ 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x56,+ 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d,+ 0x50, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x4d, 0x41, 0x4e, 0x54, 0x49, 0x43, 0x10,+ 0x02, 0x2a, 0x3f, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x43, 0x48, 0x41, 0x4e,+ 0x47, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x07, 0x0a, 0x03, 0x44, 0x44, 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x44, 0x4c,+ 0x10, 0x02, 0x2a, 0x5d, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79,+ 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54,+ 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41,+ 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10,+ 0x02, 0x2a, 0x75, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,+ 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x44,+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49,+ 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41,+ 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45,+ 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x6d, 0x0a, 0x0f, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x12, 0x21, 0x0a, 0x1d, 0x53,+ 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b,+ 0x0a, 0x17, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56,+ 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x53,+ 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57,+ 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0x93, 0x25, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65,+ 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x24,+ 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x6c, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 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, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0xda, 0x41, 0x00, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x12, 0x79, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0xda,+ 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x6a, 0x0a,+ 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,+ 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x20, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x17, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x0c, 0x2f, 0x76, 0x31,+ 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x8e, 0x01, 0x0a, 0x0d, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x6c, 0x0a, 0x0c, 0x4c, 0x69,- 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 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, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0x17, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x79, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72,- 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61,- 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x22, 0x1e, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13,- 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61,- 0x72, 0x63, 0x68, 0x12, 0x6a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x20, 0xda,- 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12,- 0x8e, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71,+ 0x6a, 0x65, 0x63, 0x74, 0x22, 0x44, 0xda, 0x41, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x28, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x32, 0x1d, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x70, 0x0a, 0x0d, 0x44, 0x65,+ 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x77, 0x0a, 0x0f,+ 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12,+ 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e,+ 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71,0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x44, 0xda, 0x41, 0x13, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,- 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0x70, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x24, 0xda, 0x41,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x15, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0x77, 0x0a, 0x0f, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x77, 0x0a, 0x0c, 0x47,- 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x90, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,- 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,- 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f,- 0x2a, 0x7d, 0x2f, 0x69, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x62,- 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x7a, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61,- 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x76,+ 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x77, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,+ 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x90,+ 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47,+ 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f,+ 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x61, 0x6d,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,+ 0x74, 0x12, 0x7a, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,+ 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x90, 0x01,+ 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43,+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,+ 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70,+ 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x31, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c,+ 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d,+ 0x12, 0xa5, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f,+ 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x06,+ 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x63, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x72, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x57,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2e, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0xa1, 0x01, 0x0a,+ 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x57, 0xda, 0x41, 0x13, 0x77, 0x65, 0x62, 0x68,+ 0x6f, 0x6f, 0x6b, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x77,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f,+ 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,+ 0x12, 0x8b, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f,+ 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x41, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x77, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d,+ 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x81,+ 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1f,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73,+ 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65,+ 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76,0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x12, 0x90, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f,- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70,- 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66,- 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c,- 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x40, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x30, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,- 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x72,- 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x65,- 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f,- 0x6f, 0x6b, 0x12, 0xa1, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x57, 0xda,- 0x41, 0x13, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57,- 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x8b, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76,- 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f,- 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x81, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a,- 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73,- 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0xa7, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f,+ 0x6f, 0x6b, 0x12, 0xa7, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73,- 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66,- 0x6f, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x32, 0x34, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x69, 0x74, 0x6f, 0x70,- 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66,- 0x6f, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x16, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65,- 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e,- 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,- 0x79, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22,- 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66,- 0x6f, 0x7d, 0x12, 0xa4, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x12, 0x24,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74,- 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65,- 0x77, 0x43, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x36, 0x3a, 0x01, 0x2a, 0x32, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74,- 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51,- 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x12, 0x8a, 0x01, 0x0a, 0x14, 0x47, 0x65,- 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e,- 0x66, 0x6f, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70,- 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x28, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70,- 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37,- 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12,- 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x35,- 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb1, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,- 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x22, 0x55, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x38, 0x3a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75,- 0x70, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xc6, 0x01, 0x0a, 0x13, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x6a, 0xda, 0x41, 0x1a, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x0e, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x35, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,+ 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x3f, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x32, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f,0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,+ 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d, 0x12, 0x8d, 0x01, 0x0a,+ 0x16, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74,+ 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75,0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x35, 0xda, 0x41, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x2f, 0x76, 0x31, 0x2f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2f, 0xda, 0x41, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f,0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0xa7, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d, 0x12, 0xa4, 0x01, 0x0a,+ 0x17, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x51, 0x4c,+ 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52,+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74,+ 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x01, 0x2a,+ 0x32, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66,+ 0x6f, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65,+ 0x77, 0x43, 0x49, 0x12, 0x8a, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f,+ 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d,+ 0x12, 0x9e, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,+ 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x35, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12,+ 0xb1, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x55, 0xda, 0x41,+ 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x3a, 0x0e, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x26, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x73, 0x12, 0xc6, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x22, 0x6a, 0xda, 0x41, 0x1a, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72,+ 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8d, 0x01, 0x0a,+ 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,+ 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x35, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa7, 0x01, 0x0a,+ 0x10, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70,- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x94, 0x01, 0x0a,- 0x0e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,- 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x44, 0xda,- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,- 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,- 0x2f, 0x2a, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x62, 0xda, 0x41, 0x14, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x3a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a,- 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xc9,- 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x73, 0xda, 0x41, 0x18, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,- 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46,+ 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12,+ 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x94, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x44, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb8, 0x01,+ 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x22, 0x62, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c,+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x45, 0x3a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75,+ 0x70, 0x22, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x11, 0x44,- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70,- 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,- 0x44, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x2a, 0x35,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x97, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75,- 0x6c, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74,- 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,- 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70,- 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x7d, 0x12,- 0xb1, 0x01, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,- 0x12, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74,- 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,- 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x32, 0x36, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c,- 0x65, 0x73, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c,- 0x65, 0x73, 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,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xc9, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22,+ 0x73, 0xda, 0x41, 0x18, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,+ 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x52, 0x3a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,+ 0x32, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72,+ 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x44, 0xda, 0x41, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x2a, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,+ 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x2f,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12,+ 0x97, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72,+ 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x2d, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74,+ 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x7d, 0x12, 0xb1, 0x01, 0x0a, 0x1c, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x32, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x74,+ 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f,+ 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 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 (diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.goindex 309a0efd67..4bd49bbca7 100644--- a/proto/generated-go/v1/rollout_service.pb.go+++ b/proto/generated-go/v1/rollout_service.pb.go@@ -38,8 +38,6 @@ const (Plan_ChangeDatabaseConfig_MIGRATE_SDL Plan_ChangeDatabaseConfig_Type = 3// Used for DDL changes using gh-ost.Plan_ChangeDatabaseConfig_MIGRATE_GHOST Plan_ChangeDatabaseConfig_Type = 4- // Used when restoring from a backup (the restored database branched from the original backup).- Plan_ChangeDatabaseConfig_BRANCH Plan_ChangeDatabaseConfig_Type = 5// Used for DML change.Plan_ChangeDatabaseConfig_DATA Plan_ChangeDatabaseConfig_Type = 6)@@ -52,7 +50,6 @@ var (2: "MIGRATE",3: "MIGRATE_SDL",4: "MIGRATE_GHOST",- 5: "BRANCH",6: "DATA",}Plan_ChangeDatabaseConfig_Type_value = map[string]int32{@@ -61,7 +58,6 @@ var ("MIGRATE": 2,"MIGRATE_SDL": 3,"MIGRATE_GHOST": 4,- "BRANCH": 5,"DATA": 6,})@@ -104,7 +100,6 @@ const (PlanCheckRun_DATABASE_STATEMENT_SUMMARY_REPORT PlanCheckRun_Type = 5PlanCheckRun_DATABASE_CONNECT PlanCheckRun_Type = 6PlanCheckRun_DATABASE_GHOST_SYNC PlanCheckRun_Type = 7- PlanCheckRun_DATABASE_PITR_MYSQL PlanCheckRun_Type = 8)// Enum value maps for PlanCheckRun_Type.@@ -118,7 +113,6 @@ var (5: "DATABASE_STATEMENT_SUMMARY_REPORT",6: "DATABASE_CONNECT",7: "DATABASE_GHOST_SYNC",- 8: "DATABASE_PITR_MYSQL",}PlanCheckRun_Type_value = map[string]int32{"TYPE_UNSPECIFIED": 0,@@ -129,7 +123,6 @@ var ("DATABASE_STATEMENT_SUMMARY_REPORT": 5,"DATABASE_CONNECT": 6,"DATABASE_GHOST_SYNC": 7,- "DATABASE_PITR_MYSQL": 8,})@@ -350,12 +343,6 @@ const (Task_DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER Task_Type = 7// use payload DatabaseDataUpdateTask_DATABASE_DATA_UPDATE Task_Type = 8- // use payload DatabaseBackup- Task_DATABASE_BACKUP Task_Type = 9- // use payload DatabaseRestoreRestore- Task_DATABASE_RESTORE_RESTORE Task_Type = 10- // use payload nil- Task_DATABASE_RESTORE_CUTOVER Task_Type = 11// use payload DatabaseDataExportTask_DATABASE_DATA_EXPORT Task_Type = 12)@@ -372,9 +359,6 @@ var (6: "DATABASE_SCHEMA_UPDATE_GHOST_SYNC",7: "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER",8: "DATABASE_DATA_UPDATE",- 9: "DATABASE_BACKUP",- 10: "DATABASE_RESTORE_RESTORE",- 11: "DATABASE_RESTORE_CUTOVER",12: "DATABASE_DATA_EXPORT",}Task_Type_value = map[string]int32{@@ -387,9 +371,6 @@ var ("DATABASE_SCHEMA_UPDATE_GHOST_SYNC": 6,"DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER": 7,"DATABASE_DATA_UPDATE": 8,- "DATABASE_BACKUP": 9,- "DATABASE_RESTORE_RESTORE": 10,- "DATABASE_RESTORE_CUTOVER": 11,"DATABASE_DATA_EXPORT": 12,})@@ -2120,8 +2101,6 @@ type Task struct {// *Task_DatabaseSchemaBaseline_// *Task_DatabaseSchemaUpdate_// *Task_DatabaseDataUpdate_- // *Task_DatabaseBackup_- // *Task_DatabaseRestoreRestore_// *Task_DatabaseDataExport_Payload isTask_Payload `protobuf_oneof:"payload"`}@@ -2256,20 +2235,6 @@ func (x *Task) GetDatabaseDataUpdate() *Task_DatabaseDataUpdate {return nil}-func (x *Task) GetDatabaseBackup() *Task_DatabaseBackup {- if x, ok := x.GetPayload().(*Task_DatabaseBackup_); ok {- return x.DatabaseBackup- }- return nil-}--func (x *Task) GetDatabaseRestoreRestore() *Task_DatabaseRestoreRestore {- if x, ok := x.GetPayload().(*Task_DatabaseRestoreRestore_); ok {- return x.DatabaseRestoreRestore- }- return nil-}-func (x *Task) GetDatabaseDataExport() *Task_DatabaseDataExport {if x, ok := x.GetPayload().(*Task_DatabaseDataExport_); ok {return x.DatabaseDataExport@@ -2297,14 +2262,6 @@ type Task_DatabaseDataUpdate_ struct {DatabaseDataUpdate *Task_DatabaseDataUpdate `protobuf:"bytes,12,opt,name=database_data_update,json=databaseDataUpdate,proto3,oneof"`}-type Task_DatabaseBackup_ struct {- DatabaseBackup *Task_DatabaseBackup `protobuf:"bytes,13,opt,name=database_backup,json=databaseBackup,proto3,oneof"`-}--type Task_DatabaseRestoreRestore_ struct {- DatabaseRestoreRestore *Task_DatabaseRestoreRestore `protobuf:"bytes,14,opt,name=database_restore_restore,json=databaseRestoreRestore,proto3,oneof"`-}-type Task_DatabaseDataExport_ struct {DatabaseDataExport *Task_DatabaseDataExport `protobuf:"bytes,16,opt,name=database_data_export,json=databaseDataExport,proto3,oneof"`}@@ -2317,10 +2274,6 @@ func (*Task_DatabaseSchemaUpdate_) isTask_Payload() {}func (*Task_DatabaseDataUpdate_) isTask_Payload() {}-func (*Task_DatabaseBackup_) isTask_Payload() {}--func (*Task_DatabaseRestoreRestore_) isTask_Payload() {}-func (*Task_DatabaseDataExport_) isTask_Payload() {}type TaskRun struct {@@ -2562,7 +2515,6 @@ type Plan_Spec struct {//// *Plan_Spec_CreateDatabaseConfig// *Plan_Spec_ChangeDatabaseConfig- // *Plan_Spec_RestoreDatabaseConfig// *Plan_Spec_ExportDataConfigConfig isPlan_Spec_Config `protobuf_oneof:"config"`}@@ -2641,13 +2593,6 @@ func (x *Plan_Spec) GetChangeDatabaseConfig() *Plan_ChangeDatabaseConfig {return nil}-func (x *Plan_Spec) GetRestoreDatabaseConfig() *Plan_RestoreDatabaseConfig {- if x, ok := x.GetConfig().(*Plan_Spec_RestoreDatabaseConfig); ok {- return x.RestoreDatabaseConfig- }- return nil-}-func (x *Plan_Spec) GetExportDataConfig() *Plan_ExportDataConfig {if x, ok := x.GetConfig().(*Plan_Spec_ExportDataConfig); ok {return x.ExportDataConfig@@ -2667,10 +2612,6 @@ type Plan_Spec_ChangeDatabaseConfig struct {ChangeDatabaseConfig *Plan_ChangeDatabaseConfig `protobuf:"bytes,2,opt,name=change_database_config,json=changeDatabaseConfig,proto3,oneof"`}-type Plan_Spec_RestoreDatabaseConfig struct {- RestoreDatabaseConfig *Plan_RestoreDatabaseConfig `protobuf:"bytes,3,opt,name=restore_database_config,json=restoreDatabaseConfig,proto3,oneof"`-}-type Plan_Spec_ExportDataConfig struct {ExportDataConfig *Plan_ExportDataConfig `protobuf:"bytes,7,opt,name=export_data_config,json=exportDataConfig,proto3,oneof"`}@@ -2679,8 +2620,6 @@ func (*Plan_Spec_CreateDatabaseConfig) isPlan_Spec_Config() {}func (*Plan_Spec_ChangeDatabaseConfig) isPlan_Spec_Config() {}-func (*Plan_Spec_RestoreDatabaseConfig) isPlan_Spec_Config() {}-func (*Plan_Spec_ExportDataConfig) isPlan_Spec_Config() {}type Plan_CreateDatabaseConfig struct {@@ -2704,9 +2643,6 @@ type Plan_CreateDatabaseConfig struct {Cluster string `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`// owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`- // backup is the resource name of the backup.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- Backup string `protobuf:"bytes,8,opt,name=backup,proto3" json:"backup,omitempty"`// The environment resource.// Format: environments/prod where prod is the environment resource ID.Environment string `protobuf:"bytes,9,opt,name=environment,proto3" json:"environment,omitempty"`@@ -2795,13 +2731,6 @@ func (x *Plan_CreateDatabaseConfig) GetOwner() string {return ""}-func (x *Plan_CreateDatabaseConfig) GetBackup() string {- if x != nil {- return x.Backup- }- return ""-}-func (x *Plan_CreateDatabaseConfig) GetEnvironment() string {if x != nil {return x.Environment@@ -2930,111 +2859,6 @@ func (x *Plan_ChangeDatabaseConfig) GetPreUpdateBackupDetail() *Plan_ChangeDatabreturn nil}-type Plan_RestoreDatabaseConfig struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the target to restore.- // Format: instances/{instance}/databases/{database}- Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`- // create_database_config is present if the user wants to restore to a new database.- CreateDatabaseConfig *Plan_CreateDatabaseConfig `protobuf:"bytes,2,opt,name=create_database_config,json=createDatabaseConfig,proto3,oneof" json:"create_database_config,omitempty"`- // source determines how to restore the database.- // 1. from a backup- // 2. from a point in time- //- // Types that are assignable to Source:- //- // *Plan_RestoreDatabaseConfig_Backup- // *Plan_RestoreDatabaseConfig_PointInTime- Source isPlan_RestoreDatabaseConfig_Source `protobuf_oneof:"source"`-}--func (x *Plan_RestoreDatabaseConfig) Reset() {- *x = Plan_RestoreDatabaseConfig{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[30]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Plan_RestoreDatabaseConfig) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Plan_RestoreDatabaseConfig) ProtoMessage() {}--func (x *Plan_RestoreDatabaseConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[30]- 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 Plan_RestoreDatabaseConfig.ProtoReflect.Descriptor instead.-func (*Plan_RestoreDatabaseConfig) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 4}-}--func (x *Plan_RestoreDatabaseConfig) GetTarget() string {- if x != nil {- return x.Target- }- return ""-}--func (x *Plan_RestoreDatabaseConfig) GetCreateDatabaseConfig() *Plan_CreateDatabaseConfig {- if x != nil {- return x.CreateDatabaseConfig- }- return nil-}--func (m *Plan_RestoreDatabaseConfig) GetSource() isPlan_RestoreDatabaseConfig_Source {- if m != nil {- return m.Source- }- return nil-}--func (x *Plan_RestoreDatabaseConfig) GetBackup() string {- if x, ok := x.GetSource().(*Plan_RestoreDatabaseConfig_Backup); ok {- return x.Backup- }- return ""-}--func (x *Plan_RestoreDatabaseConfig) GetPointInTime() *timestamppb.Timestamp {- if x, ok := x.GetSource().(*Plan_RestoreDatabaseConfig_PointInTime); ok {- return x.PointInTime- }- return nil-}--type isPlan_RestoreDatabaseConfig_Source interface {- isPlan_RestoreDatabaseConfig_Source()-}--type Plan_RestoreDatabaseConfig_Backup struct {- Backup string `protobuf:"bytes,3,opt,name=backup,proto3,oneof"`-}--type Plan_RestoreDatabaseConfig_PointInTime struct {- // After the PITR operations, the database will be recovered to the state at this time.- PointInTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=point_in_time,json=pointInTime,proto3,oneof"`-}--func (*Plan_RestoreDatabaseConfig_Backup) isPlan_RestoreDatabaseConfig_Source() {}--func (*Plan_RestoreDatabaseConfig_PointInTime) isPlan_RestoreDatabaseConfig_Source() {}-type Plan_ExportDataConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -3058,7 +2882,7 @@ type Plan_ExportDataConfig struct {func (x *Plan_ExportDataConfig) Reset() {*x = Plan_ExportDataConfig{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[31]+ mi := &file_v1_rollout_service_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3071,7 +2895,7 @@ func (x *Plan_ExportDataConfig) String() string {func (*Plan_ExportDataConfig) ProtoMessage() {}func (x *Plan_ExportDataConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[31]+ mi := &file_v1_rollout_service_proto_msgTypes[30]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3084,7 +2908,7 @@ func (x *Plan_ExportDataConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use Plan_ExportDataConfig.ProtoReflect.Descriptor instead.func (*Plan_ExportDataConfig) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 5}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 4}}func (x *Plan_ExportDataConfig) GetTarget() string {@@ -3138,7 +2962,7 @@ type Plan_ChangeDatabaseConfig_RollbackDetail struct {func (x *Plan_ChangeDatabaseConfig_RollbackDetail) Reset() {*x = Plan_ChangeDatabaseConfig_RollbackDetail{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[33]+ mi := &file_v1_rollout_service_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3151,7 +2975,7 @@ func (x *Plan_ChangeDatabaseConfig_RollbackDetail) String() string {func (*Plan_ChangeDatabaseConfig_RollbackDetail) ProtoMessage() {}func (x *Plan_ChangeDatabaseConfig_RollbackDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[33]+ mi := &file_v1_rollout_service_proto_msgTypes[32]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3194,7 +3018,7 @@ type Plan_ChangeDatabaseConfig_PreUpdateBackupDetail struct {func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) Reset() {*x = Plan_ChangeDatabaseConfig_PreUpdateBackupDetail{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[35]+ mi := &file_v1_rollout_service_proto_msgTypes[34]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3207,7 +3031,7 @@ func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) String() string {func (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoMessage() {}func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[35]+ mi := &file_v1_rollout_service_proto_msgTypes[34]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3249,7 +3073,7 @@ type PlanCheckRun_Result struct {func (x *PlanCheckRun_Result) Reset() {*x = PlanCheckRun_Result{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[36]+ mi := &file_v1_rollout_service_proto_msgTypes[35]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3262,7 +3086,7 @@ func (x *PlanCheckRun_Result) String() string {func (*PlanCheckRun_Result) ProtoMessage() {}func (x *PlanCheckRun_Result) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[36]+ mi := &file_v1_rollout_service_proto_msgTypes[35]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3358,7 +3182,7 @@ type PlanCheckRun_Result_SqlSummaryReport struct {func (x *PlanCheckRun_Result_SqlSummaryReport) Reset() {*x = PlanCheckRun_Result_SqlSummaryReport{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[37]+ mi := &file_v1_rollout_service_proto_msgTypes[36]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3371,7 +3195,7 @@ func (x *PlanCheckRun_Result_SqlSummaryReport) String() string {func (*PlanCheckRun_Result_SqlSummaryReport) ProtoMessage() {}func (x *PlanCheckRun_Result_SqlSummaryReport) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[37]+ mi := &file_v1_rollout_service_proto_msgTypes[36]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3430,7 +3254,7 @@ type PlanCheckRun_Result_SqlReviewReport struct {func (x *PlanCheckRun_Result_SqlReviewReport) Reset() {*x = PlanCheckRun_Result_SqlReviewReport{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[38]+ mi := &file_v1_rollout_service_proto_msgTypes[37]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3443,7 +3267,7 @@ func (x *PlanCheckRun_Result_SqlReviewReport) String() string {func (*PlanCheckRun_Result_SqlReviewReport) ProtoMessage() {}func (x *PlanCheckRun_Result_SqlReviewReport) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[38]+ mi := &file_v1_rollout_service_proto_msgTypes[37]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3510,7 +3334,7 @@ type Task_DatabaseCreate struct {func (x *Task_DatabaseCreate) Reset() {*x = Task_DatabaseCreate{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[39]+ mi := &file_v1_rollout_service_proto_msgTypes[38]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3523,7 +3347,7 @@ func (x *Task_DatabaseCreate) String() string {func (*Task_DatabaseCreate) ProtoMessage() {}func (x *Task_DatabaseCreate) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[39]+ mi := &file_v1_rollout_service_proto_msgTypes[38]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3606,7 +3430,7 @@ type Task_DatabaseSchemaBaseline struct {func (x *Task_DatabaseSchemaBaseline) Reset() {*x = Task_DatabaseSchemaBaseline{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[40]+ mi := &file_v1_rollout_service_proto_msgTypes[39]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3619,7 +3443,7 @@ func (x *Task_DatabaseSchemaBaseline) String() string {func (*Task_DatabaseSchemaBaseline) ProtoMessage() {}func (x *Task_DatabaseSchemaBaseline) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[40]+ mi := &file_v1_rollout_service_proto_msgTypes[39]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3655,7 +3479,7 @@ type Task_DatabaseSchemaUpdate struct {func (x *Task_DatabaseSchemaUpdate) Reset() {*x = Task_DatabaseSchemaUpdate{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[41]+ mi := &file_v1_rollout_service_proto_msgTypes[40]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3668,7 +3492,7 @@ func (x *Task_DatabaseSchemaUpdate) String() string {func (*Task_DatabaseSchemaUpdate) ProtoMessage() {}func (x *Task_DatabaseSchemaUpdate) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[41]+ mi := &file_v1_rollout_service_proto_msgTypes[40]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3728,7 +3552,7 @@ type Task_DatabaseDataUpdate struct {func (x *Task_DatabaseDataUpdate) Reset() {*x = Task_DatabaseDataUpdate{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[42]+ mi := &file_v1_rollout_service_proto_msgTypes[41]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3741,7 +3565,7 @@ func (x *Task_DatabaseDataUpdate) String() string {func (*Task_DatabaseDataUpdate) ProtoMessage() {}func (x *Task_DatabaseDataUpdate) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[42]+ mi := &file_v1_rollout_service_proto_msgTypes[41]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3813,152 +3637,6 @@ func (x *Task_DatabaseDataUpdate) GetRollbackFromTask() string {return ""}-type Task_DatabaseBackup struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the backup.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- Backup string `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty"`-}--func (x *Task_DatabaseBackup) Reset() {- *x = Task_DatabaseBackup{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[43]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Task_DatabaseBackup) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Task_DatabaseBackup) ProtoMessage() {}--func (x *Task_DatabaseBackup) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[43]- 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 Task_DatabaseBackup.ProtoReflect.Descriptor instead.-func (*Task_DatabaseBackup) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{24, 4}-}--func (x *Task_DatabaseBackup) GetBackup() string {- if x != nil {- return x.Backup- }- return ""-}--type Task_DatabaseRestoreRestore struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // Target is only used when doing restore to a new database now.- // It is empty for the case of in-place restore.- // Target {instance} must be within the same environment as the instance of the original database.- // {database} is the target database name.- // Format: instances/{instance}/databases/database- Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`- // Types that are assignable to Source:- //- // *Task_DatabaseRestoreRestore_Backup- // *Task_DatabaseRestoreRestore_PointInTime- Source isTask_DatabaseRestoreRestore_Source `protobuf_oneof:"source"`-}--func (x *Task_DatabaseRestoreRestore) Reset() {- *x = Task_DatabaseRestoreRestore{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[44]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Task_DatabaseRestoreRestore) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Task_DatabaseRestoreRestore) ProtoMessage() {}--func (x *Task_DatabaseRestoreRestore) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[44]- 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 Task_DatabaseRestoreRestore.ProtoReflect.Descriptor instead.-func (*Task_DatabaseRestoreRestore) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{24, 5}-}--func (x *Task_DatabaseRestoreRestore) GetTarget() string {- if x != nil {- return x.Target- }- return ""-}--func (m *Task_DatabaseRestoreRestore) GetSource() isTask_DatabaseRestoreRestore_Source {- if m != nil {- return m.Source- }- return nil-}--func (x *Task_DatabaseRestoreRestore) GetBackup() string {- if x, ok := x.GetSource().(*Task_DatabaseRestoreRestore_Backup); ok {- return x.Backup- }- return ""-}--func (x *Task_DatabaseRestoreRestore) GetPointInTime() *timestamppb.Timestamp {- if x, ok := x.GetSource().(*Task_DatabaseRestoreRestore_PointInTime); ok {- return x.PointInTime- }- return nil-}--type isTask_DatabaseRestoreRestore_Source interface {- isTask_DatabaseRestoreRestore_Source()-}--type Task_DatabaseRestoreRestore_Backup struct {- // Only used when doing restore full backup only.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- Backup string `protobuf:"bytes,2,opt,name=backup,proto3,oneof"`-}--type Task_DatabaseRestoreRestore_PointInTime struct {- // After the PITR operations, the database will be recovered to the state at this time.- PointInTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=point_in_time,json=pointInTime,proto3,oneof"`-}--func (*Task_DatabaseRestoreRestore_Backup) isTask_DatabaseRestoreRestore_Source() {}--func (*Task_DatabaseRestoreRestore_PointInTime) isTask_DatabaseRestoreRestore_Source() {}-type Task_DatabaseDataExport struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -3982,7 +3660,7 @@ type Task_DatabaseDataExport struct {func (x *Task_DatabaseDataExport) Reset() {*x = Task_DatabaseDataExport{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[45]+ mi := &file_v1_rollout_service_proto_msgTypes[42]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3995,7 +3673,7 @@ func (x *Task_DatabaseDataExport) String() string {func (*Task_DatabaseDataExport) ProtoMessage() {}func (x *Task_DatabaseDataExport) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[45]+ mi := &file_v1_rollout_service_proto_msgTypes[42]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4008,7 +3686,7 @@ func (x *Task_DatabaseDataExport) ProtoReflect() protoreflect.Message {// Deprecated: Use Task_DatabaseDataExport.ProtoReflect.Descriptor instead.func (*Task_DatabaseDataExport) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{24, 6}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{24, 4}}func (x *Task_DatabaseDataExport) GetTarget() string {@@ -4061,7 +3739,7 @@ type TaskRun_ExecutionDetail struct {func (x *TaskRun_ExecutionDetail) Reset() {*x = TaskRun_ExecutionDetail{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[47]+ mi := &file_v1_rollout_service_proto_msgTypes[44]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4074,7 +3752,7 @@ func (x *TaskRun_ExecutionDetail) String() string {func (*TaskRun_ExecutionDetail) ProtoMessage() {}func (x *TaskRun_ExecutionDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[47]+ mi := &file_v1_rollout_service_proto_msgTypes[44]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4132,7 +3810,7 @@ type TaskRun_ExecutionDetail_Position struct {func (x *TaskRun_ExecutionDetail_Position) Reset() {*x = TaskRun_ExecutionDetail_Position{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[48]+ mi := &file_v1_rollout_service_proto_msgTypes[45]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4145,7 +3823,7 @@ func (x *TaskRun_ExecutionDetail_Position) String() string {func (*TaskRun_ExecutionDetail_Position) ProtoMessage() {}func (x *TaskRun_ExecutionDetail_Position) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[48]+ mi := &file_v1_rollout_service_proto_msgTypes[45]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4222,8 +3900,8 @@ var file_v1_rollout_service_proto_rawDesc = []byte{0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 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, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xc7,- 0x14, 0x0a, 0x04, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa5,+ 0x11, 0x0a, 0x04, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75,0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75,0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,@@ -4238,7 +3916,7 @@ var file_v1_rollout_service_proto_rawDesc = []byte{0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2c, 0x0a, 0x05,0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x53,- 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x1a, 0x91, 0x04, 0x0a, 0x04, 0x53,+ 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x1a, 0xae, 0x03, 0x0a, 0x04, 0x53,0x70, 0x65, 0x63, 0x12, 0x4e, 0x0a, 0x15, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f,0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,@@ -4259,37 +3937,29 @@ var file_v1_rollout_service_proto_rawDesc = []byte{0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e,0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x61, 0x0a,- 0x17, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,- 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x15, 0x72, 0x65, 0x73, 0x74, 0x6f,- 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x12, 0x52, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f,- 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e,- 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xc6,- 0x03, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x74, 0x61,- 0x72, 0x67, 0x65, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65,- 0x12, 0x28, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65,- 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x63, 0x68,- 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x63, 0x6f,- 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x01, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a,- 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,- 0xe0, 0x41, 0x01, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x05,- 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,- 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75,- 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x62, 0x61,- 0x63, 0x6b, 0x75, 0x70, 0x12, 0x25, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x52, 0x0a,+ 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x45, 0x78, 0x70,+ 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,+ 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xa9, 0x03, 0x0a, 0x14,+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,+ 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x28, 0x0a,+ 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x04,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61,+ 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61,+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,+ 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6c,+ 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,+ 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e,+ 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x6f,+ 0x77, 0x6e, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b,0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x6c,0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x79,@@ -4300,7 +3970,7 @@ var file_v1_rollout_service_proto_rawDesc = []byte{0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,- 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x99, 0x07, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e,+ 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x8d, 0x07, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e,0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65,@@ -4348,608 +4018,560 @@ var file_v1_rollout_service_proto_rawDesc = []byte{0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74,0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18,0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22,- 0x71, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x65, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f,0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a,0x08, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d,0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52,0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47,- 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06,- 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41,- 0x10, 0x06, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f,- 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x70, 0x72, 0x65, 0x5f, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65, 0x74,- 0x61, 0x69, 0x6c, 0x1a, 0x93, 0x02, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a,- 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74,- 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x61, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x01, 0x52,- 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x88, 0x01, 0x01, 0x12, 0x18, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b,- 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b,- 0x75, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x5f, 0x74,- 0x69, 0x6d, 0x65, 0x18, 0x04, 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, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e,- 0x54, 0x69, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x19,- 0x0a, 0x17, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xbc, 0x01, 0x0a, 0x10, 0x45, 0x78,- 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16,- 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08,- 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,- 0x6d, 0x61, 0x78, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61,- 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d,- 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61,- 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08,- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f,- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x73, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74,- 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,- 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x86, 0x01,- 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,- 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x70,- 0x6c, 0x61, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01,- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x52,- 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26,- 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,- 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67,- 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2f, 0x0a, 0x14, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61,- 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17,- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,- 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x75, 0x6e, 0x50, 0x6c,- 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x22, 0x5c, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b,- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,- 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x17,- 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68,- 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b,- 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16,- 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x18, 0x0a, 0x16, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53,- 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x22, 0x69, 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54,- 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,+ 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04,+ 0x44, 0x41, 0x54, 0x41, 0x10, 0x06, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62,+ 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x70,+ 0x72, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70,+ 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x1a, 0xbc, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f,+ 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06,+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61,+ 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61,+ 0x78, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61,+ 0x78, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74,+ 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73,+ 0x77, 0x6f, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61,+ 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61,+ 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x73, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c,+ 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,+ 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,+ 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x86, 0x01, 0x0a, 0x19,+ 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x70, 0x6c, 0x61,+ 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,+ 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x0d, 0x70,+ 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f,+ 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54,+ 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2f, 0x0a, 0x14, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43,+ 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e,+ 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c,+ 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14,+ 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74,+ 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x17, 0x0a, 0x15,+ 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b,+ 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72,- 0x75, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x52,- 0x75, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x42,- 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x0b, 0x0a, 0x0c, 0x50,- 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,- 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69,- 0x64, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,- 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,- 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,- 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e,- 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,- 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74,- 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x3a, 0x0a,- 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,- 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,- 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72,- 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12,- 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09,- 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,- 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,- 0x65, 0x1a, 0xcf, 0x05, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3f, 0x0a, 0x06,- 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18,+ 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06,+ 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65,+ 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x18, 0x0a, 0x16, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69,+ 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69,+ 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73,+ 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e,+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,+ 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x42, 0x61, 0x74,+ 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x84, 0x0b, 0x0a, 0x0c, 0x50, 0x6c, 0x61,+ 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a,+ 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12,+ 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e,+ 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,+ 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x53,+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a,+ 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74,+ 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x06,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x3a, 0x0a, 0x07, 0x72,+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43,- 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53,- 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a,- 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,- 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a,- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64,- 0x65, 0x12, 0x61, 0x0a, 0x12, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79,- 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e,+ 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07,+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,+ 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x40, 0x0a,+ 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 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, 0x42, 0x03,+ 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x1a,+ 0xcf, 0x05, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65,+ 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x74, 0x61,+ 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74,+ 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,+ 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63,+ 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,+ 0x61, 0x0a, 0x12, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x72,+ 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68,+ 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x71,+ 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00,+ 0x52, 0x10, 0x73, 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f,+ 0x72, 0x74, 0x12, 0x5e, 0x0a, 0x11, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77,+ 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e,0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e,0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e,- 0x53, 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74,- 0x48, 0x00, 0x52, 0x10, 0x73, 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65,- 0x70, 0x6f, 0x72, 0x74, 0x12, 0x5e, 0x0a, 0x11, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69,- 0x65, 0x77, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,- 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c,- 0x74, 0x2e, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72,- 0x74, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65,- 0x70, 0x6f, 0x72, 0x74, 0x1a, 0xc0, 0x01, 0x0a, 0x10, 0x53, 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d,- 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x27, 0x0a,- 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73,- 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e,- 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74,- 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61,- 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x63,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,- 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65,- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x69, 0x0a, 0x0f, 0x53, 0x71, 0x6c, 0x52, 0x65,- 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69,- 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16,- 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x12,- 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f,- 0x64, 0x65, 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12,- 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,- 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12,- 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07,- 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x03, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x70,- 0x6f, 0x72, 0x74, 0x22, 0x91, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53,- 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x4b, 0x45, 0x5f, 0x41, 0x44,- 0x56, 0x49, 0x53, 0x45, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,- 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x4f, 0x4d,- 0x50, 0x41, 0x54, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19,- 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45,- 0x4e, 0x54, 0x5f, 0x41, 0x44, 0x56, 0x49, 0x53, 0x45, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x44,- 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e,- 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x04, 0x12, 0x25, 0x0a, 0x21, 0x44, 0x41, 0x54, 0x41,- 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53,- 0x55, 0x4d, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x05, 0x12,- 0x14, 0x0a, 0x10, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e,- 0x45, 0x43, 0x54, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,- 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x07, 0x12, 0x17,- 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x49, 0x54, 0x52, 0x5f,- 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x10, 0x08, 0x22, 0x51, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e,- 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02,- 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08,- 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x22, 0x2c, 0x0a, 0x11, 0x47, 0x65,- 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,- 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x68, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61,- 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x33, 0x0a,- 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c,- 0x6c, 0x6f, 0x75, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f,- 0x75, 0x74, 0x22, 0x5d, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c,- 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,- 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x70, 0x6c,- 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70, 0x6c, 0x61,- 0x6e, 0x22, 0x6e, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,- 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,- 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,- 0x6e, 0x22, 0x71, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x09, 0x74, 0x61, 0x73,- 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52,- 0x75, 0x6e, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f,- 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54,- 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8f, 0x01, 0x0a, 0x07, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x70,- 0x6c, 0x61, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,- 0x70, 0x6c, 0x61, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74,- 0x61, 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x06,- 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x65,- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a,- 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,- 0x74, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x03,- 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x80, 0x16, 0x0a,- 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,+ 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x48,+ 0x00, 0x52, 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x70, 0x6f,+ 0x72, 0x74, 0x1a, 0xc0, 0x01, 0x0a, 0x10, 0x53, 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72,+ 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73,+ 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02,+ 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54,+ 0x79, 0x70, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64,+ 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61, 0x66, 0x66,+ 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x68, 0x61,+ 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x69, 0x0a, 0x0f, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69,+ 0x65, 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06,+ 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f,+ 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04,+ 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,+ 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54,+ 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,+ 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a,+ 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55,+ 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x03, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72,+ 0x74, 0x22, 0xf8, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41,+ 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x4b, 0x45, 0x5f, 0x41, 0x44, 0x56, 0x49,+ 0x53, 0x45, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,+ 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x41,+ 0x54, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41,+ 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54,+ 0x5f, 0x41, 0x44, 0x56, 0x49, 0x53, 0x45, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54,+ 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f,+ 0x54, 0x59, 0x50, 0x45, 0x10, 0x04, 0x12, 0x25, 0x0a, 0x21, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,+ 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x55, 0x4d,+ 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x05, 0x12, 0x14, 0x0a,+ 0x10, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43,+ 0x54, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f,+ 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x07, 0x22, 0x51, 0x0a, 0x06,+ 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b,+ 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44,+ 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10,+ 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x22,+ 0x2c, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x68, 0x0a,+ 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07,+ 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x5d, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x76, 0x69,+ 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12,+ 0x25, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e,+ 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x6e, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61,+ 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,+ 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,+ 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,+ 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f,+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67,+ 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x71, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61,+ 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31,+ 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,+ 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,+ 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74,+ 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8f, 0x01, 0x0a, 0x07, 0x52, 0x6f,+ 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64,0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64,- 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69,- 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x70, 0x65, 0x63, 0x49, 0x64, 0x12,- 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,- 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x61,- 0x73, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x70,- 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,- 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,- 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x5f,- 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e,- 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16,- 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x4b, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,- 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x12, 0x64, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18,- 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x48,- 0x00, 0x52, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x5e, 0x0a, 0x16, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x48, 0x00, 0x52, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52,- 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x12, 0x4b, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,- 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00,- 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,- 0x12, 0x64, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x73,- 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x0e, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65,- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x48, 0x00, 0x52, 0x16,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52,- 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x10,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x12, 0x17, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,+ 0xe0, 0x41, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,+ 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,+ 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74,+ 0x61, 0x67, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x05,+ 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64,+ 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,+ 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b,+ 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b,+ 0x73, 0x22, 0xb9, 0x12, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15,+ 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03,+ 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73,+ 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x70,+ 0x65, 0x63, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06,+ 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65,+ 0x64, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,+ 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2a, 0x0a,+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x54,+ 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70,+ 0x65, 0x6e, 0x64, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20,+ 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x54, 0x61,+ 0x73, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x08, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x4b, 0x0a, 0x0f, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x09,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x12, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74,- 0x1a, 0xd8, 0x02, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1a, 0x0a,- 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62,- 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12,- 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,- 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74,- 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68,- 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f,- 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63,- 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69,- 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65,- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x06, 0x6c, 0x61,- 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74,+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x64, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x62, 0x61, 0x73, 0x65,+ 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74,0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x61, 0x62,- 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73,- 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,- 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,- 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x16, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73,- 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,- 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x53, 0x0a, 0x14,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,- 0x6e, 0x1a, 0xed, 0x03, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61,- 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65,- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25,- 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65,- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,- 0x6b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,- 0x12, 0x66, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x71, 0x6c,- 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b,- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53,- 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53,- 0x71, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c,- 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12,- 0x25, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x68, 0x65, 0x65,- 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,- 0x6b, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61,- 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x07, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f,- 0x6d, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61,- 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d,- 0x54, 0x61, 0x73, 0x6b, 0x22, 0x5b, 0x0a, 0x11, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,- 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x4f, 0x4c,- 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,- 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b,- 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44,- 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10,- 0x03, 0x1a, 0x28, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x96, 0x01, 0x0a, 0x16,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52,- 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18,- 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,- 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x70, 0x6f, 0x69, 0x6e,- 0x74, 0x5f, 0x69, 0x6e, 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, 0x48, 0x00, 0x52, 0x0b, 0x70,- 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x1a, 0xbe, 0x01, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74,- 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72,- 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78,- 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x78,- 0x52, 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52,- 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,- 0x6f, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73,- 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73,- 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x7c, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,- 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53,- 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44,- 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47,- 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06,- 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43,- 0x45, 0x4c, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45,- 0x44, 0x10, 0x07, 0x22, 0xee, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x01, 0x12,- 0x13, 0x0a, 0x0f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41,- 0x54, 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,- 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45,- 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53,- 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e,- 0x0a, 0x1a, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d,- 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x05, 0x12, 0x25,- 0x0a, 0x21, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d,- 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53,- 0x59, 0x4e, 0x43, 0x10, 0x06, 0x12, 0x28, 0x0a, 0x24, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,- 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f,- 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12,- 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41,- 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x41, 0x54,- 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x10, 0x09, 0x12, 0x1c,- 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x4f,- 0x52, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x4f, 0x52, 0x45, 0x10, 0x0a, 0x12, 0x1c, 0x0a, 0x18,- 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x4f, 0x52, 0x45,- 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x0b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41,- 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f,- 0x52, 0x54, 0x10, 0x0c, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22,- 0x8f, 0x0a, 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,- 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,- 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,- 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,- 0x12, 0x18, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65,+ 0x6c, 0x69, 0x6e, 0x65, 0x48, 0x00, 0x52, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x5e,+ 0x0a, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73,+ 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x58,+ 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x48, 0x00, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74,+ 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x12,+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f,+ 0x72, 0x74, 0x1a, 0xd8, 0x02, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12,+ 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,+ 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c,+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61,+ 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,+ 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09,+ 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e,+ 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x06,+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e, 0x4c,+ 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65,+ 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72,+ 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,+ 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a,+ 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42,+ 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x53,+ 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73,+ 0x69, 0x6f, 0x6e, 0x1a, 0xed, 0x03, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68,+ 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74,+ 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,+ 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62,+ 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c,+ 0x65, 0x64, 0x12, 0x66, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73,+ 0x71, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x36, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,+ 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71,+ 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,+ 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f,+ 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x72, 0x72, 0x6f,+ 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x68,+ 0x65, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x62,+ 0x61, 0x63, 0x6b, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c,+ 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18,+ 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46,+ 0x72, 0x6f, 0x6d, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x6f, 0x6c, 0x6c,+ 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x08,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72,+ 0x6f, 0x6d, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x5b, 0x0a, 0x11, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61,+ 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x52,+ 0x4f, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54,+ 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a,+ 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45,+ 0x44, 0x10, 0x03, 0x1a, 0xbe, 0x01, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61,+ 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67,+ 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f,+ 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52,+ 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06,+ 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,+ 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73,+ 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73,+ 0x77, 0x6f, 0x72, 0x64, 0x22, 0x7c, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,+ 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54,+ 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49,+ 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10,+ 0x03, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46,+ 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45,+ 0x4c, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44,+ 0x10, 0x07, 0x22, 0x9d, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54,+ 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13,+ 0x0a, 0x0f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54,+ 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f,+ 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10,+ 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43,+ 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a,+ 0x1a, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,+ 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x05, 0x12, 0x25, 0x0a,+ 0x21, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,+ 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59,+ 0x4e, 0x43, 0x10, 0x06, 0x12, 0x28, 0x0a, 0x24, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,+ 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47,+ 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x18,+ 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f,+ 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41,+ 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54,+ 0x10, 0x0c, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x8f, 0x0a,+ 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a,+ 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,+ 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18,+ 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a,+ 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 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, 0x42, 0x03, 0xe0, 0x41, 0x03,- 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 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, 0x42, 0x03, 0xe0,- 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14,- 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,- 0x69, 0x74, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74,- 0x61, 0x69, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74,- 0x6f, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x67,- 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,- 0x4f, 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61,- 0x74, 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e,- 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,- 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,- 0x12, 0x5b, 0x0a, 0x1c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74,- 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,- 0x18, 0x0d, 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, 0x19, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,- 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4f, 0x0a,- 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,+ 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,+ 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69,+ 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,+ 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72,+ 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48,+ 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a,+ 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75,+ 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45, 0x78,- 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0f, 0x65,- 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x3e,- 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 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, 0x42, 0x03,- 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0xe5,- 0x02, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61,- 0x69, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x5f, 0x74,- 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d,- 0x61, 0x6e, 0x64, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6d,- 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x43,- 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x63, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d,- 0x61, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,- 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45,- 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x50,- 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,- 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5f, 0x0a,- 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x73,- 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d,- 0x61, 0x6e, 0x64, 0x45, 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x36,- 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69,- 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16,- 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x5e, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,- 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44,- 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47,- 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06,- 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43,- 0x45, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x22, 0x69, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,- 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x58, 0x45,- 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x50,- 0x52, 0x45, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d,- 0x0a, 0x09, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x12, 0x0a,- 0x0e, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10,- 0x03, 0x32, 0x85, 0x0f, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x72,- 0x76, 0x69, 0x63, 0x65, 0x12, 0x67, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x12,- 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,- 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22,- 0x2c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a,- 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61,- 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0xda, 0x41, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x7a, 0x0a, 0x0a, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x39, 0xda, 0x41, 0x0b, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6c, 0x61, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25,- 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,- 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x43, 0xda, 0x41, 0x10, 0x70, 0x6c, 0x61, 0x6e,- 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x2a, 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x32, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,- 0x6c, 0x61, 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0a,- 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c,- 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,- 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12,- 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c,- 0x6f, 0x75, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x42, 0xda, 0x41,- 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x20,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73,- 0x12, 0x85, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c,- 0x6f, 0x75, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x39, 0xda,- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22,- 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65,- 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0xa2, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73,- 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b,- 0x52, 0x75, 0x6e, 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, 0x54, 0x61,- 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d,- 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12,- 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0xa2, 0x01,- 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,- 0x75, 0x6e, 0x73, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,- 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61,- 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x22, 0x3e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75,- 0x6e, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68,- 0x65, 0x63, 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65,- 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f,+ 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0f, 0x65,+ 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x5b,+ 0x0a, 0x1c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74,+ 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d,+ 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, 0x19, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75,+ 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4f, 0x0a, 0x10, 0x65,+ 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18,+ 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63,+ 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0f, 0x65, 0x78, 0x65,+ 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x3e, 0x0a, 0x0a,+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 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, 0x42, 0x03, 0xe0, 0x41,+ 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0xe5, 0x02, 0x0a,+ 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,+ 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x5f, 0x74, 0x6f, 0x74,+ 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,+ 0x64, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x61,+ 0x6e, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x05, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x43, 0x6f, 0x6d,+ 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x63, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,+ 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45, 0x78, 0x65,+ 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x50, 0x6f, 0x73,+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x53, 0x74,+ 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5f, 0x0a, 0x14, 0x63,+ 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74,+ 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e,+ 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,+ 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,+ 0x64, 0x45, 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x36, 0x0a, 0x08,+ 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06,+ 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f,+ 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x5e, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,+ 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e,+ 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02,+ 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41,+ 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c,+ 0x45, 0x44, 0x10, 0x05, 0x22, 0x69, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,+ 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x58, 0x45, 0x43, 0x55,+ 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x52, 0x45,+ 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09,+ 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x50,+ 0x4f, 0x53, 0x54, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x32,+ 0x85, 0x0f, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,+ 0x63, 0x65, 0x12, 0x67, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1b, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50,+ 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x2c, 0xda,+ 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a, 0x09, 0x4c,+ 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x7a, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74,+ 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x39, 0xda, 0x41, 0x0b, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6c, 0x61, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x04,+ 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c,+ 0x61, 0x6e, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c,+ 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x43, 0xda, 0x41, 0x10, 0x70, 0x6c, 0x61, 0x6e, 0x2c, 0x75,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a,+ 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x32, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6c, 0x61,+ 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0a, 0x47, 0x65,+ 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,+ 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x2f,+ 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f,0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x75, 0x6e,- 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x12, 0xa6, 0x01, 0x0a, 0x0d, 0x42,- 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68,- 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61,- 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x22, 0x4e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x3f, 0x3a, 0x01, 0x2a, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68,- 0x52, 0x75, 0x6e, 0x12, 0xaa, 0x01, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69,- 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61,- 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b,- 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0x4f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40,- 0x3a, 0x01, 0x2a, 0x22, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c,- 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x7d,- 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70,- 0x12, 0xc6, 0x01, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c,- 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63,- 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52,- 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0xda, 0x41, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4d, 0x3a, 0x01, 0x2a, 0x22,- 0x48, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x3a, 0x62, 0x61,- 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 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,+ 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12,+ 0x8c, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,+ 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x42, 0xda, 0x41, 0x0e, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x2b, 0x3a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x20, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x85,+ 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,+ 0x74, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x39, 0xda, 0x41, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52,+ 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0xa2, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x54,+ 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,+ 0x6e, 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, 0x54, 0x61, 0x73, 0x6b,+ 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0xda, 0x41,+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0xa2, 0x01, 0x0a, 0x11,+ 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e,+ 0x73, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e,+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43,+ 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,+ 0x22, 0x3e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73,+ 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63,+ 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x75, 0x6e, 0x50, 0x6c,+ 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x12, 0xa6, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74,+ 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75,+ 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63,+ 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x22, 0x4e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x3f, 0x3a, 0x01, 0x2a, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f,+ 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75,+ 0x6e, 0x12, 0xaa, 0x01, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54,+ 0x61, 0x73, 0x6b, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b,+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70,+ 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0xda,+ 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x3a, 0x01,+ 0x2a, 0x22, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74,+ 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x12, 0xc6,+ 0x01, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61,+ 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c,+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61,+ 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0xda, 0x41, 0x06, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4d, 0x3a, 0x01, 0x2a, 0x22, 0x48, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63,+ 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 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 (@@ -4965,7 +4587,7 @@ func file_v1_rollout_service_proto_rawDescGZIP() []byte {}var file_v1_rollout_service_proto_enumTypes = make([]protoimpl.EnumInfo, 9)-var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 49)+var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 46)var file_v1_rollout_service_proto_goTypes = []interface{}{(Plan_ChangeDatabaseConfig_Type)(0), // 0: bytebase.v1.Plan.ChangeDatabaseConfig.Type(PlanCheckRun_Type)(0), // 1: bytebase.v1.PlanCheckRun.Type@@ -5006,41 +4628,38 @@ var file_v1_rollout_service_proto_goTypes = []interface{}{(*Plan_Spec)(nil), // 36: bytebase.v1.Plan.Spec(*Plan_CreateDatabaseConfig)(nil), // 37: bytebase.v1.Plan.CreateDatabaseConfig(*Plan_ChangeDatabaseConfig)(nil), // 38: bytebase.v1.Plan.ChangeDatabaseConfig- (*Plan_RestoreDatabaseConfig)(nil), // 39: bytebase.v1.Plan.RestoreDatabaseConfig- (*Plan_ExportDataConfig)(nil), // 40: bytebase.v1.Plan.ExportDataConfig- nil, // 41: bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry- (*Plan_ChangeDatabaseConfig_RollbackDetail)(nil), // 42: bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail- nil, // 43: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry- (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 44: bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail- (*PlanCheckRun_Result)(nil), // 45: bytebase.v1.PlanCheckRun.Result- (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 46: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- (*PlanCheckRun_Result_SqlReviewReport)(nil), // 47: bytebase.v1.PlanCheckRun.Result.SqlReviewReport- (*Task_DatabaseCreate)(nil), // 48: bytebase.v1.Task.DatabaseCreate- (*Task_DatabaseSchemaBaseline)(nil), // 49: bytebase.v1.Task.DatabaseSchemaBaseline- (*Task_DatabaseSchemaUpdate)(nil), // 50: bytebase.v1.Task.DatabaseSchemaUpdate- (*Task_DatabaseDataUpdate)(nil), // 51: bytebase.v1.Task.DatabaseDataUpdate- (*Task_DatabaseBackup)(nil), // 52: bytebase.v1.Task.DatabaseBackup- (*Task_DatabaseRestoreRestore)(nil), // 53: bytebase.v1.Task.DatabaseRestoreRestore- (*Task_DatabaseDataExport)(nil), // 54: bytebase.v1.Task.DatabaseDataExport- nil, // 55: bytebase.v1.Task.DatabaseCreate.LabelsEntry- (*TaskRun_ExecutionDetail)(nil), // 56: bytebase.v1.TaskRun.ExecutionDetail- (*TaskRun_ExecutionDetail_Position)(nil), // 57: bytebase.v1.TaskRun.ExecutionDetail.Position- (*fieldmaskpb.FieldMask)(nil), // 58: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 59: google.protobuf.Timestamp- (ExportFormat)(0), // 60: bytebase.v1.ExportFormat- (*ChangedResources)(nil), // 61: bytebase.v1.ChangedResources+ (*Plan_ExportDataConfig)(nil), // 39: bytebase.v1.Plan.ExportDataConfig+ nil, // 40: bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry+ (*Plan_ChangeDatabaseConfig_RollbackDetail)(nil), // 41: bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail+ nil, // 42: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry+ (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 43: bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail+ (*PlanCheckRun_Result)(nil), // 44: bytebase.v1.PlanCheckRun.Result+ (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 45: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ (*PlanCheckRun_Result_SqlReviewReport)(nil), // 46: bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ (*Task_DatabaseCreate)(nil), // 47: bytebase.v1.Task.DatabaseCreate+ (*Task_DatabaseSchemaBaseline)(nil), // 48: bytebase.v1.Task.DatabaseSchemaBaseline+ (*Task_DatabaseSchemaUpdate)(nil), // 49: bytebase.v1.Task.DatabaseSchemaUpdate+ (*Task_DatabaseDataUpdate)(nil), // 50: bytebase.v1.Task.DatabaseDataUpdate+ (*Task_DatabaseDataExport)(nil), // 51: bytebase.v1.Task.DatabaseDataExport+ nil, // 52: bytebase.v1.Task.DatabaseCreate.LabelsEntry+ (*TaskRun_ExecutionDetail)(nil), // 53: bytebase.v1.TaskRun.ExecutionDetail+ (*TaskRun_ExecutionDetail_Position)(nil), // 54: bytebase.v1.TaskRun.ExecutionDetail.Position+ (*fieldmaskpb.FieldMask)(nil), // 55: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 56: google.protobuf.Timestamp+ (ExportFormat)(0), // 57: bytebase.v1.ExportFormat+ (*ChangedResources)(nil), // 58: bytebase.v1.ChangedResources}var file_v1_rollout_service_proto_depIdxs = []int32{14, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan14, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan14, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan- 58, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask+ 55, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask35, // 4: bytebase.v1.Plan.steps:type_name -> bytebase.v1.Plan.Step25, // 5: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun1, // 6: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type2, // 7: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status- 45, // 8: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result- 59, // 9: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp+ 44, // 8: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result+ 56, // 9: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp31, // 10: bytebase.v1.CreateRolloutRequest.rollout:type_name -> bytebase.v1.Rollout14, // 11: bytebase.v1.PreviewRolloutRequest.plan:type_name -> bytebase.v1.Plan34, // 12: bytebase.v1.ListTaskRunsResponse.task_runs:type_name -> bytebase.v1.TaskRun@@ -5048,75 +4667,69 @@ var file_v1_rollout_service_proto_depIdxs = []int32{33, // 14: bytebase.v1.Stage.tasks:type_name -> bytebase.v1.Task4, // 15: bytebase.v1.Task.status:type_name -> bytebase.v1.Task.Status5, // 16: bytebase.v1.Task.type:type_name -> bytebase.v1.Task.Type- 48, // 17: bytebase.v1.Task.database_create:type_name -> bytebase.v1.Task.DatabaseCreate- 49, // 18: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline- 50, // 19: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate- 51, // 20: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate- 52, // 21: bytebase.v1.Task.database_backup:type_name -> bytebase.v1.Task.DatabaseBackup- 53, // 22: bytebase.v1.Task.database_restore_restore:type_name -> bytebase.v1.Task.DatabaseRestoreRestore- 54, // 23: bytebase.v1.Task.database_data_export:type_name -> bytebase.v1.Task.DatabaseDataExport- 59, // 24: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp- 59, // 25: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp- 7, // 26: bytebase.v1.TaskRun.status:type_name -> bytebase.v1.TaskRun.Status- 8, // 27: bytebase.v1.TaskRun.execution_status:type_name -> bytebase.v1.TaskRun.ExecutionStatus- 59, // 28: bytebase.v1.TaskRun.execution_status_update_time:type_name -> google.protobuf.Timestamp- 56, // 29: bytebase.v1.TaskRun.execution_detail:type_name -> bytebase.v1.TaskRun.ExecutionDetail- 59, // 30: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp- 36, // 31: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec- 59, // 32: bytebase.v1.Plan.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp- 37, // 33: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig- 38, // 34: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig- 39, // 35: bytebase.v1.Plan.Spec.restore_database_config:type_name -> bytebase.v1.Plan.RestoreDatabaseConfig- 40, // 36: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig- 41, // 37: bytebase.v1.Plan.CreateDatabaseConfig.labels:type_name -> bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry- 0, // 38: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type- 42, // 39: bytebase.v1.Plan.ChangeDatabaseConfig.rollback_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail- 43, // 40: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry- 44, // 41: bytebase.v1.Plan.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail- 37, // 42: bytebase.v1.Plan.RestoreDatabaseConfig.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig- 59, // 43: bytebase.v1.Plan.RestoreDatabaseConfig.point_in_time:type_name -> google.protobuf.Timestamp- 60, // 44: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat- 3, // 45: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status- 46, // 46: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- 47, // 47: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport- 61, // 48: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources- 55, // 49: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry- 6, // 50: bytebase.v1.Task.DatabaseDataUpdate.rollback_sql_status:type_name -> bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus- 59, // 51: bytebase.v1.Task.DatabaseRestoreRestore.point_in_time:type_name -> google.protobuf.Timestamp- 60, // 52: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat- 57, // 53: bytebase.v1.TaskRun.ExecutionDetail.command_start_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position- 57, // 54: bytebase.v1.TaskRun.ExecutionDetail.command_end_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position- 9, // 55: bytebase.v1.RolloutService.GetPlan:input_type -> bytebase.v1.GetPlanRequest- 10, // 56: bytebase.v1.RolloutService.ListPlans:input_type -> bytebase.v1.ListPlansRequest- 12, // 57: bytebase.v1.RolloutService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest- 13, // 58: bytebase.v1.RolloutService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest- 26, // 59: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest- 27, // 60: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest- 28, // 61: bytebase.v1.RolloutService.PreviewRollout:input_type -> bytebase.v1.PreviewRolloutRequest- 29, // 62: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest- 15, // 63: bytebase.v1.RolloutService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest- 17, // 64: bytebase.v1.RolloutService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest- 19, // 65: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest- 21, // 66: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest- 23, // 67: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest- 14, // 68: bytebase.v1.RolloutService.GetPlan:output_type -> bytebase.v1.Plan- 11, // 69: bytebase.v1.RolloutService.ListPlans:output_type -> bytebase.v1.ListPlansResponse- 14, // 70: bytebase.v1.RolloutService.CreatePlan:output_type -> bytebase.v1.Plan- 14, // 71: bytebase.v1.RolloutService.UpdatePlan:output_type -> bytebase.v1.Plan- 31, // 72: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout- 31, // 73: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout- 31, // 74: bytebase.v1.RolloutService.PreviewRollout:output_type -> bytebase.v1.Rollout- 30, // 75: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse- 16, // 76: bytebase.v1.RolloutService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse- 18, // 77: bytebase.v1.RolloutService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse- 20, // 78: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse- 22, // 79: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse- 24, // 80: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse- 68, // [68:81] is the sub-list for method output_type- 55, // [55:68] is the sub-list for method input_type- 55, // [55:55] is the sub-list for extension type_name- 55, // [55:55] is the sub-list for extension extendee- 0, // [0:55] is the sub-list for field type_name+ 47, // 17: bytebase.v1.Task.database_create:type_name -> bytebase.v1.Task.DatabaseCreate+ 48, // 18: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline+ 49, // 19: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate+ 50, // 20: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate+ 51, // 21: bytebase.v1.Task.database_data_export:type_name -> bytebase.v1.Task.DatabaseDataExport+ 56, // 22: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp+ 56, // 23: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp+ 7, // 24: bytebase.v1.TaskRun.status:type_name -> bytebase.v1.TaskRun.Status+ 8, // 25: bytebase.v1.TaskRun.execution_status:type_name -> bytebase.v1.TaskRun.ExecutionStatus+ 56, // 26: bytebase.v1.TaskRun.execution_status_update_time:type_name -> google.protobuf.Timestamp+ 53, // 27: bytebase.v1.TaskRun.execution_detail:type_name -> bytebase.v1.TaskRun.ExecutionDetail+ 56, // 28: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp+ 36, // 29: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec+ 56, // 30: bytebase.v1.Plan.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp+ 37, // 31: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig+ 38, // 32: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig+ 39, // 33: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig+ 40, // 34: bytebase.v1.Plan.CreateDatabaseConfig.labels:type_name -> bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry+ 0, // 35: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type+ 41, // 36: bytebase.v1.Plan.ChangeDatabaseConfig.rollback_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail+ 42, // 37: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry+ 43, // 38: bytebase.v1.Plan.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail+ 57, // 39: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat+ 3, // 40: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status+ 45, // 41: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ 46, // 42: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ 58, // 43: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources+ 52, // 44: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry+ 6, // 45: bytebase.v1.Task.DatabaseDataUpdate.rollback_sql_status:type_name -> bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus+ 57, // 46: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat+ 54, // 47: bytebase.v1.TaskRun.ExecutionDetail.command_start_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position+ 54, // 48: bytebase.v1.TaskRun.ExecutionDetail.command_end_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position+ 9, // 49: bytebase.v1.RolloutService.GetPlan:input_type -> bytebase.v1.GetPlanRequest+ 10, // 50: bytebase.v1.RolloutService.ListPlans:input_type -> bytebase.v1.ListPlansRequest+ 12, // 51: bytebase.v1.RolloutService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest+ 13, // 52: bytebase.v1.RolloutService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest+ 26, // 53: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest+ 27, // 54: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest+ 28, // 55: bytebase.v1.RolloutService.PreviewRollout:input_type -> bytebase.v1.PreviewRolloutRequest+ 29, // 56: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest+ 15, // 57: bytebase.v1.RolloutService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest+ 17, // 58: bytebase.v1.RolloutService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest+ 19, // 59: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest+ 21, // 60: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest+ 23, // 61: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest+ 14, // 62: bytebase.v1.RolloutService.GetPlan:output_type -> bytebase.v1.Plan+ 11, // 63: bytebase.v1.RolloutService.ListPlans:output_type -> bytebase.v1.ListPlansResponse+ 14, // 64: bytebase.v1.RolloutService.CreatePlan:output_type -> bytebase.v1.Plan+ 14, // 65: bytebase.v1.RolloutService.UpdatePlan:output_type -> bytebase.v1.Plan+ 31, // 66: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout+ 31, // 67: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout+ 31, // 68: bytebase.v1.RolloutService.PreviewRollout:output_type -> bytebase.v1.Rollout+ 30, // 69: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse+ 16, // 70: bytebase.v1.RolloutService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse+ 18, // 71: bytebase.v1.RolloutService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse+ 20, // 72: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse+ 22, // 73: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse+ 24, // 74: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse+ 62, // [62:75] is the sub-list for method output_type+ 49, // [49:62] is the sub-list for method input_type+ 49, // [49:49] is the sub-list for extension type_name+ 49, // [49:49] is the sub-list for extension extendee+ 0, // [0:49] is the sub-list for field type_name}func init() { file_v1_rollout_service_proto_init() }@@ -5488,18 +5101,6 @@ func file_v1_rollout_service_proto_init() {}}file_v1_rollout_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_RestoreDatabaseConfig); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Plan_ExportDataConfig); i {case 0:return &v.state@@ -5511,7 +5112,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Plan_ChangeDatabaseConfig_RollbackDetail); i {case 0:return &v.state@@ -5523,7 +5124,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail); i {case 0:return &v.state@@ -5535,7 +5136,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*PlanCheckRun_Result); i {case 0:return &v.state@@ -5547,7 +5148,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*PlanCheckRun_Result_SqlSummaryReport); i {case 0:return &v.state@@ -5559,7 +5160,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*PlanCheckRun_Result_SqlReviewReport); i {case 0:return &v.state@@ -5571,7 +5172,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseCreate); i {case 0:return &v.state@@ -5583,7 +5184,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseSchemaBaseline); i {case 0:return &v.state@@ -5595,7 +5196,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseSchemaUpdate); i {case 0:return &v.state@@ -5607,7 +5208,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseDataUpdate); i {case 0:return &v.state@@ -5619,31 +5220,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Task_DatabaseBackup); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Task_DatabaseRestoreRestore); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseDataExport); i {case 0:return &v.state@@ -5655,7 +5232,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRun_ExecutionDetail); i {case 0:return &v.state@@ -5667,7 +5244,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRun_ExecutionDetail_Position); i {case 0:return &v.state@@ -5685,38 +5262,27 @@ func file_v1_rollout_service_proto_init() {(*Task_DatabaseSchemaBaseline_)(nil),(*Task_DatabaseSchemaUpdate_)(nil),(*Task_DatabaseDataUpdate_)(nil),- (*Task_DatabaseBackup_)(nil),- (*Task_DatabaseRestoreRestore_)(nil),(*Task_DatabaseDataExport_)(nil),}file_v1_rollout_service_proto_msgTypes[27].OneofWrappers = []interface{}{(*Plan_Spec_CreateDatabaseConfig)(nil),(*Plan_Spec_ChangeDatabaseConfig)(nil),- (*Plan_Spec_RestoreDatabaseConfig)(nil),(*Plan_Spec_ExportDataConfig)(nil),}file_v1_rollout_service_proto_msgTypes[29].OneofWrappers = []interface{}{}- file_v1_rollout_service_proto_msgTypes[30].OneofWrappers = []interface{}{- (*Plan_RestoreDatabaseConfig_Backup)(nil),- (*Plan_RestoreDatabaseConfig_PointInTime)(nil),- }- file_v1_rollout_service_proto_msgTypes[31].OneofWrappers = []interface{}{}- file_v1_rollout_service_proto_msgTypes[36].OneofWrappers = []interface{}{+ file_v1_rollout_service_proto_msgTypes[30].OneofWrappers = []interface{}{}+ file_v1_rollout_service_proto_msgTypes[35].OneofWrappers = []interface{}{(*PlanCheckRun_Result_SqlSummaryReport_)(nil),(*PlanCheckRun_Result_SqlReviewReport_)(nil),}- file_v1_rollout_service_proto_msgTypes[44].OneofWrappers = []interface{}{- (*Task_DatabaseRestoreRestore_Backup)(nil),- (*Task_DatabaseRestoreRestore_PointInTime)(nil),- }- file_v1_rollout_service_proto_msgTypes[45].OneofWrappers = []interface{}{}+ file_v1_rollout_service_proto_msgTypes[42].OneofWrappers = []interface{}{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_rollout_service_proto_rawDesc,NumEnums: 9,- NumMessages: 49,+ NumMessages: 46,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/plan.proto b/proto/store/plan.protoindex 9ecf223448..d740de9e6a 100644--- a/proto/store/plan.proto+++ b/proto/store/plan.proto@@ -29,7 +29,6 @@ message PlanConfig {oneof config {CreateDatabaseConfig create_database_config = 1;ChangeDatabaseConfig change_database_config = 2;- RestoreDatabaseConfig restore_database_config = 3;ExportDataConfig export_data_config = 7;}}@@ -118,24 +117,6 @@ message PlanConfig {optional PreUpdateBackupDetail pre_update_backup_detail = 8;}- message RestoreDatabaseConfig {- // The resource name of the target to restore.- // Format: instances/{instance}/databases/{database}- string target = 1;- // create_database_config is present if the user wants to restore to a new database.- optional CreateDatabaseConfig create_database_config = 2;- // source determines how to restore the database.- // 1. from a backup- // 2. from a point in time- oneof source {- // Restore from a backup.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- string backup = 3;- // After the PITR operations, the database will be recovered to the state at this time.- google.protobuf.Timestamp point_in_time = 4;- }- }-message ExportDataConfig {// The resource name of the target.// Format: instances/{instance-id}/databases/{database-name}diff --git a/proto/v1/anomaly_service.proto b/proto/v1/anomaly_service.protoindex 34aa18c0d0..9e6ccc5915 100644--- a/proto/v1/anomaly_service.proto+++ b/proto/v1/anomaly_service.proto@@ -5,7 +5,6 @@ package bytebase.v1;import "google/api/annotations.proto";import "google/api/field_behavior.proto";import "google/protobuf/timestamp.proto";-import "v1/org_policy_service.proto";option go_package = "generated-go/v1";@@ -21,7 +20,7 @@ message SearchAnomaliesRequest {// Only support filter by resource and type for now.// For example:// Search the anomalies of a specific resource: 'resource="instances/{instance}".'- // Search the specified types of anomalies: 'type="DATABASE_BACKUP_POLICY_VIOLATION" | "MIGRATION_SCHEMA".'+ // Search the specified types of anomalies: 'type="MIGRATION_SCHEMA".'string filter = 1;// Not used. The maximum number of anomalies to return. The service may return fewer than@@ -61,11 +60,6 @@ message Anomaly {// Database level anomaly.//- // DATABASE_BACKUP_POLICY_VIOLATION is the anomaly type for database backup policy violation,- // e.g. the database backup policy is not meet the environment backup policy.- DATABASE_BACKUP_POLICY_VIOLATION = 3;- // DATABASE_BACKUP_MISSING is the anomaly type for the backup missing, e.g. the backup is missing.- DATABASE_BACKUP_MISSING = 4;// DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted.DATABASE_CONNECTION = 5;// DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift,@@ -113,28 +107,6 @@ message Anomaly {string detail = 1;}- // DatabaseBackupPolicyViolationDetail is the detail for database backup policy violation anomaly.- message DatabaseBackupPolicyViolationDetail {- // parent is the parent of the database.- // Format: environments/{environment}- string parent = 1;-- // expected_schedule is the expected backup plan schedule in the parent.- BackupPlanSchedule expected_schedule = 2;-- // actual_schedule is the actual backup plan schedule in the database.- BackupPlanSchedule actual_schedule = 3;- }-- // DatabaseBackupMissingDetail is the detail for database backup missing anomaly.- message DatabaseBackupMissingDetail {- // expected_schedule is the expected backup plan schedule in the database.- BackupPlanSchedule expected_schedule = 1;-- // latest_backup_time is the latest backup time in the database.- google.protobuf.Timestamp latest_backup_time = 2;- }-// DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.message DatabaseSchemaDriftDetail {// record_version is the record version of the database schema drift.@@ -151,8 +123,6 @@ message Anomaly {oneof detail {InstanceConnectionDetail instance_connection_detail = 4;DatabaseConnectionDetail database_connection_detail = 5;- DatabaseBackupPolicyViolationDetail database_backup_policy_violation_detail = 6;- DatabaseBackupMissingDetail database_backup_missing_detail = 7;DatabaseSchemaDriftDetail database_schema_drift_detail = 8;}diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.protoindex 76397e2554..09e0315f25 100644--- a/proto/v1/database_service.proto+++ b/proto/v1/database_service.proto@@ -80,29 +80,6 @@ service DatabaseService {};}- rpc GetBackupSetting(GetBackupSettingRequest) returns (BackupSetting) {- option (google.api.http) = {get: "/v1/{name=instances/*/databases/*/backupSetting}"};- }-- rpc UpdateBackupSetting(UpdateBackupSettingRequest) returns (BackupSetting) {- option (google.api.http) = {- patch: "/v1/{setting.name=instances/*/databases/*/backupSetting}"- body: "setting"- };- }-- rpc CreateBackup(CreateBackupRequest) returns (Backup) {- option (google.api.http) = {- post: "/v1/{parent=instances/*/databases/*}/backups"- body: "backup"- };- }-- rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {- option (google.api.http) = {get: "/v1/{parent=instances/*/databases/*}/backups"};- option (google.api.method_signature) = "parent";- }-rpc ListSlowQueries(ListSlowQueriesRequest) returns (ListSlowQueriesResponse) {option (google.api.http) = {get: "/v1/{parent=instances/*/databases/*}/slowQueries"};option (google.api.method_signature) = "parent";@@ -329,55 +306,6 @@ message DiffSchemaResponse {string diff = 1;}-message GetBackupSettingRequest {- // The name of the database to retrieve backup setting.- // Format: instances/{instance}/databases/{database}/backupSetting- string name = 1 [(google.api.field_behavior) = REQUIRED];-}--message UpdateBackupSettingRequest {- // The database backup setting to update.- BackupSetting setting = 1 [(google.api.field_behavior) = REQUIRED];-}--// CreateBackupRequest is the request message for CreateBackup.-message CreateBackupRequest {- // The parent resource where this backup will be created.- // Format: instances/{instance}/databases/{database}- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- Backup backup = 2 [(google.api.field_behavior) = REQUIRED];-}--// ListBackupsRequest is the request message for ListBackup.-message ListBackupsRequest {- // The parent resource where this backup will be created.- // Format: instances/{instance}/databases/{database}- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- // Not used. The maximum number of backups to return. The service may return fewer than- // this value.- // If unspecified, at most 50 backups will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- int32 page_size = 2;-- // Not used. A page token, received from a previous `ListBackup` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListBackup` must match- // the call that provided the page token.- string page_token = 3;-}--message ListBackupsResponse {- // The backups from the specified request.- repeated Backup backups = 1;-- // Not used. A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- string next_page_token = 2;-}-message Database {// The name of the database.// Format: instances/{instance}/databases/{database}@@ -870,82 +798,6 @@ message DatabaseSchema {string schema = 1;}-// BackupSetting is the setting for database backup.-message BackupSetting {- // The name of the database backup setting.- // Format: instances/{instance}/databases/{database}/backupSetting- string name = 1;-- // The default maximum age of a Backup created via this BackupPlan.- // If specified, a Backup will be automatically deleted after its age reaches.- // If not specified, Backups created under this BackupPlan will be deleted after 7 DAYS.- // It will be rounded up to the number of days.- google.protobuf.Duration backup_retain_duration = 2;-- // Cron(https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups.- // Support hour of day, day of week. (UTC time)- //- // Default (empty): Disable automatic backup.- string cron_schedule = 3;-- // hook_url(https://www.bytebase.com/docs/disaster-recovery/backup/#post-backup-webhook) is the URL to send a notification when a backup is created.- string hook_url = 4;-}--// The message of the backup.-message Backup {- // The type of the backup.- enum BackupType {- // The type of the backup is unknown.- BACKUP_TYPE_UNSPECIFIED = 0;-- // The backup is created by user.- MANUAL = 1;-- // The backup is created by automatic backup.- AUTOMATIC = 2;-- // The backup is created automatically after doing PITR.- PITR = 3;- }-- // The state of the backup.- enum BackupState {- // The state of the backup is unknown.- BACKUP_STATE_UNSPECIFIED = 0;-- // The backup is being pending to create.- PENDING_CREATE = 1;-- // The backup is ready to use.- DONE = 2;-- // The backup is being deleted.- FAILED = 3;- }-- // The resource name of the database backup. backup-name is specified by the client.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- string name = 1;-- // The timestamp when the backup resource was created initially.- google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];-- // The timestamp when the backup resource was updated.- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];-- // The state of the backup.- BackupState state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];-- // The type of the backup.- BackupType backup_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];-- // The comment of the backup.- string comment = 6;-- string uid = 7;-}-// ListSlowQueriesRequest is the request of listing slow query.message ListSlowQueriesRequest {// Format: instances/{instance}/databases/{database}diff --git a/proto/v1/environment_service.proto b/proto/v1/environment_service.protoindex 4631e71f56..6abd959a5c 100644--- a/proto/v1/environment_service.proto+++ b/proto/v1/environment_service.proto@@ -49,13 +49,6 @@ service EnvironmentService {body: "*"};}-- rpc UpdateBackupSetting(UpdateEnvironmentBackupSettingRequest) returns (EnvironmentBackupSetting) {- option (google.api.http) = {- patch: "/v1/{setting.name=environments/*/backupSetting}"- body: "setting"- };- }}message GetEnvironmentRequest {@@ -148,16 +141,3 @@ enum EnvironmentTier {PROTECTED = 1;UNPROTECTED = 2;}--message UpdateEnvironmentBackupSettingRequest {- // The environment backup setting to update.- EnvironmentBackupSetting setting = 1 [(google.api.field_behavior) = REQUIRED];-}--message EnvironmentBackupSetting {- // The name of the environment backup setting.- // Format: environments/{environment}/backupSetting- string name = 1;-- bool enabled = 2;-}diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex 598689c8b6..573ed7a068 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -5,7 +5,6 @@ package bytebase.v1;import "google/api/annotations.proto";import "google/api/client.proto";import "google/api/field_behavior.proto";-import "google/protobuf/duration.proto";import "google/protobuf/empty.proto";import "google/protobuf/field_mask.proto";import "google/type/expr.proto";@@ -205,7 +204,6 @@ message Policy {oneof policy {IamPolicy workspace_iam_policy = 6;RolloutPolicy rollout_policy = 19;- BackupPlanPolicy backup_plan_policy = 8;MaskingPolicy masking_policy = 9;SQLReviewPolicy sql_review_policy = 11;SlowQueryPolicy slow_query_policy = 12;@@ -230,7 +228,6 @@ enum PolicyType {POLICY_TYPE_UNSPECIFIED = 0;WORKSPACE_IAM = 1;ROLLOUT_POLICY = 11;- BACKUP_PLAN = 3;SQL_REVIEW = 4;MASKING = 5;SLOW_QUERY = 7;@@ -258,11 +255,6 @@ message RolloutPolicy {repeated string issue_roles = 4;}-message BackupPlanPolicy {- BackupPlanSchedule schedule = 1;- google.protobuf.Duration retention_duration = 2;-}-message SlowQueryPolicy {bool active = 1;}@@ -271,13 +263,6 @@ message DisableCopyDataPolicy {bool active = 1;}-enum BackupPlanSchedule {- SCHEDULE_UNSPECIFIED = 0;- UNSET = 1;- DAILY = 2;- WEEKLY = 3;-}-message MaskingPolicy {repeated MaskData mask_data = 1;}diff --git a/proto/v1/project_service.proto b/proto/v1/project_service.protoindex f2ac3a99b5..76b05afdbc 100644--- a/proto/v1/project_service.proto+++ b/proto/v1/project_service.proto@@ -600,10 +600,6 @@ message Activity {// SQL Editor related activity types.// TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.TYPE_SQL_EDITOR_QUERY = 19;-- // Database related activity types.- // TYPE_DATABASE_RECOVERY_PITR_DONE represents the database recovery to a point in time is done.- TYPE_DATABASE_RECOVERY_PITR_DONE = 20;}}diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.protoindex 43de1c8b8f..dbb0317e55 100644--- a/proto/v1/rollout_service.proto+++ b/proto/v1/rollout_service.proto@@ -194,7 +194,6 @@ message Plan {oneof config {CreateDatabaseConfig create_database_config = 1;ChangeDatabaseConfig change_database_config = 2;- RestoreDatabaseConfig restore_database_config = 3;ExportDataConfig export_data_config = 7;}}@@ -216,9 +215,6 @@ message Plan {string cluster = 6 [(google.api.field_behavior) = OPTIONAL];// owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".string owner = 7 [(google.api.field_behavior) = OPTIONAL];- // backup is the resource name of the backup.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- string backup = 8 [(google.api.field_behavior) = OPTIONAL];// The environment resource.// Format: environments/prod where prod is the environment resource ID.string environment = 9 [(google.api.field_behavior) = OPTIONAL];@@ -249,8 +245,6 @@ message Plan {MIGRATE_SDL = 3;// Used for DDL changes using gh-ost.MIGRATE_GHOST = 4;- // Used when restoring from a backup (the restored database branched from the original backup).- BRANCH = 5;// Used for DML change.DATA = 6;}@@ -283,25 +277,6 @@ message Plan {optional PreUpdateBackupDetail pre_update_backup_detail = 8;}- message RestoreDatabaseConfig {- // The resource name of the target to restore.- // Format: instances/{instance}/databases/{database}- string target = 1;- // create_database_config is present if the user wants to restore to a new database.- optional CreateDatabaseConfig create_database_config = 2;- // source determines how to restore the database.- // 1. from a backup- // 2. from a point in time- oneof source {- // Restore from a backup.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}-- string backup = 3;- // After the PITR operations, the database will be recovered to the state at this time.- google.protobuf.Timestamp point_in_time = 4;- }- }-message ExportDataConfig {// The resource name of the target.// Format: instances/{instance-id}/databases/{database-name}@@ -411,7 +386,6 @@ message PlanCheckRun {DATABASE_STATEMENT_SUMMARY_REPORT = 5;DATABASE_CONNECT = 6;DATABASE_GHOST_SYNC = 7;- DATABASE_PITR_MYSQL = 8;}Type type = 3;@@ -594,12 +568,6 @@ message Task {DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER = 7;// use payload DatabaseDataUpdateDATABASE_DATA_UPDATE = 8;- // use payload DatabaseBackup- DATABASE_BACKUP = 9;- // use payload DatabaseRestoreRestore- DATABASE_RESTORE_RESTORE = 10;- // use payload nil- DATABASE_RESTORE_CUTOVER = 11;// use payload DatabaseDataExportDATABASE_DATA_EXPORT = 12;}@@ -617,8 +585,6 @@ message Task {DatabaseSchemaBaseline database_schema_baseline = 10;DatabaseSchemaUpdate database_schema_update = 11;DatabaseDataUpdate database_data_update = 12;- DatabaseBackup database_backup = 13;- DatabaseRestoreRestore database_restore_restore = 14;DatabaseDataExport database_data_export = 16;}@@ -678,29 +644,6 @@ message Task {string rollback_from_task = 8;}- message DatabaseBackup {- // The resource name of the backup.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- string backup = 1;- }-- message DatabaseRestoreRestore {- // Target is only used when doing restore to a new database now.- // It is empty for the case of in-place restore.- // Target {instance} must be within the same environment as the instance of the original database.- // {database} is the target database name.- // Format: instances/{instance}/databases/database- string target = 1;-- oneof source {- // Only used when doing restore full backup only.- // Format: instances/{instance}/databases/{database}/backups/{backup-name}- string backup = 2;- // After the PITR operations, the database will be recovered to the state at this time.- google.protobuf.Timestamp point_in_time = 3;- }- }-message DatabaseDataExport {// The resource name of the target.// Format: instances/{instance-id}/databases/{database-name}