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: no table group (#12190)
Danny Xud2a11128e48b
diff --git a/backend/api/v1/acl_config.go b/backend/api/v1/acl_config.goindex b167092455..1b7ab2dcc2 100644--- a/backend/api/v1/acl_config.go+++ b/backend/api/v1/acl_config.go@@ -80,11 +80,6 @@ var methodPermissionMap = map[string]iam.Permission{v1pb.ProjectService_CreateDatabaseGroup_FullMethodName: iam.PermissionProjectsUpdate,v1pb.ProjectService_UpdateDatabaseGroup_FullMethodName: iam.PermissionProjectsUpdate,v1pb.ProjectService_DeleteDatabaseGroup_FullMethodName: iam.PermissionProjectsUpdate,- v1pb.ProjectService_ListSchemaGroups_FullMethodName: iam.PermissionProjectsGet,- v1pb.ProjectService_GetSchemaGroup_FullMethodName: iam.PermissionProjectsGet,- v1pb.ProjectService_CreateSchemaGroup_FullMethodName: iam.PermissionProjectsUpdate,- v1pb.ProjectService_UpdateSchemaGroup_FullMethodName: iam.PermissionProjectsUpdate,- v1pb.ProjectService_DeleteSchemaGroup_FullMethodName: iam.PermissionProjectsUpdate,v1pb.ProjectService_GetProjectProtectionRules_FullMethodName: iam.PermissionProjectsGet,v1pb.ProjectService_UpdateProjectProtectionRules_FullMethodName: iam.PermissionProjectsUpdate,diff --git a/backend/api/v1/acl_iam.go b/backend/api/v1/acl_iam.goindex 92aca890c9..e3442b0e7b 100644--- a/backend/api/v1/acl_iam.go+++ b/backend/api/v1/acl_iam.go@@ -157,8 +157,7 @@ func isSkippedMethod(fullMethod string) bool {v1pb.PlanService_ListPlans_FullMethodName,v1pb.PlanService_SearchPlans_FullMethodName,v1pb.UserGroupService_DeleteUserGroup_FullMethodName,- v1pb.UserGroupService_UpdateUserGroup_FullMethodName,- v1pb.ProjectService_ListSchemaGroups_FullMethodName:+ v1pb.UserGroupService_UpdateUserGroup_FullMethodName:return true}return falsediff --git a/backend/api/v1/ctx.go b/backend/api/v1/ctx.goindex 1b63c81907..0d6b5443d6 100644--- a/backend/api/v1/ctx.go+++ b/backend/api/v1/ctx.go@@ -192,10 +192,6 @@ func (p *ContextProvider) do(ctx context.Context, fullMethod string, req any) ([v1pb.ProjectService_UpdateDatabaseGroup_FullMethodName,v1pb.ProjectService_DeleteDatabaseGroup_FullMethodName,- v1pb.ProjectService_GetSchemaGroup_FullMethodName,- v1pb.ProjectService_CreateSchemaGroup_FullMethodName,- v1pb.ProjectService_UpdateSchemaGroup_FullMethodName,- v1pb.ProjectService_DeleteSchemaGroup_FullMethodName,v1pb.ProjectService_GetProjectProtectionRules_FullMethodName,v1pb.ProjectService_UpdateProjectProtectionRules_FullMethodName:@@ -392,7 +388,7 @@ func (*ContextProvider) getProjectIDsForBranchService(_ context.Context, req any}func (*ContextProvider) getProjectIDsForProjectService(_ context.Context, req any) ([]string, error) {- var projects, projectDeploymentConfigs, projectWebhooks, databaseGroups, schemaGroups, protectionRules []string+ var projects, projectDeploymentConfigs, projectWebhooks, databaseGroups, protectionRules []stringswitch r := req.(type) {case *v1pb.GetProjectRequest:@@ -425,14 +421,6 @@ func (*ContextProvider) getProjectIDsForProjectService(_ context.Context, req andatabaseGroups = append(databaseGroups, r.GetDatabaseGroup().GetName())case *v1pb.DeleteDatabaseGroupRequest:databaseGroups = append(databaseGroups, r.GetName())- case *v1pb.GetSchemaGroupRequest:- schemaGroups = append(schemaGroups, r.GetName())- case *v1pb.CreateSchemaGroupRequest:- databaseGroups = append(databaseGroups, r.GetParent())- case *v1pb.UpdateSchemaGroupRequest:- schemaGroups = append(schemaGroups, r.GetSchemaGroup().GetName())- case *v1pb.DeleteSchemaGroupRequest:- schemaGroups = append(schemaGroups, r.GetName())case *v1pb.GetProjectProtectionRulesRequest:protectionRules = append(protectionRules, r.GetName())case *v1pb.UpdateProjectProtectionRulesRequest:@@ -469,13 +457,6 @@ func (*ContextProvider) getProjectIDsForProjectService(_ context.Context, req an}projectIDs = append(projectIDs, projectID)}- for _, schemaGroup := range schemaGroups {- projectID, _, _, err := common.GetProjectIDDatabaseGroupIDSchemaGroupID(schemaGroup)- if err != nil {- return nil, errors.Wrapf(err, "failed to parse %q", schemaGroup)- }- projectIDs = append(projectIDs, projectID)- }for _, protectionRule := range protectionRules {projectID, err := common.TrimSuffixAndGetProjectID(protectionRule, common.ProtectionRulesSuffix)if err != nil {diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.goindex 15eb3429e0..482cf2575b 100644--- a/backend/api/v1/project_service.go+++ b/backend/api/v1/project_service.go@@ -4,7 +4,6 @@ import ("context""fmt""log/slog"- "reflect""slices""strconv""strings"@@ -957,293 +956,6 @@ func (s *ProjectService) GetDatabaseGroup(ctx context.Context, request *v1pb.Getreturn s.convertStoreToAPIDatabaseGroupFull(ctx, databaseGroup, projectResourceID)}-// CreateSchemaGroup creates a database group.-func (s *ProjectService) CreateSchemaGroup(ctx context.Context, request *v1pb.CreateSchemaGroupRequest) (*v1pb.SchemaGroup, error) {- if err := s.licenseService.IsFeatureEnabled(api.FeatureDatabaseGrouping); err != nil {- return nil, status.Errorf(codes.PermissionDenied, err.Error())- }- projectResourceID, databaseGroupResourceID, err := common.GetProjectIDDatabaseGroupID(request.Parent)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{- ResourceID: &projectResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if project == nil {- return nil, status.Errorf(codes.NotFound, "project %q not found", request.Parent)- }- if project.Deleted {- return nil, status.Errorf(codes.NotFound, "project %q has been deleted", request.Parent)- }- databaseGroup, err := s.store.GetDatabaseGroup(ctx, &store.FindDatabaseGroupMessage{- ProjectUID: &project.UID,- ResourceID: &databaseGroupResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if databaseGroup == nil {- return nil, status.Errorf(codes.NotFound, "database group %q not found", databaseGroupResourceID)- }-- if !isValidResourceID(request.SchemaGroupId) {- return nil, status.Errorf(codes.InvalidArgument, "invalid schema group id %q", request.SchemaGroupId)- }- if request.SchemaGroup.TablePlaceholder == "" {- return nil, status.Errorf(codes.InvalidArgument, "schema group table placeholder is required")- }- if request.SchemaGroup.TableExpr == nil {- return nil, status.Errorf(codes.InvalidArgument, "schema group table expression is required")- }- if request.SchemaGroup.TableExpr.Expression == "" {- return nil, status.Errorf(codes.InvalidArgument, "database group database expression is required")- }- if _, err := common.ValidateGroupCELExpr(request.SchemaGroup.TableExpr.Expression); err != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid schema group table expression: %v", err)- }-- storeSchemaGroup := &store.SchemaGroupMessage{- ResourceID: request.SchemaGroupId,- DatabaseGroupUID: databaseGroup.UID,- Placeholder: request.SchemaGroup.TablePlaceholder,- Expression: request.SchemaGroup.TableExpr,- }- if request.ValidateOnly {- return s.convertStoreToAPISchemaGroupFull(ctx, storeSchemaGroup, databaseGroup, projectResourceID)- }-- principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }- schemaGroup, err := s.store.CreateSchemaGroup(ctx, principalID, storeSchemaGroup)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- return convertStoreToAPISchemaGroupBasic(schemaGroup, projectResourceID, databaseGroupResourceID), nil-}--// UpdateSchemaGroup updates a schema group.-func (s *ProjectService) UpdateSchemaGroup(ctx context.Context, request *v1pb.UpdateSchemaGroupRequest) (*v1pb.SchemaGroup, error) {- if err := s.licenseService.IsFeatureEnabled(api.FeatureDatabaseGrouping); err != nil {- return nil, status.Errorf(codes.PermissionDenied, err.Error())- }- projectResourceID, databaseGroupResourceID, schemaGroupResourceID, err := common.GetProjectIDDatabaseGroupIDSchemaGroupID(request.SchemaGroup.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{- ResourceID: &projectResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if project == nil {- return nil, status.Errorf(codes.NotFound, "project %q not found", projectResourceID)- }- if project.Deleted {- return nil, status.Errorf(codes.NotFound, "project %q has been deleted", projectResourceID)- }- databaseGroup, err := s.store.GetDatabaseGroup(ctx, &store.FindDatabaseGroupMessage{- ProjectUID: &project.UID,- ResourceID: &databaseGroupResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if databaseGroup == nil {- return nil, status.Errorf(codes.NotFound, "database group %q not found", databaseGroupResourceID)- }- existedSchemaGroup, err := s.store.GetSchemaGroup(ctx, &store.FindSchemaGroupMessage{- DatabaseGroupUID: &databaseGroup.UID,- ResourceID: &schemaGroupResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if existedSchemaGroup == nil {- return nil, status.Errorf(codes.NotFound, "schema group %q not found", schemaGroupResourceID)- }-- var updateSchemaGroup store.UpdateSchemaGroupMessage- for _, path := range request.UpdateMask.Paths {- switch path {- case "table_placeholder":- if request.SchemaGroup.TablePlaceholder == "" {- return nil, status.Errorf(codes.InvalidArgument, "schema group table placeholder is required")- }- updateSchemaGroup.Placeholder = &request.SchemaGroup.TablePlaceholder- case "table_expr":- if request.SchemaGroup.TableExpr == nil {- return nil, status.Errorf(codes.InvalidArgument, "schema group table expr is required")- }- if request.SchemaGroup.TableExpr.Expression == "" {- return nil, status.Errorf(codes.InvalidArgument, "schema group table expression is required")- }- if _, err := common.ValidateGroupCELExpr(request.SchemaGroup.TableExpr.Expression); err != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid schema group table expression: %v", err)- }- updateSchemaGroup.Expression = request.SchemaGroup.TableExpr- default:- return nil, status.Errorf(codes.InvalidArgument, "unsupported path: %q", path)- }- }- principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }- schemaGroup, err := s.store.UpdateSchemaGroup(ctx, principalID, existedSchemaGroup.UID, &updateSchemaGroup)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- return convertStoreToAPISchemaGroupBasic(schemaGroup, projectResourceID, databaseGroupResourceID), nil-}--// DeleteSchemaGroup deletes a schema group.-func (s *ProjectService) DeleteSchemaGroup(ctx context.Context, request *v1pb.DeleteSchemaGroupRequest) (*emptypb.Empty, error) {- projectResourceID, databaseGroupResourceID, schemaGroupResourceID, err := common.GetProjectIDDatabaseGroupIDSchemaGroupID(request.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{- ResourceID: &projectResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if project == nil {- return nil, status.Errorf(codes.NotFound, "project %q not found", projectResourceID)- }- if project.Deleted {- return nil, status.Errorf(codes.NotFound, "project %q has been deleted", projectResourceID)- }- databaseGroup, err := s.store.GetDatabaseGroup(ctx, &store.FindDatabaseGroupMessage{- ProjectUID: &project.UID,- ResourceID: &databaseGroupResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if databaseGroup == nil {- return nil, status.Errorf(codes.NotFound, "database group %q not found", databaseGroupResourceID)- }- existedSchemaGroup, err := s.store.GetSchemaGroup(ctx, &store.FindSchemaGroupMessage{- DatabaseGroupUID: &databaseGroup.UID,- ResourceID: &schemaGroupResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if existedSchemaGroup == nil {- return nil, status.Errorf(codes.NotFound, "schema group %q not found", schemaGroupResourceID)- }-- err = s.store.DeleteSchemaGroup(ctx, existedSchemaGroup.UID)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- return &emptypb.Empty{}, nil-}--// ListSchemaGroups lists database groups.-func (s *ProjectService) ListSchemaGroups(ctx context.Context, request *v1pb.ListSchemaGroupsRequest) (*v1pb.ListSchemaGroupsResponse, error) {- user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)- if !ok {- return nil, status.Errorf(codes.Internal, "user not found")- }-- projectResourceID, databaseResourceID, err := common.GetProjectIDDatabaseGroupID(request.Parent)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{- ResourceID: &projectResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if project == nil {- return nil, status.Errorf(codes.NotFound, "project %q not found", projectResourceID)- }-- ok, err = s.iamManager.CheckPermission(ctx, iam.PermissionProjectsGet, user, project.ResourceID)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to check permission: %v", err)- }- if !ok {- return nil, status.Errorf(codes.PermissionDenied, "permission denied, user does not have permission %q", iam.PermissionProjectsGet)- }-- databaseGroup, err := s.store.GetDatabaseGroup(ctx, &store.FindDatabaseGroupMessage{- ProjectUID: &project.UID,- ResourceID: &databaseResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if databaseGroup == nil {- return nil, status.Errorf(codes.NotFound, "database group %q not found", databaseResourceID)- }-- schemaGroups, err := s.store.ListSchemaGroups(ctx, &store.FindSchemaGroupMessage{- DatabaseGroupUID: &databaseGroup.UID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- var apiSchemaGroups []*v1pb.SchemaGroup- for _, schemaGroup := range schemaGroups {- apiSchemaGroups = append(apiSchemaGroups, convertStoreToAPISchemaGroupBasic(schemaGroup, projectResourceID, databaseGroup.ResourceID))- }- return &v1pb.ListSchemaGroupsResponse{- SchemaGroups: apiSchemaGroups,- }, nil-}--// GetSchemaGroup gets a database group.-func (s *ProjectService) GetSchemaGroup(ctx context.Context, request *v1pb.GetSchemaGroupRequest) (*v1pb.SchemaGroup, error) {- projectResourceID, databaseGroupResourceID, schemaGroupResourceID, err := common.GetProjectIDDatabaseGroupIDSchemaGroupID(request.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{- ResourceID: &projectResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if project == nil {- return nil, status.Errorf(codes.NotFound, "project %q not found", projectResourceID)- }- databaseGroup, err := s.store.GetDatabaseGroup(ctx, &store.FindDatabaseGroupMessage{- ProjectUID: &project.UID,- ResourceID: &databaseGroupResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if databaseGroup == nil {- return nil, status.Errorf(codes.NotFound, "database group %q not found", databaseGroupResourceID)- }- schemaGroup, err := s.store.GetSchemaGroup(ctx, &store.FindSchemaGroupMessage{- DatabaseGroupUID: &databaseGroup.UID,- ResourceID: &schemaGroupResourceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- if schemaGroup == nil {- return nil, status.Errorf(codes.NotFound, "schema group %q not found", schemaGroupResourceID)- }- if request.View == v1pb.SchemaGroupView_SCHEMA_GROUP_VIEW_BASIC || request.View == v1pb.SchemaGroupView_SCHEMA_GROUP_VIEW_UNSPECIFIED {- return convertStoreToAPISchemaGroupBasic(schemaGroup, projectResourceID, databaseGroupResourceID), nil- }- return s.convertStoreToAPISchemaGroupFull(ctx, schemaGroup, databaseGroup, projectResourceID)-}-// GetProjectProtectionRules gets a project protection rules.func (s *ProjectService) GetProjectProtectionRules(ctx context.Context, request *v1pb.GetProjectProtectionRulesRequest) (*v1pb.ProtectionRules, error) {projectName, err := common.TrimSuffix(request.Name, common.ProtectionRulesSuffix)@@ -1383,93 +1095,6 @@ func convertStoreToAPIDatabaseGroupBasic(databaseGroup *store.DatabaseGroupMessa}}-func (s *ProjectService) convertStoreToAPISchemaGroupFull(ctx context.Context, schemaGroup *store.SchemaGroupMessage, databaseGroup *store.DatabaseGroupMessage, projectResourceID string) (*v1pb.SchemaGroup, error) {- matches, unmatches, err := s.getMatchesAndUnmatchedTables(ctx, schemaGroup, databaseGroup, projectResourceID)- if err != nil {- return nil, err- }- ret := &v1pb.SchemaGroup{- Name: fmt.Sprintf("%s%s/%s%s/%s%s", common.ProjectNamePrefix, projectResourceID, common.DatabaseGroupNamePrefix, databaseGroup.ResourceID, common.SchemaGroupNamePrefix, schemaGroup.ResourceID),- TablePlaceholder: schemaGroup.Placeholder,- TableExpr: schemaGroup.Expression,- MatchedTables: matches,- UnmatchedTables: unmatches,- }- return ret, nil-}--func (s *ProjectService) getMatchesAndUnmatchedTables(ctx context.Context, schemaGroup *store.SchemaGroupMessage, databaseGroup *store.DatabaseGroupMessage, projectResourceID string) ([]*v1pb.SchemaGroup_Table, []*v1pb.SchemaGroup_Table, error) {- allDatabases, err := s.store.ListDatabases(ctx, &store.FindDatabaseMessage{- ProjectID: &projectResourceID,- })- if err != nil {- return nil, nil, status.Errorf(codes.Internal, err.Error())- }- matchesDatabases, _, err := utils.GetMatchedAndUnmatchedDatabasesInDatabaseGroup(ctx, databaseGroup, allDatabases)- if err != nil {- return nil, nil, err- }-- prog, err := common.ValidateGroupCELExpr(schemaGroup.Expression.Expression)- if err != nil {- return nil, nil, err- }-- var matches []*v1pb.SchemaGroup_Table- var unmatches []*v1pb.SchemaGroup_Table-- for _, matchesDatabase := range matchesDatabases {- dbSchema, err := s.store.GetDBSchema(ctx, matchesDatabase.UID)- if err != nil {- return nil, nil, status.Errorf(codes.Internal, err.Error())- }- if dbSchema == nil {- return nil, nil, status.Errorf(codes.Internal, "database %q schema not found", matchesDatabase.DatabaseName)- }- if dbSchema.GetSchema() == nil {- return nil, nil, status.Errorf(codes.Internal, "database %q schema is empty", matchesDatabase.DatabaseName)- }- for _, schema := range dbSchema.GetMetadata().Schemas {- for _, table := range schema.Tables {- res, _, err := prog.ContextEval(ctx, map[string]any{- "resource": map[string]any{- "table_name": table.Name,- },- })- if err != nil {- return nil, nil, status.Errorf(codes.Internal, err.Error())- }-- val, err := res.ConvertToNative(reflect.TypeOf(false))- if err != nil {- return nil, nil, status.Errorf(codes.Internal, "expect bool result")- }-- schemaGroupTable := &v1pb.SchemaGroup_Table{- Database: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, matchesDatabase.InstanceID, common.DatabaseIDPrefix, matchesDatabase.DatabaseName),- Schema: schema.Name,- Table: table.Name,- }-- if boolVal, ok := val.(bool); ok && boolVal {- matches = append(matches, schemaGroupTable)- } else {- unmatches = append(unmatches, schemaGroupTable)- }- }- }- }- return matches, unmatches, nil-}--func convertStoreToAPISchemaGroupBasic(schemaGroup *store.SchemaGroupMessage, projectResourceID, databaseGroupResourceID string) *v1pb.SchemaGroup {- return &v1pb.SchemaGroup{- Name: fmt.Sprintf("%s%s/%s%s/%s%s", common.ProjectNamePrefix, projectResourceID, common.DatabaseGroupNamePrefix, databaseGroupResourceID, common.SchemaGroupNamePrefix, schemaGroup.ResourceID),- TablePlaceholder: schemaGroup.Placeholder,- TableExpr: schemaGroup.Expression,- }-}-func convertToStoreProjectWebhookMessage(webhook *v1pb.Webhook) (*store.ProjectWebhookMessage, error) {tp, err := convertToAPIWebhookTypeString(webhook.Type)if err != nil {diff --git a/backend/api/v1/rollout_service_task.go b/backend/api/v1/rollout_service_task.goindex 2e2d232455..9658574f9c 100644--- a/backend/api/v1/rollout_service_task.go+++ b/backend/api/v1/rollout_service_task.go@@ -46,10 +46,6 @@ func getPipelineCreateFromDatabaseGroupTarget(ctx context.Context, s *store.Storif databaseGroup == nil {return nil, errors.Errorf("database group %q not found", databaseGroupID)}- schemaGroups, err := s.ListSchemaGroups(ctx, &store.FindSchemaGroupMessage{DatabaseGroupUID: &databaseGroup.UID})- if err != nil {- return nil, errors.Wrapf(err, "failed to list schema groups for database group %q", databaseGroupID)- }allDatabases, err := s.ListDatabases(ctx, &store.FindDatabaseMessage{ProjectID: &project.ResourceID})if err != nil {return nil, errors.Wrapf(err, "failed to list databases for project %q", project.ResourceID)@@ -81,10 +77,6 @@ func getPipelineCreateFromDatabaseGroupTarget(ctx context.Context, s *store.StortaskIndexDAGsMatrixByEnv := map[string][][]store.TaskIndexDAG{}for _, db := range matchedDatabases {- dbSchema, err := s.GetDBSchema(ctx, db.UID)- if err != nil {- return nil, errors.Wrapf(err, "failed to get db schema %q", db.UID)- }instance, err := s.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &db.InstanceID})if err != nil {return nil, errors.Wrapf(err, "failed to get instance %q", db.InstanceID)@@ -93,26 +85,7 @@ func getPipelineCreateFromDatabaseGroupTarget(ctx context.Context, s *store.Storreturn nil, errors.Errorf("instance %q not found", db.InstanceID)}- schemaGroupsMatchedTables := map[string][]string{}- for _, schemaGroup := range schemaGroups {- matches, _, err := utils.GetMatchedAndUnmatchedTablesInSchemaGroup(ctx, dbSchema, schemaGroup)- if err != nil {- return nil, errors.Wrapf(err, "failed to get matched and unmatched tables in schema group %q", schemaGroup.ResourceID)- }- schemaGroupsMatchedTables[schemaGroup.ResourceID] = matches- }-- parserEngineType, err := utils.ConvertDatabaseToParserEngineType(instance.Engine)- if err != nil {- return nil, errors.Wrapf(err, "failed to convert database engine %q to parser engine type", instance.Engine)- }-- statements, schemaGroupNames, err := utils.GetStatementsAndSchemaGroupsFromSchemaGroups(sheetStatement, parserEngineType, c.Target, schemaGroups, schemaGroupsMatchedTables)- if err != nil {- return nil, errors.Wrapf(err, "failed to get statements from schema groups")- }-- taskCreates, err := getTaskCreatesFromChangeDatabaseConfigDatabaseGroupStatements(db, instance, spec, c, statements, schemaGroupNames)+ taskCreates, err := getTaskCreatesFromChangeDatabaseConfigDatabaseGroupStatements(db, instance, spec, c, sheetStatement)if err != nil {return nil, errors.Wrapf(err, "failed to get task creates from change database config database group statements")}@@ -673,67 +646,61 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, s}}-func getTaskCreatesFromChangeDatabaseConfigDatabaseGroupStatements(db *store.DatabaseMessage, instance *store.InstanceMessage, spec *storepb.PlanConfig_Spec, c *storepb.PlanConfig_ChangeDatabaseConfig, statements []string, schemaGroupNames []string) ([]*store.TaskMessage, error) {+func getTaskCreatesFromChangeDatabaseConfigDatabaseGroupStatements(db *store.DatabaseMessage, instance *store.InstanceMessage, spec *storepb.PlanConfig_Spec, c *storepb.PlanConfig_ChangeDatabaseConfig, statement string) ([]*store.TaskMessage, error) {var creates []*store.TaskMessage- for idx, statement := range statements {- schemaVersionSuffix := fmt.Sprintf("-%03d", idx)- schemaGroupName := schemaGroupNames[idx]- switch c.Type {- case storepb.PlanConfig_ChangeDatabaseConfig_MIGRATE:- payload := api.TaskDatabaseSchemaUpdatePayload{- SpecID: spec.Id,- SheetID: 0,- SchemaVersion: getOrDefaultSchemaVersionWithSuffix(c.SchemaVersion, schemaVersionSuffix),- SchemaGroupName: schemaGroupName,- }- bytes, err := json.Marshal(payload)- if err != nil {- return nil, errors.Wrapf(err, "failed to marshal task database schema update payload")- }- payloadString := string(bytes)- taskCreate := &store.TaskMessage{- Name: fmt.Sprintf("DDL(schema) for database %q", db.DatabaseName),- InstanceID: instance.UID,- DatabaseID: &db.UID,- Type: api.TaskDatabaseSchemaUpdate,- EarliestAllowedTs: spec.EarliestAllowedTime.GetSeconds(),- Payload: payloadString,- Statement: statement,- }- creates = append(creates, taskCreate)+ switch c.Type {+ case storepb.PlanConfig_ChangeDatabaseConfig_MIGRATE:+ payload := api.TaskDatabaseSchemaUpdatePayload{+ SpecID: spec.Id,+ SheetID: 0,+ SchemaVersion: c.SchemaVersion,+ }+ bytes, err := json.Marshal(payload)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to marshal task database schema update payload")+ }+ payloadString := string(bytes)+ taskCreate := &store.TaskMessage{+ Name: fmt.Sprintf("DDL(schema) for database %q", db.DatabaseName),+ InstanceID: instance.UID,+ DatabaseID: &db.UID,+ Type: api.TaskDatabaseSchemaUpdate,+ EarliestAllowedTs: spec.EarliestAllowedTime.GetSeconds(),+ Payload: payloadString,+ Statement: statement,+ }+ creates = append(creates, taskCreate)- case storepb.PlanConfig_ChangeDatabaseConfig_DATA:- preUpdateBackupDetail := api.PreUpdateBackupDetail{}- if c.GetPreUpdateBackupDetail().GetDatabase() != "" {- preUpdateBackupDetail.Database = c.GetPreUpdateBackupDetail().GetDatabase()- }+ case storepb.PlanConfig_ChangeDatabaseConfig_DATA:+ preUpdateBackupDetail := api.PreUpdateBackupDetail{}+ if c.GetPreUpdateBackupDetail().GetDatabase() != "" {+ preUpdateBackupDetail.Database = c.GetPreUpdateBackupDetail().GetDatabase()+ }- payload := api.TaskDatabaseDataUpdatePayload{- SpecID: spec.Id,- SheetID: 0,- SchemaVersion: getOrDefaultSchemaVersionWithSuffix(c.SchemaVersion, schemaVersionSuffix),- RollbackEnabled: c.RollbackEnabled,- RollbackSQLStatus: api.RollbackSQLStatusPending,- SchemaGroupName: schemaGroupName,- PreUpdateBackupDetail: preUpdateBackupDetail,- }+ payload := api.TaskDatabaseDataUpdatePayload{+ SpecID: spec.Id,+ SheetID: 0,+ SchemaVersion: getOrDefaultSchemaVersion(c.SchemaVersion),+ RollbackEnabled: c.RollbackEnabled,+ RollbackSQLStatus: api.RollbackSQLStatusPending,+ PreUpdateBackupDetail: preUpdateBackupDetail,+ }- bytes, err := json.Marshal(payload)- if err != nil {- return nil, errors.Wrapf(err, "failed to marshal database data update payload")- }- payloadString := string(bytes)- taskCreate := &store.TaskMessage{- Name: fmt.Sprintf("DML(data) for database %q", db.DatabaseName),- InstanceID: instance.UID,- DatabaseID: &db.UID,- Type: api.TaskDatabaseDataUpdate,- EarliestAllowedTs: spec.EarliestAllowedTime.GetSeconds(),- Payload: payloadString,- Statement: statement,- }- creates = append(creates, taskCreate)+ bytes, err := json.Marshal(payload)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to marshal database data update payload")+ }+ payloadString := string(bytes)+ taskCreate := &store.TaskMessage{+ Name: fmt.Sprintf("DML(data) for database %q", db.DatabaseName),+ InstanceID: instance.UID,+ DatabaseID: &db.UID,+ Type: api.TaskDatabaseDataUpdate,+ EarliestAllowedTs: spec.EarliestAllowedTime.GetSeconds(),+ Payload: payloadString,+ Statement: statement,}+ creates = append(creates, taskCreate)}return creates, nil@@ -870,10 +837,3 @@ func getOrDefaultSchemaVersion(v string) string {}return common.DefaultMigrationVersion().Version}--func getOrDefaultSchemaVersionWithSuffix(v string, suffix string) string {- if v != "" {- return v + suffix- }- return common.DefaultMigrationVersion().Version + suffix-}diff --git a/backend/api/v1/rollout_service_test.go b/backend/api/v1/rollout_service_test.godeleted file mode 100644index b4bb206f57..0000000000--- a/backend/api/v1/rollout_service_test.go+++ /dev/null@@ -1,138 +0,0 @@-package v1--import (- "testing"-- "github.com/stretchr/testify/require"-- "github.com/bytebase/bytebase/backend/store"- "github.com/bytebase/bytebase/backend/utils"- storepb "github.com/bytebase/bytebase/proto/generated-go/store"-)--func TestGetStatementsFromSchemaGroups(t *testing.T) {- a := require.New(t)-- tcs := []struct {- name string- statement string- parserEngineType storepb.Engine- schemaGroupParent string- schemaGroups []*store.SchemaGroupMessage- schemaGroupMatchedTables map[string][]string-- expectedStatements []string- expectedSchemaGroupNames []string- }{- {- name: "simple",- statement: "ALTER TABLE salary ADD COLUMN num INT;",- parserEngineType: storepb.Engine_MYSQL,- schemaGroupParent: "projects/p2/databaseGroups/g1",- schemaGroups: []*store.SchemaGroupMessage{- {- ResourceID: "schema group 1",- Placeholder: "salary",- },- },- schemaGroupMatchedTables: map[string][]string{- "schema group 1": {"salary_01"},- },- expectedStatements: []string{"ALTER TABLE salary_01 ADD COLUMN num INT;\n"},- expectedSchemaGroupNames: []string{"projects/p2/databaseGroups/g1/schemaGroups/schema group 1"},- },- {- name: "matched but has no matched tables",- statement: "ALTER TABLE salary ADD COLUMN num INT;",- parserEngineType: storepb.Engine_MYSQL,- schemaGroupParent: "projects/p2/databaseGroups/g1",- schemaGroups: []*store.SchemaGroupMessage{- {- ResourceID: "schema group 1",- Placeholder: "salary",- },- },- schemaGroupMatchedTables: map[string][]string{- "schema group 1": nil,- },- expectedStatements: nil,- expectedSchemaGroupNames: nil,- },- {- name: "complex 1",- statement: `ALTER TABLE salary ADD COLUMN num INT;-CREATE INDEX salary_num_idx ON salary (num);-CREATE TABLE singleton(id INT);-ALTER TABLE person ADD COLUMN name VARCHAR(30);-ALTER TABLE partpartially ADD COLUMN num INT;-ALTER TABLE singleton ADD COLUMN num INT;`,- parserEngineType: storepb.Engine_MYSQL,- schemaGroupParent: "projects/p2/databaseGroups/g1",- schemaGroups: []*store.SchemaGroupMessage{- {- ResourceID: "schema group 1",- Placeholder: "salary",- },- },- schemaGroupMatchedTables: map[string][]string{- "schema group 1": {"salary_01", "salary_02"},- },- expectedStatements: []string{- "ALTER TABLE salary_01 ADD COLUMN num INT;\n\nCREATE INDEX salary_01_num_idx ON salary_01 (num);\n",- "ALTER TABLE salary_02 ADD COLUMN num INT;\n\nCREATE INDEX salary_02_num_idx ON salary_02 (num);\n",- "\nCREATE TABLE singleton(id INT);\n\nALTER TABLE person ADD COLUMN name VARCHAR(30);\n\nALTER TABLE partpartially ADD COLUMN num INT;\n\nALTER TABLE singleton ADD COLUMN num INT;\n",- },- expectedSchemaGroupNames: []string{- "projects/p2/databaseGroups/g1/schemaGroups/schema group 1",- "projects/p2/databaseGroups/g1/schemaGroups/schema group 1",- "",- },- },- {- name: "complex 2",- statement: `ALTER TABLE salary ADD COLUMN num INT;-CREATE INDEX salary_num_idx ON salary (num);-CREATE TABLE singleton(id INT);-ALTER TABLE person ADD COLUMN name VARCHAR(30);-ALTER TABLE partpartially ADD COLUMN num INT;-ALTER TABLE singleton ADD COLUMN num INT;`,- parserEngineType: storepb.Engine_MYSQL,- schemaGroupParent: "projects/p2/databaseGroups/g1",- schemaGroups: []*store.SchemaGroupMessage{- {- ResourceID: "schema group 1",- Placeholder: "salary",- },- {- ResourceID: "schema group 2",- Placeholder: "singleton",- },- },- schemaGroupMatchedTables: map[string][]string{- "schema group 1": {"salary_01", "salary_02"},- "schema group 2": {"singleton_00"},- },- expectedStatements: []string{- "ALTER TABLE salary_01 ADD COLUMN num INT;\n\nCREATE INDEX salary_01_num_idx ON salary_01 (num);\n",- "ALTER TABLE salary_02 ADD COLUMN num INT;\n\nCREATE INDEX salary_02_num_idx ON salary_02 (num);\n",- "\nCREATE TABLE singleton_00(id INT);\n",- "\nALTER TABLE person ADD COLUMN name VARCHAR(30);\n\nALTER TABLE partpartially ADD COLUMN num INT;\n",- "\nALTER TABLE singleton_00 ADD COLUMN num INT;\n",- },- expectedSchemaGroupNames: []string{- "projects/p2/databaseGroups/g1/schemaGroups/schema group 1",- "projects/p2/databaseGroups/g1/schemaGroups/schema group 1",- "projects/p2/databaseGroups/g1/schemaGroups/schema group 2",- "",- "projects/p2/databaseGroups/g1/schemaGroups/schema group 2",- },- },- }-- for _, tc := range tcs {- statements, schemaGroupNames, err := utils.GetStatementsAndSchemaGroupsFromSchemaGroups(tc.statement, tc.parserEngineType, tc.schemaGroupParent, tc.schemaGroups, tc.schemaGroupMatchedTables)- a.NoError(err, tc.name)- a.Equal(tc.expectedStatements, statements, tc.name)- a.Equal(tc.expectedSchemaGroupNames, schemaGroupNames, tc.name)- }-}diff --git a/backend/migrator/migration/prod/2.18/0008##schema_group.sql b/backend/migrator/migration/prod/2.18/0008##schema_group.sqlnew file mode 100644index 0000000000..4dda540ce5--- /dev/null+++ b/backend/migrator/migration/prod/2.18/0008##schema_group.sql@@ -0,0 +1 @@+DROP TABLE schema_group;\ No newline at end of filediff --git a/backend/migrator/migration/prod/LATEST.sql b/backend/migrator/migration/prod/LATEST.sqlindex 36fb127ad5..720ac8d64b 100644--- a/backend/migrator/migration/prod/LATEST.sql+++ b/backend/migrator/migration/prod/LATEST.sql@@ -918,25 +918,6 @@ CREATE UNIQUE INDEX idx_db_group_unique_project_id_placeholder ON db_group(projeALTER SEQUENCE db_group_id_seq RESTART WITH 101;-CREATE TABLE schema_group (- id BIGSERIAL PRIMARY KEY,- row_status row_status NOT NULL DEFAULT 'NORMAL',- creator_id INTEGER NOT NULL REFERENCES principal (id),- created_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),- updater_id INTEGER NOT NULL REFERENCES principal (id),- updated_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),- db_group_id BIGINT NOT NULL REFERENCES db_group (id),- resource_id TEXT NOT NULL,- placeholder TEXT NOT NULL DEFAULT '',- expression JSONB NOT NULL DEFAULT '{}'-);--CREATE UNIQUE INDEX idx_schema_group_unique_db_group_id_resource_id ON schema_group(db_group_id, resource_id);--CREATE UNIQUE INDEX idx_schema_group_unique_db_group_id_placeholder ON schema_group(db_group_id, placeholder);--ALTER SEQUENCE schema_group_id_seq RESTART WITH 101;--- changelist table stores project changelists.CREATE TABLE changelist (id SERIAL PRIMARY KEY,diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex e71f5ac16a..197816dc24 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -230,5 +230,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("2.18.7"), releaseVersion)+ require.Equal(t, semver.MustParse("2.18.8"), releaseVersion)}diff --git a/backend/runner/plancheck/statement_advise_executor.go b/backend/runner/plancheck/statement_advise_executor.goindex a8116c8eae..0e08817635 100644--- a/backend/runner/plancheck/statement_advise_executor.go+++ b/backend/runner/plancheck/statement_advise_executor.go@@ -230,10 +230,6 @@ func (e *StatementAdviseExecutor) runForDatabaseGroupTarget(ctx context.Context,if databaseGroup == nil {return nil, errors.Errorf("database group not found %d", databaseGroupUID)}- schemaGroups, err := e.store.ListSchemaGroups(ctx, &store.FindSchemaGroupMessage{DatabaseGroupUID: &databaseGroup.UID})- if err != nil {- return nil, errors.Wrapf(err, "failed to list schema groups for database group %q", databaseGroup.UID)- }project, err := e.store.GetProjectV2(ctx, &store.FindProjectMessage{UID: &databaseGroup.ProjectUID,})@@ -329,107 +325,86 @@ func (e *StatementAdviseExecutor) runForDatabaseGroupTarget(ctx context.Context,return nil, errors.Wrapf(err, "failed to get db schema %q", database.UID)}- schemaGroupsMatchedTables := map[string][]string{}- for _, schemaGroup := range schemaGroups {- matches, _, err := utils.GetMatchedAndUnmatchedTablesInSchemaGroup(ctx, dbSchema, schemaGroup)- if err != nil {- return nil, errors.Wrapf(err, "failed to get matched and unmatched tables in schema group %q", schemaGroup.ResourceID)- }- schemaGroupsMatchedTables[schemaGroup.ResourceID] = matches- }-- parserEngineType, err := utils.ConvertDatabaseToParserEngineType(instance.Engine)+ policy, err := e.store.GetSQLReviewPolicy(ctx, environment.UID)if err != nil {- return nil, errors.Wrapf(err, "failed to convert database engine %q to parser engine type", instance.Engine)+ if e, ok := err.(*common.Error); ok && e.Code == common.NotFound {+ policy = &storepb.SQLReviewPolicy{+ Name: "Default",+ }+ } else {+ return nil, common.Wrapf(err, common.Internal, "failed to get SQL review policy")+ }}- statements, _, err := utils.GetStatementsAndSchemaGroupsFromSchemaGroups(sheetStatement, parserEngineType, "", schemaGroups, schemaGroupsMatchedTables)+ catalog, err := e.store.NewCatalog(ctx, database.UID, instance.Engine, store.IgnoreDatabaseAndTableCaseSensitive(instance), nil /* Override Metadata */, getSyntaxMode(changeType))if err != nil {- return nil, errors.Wrapf(err, "failed to get statements from schema groups")+ return nil, common.Wrapf(err, common.Internal, "failed to create a catalog")}- for _, statement := range statements {- policy, err := e.store.GetSQLReviewPolicy(ctx, environment.UID)+ stmtResults, err := func() ([]*storepb.PlanCheckRunResult_Result, error) {+ driver, err := e.dbFactory.GetAdminDatabaseDriver(ctx, instance, database, db.ConnectionContext{UseDatabaseOwner: true})if err != nil {- if e, ok := err.(*common.Error); ok && e.Code == common.NotFound {- policy = &storepb.SQLReviewPolicy{- Name: "Default",- }- } else {- return nil, common.Wrapf(err, common.Internal, "failed to get SQL review policy")- }+ return nil, err}-- catalog, err := e.store.NewCatalog(ctx, database.UID, instance.Engine, store.IgnoreDatabaseAndTableCaseSensitive(instance), nil /* Override Metadata */, getSyntaxMode(changeType))+ defer driver.Close(ctx)+ connection := driver.GetDB()++ materials := utils.GetSecretMapFromDatabaseMessage(database)+ // To avoid leaking the rendered statement, the error message should use the original statement and not the rendered statement.+ renderedStatement := utils.RenderStatement(sheetStatement, materials)+ adviceList, err := advisor.SQLReviewCheck(renderedStatement, policy.RuleList, advisor.SQLReviewCheckContext{+ Charset: dbSchema.GetMetadata().CharacterSet,+ Collation: dbSchema.GetMetadata().Collation,+ DBSchema: dbSchema.GetMetadata(),+ ChangeType: changeType,+ DbType: instance.Engine,+ Catalog: catalog,+ Driver: connection,+ Context: ctx,+ })if err != nil {- return nil, common.Wrapf(err, common.Internal, "failed to create a catalog")+ return nil, err}- stmtResults, err := func() ([]*storepb.PlanCheckRunResult_Result, error) {- driver, err := e.dbFactory.GetAdminDatabaseDriver(ctx, instance, database, db.ConnectionContext{UseDatabaseOwner: true})- if err != nil {- return nil, err- }- defer driver.Close(ctx)- connection := driver.GetDB()-- materials := utils.GetSecretMapFromDatabaseMessage(database)- // To avoid leaking the rendered statement, the error message should use the original statement and not the rendered statement.- renderedStatement := utils.RenderStatement(statement, materials)- adviceList, err := advisor.SQLReviewCheck(renderedStatement, policy.RuleList, advisor.SQLReviewCheckContext{- Charset: dbSchema.GetMetadata().CharacterSet,- Collation: dbSchema.GetMetadata().Collation,- DBSchema: dbSchema.GetMetadata(),- ChangeType: changeType,- DbType: instance.Engine,- Catalog: catalog,- Driver: connection,- Context: ctx,- })- if err != nil {- return nil, err+ var results []*storepb.PlanCheckRunResult_Result+ for _, advice := range adviceList {+ status := storepb.PlanCheckRunResult_Result_SUCCESS+ switch advice.Status {+ case advisor.Success:+ continue+ case advisor.Warn:+ status = storepb.PlanCheckRunResult_Result_WARNING+ case advisor.Error:+ status = storepb.PlanCheckRunResult_Result_ERROR}- var results []*storepb.PlanCheckRunResult_Result- for _, advice := range adviceList {- status := storepb.PlanCheckRunResult_Result_SUCCESS- switch advice.Status {- case advisor.Success:- continue- case advisor.Warn:- status = storepb.PlanCheckRunResult_Result_WARNING- case advisor.Error:- status = storepb.PlanCheckRunResult_Result_ERROR- }-- results = append(results, &storepb.PlanCheckRunResult_Result{- Status: status,- Title: advice.Title,- Content: advice.Content,- Code: 0,- Report: &storepb.PlanCheckRunResult_Result_SqlReviewReport_{- SqlReviewReport: &storepb.PlanCheckRunResult_Result_SqlReviewReport{- Line: int32(advice.Line),- Column: int32(advice.Column),- Code: advice.Code.Int32(),- Detail: advice.Details,- },- },- })- }- return results, nil- }()- if err != nil {results = append(results, &storepb.PlanCheckRunResult_Result{- Status: storepb.PlanCheckRunResult_Result_ERROR,- Title: "Failed to run SQL review",- Content: err.Error(),- Code: common.Internal.Int32(),- Report: nil,+ Status: status,+ Title: advice.Title,+ Content: advice.Content,+ Code: 0,+ Report: &storepb.PlanCheckRunResult_Result_SqlReviewReport_{+ SqlReviewReport: &storepb.PlanCheckRunResult_Result_SqlReviewReport{+ Line: int32(advice.Line),+ Column: int32(advice.Column),+ Code: advice.Code.Int32(),+ Detail: advice.Details,+ },+ },})- } else {- results = append(results, stmtResults...)}+ return results, nil+ }()+ if err != nil {+ results = append(results, &storepb.PlanCheckRunResult_Result{+ Status: storepb.PlanCheckRunResult_Result_ERROR,+ Title: "Failed to run SQL review",+ Content: err.Error(),+ Code: common.Internal.Int32(),+ Report: nil,+ })+ } else {+ results = append(results, stmtResults...)}}diff --git a/backend/runner/plancheck/statement_report_executor.go b/backend/runner/plancheck/statement_report_executor.goindex 5b870323dd..94b88237a9 100644--- a/backend/runner/plancheck/statement_report_executor.go+++ b/backend/runner/plancheck/statement_report_executor.go@@ -158,10 +158,6 @@ func (e *StatementReportExecutor) runForDatabaseGroupTarget(ctx context.Context,if databaseGroup == nil {return nil, errors.Errorf("database group not found %d", databaseGroupUID)}- schemaGroups, err := e.store.ListSchemaGroups(ctx, &store.FindSchemaGroupMessage{DatabaseGroupUID: &databaseGroup.UID})- if err != nil {- return nil, errors.Wrapf(err, "failed to list schema groups for database group %q", databaseGroup.UID)- }project, err := e.store.GetProjectV2(ctx, &store.FindProjectMessage{UID: &databaseGroup.ProjectUID,})@@ -241,66 +237,46 @@ func (e *StatementReportExecutor) runForDatabaseGroupTarget(ctx context.Context,if dbSchema.GetMetadata() == nil {return nil, errors.Errorf("database schema metadata not found: %d", database.UID)}- schemaGroupsMatchedTables := map[string][]string{}- for _, schemaGroup := range schemaGroups {- matches, _, err := utils.GetMatchedAndUnmatchedTablesInSchemaGroup(ctx, dbSchema, schemaGroup)- if err != nil {- return nil, errors.Wrapf(err, "failed to get matched and unmatched tables in schema group %q", schemaGroup.ResourceID)- }- schemaGroupsMatchedTables[schemaGroup.ResourceID] = matches- }-- parserEngineType, err := utils.ConvertDatabaseToParserEngineType(instance.Engine)- if err != nil {- return nil, errors.Wrapf(err, "failed to convert database engine %q to parser engine type", instance.Engine)- }-- statements, _, err := utils.GetStatementsAndSchemaGroupsFromSchemaGroups(sheetStatement, parserEngineType, "", schemaGroups, schemaGroupsMatchedTables)- if err != nil {- return nil, errors.Wrapf(err, "failed to get statements from schema groups")- }- for _, statement := range statements {- materials := utils.GetSecretMapFromDatabaseMessage(database)- // To avoid leaking the rendered statement, the error message should use the original statement and not the rendered statement.- renderedStatement := utils.RenderStatement(statement, materials)- stmtResults, err := func() ([]*storepb.PlanCheckRunResult_Result, error) {- switch instance.Engine {- case storepb.Engine_POSTGRES:- driver, err := e.dbFactory.GetAdminDatabaseDriver(ctx, instance, database, db.ConnectionContext{})- if err != nil {- return nil, err- }- defer driver.Close(ctx)- sqlDB := driver.GetDB()-- return reportForPostgres(ctx, sqlDB, database.DatabaseName, renderedStatement, dbSchema)- case storepb.Engine_MYSQL, storepb.Engine_MARIADB, storepb.Engine_OCEANBASE:- driver, err := e.dbFactory.GetAdminDatabaseDriver(ctx, instance, database, db.ConnectionContext{})- if err != nil {- return nil, err- }- defer driver.Close(ctx)- sqlDB := driver.GetDB()-- return reportForMySQL(ctx, sqlDB, instance.Engine, database.DatabaseName, renderedStatement, dbSchema)- case storepb.Engine_ORACLE, storepb.Engine_DM, storepb.Engine_OCEANBASE_ORACLE:- return reportForOracle(database.DatabaseName, database.DatabaseName, renderedStatement, dbSchema)- default:- return nil, nil+ materials := utils.GetSecretMapFromDatabaseMessage(database)+ // To avoid leaking the rendered statement, the error message should use the original statement and not the rendered statement.+ renderedStatement := utils.RenderStatement(sheetStatement, materials)+ stmtResults, err := func() ([]*storepb.PlanCheckRunResult_Result, error) {+ switch instance.Engine {+ case storepb.Engine_POSTGRES:+ driver, err := e.dbFactory.GetAdminDatabaseDriver(ctx, instance, database, db.ConnectionContext{})+ if err != nil {+ return nil, err}- }()- if err != nil {- results = append(results, &storepb.PlanCheckRunResult_Result{- Status: storepb.PlanCheckRunResult_Result_ERROR,- Title: "Failed to run report executor",- Content: err.Error(),- Code: common.Internal.Int32(),- Report: nil,- })- } else {- results = append(results, stmtResults...)+ defer driver.Close(ctx)+ sqlDB := driver.GetDB()++ return reportForPostgres(ctx, sqlDB, database.DatabaseName, renderedStatement, dbSchema)+ case storepb.Engine_MYSQL, storepb.Engine_MARIADB, storepb.Engine_OCEANBASE:+ driver, err := e.dbFactory.GetAdminDatabaseDriver(ctx, instance, database, db.ConnectionContext{})+ if err != nil {+ return nil, err+ }+ defer driver.Close(ctx)+ sqlDB := driver.GetDB()++ return reportForMySQL(ctx, sqlDB, instance.Engine, database.DatabaseName, renderedStatement, dbSchema)+ case storepb.Engine_ORACLE, storepb.Engine_DM, storepb.Engine_OCEANBASE_ORACLE:+ return reportForOracle(database.DatabaseName, database.DatabaseName, renderedStatement, dbSchema)+ default:+ return nil, nil}+ }()+ if err != nil {+ results = append(results, &storepb.PlanCheckRunResult_Result{+ Status: storepb.PlanCheckRunResult_Result_ERROR,+ Title: "Failed to run report executor",+ Content: err.Error(),+ Code: common.Internal.Int32(),+ Report: nil,+ })+ } else {+ results = append(results, stmtResults...)}}diff --git a/backend/runner/plancheck/statement_type_executor.go b/backend/runner/plancheck/statement_type_executor.goindex 9466bdc0fb..646174dac5 100644--- a/backend/runner/plancheck/statement_type_executor.go+++ b/backend/runner/plancheck/statement_type_executor.go@@ -184,10 +184,6 @@ func (e *StatementTypeExecutor) runForDatabaseGroupTarget(ctx context.Context, creturn nil, errors.Errorf("database group not found %d", databaseGroupUID)}- schemaGroups, err := e.store.ListSchemaGroups(ctx, &store.FindSchemaGroupMessage{DatabaseGroupUID: &databaseGroup.UID})- if err != nil {- return nil, errors.Wrapf(err, "failed to list schema groups for database group %q", databaseGroup.UID)- }project, err := e.store.GetProjectV2(ctx, &store.FindProjectMessage{UID: &databaseGroup.ProjectUID,})@@ -268,82 +264,61 @@ func (e *StatementTypeExecutor) runForDatabaseGroupTarget(ctx context.Context, creturn nil, errors.Wrapf(err, "failed to get db schema %q", database.UID)}- schemaGroupsMatchedTables := map[string][]string{}- for _, schemaGroup := range schemaGroups {- matches, _, err := utils.GetMatchedAndUnmatchedTablesInSchemaGroup(ctx, dbSchema, schemaGroup)- if err != nil {- return nil, errors.Wrapf(err, "failed to get matched and unmatched tables in schema group %q", schemaGroup.ResourceID)- }- schemaGroupsMatchedTables[schemaGroup.ResourceID] = matches- }-- parserEngineType, err := utils.ConvertDatabaseToParserEngineType(instance.Engine)- if err != nil {- return nil, errors.Wrapf(err, "failed to convert database engine %q to parser engine type", instance.Engine)- }-- statements, _, err := utils.GetStatementsAndSchemaGroupsFromSchemaGroups(sheetStatement, parserEngineType, "", schemaGroups, schemaGroupsMatchedTables)- if err != nil {- return nil, errors.Wrapf(err, "failed to get statements from schema groups")- }-- for _, statement := range statements {- materials := utils.GetSecretMapFromDatabaseMessage(database)- // To avoid leaking the rendered statement, the error message should use the original statement and not the rendered statement.- renderedStatement := utils.RenderStatement(statement, materials)-- stmtResults, err := func() ([]*storepb.PlanCheckRunResult_Result, error) {- var results []*storepb.PlanCheckRunResult_Result- switch instance.Engine {- case storepb.Engine_POSTGRES, storepb.Engine_RISINGWAVE:- checkResults, err := postgresqlStatementTypeCheck(renderedStatement)- if err != nil {- return nil, err- }- results = append(results, checkResults...)- case storepb.Engine_TIDB:- checkResults, err := tidbStatementTypeCheck(renderedStatement, dbSchema.GetMetadata().CharacterSet, dbSchema.GetMetadata().Collation)+ materials := utils.GetSecretMapFromDatabaseMessage(database)+ // To avoid leaking the rendered statement, the error message should use the original statement and not the rendered statement.+ renderedStatement := utils.RenderStatement(sheetStatement, materials)++ stmtResults, err := func() ([]*storepb.PlanCheckRunResult_Result, error) {+ var results []*storepb.PlanCheckRunResult_Result+ switch instance.Engine {+ case storepb.Engine_POSTGRES, storepb.Engine_RISINGWAVE:+ checkResults, err := postgresqlStatementTypeCheck(renderedStatement)+ if err != nil {+ return nil, err+ }+ results = append(results, checkResults...)+ case storepb.Engine_TIDB:+ checkResults, err := tidbStatementTypeCheck(renderedStatement, dbSchema.GetMetadata().CharacterSet, dbSchema.GetMetadata().Collation)+ if err != nil {+ return nil, err+ }+ results = append(results, checkResults...)+ if changeType == storepb.PlanCheckRunConfig_SDL {+ sdlAdvice, err := e.tidbSDLTypeCheck(ctx, renderedStatement, instance, database)if err != nil {return nil, err}- results = append(results, checkResults...)- if changeType == storepb.PlanCheckRunConfig_SDL {- sdlAdvice, err := e.tidbSDLTypeCheck(ctx, renderedStatement, instance, database)- if err != nil {- return nil, err- }- results = append(results, sdlAdvice...)- }- case storepb.Engine_MYSQL, storepb.Engine_MARIADB, storepb.Engine_OCEANBASE:- checkResults, err := mysqlStatementTypeCheck(renderedStatement)+ results = append(results, sdlAdvice...)+ }+ case storepb.Engine_MYSQL, storepb.Engine_MARIADB, storepb.Engine_OCEANBASE:+ checkResults, err := mysqlStatementTypeCheck(renderedStatement)+ if err != nil {+ return nil, err+ }+ results = append(results, checkResults...)+ if changeType == storepb.PlanCheckRunConfig_SDL {+ sdlAdvice, err := e.mysqlSDLTypeCheck(ctx, renderedStatement, instance, database)if err != nil {return nil, err}- results = append(results, checkResults...)- if changeType == storepb.PlanCheckRunConfig_SDL {- sdlAdvice, err := e.mysqlSDLTypeCheck(ctx, renderedStatement, instance, database)- if err != nil {- return nil, err- }- results = append(results, sdlAdvice...)- }- default:- return nil, common.Errorf(common.Invalid, "invalid check statement type database type: %s", instance.Engine)+ results = append(results, sdlAdvice...)}-- return results, nil- }()- if err != nil {- results = append(results, &storepb.PlanCheckRunResult_Result{- Status: storepb.PlanCheckRunResult_Result_ERROR,- Title: "Failed to run statement type check",- Content: err.Error(),- Code: common.Internal.Int32(),- Report: nil,- })- } else {- results = append(results, stmtResults...)+ default:+ return nil, common.Errorf(common.Invalid, "invalid check statement type database type: %s", instance.Engine)}++ return results, nil+ }()+ if err != nil {+ results = append(results, &storepb.PlanCheckRunResult_Result{+ Status: storepb.PlanCheckRunResult_Result_ERROR,+ Title: "Failed to run statement type check",+ Content: err.Error(),+ Code: common.Internal.Int32(),+ Report: nil,+ })+ } else {+ results = append(results, stmtResults...)}}diff --git a/backend/store/database_group.go b/backend/store/database_group.goindex 26909e309b..585ebed220 100644--- a/backend/store/database_group.go+++ b/backend/store/database_group.go@@ -314,290 +314,3 @@ func (s *Store) CreateDatabaseGroup(ctx context.Context, creatorPrincipalID int,s.databaseGroupIDCache.Add(insertedDatabaseGroup.UID, &insertedDatabaseGroup)return &insertedDatabaseGroup, nil}--// SchemaGroupMessage is the message for schema groups.-type SchemaGroupMessage struct {- // Output only fields.- //- UID int64- CreatedTs int64- UpdatedTs int64- CreatorID int- UpdaterID int-- // Normal fields.- //- DatabaseGroupUID int64- ResourceID string- Placeholder string- Expression *expr.Expr-}--// FindSchemaGroupMessage is the message for finding schema group.-type FindSchemaGroupMessage struct {- DatabaseGroupUID *int64- ResourceID *string-}--// UpdateSchemaGroupMessage is the message for updating schema group.-type UpdateSchemaGroupMessage struct {- Placeholder *string- Expression *expr.Expr-}--// DeleteSchemaGroup deletes a schema group.-func (s *Store) DeleteSchemaGroup(ctx context.Context, schemaGroupUID int64) error {- query := `- DELETE- FROM schema_group- WHERE id = $1- RETURNING db_group_id, resource_id;- `- tx, err := s.db.BeginTx(ctx, nil)- if err != nil {- return errors.Wrapf(err, "failed to begin transaction")- }- defer tx.Rollback()- var databaseGroupUID int64- var resourceID string- if err := tx.QueryRowContext(ctx, query, schemaGroupUID).Scan(- &databaseGroupUID,- &resourceID,- ); err != nil {- return errors.Wrapf(err, "failed to scan")- }- if err := tx.Commit(); err != nil {- return errors.Wrapf(err, "failed to commit transaction")- }- s.schemaGroupCache.Remove(getSchemaGroupCacheKey(databaseGroupUID, resourceID))- return nil-}--// ListSchemaGroups lists schema groups.-func (s *Store) ListSchemaGroups(ctx context.Context, find *FindSchemaGroupMessage) ([]*SchemaGroupMessage, error) {- tx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})- if err != nil {- return nil, err- }- defer tx.Rollback()-- schemaGroups, err := s.listSchemaGroupsImpl(ctx, tx, find)- if err != nil {- return nil, errors.Wrapf(err, "failed to list schema groups")- }-- if err := tx.Commit(); err != nil {- return nil, errors.Wrapf(err, "failed to commit transaction")- }- for _, schemaGroup := range schemaGroups {- s.schemaGroupCache.Add(getSchemaGroupCacheKey(schemaGroup.DatabaseGroupUID, schemaGroup.ResourceID), schemaGroup)- }- return schemaGroups, nil-}--// GetSchemaGroup gets a schema group.-func (s *Store) GetSchemaGroup(ctx context.Context, find *FindSchemaGroupMessage) (*SchemaGroupMessage, error) {- if find.DatabaseGroupUID != nil && find.ResourceID != nil {- if v, ok := s.schemaGroupCache.Get(getSchemaGroupCacheKey(*find.DatabaseGroupUID, *find.ResourceID)); ok {- return v, nil- }- }- tx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})- if err != nil {- return nil, err- }- defer tx.Rollback()-- schemaGroups, err := s.listSchemaGroupsImpl(ctx, tx, find)- if err != nil {- return nil, errors.Wrapf(err, "failed to list schema groups")- }-- if err := tx.Commit(); err != nil {- return nil, errors.Wrapf(err, "failed to commit transaction")- }-- if len(schemaGroups) == 0 {- return nil, nil- }- if len(schemaGroups) > 1 {- return nil, errors.Errorf("found multiple schema groups")- }- s.schemaGroupCache.Add(getSchemaGroupCacheKey(schemaGroups[0].DatabaseGroupUID, schemaGroups[0].ResourceID), schemaGroups[0])- return schemaGroups[0], nil-}--func (*Store) listSchemaGroupsImpl(ctx context.Context, tx *Tx, find *FindSchemaGroupMessage) ([]*SchemaGroupMessage, error) {- where, args := []string{"TRUE"}, []any{}- if v := find.DatabaseGroupUID; v != nil {- where, args = append(where, fmt.Sprintf("db_group_id = $%d", len(args)+1)), append(args, *v)- }- if v := find.ResourceID; v != nil {- where, args = append(where, fmt.Sprintf("resource_id = $%d", len(args)+1)), append(args, *v)- }-- query := fmt.Sprintf(`SELECT- id,- created_ts,- updated_ts,- creator_id,- updater_id,- db_group_id,- resource_id,- placeholder,- expression- FROM schema_group WHERE %s ORDER BY id DESC;`, strings.Join(where, " AND "))-- var schemaGroups []*SchemaGroupMessage-- rows, err := tx.QueryContext(ctx, query, args...)- if err != nil {- return nil, errors.Wrapf(err, "failed to scan")- }- defer rows.Close()-- for rows.Next() {- var schemaGroup SchemaGroupMessage- var stringExpr string- if err := rows.Scan(- &schemaGroup.UID,- &schemaGroup.CreatedTs,- &schemaGroup.UpdatedTs,- &schemaGroup.CreatorID,- &schemaGroup.UpdaterID,- &schemaGroup.DatabaseGroupUID,- &schemaGroup.ResourceID,- &schemaGroup.Placeholder,- &stringExpr,- ); err != nil {- return nil, errors.Wrapf(err, "failed to scan")- }- var expression expr.Expr- if err := protojson.Unmarshal([]byte(stringExpr), &expression); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal expression")- }- schemaGroup.Expression = &expression- schemaGroups = append(schemaGroups, &schemaGroup)- }- if err := rows.Err(); err != nil {- return nil, errors.Wrapf(err, "failed to scan")- }- return schemaGroups, nil-}--// UpdateSchemaGroup updates a schema group.-func (s *Store) UpdateSchemaGroup(ctx context.Context, updaterPrincipalID int, schemaGroupUID int64, patch *UpdateSchemaGroupMessage) (*SchemaGroupMessage, error) {- set, args := []string{"updater_id = $1", "updated_ts = $2"}, []any{updaterPrincipalID, time.Now().Unix()}- if v := patch.Placeholder; v != nil {- set, args = append(set, fmt.Sprintf("placeholder = $%d", len(args)+1)), append(args, *v)- }- if v := patch.Expression; v != nil {- jsonExpr, err := protojson.Marshal(patch.Expression)- if err != nil {- return nil, errors.Wrapf(err, "failed to marshal expression")- }- set, args = append(set, fmt.Sprintf("expression = $%d", len(args)+1)), append(args, jsonExpr)- }- args = append(args, schemaGroupUID)- query := fmt.Sprintf(`- UPDATE schema_group SET- %s- WHERE id = $%d- RETURNING id, created_ts, updated_ts, creator_id, updater_id, db_group_id, resource_id, placeholder, expression;- `, strings.Join(set, ", "), len(args))-- tx, err := s.db.BeginTx(ctx, nil)- if err != nil {- return nil, errors.Wrapf(err, "failed to commit ")- }-- var updatedSchemaGroup SchemaGroupMessage- var stringExpr string- if err := tx.QueryRowContext(- ctx,- query,- args...,- ).Scan(- &updatedSchemaGroup.UID,- &updatedSchemaGroup.CreatedTs,- &updatedSchemaGroup.UpdatedTs,- &updatedSchemaGroup.CreatorID,- &updatedSchemaGroup.UpdaterID,- &updatedSchemaGroup.DatabaseGroupUID,- &updatedSchemaGroup.ResourceID,- &updatedSchemaGroup.Placeholder,- &stringExpr,- ); err != nil {- return nil, errors.Wrapf(err, "failed to scan")- }- if err := tx.Commit(); err != nil {- return nil, errors.Wrapf(err, "failed to commit transaction")- }- var expression expr.Expr- if err := protojson.Unmarshal([]byte(stringExpr), &expression); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal expression")- }- updatedSchemaGroup.Expression = &expression- s.schemaGroupCache.Add(getSchemaGroupCacheKey(updatedSchemaGroup.DatabaseGroupUID, updatedSchemaGroup.ResourceID), &updatedSchemaGroup)- return &updatedSchemaGroup, nil-}--// CreateSchemaGroup creates a schema group.-func (s *Store) CreateSchemaGroup(ctx context.Context, creatorPrincipalID int, schemaGroup *SchemaGroupMessage) (*SchemaGroupMessage, error) {- query := `- INSERT INTO schema_group (- creator_id,- updater_id,- db_group_id,- resource_id,- placeholder,- expression- ) VALUES ($1, $2, $3, $4, $5, $6)- RETURNING id, created_ts, updated_ts, creator_id, updater_id, db_group_id, resource_id, placeholder, expression;- `- jsonExpr, err := protojson.Marshal(schemaGroup.Expression)- if err != nil {- return nil, errors.Wrapf(err, "failed to marshal expression")- }-- tx, err := s.db.BeginTx(ctx, nil)- if err != nil {- return nil, errors.Wrapf(err, "failed to begin transaction")- }- defer tx.Rollback()-- var insertedSchemaGroup SchemaGroupMessage- var stringExpr string- if err := tx.QueryRowContext(- ctx,- query,- creatorPrincipalID,- creatorPrincipalID,- schemaGroup.DatabaseGroupUID,- schemaGroup.ResourceID,- schemaGroup.Placeholder,- jsonExpr,- ).Scan(- &insertedSchemaGroup.UID,- &insertedSchemaGroup.CreatedTs,- &insertedSchemaGroup.UpdatedTs,- &insertedSchemaGroup.CreatorID,- &insertedSchemaGroup.UpdaterID,- &insertedSchemaGroup.DatabaseGroupUID,- &insertedSchemaGroup.ResourceID,- &insertedSchemaGroup.Placeholder,- &stringExpr,- ); err != nil {- return nil, errors.Wrapf(err, "failed to scan")- }- if err := tx.Commit(); err != nil {- return nil, errors.Wrapf(err, "failed to commit transaction")- }- var expression expr.Expr- if err := protojson.Unmarshal([]byte(stringExpr), &expression); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal expression")- }- insertedSchemaGroup.Expression = &expression- s.schemaGroupCache.Add(getSchemaGroupCacheKey(insertedSchemaGroup.DatabaseGroupUID, insertedSchemaGroup.ResourceID), &insertedSchemaGroup)- return &insertedSchemaGroup, nil-}diff --git a/backend/store/store.go b/backend/store/store.goindex 0f0339c412..1933fde83f 100644--- a/backend/store/store.go+++ b/backend/store/store.go@@ -45,7 +45,6 @@ type Store struct {risksCache *lru.Cache[int, []*RiskMessage] // Use 0 as the key.databaseGroupCache *lru.Cache[string, *DatabaseGroupMessage]databaseGroupIDCache *lru.Cache[int64, *DatabaseGroupMessage]- schemaGroupCache *lru.Cache[string, *SchemaGroupMessage]vcsIDCache *lru.Cache[int, *VCSProviderMessage]rolesCache *lru.Cache[string, *RoleMessage]userGroupCache *lru.Cache[string, *UserGroupMessage]@@ -137,10 +136,6 @@ func New(db *DB, profile *config.Profile) (*Store, error) {if err != nil {return nil, err}- schemaGroupCache, err := lru.New[string, *SchemaGroupMessage](10)- if err != nil {- return nil, err- }vcsIDCache, err := lru.New[int, *VCSProviderMessage](1024)if err != nil {return nil, err@@ -187,7 +182,6 @@ func New(db *DB, profile *config.Profile) (*Store, error) {risksCache: risksCache,databaseGroupCache: databaseGroupCache,databaseGroupIDCache: databaseGroupIDCache,- schemaGroupCache: schemaGroupCache,vcsIDCache: vcsIDCache,rolesCache: rolesCache,sheetCache: sheetCache,@@ -217,10 +211,6 @@ func getDatabaseGroupCacheKey(projectUID int, databaseGroupResourceID string) streturn fmt.Sprintf("%d/%s", projectUID, databaseGroupResourceID)}-func getSchemaGroupCacheKey(databaseGroupUID int64, schemaGroupResourceID string) string {- return fmt.Sprintf("%d/%s", databaseGroupUID, schemaGroupResourceID)-}-func getPlaceholders(start int, count int) string {var placeholders []stringfor i := start; i < start+count; i++ {diff --git a/backend/tests/grouping_change_test.go b/backend/tests/grouping_change_test.goindex 32e0487346..0b765d8678 100644--- a/backend/tests/grouping_change_test.go+++ b/backend/tests/grouping_change_test.go@@ -2,22 +2,14 @@ package testsimport ("context"- "database/sql""fmt"- "strconv""strings""testing"- "github.com/google/uuid""github.com/stretchr/testify/require"- "golang.org/x/exp/slices""google.golang.org/genproto/googleapis/type/expr"- "github.com/bytebase/bytebase/backend/common"- "github.com/bytebase/bytebase/backend/plugin/db"- "github.com/bytebase/bytebase/backend/resources/mysql""github.com/bytebase/bytebase/backend/tests/fake"- storepb "github.com/bytebase/bytebase/proto/generated-go/store"v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")@@ -222,624 +214,3 @@ func TestCreateDatabaseGroup(t *testing.T) {})}}--// TestCreateTableGroup tests create table group and verify the grouping result.-// For each test case:-// 1. The test provides a number of sqlite instances equal to the number of prepareInstances, creates the specified matchedDatabase and the specified matchedTable and unmatchedTable.-// 2. The table group and database group is then created with the specified expr.-// 3. The results obtained are compared with the results given in prepareInstances and they should be consistent.-// NOTE, matched tables and unmatched tables are all in the matched database, so FOCUS THE UNMATCHED DATABASE IS MEANINGLESS IN THIS TEST(i.e. this test should not contains the unmatched databases in test case and logic).-func TestCreateTableGroup(t *testing.T) {- type tableNames struct {- matched []string- unmatched []string- }- type testCasePrepareInstance struct {- instanceTitle string- matchDatabasesNameTableName map[string]tableNames- }- testCases := []struct {- name string- databaseGroupPlaceholder string- databaseGroupExpr string- tableGroupPlaceholder string- tableGroupExpr string- prepareInstances []testCasePrepareInstance- }{- {- name: "all-matched-one-instance",- databaseGroupPlaceholder: "all-matched-one-instance",- databaseGroupExpr: `(resource.database_name.startsWith("employee_"))`,- tableGroupPlaceholder: `all-matched-one-instance-salary`,- tableGroupExpr: `(resource.table_name.startsWith("salary_"))`,- prepareInstances: []testCasePrepareInstance{- {- instanceTitle: "TestCreateDatabaseGroups_AllMatched_OneInstance",- matchDatabasesNameTableName: map[string]tableNames{- "employee_01": {- matched: []string{"salary_01", "salary_02"},- },- "employee_02": {- matched: []string{"salary_03", "salary_04"},- },- },- },- },- },- {- name: "partial-matched-one-instance",- databaseGroupPlaceholder: "partial-matched-one-instance",- databaseGroupExpr: `(resource.database_name.startsWith("employee_"))`,- tableGroupPlaceholder: `salary`,- tableGroupExpr: `(resource.table_name.startsWith("salary_"))`,- prepareInstances: []testCasePrepareInstance{- {- instanceTitle: "TestCreateDatabaseGroups_PartialMatched_OneInstance",- matchDatabasesNameTableName: map[string]tableNames{- "employee_01": {- matched: []string{"salary_01", "salary_02"},- unmatched: []string{"person_01", "person_02"},- },- "employee_02": {- matched: []string{"salary_03", "salary_04"},- unmatched: []string{"person_03", "person_04"},- },- "employee_03": {- unmatched: []string{"person_05", "person_06"},- },- },- },- },- },- {- name: "all-matched-many-instances",- databaseGroupPlaceholder: "all-matched-many-instances",- databaseGroupExpr: `(resource.database_name.startsWith("employee_"))`,- tableGroupPlaceholder: `salary`,- tableGroupExpr: `(resource.table_name.startsWith("salary_"))`,- prepareInstances: []testCasePrepareInstance{- {- instanceTitle: "TestCreateDatabaseGroups_AllMatched_ManyInstances_01",- matchDatabasesNameTableName: map[string]tableNames{- "employee_01": {- matched: []string{"salary_01", "salary_02"},- },- "employee_02": {- matched: []string{"salary_03", "salary_04"},- },- },- },- {- instanceTitle: "TestCreateDatabaseGroups_AllMatched_ManyInstances_02",- matchDatabasesNameTableName: map[string]tableNames{- "employee_03": {- matched: []string{"salary_05", "salary_06"},- },- "employee_04": {- matched: []string{"salary_07", "salary_08"},- },- "employee_05": {- matched: []string{"salary_09", "salary_10"},- },- },- },- },- },- {- name: "partial-matched-many-instances",- databaseGroupPlaceholder: "partial-matched-many-instances",- databaseGroupExpr: `(resource.database_name.startsWith("employee_"))`,- tableGroupPlaceholder: `salary`,- tableGroupExpr: `(resource.table_name.startsWith("salary_"))`,- prepareInstances: []testCasePrepareInstance{- {- instanceTitle: "TestCreateDatabaseGroups_PartialMatched_ManyInstances_01",- matchDatabasesNameTableName: map[string]tableNames{- "employee_01": {- matched: []string{"salary_01", "salary_02"},- unmatched: []string{"person_01", "person_02"},- },- "employee_02": {- matched: []string{"salary_03", "salary_04"},- unmatched: []string{"person_03", "person_04"},- },- },- },- {- instanceTitle: "TestCreateDatabaseGroups_PartialMatched_ManyInstances_02",- matchDatabasesNameTableName: map[string]tableNames{- "employee_03": {- matched: []string{"salary_05", "salary_06"},- unmatched: []string{"person_05", "person_06"},- },- "employee_04": {- matched: []string{"salary_07", "salary_08"},- unmatched: []string{"person_07", "person_08"},- },- "employee_05": {- matched: []string{"salary_09", "salary_10"},- unmatched: []string{"person_09", "person_10"},- },- "employee_06": {- unmatched: []string{"person_11", "person_12"},- },- },- },- },- },- }-- a := require.New(t)-- for _, tc := range testCases {- tc := tc- t.Run(tc.name, func(t *testing.T) {- t.Parallel()- ctl := &controller{}- ctx := context.Background()- ctx, err := ctl.StartServerWithExternalPg(ctx, &config{- dataDir: t.TempDir(),- vcsProviderCreator: fake.NewGitLab,- })- a.NoError(err)- defer func() {- _ = ctl.Close(ctx)- }()-- instanceResourceID2InstanceTitle := make(map[string]string)- for _, prepareInstance := range tc.prepareInstances {- instanceDir, err := ctl.provisionSQLiteInstance(t.TempDir(), t.Name())- a.NoError(err)- instanceResourceID := generateRandomString("instance", 10)- instance, err := ctl.instanceServiceClient.CreateInstance(ctx, &v1pb.CreateInstanceRequest{- InstanceId: instanceResourceID,- Instance: &v1pb.Instance{- Title: prepareInstance.instanceTitle,- Engine: v1pb.Engine_SQLITE,- Environment: "environments/prod",- DataSources: []*v1pb.DataSource{{Type: v1pb.DataSourceType_ADMIN, Host: instanceDir, Id: "admin"}},- Activation: true,- },- })- a.NoError(err)- instanceResourceID2InstanceTitle[instanceResourceID] = instance.Title- for preCreateDatabase := range prepareInstance.matchDatabasesNameTableName {- err = ctl.createDatabaseV2(ctx, ctl.project, instance, nil, preCreateDatabase, "", nil /* labelMap */)- a.NoError(err)- dbDriver, err := db.Open(ctx, storepb.Engine_SQLITE, db.DriverConfig{}, db.ConnectionConfig{- Host: instanceDir,- Database: preCreateDatabase,- })- a.NoError(err)-- for _, preCreateTable := range prepareInstance.matchDatabasesNameTableName[preCreateDatabase].matched {- _, err = dbDriver.Execute(ctx, fmt.Sprintf(`CREATE TABLE %s (id INT);`, preCreateTable), db.ExecuteOptions{})- a.NoError(err)- }- for _, preCreateTable := range prepareInstance.matchDatabasesNameTableName[preCreateDatabase].unmatched {- _, err = dbDriver.Execute(ctx, fmt.Sprintf(`CREATE TABLE %s (id INT);`, preCreateTable), db.ExecuteOptions{})- a.NoError(err)- }- err = dbDriver.Close(ctx)- a.NoError(err)-- _, err = ctl.databaseServiceClient.SyncDatabase(ctx, &v1pb.SyncDatabaseRequest{- Name: fmt.Sprintf("%s/databases/%s", instance.Name, preCreateDatabase),- })- a.NoError(err)- }- }- databaseGroup, err := ctl.projectServiceClient.CreateDatabaseGroup(ctx, &v1pb.CreateDatabaseGroupRequest{- Parent: ctl.project.Name,- DatabaseGroupId: tc.databaseGroupPlaceholder,- DatabaseGroup: &v1pb.DatabaseGroup{- DatabasePlaceholder: tc.databaseGroupPlaceholder,- DatabaseExpr: &expr.Expr{- Expression: fmt.Sprintf(`(resource.environment_name == "environments/prod" && (%s))`, tc.databaseGroupExpr),- },- },- })- a.NoError(err)- databaseGroup, err = ctl.projectServiceClient.GetDatabaseGroup(ctx, &v1pb.GetDatabaseGroupRequest{- Name: databaseGroup.Name,- View: v1pb.DatabaseGroupView_DATABASE_GROUP_VIEW_FULL,- })- a.NoError(err)-- gotInstanceTitleToMatchedDatabasesTables := make(map[string]map[string]*tableNames)-- tableGroup, err := ctl.projectServiceClient.CreateSchemaGroup(ctx, &v1pb.CreateSchemaGroupRequest{- Parent: databaseGroup.Name,- SchemaGroupId: tc.tableGroupPlaceholder,- SchemaGroup: &v1pb.SchemaGroup{- TableExpr: &expr.Expr{- Expression: tc.tableGroupExpr,- },- TablePlaceholder: tc.tableGroupPlaceholder,- },- })- a.NoError(err)- tableGroup, err = ctl.projectServiceClient.GetSchemaGroup(ctx, &v1pb.GetSchemaGroupRequest{- Name: tableGroup.Name,- View: v1pb.SchemaGroupView_SCHEMA_GROUP_VIEW_FULL,- })- a.NoError(err)- for _, matchedTable := range tableGroup.MatchedTables {- instanceResourceID := strings.Split(matchedTable.Database, "/")[1]- instanceTitle := instanceResourceID2InstanceTitle[instanceResourceID]- a.NotEmpty(instanceTitle)-- databaseName := strings.Split(matchedTable.Database, "/")[3]- tableName := matchedTable.Table- if _, ok := gotInstanceTitleToMatchedDatabasesTables[instanceTitle]; !ok {- gotInstanceTitleToMatchedDatabasesTables[instanceTitle] = make(map[string]*tableNames)- }- if _, ok := gotInstanceTitleToMatchedDatabasesTables[instanceTitle][databaseName]; !ok {- gotInstanceTitleToMatchedDatabasesTables[instanceTitle][databaseName] = &tableNames{}- }- gotInstanceTitleToMatchedDatabasesTables[instanceTitle][databaseName].matched = append(gotInstanceTitleToMatchedDatabasesTables[instanceTitle][databaseName].matched, tableName)- }- for _, unmatchedTable := range tableGroup.UnmatchedTables {- instanceResourceID := strings.Split(unmatchedTable.Database, "/")[1]- instanceTitle := instanceResourceID2InstanceTitle[instanceResourceID]- a.NotEmpty(instanceTitle)-- databaseName := strings.Split(unmatchedTable.Database, "/")[3]- tableName := unmatchedTable.Table- if _, ok := gotInstanceTitleToMatchedDatabasesTables[instanceTitle]; !ok {- gotInstanceTitleToMatchedDatabasesTables[instanceTitle] = make(map[string]*tableNames)- }- if _, ok := gotInstanceTitleToMatchedDatabasesTables[instanceTitle][databaseName]; !ok {- gotInstanceTitleToMatchedDatabasesTables[instanceTitle][databaseName] = &tableNames{}- }- gotInstanceTitleToMatchedDatabasesTables[instanceTitle][databaseName].unmatched = append(gotInstanceTitleToMatchedDatabasesTables[instanceTitle][databaseName].unmatched, tableName)- }-- for _, prepareInstance := range tc.prepareInstances {- gotMatchedDatabases := gotInstanceTitleToMatchedDatabasesTables[prepareInstance.instanceTitle]- a.Equal(len(gotMatchedDatabases), len(prepareInstance.matchDatabasesNameTableName))-- for wantMatchDatabaseName, wantTableNames := range prepareInstance.matchDatabasesNameTableName {- a.Contains(gotMatchedDatabases, wantMatchDatabaseName)- gotTableNames := gotMatchedDatabases[wantMatchDatabaseName]- a.Equal(len(wantTableNames.matched), len(gotTableNames.matched))- a.Equal(len(wantTableNames.unmatched), len(gotTableNames.unmatched))- for _, wantMatchTableName := range wantTableNames.matched {- a.Contains(gotTableNames.matched, wantMatchTableName)- }- for _, wantUnmatchedTableName := range wantTableNames.unmatched {- a.Contains(gotTableNames.unmatched, wantUnmatchedTableName)- }- }- }- })- }-}--func TestCreateGroupingChangeIssue(t *testing.T) {- type tableNames struct {- matched []string- unmatched []string- }- type testCasePrepareInstance struct {- instanceID string- matchDatabasesNameTableName map[string]tableNames- unmatchedDatabaseNameTableName map[string][]string- wantDatabaseTaskStatement map[string][]string- }- type tableGroupMetaData struct {- tableGroupPlaceholder string- tableGroupExpr string- }- testCases := []struct {- name string- databaseGroupPlaceholder string- databaseGroupExpr string- statement string- tableGroupsMetaData []tableGroupMetaData- prepareInstances []testCasePrepareInstance- }{- {- name: "simple statement",- databaseGroupPlaceholder: "employee",- databaseGroupExpr: `(resource.database_name.startsWith("employee_"))`,- statement: "ALTER TABLE salary ADD COLUMN num INT;",- tableGroupsMetaData: []tableGroupMetaData{- {- tableGroupPlaceholder: "salary",- tableGroupExpr: `(resource.table_name.startsWith("salary_"))`,- },- },- prepareInstances: []testCasePrepareInstance{- {- instanceID: "simplestatement",- matchDatabasesNameTableName: map[string]tableNames{- "employee_01": {- matched: []string{"salary_01", "salary_02"},- },- "employee_02": {- matched: []string{"salary_03", "salary_04"},- },- },- unmatchedDatabaseNameTableName: map[string][]string{- "blog": {"comments"},- },- wantDatabaseTaskStatement: map[string][]string{- "employee_01": {- "ALTER TABLE salary_01 ADD COLUMN num INT;\n",- "ALTER TABLE salary_02 ADD COLUMN num INT;\n",- },- "employee_02": {- "ALTER TABLE salary_03 ADD COLUMN num INT;\n",- "ALTER TABLE salary_04 ADD COLUMN num INT;\n",- },- },- },- },- },- {- name: "complex statement",- databaseGroupPlaceholder: "employee",- databaseGroupExpr: `(resource.database_name.startsWith("employee_"))`,- statement: `ALTER TABLE salary ADD COLUMN num INT;-CREATE INDEX salary_num_idx ON salary (num);-CREATE TABLE singleton(id INT);-ALTER TABLE person ADD COLUMN name VARCHAR(30);-ALTER TABLE partpartially ADD COLUMN num INT;-ALTER TABLE singleton ADD COLUMN num INT;`,- tableGroupsMetaData: []tableGroupMetaData{- {- tableGroupPlaceholder: "salary",- tableGroupExpr: `(resource.table_name.startsWith("salary_"))`,- },- {- tableGroupPlaceholder: "person",- tableGroupExpr: `(resource.table_name.startsWith("person_"))`,- },- {- tableGroupPlaceholder: "partpartially",- tableGroupExpr: `(resource.table_name.startsWith("part_partially_"))`,- },- },- prepareInstances: []testCasePrepareInstance{- {- instanceID: "complexstatement-instance01",- matchDatabasesNameTableName: map[string]tableNames{- "employee_01": {- matched: []string{"salary_01", "salary_02", "person_01", "person_02", "part_partially_01"},- },- "employee_02": {- matched: []string{"salary_03", "salary_04", "person_03", "person_04"},- },- },- unmatchedDatabaseNameTableName: map[string][]string{- "blog": {"comments", "article"},- },- wantDatabaseTaskStatement: map[string][]string{- "employee_01": {- "\nALTER TABLE part_partially_01 ADD COLUMN num INT;\n",- "\nALTER TABLE person_01 ADD COLUMN name VARCHAR(30);\n",- "\nALTER TABLE person_02 ADD COLUMN name VARCHAR(30);\n",- "\nALTER TABLE singleton ADD COLUMN num INT;\n",- "\nCREATE TABLE singleton(id INT);\n",- "ALTER TABLE salary_01 ADD COLUMN num INT;\n\nCREATE INDEX salary_01_num_idx ON salary_01 (num);\n",- "ALTER TABLE salary_02 ADD COLUMN num INT;\n\nCREATE INDEX salary_02_num_idx ON salary_02 (num);\n",- },- "employee_02": {- "\nALTER TABLE person_03 ADD COLUMN name VARCHAR(30);\n",- "\nALTER TABLE person_04 ADD COLUMN name VARCHAR(30);\n",- "\nALTER TABLE singleton ADD COLUMN num INT;\n",- "\nCREATE TABLE singleton(id INT);\n",- "ALTER TABLE salary_03 ADD COLUMN num INT;\n\nCREATE INDEX salary_03_num_idx ON salary_03 (num);\n",- "ALTER TABLE salary_04 ADD COLUMN num INT;\n\nCREATE INDEX salary_04_num_idx ON salary_04 (num);\n",- },- },- },- {- instanceID: "complexstatement-instance02",- matchDatabasesNameTableName: map[string]tableNames{- "employee_03": {- matched: []string{"salary_05", "salary_06", "person_05", "person_06"},- },- "employee_04": {- matched: []string{"salary_07", "salary_08", "person_07", "person_08", "part_partially_02"},- },- },- unmatchedDatabaseNameTableName: map[string][]string{- "blog": {"comments", "article"},- },- wantDatabaseTaskStatement: map[string][]string{- "employee_03": {- "\nALTER TABLE person_05 ADD COLUMN name VARCHAR(30);\n",- "\nALTER TABLE person_06 ADD COLUMN name VARCHAR(30);\n",- "\nALTER TABLE singleton ADD COLUMN num INT;\n",- "\nCREATE TABLE singleton(id INT);\n",- "ALTER TABLE salary_05 ADD COLUMN num INT;\n\nCREATE INDEX salary_05_num_idx ON salary_05 (num);\n",- "ALTER TABLE salary_06 ADD COLUMN num INT;\n\nCREATE INDEX salary_06_num_idx ON salary_06 (num);\n",- },- "employee_04": {- "\nALTER TABLE part_partially_02 ADD COLUMN num INT;\n",- "\nALTER TABLE person_07 ADD COLUMN name VARCHAR(30);\n",- "\nALTER TABLE person_08 ADD COLUMN name VARCHAR(30);\n",- "\nALTER TABLE singleton ADD COLUMN num INT;\n",- "\nCREATE TABLE singleton(id INT);\n",- "ALTER TABLE salary_07 ADD COLUMN num INT;\n\nCREATE INDEX salary_07_num_idx ON salary_07 (num);\n",- "ALTER TABLE salary_08 ADD COLUMN num INT;\n\nCREATE INDEX salary_08_num_idx ON salary_08 (num);\n",- },- },- },- },- },- }-- a := require.New(t)-- for _, tc := range testCases {- tc := tc- t.Run(tc.name, func(t *testing.T) {- t.Parallel()- ctl := &controller{}- ctx := context.Background()- ctx, err := ctl.StartServerWithExternalPg(ctx, &config{- dataDir: t.TempDir(),- vcsProviderCreator: fake.NewGitLab,- })- a.NoError(err)- defer func() {- _ = ctl.Close(ctx)- }()-- instanceResourceID2InstanceTitle := make(map[string]string)- var stopInstances []func()-- for _, prepareInstance := range tc.prepareInstances {- mysqlPort := getTestPort()- stopInstance := mysql.SetupTestInstance(t, mysqlPort, mysqlBinDir)- stopInstances = append(stopInstances, stopInstance)-- instance, err := ctl.instanceServiceClient.CreateInstance(ctx, &v1pb.CreateInstanceRequest{- InstanceId: prepareInstance.instanceID,- Instance: &v1pb.Instance{- Title: prepareInstance.instanceID,- Engine: v1pb.Engine_MYSQL,- Environment: "environments/prod",- DataSources: []*v1pb.DataSource{{Type: v1pb.DataSourceType_ADMIN, Host: "127.0.0.1", Port: strconv.Itoa(mysqlPort), Username: "root", Password: "", Id: "admin"}},- Activation: true,- },- })- a.NoError(err)- instanceResourceID2InstanceTitle[prepareInstance.instanceID] = instance.Title-- for preCreateDatabase := range prepareInstance.matchDatabasesNameTableName {- err = ctl.createDatabaseV2(ctx, ctl.project, instance, nil, preCreateDatabase, "", nil /* labelMap */)- a.NoError(err)- dbDriver, err := sql.Open("mysql", fmt.Sprintf("root@tcp(127.0.0.1:%d)/%s", mysqlPort, preCreateDatabase))- a.NoError(err)-- for _, preCreateTable := range prepareInstance.matchDatabasesNameTableName[preCreateDatabase].matched {- _, err = dbDriver.ExecContext(ctx, fmt.Sprintf(`CREATE TABLE %s (id INT);`, preCreateTable))- a.NoError(err)- }- for _, preCreateTable := range prepareInstance.matchDatabasesNameTableName[preCreateDatabase].unmatched {- _, err = dbDriver.ExecContext(ctx, fmt.Sprintf(`CREATE TABLE %s (id INT);`, preCreateTable))- a.NoError(err)- }- err = dbDriver.Close()- a.NoError(err)-- _, err = ctl.databaseServiceClient.SyncDatabase(ctx, &v1pb.SyncDatabaseRequest{- Name: fmt.Sprintf("%s/databases/%s", instance.Name, preCreateDatabase),- })- a.NoError(err)- }- for preCreateDatabase, preCreateTables := range prepareInstance.unmatchedDatabaseNameTableName {- err = ctl.createDatabaseV2(ctx, ctl.project, instance, nil, preCreateDatabase, "", nil /* labelMap */)- a.NoError(err)- dbDriver, err := sql.Open("mysql", fmt.Sprintf("root@tcp(127.0.0.1:%d)/%s", mysqlPort, preCreateDatabase))- a.NoError(err)-- for _, preCreateTable := range preCreateTables {- _, err = dbDriver.ExecContext(ctx, fmt.Sprintf(`CREATE TABLE %s (id INT);`, preCreateTable))- a.NoError(err)- }- err = dbDriver.Close()- a.NoError(err)-- _, err = ctl.databaseServiceClient.SyncDatabase(ctx, &v1pb.SyncDatabaseRequest{- Name: fmt.Sprintf("%s/databases/%s", instance.Name, preCreateDatabase),- })- a.NoError(err)- }- }-- defer func() {- for _, stopInstance := range stopInstances {- stopInstance()- }- }()-- databaseGroup, err := ctl.projectServiceClient.CreateDatabaseGroup(ctx, &v1pb.CreateDatabaseGroupRequest{- Parent: ctl.project.Name,- DatabaseGroupId: tc.databaseGroupPlaceholder,- DatabaseGroup: &v1pb.DatabaseGroup{- DatabasePlaceholder: tc.databaseGroupPlaceholder,- DatabaseExpr: &expr.Expr{- Expression: fmt.Sprintf(`(resource.environment_name == "environments/prod" && (%s))`, tc.databaseGroupExpr),- },- },- })- a.NoError(err)-- databaseGroup, err = ctl.projectServiceClient.GetDatabaseGroup(ctx, &v1pb.GetDatabaseGroupRequest{- Name: databaseGroup.Name,- View: v1pb.DatabaseGroupView_DATABASE_GROUP_VIEW_FULL,- })- a.NoError(err)-- for _, tableGroupMetaData := range tc.tableGroupsMetaData {- _, err := ctl.projectServiceClient.CreateSchemaGroup(ctx, &v1pb.CreateSchemaGroupRequest{- Parent: databaseGroup.Name,- SchemaGroupId: tableGroupMetaData.tableGroupPlaceholder,- SchemaGroup: &v1pb.SchemaGroup{- TableExpr: &expr.Expr{- Expression: tableGroupMetaData.tableGroupExpr,- },- TablePlaceholder: tableGroupMetaData.tableGroupPlaceholder,- },- })- a.NoError(err)- }-- sheet, err := ctl.sheetServiceClient.CreateSheet(ctx, &v1pb.CreateSheetRequest{- Parent: ctl.project.Name,- Sheet: &v1pb.Sheet{- Title: "migration statement sheet",- Content: []byte(tc.statement),- },- })- a.NoError(err)- _, rollout, _, err := ctl.changeDatabaseWithConfig(ctx, ctl.project, []*v1pb.Plan_Step{- {- Specs: []*v1pb.Plan_Spec{- {- Id: uuid.NewString(),- Config: &v1pb.Plan_Spec_ChangeDatabaseConfig{- ChangeDatabaseConfig: &v1pb.Plan_ChangeDatabaseConfig{- Target: databaseGroup.Name,- Sheet: sheet.Name,- Type: v1pb.Plan_ChangeDatabaseConfig_DATA,- },- },- },- },- },- })- a.NoError(err)-- gotDatabaseToTaskStatement := make(map[string][]string)- for _, task := range rollout.Stages[0].Tasks {- var sheetName string- switch task.Type {- case v1pb.Task_DATABASE_SCHEMA_UPDATE:- sheetName = task.GetDatabaseSchemaUpdate().Sheet- case v1pb.Task_DATABASE_DATA_UPDATE:- sheetName = task.GetDatabaseDataUpdate().Sheet- }- if sheetName != "" {- statementSheet, err := ctl.sheetServiceClient.GetSheet(ctx, &v1pb.GetSheetRequest{Name: sheetName})- a.NoError(err)- gotDatabaseToTaskStatement[task.Target] = append(gotDatabaseToTaskStatement[task.Target], string(statementSheet.Content))- }- }-- for _, prepareInstance := range tc.prepareInstances {- for wantDatabaseName, wantDatabaseStatements := range prepareInstance.wantDatabaseTaskStatement {- database := common.FormatDatabase(prepareInstance.instanceID, wantDatabaseName)- gotDatabaseStatements := gotDatabaseToTaskStatement[database]- slices.Sort(gotDatabaseStatements)- a.Equal(wantDatabaseStatements, gotDatabaseStatements)- }- }- })- }-}diff --git a/backend/utils/database_group.go b/backend/utils/database_group.goindex 5a9ce7a6d2..9ea550d814 100644--- a/backend/utils/database_group.go+++ b/backend/utils/database_group.go@@ -1,15 +1,8 @@package utilsimport (- "fmt"- "regexp"- "strings"-"github.com/pkg/errors"- "github.com/bytebase/bytebase/backend/common"- "github.com/bytebase/bytebase/backend/plugin/parser/base"- "github.com/bytebase/bytebase/backend/store"storepb "github.com/bytebase/bytebase/proto/generated-go/store")@@ -35,101 +28,3 @@ func ConvertDatabaseToParserEngineType(engine storepb.Engine) (storepb.Engine, e}return storepb.Engine_ENGINE_UNSPECIFIED, errors.Errorf("unsupported engine type %q", engine)}--// GetStatementsAndSchemaGroupsFromSchemaGroups takes in a statement template and a list of schema groups, returns a list of expanded(rendered) statements and schema group names.-func GetStatementsAndSchemaGroupsFromSchemaGroups(statement string, engine storepb.Engine, schemaGroupParent string, schemaGroups []*store.SchemaGroupMessage, schemaGroupMatchedTables map[string][]string) ([]string, []string, error) {- flush := func(emptyStatementBuilder *strings.Builder, statementBuilder *strings.Builder, schemaGroup *store.SchemaGroupMessage, matchedTables []string) ([]string, []string) {- if statementBuilder.Len() == 0 {- return nil, nil- }- var resultStatements, schemaGroupNames []string- if len(matchedTables) > 0 {- for _, tableName := range matchedTables {- statement := emptyStatementBuilder.String() +- strings.ReplaceAll(statementBuilder.String(), schemaGroup.Placeholder, tableName)- resultStatements = append(resultStatements, statement)- schemaGroupNames = append(schemaGroupNames, fmt.Sprintf("%s/%s%s", schemaGroupParent, common.SchemaGroupNamePrefix, schemaGroup.ResourceID))- }- } else {- statement := emptyStatementBuilder.String() + statementBuilder.String()- resultStatements = append(resultStatements, statement)- schemaGroupNames = append(schemaGroupNames, "")- }- emptyStatementBuilder.Reset()- statementBuilder.Reset()- return resultStatements, schemaGroupNames- }-- singleSQLs, err := base.SplitMultiSQL(engine, statement)- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to split sql")- }- if len(singleSQLs) == 0 {- return nil, nil, errors.Errorf("no sql statement found")- }-- var resultStatements, resultSchemaGroupNames []string- var emptyStatementBuilder, statementBuilder strings.Builder-- var preMatch, curMatch *store.SchemaGroupMessage- for _, singleSQL := range singleSQLs {- if singleSQL.Empty {- _, _ = emptyStatementBuilder.WriteString(singleSQL.Text)- continue- }- for _, schemaGroup := range schemaGroups {- re, err := regexp.Compile(`\b` + schemaGroup.Placeholder + `\b`)- if err != nil {- return nil, nil, errors.Wrapf(err, "failed to compile regexp")- }- if re.MatchString(singleSQL.Text) {- curMatch = schemaGroup- break- }- }-- // discard statement that matches the placeholder but has no matched tables- if curMatch != nil && len(schemaGroupMatchedTables[curMatch.ResourceID]) == 0 {- curMatch = nil- continue- }-- if preMatch == nil && curMatch != nil {- statements, schemaGroupNames := flush(&emptyStatementBuilder, &statementBuilder, nil, nil)- resultStatements = append(resultStatements, statements...)- resultSchemaGroupNames = append(resultSchemaGroupNames, schemaGroupNames...)- }- if preMatch != nil && curMatch == nil {- statements, schemaGroupNames := flush(&emptyStatementBuilder, &statementBuilder, preMatch, schemaGroupMatchedTables[preMatch.ResourceID])- resultStatements = append(resultStatements, statements...)- resultSchemaGroupNames = append(resultSchemaGroupNames, schemaGroupNames...)- }- if preMatch != nil && curMatch != nil && preMatch.ResourceID != curMatch.ResourceID {- statements, schemaGroupNames := flush(&emptyStatementBuilder, &statementBuilder, preMatch, schemaGroupMatchedTables[preMatch.ResourceID])- resultStatements = append(resultStatements, statements...)- resultSchemaGroupNames = append(resultSchemaGroupNames, schemaGroupNames...)- }-- _, _ = statementBuilder.WriteString(singleSQL.Text)- _, _ = statementBuilder.WriteString("\n")-- preMatch = curMatch- curMatch = nil- }-- if preMatch != nil {- statements, schemaGroupNames := flush(&emptyStatementBuilder, &statementBuilder, preMatch, schemaGroupMatchedTables[preMatch.ResourceID])- resultStatements = append(resultStatements, statements...)- resultSchemaGroupNames = append(resultSchemaGroupNames, schemaGroupNames...)- } else {- statements, schemaGroupNames := flush(&emptyStatementBuilder, &statementBuilder, nil, nil)- resultStatements = append(resultStatements, statements...)- resultSchemaGroupNames = append(resultSchemaGroupNames, schemaGroupNames...)- }-- if emptyStatementBuilder.Len() > 0 && len(resultStatements) > 0 {- resultStatements[len(resultStatements)-1] += emptyStatementBuilder.String()- }-- return resultStatements, resultSchemaGroupNames, nil-}diff --git a/backend/utils/utils.go b/backend/utils/utils.goindex 71c71fa10b..62b66ba9b9 100644--- a/backend/utils/utils.go+++ b/backend/utils/utils.go@@ -34,7 +34,6 @@ import ("github.com/bytebase/bytebase/backend/plugin/app/relay""github.com/bytebase/bytebase/backend/plugin/db""github.com/bytebase/bytebase/backend/store"- "github.com/bytebase/bytebase/backend/store/model"storepb "github.com/bytebase/bytebase/proto/generated-go/store"v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")@@ -693,42 +692,6 @@ func GetMatchedAndUnmatchedDatabasesInDatabaseGroup(ctx context.Context, databasreturn matches, unmatches, nil}-// GetMatchedAndUnmatchedTablesInSchemaGroup returns the matched and unmatched tables in the given schema group.-func GetMatchedAndUnmatchedTablesInSchemaGroup(ctx context.Context, dbSchema *model.DBSchema, schemaGroup *store.SchemaGroupMessage) ([]string, []string, error) {- prog, err := common.ValidateGroupCELExpr(schemaGroup.Expression.Expression)- if err != nil {- return nil, nil, err- }-- var matched []string- var unmatched []string-- for _, schema := range dbSchema.GetMetadata().Schemas {- for _, table := range schema.Tables {- res, _, err := prog.ContextEval(ctx, map[string]any{- "resource": map[string]any{- "table_name": table.Name,- },- })- if err != nil {- return nil, nil, status.Errorf(codes.Internal, err.Error())- }-- val, err := res.ConvertToNative(reflect.TypeOf(false))- if err != nil {- return nil, nil, status.Errorf(codes.Internal, "expect bool result")- }-- if boolVal, ok := val.(bool); ok && boolVal {- matched = append(matched, table.Name)- } else {- unmatched = append(unmatched, table.Name)- }- }- }- return matched, unmatched, nil-}-// GetUserIAMPolicyBindings return the valid bindings for the user.func GetUserIAMPolicyBindings(ctx context.Context, stores *store.Store, user *store.UserMessage, policy *storepb.ProjectIamPolicy) []*storepb.Binding {userIDFullName := common.FormatUserUID(user.ID)diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vueindex 2f04c3916a..ab3d61283d 100644--- a/frontend/src/components/QuickActionPanel.vue+++ b/frontend/src/components/QuickActionPanel.vue@@ -63,15 +63,9 @@<DatabaseGroupPanelv-if="project":show="- state.quickActionType === 'quickaction.bb.group.database-group.create' ||- state.quickActionType === 'quickaction.bb.group.table-group.create'- "- :project="project"- :resource-type="state.quickActionType === 'quickaction.bb.group.database-group.create'- ? 'DATABASE_GROUP'- : 'SCHEMA_GROUP'"+ :project="project"@close="state.quickActionType = undefined"@created="onDatabaseGroupCreated"/>@@ -289,13 +283,6 @@ const availableQuickActionList = computed((): QuickAction[] => {openDatabaseGroupDrawer("quickaction.bb.group.database-group.create"),icon: h(PlusIcon),},- {- type: "quickaction.bb.group.table-group.create",- title: t("database-group.table-group.create"),- action: () =>- openDatabaseGroupDrawer("quickaction.bb.group.table-group.create"),- icon: h(PlusIcon),- },{type: "quickaction.bb.database.schema.update",title: t("database.edit-schema"),diff --git a/frontend/src/layouts/ProjectV1Layout.vue b/frontend/src/layouts/ProjectV1Layout.vueindex 0b2fa8676f..548d4dd412 100644--- a/frontend/src/layouts/ProjectV1Layout.vue+++ b/frontend/src/layouts/ProjectV1Layout.vue@@ -128,7 +128,6 @@ const quickActionListForDatabaseGroup = computed((): QuickActionType[] => {"quickaction.bb.database.schema.update","quickaction.bb.database.data.update","quickaction.bb.group.database-group.create",- "quickaction.bb.group.table-group.create",];});diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 2b5bb44e80..64d7d275ab 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -3319,13 +3319,6 @@"edit": "Edit database group","matched-database": "Matched database","unmatched-database": "Unmatched database",- "matched-table": "Matched table",- "unmatched-table": "Unmatched table",- "table-group": {- "self": "Table group",- "create": "New table group",- "edit": "Edit table group"- },"condition": {"self": "Condition"},diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex bd7c8219d9..19fd5eac3c 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -3319,13 +3319,6 @@"edit": "Editar grupo de bases de datos","matched-database": "Base de datos coincidente","unmatched-database": "Base de datos no coincidente",- "matched-table": "Tabla coincidente",- "unmatched-table": "Tabla no coincidente",- "table-group": {- "self": "Grupo de tablas",- "create": "Crear grupo de tablas",- "edit": "Editar grupo de tablas"- },"condition": {"self": "Condición"},diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 4c6c3c17be..40ec436d7c 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -3319,13 +3319,6 @@"edit": "データベースグループの編集","matched-database": "マッチングデータベース","unmatched-database": "データベースが一致しません",- "matched-table": "マッチングテーブル",- "unmatched-table": "不一致のテーブル",- "table-group": {- "self": "テーブルのグループ化",- "create": "新しいテーブルグループを作成する",- "edit": "テーブルのグループ化を編集する"- },"condition": {"self": "状態"},diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 78c9c18b98..ae9dd3873b 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -3319,13 +3319,6 @@"edit": "编辑数据库分组","matched-database": "相匹配的数据库","unmatched-database": "不匹配的数据库",- "matched-table": "相匹配的表",- "unmatched-table": "不匹配的表",- "table-group": {- "self": "表分组",- "create": "新建表分组",- "edit": "编辑表分组"- },"condition": {"self": "条件"},diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex 3185d3cbac..f12b30a9e2 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -8,6 +8,11 @@ export const protobufPackage = "google.protobuf";export enum Edition {/** EDITION_UNKNOWN - A placeholder for an unknown edition value. */EDITION_UNKNOWN = "EDITION_UNKNOWN",+ /**+ * EDITION_LEGACY - A placeholder edition for specifying default behaviors *before* a feature+ * was first introduced. This is effectively an "infinite past".+ */+ EDITION_LEGACY = "EDITION_LEGACY",/*** EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like* distinct editions. These can't be used to specify the edition of proto@@ -22,6 +27,7 @@ export enum Edition {* comparison.*/EDITION_2023 = "EDITION_2023",+ EDITION_2024 = "EDITION_2024",/*** EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be* used or relyed on outside of tests.@@ -31,6 +37,12 @@ export enum Edition {EDITION_99997_TEST_ONLY = "EDITION_99997_TEST_ONLY",EDITION_99998_TEST_ONLY = "EDITION_99998_TEST_ONLY",EDITION_99999_TEST_ONLY = "EDITION_99999_TEST_ONLY",+ /**+ * EDITION_MAX - Placeholder for specifying unbounded edition support. This should only+ * ever be used by plugins that can expect to never require any changes to+ * support a new edition.+ */+ EDITION_MAX = "EDITION_MAX",UNRECOGNIZED = "UNRECOGNIZED",}@@ -39,6 +51,9 @@ export function editionFromJSON(object: any): Edition {case 0:case "EDITION_UNKNOWN":return Edition.EDITION_UNKNOWN;+ case 900:+ case "EDITION_LEGACY":+ return Edition.EDITION_LEGACY;case 998:case "EDITION_PROTO2":return Edition.EDITION_PROTO2;@@ -48,6 +63,9 @@ export function editionFromJSON(object: any): Edition {case 1000:case "EDITION_2023":return Edition.EDITION_2023;+ case 1001:+ case "EDITION_2024":+ return Edition.EDITION_2024;case 1:case "EDITION_1_TEST_ONLY":return Edition.EDITION_1_TEST_ONLY;@@ -63,6 +81,9 @@ export function editionFromJSON(object: any): Edition {case 99999:case "EDITION_99999_TEST_ONLY":return Edition.EDITION_99999_TEST_ONLY;+ case 2147483647:+ case "EDITION_MAX":+ return Edition.EDITION_MAX;case -1:case "UNRECOGNIZED":default:@@ -74,12 +95,16 @@ export function editionToJSON(object: Edition): string {switch (object) {case Edition.EDITION_UNKNOWN:return "EDITION_UNKNOWN";+ case Edition.EDITION_LEGACY:+ return "EDITION_LEGACY";case Edition.EDITION_PROTO2:return "EDITION_PROTO2";case Edition.EDITION_PROTO3:return "EDITION_PROTO3";case Edition.EDITION_2023:return "EDITION_2023";+ case Edition.EDITION_2024:+ return "EDITION_2024";case Edition.EDITION_1_TEST_ONLY:return "EDITION_1_TEST_ONLY";case Edition.EDITION_2_TEST_ONLY:@@ -90,6 +115,8 @@ export function editionToJSON(object: Edition): string {return "EDITION_99998_TEST_ONLY";case Edition.EDITION_99999_TEST_ONLY:return "EDITION_99999_TEST_ONLY";+ case Edition.EDITION_MAX:+ return "EDITION_MAX";case Edition.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -100,12 +127,16 @@ export function editionToNumber(object: Edition): number {switch (object) {case Edition.EDITION_UNKNOWN:return 0;+ case Edition.EDITION_LEGACY:+ return 900;case Edition.EDITION_PROTO2:return 998;case Edition.EDITION_PROTO3:return 999;case Edition.EDITION_2023:return 1000;+ case Edition.EDITION_2024:+ return 1001;case Edition.EDITION_1_TEST_ONLY:return 1;case Edition.EDITION_2_TEST_ONLY:@@ -116,6 +147,8 @@ export function editionToNumber(object: Edition): number {return 99998;case Edition.EDITION_99999_TEST_ONLY:return 99999;+ case Edition.EDITION_MAX:+ return 2147483647;case Edition.UNRECOGNIZED:default:return -1;@@ -357,12 +390,12 @@ export interface FieldDescriptorProto {* If true, this is a proto3 "optional". When a proto3 field is optional, it* tracks presence regardless of field type.*- * When proto3_optional is true, this field must be belong to a oneof to- * signal to old proto3 clients that presence is tracked for this field. This- * oneof is known as a "synthetic" oneof, and this field must be its sole- * member (each proto3 optional field gets its own synthetic oneof). Synthetic- * oneofs exist in the descriptor only, and do not generate any API. Synthetic- * oneofs must be ordered after all "real" oneofs.+ * When proto3_optional is true, this field must belong to a oneof to signal+ * to old proto3 clients that presence is tracked for this field. This oneof+ * is known as a "synthetic" oneof, and this field must be its sole member+ * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs+ * exist in the descriptor only, and do not generate any API. Synthetic oneofs+ * must be ordered after all "real" oneofs.** For message fields, proto3_optional doesn't create any semantic change,* since non-repeated message fields always track presence. However it still@@ -739,12 +772,16 @@ export interface FileOptions {*/javaGenerateEqualsAndHash: boolean;/**- * If set true, then the Java2 code generator will generate code that- * throws an exception whenever an attempt is made to assign a non-UTF-8- * byte sequence to a string field.- * Message reflection will do the same.- * However, an extension field still accepts non-UTF-8 byte sequences.- * This option has no effect on when used with the lite runtime.+ * A proto2 file can set this to true to opt in to UTF-8 checking for Java,+ * which will throw an exception if invalid UTF-8 is parsed from the wire or+ * assigned to a string field.+ *+ * TODO: clarify exactly what kinds of field types this option+ * applies to, and update these docs accordingly.+ *+ * Proto3 files already perform these checks. Setting the option explicitly to+ * false has no effect: it cannot be used to opt proto3 files out of UTF-8+ * checks.*/javaStringCheckUtf8: boolean;optimizeFor: FileOptions_OptimizeMode;@@ -771,7 +808,6 @@ export interface FileOptions {ccGenericServices: boolean;javaGenericServices: boolean;pyGenericServices: boolean;- phpGenericServices: boolean;/*** Is this file deprecated?* Depending on the target platform, this can emit Deprecated annotations@@ -925,10 +961,6 @@ export interface MessageOptions {*/deprecated: boolean;/**- * NOTE: Do not set the option in .proto files. Always use the maps syntax- * instead. The option should only be implicitly set by the proto compiler- * parser.- ** Whether the message is an automatically generated map entry type for the* maps field.*@@ -946,6 +978,10 @@ export interface MessageOptions {* use a native map in the target language to hold the keys and values.* The reflection APIs in such implementations still need to work as* if the field is a repeated message field.+ *+ * NOTE: Do not set the option in .proto files. Always use the maps syntax+ * instead. The option should only be implicitly set by the proto compiler+ * parser.*/mapEntry: boolean;/**@@ -1023,19 +1059,11 @@ export interface FieldOptions {* call from multiple threads concurrently, while non-const methods continue* to require exclusive access.*- * Note that implementations may choose not to check required fields within- * a lazy sub-message. That is, calling IsInitialized() on the outer message- * may return true even if the inner message has missing required fields.- * This is necessary because otherwise the inner message would have to be- * parsed in order to perform the check, defeating the purpose of lazy- * parsing. An implementation which chooses not to check required fields- * must be consistent about it. That is, for any particular sub-message, the- * implementation must either *always* check its required fields, or *never*- * check its required fields, regardless of whether or not the message has- * been parsed.- *- * As of May 2022, lazy verifies the contents of the byte stream during- * parsing. An invalid byte stream will cause the overall parsing to fail.+ * Note that lazy message fields are still eagerly verified to check+ * ill-formed wireformat or missing required fields. Calling IsInitialized()+ * on the outer message would fail if the inner message has missing required+ * fields. Failed verification would result in parsing failure (except when+ * uninitialized messages are acceptable).*/lazy: boolean;/**@@ -1062,8 +1090,9 @@ export interface FieldOptions {targets: FieldOptions_OptionTargetType[];editionDefaults: FieldOptions_EditionDefault[];/** Any features defined in the specific edition. */- features:- | FeatureSet+ features: FeatureSet | undefined;+ featureSupport:+ | FieldOptions_FeatureSupport| undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];@@ -1366,6 +1395,32 @@ export interface FieldOptions_EditionDefault {value: string;}+/** Information about the support window of a feature. */+export interface FieldOptions_FeatureSupport {+ /**+ * The edition that this feature was first available in. In editions+ * earlier than this one, the default assigned to EDITION_LEGACY will be+ * used, and proto files will not be able to override it.+ */+ editionIntroduced: Edition;+ /**+ * The edition this feature becomes deprecated in. Using this after this+ * edition may trigger warnings.+ */+ editionDeprecated: Edition;+ /**+ * The deprecation warning text if this feature is used after the edition it+ * was marked deprecated in.+ */+ deprecationWarning: string;+ /**+ * The edition this feature is no longer available in. In editions after+ * this one, the last default assigned will be used, and proto files will+ * not be able to override it.+ */+ editionRemoved: Edition;+}+export interface OneofOptions {/** Any features defined in the specific edition. */features:@@ -1425,6 +1480,10 @@ export interface EnumValueOptions {* credentials.*/debugRedact: boolean;+ /** Information about the support window of a feature value. */+ featureSupport:+ | FieldOptions_FeatureSupport+ | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1742,8 +1801,8 @@ export function featureSet_RepeatedFieldEncodingToNumber(object: FeatureSet_Repeexport enum FeatureSet_Utf8Validation {UTF8_VALIDATION_UNKNOWN = "UTF8_VALIDATION_UNKNOWN",- NONE = "NONE",VERIFY = "VERIFY",+ NONE = "NONE",UNRECOGNIZED = "UNRECOGNIZED",}@@ -1752,12 +1811,12 @@ export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Vcase 0:case "UTF8_VALIDATION_UNKNOWN":return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;- case 1:- case "NONE":- return FeatureSet_Utf8Validation.NONE;case 2:case "VERIFY":return FeatureSet_Utf8Validation.VERIFY;+ case 3:+ case "NONE":+ return FeatureSet_Utf8Validation.NONE;case -1:case "UNRECOGNIZED":default:@@ -1769,10 +1828,10 @@ export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validatioswitch (object) {case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:return "UTF8_VALIDATION_UNKNOWN";- case FeatureSet_Utf8Validation.NONE:- return "NONE";case FeatureSet_Utf8Validation.VERIFY:return "VERIFY";+ case FeatureSet_Utf8Validation.NONE:+ return "NONE";case FeatureSet_Utf8Validation.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -1783,10 +1842,10 @@ export function featureSet_Utf8ValidationToNumber(object: FeatureSet_Utf8Validatswitch (object) {case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:return 0;- case FeatureSet_Utf8Validation.NONE:- return 1;case FeatureSet_Utf8Validation.VERIFY:return 2;+ case FeatureSet_Utf8Validation.NONE:+ return 3;case FeatureSet_Utf8Validation.UNRECOGNIZED:default:return -1;@@ -1927,7 +1986,12 @@ export interface FeatureSetDefaults {*/export interface FeatureSetDefaults_FeatureSetEditionDefault {edition: Edition;- features: FeatureSet | undefined;+ /** Defaults of features that can be overridden in this edition. */+ overridableFeatures:+ | FeatureSet+ | undefined;+ /** Defaults of features that can't be overridden in this edition. */+ fixedFeatures: FeatureSet | undefined;}/**@@ -1989,7 +2053,7 @@ export interface SourceCodeInfo_Location {* location.** Each element is a field number or an index. They form a path from- * the root FileDescriptorProto to the place where the definition occurs.+ * the root FileDescriptorProto to the place where the definition appears.* For example, this path:* [ 4, 3, 2, 7, 1 ]* refers to:@@ -3987,7 +4051,6 @@ function createBaseFileOptions(): FileOptions {ccGenericServices: false,javaGenericServices: false,pyGenericServices: false,- phpGenericServices: false,deprecated: false,ccEnableArenas: false,objcClassPrefix: "",@@ -4034,9 +4097,6 @@ export const FileOptions = {if (message.pyGenericServices === true) {writer.uint32(144).bool(message.pyGenericServices);}- if (message.phpGenericServices === true) {- writer.uint32(336).bool(message.phpGenericServices);- }if (message.deprecated === true) {writer.uint32(184).bool(message.deprecated);}@@ -4150,13 +4210,6 @@ export const FileOptions = {message.pyGenericServices = reader.bool();continue;- case 42:- if (tag !== 336) {- break;- }-- message.phpGenericServices = reader.bool();- continue;case 23:if (tag !== 184) {break;@@ -4259,7 +4312,6 @@ export const FileOptions = {ccGenericServices: isSet(object.ccGenericServices) ? globalThis.Boolean(object.ccGenericServices) : false,javaGenericServices: isSet(object.javaGenericServices) ? globalThis.Boolean(object.javaGenericServices) : false,pyGenericServices: isSet(object.pyGenericServices) ? globalThis.Boolean(object.pyGenericServices) : false,- phpGenericServices: isSet(object.phpGenericServices) ? globalThis.Boolean(object.phpGenericServices) : false,deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,ccEnableArenas: isSet(object.ccEnableArenas) ? globalThis.Boolean(object.ccEnableArenas) : false,objcClassPrefix: isSet(object.objcClassPrefix) ? globalThis.String(object.objcClassPrefix) : "",@@ -4308,9 +4360,6 @@ export const FileOptions = {if (message.pyGenericServices === true) {obj.pyGenericServices = message.pyGenericServices;}- if (message.phpGenericServices === true) {- obj.phpGenericServices = message.phpGenericServices;- }if (message.deprecated === true) {obj.deprecated = message.deprecated;}@@ -4362,7 +4411,6 @@ export const FileOptions = {message.ccGenericServices = object.ccGenericServices ?? false;message.javaGenericServices = object.javaGenericServices ?? false;message.pyGenericServices = object.pyGenericServices ?? false;- message.phpGenericServices = object.phpGenericServices ?? false;message.deprecated = object.deprecated ?? false;message.ccEnableArenas = object.ccEnableArenas ?? false;message.objcClassPrefix = object.objcClassPrefix ?? "";@@ -4561,6 +4609,7 @@ function createBaseFieldOptions(): FieldOptions {targets: [],editionDefaults: [],features: undefined,+ featureSupport: undefined,uninterpretedOption: [],};}@@ -4605,6 +4654,9 @@ export const FieldOptions = {if (message.features !== undefined) {FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();}+ if (message.featureSupport !== undefined) {+ FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(178).fork()).ldelim();+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -4712,6 +4764,13 @@ export const FieldOptions = {message.features = FeatureSet.decode(reader, reader.uint32());continue;+ case 22:+ if (tag !== 178) {+ break;+ }++ message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());+ continue;case 999:if (tag !== 7994) {break;@@ -4748,6 +4807,9 @@ export const FieldOptions = {? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e)): [],features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,+ featureSupport: isSet(object.featureSupport)+ ? FieldOptions_FeatureSupport.fromJSON(object.featureSupport)+ : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4792,6 +4854,9 @@ export const FieldOptions = {if (message.features !== undefined) {obj.features = FeatureSet.toJSON(message.features);}+ if (message.featureSupport !== undefined) {+ obj.featureSupport = FieldOptions_FeatureSupport.toJSON(message.featureSupport);+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4817,6 +4882,9 @@ export const FieldOptions = {message.features = (object.features !== undefined && object.features !== null)? FeatureSet.fromPartial(object.features): undefined;+ message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)+ ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -4896,6 +4964,119 @@ export const FieldOptions_EditionDefault = {},};+function createBaseFieldOptions_FeatureSupport(): FieldOptions_FeatureSupport {+ return {+ editionIntroduced: Edition.EDITION_UNKNOWN,+ editionDeprecated: Edition.EDITION_UNKNOWN,+ deprecationWarning: "",+ editionRemoved: Edition.EDITION_UNKNOWN,+ };+}++export const FieldOptions_FeatureSupport = {+ encode(message: FieldOptions_FeatureSupport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.editionIntroduced !== Edition.EDITION_UNKNOWN) {+ writer.uint32(8).int32(editionToNumber(message.editionIntroduced));+ }+ if (message.editionDeprecated !== Edition.EDITION_UNKNOWN) {+ writer.uint32(16).int32(editionToNumber(message.editionDeprecated));+ }+ if (message.deprecationWarning !== "") {+ writer.uint32(26).string(message.deprecationWarning);+ }+ if (message.editionRemoved !== Edition.EDITION_UNKNOWN) {+ writer.uint32(32).int32(editionToNumber(message.editionRemoved));+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_FeatureSupport {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseFieldOptions_FeatureSupport();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.editionIntroduced = editionFromJSON(reader.int32());+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.editionDeprecated = editionFromJSON(reader.int32());+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.deprecationWarning = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.editionRemoved = editionFromJSON(reader.int32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): FieldOptions_FeatureSupport {+ return {+ editionIntroduced: isSet(object.editionIntroduced)+ ? editionFromJSON(object.editionIntroduced)+ : Edition.EDITION_UNKNOWN,+ editionDeprecated: isSet(object.editionDeprecated)+ ? editionFromJSON(object.editionDeprecated)+ : Edition.EDITION_UNKNOWN,+ deprecationWarning: isSet(object.deprecationWarning) ? globalThis.String(object.deprecationWarning) : "",+ editionRemoved: isSet(object.editionRemoved) ? editionFromJSON(object.editionRemoved) : Edition.EDITION_UNKNOWN,+ };+ },++ toJSON(message: FieldOptions_FeatureSupport): unknown {+ const obj: any = {};+ if (message.editionIntroduced !== Edition.EDITION_UNKNOWN) {+ obj.editionIntroduced = editionToJSON(message.editionIntroduced);+ }+ if (message.editionDeprecated !== Edition.EDITION_UNKNOWN) {+ obj.editionDeprecated = editionToJSON(message.editionDeprecated);+ }+ if (message.deprecationWarning !== "") {+ obj.deprecationWarning = message.deprecationWarning;+ }+ if (message.editionRemoved !== Edition.EDITION_UNKNOWN) {+ obj.editionRemoved = editionToJSON(message.editionRemoved);+ }+ return obj;+ },++ create(base?: DeepPartial<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {+ return FieldOptions_FeatureSupport.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {+ const message = createBaseFieldOptions_FeatureSupport();+ message.editionIntroduced = object.editionIntroduced ?? Edition.EDITION_UNKNOWN;+ message.editionDeprecated = object.editionDeprecated ?? Edition.EDITION_UNKNOWN;+ message.deprecationWarning = object.deprecationWarning ?? "";+ message.editionRemoved = object.editionRemoved ?? Edition.EDITION_UNKNOWN;+ return message;+ },+};+function createBaseOneofOptions(): OneofOptions {return { features: undefined, uninterpretedOption: [] };}@@ -5106,7 +5287,13 @@ export const EnumOptions = {};function createBaseEnumValueOptions(): EnumValueOptions {- return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };+ return {+ deprecated: false,+ features: undefined,+ debugRedact: false,+ featureSupport: undefined,+ uninterpretedOption: [],+ };}export const EnumValueOptions = {@@ -5120,6 +5307,9 @@ export const EnumValueOptions = {if (message.debugRedact === true) {writer.uint32(24).bool(message.debugRedact);}+ if (message.featureSupport !== undefined) {+ FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(34).fork()).ldelim();+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -5154,6 +5344,13 @@ export const EnumValueOptions = {message.debugRedact = reader.bool();continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());+ continue;case 999:if (tag !== 7994) {break;@@ -5175,6 +5372,9 @@ export const EnumValueOptions = {deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,+ featureSupport: isSet(object.featureSupport)+ ? FieldOptions_FeatureSupport.fromJSON(object.featureSupport)+ : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -5192,6 +5392,9 @@ export const EnumValueOptions = {if (message.debugRedact === true) {obj.debugRedact = message.debugRedact;}+ if (message.featureSupport !== undefined) {+ obj.featureSupport = FieldOptions_FeatureSupport.toJSON(message.featureSupport);+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -5208,6 +5411,9 @@ export const EnumValueOptions = {? FeatureSet.fromPartial(object.features): undefined;message.debugRedact = object.debugRedact ?? false;+ message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)+ ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -5904,7 +6110,7 @@ export const FeatureSetDefaults = {};function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {- return { edition: Edition.EDITION_UNKNOWN, features: undefined };+ return { edition: Edition.EDITION_UNKNOWN, overridableFeatures: undefined, fixedFeatures: undefined };}export const FeatureSetDefaults_FeatureSetEditionDefault = {@@ -5912,8 +6118,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {if (message.edition !== Edition.EDITION_UNKNOWN) {writer.uint32(24).int32(editionToNumber(message.edition));}- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();+ if (message.overridableFeatures !== undefined) {+ FeatureSet.encode(message.overridableFeatures, writer.uint32(34).fork()).ldelim();+ }+ if (message.fixedFeatures !== undefined) {+ FeatureSet.encode(message.fixedFeatures, writer.uint32(42).fork()).ldelim();}return writer;},@@ -5932,12 +6141,19 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {message.edition = editionFromJSON(reader.int32());continue;- case 2:- if (tag !== 18) {+ case 4:+ if (tag !== 34) {break;}- message.features = FeatureSet.decode(reader, reader.uint32());+ message.overridableFeatures = FeatureSet.decode(reader, reader.uint32());+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.fixedFeatures = FeatureSet.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -5951,7 +6167,10 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {return {edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,+ overridableFeatures: isSet(object.overridableFeatures)+ ? FeatureSet.fromJSON(object.overridableFeatures)+ : undefined,+ fixedFeatures: isSet(object.fixedFeatures) ? FeatureSet.fromJSON(object.fixedFeatures) : undefined,};},@@ -5960,8 +6179,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {if (message.edition !== Edition.EDITION_UNKNOWN) {obj.edition = editionToJSON(message.edition);}- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);+ if (message.overridableFeatures !== undefined) {+ obj.overridableFeatures = FeatureSet.toJSON(message.overridableFeatures);+ }+ if (message.fixedFeatures !== undefined) {+ obj.fixedFeatures = FeatureSet.toJSON(message.fixedFeatures);}return obj;},@@ -5974,8 +6196,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {): FeatureSetDefaults_FeatureSetEditionDefault {const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();message.edition = object.edition ?? Edition.EDITION_UNKNOWN;- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)+ message.overridableFeatures = (object.overridableFeatures !== undefined && object.overridableFeatures !== null)+ ? FeatureSet.fromPartial(object.overridableFeatures)+ : undefined;+ message.fixedFeatures = (object.fixedFeatures !== undefined && object.fixedFeatures !== null)+ ? FeatureSet.fromPartial(object.fixedFeatures): undefined;return message;},diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.tsindex 27a5e2a630..fafe3e3c35 100644--- a/frontend/src/types/proto/v1/project_service.ts+++ b/frontend/src/types/proto/v1/project_service.ts@@ -239,65 +239,6 @@ export function databaseGroupViewToNumber(object: DatabaseGroupView): number {}}-export enum SchemaGroupView {- /**- * SCHEMA_GROUP_VIEW_UNSPECIFIED - The default / unset value.- * The API will default to the BASIC view.- */- SCHEMA_GROUP_VIEW_UNSPECIFIED = "SCHEMA_GROUP_VIEW_UNSPECIFIED",- /** SCHEMA_GROUP_VIEW_BASIC - Include basic information about the schema group, but exclude the list of matched tables and unmatched tables. */- SCHEMA_GROUP_VIEW_BASIC = "SCHEMA_GROUP_VIEW_BASIC",- /** SCHEMA_GROUP_VIEW_FULL - Include everything. */- SCHEMA_GROUP_VIEW_FULL = "SCHEMA_GROUP_VIEW_FULL",- UNRECOGNIZED = "UNRECOGNIZED",-}--export function schemaGroupViewFromJSON(object: any): SchemaGroupView {- switch (object) {- case 0:- case "SCHEMA_GROUP_VIEW_UNSPECIFIED":- return SchemaGroupView.SCHEMA_GROUP_VIEW_UNSPECIFIED;- case 1:- case "SCHEMA_GROUP_VIEW_BASIC":- return SchemaGroupView.SCHEMA_GROUP_VIEW_BASIC;- case 2:- case "SCHEMA_GROUP_VIEW_FULL":- return SchemaGroupView.SCHEMA_GROUP_VIEW_FULL;- case -1:- case "UNRECOGNIZED":- default:- return SchemaGroupView.UNRECOGNIZED;- }-}--export function schemaGroupViewToJSON(object: SchemaGroupView): string {- switch (object) {- case SchemaGroupView.SCHEMA_GROUP_VIEW_UNSPECIFIED:- return "SCHEMA_GROUP_VIEW_UNSPECIFIED";- case SchemaGroupView.SCHEMA_GROUP_VIEW_BASIC:- return "SCHEMA_GROUP_VIEW_BASIC";- case SchemaGroupView.SCHEMA_GROUP_VIEW_FULL:- return "SCHEMA_GROUP_VIEW_FULL";- case SchemaGroupView.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export function schemaGroupViewToNumber(object: SchemaGroupView): number {- switch (object) {- case SchemaGroupView.SCHEMA_GROUP_VIEW_UNSPECIFIED:- return 0;- case SchemaGroupView.SCHEMA_GROUP_VIEW_BASIC:- return 1;- case SchemaGroupView.SCHEMA_GROUP_VIEW_FULL:- return 2;- case SchemaGroupView.UNRECOGNIZED:- default:- return -1;- }-}-export interface GetProjectRequest {/*** The name of the project to retrieve.@@ -1029,132 +970,6 @@ export interface DatabaseGroup_Database {name: string;}-export interface CreateSchemaGroupRequest {- /**- * The parent resource where this schema group will be created.- * Format: projects/{project}/databaseGroups/{databaseGroup}- */- parent: string;- /** The schema group to create. */- schemaGroup:- | SchemaGroup- | undefined;- /**- * The ID to use for the schema group, which will become the final component of- * the schema group's resource name.- *- * This value should be 4-63 characters, and valid characters- * are /[a-z][0-9]-/.- */- schemaGroupId: string;- /** If set, validate the create request and preview the full schema group response, but do not actually create it. */- validateOnly: boolean;-}--export interface UpdateSchemaGroupRequest {- /**- * The schema group to update.- *- * The schema group's `name` field is used to identify the schema group to update.- * Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- */- schemaGroup:- | SchemaGroup- | undefined;- /** The list of fields to update. */- updateMask: string[] | undefined;-}--export interface DeleteSchemaGroupRequest {- /**- * The name of the schema group to delete.- * Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- */- name: string;-}--export interface ListSchemaGroupsRequest {- /**- * The parent resource whose schema groups are to be listed.- * Format: projects/{project}/schemaGroups/{schemaGroup}- */- parent: string;- /**- * 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.- */- pageSize: number;- /**- * Not used. A page token, received from a previous `ListSchemaGroups` call.- * Provide this to retrieve the subsequent page.- *- * When paginating, all other parameters provided to `ListSchemaGroups` must match- * the call that provided the page token.- */- pageToken: string;-}--export interface ListSchemaGroupsResponse {- /** schema_groups is the list of schema groups. */- schemaGroups: SchemaGroup[];- /**- * 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 GetSchemaGroupRequest {- /**- * The name of the database group to retrieve.- * Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- */- name: string;- /** The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC. */- view: SchemaGroupView;-}--export interface SchemaGroup {- /**- * The name of the schema group.- * Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- */- name: string;- /**- * The table condition that is associated with this schema group.- * The table_placeholder in the sheet script will be rendered to the actual table name.- */- tableExpr:- | Expr- | undefined;- /**- * The table placeholder used for rendering. For example, if set to "tbl", all the table name- * "tbl" in the SQL script will be rendered to the actual table name.- */- tablePlaceholder: string;- /** The list of databases that match the database group condition. */- matchedTables: SchemaGroup_Table[];- /** The list of databases that match the database group condition. */- unmatchedTables: SchemaGroup_Table[];-}--/**- * In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.- * Its keyword will be {{SCHEMA}}.- * All the expressions will be used to filter the schema objects in DatabaseSchema.- */-export interface SchemaGroup_Table {- /**- * The resource name of the database.- * Format: instances/{instance}/databases/{database}- */- database: string;- schema: string;- table: string;-}-export interface GetProjectProtectionRulesRequest {/*** The name of the protection rules.@@ -4324,31 +4139,22 @@ export const DatabaseGroup_Database = {},};-function createBaseCreateSchemaGroupRequest(): CreateSchemaGroupRequest {- return { parent: "", schemaGroup: undefined, schemaGroupId: "", validateOnly: false };+function createBaseGetProjectProtectionRulesRequest(): GetProjectProtectionRulesRequest {+ return { name: "" };}-export const CreateSchemaGroupRequest = {- encode(message: CreateSchemaGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.schemaGroup !== undefined) {- SchemaGroup.encode(message.schemaGroup, writer.uint32(18).fork()).ldelim();- }- if (message.schemaGroupId !== "") {- writer.uint32(26).string(message.schemaGroupId);- }- if (message.validateOnly === true) {- writer.uint32(32).bool(message.validateOnly);+export const GetProjectProtectionRulesRequest = {+ encode(message: GetProjectProtectionRulesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): CreateSchemaGroupRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): GetProjectProtectionRulesRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseCreateSchemaGroupRequest();+ const message = createBaseGetProjectProtectionRulesRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4357,28 +4163,7 @@ export const CreateSchemaGroupRequest = {break;}- message.parent = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.schemaGroup = SchemaGroup.decode(reader, reader.uint32());- continue;- case 3:- if (tag !== 26) {- break;- }-- message.schemaGroupId = reader.string();- continue;- case 4:- if (tag !== 32) {- break;- }-- message.validateOnly = reader.bool();+ message.name = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4389,82 +4174,53 @@ export const CreateSchemaGroupRequest = {return message;},- fromJSON(object: any): CreateSchemaGroupRequest {- return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- schemaGroup: isSet(object.schemaGroup) ? SchemaGroup.fromJSON(object.schemaGroup) : undefined,- schemaGroupId: isSet(object.schemaGroupId) ? globalThis.String(object.schemaGroupId) : "",- validateOnly: isSet(object.validateOnly) ? globalThis.Boolean(object.validateOnly) : false,- };+ fromJSON(object: any): GetProjectProtectionRulesRequest {+ return { name: isSet(object.name) ? globalThis.String(object.name) : "" };},- toJSON(message: CreateSchemaGroupRequest): unknown {+ toJSON(message: GetProjectProtectionRulesRequest): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.schemaGroup !== undefined) {- obj.schemaGroup = SchemaGroup.toJSON(message.schemaGroup);- }- if (message.schemaGroupId !== "") {- obj.schemaGroupId = message.schemaGroupId;- }- if (message.validateOnly === true) {- obj.validateOnly = message.validateOnly;+ if (message.name !== "") {+ obj.name = message.name;}return obj;},- create(base?: DeepPartial<CreateSchemaGroupRequest>): CreateSchemaGroupRequest {- return CreateSchemaGroupRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<GetProjectProtectionRulesRequest>): GetProjectProtectionRulesRequest {+ return GetProjectProtectionRulesRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<CreateSchemaGroupRequest>): CreateSchemaGroupRequest {- const message = createBaseCreateSchemaGroupRequest();- message.parent = object.parent ?? "";- message.schemaGroup = (object.schemaGroup !== undefined && object.schemaGroup !== null)- ? SchemaGroup.fromPartial(object.schemaGroup)- : undefined;- message.schemaGroupId = object.schemaGroupId ?? "";- message.validateOnly = object.validateOnly ?? false;+ fromPartial(object: DeepPartial<GetProjectProtectionRulesRequest>): GetProjectProtectionRulesRequest {+ const message = createBaseGetProjectProtectionRulesRequest();+ message.name = object.name ?? "";return message;},};-function createBaseUpdateSchemaGroupRequest(): UpdateSchemaGroupRequest {- return { schemaGroup: undefined, updateMask: undefined };+function createBaseUpdateProjectProtectionRulesRequest(): UpdateProjectProtectionRulesRequest {+ return { protectionRules: undefined };}-export const UpdateSchemaGroupRequest = {- encode(message: UpdateSchemaGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.schemaGroup !== undefined) {- SchemaGroup.encode(message.schemaGroup, writer.uint32(10).fork()).ldelim();- }- if (message.updateMask !== undefined) {- FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).ldelim();+export const UpdateProjectProtectionRulesRequest = {+ encode(message: UpdateProjectProtectionRulesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.protectionRules !== undefined) {+ ProtectionRules.encode(message.protectionRules, writer.uint32(18).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): UpdateSchemaGroupRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateProjectProtectionRulesRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdateSchemaGroupRequest();+ const message = createBaseUpdateProjectProtectionRulesRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.schemaGroup = SchemaGroup.decode(reader, reader.uint32());- continue;case 2:if (tag !== 18) {break;}- message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));+ message.protectionRules = ProtectionRules.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4475,53 +4231,51 @@ export const UpdateSchemaGroupRequest = {return message;},- fromJSON(object: any): UpdateSchemaGroupRequest {+ fromJSON(object: any): UpdateProjectProtectionRulesRequest {return {- schemaGroup: isSet(object.schemaGroup) ? SchemaGroup.fromJSON(object.schemaGroup) : undefined,- updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,+ protectionRules: isSet(object.protectionRules) ? ProtectionRules.fromJSON(object.protectionRules) : undefined,};},- toJSON(message: UpdateSchemaGroupRequest): unknown {+ toJSON(message: UpdateProjectProtectionRulesRequest): unknown {const obj: any = {};- if (message.schemaGroup !== undefined) {- obj.schemaGroup = SchemaGroup.toJSON(message.schemaGroup);- }- if (message.updateMask !== undefined) {- obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask));+ if (message.protectionRules !== undefined) {+ obj.protectionRules = ProtectionRules.toJSON(message.protectionRules);}return obj;},- create(base?: DeepPartial<UpdateSchemaGroupRequest>): UpdateSchemaGroupRequest {- return UpdateSchemaGroupRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<UpdateProjectProtectionRulesRequest>): UpdateProjectProtectionRulesRequest {+ return UpdateProjectProtectionRulesRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<UpdateSchemaGroupRequest>): UpdateSchemaGroupRequest {- const message = createBaseUpdateSchemaGroupRequest();- message.schemaGroup = (object.schemaGroup !== undefined && object.schemaGroup !== null)- ? SchemaGroup.fromPartial(object.schemaGroup)+ fromPartial(object: DeepPartial<UpdateProjectProtectionRulesRequest>): UpdateProjectProtectionRulesRequest {+ const message = createBaseUpdateProjectProtectionRulesRequest();+ message.protectionRules = (object.protectionRules !== undefined && object.protectionRules !== null)+ ? ProtectionRules.fromPartial(object.protectionRules): undefined;- message.updateMask = object.updateMask ?? undefined;return message;},};-function createBaseDeleteSchemaGroupRequest(): DeleteSchemaGroupRequest {- return { name: "" };+function createBaseProtectionRules(): ProtectionRules {+ return { name: "", rules: [] };}-export const DeleteSchemaGroupRequest = {- encode(message: DeleteSchemaGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const ProtectionRules = {+ encode(message: ProtectionRules, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}+ for (const v of message.rules) {+ ProtectionRule.encode(v!, writer.uint32(18).fork()).ldelim();+ }return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): DeleteSchemaGroupRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): ProtectionRules {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDeleteSchemaGroupRequest();+ const message = createBaseProtectionRules();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4532,6 +4286,13 @@ export const DeleteSchemaGroupRequest = {message.name = reader.string();continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.rules.push(ProtectionRule.decode(reader, reader.uint32()));+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -4541,212 +4302,69 @@ export const DeleteSchemaGroupRequest = {return message;},- fromJSON(object: any): DeleteSchemaGroupRequest {- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };+ fromJSON(object: any): ProtectionRules {+ return {+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ rules: globalThis.Array.isArray(object?.rules) ? object.rules.map((e: any) => ProtectionRule.fromJSON(e)) : [],+ };},- toJSON(message: DeleteSchemaGroupRequest): unknown {+ toJSON(message: ProtectionRules): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}+ if (message.rules?.length) {+ obj.rules = message.rules.map((e) => ProtectionRule.toJSON(e));+ }return obj;},- create(base?: DeepPartial<DeleteSchemaGroupRequest>): DeleteSchemaGroupRequest {- return DeleteSchemaGroupRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<ProtectionRules>): ProtectionRules {+ return ProtectionRules.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<DeleteSchemaGroupRequest>): DeleteSchemaGroupRequest {- const message = createBaseDeleteSchemaGroupRequest();+ fromPartial(object: DeepPartial<ProtectionRules>): ProtectionRules {+ const message = createBaseProtectionRules();message.name = object.name ?? "";+ message.rules = object.rules?.map((e) => ProtectionRule.fromPartial(e)) || [];return message;},};-function createBaseListSchemaGroupsRequest(): ListSchemaGroupsRequest {- return { parent: "", pageSize: 0, pageToken: "" };+function createBaseProtectionRule(): ProtectionRule {+ return {+ id: "",+ target: ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED,+ nameFilter: "",+ allowedRoles: [],+ branchSource: ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED,+ };}-export const ListSchemaGroupsRequest = {- encode(message: ListSchemaGroupsRequest, 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 ProtectionRule = {+ encode(message: ProtectionRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.id !== "") {+ writer.uint32(10).string(message.id);}- if (message.pageToken !== "") {- writer.uint32(26).string(message.pageToken);+ if (message.target !== ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED) {+ writer.uint32(16).int32(protectionRule_TargetToNumber(message.target));}- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ListSchemaGroupsRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListSchemaGroupsRequest();- 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.pageSize = reader.int32();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.pageToken = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): ListSchemaGroupsRequest {- 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) : "",- };- },-- toJSON(message: ListSchemaGroupsRequest): unknown {- const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.pageSize !== 0) {- obj.pageSize = Math.round(message.pageSize);- }- if (message.pageToken !== "") {- obj.pageToken = message.pageToken;- }- return obj;- },-- create(base?: DeepPartial<ListSchemaGroupsRequest>): ListSchemaGroupsRequest {- return ListSchemaGroupsRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ListSchemaGroupsRequest>): ListSchemaGroupsRequest {- const message = createBaseListSchemaGroupsRequest();- message.parent = object.parent ?? "";- message.pageSize = object.pageSize ?? 0;- message.pageToken = object.pageToken ?? "";- return message;- },-};--function createBaseListSchemaGroupsResponse(): ListSchemaGroupsResponse {- return { schemaGroups: [], nextPageToken: "" };-}--export const ListSchemaGroupsResponse = {- encode(message: ListSchemaGroupsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.schemaGroups) {- SchemaGroup.encode(v!, writer.uint32(10).fork()).ldelim();- }- if (message.nextPageToken !== "") {- writer.uint32(18).string(message.nextPageToken);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ListSchemaGroupsResponse {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListSchemaGroupsResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.schemaGroups.push(SchemaGroup.decode(reader, reader.uint32()));- continue;- case 2:- if (tag !== 18) {- break;- }-- message.nextPageToken = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): ListSchemaGroupsResponse {- return {- schemaGroups: globalThis.Array.isArray(object?.schemaGroups)- ? object.schemaGroups.map((e: any) => SchemaGroup.fromJSON(e))- : [],- nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",- };- },-- toJSON(message: ListSchemaGroupsResponse): unknown {- const obj: any = {};- if (message.schemaGroups?.length) {- obj.schemaGroups = message.schemaGroups.map((e) => SchemaGroup.toJSON(e));- }- if (message.nextPageToken !== "") {- obj.nextPageToken = message.nextPageToken;+ if (message.nameFilter !== "") {+ writer.uint32(26).string(message.nameFilter);}- return obj;- },-- create(base?: DeepPartial<ListSchemaGroupsResponse>): ListSchemaGroupsResponse {- return ListSchemaGroupsResponse.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ListSchemaGroupsResponse>): ListSchemaGroupsResponse {- const message = createBaseListSchemaGroupsResponse();- message.schemaGroups = object.schemaGroups?.map((e) => SchemaGroup.fromPartial(e)) || [];- message.nextPageToken = object.nextPageToken ?? "";- return message;- },-};--function createBaseGetSchemaGroupRequest(): GetSchemaGroupRequest {- return { name: "", view: SchemaGroupView.SCHEMA_GROUP_VIEW_UNSPECIFIED };-}--export const GetSchemaGroupRequest = {- encode(message: GetSchemaGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);+ for (const v of message.allowedRoles) {+ writer.uint32(34).string(v!);}- if (message.view !== SchemaGroupView.SCHEMA_GROUP_VIEW_UNSPECIFIED) {- writer.uint32(16).int32(schemaGroupViewToNumber(message.view));+ if (message.branchSource !== ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED) {+ writer.uint32(40).int32(protectionRule_BranchSourceToNumber(message.branchSource));}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): GetSchemaGroupRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): ProtectionRule {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetSchemaGroupRequest();+ const message = createBaseProtectionRule();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4755,118 +4373,35 @@ export const GetSchemaGroupRequest = {break;}- message.name = reader.string();+ message.id = reader.string();continue;case 2:if (tag !== 16) {break;}- message.view = schemaGroupViewFromJSON(reader.int32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): GetSchemaGroupRequest {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- view: isSet(object.view) ? schemaGroupViewFromJSON(object.view) : SchemaGroupView.SCHEMA_GROUP_VIEW_UNSPECIFIED,- };- },-- toJSON(message: GetSchemaGroupRequest): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.view !== SchemaGroupView.SCHEMA_GROUP_VIEW_UNSPECIFIED) {- obj.view = schemaGroupViewToJSON(message.view);- }- return obj;- },-- create(base?: DeepPartial<GetSchemaGroupRequest>): GetSchemaGroupRequest {- return GetSchemaGroupRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<GetSchemaGroupRequest>): GetSchemaGroupRequest {- const message = createBaseGetSchemaGroupRequest();- message.name = object.name ?? "";- message.view = object.view ?? SchemaGroupView.SCHEMA_GROUP_VIEW_UNSPECIFIED;- return message;- },-};--function createBaseSchemaGroup(): SchemaGroup {- return { name: "", tableExpr: undefined, tablePlaceholder: "", matchedTables: [], unmatchedTables: [] };-}--export const SchemaGroup = {- encode(message: SchemaGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.tableExpr !== undefined) {- Expr.encode(message.tableExpr, writer.uint32(18).fork()).ldelim();- }- if (message.tablePlaceholder !== "") {- writer.uint32(26).string(message.tablePlaceholder);- }- for (const v of message.matchedTables) {- SchemaGroup_Table.encode(v!, writer.uint32(34).fork()).ldelim();- }- for (const v of message.unmatchedTables) {- SchemaGroup_Table.encode(v!, writer.uint32(42).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): SchemaGroup {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSchemaGroup();- 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.tableExpr = Expr.decode(reader, reader.uint32());+ message.target = protectionRule_TargetFromJSON(reader.int32());continue;case 3:if (tag !== 26) {break;}- message.tablePlaceholder = reader.string();+ message.nameFilter = reader.string();continue;case 4:if (tag !== 34) {break;}- message.matchedTables.push(SchemaGroup_Table.decode(reader, reader.uint32()));+ message.allowedRoles.push(reader.string());continue;case 5:- if (tag !== 42) {+ if (tag !== 40) {break;}- message.unmatchedTables.push(SchemaGroup_Table.decode(reader, reader.uint32()));+ message.branchSource = protectionRule_BranchSourceFromJSON(reader.int32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4877,800 +4412,84 @@ export const SchemaGroup = {return message;},- fromJSON(object: any): SchemaGroup {+ fromJSON(object: any): ProtectionRule {return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- tableExpr: isSet(object.tableExpr) ? Expr.fromJSON(object.tableExpr) : undefined,- tablePlaceholder: isSet(object.tablePlaceholder) ? globalThis.String(object.tablePlaceholder) : "",- matchedTables: globalThis.Array.isArray(object?.matchedTables)- ? object.matchedTables.map((e: any) => SchemaGroup_Table.fromJSON(e))- : [],- unmatchedTables: globalThis.Array.isArray(object?.unmatchedTables)- ? object.unmatchedTables.map((e: any) => SchemaGroup_Table.fromJSON(e))+ id: isSet(object.id) ? globalThis.String(object.id) : "",+ target: isSet(object.target)+ ? protectionRule_TargetFromJSON(object.target)+ : ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED,+ nameFilter: isSet(object.nameFilter) ? globalThis.String(object.nameFilter) : "",+ allowedRoles: globalThis.Array.isArray(object?.allowedRoles)+ ? object.allowedRoles.map((e: any) => globalThis.String(e)): [],+ branchSource: isSet(object.branchSource)+ ? protectionRule_BranchSourceFromJSON(object.branchSource)+ : ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED,};},- toJSON(message: SchemaGroup): unknown {+ toJSON(message: ProtectionRule): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;+ if (message.id !== "") {+ obj.id = message.id;}- if (message.tableExpr !== undefined) {- obj.tableExpr = Expr.toJSON(message.tableExpr);+ if (message.target !== ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED) {+ obj.target = protectionRule_TargetToJSON(message.target);}- if (message.tablePlaceholder !== "") {- obj.tablePlaceholder = message.tablePlaceholder;+ if (message.nameFilter !== "") {+ obj.nameFilter = message.nameFilter;}- if (message.matchedTables?.length) {- obj.matchedTables = message.matchedTables.map((e) => SchemaGroup_Table.toJSON(e));+ if (message.allowedRoles?.length) {+ obj.allowedRoles = message.allowedRoles;}- if (message.unmatchedTables?.length) {- obj.unmatchedTables = message.unmatchedTables.map((e) => SchemaGroup_Table.toJSON(e));+ if (message.branchSource !== ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED) {+ obj.branchSource = protectionRule_BranchSourceToJSON(message.branchSource);}return obj;},- create(base?: DeepPartial<SchemaGroup>): SchemaGroup {- return SchemaGroup.fromPartial(base ?? {});+ create(base?: DeepPartial<ProtectionRule>): ProtectionRule {+ return ProtectionRule.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<SchemaGroup>): SchemaGroup {- const message = createBaseSchemaGroup();- message.name = object.name ?? "";- message.tableExpr = (object.tableExpr !== undefined && object.tableExpr !== null)- ? Expr.fromPartial(object.tableExpr)- : undefined;- message.tablePlaceholder = object.tablePlaceholder ?? "";- message.matchedTables = object.matchedTables?.map((e) => SchemaGroup_Table.fromPartial(e)) || [];- message.unmatchedTables = object.unmatchedTables?.map((e) => SchemaGroup_Table.fromPartial(e)) || [];+ fromPartial(object: DeepPartial<ProtectionRule>): ProtectionRule {+ const message = createBaseProtectionRule();+ message.id = object.id ?? "";+ message.target = object.target ?? ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED;+ message.nameFilter = object.nameFilter ?? "";+ message.allowedRoles = object.allowedRoles?.map((e) => e) || [];+ message.branchSource = object.branchSource ?? ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED;return message;},};-function createBaseSchemaGroup_Table(): SchemaGroup_Table {- return { database: "", schema: "", table: "" };-}--export const SchemaGroup_Table = {- encode(message: SchemaGroup_Table, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.database !== "") {- writer.uint32(10).string(message.database);- }- if (message.schema !== "") {- writer.uint32(18).string(message.schema);- }- if (message.table !== "") {- writer.uint32(26).string(message.table);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): SchemaGroup_Table {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSchemaGroup_Table();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.database = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.schema = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.table = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): SchemaGroup_Table {- return {- database: isSet(object.database) ? globalThis.String(object.database) : "",- schema: isSet(object.schema) ? globalThis.String(object.schema) : "",- table: isSet(object.table) ? globalThis.String(object.table) : "",- };- },-- toJSON(message: SchemaGroup_Table): unknown {- const obj: any = {};- if (message.database !== "") {- obj.database = message.database;- }- if (message.schema !== "") {- obj.schema = message.schema;- }- if (message.table !== "") {- obj.table = message.table;- }- return obj;- },-- create(base?: DeepPartial<SchemaGroup_Table>): SchemaGroup_Table {- return SchemaGroup_Table.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SchemaGroup_Table>): SchemaGroup_Table {- const message = createBaseSchemaGroup_Table();- message.database = object.database ?? "";- message.schema = object.schema ?? "";- message.table = object.table ?? "";- return message;- },-};--function createBaseGetProjectProtectionRulesRequest(): GetProjectProtectionRulesRequest {- return { name: "" };-}--export const GetProjectProtectionRulesRequest = {- encode(message: GetProjectProtectionRulesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): GetProjectProtectionRulesRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetProjectProtectionRulesRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): GetProjectProtectionRulesRequest {- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };- },-- toJSON(message: GetProjectProtectionRulesRequest): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- return obj;- },-- create(base?: DeepPartial<GetProjectProtectionRulesRequest>): GetProjectProtectionRulesRequest {- return GetProjectProtectionRulesRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<GetProjectProtectionRulesRequest>): GetProjectProtectionRulesRequest {- const message = createBaseGetProjectProtectionRulesRequest();- message.name = object.name ?? "";- return message;- },-};--function createBaseUpdateProjectProtectionRulesRequest(): UpdateProjectProtectionRulesRequest {- return { protectionRules: undefined };-}--export const UpdateProjectProtectionRulesRequest = {- encode(message: UpdateProjectProtectionRulesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.protectionRules !== undefined) {- ProtectionRules.encode(message.protectionRules, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): UpdateProjectProtectionRulesRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdateProjectProtectionRulesRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 2:- if (tag !== 18) {- break;- }-- message.protectionRules = ProtectionRules.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): UpdateProjectProtectionRulesRequest {- return {- protectionRules: isSet(object.protectionRules) ? ProtectionRules.fromJSON(object.protectionRules) : undefined,- };- },-- toJSON(message: UpdateProjectProtectionRulesRequest): unknown {- const obj: any = {};- if (message.protectionRules !== undefined) {- obj.protectionRules = ProtectionRules.toJSON(message.protectionRules);- }- return obj;- },-- create(base?: DeepPartial<UpdateProjectProtectionRulesRequest>): UpdateProjectProtectionRulesRequest {- return UpdateProjectProtectionRulesRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<UpdateProjectProtectionRulesRequest>): UpdateProjectProtectionRulesRequest {- const message = createBaseUpdateProjectProtectionRulesRequest();- message.protectionRules = (object.protectionRules !== undefined && object.protectionRules !== null)- ? ProtectionRules.fromPartial(object.protectionRules)- : undefined;- return message;- },-};--function createBaseProtectionRules(): ProtectionRules {- return { name: "", rules: [] };-}--export const ProtectionRules = {- encode(message: ProtectionRules, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- for (const v of message.rules) {- ProtectionRule.encode(v!, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ProtectionRules {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseProtectionRules();- 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.rules.push(ProtectionRule.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): ProtectionRules {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- rules: globalThis.Array.isArray(object?.rules) ? object.rules.map((e: any) => ProtectionRule.fromJSON(e)) : [],- };- },-- toJSON(message: ProtectionRules): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.rules?.length) {- obj.rules = message.rules.map((e) => ProtectionRule.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<ProtectionRules>): ProtectionRules {- return ProtectionRules.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ProtectionRules>): ProtectionRules {- const message = createBaseProtectionRules();- message.name = object.name ?? "";- message.rules = object.rules?.map((e) => ProtectionRule.fromPartial(e)) || [];- return message;- },-};--function createBaseProtectionRule(): ProtectionRule {- return {- id: "",- target: ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED,- nameFilter: "",- allowedRoles: [],- branchSource: ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED,- };-}--export const ProtectionRule = {- encode(message: ProtectionRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.id !== "") {- writer.uint32(10).string(message.id);- }- if (message.target !== ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED) {- writer.uint32(16).int32(protectionRule_TargetToNumber(message.target));- }- if (message.nameFilter !== "") {- writer.uint32(26).string(message.nameFilter);- }- for (const v of message.allowedRoles) {- writer.uint32(34).string(v!);- }- if (message.branchSource !== ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED) {- writer.uint32(40).int32(protectionRule_BranchSourceToNumber(message.branchSource));- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ProtectionRule {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseProtectionRule();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.id = reader.string();- continue;- case 2:- if (tag !== 16) {- break;- }-- message.target = protectionRule_TargetFromJSON(reader.int32());- continue;- case 3:- if (tag !== 26) {- break;- }-- message.nameFilter = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.allowedRoles.push(reader.string());- continue;- case 5:- if (tag !== 40) {- break;- }-- message.branchSource = protectionRule_BranchSourceFromJSON(reader.int32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): ProtectionRule {- return {- id: isSet(object.id) ? globalThis.String(object.id) : "",- target: isSet(object.target)- ? protectionRule_TargetFromJSON(object.target)- : ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED,- nameFilter: isSet(object.nameFilter) ? globalThis.String(object.nameFilter) : "",- allowedRoles: globalThis.Array.isArray(object?.allowedRoles)- ? object.allowedRoles.map((e: any) => globalThis.String(e))- : [],- branchSource: isSet(object.branchSource)- ? protectionRule_BranchSourceFromJSON(object.branchSource)- : ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED,- };- },-- toJSON(message: ProtectionRule): unknown {- const obj: any = {};- if (message.id !== "") {- obj.id = message.id;- }- if (message.target !== ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED) {- obj.target = protectionRule_TargetToJSON(message.target);- }- if (message.nameFilter !== "") {- obj.nameFilter = message.nameFilter;- }- if (message.allowedRoles?.length) {- obj.allowedRoles = message.allowedRoles;- }- if (message.branchSource !== ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED) {- obj.branchSource = protectionRule_BranchSourceToJSON(message.branchSource);- }- return obj;- },-- create(base?: DeepPartial<ProtectionRule>): ProtectionRule {- return ProtectionRule.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ProtectionRule>): ProtectionRule {- const message = createBaseProtectionRule();- message.id = object.id ?? "";- message.target = object.target ?? ProtectionRule_Target.PROTECTION_TARGET_UNSPECIFIED;- message.nameFilter = object.nameFilter ?? "";- message.allowedRoles = object.allowedRoles?.map((e) => e) || [];- message.branchSource = object.branchSource ?? ProtectionRule_BranchSource.BRANCH_SOURCE_UNSPECIFIED;- return message;- },-};--export type ProjectServiceDefinition = typeof ProjectServiceDefinition;-export const ProjectServiceDefinition = {- name: "ProjectService",- fullName: "bytebase.v1.ProjectService",- methods: {- getProject: {- name: "GetProject",- requestType: GetProjectRequest,- requestStream: false,- responseType: Project,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([4, 110, 97, 109, 101])],- 578365826: [- new Uint8Array([- 23,- 18,- 21,- 47,- 118,- 49,- 47,- 123,- 110,- 97,- 109,- 101,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- ]),- ],- },- },- },- listProjects: {- name: "ListProjects",- requestType: ListProjectsRequest,- requestStream: false,- responseType: ListProjectsResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([0])],- 578365826: [new Uint8Array([14, 18, 12, 47, 118, 49, 47, 112, 114, 111, 106, 101, 99, 116, 115])],- },- },- },- searchProjects: {- name: "SearchProjects",- requestType: SearchProjectsRequest,- requestStream: false,- responseType: SearchProjectsResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([0])],- 578365826: [- new Uint8Array([- 21,- 18,- 19,- 47,- 118,- 49,- 47,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 58,- 115,- 101,- 97,- 114,- 99,- 104,- ]),- ],- },- },- },- createProject: {- name: "CreateProject",- requestType: CreateProjectRequest,- requestStream: false,- responseType: Project,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([0])],- 578365826: [- new Uint8Array([- 23,- 58,- 7,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 34,- 12,- 47,- 118,- 49,- 47,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- ]),- ],- },- },- },- updateProject: {- name: "UpdateProject",- requestType: UpdateProjectRequest,+export type ProjectServiceDefinition = typeof ProjectServiceDefinition;+export const ProjectServiceDefinition = {+ name: "ProjectService",+ fullName: "bytebase.v1.ProjectService",+ methods: {+ getProject: {+ name: "GetProject",+ requestType: GetProjectRequest,requestStream: false,responseType: Project,responseStream: false,- options: {- _unknownFields: {- 8410: [- new Uint8Array([- 19,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 44,- 117,- 112,- 100,- 97,- 116,- 101,- 95,- 109,- 97,- 115,- 107,- ]),- ],- 578365826: [- new Uint8Array([- 40,- 58,- 7,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 50,- 29,- 47,- 118,- 49,- 47,- 123,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 46,- 110,- 97,- 109,- 101,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- ]),- ],- },- },- },- deleteProject: {- name: "DeleteProject",- requestType: DeleteProjectRequest,- requestStream: false,- responseType: Empty,- responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([4, 110, 97, 109, 101])],578365826: [new Uint8Array([23,- 42,- 21,- 47,- 118,- 49,- 47,- 123,- 110,- 97,- 109,- 101,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- ]),- ],- },- },- },- undeleteProject: {- name: "UndeleteProject",- requestType: UndeleteProjectRequest,- requestStream: false,- responseType: Project,- responseStream: false,- options: {- _unknownFields: {- 578365826: [- new Uint8Array([- 35,- 58,- 1,- 42,- 34,- 30,- 47,- 118,- 49,- 47,- 123,- 110,- 97,- 109,- 101,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- 58,- 117,- 110,- 100,- 101,- 108,- 101,- 116,- 101,- ]),- ],- },- },- },- getIamPolicy: {- name: "GetIamPolicy",- requestType: GetIamPolicyRequest,- requestStream: false,- responseType: IamPolicy,- responseStream: false,- options: {- _unknownFields: {- 578365826: [- new Uint8Array([- 39,18,- 37,+ 21,47,118,- 49,- 47,- 123,- 112,- 114,- 111,- 106,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,101,- 99,- 116,61,112,114,@@ -5683,99 +4502,76 @@ export const ProjectServiceDefinition = {47,42,125,- 58,- 103,- 101,- 116,- 73,- 97,- 109,- 80,- 111,- 108,- 105,- 99,- 121,]),],},},},- batchGetIamPolicy: {- name: "BatchGetIamPolicy",- requestType: BatchGetIamPolicyRequest,+ listProjects: {+ name: "ListProjects",+ requestType: ListProjectsRequest,requestStream: false,- responseType: BatchGetIamPolicyResponse,+ responseType: ListProjectsResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([0])],+ 578365826: [new Uint8Array([14, 18, 12, 47, 118, 49, 47, 112, 114, 111, 106, 101, 99, 116, 115])],+ },+ },+ },+ searchProjects: {+ name: "SearchProjects",+ requestType: SearchProjectsRequest,+ requestStream: false,+ responseType: SearchProjectsResponse,responseStream: false,options: {_unknownFields: {+ 8410: [new Uint8Array([0])],578365826: [new Uint8Array([- 38,+ 21,18,- 36,+ 19,47,118,49,47,- 123,- 115,- 99,- 111,112,- 101,- 61,- 42,- 47,- 42,- 125,- 47,- 105,- 97,- 109,- 80,+ 114,111,- 108,- 105,- 99,- 105,+ 106,101,+ 99,+ 116,115,58,- 98,+ 115,+ 101,97,- 116,+ 114,99,104,- 71,- 101,- 116,]),],},},},- setIamPolicy: {- name: "SetIamPolicy",- requestType: SetIamPolicyRequest,+ createProject: {+ name: "CreateProject",+ requestType: CreateProjectRequest,requestStream: false,- responseType: IamPolicy,+ responseType: Project,responseStream: false,options: {_unknownFields: {+ 8410: [new Uint8Array([0])],578365826: [new Uint8Array([- 42,+ 23,58,- 1,- 42,- 34,- 37,- 47,- 118,- 49,- 47,- 123,+ 7,112,114,111,@@ -5783,7 +4579,12 @@ export const ProjectServiceDefinition = {101,99,116,- 61,+ 34,+ 12,+ 47,+ 118,+ 49,+ 47,112,114,111,@@ -5792,50 +4593,22 @@ export const ProjectServiceDefinition = {99,116,115,- 47,- 42,- 125,- 58,- 115,- 101,- 116,- 73,- 97,- 109,- 80,- 111,- 108,- 105,- 99,- 121,]),],},},},- getDeploymentConfig: {- name: "GetDeploymentConfig",- requestType: GetDeploymentConfigRequest,+ updateProject: {+ name: "UpdateProject",+ requestType: UpdateProjectRequest,requestStream: false,- responseType: DeploymentConfig,+ responseType: Project,responseStream: false,options: {_unknownFields: {- 578365826: [+ 8410: [new Uint8Array([- 43,- 18,- 41,- 47,- 118,- 49,- 47,- 123,- 110,- 97,- 109,- 101,- 61,+ 19,112,114,111,@@ -5843,67 +4616,46 @@ export const ProjectServiceDefinition = {101,99,116,- 115,- 47,- 42,- 47,+ 44,+ 117,+ 112,100,+ 97,+ 116,101,- 112,- 108,- 111,- 121,+ 95,109,- 101,- 110,- 116,- 67,- 111,- 110,- 102,- 105,- 103,+ 97,115,- 47,- 42,- 125,+ 107,]),],- },- },- },- updateDeploymentConfig: {- name: "UpdateDeploymentConfig",- requestType: UpdateDeploymentConfigRequest,- requestStream: false,- responseType: DeploymentConfig,- responseStream: false,- options: {- _unknownFields: {578365826: [new Uint8Array([+ 40,58,- 58,- 6,- 99,+ 7,+ 112,+ 114,111,- 110,- 102,- 105,- 103,+ 106,+ 101,+ 99,+ 116,50,- 48,+ 29,47,118,49,47,123,- 99,+ 112,+ 114,111,- 110,- 102,- 105,- 103,+ 106,+ 101,+ 99,+ 116,46,110,97,@@ -5920,60 +4672,35 @@ export const ProjectServiceDefinition = {115,47,42,- 47,- 100,- 101,- 112,- 108,- 111,- 121,- 109,- 101,- 110,- 116,- 67,- 111,- 110,- 102,- 105,- 103,- 115,- 47,- 42,125,]),],},},},- addWebhook: {- name: "AddWebhook",- requestType: AddWebhookRequest,+ deleteProject: {+ name: "DeleteProject",+ requestType: DeleteProjectRequest,requestStream: false,- responseType: Project,+ responseType: Empty,responseStream: false,options: {_unknownFields: {+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],578365826: [new Uint8Array([- 40,- 58,- 1,+ 23,42,- 34,- 35,+ 21,47,118,- 49,- 47,- 123,- 112,- 114,- 111,- 106,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,101,- 99,- 116,61,112,114,@@ -5986,75 +4713,32 @@ export const ProjectServiceDefinition = {47,42,125,- 58,- 97,- 100,- 100,- 87,- 101,- 98,- 104,- 111,- 111,- 107,]),],},},},- updateWebhook: {- name: "UpdateWebhook",- requestType: UpdateWebhookRequest,+ undeleteProject: {+ name: "UndeleteProject",+ requestType: UndeleteProjectRequest,requestStream: false,responseType: Project,responseStream: false,options: {_unknownFields: {- 8410: [- new Uint8Array([- 19,- 119,- 101,- 98,- 104,- 111,- 111,- 107,- 44,- 117,- 112,- 100,- 97,- 116,- 101,- 95,- 109,- 97,- 115,- 107,- ]),- ],578365826: [new Uint8Array([- 59,+ 35,58,1,42,34,- 54,+ 30,47,118,49,47,123,- 119,- 101,- 98,- 104,- 111,- 111,- 107,- 46,110,97,109,@@ -6070,70 +4754,46 @@ export const ProjectServiceDefinition = {115,47,42,- 47,- 119,- 101,- 98,- 104,- 111,- 111,- 107,- 115,- 47,- 42,125,58,117,- 112,+ 110,100,- 97,- 116,101,- 87,+ 108,+ 101,+ 116,101,- 98,- 104,- 111,- 111,- 107,]),],},},},- removeWebhook: {- name: "RemoveWebhook",- requestType: RemoveWebhookRequest,+ getIamPolicy: {+ name: "GetIamPolicy",+ requestType: GetIamPolicyRequest,requestStream: false,- responseType: Project,+ responseType: IamPolicy,responseStream: false,options: {_unknownFields: {578365826: [new Uint8Array([- 59,- 58,- 1,- 42,- 34,- 54,+ 39,+ 18,+ 37,47,118,49,47,123,- 119,- 101,- 98,- 104,- 111,+ 112,+ 114,111,- 107,- 46,- 110,- 97,- 109,+ 106,101,+ 99,+ 116,61,112,114,@@ -6145,53 +4805,95 @@ export const ProjectServiceDefinition = {115,47,42,- 47,- 119,+ 125,+ 58,+ 103,101,- 98,- 104,- 111,+ 116,+ 73,+ 97,+ 109,+ 80,111,- 107,+ 108,+ 105,+ 99,+ 121,+ ]),+ ],+ },+ },+ },+ batchGetIamPolicy: {+ name: "BatchGetIamPolicy",+ requestType: BatchGetIamPolicyRequest,+ requestStream: false,+ responseType: BatchGetIamPolicyResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 578365826: [+ new Uint8Array([+ 38,+ 18,+ 36,+ 47,+ 118,+ 49,+ 47,+ 123,115,+ 99,+ 111,+ 112,+ 101,+ 61,+ 42,47,42,125,- 58,- 114,- 101,+ 47,+ 105,+ 97,109,+ 80,111,- 118,- 101,- 87,+ 108,+ 105,+ 99,+ 105,101,+ 115,+ 58,98,+ 97,+ 116,+ 99,104,- 111,- 111,- 107,+ 71,+ 101,+ 116,]),],},},},- testWebhook: {- name: "TestWebhook",- requestType: TestWebhookRequest,+ setIamPolicy: {+ name: "SetIamPolicy",+ requestType: SetIamPolicyRequest,requestStream: false,- responseType: TestWebhookResponse,+ responseType: IamPolicy,responseStream: false,options: {_unknownFields: {578365826: [new Uint8Array([- 41,+ 42,58,1,42,34,- 36,+ 37,47,118,49,@@ -6217,47 +4919,45 @@ export const ProjectServiceDefinition = {42,125,58,- 116,- 101,115,- 116,- 87,101,- 98,- 104,- 111,+ 116,+ 73,+ 97,+ 109,+ 80,111,- 107,+ 108,+ 105,+ 99,+ 121,]),],},},},- listDatabaseGroups: {- name: "ListDatabaseGroups",- requestType: ListDatabaseGroupsRequest,+ getDeploymentConfig: {+ name: "GetDeploymentConfig",+ requestType: GetDeploymentConfigRequest,requestStream: false,- responseType: ListDatabaseGroupsResponse,+ responseType: DeploymentConfig,responseStream: false,options: {_unknownFields: {- 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],578365826: [new Uint8Array([- 40,+ 43,18,- 38,+ 41,47,118,49,47,123,- 112,+ 110,97,- 114,+ 109,101,- 110,- 116,61,112,114,@@ -6269,46 +4969,65 @@ export const ProjectServiceDefinition = {115,47,42,+ 47,+ 100,+ 101,+ 112,+ 108,+ 111,+ 121,+ 109,+ 101,+ 110,+ 116,+ 67,+ 111,+ 110,+ 102,+ 105,+ 103,+ 115,+ 47,+ 42,125,- 47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 71,- 114,- 111,- 117,- 112,- 115,]),],},},},- getDatabaseGroup: {- name: "GetDatabaseGroup",- requestType: GetDatabaseGroupRequest,+ updateDeploymentConfig: {+ name: "UpdateDeploymentConfig",+ requestType: UpdateDeploymentConfigRequest,requestStream: false,- responseType: DatabaseGroup,+ responseType: DeploymentConfig,responseStream: false,options: {_unknownFields: {- 8410: [new Uint8Array([4, 110, 97, 109, 101])],578365826: [new Uint8Array([- 40,- 18,- 38,+ 58,+ 58,+ 6,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103,+ 50,+ 48,47,118,49,47,123,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103,+ 46,110,97,109,@@ -6326,18 +5045,21 @@ export const ProjectServiceDefinition = {42,47,100,- 97,- 116,- 97,- 98,- 97,- 115,101,- 71,- 114,- 111,- 117,112,+ 108,+ 111,+ 121,+ 109,+ 101,+ 110,+ 116,+ 67,+ 111,+ 110,+ 102,+ 105,+ 103,115,47,42,@@ -6347,70 +5069,33 @@ export const ProjectServiceDefinition = {},},},- createDatabaseGroup: {- name: "CreateDatabaseGroup",- requestType: CreateDatabaseGroupRequest,+ addWebhook: {+ name: "AddWebhook",+ requestType: AddWebhookRequest,requestStream: false,- responseType: DatabaseGroup,+ responseType: Project,responseStream: false,options: {_unknownFields: {- 8410: [- new Uint8Array([- 20,- 112,- 97,- 114,- 101,- 110,- 116,- 44,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 71,- 114,- 111,- 117,- 112,- ]),- ],578365826: [new Uint8Array([- 56,+ 40,58,- 14,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 95,- 103,- 114,- 111,- 117,- 112,+ 1,+ 42,34,- 38,+ 35,47,118,49,47,123,112,- 97,114,+ 111,+ 106,101,- 110,+ 99,116,61,112,@@ -6424,51 +5109,40 @@ export const ProjectServiceDefinition = {47,42,125,- 47,- 100,- 97,- 116,- 97,- 98,+ 58,97,- 115,+ 100,+ 100,+ 87,101,- 71,- 114,+ 98,+ 104,111,- 117,- 112,- 115,+ 111,+ 107,]),],},},},- updateDatabaseGroup: {- name: "UpdateDatabaseGroup",- requestType: UpdateDatabaseGroupRequest,+ updateWebhook: {+ name: "UpdateWebhook",+ requestType: UpdateWebhookRequest,requestStream: false,- responseType: DatabaseGroup,+ responseType: Project,responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([- 26,- 100,- 97,- 116,- 97,- 98,- 97,- 115,+ 19,+ 119,101,- 95,- 103,- 114,+ 98,+ 104,111,- 117,- 112,+ 111,+ 107,44,117,112,@@ -6485,44 +5159,99 @@ export const ProjectServiceDefinition = {],578365826: [new Uint8Array([- 71,+ 59,58,- 14,- 100,- 97,- 116,- 97,+ 1,+ 42,+ 34,+ 54,+ 47,+ 118,+ 49,+ 47,+ 123,+ 119,+ 101,98,+ 104,+ 111,+ 111,+ 107,+ 46,+ 110,97,- 115,+ 109,101,- 95,- 103,+ 61,+ 112,114,111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 119,+ 101,+ 98,+ 104,+ 111,+ 111,+ 107,+ 115,+ 47,+ 42,+ 125,+ 58,117,112,- 50,- 53,+ 100,+ 97,+ 116,+ 101,+ 87,+ 101,+ 98,+ 104,+ 111,+ 111,+ 107,+ ]),+ ],+ },+ },+ },+ removeWebhook: {+ name: "RemoveWebhook",+ requestType: RemoveWebhookRequest,+ requestStream: false,+ responseType: Project,+ responseStream: false,+ options: {+ _unknownFields: {+ 578365826: [+ new Uint8Array([+ 59,+ 58,+ 1,+ 42,+ 34,+ 54,47,118,49,47,123,- 100,- 97,- 116,- 97,- 98,- 97,- 115,+ 119,101,- 95,- 103,- 114,+ 98,+ 104,111,- 117,- 112,+ 111,+ 107,46,110,97,@@ -6540,51 +5269,64 @@ export const ProjectServiceDefinition = {47,42,47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,+ 119,101,- 71,- 114,+ 98,+ 104,111,- 117,- 112,+ 111,+ 107,115,47,42,125,+ 58,+ 114,+ 101,+ 109,+ 111,+ 118,+ 101,+ 87,+ 101,+ 98,+ 104,+ 111,+ 111,+ 107,]),],},},},- deleteDatabaseGroup: {- name: "DeleteDatabaseGroup",- requestType: DeleteDatabaseGroupRequest,+ testWebhook: {+ name: "TestWebhook",+ requestType: TestWebhookRequest,requestStream: false,- responseType: Empty,+ responseType: TestWebhookResponse,responseStream: false,options: {_unknownFields: {- 8410: [new Uint8Array([4, 110, 97, 109, 101])],578365826: [new Uint8Array([- 40,+ 41,+ 58,+ 1,42,- 38,+ 34,+ 36,47,118,49,47,123,- 110,- 97,- 109,+ 112,+ 114,+ 111,+ 106,101,+ 99,+ 116,61,112,114,@@ -6596,43 +5338,38 @@ export const ProjectServiceDefinition = {115,47,42,- 47,- 100,- 97,+ 125,+ 58,116,- 97,- 98,- 97,+ 101,115,+ 116,+ 87,101,- 71,- 114,+ 98,+ 104,111,- 117,- 112,- 115,- 47,- 42,- 125,+ 111,+ 107,]),],},},},- listSchemaGroups: {- name: "ListSchemaGroups",- requestType: ListSchemaGroupsRequest,+ listDatabaseGroups: {+ name: "ListDatabaseGroups",+ requestType: ListDatabaseGroupsRequest,requestStream: false,- responseType: ListSchemaGroupsResponse,+ responseType: ListDatabaseGroupsResponse,responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],578365826: [new Uint8Array([- 55,+ 40,18,- 53,+ 38,47,118,49,@@ -6655,6 +5392,7 @@ export const ProjectServiceDefinition = {115,47,42,+ 125,47,100,97,@@ -6670,41 +5408,25 @@ export const ProjectServiceDefinition = {117,112,115,- 47,- 42,- 125,- 47,- 115,- 99,- 104,- 101,- 109,- 97,- 71,- 114,- 111,- 117,- 112,- 115,]),],},},},- getSchemaGroup: {- name: "GetSchemaGroup",- requestType: GetSchemaGroupRequest,+ getDatabaseGroup: {+ name: "GetDatabaseGroup",+ requestType: GetDatabaseGroupRequest,requestStream: false,- responseType: SchemaGroup,+ responseType: DatabaseGroup,responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([4, 110, 97, 109, 101])],578365826: [new Uint8Array([- 55,+ 40,18,- 53,+ 38,47,118,49,@@ -6742,32 +5464,17 @@ export const ProjectServiceDefinition = {115,47,42,- 47,- 115,- 99,- 104,- 101,- 109,- 97,- 71,- 114,- 111,- 117,- 112,- 115,- 47,- 42,125,]),],},},},- createSchemaGroup: {- name: "CreateSchemaGroup",- requestType: CreateSchemaGroupRequest,+ createDatabaseGroup: {+ name: "CreateDatabaseGroup",+ requestType: CreateDatabaseGroupRequest,requestStream: false,- responseType: SchemaGroup,+ responseType: DatabaseGroup,responseStream: false,options: {_unknownFields: {@@ -6798,15 +5505,17 @@ export const ProjectServiceDefinition = {],578365826: [new Uint8Array([- 69,+ 56,58,- 12,+ 14,+ 100,+ 97,+ 116,+ 97,+ 98,+ 97,115,- 99,- 104,101,- 109,- 97,95,103,114,@@ -6814,7 +5523,7 @@ export const ProjectServiceDefinition = {117,112,34,- 53,+ 38,47,118,49,@@ -6837,6 +5546,7 @@ export const ProjectServiceDefinition = {115,47,42,+ 125,47,100,97,@@ -6852,44 +5562,30 @@ export const ProjectServiceDefinition = {117,112,115,- 47,- 42,- 125,- 47,- 115,- 99,- 104,- 101,- 109,- 97,- 71,- 114,- 111,- 117,- 112,- 115,]),],},},},- updateSchemaGroup: {- name: "UpdateSchemaGroup",- requestType: UpdateSchemaGroupRequest,+ updateDatabaseGroup: {+ name: "UpdateDatabaseGroup",+ requestType: UpdateDatabaseGroupRequest,requestStream: false,- responseType: SchemaGroup,+ responseType: DatabaseGroup,responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([- 24,+ 26,+ 100,+ 97,+ 116,+ 97,+ 98,+ 97,115,- 99,- 104,101,- 109,- 97,95,103,114,@@ -6912,15 +5608,17 @@ export const ProjectServiceDefinition = {],578365826: [new Uint8Array([- 82,+ 71,58,- 12,+ 14,+ 100,+ 97,+ 116,+ 97,+ 98,+ 97,115,- 99,- 104,101,- 109,- 97,95,103,114,@@ -6928,18 +5626,20 @@ export const ProjectServiceDefinition = {117,112,50,- 66,+ 53,47,118,49,47,123,+ 100,+ 97,+ 116,+ 97,+ 98,+ 97,115,- 99,- 104,101,- 109,- 97,95,103,114,@@ -6979,30 +5679,15 @@ export const ProjectServiceDefinition = {115,47,42,- 47,- 115,- 99,- 104,- 101,- 109,- 97,- 71,- 114,- 111,- 117,- 112,- 115,- 47,- 42,125,]),],},},},- deleteSchemaGroup: {- name: "DeleteSchemaGroup",- requestType: DeleteSchemaGroupRequest,+ deleteDatabaseGroup: {+ name: "DeleteDatabaseGroup",+ requestType: DeleteDatabaseGroupRequest,requestStream: false,responseType: Empty,responseStream: false,@@ -7011,9 +5696,9 @@ export const ProjectServiceDefinition = {8410: [new Uint8Array([4, 110, 97, 109, 101])],578365826: [new Uint8Array([- 55,+ 40,42,- 53,+ 38,47,118,49,@@ -7051,21 +5736,6 @@ export const ProjectServiceDefinition = {115,47,42,- 47,- 115,- 99,- 104,- 101,- 109,- 97,- 71,- 114,- 111,- 117,- 112,- 115,- 47,- 42,125,]),],diff --git a/frontend/src/types/quickAction.ts b/frontend/src/types/quickAction.tsindex 174d6d1268..479ecce855 100644--- a/frontend/src/types/quickAction.ts+++ b/frontend/src/types/quickAction.ts@@ -13,8 +13,7 @@ export type DatabaseQuickActionType =| "quickaction.bb.database.schema.update"| "quickaction.bb.database.data.update";export type DatabaseGroupQuickActionType =- | "quickaction.bb.group.database-group.create"- | "quickaction.bb.group.table-group.create";+ | "quickaction.bb.group.database-group.create";export type IssueQuickActionType =| "quickaction.bb.issue.grant.request.querier"| "quickaction.bb.issue.grant.request.exporter";@@ -56,7 +55,6 @@ export const QuickActionProjectPermissionMap: Map<["quickaction.bb.database.schema.update", ["bb.issues.create"]],["quickaction.bb.database.data.update", ["bb.issues.create"]],["quickaction.bb.group.database-group.create", ["bb.projects.update"]],- ["quickaction.bb.group.table-group.create", ["bb.projects.update"]],["quickaction.bb.issue.grant.request.querier", ["bb.issues.create"]],["quickaction.bb.issue.grant.request.exporter", ["bb.issues.create"]],]);diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 1431e03414..99244fe346 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -4488,236 +4488,6 @@ paths:application/json:schema:$ref: '#/components/schemas/Status'- /v1/projects/{project}/databaseGroups/{databaseGroup}/schemaGroups:- get:- tags:- - ProjectService- operationId: ProjectService_ListSchemaGroups- parameters:- - name: project- in: path- description: The project id.- required: true- schema:- type: string- - name: databaseGroup- in: path- description: The databaseGroup id.- required: true- schema:- type: string- - name: pageSize- in: query- description: |-- 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.- schema:- type: integer- format: int32- - name: pageToken- in: query- description: |-- Not used. A page token, received from a previous `ListSchemaGroups` call.- Provide this to retrieve the subsequent page.-- When paginating, all other parameters provided to `ListSchemaGroups` must match- the call that provided the page token.- schema:- type: string- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: '#/components/schemas/ListSchemaGroupsResponse'- default:- description: Default error response- content:- application/json:- schema:- $ref: '#/components/schemas/Status'- post:- tags:- - ProjectService- operationId: ProjectService_CreateSchemaGroup- parameters:- - name: project- in: path- description: The project id.- required: true- schema:- type: string- - name: databaseGroup- in: path- description: The databaseGroup id.- required: true- schema:- type: string- - name: schemaGroupId- in: query- description: |-- The ID to use for the schema group, which will become the final component of- the schema group's resource name.-- This value should be 4-63 characters, and valid characters- are /[a-z][0-9]-/.- schema:- type: string- - name: validateOnly- in: query- description: If set, validate the create request and preview the full schema group response, but do not actually create it.- schema:- type: boolean- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/SchemaGroup'- required: true- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: '#/components/schemas/SchemaGroup'- default:- description: Default error response- content:- application/json:- schema:- $ref: '#/components/schemas/Status'- /v1/projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}:- get:- tags:- - ProjectService- operationId: ProjectService_GetSchemaGroup- parameters:- - name: project- in: path- description: The project id.- required: true- schema:- type: string- - name: databaseGroup- in: path- description: The databaseGroup id.- required: true- schema:- type: string- - name: schemaGroup- in: path- description: The schemaGroup id.- required: true- schema:- type: string- - name: view- in: query- description: The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC.- schema:- enum:- - SCHEMA_GROUP_VIEW_UNSPECIFIED- - SCHEMA_GROUP_VIEW_BASIC- - SCHEMA_GROUP_VIEW_FULL- type: string- format: enum- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: '#/components/schemas/SchemaGroup'- default:- description: Default error response- content:- application/json:- schema:- $ref: '#/components/schemas/Status'- delete:- tags:- - ProjectService- operationId: ProjectService_DeleteSchemaGroup- parameters:- - name: project- in: path- description: The project id.- required: true- schema:- type: string- - name: databaseGroup- in: path- description: The databaseGroup id.- required: true- schema:- type: string- - name: schemaGroup- in: path- description: The schemaGroup id.- required: true- schema:- type: string- responses:- "200":- description: OK- content: {}- default:- description: Default error response- content:- application/json:- schema:- $ref: '#/components/schemas/Status'- patch:- tags:- - ProjectService- operationId: ProjectService_UpdateSchemaGroup- parameters:- - name: project- in: path- description: The project id.- required: true- schema:- type: string- - name: databaseGroup- in: path- description: The databaseGroup id.- required: true- schema:- type: string- - name: schemaGroup- in: path- description: The schemaGroup id.- required: true- schema:- type: string- - name: updateMask- in: query- description: The list of fields to update.- schema:- type: string- format: field-mask- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/SchemaGroup'- required: true- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: '#/components/schemas/SchemaGroup'- default:- description: Default error response- content:- application/json:- schema:- $ref: '#/components/schemas/Status'/v1/projects/{project}/databases:get:tags:@@ -10924,19 +10694,6 @@ components:description: |-A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages.- ListSchemaGroupsResponse:- type: object- properties:- schemaGroups:- type: array- items:- $ref: '#/components/schemas/SchemaGroup'- description: schema_groups is the list of schema groups.- nextPageToken:- type: string- description: |-- 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.ListSecretsResponse:type: objectproperties:@@ -12322,53 +12079,6 @@ components:type: arrayitems:$ref: '#/components/schemas/ViewConfig'- SchemaGroup:- type: object- properties:- name:- type: string- description: |-- The name of the schema group.- Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- tableExpr:- allOf:- - $ref: '#/components/schemas/Expr'- description: |-- The table condition that is associated with this schema group.- The table_placeholder in the sheet script will be rendered to the actual table name.- tablePlaceholder:- type: string- description: |-- The table placeholder used for rendering. For example, if set to "tbl", all the table name- "tbl" in the SQL script will be rendered to the actual table name.- matchedTables:- readOnly: true- type: array- items:- $ref: '#/components/schemas/SchemaGroup_Table'- description: The list of databases that match the database group condition.- unmatchedTables:- readOnly: true- type: array- items:- $ref: '#/components/schemas/SchemaGroup_Table'- description: The list of databases that match the database group condition.- SchemaGroup_Table:- type: object- properties:- database:- type: string- description: |-- The resource name of the database.- Format: instances/{instance}/databases/{database}- schema:- type: string- table:- type: string- description: |-- In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.- Its keyword will be {{SCHEMA}}.- All the expressions will be used to filter the schema objects in DatabaseSchema.SchemaTemplateSetting:type: objectproperties:diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex e49145c981..e263bb43cf 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -388,12 +388,10 @@- [BatchGetIamPolicyResponse.PolicyResult](#bytebase-v1-BatchGetIamPolicyResponse-PolicyResult)- [CreateDatabaseGroupRequest](#bytebase-v1-CreateDatabaseGroupRequest)- [CreateProjectRequest](#bytebase-v1-CreateProjectRequest)- - [CreateSchemaGroupRequest](#bytebase-v1-CreateSchemaGroupRequest)- [DatabaseGroup](#bytebase-v1-DatabaseGroup)- [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database)- [DeleteDatabaseGroupRequest](#bytebase-v1-DeleteDatabaseGroupRequest)- [DeleteProjectRequest](#bytebase-v1-DeleteProjectRequest)- - [DeleteSchemaGroupRequest](#bytebase-v1-DeleteSchemaGroupRequest)- [DeploymentConfig](#bytebase-v1-DeploymentConfig)- [DeploymentSpec](#bytebase-v1-DeploymentSpec)- [GetDatabaseGroupRequest](#bytebase-v1-GetDatabaseGroupRequest)@@ -401,7 +399,6 @@- [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest)- [GetProjectProtectionRulesRequest](#bytebase-v1-GetProjectProtectionRulesRequest)- [GetProjectRequest](#bytebase-v1-GetProjectRequest)- - [GetSchemaGroupRequest](#bytebase-v1-GetSchemaGroupRequest)- [Label](#bytebase-v1-Label)- [LabelSelector](#bytebase-v1-LabelSelector)- [LabelSelectorRequirement](#bytebase-v1-LabelSelectorRequirement)@@ -409,16 +406,12 @@- [ListDatabaseGroupsResponse](#bytebase-v1-ListDatabaseGroupsResponse)- [ListProjectsRequest](#bytebase-v1-ListProjectsRequest)- [ListProjectsResponse](#bytebase-v1-ListProjectsResponse)- - [ListSchemaGroupsRequest](#bytebase-v1-ListSchemaGroupsRequest)- - [ListSchemaGroupsResponse](#bytebase-v1-ListSchemaGroupsResponse)- [Project](#bytebase-v1-Project)- [ProtectionRule](#bytebase-v1-ProtectionRule)- [ProtectionRules](#bytebase-v1-ProtectionRules)- [RemoveWebhookRequest](#bytebase-v1-RemoveWebhookRequest)- [Schedule](#bytebase-v1-Schedule)- [ScheduleDeployment](#bytebase-v1-ScheduleDeployment)- - [SchemaGroup](#bytebase-v1-SchemaGroup)- - [SchemaGroup.Table](#bytebase-v1-SchemaGroup-Table)- [SearchProjectsRequest](#bytebase-v1-SearchProjectsRequest)- [SearchProjectsResponse](#bytebase-v1-SearchProjectsResponse)- [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest)@@ -429,7 +422,6 @@- [UpdateDeploymentConfigRequest](#bytebase-v1-UpdateDeploymentConfigRequest)- [UpdateProjectProtectionRulesRequest](#bytebase-v1-UpdateProjectProtectionRulesRequest)- [UpdateProjectRequest](#bytebase-v1-UpdateProjectRequest)- - [UpdateSchemaGroupRequest](#bytebase-v1-UpdateSchemaGroupRequest)- [UpdateWebhookRequest](#bytebase-v1-UpdateWebhookRequest)- [Webhook](#bytebase-v1-Webhook)@@ -438,7 +430,6 @@- [OperatorType](#bytebase-v1-OperatorType)- [ProtectionRule.BranchSource](#bytebase-v1-ProtectionRule-BranchSource)- [ProtectionRule.Target](#bytebase-v1-ProtectionRule-Target)- - [SchemaGroupView](#bytebase-v1-SchemaGroupView)- [TenantMode](#bytebase-v1-TenantMode)- [Webhook.Type](#bytebase-v1-Webhook-Type)- [Workflow](#bytebase-v1-Workflow)@@ -6550,26 +6541,6 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-CreateSchemaGroupRequest"></a>--### CreateSchemaGroupRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this schema group will be created. Format: projects/{project}/databaseGroups/{databaseGroup} |-| schema_group | [SchemaGroup](#bytebase-v1-SchemaGroup) | | The schema group to create. |-| schema_group_id | [string](#string) | | The ID to use for the schema group, which will become the final component of the schema group's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-| validate_only | [bool](#bool) | | If set, validate the create request and preview the full schema group response, but do not actually create it. |------<a name="bytebase-v1-DatabaseGroup"></a>### DatabaseGroup@@ -6635,21 +6606,6 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-DeleteSchemaGroupRequest"></a>--### DeleteSchemaGroupRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the schema group to delete. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |------<a name="bytebase-v1-DeploymentConfig"></a>### DeploymentConfig@@ -6758,22 +6714,6 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-GetSchemaGroupRequest"></a>--### GetSchemaGroupRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database group to retrieve. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |-| view | [SchemaGroupView](#bytebase-v1-SchemaGroupView) | | The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC. |------<a name="bytebase-v1-Label"></a>### Label@@ -6893,41 +6833,6 @@ When paginating, all other parameters provided to `ListProjects` must match the-<a name="bytebase-v1-ListSchemaGroupsRequest"></a>--### ListSchemaGroupsRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource whose schema groups are to be listed. Format: projects/{project}/schemaGroups/{schemaGroup} |-| 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 `ListSchemaGroups` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListSchemaGroups` must match the call that provided the page token. |-------<a name="bytebase-v1-ListSchemaGroupsResponse"></a>--### ListSchemaGroupsResponse----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| schema_groups | [SchemaGroup](#bytebase-v1-SchemaGroup) | repeated | schema_groups is the list of schema groups. |-| 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-Project"></a>### Project@@ -7034,44 +6939,6 @@ When paginating, all other parameters provided to `ListSchemaGroups` must match-<a name="bytebase-v1-SchemaGroup"></a>--### SchemaGroup----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the schema group. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |-| table_expr | [google.type.Expr](#google-type-Expr) | | The table condition that is associated with this schema group. The table_placeholder in the sheet script will be rendered to the actual table name. |-| table_placeholder | [string](#string) | | The table placeholder used for rendering. For example, if set to "tbl", all the table name "tbl" in the SQL script will be rendered to the actual table name. |-| matched_tables | [SchemaGroup.Table](#bytebase-v1-SchemaGroup-Table) | repeated | The list of databases that match the database group condition. |-| unmatched_tables | [SchemaGroup.Table](#bytebase-v1-SchemaGroup-Table) | repeated | The list of databases that match the database group condition. |-------<a name="bytebase-v1-SchemaGroup-Table"></a>--### SchemaGroup.Table-In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.-Its keyword will be {{SCHEMA}}.-All the expressions will be used to filter the schema objects in DatabaseSchema.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The resource name of the database. Format: instances/{instance}/databases/{database} |-| schema | [string](#string) | | |-| table | [string](#string) | | |------<a name="bytebase-v1-SearchProjectsRequest"></a>### SearchProjectsRequest@@ -7230,24 +7097,6 @@ The project's `name` field is used to identify the project to update. Format-<a name="bytebase-v1-UpdateSchemaGroupRequest"></a>--### UpdateSchemaGroupRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| schema_group | [SchemaGroup](#bytebase-v1-SchemaGroup) | | The schema group to update.--The schema group's `name` field is used to identify the schema group to update. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |------<a name="bytebase-v1-UpdateWebhookRequest"></a>### UpdateWebhookRequest@@ -7378,19 +7227,6 @@ The type of target.-<a name="bytebase-v1-SchemaGroupView"></a>--### SchemaGroupView---| Name | Number | Description |-| ---- | ------ | ----------- |-| SCHEMA_GROUP_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |-| SCHEMA_GROUP_VIEW_BASIC | 1 | Include basic information about the schema group, but exclude the list of matched tables and unmatched tables. |-| SCHEMA_GROUP_VIEW_FULL | 2 | Include everything. |---<a name="bytebase-v1-TenantMode"></a>### TenantMode@@ -7467,11 +7303,6 @@ The type of target.| CreateDatabaseGroup | [CreateDatabaseGroupRequest](#bytebase-v1-CreateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | || UpdateDatabaseGroup | [UpdateDatabaseGroupRequest](#bytebase-v1-UpdateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | || DeleteDatabaseGroup | [DeleteDatabaseGroupRequest](#bytebase-v1-DeleteDatabaseGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| ListSchemaGroups | [ListSchemaGroupsRequest](#bytebase-v1-ListSchemaGroupsRequest) | [ListSchemaGroupsResponse](#bytebase-v1-ListSchemaGroupsResponse) | |-| GetSchemaGroup | [GetSchemaGroupRequest](#bytebase-v1-GetSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |-| CreateSchemaGroup | [CreateSchemaGroupRequest](#bytebase-v1-CreateSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |-| UpdateSchemaGroup | [UpdateSchemaGroupRequest](#bytebase-v1-UpdateSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |-| DeleteSchemaGroup | [DeleteSchemaGroupRequest](#bytebase-v1-DeleteSchemaGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | || GetProjectProtectionRules | [GetProjectProtectionRulesRequest](#bytebase-v1-GetProjectProtectionRulesRequest) | [ProtectionRules](#bytebase-v1-ProtectionRules) | || UpdateProjectProtectionRules | [UpdateProjectProtectionRulesRequest](#bytebase-v1-UpdateProjectProtectionRulesRequest) | [ProtectionRules](#bytebase-v1-ProtectionRules) | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 3654ee3cf7..77391646e5 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1661,10 +1661,6 @@<a href="#bytebase.v1.CreateProjectRequest"><span class="badge">M</span>CreateProjectRequest</a></li>- <li>- <a href="#bytebase.v1.CreateSchemaGroupRequest"><span class="badge">M</span>CreateSchemaGroupRequest</a>- </li>-<li><a href="#bytebase.v1.DatabaseGroup"><span class="badge">M</span>DatabaseGroup</a></li>@@ -1681,10 +1677,6 @@<a href="#bytebase.v1.DeleteProjectRequest"><span class="badge">M</span>DeleteProjectRequest</a></li>- <li>- <a href="#bytebase.v1.DeleteSchemaGroupRequest"><span class="badge">M</span>DeleteSchemaGroupRequest</a>- </li>-<li><a href="#bytebase.v1.DeploymentConfig"><span class="badge">M</span>DeploymentConfig</a></li>@@ -1713,10 +1705,6 @@<a href="#bytebase.v1.GetProjectRequest"><span class="badge">M</span>GetProjectRequest</a></li>- <li>- <a href="#bytebase.v1.GetSchemaGroupRequest"><span class="badge">M</span>GetSchemaGroupRequest</a>- </li>-<li><a href="#bytebase.v1.Label"><span class="badge">M</span>Label</a></li>@@ -1745,14 +1733,6 @@<a href="#bytebase.v1.ListProjectsResponse"><span class="badge">M</span>ListProjectsResponse</a></li>- <li>- <a href="#bytebase.v1.ListSchemaGroupsRequest"><span class="badge">M</span>ListSchemaGroupsRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListSchemaGroupsResponse"><span class="badge">M</span>ListSchemaGroupsResponse</a>- </li>-<li><a href="#bytebase.v1.Project"><span class="badge">M</span>Project</a></li>@@ -1777,14 +1757,6 @@<a href="#bytebase.v1.ScheduleDeployment"><span class="badge">M</span>ScheduleDeployment</a></li>- <li>- <a href="#bytebase.v1.SchemaGroup"><span class="badge">M</span>SchemaGroup</a>- </li>-- <li>- <a href="#bytebase.v1.SchemaGroup.Table"><span class="badge">M</span>SchemaGroup.Table</a>- </li>-<li><a href="#bytebase.v1.SearchProjectsRequest"><span class="badge">M</span>SearchProjectsRequest</a></li>@@ -1825,10 +1797,6 @@<a href="#bytebase.v1.UpdateProjectRequest"><span class="badge">M</span>UpdateProjectRequest</a></li>- <li>- <a href="#bytebase.v1.UpdateSchemaGroupRequest"><span class="badge">M</span>UpdateSchemaGroupRequest</a>- </li>-<li><a href="#bytebase.v1.UpdateWebhookRequest"><span class="badge">M</span>UpdateWebhookRequest</a></li>@@ -1858,10 +1826,6 @@<a href="#bytebase.v1.ProtectionRule.Target"><span class="badge">E</span>ProtectionRule.Target</a></li>- <li>- <a href="#bytebase.v1.SchemaGroupView"><span class="badge">E</span>SchemaGroupView</a>- </li>-<li><a href="#bytebase.v1.TenantMode"><span class="badge">E</span>TenantMode</a></li>@@ -18628,56 +18592,6 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.CreateSchemaGroupRequest">CreateSchemaGroupRequest</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 schema group will be created.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>- </tr>-- <tr>- <td>schema_group</td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td></td>- <td><p>The schema group to create. </p></td>- </tr>-- <tr>- <td>schema_group_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The ID to use for the schema group, which will become the final component of-the schema group's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][0-9]-/. </p></td>- </tr>-- <tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If set, validate the create request and preview the full schema group response, but do not actually create it. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.DatabaseGroup">DatabaseGroup</h3><p></p>@@ -18814,31 +18728,6 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.DeleteSchemaGroupRequest">DeleteSchemaGroupRequest</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 schema group to delete.-Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.DeploymentConfig">DeploymentConfig</h3><p></p>@@ -19034,38 +18923,6 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.GetSchemaGroupRequest">GetSchemaGroupRequest</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 group to retrieve.-Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>- </tr>-- <tr>- <td>view</td>- <td><a href="#bytebase.v1.SchemaGroupView">SchemaGroupView</a></td>- <td></td>- <td><p>The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.Label">Label</h3><p></p>@@ -19322,84 +19179,6 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListSchemaGroupsRequest">ListSchemaGroupsRequest</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 whose schema groups are to be listed.-Format: projects/{project}/schemaGroups/{schemaGroup} </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 `ListSchemaGroups` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListSchemaGroups` must match-the call that provided the page token. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListSchemaGroupsResponse">ListSchemaGroupsResponse</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_groups</td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td>repeated</td>- <td><p>schema_groups is the list of schema groups. </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.Project">Project</h3><p></p>@@ -19659,100 +19438,6 @@ Format: projects/{project}/protectionRules </p></td>- <h3 id="bytebase.v1.SchemaGroup">SchemaGroup</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 schema group.-Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>- </tr>-- <tr>- <td>table_expr</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>- <td></td>- <td><p>The table condition that is associated with this schema group.-The table_placeholder in the sheet script will be rendered to the actual table name. </p></td>- </tr>-- <tr>- <td>table_placeholder</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The table placeholder used for rendering. For example, if set to "tbl", all the table name-"tbl" in the SQL script will be rendered to the actual table name. </p></td>- </tr>-- <tr>- <td>matched_tables</td>- <td><a href="#bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</a></td>- <td>repeated</td>- <td><p>The list of databases that match the database group condition. </p></td>- </tr>-- <tr>- <td>unmatched_tables</td>- <td><a href="#bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</a></td>- <td>repeated</td>- <td><p>The list of databases that match the database group condition. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</h3>- <p>In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.</p><p>Its keyword will be {{SCHEMA}}.</p><p>All the expressions will be used to filter the schema objects in DatabaseSchema.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the database.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <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>-- </tbody>- </table>-----<h3 id="bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</h3><p></p>@@ -20030,40 +19715,6 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.UpdateSchemaGroupRequest">UpdateSchemaGroupRequest</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_group</td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td></td>- <td><p>The schema group to update.--The schema group's `name` field is used to identify the schema group to update.-Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </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.UpdateWebhookRequest">UpdateWebhookRequest</h3><p></p>@@ -20436,36 +20087,6 @@ The API will default to the BASIC view.</p></td></tbody></table>- <h3 id="bytebase.v1.SchemaGroupView">SchemaGroupView</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SCHEMA_GROUP_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>SCHEMA_GROUP_VIEW_BASIC</td>- <td>1</td>- <td><p>Include basic information about the schema group, but exclude the list of matched tables and unmatched tables.</p></td>- </tr>-- <tr>- <td>SCHEMA_GROUP_VIEW_FULL</td>- <td>2</td>- <td><p>Include everything.</p></td>- </tr>-- </tbody>- </table>-<h3 id="bytebase.v1.TenantMode">TenantMode</h3><p></p><table class="enum-table">@@ -20742,41 +20363,6 @@ The API will default to the BASIC view.</p></td><td><p></p></td></tr>- <tr>- <td>ListSchemaGroups</td>- <td><a href="#bytebase.v1.ListSchemaGroupsRequest">ListSchemaGroupsRequest</a></td>- <td><a href="#bytebase.v1.ListSchemaGroupsResponse">ListSchemaGroupsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetSchemaGroup</td>- <td><a href="#bytebase.v1.GetSchemaGroupRequest">GetSchemaGroupRequest</a></td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateSchemaGroup</td>- <td><a href="#bytebase.v1.CreateSchemaGroupRequest">CreateSchemaGroupRequest</a></td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateSchemaGroup</td>- <td><a href="#bytebase.v1.UpdateSchemaGroupRequest">UpdateSchemaGroupRequest</a></td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteSchemaGroup</td>- <td><a href="#bytebase.v1.DeleteSchemaGroupRequest">DeleteSchemaGroupRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-<tr><td>GetProjectProtectionRules</td><td><a href="#bytebase.v1.GetProjectProtectionRulesRequest">GetProjectProtectionRulesRequest</a></td>@@ -21021,56 +20607,6 @@ The API will default to the BASIC view.</p></td>- <tr>- <td>ListSchemaGroups</td>- <td>GET</td>- <td>/v1/{parent=projects/*/databaseGroups/*}/schemaGroups</td>- <td></td>- </tr>----- <tr>- <td>GetSchemaGroup</td>- <td>GET</td>- <td>/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}</td>- <td></td>- </tr>----- <tr>- <td>CreateSchemaGroup</td>- <td>POST</td>- <td>/v1/{parent=projects/*/databaseGroups/*}/schemaGroups</td>- <td>schema_group</td>- </tr>----- <tr>- <td>UpdateSchemaGroup</td>- <td>PATCH</td>- <td>/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}</td>- <td>schema_group</td>- </tr>----- <tr>- <td>DeleteSchemaGroup</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}</td>- <td></td>- </tr>----<tr><td>GetProjectProtectionRules</td><td>GET</td>diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.goindex c35ec0a515..728e8d3011 100644--- a/proto/generated-go/v1/project_service.pb.go+++ b/proto/generated-go/v1/project_service.pb.go@@ -231,59 +231,6 @@ func (DatabaseGroupView) EnumDescriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{3}}-type SchemaGroupView int32--const (- // The default / unset value.- // The API will default to the BASIC view.- SchemaGroupView_SCHEMA_GROUP_VIEW_UNSPECIFIED SchemaGroupView = 0- // Include basic information about the schema group, but exclude the list of matched tables and unmatched tables.- SchemaGroupView_SCHEMA_GROUP_VIEW_BASIC SchemaGroupView = 1- // Include everything.- SchemaGroupView_SCHEMA_GROUP_VIEW_FULL SchemaGroupView = 2-)--// Enum value maps for SchemaGroupView.-var (- SchemaGroupView_name = map[int32]string{- 0: "SCHEMA_GROUP_VIEW_UNSPECIFIED",- 1: "SCHEMA_GROUP_VIEW_BASIC",- 2: "SCHEMA_GROUP_VIEW_FULL",- }- SchemaGroupView_value = map[string]int32{- "SCHEMA_GROUP_VIEW_UNSPECIFIED": 0,- "SCHEMA_GROUP_VIEW_BASIC": 1,- "SCHEMA_GROUP_VIEW_FULL": 2,- }-)--func (x SchemaGroupView) Enum() *SchemaGroupView {- p := new(SchemaGroupView)- *p = x- return p-}--func (x SchemaGroupView) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (SchemaGroupView) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[4].Descriptor()-}--func (SchemaGroupView) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[4]-}--func (x SchemaGroupView) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use SchemaGroupView.Descriptor instead.-func (SchemaGroupView) EnumDescriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{4}-}-type Webhook_Type int32const (@@ -332,11 +279,11 @@ func (x Webhook_Type) String() string {}func (Webhook_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[5].Descriptor()+ return file_v1_project_service_proto_enumTypes[4].Descriptor()}func (Webhook_Type) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[5]+ return &file_v1_project_service_proto_enumTypes[4]}func (x Webhook_Type) Number() protoreflect.EnumNumber {@@ -468,11 +415,11 @@ func (x Activity_Type) String() string {}func (Activity_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[6].Descriptor()+ return file_v1_project_service_proto_enumTypes[5].Descriptor()}func (Activity_Type) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[6]+ return &file_v1_project_service_proto_enumTypes[5]}func (x Activity_Type) Number() protoreflect.EnumNumber {@@ -518,11 +465,11 @@ func (x ProtectionRule_Target) String() string {}func (ProtectionRule_Target) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[7].Descriptor()+ return file_v1_project_service_proto_enumTypes[6].Descriptor()}func (ProtectionRule_Target) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[7]+ return &file_v1_project_service_proto_enumTypes[6]}func (x ProtectionRule_Target) Number() protoreflect.EnumNumber {@@ -531,7 +478,7 @@ func (x ProtectionRule_Target) Number() protoreflect.EnumNumber {// Deprecated: Use ProtectionRule_Target.Descriptor instead.func (ProtectionRule_Target) EnumDescriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{47, 0}+ return file_v1_project_service_proto_rawDescGZIP(), []int{40, 0}}type ProtectionRule_BranchSource int32@@ -564,11 +511,11 @@ func (x ProtectionRule_BranchSource) String() string {}func (ProtectionRule_BranchSource) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[8].Descriptor()+ return file_v1_project_service_proto_enumTypes[7].Descriptor()}func (ProtectionRule_BranchSource) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[8]+ return &file_v1_project_service_proto_enumTypes[7]}func (x ProtectionRule_BranchSource) Number() protoreflect.EnumNumber {@@ -577,7 +524,7 @@ func (x ProtectionRule_BranchSource) Number() protoreflect.EnumNumber {// Deprecated: Use ProtectionRule_BranchSource.Descriptor instead.func (ProtectionRule_BranchSource) EnumDescriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{47, 1}+ return file_v1_project_service_proto_rawDescGZIP(), []int{40, 1}}type GetProjectRequest struct {@@ -2788,28 +2735,18 @@ func (x *DatabaseGroup) GetUnmatchedDatabases() []*DatabaseGroup_Database {return nil}-type CreateSchemaGroupRequest struct {+type GetProjectProtectionRulesRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The parent resource where this schema group will be created.- // Format: projects/{project}/databaseGroups/{databaseGroup}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The schema group to create.- SchemaGroup *SchemaGroup `protobuf:"bytes,2,opt,name=schema_group,json=schemaGroup,proto3" json:"schema_group,omitempty"`- // The ID to use for the schema group, which will become the final component of- // the schema group's resource name.- //- // This value should be 4-63 characters, and valid characters- // are /[a-z][0-9]-/.- SchemaGroupId string `protobuf:"bytes,3,opt,name=schema_group_id,json=schemaGroupId,proto3" json:"schema_group_id,omitempty"`- // If set, validate the create request and preview the full schema group response, but do not actually create it.- ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`+ // The name of the protection rules.+ // Format: projects/{project}/protectionRules+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`}-func (x *CreateSchemaGroupRequest) Reset() {- *x = CreateSchemaGroupRequest{}+func (x *GetProjectProtectionRulesRequest) Reset() {+ *x = GetProjectProtectionRulesRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[37]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2817,13 +2754,13 @@ func (x *CreateSchemaGroupRequest) Reset() {}}-func (x *CreateSchemaGroupRequest) String() string {+func (x *GetProjectProtectionRulesRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*CreateSchemaGroupRequest) ProtoMessage() {}+func (*GetProjectProtectionRulesRequest) ProtoMessage() {}-func (x *CreateSchemaGroupRequest) ProtoReflect() protoreflect.Message {+func (x *GetProjectProtectionRulesRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[37]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2835,55 +2772,28 @@ func (x *CreateSchemaGroupRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use CreateSchemaGroupRequest.ProtoReflect.Descriptor instead.-func (*CreateSchemaGroupRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use GetProjectProtectionRulesRequest.ProtoReflect.Descriptor instead.+func (*GetProjectProtectionRulesRequest) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{37}}-func (x *CreateSchemaGroupRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *CreateSchemaGroupRequest) GetSchemaGroup() *SchemaGroup {- if x != nil {- return x.SchemaGroup- }- return nil-}--func (x *CreateSchemaGroupRequest) GetSchemaGroupId() string {+func (x *GetProjectProtectionRulesRequest) GetName() string {if x != nil {- return x.SchemaGroupId+ return x.Name}return ""}-func (x *CreateSchemaGroupRequest) GetValidateOnly() bool {- if x != nil {- return x.ValidateOnly- }- return false-}--type UpdateSchemaGroupRequest struct {+type UpdateProjectProtectionRulesRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The schema group to update.- //- // The schema group's `name` field is used to identify the schema group to update.- // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- SchemaGroup *SchemaGroup `protobuf:"bytes,1,opt,name=schema_group,json=schemaGroup,proto3" json:"schema_group,omitempty"`- // The list of fields to update.- UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`+ ProtectionRules *ProtectionRules `protobuf:"bytes,2,opt,name=protection_rules,json=protectionRules,proto3" json:"protection_rules,omitempty"`}-func (x *UpdateSchemaGroupRequest) Reset() {- *x = UpdateSchemaGroupRequest{}+func (x *UpdateProjectProtectionRulesRequest) Reset() {+ *x = UpdateProjectProtectionRulesRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[38]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2891,13 +2801,13 @@ func (x *UpdateSchemaGroupRequest) Reset() {}}-func (x *UpdateSchemaGroupRequest) String() string {+func (x *UpdateProjectProtectionRulesRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*UpdateSchemaGroupRequest) ProtoMessage() {}+func (*UpdateProjectProtectionRulesRequest) ProtoMessage() {}-func (x *UpdateSchemaGroupRequest) ProtoReflect() protoreflect.Message {+func (x *UpdateProjectProtectionRulesRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[38]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2909,37 +2819,31 @@ func (x *UpdateSchemaGroupRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use UpdateSchemaGroupRequest.ProtoReflect.Descriptor instead.-func (*UpdateSchemaGroupRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use UpdateProjectProtectionRulesRequest.ProtoReflect.Descriptor instead.+func (*UpdateProjectProtectionRulesRequest) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{38}}-func (x *UpdateSchemaGroupRequest) GetSchemaGroup() *SchemaGroup {- if x != nil {- return x.SchemaGroup- }- return nil-}--func (x *UpdateSchemaGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask {+func (x *UpdateProjectProtectionRulesRequest) GetProtectionRules() *ProtectionRules {if x != nil {- return x.UpdateMask+ return x.ProtectionRules}return nil}-type DeleteSchemaGroupRequest struct {+type ProtectionRules struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the schema group to delete.- // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The name of the protection rules.+ // Format: projects/{project}/protectionRules+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ Rules []*ProtectionRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`}-func (x *DeleteSchemaGroupRequest) Reset() {- *x = DeleteSchemaGroupRequest{}+func (x *ProtectionRules) Reset() {+ *x = ProtectionRules{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[39]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2947,13 +2851,13 @@ func (x *DeleteSchemaGroupRequest) Reset() {}}-func (x *DeleteSchemaGroupRequest) String() string {+func (x *ProtectionRules) String() string {return protoimpl.X.MessageStringOf(x)}-func (*DeleteSchemaGroupRequest) ProtoMessage() {}+func (*ProtectionRules) ProtoMessage() {}-func (x *DeleteSchemaGroupRequest) ProtoReflect() protoreflect.Message {+func (x *ProtectionRules) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[39]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2965,41 +2869,43 @@ func (x *DeleteSchemaGroupRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use DeleteSchemaGroupRequest.ProtoReflect.Descriptor instead.-func (*DeleteSchemaGroupRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use ProtectionRules.ProtoReflect.Descriptor instead.+func (*ProtectionRules) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{39}}-func (x *DeleteSchemaGroupRequest) GetName() string {+func (x *ProtectionRules) GetName() string {if x != nil {return x.Name}return ""}-type ListSchemaGroupsRequest struct {+func (x *ProtectionRules) GetRules() []*ProtectionRule {+ if x != nil {+ return x.Rules+ }+ return nil+}++type ProtectionRule struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The parent resource whose schema groups are to be listed.- // Format: projects/{project}/schemaGroups/{schemaGroup}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // 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.- 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 `ListSchemaGroups` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListSchemaGroups` 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"`+ // A unique identifier for a node in UUID format.+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Target ProtectionRule_Target `protobuf:"varint,2,opt,name=target,proto3,enum=bytebase.v1.ProtectionRule_Target" json:"target,omitempty"`+ // The name of the branch/changelist or wildcard.+ NameFilter string `protobuf:"bytes,3,opt,name=name_filter,json=nameFilter,proto3" json:"name_filter,omitempty"`+ // The roles allowed to create branches or changelists, rebase branches, delete branches.+ // Format: roles/projectOwner.+ AllowedRoles []string `protobuf:"bytes,4,rep,name=allowed_roles,json=allowedRoles,proto3" json:"allowed_roles,omitempty"`+ BranchSource ProtectionRule_BranchSource `protobuf:"varint,5,opt,name=branch_source,json=branchSource,proto3,enum=bytebase.v1.ProtectionRule_BranchSource" json:"branch_source,omitempty"`}-func (x *ListSchemaGroupsRequest) Reset() {- *x = ListSchemaGroupsRequest{}+func (x *ProtectionRule) Reset() {+ *x = ProtectionRule{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[40]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3007,13 +2913,13 @@ func (x *ListSchemaGroupsRequest) Reset() {}}-func (x *ListSchemaGroupsRequest) String() string {+func (x *ProtectionRule) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListSchemaGroupsRequest) ProtoMessage() {}+func (*ProtectionRule) ProtoMessage() {}-func (x *ListSchemaGroupsRequest) ProtoReflect() protoreflect.Message {+func (x *ProtectionRule) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[40]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3025,119 +2931,72 @@ func (x *ListSchemaGroupsRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListSchemaGroupsRequest.ProtoReflect.Descriptor instead.-func (*ListSchemaGroupsRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use ProtectionRule.ProtoReflect.Descriptor instead.+func (*ProtectionRule) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{40}}-func (x *ListSchemaGroupsRequest) GetParent() string {+func (x *ProtectionRule) GetId() string {if x != nil {- return x.Parent+ return x.Id}return ""}-func (x *ListSchemaGroupsRequest) GetPageSize() int32 {+func (x *ProtectionRule) GetTarget() ProtectionRule_Target {if x != nil {- return x.PageSize+ return x.Target}- return 0+ return ProtectionRule_PROTECTION_TARGET_UNSPECIFIED}-func (x *ListSchemaGroupsRequest) GetPageToken() string {+func (x *ProtectionRule) GetNameFilter() string {if x != nil {- return x.PageToken+ return x.NameFilter}return ""}-type ListSchemaGroupsResponse struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // schema_groups is the list of schema groups.- SchemaGroups []*SchemaGroup `protobuf:"bytes,1,rep,name=schema_groups,json=schemaGroups,proto3" json:"schema_groups,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 *ListSchemaGroupsResponse) Reset() {- *x = ListSchemaGroupsResponse{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[41]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListSchemaGroupsResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListSchemaGroupsResponse) ProtoMessage() {}--func (x *ListSchemaGroupsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_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 ListSchemaGroupsResponse.ProtoReflect.Descriptor instead.-func (*ListSchemaGroupsResponse) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{41}-}--func (x *ListSchemaGroupsResponse) GetSchemaGroups() []*SchemaGroup {+func (x *ProtectionRule) GetAllowedRoles() []string {if x != nil {- return x.SchemaGroups+ return x.AllowedRoles}return nil}-func (x *ListSchemaGroupsResponse) GetNextPageToken() string {+func (x *ProtectionRule) GetBranchSource() ProtectionRule_BranchSource {if x != nil {- return x.NextPageToken+ return x.BranchSource}- return ""+ return ProtectionRule_BRANCH_SOURCE_UNSPECIFIED}-type GetSchemaGroupRequest struct {+type BatchGetIamPolicyResponse_PolicyResult struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the database group to retrieve.- // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC.- View SchemaGroupView `protobuf:"varint,2,opt,name=view,proto3,enum=bytebase.v1.SchemaGroupView" json:"view,omitempty"`+ Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`+ Policy *IamPolicy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`}-func (x *GetSchemaGroupRequest) Reset() {- *x = GetSchemaGroupRequest{}+func (x *BatchGetIamPolicyResponse_PolicyResult) Reset() {+ *x = BatchGetIamPolicyResponse_PolicyResult{}if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[42]+ mi := &file_v1_project_service_proto_msgTypes[41]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}}-func (x *GetSchemaGroupRequest) String() string {+func (x *BatchGetIamPolicyResponse_PolicyResult) String() string {return protoimpl.X.MessageStringOf(x)}-func (*GetSchemaGroupRequest) ProtoMessage() {}+func (*BatchGetIamPolicyResponse_PolicyResult) ProtoMessage() {}-func (x *GetSchemaGroupRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[42]+func (x *BatchGetIamPolicyResponse_PolicyResult) ProtoReflect() protoreflect.Message {+ mi := &file_v1_project_service_proto_msgTypes[41]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3148,62 +3007,52 @@ func (x *GetSchemaGroupRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use GetSchemaGroupRequest.ProtoReflect.Descriptor instead.-func (*GetSchemaGroupRequest) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{42}+// Deprecated: Use BatchGetIamPolicyResponse_PolicyResult.ProtoReflect.Descriptor instead.+func (*BatchGetIamPolicyResponse_PolicyResult) Descriptor() ([]byte, []int) {+ return file_v1_project_service_proto_rawDescGZIP(), []int{11, 0}}-func (x *GetSchemaGroupRequest) GetName() string {+func (x *BatchGetIamPolicyResponse_PolicyResult) GetProject() string {if x != nil {- return x.Name+ return x.Project}return ""}-func (x *GetSchemaGroupRequest) GetView() SchemaGroupView {+func (x *BatchGetIamPolicyResponse_PolicyResult) GetPolicy() *IamPolicy {if x != nil {- return x.View+ return x.Policy}- return SchemaGroupView_SCHEMA_GROUP_VIEW_UNSPECIFIED+ return nil}-type SchemaGroup struct {+type DatabaseGroup_Database struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the schema group.- // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}+ // The resource name of the database.+ // Format: instances/{instance}/databases/{database}Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The table condition that is associated with this schema group.- // The table_placeholder in the sheet script will be rendered to the actual table name.- TableExpr *expr.Expr `protobuf:"bytes,2,opt,name=table_expr,json=tableExpr,proto3" json:"table_expr,omitempty"`- // The table placeholder used for rendering. For example, if set to "tbl", all the table name- // "tbl" in the SQL script will be rendered to the actual table name.- TablePlaceholder string `protobuf:"bytes,3,opt,name=table_placeholder,json=tablePlaceholder,proto3" json:"table_placeholder,omitempty"`- // The list of databases that match the database group condition.- MatchedTables []*SchemaGroup_Table `protobuf:"bytes,4,rep,name=matched_tables,json=matchedTables,proto3" json:"matched_tables,omitempty"`- // The list of databases that match the database group condition.- UnmatchedTables []*SchemaGroup_Table `protobuf:"bytes,5,rep,name=unmatched_tables,json=unmatchedTables,proto3" json:"unmatched_tables,omitempty"`}-func (x *SchemaGroup) Reset() {- *x = SchemaGroup{}+func (x *DatabaseGroup_Database) Reset() {+ *x = DatabaseGroup_Database{}if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[43]+ mi := &file_v1_project_service_proto_msgTypes[42]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}}-func (x *SchemaGroup) String() string {+func (x *DatabaseGroup_Database) String() string {return protoimpl.X.MessageStringOf(x)}-func (*SchemaGroup) ProtoMessage() {}+func (*DatabaseGroup_Database) ProtoMessage() {}-func (x *SchemaGroup) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[43]+func (x *DatabaseGroup_Database) ProtoReflect() protoreflect.Message {+ mi := &file_v1_project_service_proto_msgTypes[42]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3214,455 +3063,19 @@ func (x *SchemaGroup) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use SchemaGroup.ProtoReflect.Descriptor instead.-func (*SchemaGroup) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{43}+// Deprecated: Use DatabaseGroup_Database.ProtoReflect.Descriptor instead.+func (*DatabaseGroup_Database) Descriptor() ([]byte, []int) {+ return file_v1_project_service_proto_rawDescGZIP(), []int{36, 0}}-func (x *SchemaGroup) GetName() string {+func (x *DatabaseGroup_Database) GetName() string {if x != nil {return x.Name}return ""}-func (x *SchemaGroup) GetTableExpr() *expr.Expr {- if x != nil {- return x.TableExpr- }- return nil-}--func (x *SchemaGroup) GetTablePlaceholder() string {- if x != nil {- return x.TablePlaceholder- }- return ""-}--func (x *SchemaGroup) GetMatchedTables() []*SchemaGroup_Table {- if x != nil {- return x.MatchedTables- }- return nil-}--func (x *SchemaGroup) GetUnmatchedTables() []*SchemaGroup_Table {- if x != nil {- return x.UnmatchedTables- }- return nil-}--type GetProjectProtectionRulesRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the protection rules.- // Format: projects/{project}/protectionRules- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`-}--func (x *GetProjectProtectionRulesRequest) Reset() {- *x = GetProjectProtectionRulesRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[44]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *GetProjectProtectionRulesRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*GetProjectProtectionRulesRequest) ProtoMessage() {}--func (x *GetProjectProtectionRulesRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_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 GetProjectProtectionRulesRequest.ProtoReflect.Descriptor instead.-func (*GetProjectProtectionRulesRequest) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{44}-}--func (x *GetProjectProtectionRulesRequest) GetName() string {- if x != nil {- return x.Name- }- return ""-}--type UpdateProjectProtectionRulesRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- ProtectionRules *ProtectionRules `protobuf:"bytes,2,opt,name=protection_rules,json=protectionRules,proto3" json:"protection_rules,omitempty"`-}--func (x *UpdateProjectProtectionRulesRequest) Reset() {- *x = UpdateProjectProtectionRulesRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[45]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *UpdateProjectProtectionRulesRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*UpdateProjectProtectionRulesRequest) ProtoMessage() {}--func (x *UpdateProjectProtectionRulesRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[45]- 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 UpdateProjectProtectionRulesRequest.ProtoReflect.Descriptor instead.-func (*UpdateProjectProtectionRulesRequest) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{45}-}--func (x *UpdateProjectProtectionRulesRequest) GetProtectionRules() *ProtectionRules {- if x != nil {- return x.ProtectionRules- }- return nil-}--type ProtectionRules struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the protection rules.- // Format: projects/{project}/protectionRules- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- Rules []*ProtectionRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`-}--func (x *ProtectionRules) Reset() {- *x = ProtectionRules{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[46]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ProtectionRules) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ProtectionRules) ProtoMessage() {}--func (x *ProtectionRules) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[46]- 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 ProtectionRules.ProtoReflect.Descriptor instead.-func (*ProtectionRules) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{46}-}--func (x *ProtectionRules) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *ProtectionRules) GetRules() []*ProtectionRule {- if x != nil {- return x.Rules- }- return nil-}--type ProtectionRule struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // A unique identifier for a node in UUID format.- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`- Target ProtectionRule_Target `protobuf:"varint,2,opt,name=target,proto3,enum=bytebase.v1.ProtectionRule_Target" json:"target,omitempty"`- // The name of the branch/changelist or wildcard.- NameFilter string `protobuf:"bytes,3,opt,name=name_filter,json=nameFilter,proto3" json:"name_filter,omitempty"`- // The roles allowed to create branches or changelists, rebase branches, delete branches.- // Format: roles/projectOwner.- AllowedRoles []string `protobuf:"bytes,4,rep,name=allowed_roles,json=allowedRoles,proto3" json:"allowed_roles,omitempty"`- BranchSource ProtectionRule_BranchSource `protobuf:"varint,5,opt,name=branch_source,json=branchSource,proto3,enum=bytebase.v1.ProtectionRule_BranchSource" json:"branch_source,omitempty"`-}--func (x *ProtectionRule) Reset() {- *x = ProtectionRule{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[47]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ProtectionRule) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ProtectionRule) ProtoMessage() {}--func (x *ProtectionRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[47]- 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 ProtectionRule.ProtoReflect.Descriptor instead.-func (*ProtectionRule) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{47}-}--func (x *ProtectionRule) GetId() string {- if x != nil {- return x.Id- }- return ""-}--func (x *ProtectionRule) GetTarget() ProtectionRule_Target {- if x != nil {- return x.Target- }- return ProtectionRule_PROTECTION_TARGET_UNSPECIFIED-}--func (x *ProtectionRule) GetNameFilter() string {- if x != nil {- return x.NameFilter- }- return ""-}--func (x *ProtectionRule) GetAllowedRoles() []string {- if x != nil {- return x.AllowedRoles- }- return nil-}--func (x *ProtectionRule) GetBranchSource() ProtectionRule_BranchSource {- if x != nil {- return x.BranchSource- }- return ProtectionRule_BRANCH_SOURCE_UNSPECIFIED-}--type BatchGetIamPolicyResponse_PolicyResult struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`- Policy *IamPolicy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`-}--func (x *BatchGetIamPolicyResponse_PolicyResult) Reset() {- *x = BatchGetIamPolicyResponse_PolicyResult{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[48]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *BatchGetIamPolicyResponse_PolicyResult) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*BatchGetIamPolicyResponse_PolicyResult) ProtoMessage() {}--func (x *BatchGetIamPolicyResponse_PolicyResult) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[48]- 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 BatchGetIamPolicyResponse_PolicyResult.ProtoReflect.Descriptor instead.-func (*BatchGetIamPolicyResponse_PolicyResult) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{11, 0}-}--func (x *BatchGetIamPolicyResponse_PolicyResult) GetProject() string {- if x != nil {- return x.Project- }- return ""-}--func (x *BatchGetIamPolicyResponse_PolicyResult) GetPolicy() *IamPolicy {- if x != nil {- return x.Policy- }- return nil-}--type DatabaseGroup_Database struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the database.- // Format: instances/{instance}/databases/{database}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`-}--func (x *DatabaseGroup_Database) Reset() {- *x = DatabaseGroup_Database{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[49]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *DatabaseGroup_Database) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*DatabaseGroup_Database) ProtoMessage() {}--func (x *DatabaseGroup_Database) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[49]- 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 DatabaseGroup_Database.ProtoReflect.Descriptor instead.-func (*DatabaseGroup_Database) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{36, 0}-}--func (x *DatabaseGroup_Database) GetName() string {- if x != nil {- return x.Name- }- return ""-}--// In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.-// Its keyword will be {{SCHEMA}}.-// All the expressions will be used to filter the schema objects in DatabaseSchema.-type SchemaGroup_Table struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the database.- // Format: instances/{instance}/databases/{database}- Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`- Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`- Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`-}--func (x *SchemaGroup_Table) Reset() {- *x = SchemaGroup_Table{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[50]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *SchemaGroup_Table) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SchemaGroup_Table) ProtoMessage() {}--func (x *SchemaGroup_Table) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[50]- 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 SchemaGroup_Table.ProtoReflect.Descriptor instead.-func (*SchemaGroup_Table) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{43, 0}-}--func (x *SchemaGroup_Table) GetDatabase() string {- if x != nil {- return x.Database- }- return ""-}--func (x *SchemaGroup_Table) GetSchema() string {- if x != nil {- return x.Schema- }- return ""-}--func (x *SchemaGroup_Table) GetTable() string {- if x != nil {- return x.Table- }- return ""-}--var File_v1_project_service_proto protoreflect.FileDescriptor+var File_v1_project_service_proto protoreflect.FileDescriptorvar file_v1_project_service_proto_rawDesc = []byte{0x0a, 0x18, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x72,@@ -4014,78 +3427,7 @@ var file_v1_project_service_proto_rawDesc = []byte{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, 0xc8, 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, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,- 0x41, 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,- 0x04, 0xe2, 0x41, 0x01, 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,- 0x9a, 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, 0x41, 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, 0x04, 0xe2, 0x41,- 0x01, 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, 0x34, 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, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x22, 0x73, 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, 0x1c, 0x0a,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2,- 0x41, 0x01, 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, 0x63, 0x0a, 0x15, 0x47,- 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 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, 0xf1, 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, 0x4b, 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, 0x04, 0xe2, 0x41, 0x01,- 0x03, 0x52, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73,- 0x12, 0x4f, 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, 0x04, 0xe2, 0x41, 0x01, 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, 0x3c, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3c, 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, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61,@@ -4150,274 +3492,213 @@ var file_v1_project_service_proto_rawDesc = []byte{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, 0xa5, 0x20, 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, 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, 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,+ 0x02, 0x32, 0xc2, 0x19, 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, 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, 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,- 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,+ 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, 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,+ 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, 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, 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, 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, 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,+ 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, 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, 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, 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, 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 (@@ -4432,184 +3713,157 @@ func file_v1_project_service_proto_rawDescGZIP() []byte {return file_v1_project_service_proto_rawDescData}-var file_v1_project_service_proto_enumTypes = make([]protoimpl.EnumInfo, 9)-var file_v1_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 51)+var file_v1_project_service_proto_enumTypes = make([]protoimpl.EnumInfo, 8)+var file_v1_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 43)var file_v1_project_service_proto_goTypes = []interface{}{(Workflow)(0), // 0: bytebase.v1.Workflow(TenantMode)(0), // 1: bytebase.v1.TenantMode(OperatorType)(0), // 2: bytebase.v1.OperatorType(DatabaseGroupView)(0), // 3: bytebase.v1.DatabaseGroupView- (SchemaGroupView)(0), // 4: bytebase.v1.SchemaGroupView- (Webhook_Type)(0), // 5: bytebase.v1.Webhook.Type- (Activity_Type)(0), // 6: bytebase.v1.Activity.Type- (ProtectionRule_Target)(0), // 7: bytebase.v1.ProtectionRule.Target- (ProtectionRule_BranchSource)(0), // 8: bytebase.v1.ProtectionRule.BranchSource- (*GetProjectRequest)(nil), // 9: bytebase.v1.GetProjectRequest- (*ListProjectsRequest)(nil), // 10: bytebase.v1.ListProjectsRequest- (*ListProjectsResponse)(nil), // 11: bytebase.v1.ListProjectsResponse- (*SearchProjectsRequest)(nil), // 12: bytebase.v1.SearchProjectsRequest- (*SearchProjectsResponse)(nil), // 13: bytebase.v1.SearchProjectsResponse- (*CreateProjectRequest)(nil), // 14: bytebase.v1.CreateProjectRequest- (*UpdateProjectRequest)(nil), // 15: bytebase.v1.UpdateProjectRequest- (*DeleteProjectRequest)(nil), // 16: bytebase.v1.DeleteProjectRequest- (*UndeleteProjectRequest)(nil), // 17: bytebase.v1.UndeleteProjectRequest- (*GetIamPolicyRequest)(nil), // 18: bytebase.v1.GetIamPolicyRequest- (*BatchGetIamPolicyRequest)(nil), // 19: bytebase.v1.BatchGetIamPolicyRequest- (*BatchGetIamPolicyResponse)(nil), // 20: bytebase.v1.BatchGetIamPolicyResponse- (*SetIamPolicyRequest)(nil), // 21: bytebase.v1.SetIamPolicyRequest- (*GetDeploymentConfigRequest)(nil), // 22: bytebase.v1.GetDeploymentConfigRequest- (*UpdateDeploymentConfigRequest)(nil), // 23: bytebase.v1.UpdateDeploymentConfigRequest- (*Label)(nil), // 24: bytebase.v1.Label- (*Project)(nil), // 25: bytebase.v1.Project- (*AddWebhookRequest)(nil), // 26: bytebase.v1.AddWebhookRequest- (*UpdateWebhookRequest)(nil), // 27: bytebase.v1.UpdateWebhookRequest- (*RemoveWebhookRequest)(nil), // 28: bytebase.v1.RemoveWebhookRequest- (*TestWebhookRequest)(nil), // 29: bytebase.v1.TestWebhookRequest- (*TestWebhookResponse)(nil), // 30: bytebase.v1.TestWebhookResponse- (*Webhook)(nil), // 31: bytebase.v1.Webhook- (*DeploymentConfig)(nil), // 32: bytebase.v1.DeploymentConfig- (*Schedule)(nil), // 33: bytebase.v1.Schedule- (*ScheduleDeployment)(nil), // 34: bytebase.v1.ScheduleDeployment- (*DeploymentSpec)(nil), // 35: bytebase.v1.DeploymentSpec- (*LabelSelector)(nil), // 36: bytebase.v1.LabelSelector- (*LabelSelectorRequirement)(nil), // 37: bytebase.v1.LabelSelectorRequirement- (*Activity)(nil), // 38: bytebase.v1.Activity- (*ListDatabaseGroupsRequest)(nil), // 39: bytebase.v1.ListDatabaseGroupsRequest- (*ListDatabaseGroupsResponse)(nil), // 40: bytebase.v1.ListDatabaseGroupsResponse- (*GetDatabaseGroupRequest)(nil), // 41: bytebase.v1.GetDatabaseGroupRequest- (*CreateDatabaseGroupRequest)(nil), // 42: bytebase.v1.CreateDatabaseGroupRequest- (*UpdateDatabaseGroupRequest)(nil), // 43: bytebase.v1.UpdateDatabaseGroupRequest- (*DeleteDatabaseGroupRequest)(nil), // 44: bytebase.v1.DeleteDatabaseGroupRequest- (*DatabaseGroup)(nil), // 45: bytebase.v1.DatabaseGroup- (*CreateSchemaGroupRequest)(nil), // 46: bytebase.v1.CreateSchemaGroupRequest- (*UpdateSchemaGroupRequest)(nil), // 47: bytebase.v1.UpdateSchemaGroupRequest- (*DeleteSchemaGroupRequest)(nil), // 48: bytebase.v1.DeleteSchemaGroupRequest- (*ListSchemaGroupsRequest)(nil), // 49: bytebase.v1.ListSchemaGroupsRequest- (*ListSchemaGroupsResponse)(nil), // 50: bytebase.v1.ListSchemaGroupsResponse- (*GetSchemaGroupRequest)(nil), // 51: bytebase.v1.GetSchemaGroupRequest- (*SchemaGroup)(nil), // 52: bytebase.v1.SchemaGroup- (*GetProjectProtectionRulesRequest)(nil), // 53: bytebase.v1.GetProjectProtectionRulesRequest- (*UpdateProjectProtectionRulesRequest)(nil), // 54: bytebase.v1.UpdateProjectProtectionRulesRequest- (*ProtectionRules)(nil), // 55: bytebase.v1.ProtectionRules- (*ProtectionRule)(nil), // 56: bytebase.v1.ProtectionRule- (*BatchGetIamPolicyResponse_PolicyResult)(nil), // 57: bytebase.v1.BatchGetIamPolicyResponse.PolicyResult- (*DatabaseGroup_Database)(nil), // 58: bytebase.v1.DatabaseGroup.Database- (*SchemaGroup_Table)(nil), // 59: bytebase.v1.SchemaGroup.Table- (*fieldmaskpb.FieldMask)(nil), // 60: google.protobuf.FieldMask- (*IamPolicy)(nil), // 61: bytebase.v1.IamPolicy- (State)(0), // 62: bytebase.v1.State- (*expr.Expr)(nil), // 63: google.type.Expr- (*emptypb.Empty)(nil), // 64: google.protobuf.Empty+ (Webhook_Type)(0), // 4: bytebase.v1.Webhook.Type+ (Activity_Type)(0), // 5: bytebase.v1.Activity.Type+ (ProtectionRule_Target)(0), // 6: bytebase.v1.ProtectionRule.Target+ (ProtectionRule_BranchSource)(0), // 7: bytebase.v1.ProtectionRule.BranchSource+ (*GetProjectRequest)(nil), // 8: bytebase.v1.GetProjectRequest+ (*ListProjectsRequest)(nil), // 9: bytebase.v1.ListProjectsRequest+ (*ListProjectsResponse)(nil), // 10: bytebase.v1.ListProjectsResponse+ (*SearchProjectsRequest)(nil), // 11: bytebase.v1.SearchProjectsRequest+ (*SearchProjectsResponse)(nil), // 12: bytebase.v1.SearchProjectsResponse+ (*CreateProjectRequest)(nil), // 13: bytebase.v1.CreateProjectRequest+ (*UpdateProjectRequest)(nil), // 14: bytebase.v1.UpdateProjectRequest+ (*DeleteProjectRequest)(nil), // 15: bytebase.v1.DeleteProjectRequest+ (*UndeleteProjectRequest)(nil), // 16: bytebase.v1.UndeleteProjectRequest+ (*GetIamPolicyRequest)(nil), // 17: bytebase.v1.GetIamPolicyRequest+ (*BatchGetIamPolicyRequest)(nil), // 18: bytebase.v1.BatchGetIamPolicyRequest+ (*BatchGetIamPolicyResponse)(nil), // 19: bytebase.v1.BatchGetIamPolicyResponse+ (*SetIamPolicyRequest)(nil), // 20: bytebase.v1.SetIamPolicyRequest+ (*GetDeploymentConfigRequest)(nil), // 21: bytebase.v1.GetDeploymentConfigRequest+ (*UpdateDeploymentConfigRequest)(nil), // 22: bytebase.v1.UpdateDeploymentConfigRequest+ (*Label)(nil), // 23: bytebase.v1.Label+ (*Project)(nil), // 24: bytebase.v1.Project+ (*AddWebhookRequest)(nil), // 25: bytebase.v1.AddWebhookRequest+ (*UpdateWebhookRequest)(nil), // 26: bytebase.v1.UpdateWebhookRequest+ (*RemoveWebhookRequest)(nil), // 27: bytebase.v1.RemoveWebhookRequest+ (*TestWebhookRequest)(nil), // 28: bytebase.v1.TestWebhookRequest+ (*TestWebhookResponse)(nil), // 29: bytebase.v1.TestWebhookResponse+ (*Webhook)(nil), // 30: bytebase.v1.Webhook+ (*DeploymentConfig)(nil), // 31: bytebase.v1.DeploymentConfig+ (*Schedule)(nil), // 32: bytebase.v1.Schedule+ (*ScheduleDeployment)(nil), // 33: bytebase.v1.ScheduleDeployment+ (*DeploymentSpec)(nil), // 34: bytebase.v1.DeploymentSpec+ (*LabelSelector)(nil), // 35: bytebase.v1.LabelSelector+ (*LabelSelectorRequirement)(nil), // 36: bytebase.v1.LabelSelectorRequirement+ (*Activity)(nil), // 37: bytebase.v1.Activity+ (*ListDatabaseGroupsRequest)(nil), // 38: bytebase.v1.ListDatabaseGroupsRequest+ (*ListDatabaseGroupsResponse)(nil), // 39: bytebase.v1.ListDatabaseGroupsResponse+ (*GetDatabaseGroupRequest)(nil), // 40: bytebase.v1.GetDatabaseGroupRequest+ (*CreateDatabaseGroupRequest)(nil), // 41: bytebase.v1.CreateDatabaseGroupRequest+ (*UpdateDatabaseGroupRequest)(nil), // 42: bytebase.v1.UpdateDatabaseGroupRequest+ (*DeleteDatabaseGroupRequest)(nil), // 43: bytebase.v1.DeleteDatabaseGroupRequest+ (*DatabaseGroup)(nil), // 44: bytebase.v1.DatabaseGroup+ (*GetProjectProtectionRulesRequest)(nil), // 45: bytebase.v1.GetProjectProtectionRulesRequest+ (*UpdateProjectProtectionRulesRequest)(nil), // 46: bytebase.v1.UpdateProjectProtectionRulesRequest+ (*ProtectionRules)(nil), // 47: bytebase.v1.ProtectionRules+ (*ProtectionRule)(nil), // 48: bytebase.v1.ProtectionRule+ (*BatchGetIamPolicyResponse_PolicyResult)(nil), // 49: bytebase.v1.BatchGetIamPolicyResponse.PolicyResult+ (*DatabaseGroup_Database)(nil), // 50: bytebase.v1.DatabaseGroup.Database+ (*fieldmaskpb.FieldMask)(nil), // 51: google.protobuf.FieldMask+ (*IamPolicy)(nil), // 52: bytebase.v1.IamPolicy+ (State)(0), // 53: bytebase.v1.State+ (*expr.Expr)(nil), // 54: google.type.Expr+ (*emptypb.Empty)(nil), // 55: google.protobuf.Empty}var file_v1_project_service_proto_depIdxs = []int32{- 25, // 0: bytebase.v1.ListProjectsResponse.projects:type_name -> bytebase.v1.Project- 25, // 1: bytebase.v1.SearchProjectsResponse.projects:type_name -> bytebase.v1.Project- 25, // 2: bytebase.v1.CreateProjectRequest.project:type_name -> bytebase.v1.Project- 25, // 3: bytebase.v1.UpdateProjectRequest.project:type_name -> bytebase.v1.Project- 60, // 4: bytebase.v1.UpdateProjectRequest.update_mask:type_name -> google.protobuf.FieldMask- 57, // 5: bytebase.v1.BatchGetIamPolicyResponse.policy_results:type_name -> bytebase.v1.BatchGetIamPolicyResponse.PolicyResult- 61, // 6: bytebase.v1.SetIamPolicyRequest.policy:type_name -> bytebase.v1.IamPolicy- 32, // 7: bytebase.v1.UpdateDeploymentConfigRequest.config:type_name -> bytebase.v1.DeploymentConfig- 62, // 8: bytebase.v1.Project.state:type_name -> bytebase.v1.State+ 24, // 0: bytebase.v1.ListProjectsResponse.projects:type_name -> bytebase.v1.Project+ 24, // 1: bytebase.v1.SearchProjectsResponse.projects:type_name -> bytebase.v1.Project+ 24, // 2: bytebase.v1.CreateProjectRequest.project:type_name -> bytebase.v1.Project+ 24, // 3: bytebase.v1.UpdateProjectRequest.project:type_name -> bytebase.v1.Project+ 51, // 4: bytebase.v1.UpdateProjectRequest.update_mask:type_name -> google.protobuf.FieldMask+ 49, // 5: bytebase.v1.BatchGetIamPolicyResponse.policy_results:type_name -> bytebase.v1.BatchGetIamPolicyResponse.PolicyResult+ 52, // 6: bytebase.v1.SetIamPolicyRequest.policy:type_name -> bytebase.v1.IamPolicy+ 31, // 7: bytebase.v1.UpdateDeploymentConfigRequest.config:type_name -> bytebase.v1.DeploymentConfig+ 53, // 8: bytebase.v1.Project.state:type_name -> bytebase.v1.State0, // 9: bytebase.v1.Project.workflow:type_name -> bytebase.v1.Workflow1, // 10: bytebase.v1.Project.tenant_mode:type_name -> bytebase.v1.TenantMode- 31, // 11: bytebase.v1.Project.webhooks:type_name -> bytebase.v1.Webhook- 24, // 12: bytebase.v1.Project.issue_labels:type_name -> bytebase.v1.Label- 31, // 13: bytebase.v1.AddWebhookRequest.webhook:type_name -> bytebase.v1.Webhook- 31, // 14: bytebase.v1.UpdateWebhookRequest.webhook:type_name -> bytebase.v1.Webhook- 60, // 15: bytebase.v1.UpdateWebhookRequest.update_mask:type_name -> google.protobuf.FieldMask- 31, // 16: bytebase.v1.RemoveWebhookRequest.webhook:type_name -> bytebase.v1.Webhook- 31, // 17: bytebase.v1.TestWebhookRequest.webhook:type_name -> bytebase.v1.Webhook- 5, // 18: bytebase.v1.Webhook.type:type_name -> bytebase.v1.Webhook.Type- 6, // 19: bytebase.v1.Webhook.notification_types:type_name -> bytebase.v1.Activity.Type- 33, // 20: bytebase.v1.DeploymentConfig.schedule:type_name -> bytebase.v1.Schedule- 34, // 21: bytebase.v1.Schedule.deployments:type_name -> bytebase.v1.ScheduleDeployment- 35, // 22: bytebase.v1.ScheduleDeployment.spec:type_name -> bytebase.v1.DeploymentSpec- 36, // 23: bytebase.v1.DeploymentSpec.label_selector:type_name -> bytebase.v1.LabelSelector- 37, // 24: bytebase.v1.LabelSelector.match_expressions:type_name -> bytebase.v1.LabelSelectorRequirement+ 30, // 11: bytebase.v1.Project.webhooks:type_name -> bytebase.v1.Webhook+ 23, // 12: bytebase.v1.Project.issue_labels:type_name -> bytebase.v1.Label+ 30, // 13: bytebase.v1.AddWebhookRequest.webhook:type_name -> bytebase.v1.Webhook+ 30, // 14: bytebase.v1.UpdateWebhookRequest.webhook:type_name -> bytebase.v1.Webhook+ 51, // 15: bytebase.v1.UpdateWebhookRequest.update_mask:type_name -> google.protobuf.FieldMask+ 30, // 16: bytebase.v1.RemoveWebhookRequest.webhook:type_name -> bytebase.v1.Webhook+ 30, // 17: bytebase.v1.TestWebhookRequest.webhook:type_name -> bytebase.v1.Webhook+ 4, // 18: bytebase.v1.Webhook.type:type_name -> bytebase.v1.Webhook.Type+ 5, // 19: bytebase.v1.Webhook.notification_types:type_name -> bytebase.v1.Activity.Type+ 32, // 20: bytebase.v1.DeploymentConfig.schedule:type_name -> bytebase.v1.Schedule+ 33, // 21: bytebase.v1.Schedule.deployments:type_name -> bytebase.v1.ScheduleDeployment+ 34, // 22: bytebase.v1.ScheduleDeployment.spec:type_name -> bytebase.v1.DeploymentSpec+ 35, // 23: bytebase.v1.DeploymentSpec.label_selector:type_name -> bytebase.v1.LabelSelector+ 36, // 24: bytebase.v1.LabelSelector.match_expressions:type_name -> bytebase.v1.LabelSelectorRequirement2, // 25: bytebase.v1.LabelSelectorRequirement.operator:type_name -> bytebase.v1.OperatorType- 45, // 26: bytebase.v1.ListDatabaseGroupsResponse.database_groups:type_name -> bytebase.v1.DatabaseGroup+ 44, // 26: bytebase.v1.ListDatabaseGroupsResponse.database_groups:type_name -> bytebase.v1.DatabaseGroup3, // 27: bytebase.v1.GetDatabaseGroupRequest.view:type_name -> bytebase.v1.DatabaseGroupView- 45, // 28: bytebase.v1.CreateDatabaseGroupRequest.database_group:type_name -> bytebase.v1.DatabaseGroup- 45, // 29: bytebase.v1.UpdateDatabaseGroupRequest.database_group:type_name -> bytebase.v1.DatabaseGroup- 60, // 30: bytebase.v1.UpdateDatabaseGroupRequest.update_mask:type_name -> google.protobuf.FieldMask- 63, // 31: bytebase.v1.DatabaseGroup.database_expr:type_name -> google.type.Expr- 58, // 32: bytebase.v1.DatabaseGroup.matched_databases:type_name -> bytebase.v1.DatabaseGroup.Database- 58, // 33: bytebase.v1.DatabaseGroup.unmatched_databases:type_name -> bytebase.v1.DatabaseGroup.Database- 52, // 34: bytebase.v1.CreateSchemaGroupRequest.schema_group:type_name -> bytebase.v1.SchemaGroup- 52, // 35: bytebase.v1.UpdateSchemaGroupRequest.schema_group:type_name -> bytebase.v1.SchemaGroup- 60, // 36: bytebase.v1.UpdateSchemaGroupRequest.update_mask:type_name -> google.protobuf.FieldMask- 52, // 37: bytebase.v1.ListSchemaGroupsResponse.schema_groups:type_name -> bytebase.v1.SchemaGroup- 4, // 38: bytebase.v1.GetSchemaGroupRequest.view:type_name -> bytebase.v1.SchemaGroupView- 63, // 39: bytebase.v1.SchemaGroup.table_expr:type_name -> google.type.Expr- 59, // 40: bytebase.v1.SchemaGroup.matched_tables:type_name -> bytebase.v1.SchemaGroup.Table- 59, // 41: bytebase.v1.SchemaGroup.unmatched_tables:type_name -> bytebase.v1.SchemaGroup.Table- 55, // 42: bytebase.v1.UpdateProjectProtectionRulesRequest.protection_rules:type_name -> bytebase.v1.ProtectionRules- 56, // 43: bytebase.v1.ProtectionRules.rules:type_name -> bytebase.v1.ProtectionRule- 7, // 44: bytebase.v1.ProtectionRule.target:type_name -> bytebase.v1.ProtectionRule.Target- 8, // 45: bytebase.v1.ProtectionRule.branch_source:type_name -> bytebase.v1.ProtectionRule.BranchSource- 61, // 46: bytebase.v1.BatchGetIamPolicyResponse.PolicyResult.policy:type_name -> bytebase.v1.IamPolicy- 9, // 47: bytebase.v1.ProjectService.GetProject:input_type -> bytebase.v1.GetProjectRequest- 10, // 48: bytebase.v1.ProjectService.ListProjects:input_type -> bytebase.v1.ListProjectsRequest- 12, // 49: bytebase.v1.ProjectService.SearchProjects:input_type -> bytebase.v1.SearchProjectsRequest- 14, // 50: bytebase.v1.ProjectService.CreateProject:input_type -> bytebase.v1.CreateProjectRequest- 15, // 51: bytebase.v1.ProjectService.UpdateProject:input_type -> bytebase.v1.UpdateProjectRequest- 16, // 52: bytebase.v1.ProjectService.DeleteProject:input_type -> bytebase.v1.DeleteProjectRequest- 17, // 53: bytebase.v1.ProjectService.UndeleteProject:input_type -> bytebase.v1.UndeleteProjectRequest- 18, // 54: bytebase.v1.ProjectService.GetIamPolicy:input_type -> bytebase.v1.GetIamPolicyRequest- 19, // 55: bytebase.v1.ProjectService.BatchGetIamPolicy:input_type -> bytebase.v1.BatchGetIamPolicyRequest- 21, // 56: bytebase.v1.ProjectService.SetIamPolicy:input_type -> bytebase.v1.SetIamPolicyRequest- 22, // 57: bytebase.v1.ProjectService.GetDeploymentConfig:input_type -> bytebase.v1.GetDeploymentConfigRequest- 23, // 58: bytebase.v1.ProjectService.UpdateDeploymentConfig:input_type -> bytebase.v1.UpdateDeploymentConfigRequest- 26, // 59: bytebase.v1.ProjectService.AddWebhook:input_type -> bytebase.v1.AddWebhookRequest- 27, // 60: bytebase.v1.ProjectService.UpdateWebhook:input_type -> bytebase.v1.UpdateWebhookRequest- 28, // 61: bytebase.v1.ProjectService.RemoveWebhook:input_type -> bytebase.v1.RemoveWebhookRequest- 29, // 62: bytebase.v1.ProjectService.TestWebhook:input_type -> bytebase.v1.TestWebhookRequest- 39, // 63: bytebase.v1.ProjectService.ListDatabaseGroups:input_type -> bytebase.v1.ListDatabaseGroupsRequest- 41, // 64: bytebase.v1.ProjectService.GetDatabaseGroup:input_type -> bytebase.v1.GetDatabaseGroupRequest- 42, // 65: bytebase.v1.ProjectService.CreateDatabaseGroup:input_type -> bytebase.v1.CreateDatabaseGroupRequest- 43, // 66: bytebase.v1.ProjectService.UpdateDatabaseGroup:input_type -> bytebase.v1.UpdateDatabaseGroupRequest- 44, // 67: bytebase.v1.ProjectService.DeleteDatabaseGroup:input_type -> bytebase.v1.DeleteDatabaseGroupRequest- 49, // 68: bytebase.v1.ProjectService.ListSchemaGroups:input_type -> bytebase.v1.ListSchemaGroupsRequest- 51, // 69: bytebase.v1.ProjectService.GetSchemaGroup:input_type -> bytebase.v1.GetSchemaGroupRequest- 46, // 70: bytebase.v1.ProjectService.CreateSchemaGroup:input_type -> bytebase.v1.CreateSchemaGroupRequest- 47, // 71: bytebase.v1.ProjectService.UpdateSchemaGroup:input_type -> bytebase.v1.UpdateSchemaGroupRequest- 48, // 72: bytebase.v1.ProjectService.DeleteSchemaGroup:input_type -> bytebase.v1.DeleteSchemaGroupRequest- 53, // 73: bytebase.v1.ProjectService.GetProjectProtectionRules:input_type -> bytebase.v1.GetProjectProtectionRulesRequest- 54, // 74: bytebase.v1.ProjectService.UpdateProjectProtectionRules:input_type -> bytebase.v1.UpdateProjectProtectionRulesRequest- 25, // 75: bytebase.v1.ProjectService.GetProject:output_type -> bytebase.v1.Project- 11, // 76: bytebase.v1.ProjectService.ListProjects:output_type -> bytebase.v1.ListProjectsResponse- 13, // 77: bytebase.v1.ProjectService.SearchProjects:output_type -> bytebase.v1.SearchProjectsResponse- 25, // 78: bytebase.v1.ProjectService.CreateProject:output_type -> bytebase.v1.Project- 25, // 79: bytebase.v1.ProjectService.UpdateProject:output_type -> bytebase.v1.Project- 64, // 80: bytebase.v1.ProjectService.DeleteProject:output_type -> google.protobuf.Empty- 25, // 81: bytebase.v1.ProjectService.UndeleteProject:output_type -> bytebase.v1.Project- 61, // 82: bytebase.v1.ProjectService.GetIamPolicy:output_type -> bytebase.v1.IamPolicy- 20, // 83: bytebase.v1.ProjectService.BatchGetIamPolicy:output_type -> bytebase.v1.BatchGetIamPolicyResponse- 61, // 84: bytebase.v1.ProjectService.SetIamPolicy:output_type -> bytebase.v1.IamPolicy- 32, // 85: bytebase.v1.ProjectService.GetDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig- 32, // 86: bytebase.v1.ProjectService.UpdateDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig- 25, // 87: bytebase.v1.ProjectService.AddWebhook:output_type -> bytebase.v1.Project- 25, // 88: bytebase.v1.ProjectService.UpdateWebhook:output_type -> bytebase.v1.Project- 25, // 89: bytebase.v1.ProjectService.RemoveWebhook:output_type -> bytebase.v1.Project- 30, // 90: bytebase.v1.ProjectService.TestWebhook:output_type -> bytebase.v1.TestWebhookResponse- 40, // 91: bytebase.v1.ProjectService.ListDatabaseGroups:output_type -> bytebase.v1.ListDatabaseGroupsResponse- 45, // 92: bytebase.v1.ProjectService.GetDatabaseGroup:output_type -> bytebase.v1.DatabaseGroup- 45, // 93: bytebase.v1.ProjectService.CreateDatabaseGroup:output_type -> bytebase.v1.DatabaseGroup- 45, // 94: bytebase.v1.ProjectService.UpdateDatabaseGroup:output_type -> bytebase.v1.DatabaseGroup- 64, // 95: bytebase.v1.ProjectService.DeleteDatabaseGroup:output_type -> google.protobuf.Empty- 50, // 96: bytebase.v1.ProjectService.ListSchemaGroups:output_type -> bytebase.v1.ListSchemaGroupsResponse- 52, // 97: bytebase.v1.ProjectService.GetSchemaGroup:output_type -> bytebase.v1.SchemaGroup- 52, // 98: bytebase.v1.ProjectService.CreateSchemaGroup:output_type -> bytebase.v1.SchemaGroup- 52, // 99: bytebase.v1.ProjectService.UpdateSchemaGroup:output_type -> bytebase.v1.SchemaGroup- 64, // 100: bytebase.v1.ProjectService.DeleteSchemaGroup:output_type -> google.protobuf.Empty- 55, // 101: bytebase.v1.ProjectService.GetProjectProtectionRules:output_type -> bytebase.v1.ProtectionRules- 55, // 102: bytebase.v1.ProjectService.UpdateProjectProtectionRules:output_type -> bytebase.v1.ProtectionRules- 75, // [75:103] is the sub-list for method output_type- 47, // [47:75] is the sub-list for method input_type- 47, // [47:47] is the sub-list for extension type_name- 47, // [47:47] is the sub-list for extension extendee- 0, // [0:47] is the sub-list for field type_name+ 44, // 28: bytebase.v1.CreateDatabaseGroupRequest.database_group:type_name -> bytebase.v1.DatabaseGroup+ 44, // 29: bytebase.v1.UpdateDatabaseGroupRequest.database_group:type_name -> bytebase.v1.DatabaseGroup+ 51, // 30: bytebase.v1.UpdateDatabaseGroupRequest.update_mask:type_name -> google.protobuf.FieldMask+ 54, // 31: bytebase.v1.DatabaseGroup.database_expr:type_name -> google.type.Expr+ 50, // 32: bytebase.v1.DatabaseGroup.matched_databases:type_name -> bytebase.v1.DatabaseGroup.Database+ 50, // 33: bytebase.v1.DatabaseGroup.unmatched_databases:type_name -> bytebase.v1.DatabaseGroup.Database+ 47, // 34: bytebase.v1.UpdateProjectProtectionRulesRequest.protection_rules:type_name -> bytebase.v1.ProtectionRules+ 48, // 35: bytebase.v1.ProtectionRules.rules:type_name -> bytebase.v1.ProtectionRule+ 6, // 36: bytebase.v1.ProtectionRule.target:type_name -> bytebase.v1.ProtectionRule.Target+ 7, // 37: bytebase.v1.ProtectionRule.branch_source:type_name -> bytebase.v1.ProtectionRule.BranchSource+ 52, // 38: bytebase.v1.BatchGetIamPolicyResponse.PolicyResult.policy:type_name -> bytebase.v1.IamPolicy+ 8, // 39: bytebase.v1.ProjectService.GetProject:input_type -> bytebase.v1.GetProjectRequest+ 9, // 40: bytebase.v1.ProjectService.ListProjects:input_type -> bytebase.v1.ListProjectsRequest+ 11, // 41: bytebase.v1.ProjectService.SearchProjects:input_type -> bytebase.v1.SearchProjectsRequest+ 13, // 42: bytebase.v1.ProjectService.CreateProject:input_type -> bytebase.v1.CreateProjectRequest+ 14, // 43: bytebase.v1.ProjectService.UpdateProject:input_type -> bytebase.v1.UpdateProjectRequest+ 15, // 44: bytebase.v1.ProjectService.DeleteProject:input_type -> bytebase.v1.DeleteProjectRequest+ 16, // 45: bytebase.v1.ProjectService.UndeleteProject:input_type -> bytebase.v1.UndeleteProjectRequest+ 17, // 46: bytebase.v1.ProjectService.GetIamPolicy:input_type -> bytebase.v1.GetIamPolicyRequest+ 18, // 47: bytebase.v1.ProjectService.BatchGetIamPolicy:input_type -> bytebase.v1.BatchGetIamPolicyRequest+ 20, // 48: bytebase.v1.ProjectService.SetIamPolicy:input_type -> bytebase.v1.SetIamPolicyRequest+ 21, // 49: bytebase.v1.ProjectService.GetDeploymentConfig:input_type -> bytebase.v1.GetDeploymentConfigRequest+ 22, // 50: bytebase.v1.ProjectService.UpdateDeploymentConfig:input_type -> bytebase.v1.UpdateDeploymentConfigRequest+ 25, // 51: bytebase.v1.ProjectService.AddWebhook:input_type -> bytebase.v1.AddWebhookRequest+ 26, // 52: bytebase.v1.ProjectService.UpdateWebhook:input_type -> bytebase.v1.UpdateWebhookRequest+ 27, // 53: bytebase.v1.ProjectService.RemoveWebhook:input_type -> bytebase.v1.RemoveWebhookRequest+ 28, // 54: bytebase.v1.ProjectService.TestWebhook:input_type -> bytebase.v1.TestWebhookRequest+ 38, // 55: bytebase.v1.ProjectService.ListDatabaseGroups:input_type -> bytebase.v1.ListDatabaseGroupsRequest+ 40, // 56: bytebase.v1.ProjectService.GetDatabaseGroup:input_type -> bytebase.v1.GetDatabaseGroupRequest+ 41, // 57: bytebase.v1.ProjectService.CreateDatabaseGroup:input_type -> bytebase.v1.CreateDatabaseGroupRequest+ 42, // 58: bytebase.v1.ProjectService.UpdateDatabaseGroup:input_type -> bytebase.v1.UpdateDatabaseGroupRequest+ 43, // 59: bytebase.v1.ProjectService.DeleteDatabaseGroup:input_type -> bytebase.v1.DeleteDatabaseGroupRequest+ 45, // 60: bytebase.v1.ProjectService.GetProjectProtectionRules:input_type -> bytebase.v1.GetProjectProtectionRulesRequest+ 46, // 61: bytebase.v1.ProjectService.UpdateProjectProtectionRules:input_type -> bytebase.v1.UpdateProjectProtectionRulesRequest+ 24, // 62: bytebase.v1.ProjectService.GetProject:output_type -> bytebase.v1.Project+ 10, // 63: bytebase.v1.ProjectService.ListProjects:output_type -> bytebase.v1.ListProjectsResponse+ 12, // 64: bytebase.v1.ProjectService.SearchProjects:output_type -> bytebase.v1.SearchProjectsResponse+ 24, // 65: bytebase.v1.ProjectService.CreateProject:output_type -> bytebase.v1.Project+ 24, // 66: bytebase.v1.ProjectService.UpdateProject:output_type -> bytebase.v1.Project+ 55, // 67: bytebase.v1.ProjectService.DeleteProject:output_type -> google.protobuf.Empty+ 24, // 68: bytebase.v1.ProjectService.UndeleteProject:output_type -> bytebase.v1.Project+ 52, // 69: bytebase.v1.ProjectService.GetIamPolicy:output_type -> bytebase.v1.IamPolicy+ 19, // 70: bytebase.v1.ProjectService.BatchGetIamPolicy:output_type -> bytebase.v1.BatchGetIamPolicyResponse+ 52, // 71: bytebase.v1.ProjectService.SetIamPolicy:output_type -> bytebase.v1.IamPolicy+ 31, // 72: bytebase.v1.ProjectService.GetDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig+ 31, // 73: bytebase.v1.ProjectService.UpdateDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig+ 24, // 74: bytebase.v1.ProjectService.AddWebhook:output_type -> bytebase.v1.Project+ 24, // 75: bytebase.v1.ProjectService.UpdateWebhook:output_type -> bytebase.v1.Project+ 24, // 76: bytebase.v1.ProjectService.RemoveWebhook:output_type -> bytebase.v1.Project+ 29, // 77: bytebase.v1.ProjectService.TestWebhook:output_type -> bytebase.v1.TestWebhookResponse+ 39, // 78: bytebase.v1.ProjectService.ListDatabaseGroups:output_type -> bytebase.v1.ListDatabaseGroupsResponse+ 44, // 79: bytebase.v1.ProjectService.GetDatabaseGroup:output_type -> bytebase.v1.DatabaseGroup+ 44, // 80: bytebase.v1.ProjectService.CreateDatabaseGroup:output_type -> bytebase.v1.DatabaseGroup+ 44, // 81: bytebase.v1.ProjectService.UpdateDatabaseGroup:output_type -> bytebase.v1.DatabaseGroup+ 55, // 82: bytebase.v1.ProjectService.DeleteDatabaseGroup:output_type -> google.protobuf.Empty+ 47, // 83: bytebase.v1.ProjectService.GetProjectProtectionRules:output_type -> bytebase.v1.ProtectionRules+ 47, // 84: bytebase.v1.ProjectService.UpdateProjectProtectionRules:output_type -> bytebase.v1.ProtectionRules+ 62, // [62:85] is the sub-list for method output_type+ 39, // [39:62] is the sub-list for method input_type+ 39, // [39:39] is the sub-list for extension type_name+ 39, // [39:39] is the sub-list for extension extendee+ 0, // [0:39] is the sub-list for field type_name}func init() { file_v1_project_service_proto_init() }@@ -5065,90 +4319,6 @@ func file_v1_project_service_proto_init() {}}file_v1_project_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*CreateSchemaGroupRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*UpdateSchemaGroupRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DeleteSchemaGroupRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListSchemaGroupsRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListSchemaGroupsResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GetSchemaGroupRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SchemaGroup); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*GetProjectProtectionRulesRequest); i {case 0:return &v.state@@ -5160,7 +4330,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*UpdateProjectProtectionRulesRequest); i {case 0:return &v.state@@ -5172,7 +4342,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ProtectionRules); i {case 0:return &v.state@@ -5184,7 +4354,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ProtectionRule); i {case 0:return &v.state@@ -5196,7 +4366,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*BatchGetIamPolicyResponse_PolicyResult); i {case 0:return &v.state@@ -5208,7 +4378,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DatabaseGroup_Database); i {case 0:return &v.state@@ -5220,26 +4390,14 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SchemaGroup_Table); 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{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_project_service_proto_rawDesc,- NumEnums: 9,- NumMessages: 51,+ NumEnums: 8,+ NumMessages: 43,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/project_service.pb.gw.go b/proto/generated-go/v1/project_service.pb.gw.goindex d175fdd521..4095d778b2 100644--- a/proto/generated-go/v1/project_service.pb.gw.go+++ b/proto/generated-go/v1/project_service.pb.gw.go@@ -1333,376 +1333,6 @@ func local_request_ProjectService_DeleteDatabaseGroup_0(ctx context.Context, mar}-var (- filter_ProjectService_ListSchemaGroups_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}-)--func request_ProjectService_ListSchemaGroups_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListSchemaGroupsRequest- 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_ProjectService_ListSchemaGroups_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.ListSchemaGroups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_ListSchemaGroups_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListSchemaGroupsRequest- 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_ProjectService_ListSchemaGroups_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.ListSchemaGroups(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_ProjectService_GetSchemaGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}-)--func request_ProjectService_GetSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetSchemaGroupRequest- 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)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_GetSchemaGroup_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.GetSchemaGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_GetSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetSchemaGroupRequest- 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)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_GetSchemaGroup_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.GetSchemaGroup(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_ProjectService_CreateSchemaGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"schema_group": 0, "parent": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}-)--func request_ProjectService_CreateSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreateSchemaGroupRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.SchemaGroup); 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)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_CreateSchemaGroup_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.CreateSchemaGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_CreateSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreateSchemaGroupRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.SchemaGroup); 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)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_CreateSchemaGroup_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.CreateSchemaGroup(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_ProjectService_UpdateSchemaGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"schema_group": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}}-)--func request_ProjectService_UpdateSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateSchemaGroupRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.SchemaGroup); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {- if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.SchemaGroup); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- } else {- protoReq.UpdateMask = fieldMask- }- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["schema_group.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schema_group.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "schema_group.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schema_group.name", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_UpdateSchemaGroup_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.UpdateSchemaGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_UpdateSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateSchemaGroupRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.SchemaGroup); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {- if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.SchemaGroup); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- } else {- protoReq.UpdateMask = fieldMask- }- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["schema_group.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schema_group.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "schema_group.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schema_group.name", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_UpdateSchemaGroup_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.UpdateSchemaGroup(ctx, &protoReq)- return msg, metadata, err--}--func request_ProjectService_DeleteSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq DeleteSchemaGroupRequest- 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.DeleteSchemaGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_DeleteSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq DeleteSchemaGroupRequest- 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.DeleteSchemaGroup(ctx, &protoReq)- return msg, metadata, err--}-func request_ProjectService_GetProjectProtectionRules_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {var protoReq GetProjectProtectionRulesRequestvar metadata runtime.ServerMetadata@@ -2346,131 +1976,6 @@ func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.Serve})- mux.Handle("GET", pattern_ProjectService_ListSchemaGroups_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.ProjectService/ListSchemaGroups", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_ListSchemaGroups_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_ProjectService_ListSchemaGroups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_ProjectService_GetSchemaGroup_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.ProjectService/GetSchemaGroup", runtime.WithHTTPPathPattern("/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_GetSchemaGroup_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_ProjectService_GetSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ProjectService_CreateSchemaGroup_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.ProjectService/CreateSchemaGroup", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_CreateSchemaGroup_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_ProjectService_CreateSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_ProjectService_UpdateSchemaGroup_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.ProjectService/UpdateSchemaGroup", runtime.WithHTTPPathPattern("/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_UpdateSchemaGroup_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_ProjectService_UpdateSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("DELETE", pattern_ProjectService_DeleteSchemaGroup_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.ProjectService/DeleteSchemaGroup", runtime.WithHTTPPathPattern("/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_DeleteSchemaGroup_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_ProjectService_DeleteSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("GET", pattern_ProjectService_GetProjectProtectionRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -3024,116 +2529,6 @@ func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.Serve})- mux.Handle("GET", pattern_ProjectService_ListSchemaGroups_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.ProjectService/ListSchemaGroups", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_ListSchemaGroups_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_ListSchemaGroups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_ProjectService_GetSchemaGroup_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.ProjectService/GetSchemaGroup", runtime.WithHTTPPathPattern("/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_GetSchemaGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_GetSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ProjectService_CreateSchemaGroup_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.ProjectService/CreateSchemaGroup", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_CreateSchemaGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_CreateSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_ProjectService_UpdateSchemaGroup_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.ProjectService/UpdateSchemaGroup", runtime.WithHTTPPathPattern("/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_UpdateSchemaGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_UpdateSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("DELETE", pattern_ProjectService_DeleteSchemaGroup_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.ProjectService/DeleteSchemaGroup", runtime.WithHTTPPathPattern("/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_DeleteSchemaGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_DeleteSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("GET", pattern_ProjectService_GetProjectProtectionRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -3224,16 +2619,6 @@ var (pattern_ProjectService_DeleteDatabaseGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "databaseGroups", "name"}, ""))- pattern_ProjectService_ListSchemaGroups_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", "projects", "databaseGroups", "parent", "schemaGroups"}, ""))-- pattern_ProjectService_GetSchemaGroup_0 = 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", "projects", "databaseGroups", "schemaGroups", "name"}, ""))-- pattern_ProjectService_CreateSchemaGroup_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", "projects", "databaseGroups", "parent", "schemaGroups"}, ""))-- pattern_ProjectService_UpdateSchemaGroup_0 = 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", "projects", "databaseGroups", "schemaGroups", "schema_group.name"}, ""))-- pattern_ProjectService_DeleteSchemaGroup_0 = 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", "projects", "databaseGroups", "schemaGroups", "name"}, ""))-pattern_ProjectService_GetProjectProtectionRules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 4, 3, 5, 3}, []string{"v1", "projects", "protectionRules", "name"}, ""))pattern_ProjectService_UpdateProjectProtectionRules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 4, 3, 5, 3}, []string{"v1", "projects", "protectionRules", "protection_rules.name"}, ""))@@ -3282,16 +2667,6 @@ var (forward_ProjectService_DeleteDatabaseGroup_0 = runtime.ForwardResponseMessage- forward_ProjectService_ListSchemaGroups_0 = runtime.ForwardResponseMessage-- forward_ProjectService_GetSchemaGroup_0 = runtime.ForwardResponseMessage-- forward_ProjectService_CreateSchemaGroup_0 = runtime.ForwardResponseMessage-- forward_ProjectService_UpdateSchemaGroup_0 = runtime.ForwardResponseMessage-- forward_ProjectService_DeleteSchemaGroup_0 = runtime.ForwardResponseMessage-forward_ProjectService_GetProjectProtectionRules_0 = runtime.ForwardResponseMessageforward_ProjectService_UpdateProjectProtectionRules_0 = runtime.ForwardResponseMessagediff --git a/proto/generated-go/v1/project_service_grpc.pb.go b/proto/generated-go/v1/project_service_grpc.pb.goindex a31f71aaea..1716f07006 100644--- a/proto/generated-go/v1/project_service_grpc.pb.go+++ b/proto/generated-go/v1/project_service_grpc.pb.go@@ -41,11 +41,6 @@ const (ProjectService_CreateDatabaseGroup_FullMethodName = "/bytebase.v1.ProjectService/CreateDatabaseGroup"ProjectService_UpdateDatabaseGroup_FullMethodName = "/bytebase.v1.ProjectService/UpdateDatabaseGroup"ProjectService_DeleteDatabaseGroup_FullMethodName = "/bytebase.v1.ProjectService/DeleteDatabaseGroup"- ProjectService_ListSchemaGroups_FullMethodName = "/bytebase.v1.ProjectService/ListSchemaGroups"- ProjectService_GetSchemaGroup_FullMethodName = "/bytebase.v1.ProjectService/GetSchemaGroup"- ProjectService_CreateSchemaGroup_FullMethodName = "/bytebase.v1.ProjectService/CreateSchemaGroup"- ProjectService_UpdateSchemaGroup_FullMethodName = "/bytebase.v1.ProjectService/UpdateSchemaGroup"- ProjectService_DeleteSchemaGroup_FullMethodName = "/bytebase.v1.ProjectService/DeleteSchemaGroup"ProjectService_GetProjectProtectionRules_FullMethodName = "/bytebase.v1.ProjectService/GetProjectProtectionRules"ProjectService_UpdateProjectProtectionRules_FullMethodName = "/bytebase.v1.ProjectService/UpdateProjectProtectionRules")@@ -75,11 +70,6 @@ type ProjectServiceClient interface {CreateDatabaseGroup(ctx context.Context, in *CreateDatabaseGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error)UpdateDatabaseGroup(ctx context.Context, in *UpdateDatabaseGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error)DeleteDatabaseGroup(ctx context.Context, in *DeleteDatabaseGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)- ListSchemaGroups(ctx context.Context, in *ListSchemaGroupsRequest, opts ...grpc.CallOption) (*ListSchemaGroupsResponse, error)- GetSchemaGroup(ctx context.Context, in *GetSchemaGroupRequest, opts ...grpc.CallOption) (*SchemaGroup, error)- CreateSchemaGroup(ctx context.Context, in *CreateSchemaGroupRequest, opts ...grpc.CallOption) (*SchemaGroup, error)- UpdateSchemaGroup(ctx context.Context, in *UpdateSchemaGroupRequest, opts ...grpc.CallOption) (*SchemaGroup, error)- DeleteSchemaGroup(ctx context.Context, in *DeleteSchemaGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)GetProjectProtectionRules(ctx context.Context, in *GetProjectProtectionRulesRequest, opts ...grpc.CallOption) (*ProtectionRules, error)UpdateProjectProtectionRules(ctx context.Context, in *UpdateProjectProtectionRulesRequest, opts ...grpc.CallOption) (*ProtectionRules, error)}@@ -281,51 +271,6 @@ func (c *projectServiceClient) DeleteDatabaseGroup(ctx context.Context, in *Delereturn out, nil}-func (c *projectServiceClient) ListSchemaGroups(ctx context.Context, in *ListSchemaGroupsRequest, opts ...grpc.CallOption) (*ListSchemaGroupsResponse, error) {- out := new(ListSchemaGroupsResponse)- err := c.cc.Invoke(ctx, ProjectService_ListSchemaGroups_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *projectServiceClient) GetSchemaGroup(ctx context.Context, in *GetSchemaGroupRequest, opts ...grpc.CallOption) (*SchemaGroup, error) {- out := new(SchemaGroup)- err := c.cc.Invoke(ctx, ProjectService_GetSchemaGroup_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *projectServiceClient) CreateSchemaGroup(ctx context.Context, in *CreateSchemaGroupRequest, opts ...grpc.CallOption) (*SchemaGroup, error) {- out := new(SchemaGroup)- err := c.cc.Invoke(ctx, ProjectService_CreateSchemaGroup_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *projectServiceClient) UpdateSchemaGroup(ctx context.Context, in *UpdateSchemaGroupRequest, opts ...grpc.CallOption) (*SchemaGroup, error) {- out := new(SchemaGroup)- err := c.cc.Invoke(ctx, ProjectService_UpdateSchemaGroup_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *projectServiceClient) DeleteSchemaGroup(ctx context.Context, in *DeleteSchemaGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {- out := new(emptypb.Empty)- err := c.cc.Invoke(ctx, ProjectService_DeleteSchemaGroup_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}-func (c *projectServiceClient) GetProjectProtectionRules(ctx context.Context, in *GetProjectProtectionRulesRequest, opts ...grpc.CallOption) (*ProtectionRules, error) {out := new(ProtectionRules)err := c.cc.Invoke(ctx, ProjectService_GetProjectProtectionRules_FullMethodName, in, out, opts...)@@ -369,11 +314,6 @@ type ProjectServiceServer interface {CreateDatabaseGroup(context.Context, *CreateDatabaseGroupRequest) (*DatabaseGroup, error)UpdateDatabaseGroup(context.Context, *UpdateDatabaseGroupRequest) (*DatabaseGroup, error)DeleteDatabaseGroup(context.Context, *DeleteDatabaseGroupRequest) (*emptypb.Empty, error)- ListSchemaGroups(context.Context, *ListSchemaGroupsRequest) (*ListSchemaGroupsResponse, error)- GetSchemaGroup(context.Context, *GetSchemaGroupRequest) (*SchemaGroup, error)- CreateSchemaGroup(context.Context, *CreateSchemaGroupRequest) (*SchemaGroup, error)- UpdateSchemaGroup(context.Context, *UpdateSchemaGroupRequest) (*SchemaGroup, error)- DeleteSchemaGroup(context.Context, *DeleteSchemaGroupRequest) (*emptypb.Empty, error)GetProjectProtectionRules(context.Context, *GetProjectProtectionRulesRequest) (*ProtectionRules, error)UpdateProjectProtectionRules(context.Context, *UpdateProjectProtectionRulesRequest) (*ProtectionRules, error)mustEmbedUnimplementedProjectServiceServer()@@ -446,21 +386,6 @@ func (UnimplementedProjectServiceServer) UpdateDatabaseGroup(context.Context, *Ufunc (UnimplementedProjectServiceServer) DeleteDatabaseGroup(context.Context, *DeleteDatabaseGroupRequest) (*emptypb.Empty, error) {return nil, status.Errorf(codes.Unimplemented, "method DeleteDatabaseGroup not implemented")}-func (UnimplementedProjectServiceServer) ListSchemaGroups(context.Context, *ListSchemaGroupsRequest) (*ListSchemaGroupsResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListSchemaGroups not implemented")-}-func (UnimplementedProjectServiceServer) GetSchemaGroup(context.Context, *GetSchemaGroupRequest) (*SchemaGroup, error) {- return nil, status.Errorf(codes.Unimplemented, "method GetSchemaGroup not implemented")-}-func (UnimplementedProjectServiceServer) CreateSchemaGroup(context.Context, *CreateSchemaGroupRequest) (*SchemaGroup, error) {- return nil, status.Errorf(codes.Unimplemented, "method CreateSchemaGroup not implemented")-}-func (UnimplementedProjectServiceServer) UpdateSchemaGroup(context.Context, *UpdateSchemaGroupRequest) (*SchemaGroup, error) {- return nil, status.Errorf(codes.Unimplemented, "method UpdateSchemaGroup not implemented")-}-func (UnimplementedProjectServiceServer) DeleteSchemaGroup(context.Context, *DeleteSchemaGroupRequest) (*emptypb.Empty, error) {- return nil, status.Errorf(codes.Unimplemented, "method DeleteSchemaGroup not implemented")-}func (UnimplementedProjectServiceServer) GetProjectProtectionRules(context.Context, *GetProjectProtectionRulesRequest) (*ProtectionRules, error) {return nil, status.Errorf(codes.Unimplemented, "method GetProjectProtectionRules not implemented")}@@ -858,96 +783,6 @@ func _ProjectService_DeleteDatabaseGroup_Handler(srv interface{}, ctx context.Coreturn interceptor(ctx, in, info, handler)}-func _ProjectService_ListSchemaGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListSchemaGroupsRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).ListSchemaGroups(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_ListSchemaGroups_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).ListSchemaGroups(ctx, req.(*ListSchemaGroupsRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ProjectService_GetSchemaGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(GetSchemaGroupRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).GetSchemaGroup(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_GetSchemaGroup_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).GetSchemaGroup(ctx, req.(*GetSchemaGroupRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ProjectService_CreateSchemaGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(CreateSchemaGroupRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).CreateSchemaGroup(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_CreateSchemaGroup_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).CreateSchemaGroup(ctx, req.(*CreateSchemaGroupRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ProjectService_UpdateSchemaGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(UpdateSchemaGroupRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).UpdateSchemaGroup(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_UpdateSchemaGroup_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).UpdateSchemaGroup(ctx, req.(*UpdateSchemaGroupRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ProjectService_DeleteSchemaGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(DeleteSchemaGroupRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).DeleteSchemaGroup(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_DeleteSchemaGroup_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).DeleteSchemaGroup(ctx, req.(*DeleteSchemaGroupRequest))- }- return interceptor(ctx, in, info, handler)-}-func _ProjectService_GetProjectProtectionRules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(GetProjectProtectionRulesRequest)if err := dec(in); err != nil {@@ -1075,26 +910,6 @@ var ProjectService_ServiceDesc = grpc.ServiceDesc{MethodName: "DeleteDatabaseGroup",Handler: _ProjectService_DeleteDatabaseGroup_Handler,},- {- MethodName: "ListSchemaGroups",- Handler: _ProjectService_ListSchemaGroups_Handler,- },- {- MethodName: "GetSchemaGroup",- Handler: _ProjectService_GetSchemaGroup_Handler,- },- {- MethodName: "CreateSchemaGroup",- Handler: _ProjectService_CreateSchemaGroup_Handler,- },- {- MethodName: "UpdateSchemaGroup",- Handler: _ProjectService_UpdateSchemaGroup_Handler,- },- {- MethodName: "DeleteSchemaGroup",- Handler: _ProjectService_DeleteSchemaGroup_Handler,- },{MethodName: "GetProjectProtectionRules",Handler: _ProjectService_GetProjectProtectionRules_Handler,diff --git a/proto/v1/project_service.proto b/proto/v1/project_service.protoindex 5cf3896a6b..28dea113fb 100644--- a/proto/v1/project_service.proto+++ b/proto/v1/project_service.proto@@ -143,37 +143,6 @@ service ProjectService {option (google.api.method_signature) = "name";}- rpc ListSchemaGroups(ListSchemaGroupsRequest) returns (ListSchemaGroupsResponse) {- option (google.api.http) = {get: "/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"};- option (google.api.method_signature) = "parent";- }-- rpc GetSchemaGroup(GetSchemaGroupRequest) returns (SchemaGroup) {- option (google.api.http) = {get: "/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"};- option (google.api.method_signature) = "name";- }-- rpc CreateSchemaGroup(CreateSchemaGroupRequest) returns (SchemaGroup) {- option (google.api.http) = {- post: "/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"- body: "schema_group"- };- option (google.api.method_signature) = "parent,databaseGroup";- }-- rpc UpdateSchemaGroup(UpdateSchemaGroupRequest) returns (SchemaGroup) {- option (google.api.http) = {- patch: "/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}"- body: "schema_group"- };- option (google.api.method_signature) = "schema_group,update_mask";- }-- rpc DeleteSchemaGroup(DeleteSchemaGroupRequest) returns (google.protobuf.Empty) {- option (google.api.http) = {delete: "/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"};- option (google.api.method_signature) = "name";- }-rpc GetProjectProtectionRules(GetProjectProtectionRulesRequest) returns (ProtectionRules) {option (google.api.http) = {get: "/v1/{name=projects/*/protectionRules}"};}@@ -648,122 +617,6 @@ message DatabaseGroup {repeated Database unmatched_databases = 5 [(google.api.field_behavior) = OUTPUT_ONLY];}-message CreateSchemaGroupRequest {- // The parent resource where this schema group will be created.- // Format: projects/{project}/databaseGroups/{databaseGroup}- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- // The schema group to create.- SchemaGroup schema_group = 2 [(google.api.field_behavior) = REQUIRED];-- // The ID to use for the schema group, which will become the final component of- // the schema group's resource name.- //- // This value should be 4-63 characters, and valid characters- // are /[a-z][0-9]-/.- string schema_group_id = 3;-- // If set, validate the create request and preview the full schema group response, but do not actually create it.- bool validate_only = 4;-}--message UpdateSchemaGroupRequest {- // The schema group to update.- //- // The schema group's `name` field is used to identify the schema group to update.- // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- SchemaGroup schema_group = 1 [(google.api.field_behavior) = REQUIRED];-- // The list of fields to update.- google.protobuf.FieldMask update_mask = 2;-}--message DeleteSchemaGroupRequest {- // The name of the schema group to delete.- // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- string name = 1 [(google.api.field_behavior) = REQUIRED];-}--message ListSchemaGroupsRequest {- // The parent resource whose schema groups are to be listed.- // Format: projects/{project}/schemaGroups/{schemaGroup}- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- // 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.- int32 page_size = 2;-- // Not used. A page token, received from a previous `ListSchemaGroups` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListSchemaGroups` must match- // the call that provided the page token.- string page_token = 3;-}--message ListSchemaGroupsResponse {- // schema_groups is the list of schema groups.- repeated SchemaGroup schema_groups = 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 GetSchemaGroupRequest {- // The name of the database group to retrieve.- // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- string name = 1 [(google.api.field_behavior) = REQUIRED];-- // The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC.- SchemaGroupView view = 2;-}--enum SchemaGroupView {- // The default / unset value.- // The API will default to the BASIC view.- SCHEMA_GROUP_VIEW_UNSPECIFIED = 0;-- // Include basic information about the schema group, but exclude the list of matched tables and unmatched tables.- SCHEMA_GROUP_VIEW_BASIC = 1;-- // Include everything.- SCHEMA_GROUP_VIEW_FULL = 2;-}--message SchemaGroup {- // The name of the schema group.- // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}- string name = 1;-- // The table condition that is associated with this schema group.- // The table_placeholder in the sheet script will be rendered to the actual table name.- google.type.Expr table_expr = 2;- // The table placeholder used for rendering. For example, if set to "tbl", all the table name- // "tbl" in the SQL script will be rendered to the actual table name.- string table_placeholder = 3;-- // In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.- // Its keyword will be {{SCHEMA}}.- // All the expressions will be used to filter the schema objects in DatabaseSchema.- message Table {- // The resource name of the database.- // Format: instances/{instance}/databases/{database}- string database = 1;-- string schema = 2;-- string table = 3;- }- // The list of databases that match the database group condition.- repeated Table matched_tables = 4 [(google.api.field_behavior) = OUTPUT_ONLY];-- // The list of databases that match the database group condition.- repeated Table unmatched_tables = 5 [(google.api.field_behavior) = OUTPUT_ONLY];-}-message GetProjectProtectionRulesRequest {// The name of the protection rules.// Format: projects/{project}/protectionRules