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: deprecate slow query (#15463)
boojack61f0f02f4896
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.goindex 4ac74f157e..87a6b366cf 100644--- a/backend/api/v1/database_service.go+++ b/backend/api/v1/database_service.go@@ -1,25 +1,19 @@package v1import (- "bytes""context""fmt""regexp""slices""sort""strings"- "time""unicode""github.com/google/cel-go/cel"celast "github.com/google/cel-go/common/ast"celoperators "github.com/google/cel-go/common/operators"celoverloads "github.com/google/cel-go/common/overloads"- tidbparser "github.com/pingcap/tidb/pkg/parser"- tidbast "github.com/pingcap/tidb/pkg/parser/ast"- "github.com/pingcap/tidb/pkg/parser/format""github.com/pkg/errors"- openai "github.com/sashabaranov/go-openai""google.golang.org/grpc/codes""google.golang.org/grpc/status""google.golang.org/protobuf/proto"@@ -32,33 +26,13 @@ import (enterprise "github.com/bytebase/bytebase/backend/enterprise/api"api "github.com/bytebase/bytebase/backend/legacyapi""github.com/bytebase/bytebase/backend/plugin/parser/base"- "github.com/bytebase/bytebase/backend/plugin/parser/sql/ast"- pgrawparser "github.com/bytebase/bytebase/backend/plugin/parser/sql/engine/pg""github.com/bytebase/bytebase/backend/plugin/parser/sql/transform""github.com/bytebase/bytebase/backend/runner/schemasync""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")-const (- filterKeyEnvironment = "environment"- filterKeyDatabase = "database"- filterKeyStartTime = "start_time"-- // Support order by count, latest_log_time, average_query_time, maximum_query_time,- // average_rows_sent, maximum_rows_sent, average_rows_examined, maximum_rows_examined for now.- orderByKeyCount = "count"- orderByKeyLatestLogTime = "latest_log_time"- orderByKeyAverageQueryTime = "average_query_time"- orderByKeyMaximumQueryTime = "maximum_query_time"- orderByKeyAverageRowsSent = "average_rows_sent"- orderByKeyMaximumRowsSent = "maximum_rows_sent"- orderByKeyAverageRowsExamined = "average_rows_examined"- orderByKeyMaximumRowsExamined = "maximum_rows_examined"-)-// DatabaseService implements the database service.type DatabaseService struct {v1pb.UnimplementedDatabaseServiceServer@@ -1121,290 +1095,6 @@ func (s *DatabaseService) DeleteSecret(ctx context.Context, request *v1pb.Deletereturn &emptypb.Empty{}, nil}-type totalValue struct {- totalQueryTime time.Duration- totalCount int64-}--// ListSlowQueries lists the slow queries.-func (s *DatabaseService) ListSlowQueries(ctx context.Context, request *v1pb.ListSlowQueriesRequest) (*v1pb.ListSlowQueriesResponse, error) {- projectID, err := common.GetProjectID(request.Parent)- if err != nil {- return nil, status.Error(codes.InvalidArgument, err.Error())- }-- findDatabase := &store.FindDatabaseMessage{- ProjectID: &projectID,- }-- filters, err := ParseFilter(request.Filter)- if err != nil {- return nil, status.Error(codes.InvalidArgument, err.Error())- }-- var startLogDate, endLogDate *time.Time- for _, expr := range filters {- switch expr.Key {- case filterKeyEnvironment:- reg := regexp.MustCompile(`^environments/(.+)`)- match := reg.FindStringSubmatch(expr.Value)- if len(match) != 2 {- return nil, status.Errorf(codes.InvalidArgument, "invalid environment filter %q", expr.Value)- }- findDatabase.EffectiveEnvironmentID = &match[1]- case filterKeyDatabase:- instanceID, databaseName, err := common.GetInstanceDatabaseID(expr.Value)- if err != nil {- return nil, status.Error(codes.InvalidArgument, err.Error())- }- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &instanceID})- if err != nil {- return nil, status.Error(codes.InvalidArgument, err.Error())- }- if instance == nil {- return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)- }- findDatabase.InstanceID = &instanceID- findDatabase.DatabaseName = &databaseName- findDatabase.IsCaseSensitive = store.IsObjectCaseSensitive(instance)- case filterKeyStartTime:- switch expr.Operator {- case ComparatorTypeGreater:- if startLogDate != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid filter %q", request.Filter)- }- t, err := time.Parse(time.RFC3339, expr.Value)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid start_time filter %q", expr.Value)- }- t = t.AddDate(0, 0, 1).UTC()- startLogDate = &t- case ComparatorTypeGreaterEqual:- if startLogDate != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid filter %q", request.Filter)- }- t, err := time.Parse(time.RFC3339, expr.Value)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid start_time filter %q", expr.Value)- }- t = t.UTC()- startLogDate = &t- case ComparatorTypeLess:- if endLogDate != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid filter %q", request.Filter)- }- t, err := time.Parse(time.RFC3339, expr.Value)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid start_time filter %q", expr.Value)- }- t = t.UTC()- endLogDate = &t- case ComparatorTypeLessEqual:- if endLogDate != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid filter %q", request.Filter)- }- t, err := time.Parse(time.RFC3339, expr.Value)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, "invalid start_time filter %q", expr.Value)- }- t = t.AddDate(0, 0, 1).UTC()- endLogDate = &t- default:- return nil, status.Errorf(codes.InvalidArgument, "invalid start_time filter %q %q %q", expr.Key, expr.Operator, expr.Value)- }- default:- return nil, status.Errorf(codes.InvalidArgument, "invalid filter key %q", expr.Key)- }- }-- orderByKeys, err := parseOrderBy(request.OrderBy)- if err != nil {- return nil, status.Error(codes.InvalidArgument, err.Error())- }- if err := validSlowQueryOrderByKey(orderByKeys); err != nil {- return nil, status.Error(codes.InvalidArgument, err.Error())- }-- databases, err := s.store.ListDatabases(ctx, findDatabase)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to find database list %q", err.Error())- }-- result := &v1pb.ListSlowQueriesResponse{}- instanceMap := make(map[string]*totalValue)-- for _, database := range databases {- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{- ResourceID: &database.InstanceID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to find instance %q", err.Error())- }- if instance == nil {- return nil, status.Errorf(codes.NotFound, "instance %q not found", database.InstanceID)- }- listSlowQuery := &store.ListSlowQueryMessage{- InstanceID: &database.InstanceID,- DatabaseName: &database.DatabaseName,- StartLogDate: startLogDate,- EndLogDate: endLogDate,- }- logs, err := s.store.ListSlowQuery(ctx, listSlowQuery)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to find slow query %q", err.Error())- }-- for _, log := range logs {- result.SlowQueryLogs = append(result.SlowQueryLogs, convertToSlowQueryLog(database.InstanceID, database.DatabaseName, database.ProjectID, log))- if value, exists := instanceMap[database.InstanceID]; exists {- value.totalQueryTime += log.Statistics.AverageQueryTime.AsDuration() * time.Duration(log.Statistics.Count)- value.totalCount += log.Statistics.Count- } else {- instanceMap[database.InstanceID] = &totalValue{- totalQueryTime: log.Statistics.AverageQueryTime.AsDuration() * time.Duration(log.Statistics.Count),- totalCount: log.Statistics.Count,- }- }- }- }-- for _, log := range result.SlowQueryLogs {- instanceID, _, err := common.GetInstanceDatabaseID(log.Resource)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get instance id %q", err.Error())- }- totalQueryTime := log.Statistics.AverageQueryTime.AsDuration() * time.Duration(log.Statistics.Count)- log.Statistics.QueryTimePercent = float64(totalQueryTime) / float64(instanceMap[instanceID].totalQueryTime)- log.Statistics.CountPercent = float64(log.Statistics.Count) / float64(instanceMap[instanceID].totalCount)- }-- result, err = sortSlowQueryLogResponse(result, orderByKeys)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to sort slow query logs %q", err.Error())- }-- return result, nil-}--func sortSlowQueryLogResponse(response *v1pb.ListSlowQueriesResponse, orderByKeys []orderByKey) (*v1pb.ListSlowQueriesResponse, error) {- if len(orderByKeys) == 0 {- orderByKeys = []orderByKey{- {- key: orderByKeyAverageQueryTime,- isAscend: false,- },- }- }-- if err := validSlowQueryOrderByKey(orderByKeys); err != nil {- return nil, err- }-- sort.Slice(response.SlowQueryLogs, func(i, j int) bool {- for _, key := range orderByKeys {- switch key.key {- case orderByKeyCount:- lCount := response.SlowQueryLogs[i].Statistics.Count- rCount := response.SlowQueryLogs[j].Statistics.Count- if lCount != rCount {- if key.isAscend {- return lCount < rCount- }- return lCount > rCount- }- case orderByKeyLatestLogTime:- lTime := response.SlowQueryLogs[i].Statistics.LatestLogTime.AsTime()- rTime := response.SlowQueryLogs[j].Statistics.LatestLogTime.AsTime()- if !lTime.Equal(rTime) {- if key.isAscend {- return lTime.Before(rTime)- }- return lTime.After(rTime)- }- case orderByKeyAverageQueryTime:- lTime := response.SlowQueryLogs[i].Statistics.AverageQueryTime.AsDuration()- rTime := response.SlowQueryLogs[j].Statistics.AverageQueryTime.AsDuration()- if lTime != rTime {- if key.isAscend {- return lTime < rTime- }- return lTime > rTime- }- case orderByKeyMaximumQueryTime:- lDuration := response.SlowQueryLogs[i].Statistics.MaximumQueryTime.AsDuration()- rDuration := response.SlowQueryLogs[j].Statistics.MaximumQueryTime.AsDuration()- if lDuration != rDuration {- if key.isAscend {- return lDuration < rDuration- }- return lDuration > rDuration- }- case orderByKeyAverageRowsSent:- lSent := response.SlowQueryLogs[i].Statistics.AverageRowsSent- rSent := response.SlowQueryLogs[j].Statistics.AverageRowsSent- if lSent != rSent {- if key.isAscend {- return lSent < rSent- }- return lSent > rSent- }- case orderByKeyMaximumRowsSent:- lSent := response.SlowQueryLogs[i].Statistics.MaximumRowsSent- rSent := response.SlowQueryLogs[j].Statistics.MaximumRowsSent- if lSent != rSent {- if key.isAscend {- return lSent < rSent- }- return lSent > rSent- }- case orderByKeyAverageRowsExamined:- lExamined := response.SlowQueryLogs[i].Statistics.AverageRowsExamined- rExamined := response.SlowQueryLogs[j].Statistics.AverageRowsExamined- if lExamined != rExamined {- if key.isAscend {- return lExamined < rExamined- }- return lExamined > rExamined- }- case orderByKeyMaximumRowsExamined:- lExamined := response.SlowQueryLogs[i].Statistics.MaximumRowsExamined- rExamined := response.SlowQueryLogs[j].Statistics.MaximumRowsExamined- if lExamined != rExamined {- if key.isAscend {- return lExamined < rExamined- }- return lExamined > rExamined- }- }- }- return false- })-- return response, nil-}--func validSlowQueryOrderByKey(keys []orderByKey) error {- for _, key := range keys {- switch key.key {- // Support order by count, latest_log_time, average_query_time, maximum_query_time,- // average_rows_sent, maximum_rows_sent, average_rows_examined, maximum_rows_examined for now.- case orderByKeyCount, orderByKeyLatestLogTime, orderByKeyAverageQueryTime, orderByKeyMaximumQueryTime,- orderByKeyAverageRowsSent, orderByKeyMaximumRowsSent, orderByKeyAverageRowsExamined, orderByKeyMaximumRowsExamined:- default:- return errors.Errorf("invalid order_by key %q", key.key)- }- }- return nil-}--func convertToSlowQueryLog(instanceID string, databaseName string, projectID string, log *v1pb.SlowQueryLog) *v1pb.SlowQueryLog {- return &v1pb.SlowQueryLog{- Resource: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, instanceID, common.DatabaseIDPrefix, databaseName),- Project: common.FormatProject(projectID),- Statistics: log.Statistics,- }-}-func (s *DatabaseService) convertToDatabase(ctx context.Context, database *store.DatabaseMessage) (*v1pb.Database, error) {instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &database.InstanceID,@@ -1490,374 +1180,3 @@ func isSecretValid(secret *storepb.Secret) error {func isUpperCaseLetter(c rune) bool {return 'A' <= c && c <= 'Z'}--// AdviseIndex advises the index of a table.-func (s *DatabaseService) AdviseIndex(ctx context.Context, request *v1pb.AdviseIndexRequest) (*v1pb.AdviseIndexResponse, error) {- if err := s.licenseService.IsFeatureEnabled(api.FeatureAIAssistant); err != nil {- return nil, status.Error(codes.PermissionDenied, err.Error())- }- instanceID, databaseName, err := common.GetInstanceDatabaseID(request.Parent)- if err != nil {- return nil, status.Error(codes.InvalidArgument, err.Error())- }-- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &instanceID})- if err != nil {- return nil, errors.Wrapf(err, "failed to get instance %s", instanceID)- }- if instance == nil {- return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)- }-- findDatabase := &store.FindDatabaseMessage{- InstanceID: &instanceID,- DatabaseName: &databaseName,- IsCaseSensitive: store.IsObjectCaseSensitive(instance),- }- database, err := s.store.GetDatabaseV2(ctx, findDatabase)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to get database: %v", err)- }- if database == nil {- return nil, status.Errorf(codes.NotFound, "database %q not found", databaseName)- }-- switch instance.Metadata.GetEngine() {- case storepb.Engine_POSTGRES:- return s.pgAdviseIndex(ctx, request, database)- case storepb.Engine_MYSQL:- return s.mysqlAdviseIndex(ctx, request, instance, database)- default:- return nil, status.Errorf(codes.InvalidArgument, "AdviseIndex is not implemented for engine: %v", instance.Metadata.GetEngine())- }-}--func (s *DatabaseService) mysqlAdviseIndex(ctx context.Context, request *v1pb.AdviseIndexRequest, instance *store.InstanceMessage, database *store.DatabaseMessage) (*v1pb.AdviseIndexResponse, error) {- key, endpoint, modelName, err := s.getOpenAISetting((ctx))- if err != nil {- return nil, err- }-- var schemas []*model.DatabaseSchema- // Deal with the cross database query.- resources, err := base.ExtractResourceList(instance.Metadata.GetEngine(), database.DatabaseName, "", request.Statement)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, "Failed to extract resource list: %v", err)- }- databaseMap := make(map[string]bool)- for _, resource := range resources {- databaseMap[resource.Database] = true- }- var databases []string- for database := range databaseMap {- databases = append(databases, database)- }- if len(databases) == 0 {- databases = append(databases, database.DatabaseName)- }-- for _, db := range databases {- findDatabase := &store.FindDatabaseMessage{- InstanceID: &instance.ResourceID,- DatabaseName: &db,- IsCaseSensitive: store.IsObjectCaseSensitive(instance),- }- database, err := s.store.GetDatabaseV2(ctx, findDatabase)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to get database: %v", err)- }- if database == nil {- return nil, status.Errorf(codes.NotFound, "database %q not found", db)- }- schema, err := s.store.GetDBSchema(ctx, database.InstanceID, database.DatabaseName)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to get database schema: %v", err)- }- schemas = append(schemas, schema)- }-- var compactBuf bytes.Buffer- for _, schema := range schemas {- compactSchema, err := schema.CompactText()- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to compact database schema: %v", err)- }- if _, err := compactBuf.WriteString(compactSchema); err != nil {- return nil, status.Errorf(codes.Internal, "Failed to write compact database schema: %v", err)- }- }-- messages := []openai.ChatCompletionMessage{- {- Role: openai.ChatMessageRoleSystem,- Content: `You are a MySQL index advisor. You answer the question about the index of tables and SQLs. DO NOT EXPLAIN THE ANSWER.`,- },- {- Role: openai.ChatMessageRoleUser,- Content: `You are an assistant who works as a Magic: The strict MySQL index advisor. Analyze the SQL with schema and existing indexes, then give the advice in the JSON format.- If the SQL will use the existing index, the current_index field is the index name with database name and table name. Otherwise, the current_index field is "N/A".- If it is possible to create a new index to speed up the query, the create_index_statement field is the SQL statement to create the index. Otherwise, the create_index_statement field is empty string.- YOUR ADVICE MUST FOLLOW JSON FORMAT. DO NOT EXPLAIN THE ADVICE.- Here two examples:- {"current_index": "index_schema_table_age ON db1.schema_table", "create_index_statement":""}- {"current_index": "N/A", "create_index_statement":"CREATE INDEX ON db1.schema_table(collected_at, schema_index_id)"}- ` + fmt.Sprintf(`### MySQL schema:\n### %s\n###The SQL is:\n### %s###`, compactBuf.String(), request.Statement),- },- }-- generateFunc := func(resp *v1pb.AdviseIndexResponse) error {- // Generate current index.- if resp.CurrentIndex != "N/A" {- // Use regex to extract the index name, database name and table name from "index_schema_table_age ON public.schema_table".- reg := regexp.MustCompile(`(?i)(.*) ON (.*)\.(.*)`)- matches := reg.FindStringSubmatch(resp.CurrentIndex)- if len(matches) != 4 {- return errors.Errorf("failed to extract index name, database name and table name from %s", resp.CurrentIndex)- }- var dbSchema *model.DatabaseSchema- for _, schema := range schemas {- if schema.GetMetadata().Name == matches[2] {- dbSchema = schema- break- }- }- if dbSchema == nil {- return errors.Errorf("database %s doesn't exist", matches[2])- }- tableMetadata := dbSchema.GetDatabaseMetadata().GetSchema("").GetTable(matches[3])- if tableMetadata == nil {- return errors.Errorf("table %s doesn't exist", matches[3])- }- indexMetadata := tableMetadata.GetIndex(matches[1])- if indexMetadata == nil {- return errors.Errorf("index %s doesn't exist", resp.CurrentIndex)- }- indexProto := indexMetadata.GetProto()- resp.CurrentIndex = fmt.Sprintf("USING %s (%s)", indexProto.Type, strings.Join(indexProto.Expressions, ", "))- } else {- resp.CurrentIndex = "No usable index"- }-- // Generate suggestion and create index statement.- if resp.CreateIndexStatement != "" {- p := tidbparser.New()- node, err := p.ParseOneStmt(resp.CreateIndexStatement, "", "")- if err != nil {- return errors.Errorf("failed to parse create index statement: %v", err)- }- switch createIndex := node.(type) {- case *tidbast.CreateIndexStmt:- defineString, err := mysqlIndexExpressionList(createIndex)- if err != nil {- return errors.Errorf("failed to generate create index statement: %v", err)- }- indexType := createIndex.IndexOption.Tp.String()- if indexType == "" {- indexType = "BTREE"- }- resp.Suggestion = fmt.Sprintf("USING %s (%s)", indexType, defineString)- default:- return errors.Errorf("expect create index statement, but got %T", node)- }- } else {- resp.Suggestion = "N/A"- }-- return nil- }-- result, err := getOpenAIResponse(ctx, messages, key, endpoint, modelName, generateFunc)- if err != nil {- return nil, err- }-- return result, nil-}--func mysqlIndexExpressionList(node *tidbast.CreateIndexStmt) (string, error) {- var buf bytes.Buffer- for i, item := range node.IndexPartSpecifications {- text, err := restoreNode(item)- if err != nil {- return "", err- }- if i != 0 {- if _, err := buf.WriteString(", "); err != nil {- return "", err- }- }- if _, err := buf.WriteString(text); err != nil {- return "", err- }- }- return buf.String(), nil-}--func restoreNode(node tidbast.Node) (string, error) {- var buffer strings.Builder- ctx := format.NewRestoreCtx(format.DefaultRestoreFlags, &buffer)- if err := node.Restore(ctx); err != nil {- return "", err- }- return buffer.String(), nil-}--func (s *DatabaseService) pgAdviseIndex(ctx context.Context, request *v1pb.AdviseIndexRequest, database *store.DatabaseMessage) (*v1pb.AdviseIndexResponse, error) {- key, endpoint, modelName, err := s.getOpenAISetting((ctx))- if err != nil {- return nil, err- }- schema, err := s.store.GetDBSchema(ctx, database.InstanceID, database.DatabaseName)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to get database schema: %v", err)- }- compactSchema, err := schema.CompactText()- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to compact database schema: %v", err)- }-- messages := []openai.ChatCompletionMessage{- {- Role: openai.ChatMessageRoleSystem,- Content: `You are a PostgreSQL index advisor. You answer the question about the index of tables and SQLs. DO NOT EXPLAIN THE ANSWER.`,- },- {- Role: openai.ChatMessageRoleUser,- Content: `You are an assistant who works as a Magic: The strict PostgreSQL index advisor. Analyze the SQL with schema and existing indexes, then give the advice in the JSON format.- If the SQL will use the existing index, the current_index field is the index name with schema name and table name. Otherwise, the current_index field is "N/A".- If it is possible to create a new index to speed up the query, the create_index_statement field is the SQL statement to create the index. Otherwise, the create_index_statement field is empty string.- YOUR ADVICE MUST FOLLOW JSON FORMAT. DO NOT EXPLAIN THE ADVICE.- Here two examples:- {"current_index": "index_schema_table_age ON public.schema_table", "create_index_statement":""}- {"current_index": "N/A", "create_index_statement":"CREATE INDEX ON public.schema_table(collected_at, schema_index_id)"}- ` + fmt.Sprintf(`### Postgres schema:\n### %s\n###The SQL is:\n### %s###`, compactSchema, request.Statement),- },- }-- generateFunc := func(resp *v1pb.AdviseIndexResponse) error {- // Generate current index.- if resp.CurrentIndex != "N/A" {- // Use regex to extract the index name, schema name and table name from "index_schema_table_age ON public.schema_table".- reg := regexp.MustCompile(`(?i)(.*) ON (.*)\.(.*)`)- matches := reg.FindStringSubmatch(resp.CurrentIndex)- if len(matches) != 4 {- return errors.Errorf("failed to extract index name, schema name and table name from %s", resp.CurrentIndex)- }- schemaMetadata := schema.GetDatabaseMetadata().GetSchema(matches[2])- if schemaMetadata == nil {- return errors.Errorf("schema %s doesn't exist", matches[2])- }- tableMetadata := schemaMetadata.GetTable(matches[3])- if tableMetadata == nil {- return errors.Errorf("table %s doesn't exist", matches[3])- }- indexMetadata := tableMetadata.GetIndex(matches[1])- if indexMetadata == nil {- return errors.Errorf("index %s doesn't exist", resp.CurrentIndex)- }- indexProto := indexMetadata.GetProto()- resp.CurrentIndex = fmt.Sprintf("USING %s (%s)", indexProto.Type, strings.Join(indexProto.Expressions, ", "))- } else {- resp.CurrentIndex = "No usable index"- }-- // Generate suggestion and create index statement.- if resp.CreateIndexStatement != "" {- nodes, err := pgrawparser.Parse(pgrawparser.ParseContext{}, resp.CreateIndexStatement)- if err != nil {- return errors.Errorf("failed to parse create index statement: %v", err)- }- if len(nodes) != 1 {- return errors.Errorf("expect 1 statement, but got %d", len(nodes))- }- switch node := nodes[0].(type) {- case *ast.CreateIndexStmt:- resp.Suggestion = fmt.Sprintf("USING %s (%s)", node.Index.Method, strings.Join(node.Index.GetKeyNameList(), ", "))- default:- return errors.Errorf("expect CreateIndexStmt, but got %T", node)- }- } else {- resp.Suggestion = "N/A"- }-- return nil- }-- result, err := getOpenAIResponse(ctx, messages, key, endpoint, modelName, generateFunc)- if err != nil {- return nil, err- }-- return result, nil-}--func (s *DatabaseService) getOpenAISetting(ctx context.Context) (string, string, string, error) {- key, err := s.store.GetSettingV2(ctx, api.SettingPluginOpenAIKey)- if err != nil {- return "", "", "", status.Errorf(codes.Internal, "Failed to get setting: %v", err)- }- if key.Value == "" {- return "", "", "", status.Errorf(codes.FailedPrecondition, "OpenAI key is not set")- }- endpointSetting, err := s.store.GetSettingV2(ctx, api.SettingPluginOpenAIEndpoint)- if err != nil {- return "", "", "", status.Errorf(codes.Internal, "Failed to get setting: %v", err)- }- var endpoint string- if endpointSetting != nil {- endpoint = endpointSetting.Value- }- model, err := s.store.GetSettingV2(ctx, api.SettingPluginOpenAIModel)- if err != nil {- return "", "", "", status.Errorf(codes.Internal, "Failed to get setting: %v", err)- }- return key.Value, endpoint, model.Value, nil-}--func getOpenAIResponse(ctx context.Context, messages []openai.ChatCompletionMessage, key, endpoint, model string, generateResponse func(*v1pb.AdviseIndexResponse) error) (*v1pb.AdviseIndexResponse, error) {- var result v1pb.AdviseIndexResponse- successful := false- var retErr error- if model == "" {- model = openai.GPT3Dot5Turbo- }- // Retry 5 times if failed.- for i := 0; i < 5; i++ {- cfg := openai.DefaultConfig(key)- if endpoint != "" {- cfg.BaseURL = endpoint- }- client := openai.NewClientWithConfig(cfg)- resp, err := client.CreateChatCompletion(- ctx,- openai.ChatCompletionRequest{- Model: model,- Messages: messages,- Temperature: 0,- Stop: []string{"#", ";"},- TopP: 1.0,- FrequencyPenalty: 0.0,- PresencePenalty: 0.0,- },- )- if err != nil {- retErr = errors.Wrap(err, "failed to create chat completion")- continue- }- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(resp.Choices[0].Message.Content), &result); err != nil {- retErr = errors.Wrapf(err, "failed to unmarshal chat completion response content: %s", resp.Choices[0].Message.Content)- continue- }- if err = generateResponse(&result); err != nil {- retErr = errors.Wrap(err, "failed to generate response")- continue- }- successful = true- break- }-- if !successful {- return nil, status.Errorf(codes.Internal, "Failed to get index advice, error %v", retErr)- }- return &result, nil-}diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.goindex c94cedc890..bd75b0e459 100644--- a/backend/api/v1/instance_service.go+++ b/backend/api/v1/instance_service.go@@ -6,7 +6,6 @@ import ("strings""github.com/pkg/errors"- "go.uber.org/multierr""google.golang.org/grpc/codes""google.golang.org/grpc/status""google.golang.org/protobuf/proto"@@ -23,7 +22,6 @@ import (metricapi "github.com/bytebase/bytebase/backend/metric""github.com/bytebase/bytebase/backend/plugin/db""github.com/bytebase/bytebase/backend/plugin/metric"- pgparser "github.com/bytebase/bytebase/backend/plugin/parser/pg""github.com/bytebase/bytebase/backend/runner/metricreport""github.com/bytebase/bytebase/backend/runner/schemasync""github.com/bytebase/bytebase/backend/store"@@ -348,168 +346,6 @@ func (s *InstanceService) UpdateInstance(ctx context.Context, request *v1pb.Updareturn convertInstanceMessage(ins)}-func (s *InstanceService) syncSlowQueriesForInstance(ctx context.Context, instanceName string) (*emptypb.Empty, error) {- instance, err := getInstanceMessage(ctx, s.store, instanceName)- if err != nil {- return nil, err- }- if instance.Deleted {- return nil, status.Errorf(codes.NotFound, "instance %q has been deleted", instanceName)- }-- slowQueryPolicy, err := s.store.GetSlowQueryPolicy(ctx, instance.ResourceID)- if err != nil {- return nil, status.Error(codes.Internal, err.Error())- }- if slowQueryPolicy == nil || !slowQueryPolicy.Active {- return nil, status.Errorf(codes.FailedPrecondition, "slow query policy is not active for instance %q", instanceName)- }-- if err := s.syncSlowQueriesImpl(ctx, (*store.ProjectMessage)(nil), instance); err != nil {- return nil, err- }-- return &emptypb.Empty{}, nil-}--func (s *InstanceService) syncSlowQueriesImpl(ctx context.Context, project *store.ProjectMessage, instance *store.InstanceMessage) error {- switch instance.Metadata.GetEngine() {- case storepb.Engine_MYSQL:- driver, err := s.dbFactory.GetAdminDatabaseDriver(ctx, instance, nil /* database */, db.ConnectionContext{})- if err != nil {- return err- }- defer driver.Close(ctx)- if err := driver.CheckSlowQueryLogEnabled(ctx); err != nil {- slog.Warn("slow query log is not enabled", slog.String("instance", instance.ResourceID), log.BBError(err))- return nil- }-- // Sync slow queries for instance.- message := &state.InstanceSlowQuerySyncMessage{- InstanceID: instance.ResourceID,- }- if project != nil {- message.ProjectID = project.ResourceID- }- s.stateCfg.InstanceSlowQuerySyncChan <- message- case storepb.Engine_POSTGRES:- findDatabase := &store.FindDatabaseMessage{- InstanceID: &instance.ResourceID,- }- databases, err := s.store.ListDatabases(ctx, findDatabase)- if err != nil {- return status.Errorf(codes.Internal, "failed to list databases: %s", err.Error())- }-- enabled := false- for _, database := range databases {- if database.Deleted {- continue- }- if pgparser.IsSystemDatabase(database.DatabaseName) {- continue- }- if err := func() error {- driver, err := s.dbFactory.GetAdminDatabaseDriver(ctx, instance, database, db.ConnectionContext{})- if err != nil {- return err- }- defer driver.Close(ctx)- return driver.CheckSlowQueryLogEnabled(ctx)- }(); err != nil {- slog.Warn("slow query log is not enabled", slog.String("database", database.DatabaseName), log.BBError(err))- continue- }-- enabled = true- break- }-- if !enabled {- return nil- }-- // Sync slow queries for instance.- message := &state.InstanceSlowQuerySyncMessage{- InstanceID: instance.ResourceID,- }- if project != nil {- message.ProjectID = project.ResourceID- }- s.stateCfg.InstanceSlowQuerySyncChan <- message- default:- return status.Errorf(codes.InvalidArgument, "unsupported engine %q", instance.Metadata.GetEngine())- }- return nil-}--func (s *InstanceService) syncSlowQueriesForProject(ctx context.Context, projectName string) (*emptypb.Empty, error) {- project, err := s.getProjectMessage(ctx, projectName)- if err != nil {- return nil, err- }- if project.Deleted {- return nil, status.Errorf(codes.NotFound, "project %q has been deleted", projectName)- }- databases, err := s.store.ListDatabases(ctx, &store.FindDatabaseMessage{ProjectID: &project.ResourceID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to list databases: %s", err.Error())- }-- instanceMap := make(map[string]bool)- var errs error- for _, database := range databases {- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &database.InstanceID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get instance %q: %s", database.InstanceID, err.Error())- }-- switch instance.Metadata.GetEngine() {- case storepb.Engine_MYSQL, storepb.Engine_POSTGRES:- if instance.Deleted {- continue- }-- slowQueryPolicy, err := s.store.GetSlowQueryPolicy(ctx, instance.ResourceID)- if err != nil {- return nil, status.Error(codes.Internal, err.Error())- }- if slowQueryPolicy == nil || !slowQueryPolicy.Active {- continue- }-- if _, ok := instanceMap[instance.ResourceID]; ok {- continue- }-- if err := s.syncSlowQueriesImpl(ctx, project, instance); err != nil {- errs = multierr.Append(errs, errors.Wrapf(err, "failed to sync slow queries for instance %q", instance.ResourceID))- }- default:- continue- }- }-- if errs != nil {- return nil, status.Errorf(codes.Internal, "failed to sync slow queries for following instances: %s", errs.Error())- }-- return &emptypb.Empty{}, nil-}--// SyncSlowQueries syncs slow queries for an instance.-func (s *InstanceService) SyncSlowQueries(ctx context.Context, request *v1pb.SyncSlowQueriesRequest) (*emptypb.Empty, error) {- switch {- case strings.HasPrefix(request.Parent, common.InstanceNamePrefix):- return s.syncSlowQueriesForInstance(ctx, request.Parent)- case strings.HasPrefix(request.Parent, common.ProjectNamePrefix):- return s.syncSlowQueriesForProject(ctx, request.Parent)- default:- return nil, status.Errorf(codes.InvalidArgument, "invalid parent %q", request.Parent)- }-}-// DeleteInstance deletes an instance.func (s *InstanceService) DeleteInstance(ctx context.Context, request *v1pb.DeleteInstanceRequest) (*emptypb.Empty, error) {instance, err := getInstanceMessage(ctx, s.store, request.Name)@@ -926,25 +762,6 @@ func (s *InstanceService) RemoveDataSource(ctx context.Context, request *v1pb.Rereturn convertInstanceMessage(instance)}-func (s *InstanceService) getProjectMessage(ctx context.Context, name string) (*store.ProjectMessage, error) {- projectID, err := common.GetProjectID(name)- if err != nil {- return nil, status.Error(codes.InvalidArgument, err.Error())- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{- ResourceID: &projectID,- ShowDeleted: true,- })- if err != nil {- return nil, status.Error(codes.Internal, err.Error())- }- if project == nil {- return nil, status.Errorf(codes.NotFound, "project %q not found", name)- }-- return project, nil-}-func getInstanceMessage(ctx context.Context, stores *store.Store, name string) (*store.InstanceMessage, error) {instanceID, err := common.GetInstanceID(name)if err != nil {diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex c2c0bca538..4d794672d5 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -373,16 +373,6 @@ func (s *OrgPolicyService) convertPolicyPayloadToString(ctx context.Context, polreturn "", errors.Wrap(err, "failed to marshal tag policy")}return string(payloadBytes), nil- case v1pb.PolicyType_SLOW_QUERY:- payload, err := convertToSlowQueryPolicyPayload(policy.GetSlowQueryPolicy())- if err != nil {- return "", status.Error(codes.InvalidArgument, err.Error())- }- payloadBytes, err := protojson.Marshal(payload)- if err != nil {- return "", errors.Wrap(err, "failed to marshal masking policy")- }- return string(payloadBytes), nilcase v1pb.PolicyType_DISABLE_COPY_DATA:if err := s.licenseService.IsFeatureEnabled(api.FeatureAccessControl); err != nil {return "", status.Error(codes.PermissionDenied, err.Error())@@ -512,13 +502,6 @@ func (s *OrgPolicyService) convertToPolicy(ctx context.Context, policyMessage *spolicy.Policy = &v1pb.Policy_TagPolicy{TagPolicy: p,}- case api.PolicyTypeSlowQuery:- pType = v1pb.PolicyType_SLOW_QUERY- payload, err := convertToV1PBSlowQueryPolicy(policyMessage.Payload)- if err != nil {- return nil, err- }- policy.Policy = payloadcase api.PolicyTypeDisableCopyData:pType = v1pb.PolicyType_DISABLE_COPY_DATApayload, err := convertToV1PBDisableCopyDataPolicy(policyMessage.Payload)@@ -683,24 +666,6 @@ func convertToStorePBRolloutPolicy(policy *v1pb.RolloutPolicy) *storepb.RolloutP}}-func convertToV1PBSlowQueryPolicy(payloadStr string) (*v1pb.Policy_SlowQueryPolicy, error) {- payload := &storepb.SlowQueryPolicy{}- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(payloadStr), payload); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal slow query policy payload")- }- return &v1pb.Policy_SlowQueryPolicy{- SlowQueryPolicy: &v1pb.SlowQueryPolicy{- Active: payload.Active,- },- }, nil-}--func convertToSlowQueryPolicyPayload(policy *v1pb.SlowQueryPolicy) (*storepb.SlowQueryPolicy, error) {- return &storepb.SlowQueryPolicy{- Active: policy.Active,- }, nil-}-func convertToV1PBDisableCopyDataPolicy(payloadStr string) (*v1pb.Policy_DisableCopyDataPolicy, error) {payload := &storepb.DisableCopyDataPolicy{}if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(payloadStr), payload); err != nil {@@ -896,8 +861,6 @@ func convertPolicyType(pType string) (api.PolicyType, error) {return api.PolicyTypeMaskingRule, nilcase v1pb.PolicyType_MASKING_EXCEPTION.String():return api.PolicyTypeMaskingException, nil- case v1pb.PolicyType_SLOW_QUERY.String():- return api.PolicyTypeSlowQuery, nilcase v1pb.PolicyType_DISABLE_COPY_DATA.String():return api.PolicyTypeDisableCopyData, nilcase v1pb.PolicyType_DATA_EXPORT.String():diff --git a/backend/component/state/state.go b/backend/component/state/state.goindex f1d4952c6a..df8a6ec3a8 100644--- a/backend/component/state/state.go+++ b/backend/component/state/state.go@@ -14,9 +14,6 @@ const defaultInstanceMaximumConnections = 10// State is the state for all in-memory states within the server.type State struct {- // InstanceSlowQuerySyncChan is the channel for synchronizing slow query logs for instances.- InstanceSlowQuerySyncChan chan *InstanceSlowQuerySyncMessage-// ApprovalFinding is the set of issues for finding the approval template.ApprovalFinding sync.Map // map[issue.ID]*store.IssueMessage@@ -64,7 +61,6 @@ func New() (*State, error) {return nil, errors.Wrapf(err, "failed to create auth expire cache")}return &State{- InstanceSlowQuerySyncChan: make(chan *InstanceSlowQuerySyncMessage, 100),InstanceOutstandingConnections: &connectionLimiter{connections: map[string]int{}},IssueExternalApprovalRelayCancelChan: make(chan int, 1),TaskSkippedOrDoneChan: make(chan int, 1000),@@ -74,16 +70,6 @@ func New() (*State, error) {}, nil}-// InstanceSlowQuerySyncMessage is the message for synchronizing slow query logs for instances.-type InstanceSlowQuerySyncMessage struct {- InstanceID string-- // ProjectID is used to filter the database list.- // If ProjectID is empty, then all databases will be synced.- // If ProjectID is not empty, then only databases belong to the project will be synced.- ProjectID string-}-type connectionLimiter struct {sync.Mutexconnections map[string]intdiff --git a/backend/enterprise/api/plan.yaml b/backend/enterprise/api/plan.yamlindex 297fea6576..70bac9e46f 100644--- a/backend/enterprise/api/plan.yaml+++ b/backend/enterprise/api/plan.yaml@@ -36,7 +36,6 @@ categoryList:- type: data-security-and-governancefeatureList:- rbac- - slow-query- archiving- sso- 2fa@@ -110,7 +109,6 @@ planList:content: webhook-integration-basictooltip: webhook-integration-basic-tooltip# Data Security and Governance- - type: slow-query- type: archiving- type: anomaly-detectioncontent: anomaly-detection-basic@@ -183,7 +181,6 @@ planList:content: webhook-integration-basictooltip: webhook-integration-basic-tooltip# Data Security and Governance- - type: slow-query- type: archiving- type: anomaly-detectioncontent: anomaly-detection-basic@@ -261,7 +258,6 @@ planList:content: webhook-integration-advancedtooltip: webhook-integration-advanced-tooltip# Data Security and Governance- - type: slow-query- type: archiving- type: anomaly-detectioncontent: anomaly-detection-advanceddiff --git a/backend/legacyapi/policy.go b/backend/legacyapi/policy.goindex 3538606a2a..c44722536c 100644--- a/backend/legacyapi/policy.go+++ b/backend/legacyapi/policy.go@@ -25,8 +25,6 @@ const (PolicyTypeEnvironmentTier PolicyType = "bb.policy.environment-tier"// PolicyTypeMaskingException is the masking exception policy type.PolicyTypeMaskingException PolicyType = "bb.policy.masking-exception"- // PolicyTypeSlowQuery is the slow query policy type.- PolicyTypeSlowQuery PolicyType = "bb.policy.slow-query"// PolicyTypeDisableCopyData is the disable copy data policy type.PolicyTypeDisableCopyData PolicyType = "bb.policy.disable-copy-data"// PolicyTypeExportData is the policy type for data export control.@@ -75,7 +73,6 @@ var (PolicyTypeRollout: {PolicyResourceTypeEnvironment},PolicyTypeEnvironmentTier: {PolicyResourceTypeEnvironment},PolicyTypeTag: {PolicyResourceTypeEnvironment, PolicyResourceTypeProject},- PolicyTypeSlowQuery: {PolicyResourceTypeInstance},PolicyTypeDisableCopyData: {PolicyResourceTypeEnvironment, PolicyResourceTypeProject},PolicyTypeExportData: {PolicyResourceTypeWorkspace},PolicyTypeQueryData: {PolicyResourceTypeWorkspace},diff --git a/backend/migrator/migration/3.5/0014##delete_slow_query_policy.sql b/backend/migrator/migration/3.5/0014##delete_slow_query_policy.sqlnew file mode 100644index 0000000000..51d5f6be90--- /dev/null+++ b/backend/migrator/migration/3.5/0014##delete_slow_query_policy.sql@@ -0,0 +1 @@+DELETE FROM policy WHERE type = 'bb.policy.slow-query';\ No newline at end of filediff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 3823625ccd..557a1ba002 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -213,5 +213,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("3.5.13"), releaseVersion)+ require.Equal(t, semver.MustParse("3.5.14"), releaseVersion)}diff --git a/backend/plugin/advisor/utils_for_tests.go b/backend/plugin/advisor/utils_for_tests.goindex b99d912da2..d103e988f0 100644--- a/backend/plugin/advisor/utils_for_tests.go+++ b/backend/plugin/advisor/utils_for_tests.go@@ -11,7 +11,6 @@ import ("sort""strings""testing"- "time""github.com/pkg/errors""github.com/stretchr/testify/require"@@ -317,16 +316,6 @@ func (*MockDriver) Dump(_ context.Context, _ io.Writer, _ *storepb.DatabaseSchemreturn nil}-// SyncSlowQuery implements the Driver interface.-func (*MockDriver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, nil-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*MockDriver) CheckSlowQueryLogEnabled(_ context.Context) error {- return nil-}-// SetDefaultSQLReviewRulePayload sets the default payload for this rule.func SetDefaultSQLReviewRulePayload(ruleTp SQLReviewRuleType, dbType storepb.Engine) (string, error) {var payload []bytediff --git a/backend/plugin/db/bigquery/sync.go b/backend/plugin/db/bigquery/sync.goindex b1daf493db..5b10e50caf 100644--- a/backend/plugin/db/bigquery/sync.go+++ b/backend/plugin/db/bigquery/sync.go@@ -3,10 +3,8 @@ package bigqueryimport ("context""fmt"- "time""cloud.google.com/go/bigquery"- "github.com/pkg/errors""google.golang.org/api/iterator""google.golang.org/protobuf/types/known/wrapperspb"@@ -126,13 +124,3 @@ func (d *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchemaMetadSchemas: []*storepb.SchemaMetadata{schemaMetadata},}, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/clickhouse/sync.go b/backend/plugin/db/clickhouse/sync.goindex 8f5fefbb46..8c5aa10b10 100644--- a/backend/plugin/db/clickhouse/sync.go+++ b/backend/plugin/db/clickhouse/sync.go@@ -6,8 +6,6 @@ import ("strings""time"- "github.com/pkg/errors"-"github.com/bytebase/bytebase/backend/plugin/db""github.com/bytebase/bytebase/backend/plugin/db/util"storepb "github.com/bytebase/bytebase/proto/generated-go/store"@@ -253,13 +251,3 @@ func (driver *Driver) getDataSkippingIndices(ctx context.Context, database strin}return indices, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/cockroachdb/cockroachdb.go b/backend/plugin/db/cockroachdb/cockroachdb.goindex 892a3f86ed..25af2592ce 100644--- a/backend/plugin/db/cockroachdb/cockroachdb.go+++ b/backend/plugin/db/cockroachdb/cockroachdb.go@@ -278,18 +278,6 @@ func (driver *Driver) getVersion(ctx context.Context) (string, error) {return version, nil}-func (driver *Driver) getPGStatStatementsVersion(ctx context.Context) (string, error) {- query := "select extversion from pg_extension where extname = 'pg_stat_statements'"- var version string- if err := driver.db.QueryRowContext(ctx, query).Scan(&version); err != nil {- if err == sql.ErrNoRows {- return "", common.FormatDBErrorEmptyRowWithQuery(query)- }- return "", util.FormatErrorWithQuery(err, query)- }- return version, nil-}-// Execute will execute the statement. For CREATE DATABASE statement, some types of databases such as Postgres// will not use transactions to execute the statement but will still use transactions to execute the rest of statements.func (driver *Driver) Execute(ctx context.Context, statement string, opts db.ExecuteOptions) (int64, error) {diff --git a/backend/plugin/db/cockroachdb/sync.go b/backend/plugin/db/cockroachdb/sync.goindex 673d517c36..8130fa4cd7 100644--- a/backend/plugin/db/cockroachdb/sync.go+++ b/backend/plugin/db/cockroachdb/sync.go@@ -7,18 +7,13 @@ import ("log/slog""regexp""strings"- "time""github.com/blang/semver/v4""github.com/pkg/errors"- "google.golang.org/protobuf/types/known/durationpb"- "google.golang.org/protobuf/types/known/timestamppb"crrawparser "github.com/cockroachdb/cockroachdb-parser/pkg/sql/parser"crrawparsertree "github.com/cockroachdb/cockroachdb-parser/pkg/sql/sem/tree"- "github.com/cockroachdb/cockroach-go/v2/crdb"-"github.com/bytebase/bytebase/backend/common""github.com/bytebase/bytebase/backend/common/log""github.com/bytebase/bytebase/backend/plugin/db"@@ -920,174 +915,6 @@ func getFunctions(txn *sql.Tx) (map[string][]*storepb.FunctionMetadata, error) {return functionMap, nil}-var statPluginVersion = semver.MustParse("1.8.0")--// SyncSlowQuery syncs the slow query.-func (driver *Driver) SyncSlowQuery(ctx context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- var now time.Time- getNow := `SELECT NOW();`- if err := crdb.Execute(func() error {- nowRows, err := driver.db.QueryContext(ctx, getNow)- if err != nil {- return err- }- defer nowRows.Close()- for nowRows.Next() {- if err := nowRows.Scan(&now); err != nil {- return err- }- }- err = nowRows.Err()- return err- }); err != nil {- return nil, util.FormatErrorWithQuery(err, getNow)- }-- result := make(map[string]*storepb.SlowQueryStatistics)- version, err := driver.getPGStatStatementsVersion(ctx)- if err != nil {- return nil, err- }- var query string- // pg_stat_statements version 1.8 changed the column names of pg_stat_statements.- // version is a string in the form of "major.minor".- // We need to check if the major version is greater than or equal to 1 and the minor version is greater than or equal to 8.- sv, err := semver.ParseTolerant(version)- if err != nil {- return nil, err- }- if sv.GTE(statPluginVersion) {- query = `- SELECT- pg_database.datname,- query,- calls,- total_exec_time,- max_exec_time,- rows- FROM- pg_stat_statements- JOIN pg_database ON pg_database.oid = pg_stat_statements.dbid- WHERE max_exec_time >= 1000;- `- } else {- query = `- SELECT- pg_database.datname,- query,- calls,- total_time,- max_time,- rows- FROM- pg_stat_statements- JOIN pg_database ON pg_database.oid = pg_stat_statements.dbid- WHERE max_time >= 1000;- `- }-- if err := crdb.Execute(func() error {- slowQueryStatisticsRows, err := driver.db.QueryContext(ctx, query)- if err != nil {- return err- }- defer slowQueryStatisticsRows.Close()- for slowQueryStatisticsRows.Next() {- var database string- var fingerprint string- var calls int64- var totalExecTime float64- var maxExecTime float64- var rows int64- if err := slowQueryStatisticsRows.Scan(&database, &fingerprint, &calls, &totalExecTime, &maxExecTime, &rows); err != nil {- return err- }- if len(fingerprint) > db.SlowQueryMaxLen {- fingerprint, _ = common.TruncateString(fingerprint, db.SlowQueryMaxLen)- }- item := storepb.SlowQueryStatisticsItem{- SqlFingerprint: fingerprint,- Count: calls,- LatestLogTime: timestamppb.New(now.UTC()),- TotalQueryTime: durationpb.New(time.Duration(totalExecTime * float64(time.Millisecond))),- MaximumQueryTime: durationpb.New(time.Duration(maxExecTime * float64(time.Millisecond))),- TotalRowsSent: rows,- }- if statistics, exists := result[database]; exists {- statistics.Items = append(statistics.Items, &item)- } else {- result[database] = &storepb.SlowQueryStatistics{- Items: []*storepb.SlowQueryStatisticsItem{&item},- }- }- }- err = slowQueryStatisticsRows.Err()- return err- }); err != nil {- return nil, util.FormatErrorWithQuery(err, query)- }-- reset := `SELECT pg_stat_statements_reset();`- if err := crdb.Execute(func() error {- if _, err := driver.db.ExecContext(ctx, reset); err != nil {- return err- }- return nil- }); err != nil {- return nil, util.FormatErrorWithQuery(err, reset)- }-- return result, nil-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (driver *Driver) CheckSlowQueryLogEnabled(ctx context.Context) error {- showSharedPreloadLibraries := `SELECT setting FROM pg_settings WHERE name = 'shared_preload_libraries';`-- if err := crdb.Execute(func() error {- sharedPreloadLibrariesRows, err := driver.db.QueryContext(ctx, showSharedPreloadLibraries)- if err != nil {- return util.FormatErrorWithQuery(err, showSharedPreloadLibraries)- }- defer sharedPreloadLibrariesRows.Close()- for sharedPreloadLibrariesRows.Next() {- var sharedPreloadLibraries string- if err := sharedPreloadLibrariesRows.Scan(&sharedPreloadLibraries); err != nil {- return err- }- if !strings.Contains(sharedPreloadLibraries, "pg_stat_statements") {- return errors.New("pg_stat_statements is not loaded")- }- }- if err := sharedPreloadLibrariesRows.Err(); err != nil {- return util.FormatErrorWithQuery(err, showSharedPreloadLibraries)- }- return nil- }); err != nil {- return util.FormatErrorWithQuery(err, showSharedPreloadLibraries)- }-- checkPGStatStatements := `SELECT count(*) FROM pg_stat_statements limit 10;`-- if err := crdb.Execute(func() error {- pgStatStatementsInfoRows, err := driver.db.QueryContext(ctx, checkPGStatStatements)- if err != nil {- return err- }- defer pgStatStatementsInfoRows.Close()- // no need to scan rows, just check if there is any row- if !pgStatStatementsInfoRows.Next() {- return errors.New("pg_stat_statements is empty")- }- err = pgStatStatementsInfoRows.Err()- return err- }); err != nil {- return util.FormatErrorWithQuery(err, checkPGStatStatements)- }-- return nil-}-func isAtLeastPG10(version string) bool {v, err := semver.ParseTolerant(version)if err != nil {diff --git a/backend/plugin/db/cosmosdb/sync.go b/backend/plugin/db/cosmosdb/sync.goindex ae5c332d0c..7e0ce45c01 100644--- a/backend/plugin/db/cosmosdb/sync.go+++ b/backend/plugin/db/cosmosdb/sync.go@@ -2,7 +2,6 @@ package cosmosdbimport ("context"- "time""github.com/pkg/errors"@@ -62,13 +61,3 @@ func (driver *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchema},}, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/databricks/databricks.go b/backend/plugin/db/databricks/databricks.goindex 08baa6bf4a..2b7260e6da 100644--- a/backend/plugin/db/databricks/databricks.go+++ b/backend/plugin/db/databricks/databricks.go@@ -126,10 +126,6 @@ func (d *Driver) Execute(ctx context.Context, statement string, _ db.ExecuteOptireturn 0, err}-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return nil-}-// Execute SQL statement synchronously and return row data or error.func (d *Driver) execSingleSQLSync(ctx context.Context, statement string) ([][]string, []dbsql.ColumnInfo, error) {resp, err := d.Client.StatementExecution.ExecuteAndWait(ctx, dbsql.ExecuteStatementRequest{diff --git a/backend/plugin/db/databricks/sync.go b/backend/plugin/db/databricks/sync.goindex 78cb276619..d672e6b1fc 100644--- a/backend/plugin/db/databricks/sync.go+++ b/backend/plugin/db/databricks/sync.go@@ -4,7 +4,6 @@ import ("context""fmt""strings"- "time""github.com/databricks/databricks-sdk-go/service/catalog""github.com/pkg/errors"@@ -88,10 +87,6 @@ func (d *Driver) SyncInstance(ctx context.Context) (*db.InstanceMetadata, error)return instanceMetadata, nil}-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, nil-}-// list all tables in the workspace when catalogName is set to "".func (d *Driver) listCatologTables(ctx context.Context, targetCatalogName string) (databricksCatalogMap, error) {catalogMap := make(databricksCatalogMap)diff --git a/backend/plugin/db/dm/sync.go b/backend/plugin/db/dm/sync.goindex f20623917a..d4cd120333 100644--- a/backend/plugin/db/dm/sync.go+++ b/backend/plugin/db/dm/sync.go@@ -5,7 +5,6 @@ import ("database/sql""fmt""strings"- "time""github.com/pkg/errors"@@ -352,13 +351,3 @@ func getViews(txn *sql.Tx, schemaName string, columnMap map[db.TableKey][]*storereturn viewMap, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/driver.go b/backend/plugin/db/driver.goindex c536a05dd2..c3bd41b2d3 100644--- a/backend/plugin/db/driver.go+++ b/backend/plugin/db/driver.go@@ -17,15 +17,6 @@ import (v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")-const (- // SlowQueryMaxLen is the max length of slow query.- SlowQueryMaxLen = 2048- // SlowQueryMaxSamplePerFingerprint is the max number of slow query samples per fingerprint.- SlowQueryMaxSamplePerFingerprint = 100- // SlowQueryMaxSamplePerDay is the max number of slow query samples per day.- SlowQueryMaxSamplePerDay = 10000-)-// User is the database user.type User struct {Name string@@ -230,12 +221,6 @@ type Driver interface {// SyncDBSchema syncs a single database schema.SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchemaMetadata, error)- // Sync slow query logs- // SyncSlowQuery syncs the slow query logs.- // The returned map is keyed by database name, and the value is list of slow query statistics grouped by query fingerprint.- SyncSlowQuery(ctx context.Context, logDateTs time.Time) (map[string]*storepb.SlowQueryStatistics, error)- // CheckSlowQueryLogEnabled checks if the slow query log is enabled.- CheckSlowQueryLogEnabled(ctx context.Context) error// Dump dumps the schema of database.Dump(ctx context.Context, out io.Writer, dbSchema *storepb.DatabaseSchemaMetadata) error}diff --git a/backend/plugin/db/dynamodb/sync.go b/backend/plugin/db/dynamodb/sync.goindex 981e3e8336..bb0d8a46a7 100644--- a/backend/plugin/db/dynamodb/sync.go+++ b/backend/plugin/db/dynamodb/sync.go@@ -4,7 +4,6 @@ import ("context""sort""strings"- "time""github.com/aws/aws-sdk-go-v2/service/dynamodb""github.com/aws/aws-sdk-go-v2/service/dynamodb/types"@@ -157,16 +156,6 @@ func (d *Driver) listAllTables(ctx context.Context) ([]string, error) {return result, nil}-// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- panic("implement me")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- panic("implement me")-}-func formatDatabaseName(accountID string, region string) string {return accountID + "-" + region}diff --git a/backend/plugin/db/elasticsearch/sync.go b/backend/plugin/db/elasticsearch/sync.goindex 9142f7c456..308f0b6189 100644--- a/backend/plugin/db/elasticsearch/sync.go+++ b/backend/plugin/db/elasticsearch/sync.go@@ -9,7 +9,6 @@ import ("io""net/http"- "time""github.com/elastic/go-elasticsearch/v7/esapi""github.com/pkg/errors"@@ -63,14 +62,6 @@ func (d *Driver) SyncDBSchema(_ context.Context) (*storepb.DatabaseSchemaMetadatreturn &dbSchemaMetadata, nil}-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.New("CheckSlowQuery() is not applicable to Elasticsearch")-}--func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.New("CheckSlowQueryLogEnabled() is not applicable to Elasticsearch")-}-// struct for getVersion().type VersionResult struct {Version struct {diff --git a/backend/plugin/db/hive/sync.go b/backend/plugin/db/hive/sync.goindex 5aa40569af..cb58cbe988 100644--- a/backend/plugin/db/hive/sync.go+++ b/backend/plugin/db/hive/sync.go@@ -6,7 +6,6 @@ import ("log/slog""strconv""strings"- "time""github.com/pkg/errors"@@ -56,14 +55,6 @@ func (d *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchemaMetad}, nil}-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("SyncSlowQuery() is not applicable to Hive")-}--func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("CheckSlowQueryLogEnabled() is not applicable to Hive")-}-func (d *Driver) getVersion(ctx context.Context) (string, error) {result, err := runSingleStatement(ctx, d.conn, "SELECT VERSION()", d.config.MaximumSQLResultSize)if err != nil {diff --git a/backend/plugin/db/mongodb/sync.go b/backend/plugin/db/mongodb/sync.goindex 42c0249293..d734cd770e 100644--- a/backend/plugin/db/mongodb/sync.go+++ b/backend/plugin/db/mongodb/sync.go@@ -6,7 +6,6 @@ import ("log/slog""sort""strings"- "time""go.mongodb.org/mongo-driver/bson""go.mongodb.org/mongo-driver/mongo"@@ -358,13 +357,3 @@ func convertEmptyInterfaceToInt64(value any) (int64, error) {return 0, errors.Errorf("cannot convert %v to int64", value)}}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/mssql/sync.go b/backend/plugin/db/mssql/sync.goindex 11c856d7d9..1a43dd29f2 100644--- a/backend/plugin/db/mssql/sync.go+++ b/backend/plugin/db/mssql/sync.go@@ -6,7 +6,6 @@ import ("fmt""sort""strings"- "time""github.com/pkg/errors"@@ -634,13 +633,3 @@ func getFunctions(txn *sql.Tx) (map[string][]*storepb.FunctionMetadata, error) {return funcMap, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/mysql/sync.go b/backend/plugin/db/mysql/sync.goindex f41037f448..b82420e882 100644--- a/backend/plugin/db/mysql/sync.go+++ b/backend/plugin/db/mysql/sync.go@@ -5,19 +5,15 @@ import ("database/sql""fmt""log/slog"- "math/rand""regexp""sort""strconv""strings"- "time""unicode""unicode/utf8""golang.org/x/text/encoding/charmap""golang.org/x/text/transform"- "google.golang.org/protobuf/types/known/durationpb"- "google.golang.org/protobuf/types/known/timestamppb""google.golang.org/protobuf/types/known/wrapperspb""github.com/blang/semver/v4"@@ -27,8 +23,6 @@ import ("github.com/bytebase/bytebase/backend/common/log""github.com/bytebase/bytebase/backend/plugin/db""github.com/bytebase/bytebase/backend/plugin/db/util"- "github.com/bytebase/bytebase/backend/plugin/parser/base"- mysqlparser "github.com/bytebase/bytebase/backend/plugin/parser/mysql"storepb "github.com/bytebase/bytebase/proto/generated-go/store")@@ -1332,277 +1326,6 @@ func (driver *Driver) getForeignKeyList(ctx context.Context, databaseName stringreturn orderedResult, nil}-type slowLog struct {- database string- details *storepb.SlowQueryDetails-}--// SyncSlowQuery syncs slow query from mysql.slow_log.-func (driver *Driver) SyncSlowQuery(ctx context.Context, logDateTs time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- var timeZone string- // The MySQL function convert_tz requires loading the time zone table into MySQL.- // So we convert time zone in backend instead of MySQL server- // https://stackoverflow.com/questions/14454304/convert-tz-returns-null- timeZoneQuery := `SELECT @@log_timestamps, @@system_time_zone;`- timeZoneRows, err := driver.db.QueryContext(ctx, timeZoneQuery)- if err != nil {- return nil, util.FormatErrorWithQuery(err, timeZoneQuery)- }- defer timeZoneRows.Close()- for timeZoneRows.Next() {- var logTimeZone, systemTimeZone string- if err := timeZoneRows.Scan(&logTimeZone, &systemTimeZone); err != nil {- return nil, err- }-- timeZone = logTimeZone- if strings.ToLower(logTimeZone) == "system" {- timeZone = systemTimeZone- }- }- if err := timeZoneRows.Err(); err != nil {- return nil, util.FormatErrorWithQuery(err, timeZoneQuery)- }-- location, err := time.LoadLocation(timeZone)- if err != nil {- slog.Debug("failed to load time zone", slog.String("timeZone", timeZone), log.BBError(err))- location, err = time.LoadLocation("Local")- if err != nil {- // This should never happen- slog.Debug("failed to load time zone", slog.String("timeZone", "Local"), log.BBError(err))- }- }-- logs := make([]*slowLog, 0, db.SlowQueryMaxSamplePerDay)- query := `- SELECT- start_time,- query_time,- lock_time,- rows_sent,- rows_examined,- db,- CONVERT(sql_text USING utf8) AS sql_text- FROM- mysql.slow_log- WHERE- start_time >= ?- AND start_time < ?- `-- slowLogRows, err := driver.db.QueryContext(ctx, query, logDateTs.Format("2006-01-02"), logDateTs.AddDate(0, 0, 1).Format("2006-01-02"))- if err != nil {- return nil, util.FormatErrorWithQuery(err, query)- }- defer slowLogRows.Close()- for slowLogRows.Next() {- log := slowLog{- details: &storepb.SlowQueryDetails{},- }- var startTime, queryTime, lockTime string- if err := slowLogRows.Scan(- &startTime,- &queryTime,- &lockTime,- &log.details.RowsSent,- &log.details.RowsExamined,- &log.database,- &log.details.SqlText,- ); err != nil {- return nil, err- }-- startTimeTs, err := time.ParseInLocation("2006-01-02 15:04:05.999999", startTime, location)- if err != nil {- return nil, err- }- log.details.StartTime = timestamppb.New(startTimeTs)-- queryTimeDuration, err := parseDuration(queryTime)- if err != nil {- return nil, err- }- log.details.QueryTime = durationpb.New(queryTimeDuration)-- lockTimeDuration, err := parseDuration(lockTime)- if err != nil {- return nil, err- }- log.details.LockTime = durationpb.New(lockTimeDuration)-- // Use Reservoir Sampling to sample slow logs.- // See https://en.wikipedia.org/wiki/Reservoir_sampling- if len(logs) < db.SlowQueryMaxSamplePerDay {- logs = append(logs, &log)- } else {- pos := rand.Intn(len(logs))- logs[pos] = &log- }- }-- if err := slowLogRows.Err(); err != nil {- return nil, util.FormatErrorWithQuery(err, query)- }-- return analyzeSlowLog(driver.dbType, logs)-}--func parseDuration(s string) (time.Duration, error) {- if s == "" {- return 0, nil- }- list := strings.Split(s, ":")- if len(list) != 3 {- return 0, errors.Errorf("invalid duration: %s", s)- }- duration := fmt.Sprintf("%sh%sm%ss", list[0], list[1], list[2])- return time.ParseDuration(duration)-}--func analyzeSlowLog(engine storepb.Engine, logs []*slowLog) (map[string]*storepb.SlowQueryStatistics, error) {- logMap := make(map[string]map[string]*storepb.SlowQueryStatisticsItem)-- for _, log := range logs {- databaseList := extractDatabase(engine, log.database, log.details.SqlText)- fingerprint, err := mysqlparser.GetFingerprint(log.details.SqlText)- if err != nil {- return nil, errors.Wrapf(err, "get sql fingerprint failed, sql: %s", log.details.SqlText)- }- if len(fingerprint) > db.SlowQueryMaxLen {- fingerprint, _ = common.TruncateString(fingerprint, db.SlowQueryMaxLen)- }- if len(log.details.SqlText) > db.SlowQueryMaxLen {- log.details.SqlText, _ = common.TruncateString(log.details.SqlText, db.SlowQueryMaxLen)- }-- for _, db := range databaseList {- if _, ok := logMap[db]; !ok {- logMap[db] = make(map[string]*storepb.SlowQueryStatisticsItem)- }- logMap[db][fingerprint] = mergeSlowLog(fingerprint, logMap[db][fingerprint], log.details)- }- }-- var result = make(map[string]*storepb.SlowQueryStatistics)-- for db, dblog := range logMap {- var statisticsList storepb.SlowQueryStatistics- for _, statistics := range dblog {- statisticsList.Items = append(statisticsList.Items, statistics)- }- result[db] = &statisticsList- }-- return result, nil-}--func mergeSlowLog(fingerprint string, statistics *storepb.SlowQueryStatisticsItem, details *storepb.SlowQueryDetails) *storepb.SlowQueryStatisticsItem {- if statistics == nil {- return &storepb.SlowQueryStatisticsItem{- SqlFingerprint: fingerprint,- Count: 1,- LatestLogTime: details.StartTime,- TotalQueryTime: details.QueryTime,- MaximumQueryTime: details.QueryTime,- TotalRowsSent: details.RowsSent,- MaximumRowsSent: details.RowsSent,- TotalRowsExamined: details.RowsExamined,- MaximumRowsExamined: details.RowsExamined,- Samples: []*storepb.SlowQueryDetails{details},- }- }- statistics.Count++- if statistics.LatestLogTime.AsTime().Before(details.StartTime.AsTime()) {- statistics.LatestLogTime = details.StartTime- }- statistics.TotalQueryTime = durationpb.New(statistics.TotalQueryTime.AsDuration() + details.QueryTime.AsDuration())- if statistics.MaximumQueryTime.AsDuration() < details.QueryTime.AsDuration() {- statistics.MaximumQueryTime = details.QueryTime- }- statistics.TotalRowsSent += details.RowsSent- if statistics.MaximumRowsSent < details.RowsSent {- statistics.MaximumRowsSent = details.RowsSent- }- statistics.TotalRowsExamined += details.RowsExamined- if statistics.MaximumRowsExamined < details.RowsExamined {- statistics.MaximumRowsExamined = details.RowsExamined- }- if len(statistics.Samples) < db.SlowQueryMaxSamplePerFingerprint {- statistics.Samples = append(statistics.Samples, details)- } else {- // Use Reservoir Sampling to sample slow logs.- pos := rand.Intn(len(statistics.Samples))- statistics.Samples[pos] = details- }- return statistics-}--func extractDatabase(engne storepb.Engine, defaultDB string, sql string) []string {- resources, err := base.ExtractResourceList(engne, defaultDB /* currentDatabase */, "" /* currentSchema */, sql)- if err != nil {- // If we can't extract the database, we just use the default database.- slog.Debug("extract database failed", log.BBError(err), slog.String("sql", sql))- return []string{defaultDB}- }- databaseMap := make(map[string]bool)- for _, resource := range resources {- databaseMap[resource.Database] = true- }- var databases []string- for database := range databaseMap {- databases = append(databases, database)- }- if len(databases) == 0 {- databases = append(databases, defaultDB)- }- return databases-}--// CheckSlowQueryLogEnabled checks whether the slow query log is enabled.-func (driver *Driver) CheckSlowQueryLogEnabled(ctx context.Context) error {- showSlowQueryLog := "SHOW GLOBAL VARIABLES LIKE 'slow_query_log'"-- slowQueryLogRows, err := driver.db.QueryContext(ctx, showSlowQueryLog)- if err != nil {- return util.FormatErrorWithQuery(err, showSlowQueryLog)- }- defer slowQueryLogRows.Close()- for slowQueryLogRows.Next() {- var name, value string- if err := slowQueryLogRows.Scan(&name, &value); err != nil {- return err- }- if value != "ON" {- return errors.New("slow query log is not enabled: slow_query_log = " + value)- }- }- if err := slowQueryLogRows.Err(); err != nil {- return util.FormatErrorWithQuery(err, showSlowQueryLog)- }-- showLogOutput := "SHOW GLOBAL VARIABLES LIKE 'log_output'"- logOutputRows, err := driver.db.QueryContext(ctx, showLogOutput)- if err != nil {- return util.FormatErrorWithQuery(err, showLogOutput)- }- defer logOutputRows.Close()- for logOutputRows.Next() {- var name, value string- if err := logOutputRows.Scan(&name, &value); err != nil {- return err- }- if !strings.Contains(value, "TABLE") {- return errors.New("slow query log is not contained in TABLE: log_output = " + value)- }- }- if err := logOutputRows.Err(); err != nil {- return util.FormatErrorWithQuery(err, showLogOutput)- }-- return nil-}-func stripSingleQuote(s string) string {if len(s) >= 2 && s[0] == '\'' && s[len(s)-1] == '\'' {return s[1 : len(s)-1]diff --git a/backend/plugin/db/obo/sync.go b/backend/plugin/db/obo/sync.goindex a72bc6e7a3..a1ce1518d8 100644--- a/backend/plugin/db/obo/sync.go+++ b/backend/plugin/db/obo/sync.go@@ -6,7 +6,6 @@ import ("fmt""regexp""strings"- "time""github.com/pkg/errors"@@ -312,11 +311,3 @@ func getViews(ctx context.Context, tx *sql.Tx, schemaName string, columnMap map[return viewMap, nil}--func (*Driver) SyncSlowQuery(context.Context, time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.New("not implemented")-}--func (*Driver) CheckSlowQueryLogEnabled(context.Context) error {- return errors.New("not implemented")-}diff --git a/backend/plugin/db/oracle/sync.go b/backend/plugin/db/oracle/sync.goindex be0f0f24c9..a7f4ce98b8 100644--- a/backend/plugin/db/oracle/sync.go+++ b/backend/plugin/db/oracle/sync.go@@ -7,7 +7,6 @@ import ("log/slog""regexp""strings"- "time""github.com/pkg/errors"@@ -755,13 +754,3 @@ func getRoutines(txn *sql.Tx, schemaName string) ([]*storepb.FunctionMetadata, [return functions, procedures, packages, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/pg/pg.go b/backend/plugin/db/pg/pg.goindex 8c0c3e15bf..923b60ee3a 100644--- a/backend/plugin/db/pg/pg.go+++ b/backend/plugin/db/pg/pg.go@@ -337,18 +337,6 @@ func (driver *Driver) getVersion(ctx context.Context) (string, error) {return fmt.Sprintf("%d.%d.%d", major, minor, patch), nil}-func (driver *Driver) getPGStatStatementsVersion(ctx context.Context) (string, error) {- query := "select extversion from pg_extension where extname = 'pg_stat_statements'"- var version string- if err := driver.db.QueryRowContext(ctx, query).Scan(&version); err != nil {- if err == sql.ErrNoRows {- return "", common.FormatDBErrorEmptyRowWithQuery(query)- }- return "", util.FormatErrorWithQuery(err, query)- }- return version, nil-}-// Execute will execute the statement. For CREATE DATABASE statement, some types of databases such as Postgres// will not use transactions to execute the statement but will still use transactions to execute the rest of statements.func (driver *Driver) Execute(ctx context.Context, statement string, opts db.ExecuteOptions) (int64, error) {diff --git a/backend/plugin/db/pg/sync.go b/backend/plugin/db/pg/sync.goindex 56951ebf5f..55129ef0bb 100644--- a/backend/plugin/db/pg/sync.go+++ b/backend/plugin/db/pg/sync.go@@ -8,12 +8,9 @@ import ("regexp""strconv""strings"- "time""github.com/blang/semver/v4""github.com/pkg/errors"- "google.golang.org/protobuf/types/known/durationpb"- "google.golang.org/protobuf/types/known/timestamppb""github.com/bytebase/bytebase/backend/common""github.com/bytebase/bytebase/backend/common/log"@@ -1408,154 +1405,6 @@ func getFunctions(return functionMap, nil}-var statPluginVersion = semver.MustParse("1.8.0")--// SyncSlowQuery syncs the slow query.-func (driver *Driver) SyncSlowQuery(ctx context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- var now time.Time- getNow := `SELECT NOW();`- nowRows, err := driver.db.QueryContext(ctx, getNow)- if err != nil {- return nil, util.FormatErrorWithQuery(err, getNow)- }- defer nowRows.Close()- for nowRows.Next() {- if err := nowRows.Scan(&now); err != nil {- return nil, util.FormatErrorWithQuery(err, getNow)- }- }- if err := nowRows.Err(); err != nil {- return nil, util.FormatErrorWithQuery(err, getNow)- }-- result := make(map[string]*storepb.SlowQueryStatistics)- version, err := driver.getPGStatStatementsVersion(ctx)- if err != nil {- return nil, err- }- var query string- // pg_stat_statements version 1.8 changed the column names of pg_stat_statements.- // version is a string in the form of "major.minor".- // We need to check if the major version is greater than or equal to 1 and the minor version is greater than or equal to 8.- sv, err := semver.ParseTolerant(version)- if err != nil {- return nil, err- }- if sv.GTE(statPluginVersion) {- query = `- SELECT- pg_database.datname,- query,- calls,- total_exec_time,- max_exec_time,- rows- FROM- pg_stat_statements- JOIN pg_database ON pg_database.oid = pg_stat_statements.dbid- WHERE max_exec_time >= 1000;- `- } else {- query = `- SELECT- pg_database.datname,- query,- calls,- total_time,- max_time,- rows- FROM- pg_stat_statements- JOIN pg_database ON pg_database.oid = pg_stat_statements.dbid- WHERE max_time >= 1000;- `- }-- slowQueryStatisticsRows, err := driver.db.QueryContext(ctx, query)- if err != nil {- return nil, util.FormatErrorWithQuery(err, query)- }- defer slowQueryStatisticsRows.Close()- for slowQueryStatisticsRows.Next() {- var database string- var fingerprint string- var calls int64- var totalExecTime float64- var maxExecTime float64- var rows int64- if err := slowQueryStatisticsRows.Scan(&database, &fingerprint, &calls, &totalExecTime, &maxExecTime, &rows); err != nil {- return nil, err- }- if len(fingerprint) > db.SlowQueryMaxLen {- fingerprint, _ = common.TruncateString(fingerprint, db.SlowQueryMaxLen)- }- item := storepb.SlowQueryStatisticsItem{- SqlFingerprint: fingerprint,- Count: calls,- LatestLogTime: timestamppb.New(now.UTC()),- TotalQueryTime: durationpb.New(time.Duration(totalExecTime * float64(time.Millisecond))),- MaximumQueryTime: durationpb.New(time.Duration(maxExecTime * float64(time.Millisecond))),- TotalRowsSent: rows,- }- if statistics, exists := result[database]; exists {- statistics.Items = append(statistics.Items, &item)- } else {- result[database] = &storepb.SlowQueryStatistics{- Items: []*storepb.SlowQueryStatisticsItem{&item},- }- }- }- if err := slowQueryStatisticsRows.Err(); err != nil {- return nil, err- }-- reset := `SELECT pg_stat_statements_reset();`- if _, err := driver.db.ExecContext(ctx, reset); err != nil {- return nil, util.FormatErrorWithQuery(err, reset)- }- return result, nil-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (driver *Driver) CheckSlowQueryLogEnabled(ctx context.Context) error {- showSharedPreloadLibraries := `SELECT setting FROM pg_settings WHERE name = 'shared_preload_libraries';`-- sharedPreloadLibrariesRows, err := driver.db.QueryContext(ctx, showSharedPreloadLibraries)- if err != nil {- return util.FormatErrorWithQuery(err, showSharedPreloadLibraries)- }- defer sharedPreloadLibrariesRows.Close()- for sharedPreloadLibrariesRows.Next() {- var sharedPreloadLibraries string- if err := sharedPreloadLibrariesRows.Scan(&sharedPreloadLibraries); err != nil {- return err- }- if !strings.Contains(sharedPreloadLibraries, "pg_stat_statements") {- return errors.New("pg_stat_statements is not loaded")- }- }- if err := sharedPreloadLibrariesRows.Err(); err != nil {- return util.FormatErrorWithQuery(err, showSharedPreloadLibraries)- }-- checkPGStatStatements := `SELECT count(*) FROM pg_stat_statements limit 10;`-- pgStatStatementsInfoRows, err := driver.db.QueryContext(ctx, checkPGStatStatements)- if err != nil {- return util.FormatErrorWithQuery(err, checkPGStatStatements)- }- defer pgStatStatementsInfoRows.Close()- // no need to scan rows, just check if there is any row- if !pgStatStatementsInfoRows.Next() {- return errors.New("pg_stat_statements is empty")- }- if err := pgStatStatementsInfoRows.Err(); err != nil {- return util.FormatErrorWithQuery(err, checkPGStatStatements)- }-- return nil-}-func isAtLeastPG10(version string) bool {v, err := semver.ParseTolerant(version)if err != nil {diff --git a/backend/plugin/db/redis/sync.go b/backend/plugin/db/redis/sync.goindex e833029603..8ce599fa5e 100644--- a/backend/plugin/db/redis/sync.go+++ b/backend/plugin/db/redis/sync.go@@ -5,7 +5,6 @@ import ("regexp""strconv""strings"- "time""github.com/pkg/errors"@@ -133,13 +132,3 @@ func (d *Driver) getDatabaseNumberFromKeyspace(ctx context.Context) ([]int, bool}return dbs, false, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/redshift/sync.go b/backend/plugin/db/redshift/sync.goindex 2420a559dd..575c6ea83b 100644--- a/backend/plugin/db/redshift/sync.go+++ b/backend/plugin/db/redshift/sync.go@@ -8,7 +8,6 @@ import ("log/slog""regexp""strings"- "time""github.com/pkg/errors"@@ -745,13 +744,3 @@ func (driver *Driver) getDatabases(ctx context.Context) ([]*storepb.DatabaseSche}return databases, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/risingwave/sync.go b/backend/plugin/db/risingwave/sync.goindex 79e678f32b..ec784b5494 100644--- a/backend/plugin/db/risingwave/sync.go+++ b/backend/plugin/db/risingwave/sync.go@@ -5,7 +5,6 @@ import ("database/sql""fmt""regexp"- "time""github.com/pkg/errors"@@ -417,13 +416,3 @@ func getFunctions(txn *sql.Tx) (map[string][]*storepb.FunctionMetadata, error) {return functionMap, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/snowflake/sync.go b/backend/plugin/db/snowflake/sync.goindex f0aa2140be..cfee317d17 100644--- a/backend/plugin/db/snowflake/sync.go+++ b/backend/plugin/db/snowflake/sync.go@@ -7,7 +7,6 @@ import ("fmt""sort""strings"- "time""github.com/pkg/errors"@@ -539,13 +538,3 @@ func (driver *Driver) getTableSchema(ctx context.Context, database string) (map[return tableMap, viewMap, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/spanner/sync.go b/backend/plugin/db/spanner/sync.goindex 1d040380ab..7868ab2fa3 100644--- a/backend/plugin/db/spanner/sync.go+++ b/backend/plugin/db/spanner/sync.go@@ -3,7 +3,6 @@ package spannerimport ("context""sort"- "time""cloud.google.com/go/spanner""cloud.google.com/go/spanner/admin/database/apiv1/databasepb"@@ -370,13 +369,3 @@ func getView(ctx context.Context, tx *spanner.ReadOnlyTransaction, columnMap map}return viewMap, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/sqlite/sync.go b/backend/plugin/db/sqlite/sync.goindex 9ecc748fe4..b4b3f3d72e 100644--- a/backend/plugin/db/sqlite/sync.go+++ b/backend/plugin/db/sqlite/sync.go@@ -5,7 +5,6 @@ import ("database/sql""fmt""strings"- "time""github.com/pkg/errors"@@ -251,13 +250,3 @@ func getViews(txn *sql.Tx) ([]*storepb.ViewMetadata, error) {return views, nil}--// SyncSlowQuery syncs the slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks if slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/starrocks/sync.go b/backend/plugin/db/starrocks/sync.goindex 1f40a639b4..61d550845a 100644--- a/backend/plugin/db/starrocks/sync.go+++ b/backend/plugin/db/starrocks/sync.go@@ -7,7 +7,6 @@ import ("log/slog""strconv""strings"- "time""google.golang.org/protobuf/types/known/wrapperspb"@@ -319,13 +318,3 @@ func (driver *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchemareturn databaseMetadata, err}--// SyncSlowQuery syncs slow query.-func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- return nil, errors.Errorf("not implemented")-}--// CheckSlowQueryLogEnabled checks whether the slow query log is enabled.-func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {- return errors.Errorf("not implemented")-}diff --git a/backend/plugin/db/tidb/sync.go b/backend/plugin/db/tidb/sync.goindex 719d8f12bf..e8f31d92cb 100644--- a/backend/plugin/db/tidb/sync.go+++ b/backend/plugin/db/tidb/sync.go@@ -5,15 +5,11 @@ import ("database/sql""fmt""log/slog"- "math/rand""regexp""sort""strconv""strings"- "time"- "google.golang.org/protobuf/types/known/durationpb"- "google.golang.org/protobuf/types/known/timestamppb""google.golang.org/protobuf/types/known/wrapperspb""github.com/pkg/errors"@@ -22,8 +18,6 @@ import ("github.com/bytebase/bytebase/backend/common/log""github.com/bytebase/bytebase/backend/plugin/db""github.com/bytebase/bytebase/backend/plugin/db/util"- "github.com/bytebase/bytebase/backend/plugin/parser/base"- mysqlparser "github.com/bytebase/bytebase/backend/plugin/parser/mysql"storepb "github.com/bytebase/bytebase/proto/generated-go/store")@@ -762,277 +756,6 @@ func (driver *Driver) getForeignKeyList(ctx context.Context, databaseName stringreturn foreignKeysMap, nil}-type slowLog struct {- database string- details *storepb.SlowQueryDetails-}--// SyncSlowQuery syncs slow query from mysql.slow_log.-func (driver *Driver) SyncSlowQuery(ctx context.Context, logDateTs time.Time) (map[string]*storepb.SlowQueryStatistics, error) {- var timeZone string- // The MySQL function convert_tz requires loading the time zone table into MySQL.- // So we convert time zone in backend instead of MySQL server- // https://stackoverflow.com/questions/14454304/convert-tz-returns-null- timeZoneQuery := `SELECT @@log_timestamps, @@system_time_zone;`- timeZoneRows, err := driver.db.QueryContext(ctx, timeZoneQuery)- if err != nil {- return nil, util.FormatErrorWithQuery(err, timeZoneQuery)- }- defer timeZoneRows.Close()- for timeZoneRows.Next() {- var logTimeZone, systemTimeZone string- if err := timeZoneRows.Scan(&logTimeZone, &systemTimeZone); err != nil {- return nil, err- }-- timeZone = logTimeZone- if strings.ToLower(logTimeZone) == "system" {- timeZone = systemTimeZone- }- }- if err := timeZoneRows.Err(); err != nil {- return nil, util.FormatErrorWithQuery(err, timeZoneQuery)- }-- location, err := time.LoadLocation(timeZone)- if err != nil {- slog.Debug("failed to load time zone", slog.String("timeZone", timeZone), log.BBError(err))- location, err = time.LoadLocation("Local")- if err != nil {- // This should never happen- slog.Debug("failed to load time zone", slog.String("timeZone", "Local"), log.BBError(err))- }- }-- logs := make([]*slowLog, 0, db.SlowQueryMaxSamplePerDay)- query := `- SELECT- start_time,- query_time,- lock_time,- rows_sent,- rows_examined,- db,- CONVERT(sql_text USING utf8) AS sql_text- FROM- mysql.slow_log- WHERE- start_time >= ?- AND start_time < ?- `-- slowLogRows, err := driver.db.QueryContext(ctx, query, logDateTs.Format("2006-01-02"), logDateTs.AddDate(0, 0, 1).Format("2006-01-02"))- if err != nil {- return nil, util.FormatErrorWithQuery(err, query)- }- defer slowLogRows.Close()- for slowLogRows.Next() {- log := slowLog{- details: &storepb.SlowQueryDetails{},- }- var startTime, queryTime, lockTime string- if err := slowLogRows.Scan(- &startTime,- &queryTime,- &lockTime,- &log.details.RowsSent,- &log.details.RowsExamined,- &log.database,- &log.details.SqlText,- ); err != nil {- return nil, err- }-- startTimeTs, err := time.ParseInLocation("2006-01-02 15:04:05.999999", startTime, location)- if err != nil {- return nil, err- }- log.details.StartTime = timestamppb.New(startTimeTs)-- queryTimeDuration, err := parseDuration(queryTime)- if err != nil {- return nil, err- }- log.details.QueryTime = durationpb.New(queryTimeDuration)-- lockTimeDuration, err := parseDuration(lockTime)- if err != nil {- return nil, err- }- log.details.LockTime = durationpb.New(lockTimeDuration)-- // Use Reservoir Sampling to sample slow logs.- // See https://en.wikipedia.org/wiki/Reservoir_sampling- if len(logs) < db.SlowQueryMaxSamplePerDay {- logs = append(logs, &log)- } else {- pos := rand.Intn(len(logs))- logs[pos] = &log- }- }-- if err := slowLogRows.Err(); err != nil {- return nil, util.FormatErrorWithQuery(err, query)- }-- return analyzeSlowLog(driver.dbType, logs)-}--func parseDuration(s string) (time.Duration, error) {- if s == "" {- return 0, nil- }- list := strings.Split(s, ":")- if len(list) != 3 {- return 0, errors.Errorf("invalid duration: %s", s)- }- duration := fmt.Sprintf("%sh%sm%ss", list[0], list[1], list[2])- return time.ParseDuration(duration)-}--func analyzeSlowLog(engine storepb.Engine, logs []*slowLog) (map[string]*storepb.SlowQueryStatistics, error) {- logMap := make(map[string]map[string]*storepb.SlowQueryStatisticsItem)-- for _, log := range logs {- databaseList := extractDatabase(engine, log.database, log.details.SqlText)- fingerprint, err := mysqlparser.GetFingerprint(log.details.SqlText)- if err != nil {- return nil, errors.Wrapf(err, "get sql fingerprint failed, sql: %s", log.details.SqlText)- }- if len(fingerprint) > db.SlowQueryMaxLen {- fingerprint, _ = common.TruncateString(fingerprint, db.SlowQueryMaxLen)- }- if len(log.details.SqlText) > db.SlowQueryMaxLen {- log.details.SqlText, _ = common.TruncateString(log.details.SqlText, db.SlowQueryMaxLen)- }-- for _, db := range databaseList {- if _, ok := logMap[db]; !ok {- logMap[db] = make(map[string]*storepb.SlowQueryStatisticsItem)- }- logMap[db][fingerprint] = mergeSlowLog(fingerprint, logMap[db][fingerprint], log.details)- }- }-- var result = make(map[string]*storepb.SlowQueryStatistics)-- for db, dblog := range logMap {- var statisticsList storepb.SlowQueryStatistics- for _, statistics := range dblog {- statisticsList.Items = append(statisticsList.Items, statistics)- }- result[db] = &statisticsList- }-- return result, nil-}--func mergeSlowLog(fingerprint string, statistics *storepb.SlowQueryStatisticsItem, details *storepb.SlowQueryDetails) *storepb.SlowQueryStatisticsItem {- if statistics == nil {- return &storepb.SlowQueryStatisticsItem{- SqlFingerprint: fingerprint,- Count: 1,- LatestLogTime: details.StartTime,- TotalQueryTime: details.QueryTime,- MaximumQueryTime: details.QueryTime,- TotalRowsSent: details.RowsSent,- MaximumRowsSent: details.RowsSent,- TotalRowsExamined: details.RowsExamined,- MaximumRowsExamined: details.RowsExamined,- Samples: []*storepb.SlowQueryDetails{details},- }- }- statistics.Count++- if statistics.LatestLogTime.AsTime().Before(details.StartTime.AsTime()) {- statistics.LatestLogTime = details.StartTime- }- statistics.TotalQueryTime = durationpb.New(statistics.TotalQueryTime.AsDuration() + details.QueryTime.AsDuration())- if statistics.MaximumQueryTime.AsDuration() < details.QueryTime.AsDuration() {- statistics.MaximumQueryTime = details.QueryTime- }- statistics.TotalRowsSent += details.RowsSent- if statistics.MaximumRowsSent < details.RowsSent {- statistics.MaximumRowsSent = details.RowsSent- }- statistics.TotalRowsExamined += details.RowsExamined- if statistics.MaximumRowsExamined < details.RowsExamined {- statistics.MaximumRowsExamined = details.RowsExamined- }- if len(statistics.Samples) < db.SlowQueryMaxSamplePerFingerprint {- statistics.Samples = append(statistics.Samples, details)- } else {- // Use Reservoir Sampling to sample slow logs.- pos := rand.Intn(len(statistics.Samples))- statistics.Samples[pos] = details- }- return statistics-}--func extractDatabase(engne storepb.Engine, defaultDB string, sql string) []string {- resources, err := base.ExtractResourceList(engne, defaultDB /* currentDatabase */, "" /* currentSchema */, sql)- if err != nil {- // If we can't extract the database, we just use the default database.- slog.Debug("extract database failed", log.BBError(err), slog.String("sql", sql))- return []string{defaultDB}- }- databaseMap := make(map[string]bool)- for _, resource := range resources {- databaseMap[resource.Database] = true- }- var databases []string- for database := range databaseMap {- databases = append(databases, database)- }- if len(databases) == 0 {- databases = append(databases, defaultDB)- }- return databases-}--// CheckSlowQueryLogEnabled checks whether the slow query log is enabled.-func (driver *Driver) CheckSlowQueryLogEnabled(ctx context.Context) error {- showSlowQueryLog := "SHOW GLOBAL VARIABLES LIKE 'slow_query_log'"-- slowQueryLogRows, err := driver.db.QueryContext(ctx, showSlowQueryLog)- if err != nil {- return util.FormatErrorWithQuery(err, showSlowQueryLog)- }- defer slowQueryLogRows.Close()- for slowQueryLogRows.Next() {- var name, value string- if err := slowQueryLogRows.Scan(&name, &value); err != nil {- return err- }- if value != "ON" {- return errors.New("slow query log is not enabled: slow_query_log = " + value)- }- }- if err := slowQueryLogRows.Err(); err != nil {- return util.FormatErrorWithQuery(err, showSlowQueryLog)- }-- showLogOutput := "SHOW GLOBAL VARIABLES LIKE 'log_output'"- logOutputRows, err := driver.db.QueryContext(ctx, showLogOutput)- if err != nil {- return util.FormatErrorWithQuery(err, showLogOutput)- }- defer logOutputRows.Close()- for logOutputRows.Next() {- var name, value string- if err := logOutputRows.Scan(&name, &value); err != nil {- return err- }- if !strings.Contains(value, "TABLE") {- return errors.New("slow query log is not contained in TABLE: log_output = " + value)- }- }- if err := logOutputRows.Err(); err != nil {- return util.FormatErrorWithQuery(err, showLogOutput)- }-- return nil-}-func stripSingleQuote(s string) string {if len(s) >= 2 && s[0] == '\'' && s[len(s)-1] == '\'' {return s[1 : len(s)-1]diff --git a/backend/runner/mail/slow_query_weekly_mail.go b/backend/runner/mail/slow_query_weekly_mail.godeleted file mode 100644index 67bf229e74..0000000000--- a/backend/runner/mail/slow_query_weekly_mail.go+++ /dev/null@@ -1,783 +0,0 @@-// Package mail contains the slow query weekly mail sender.-package mail--import (- "bytes"- "context"- "embed"- "fmt"- "log/slog"- "maps"- "slices"- "sort"- "strings"- "sync"- "time"-- "google.golang.org/protobuf/types/known/durationpb"-- "github.com/bytebase/bytebase/backend/common"- "github.com/bytebase/bytebase/backend/common/log"- "github.com/bytebase/bytebase/backend/component/iam"- "github.com/bytebase/bytebase/backend/component/state"- api "github.com/bytebase/bytebase/backend/legacyapi"- "github.com/bytebase/bytebase/backend/plugin/mail"- "github.com/bytebase/bytebase/backend/store"- "github.com/bytebase/bytebase/backend/utils"- storepb "github.com/bytebase/bytebase/proto/generated-go/store"-)--var (- //go:embed templates/for-dba/need_configure.html- //go:embed templates/for-dba/environment_header.html- //go:embed templates/for-dba/environment_footer.html- //go:embed templates/for-dba/environment_no_instance_configured.html- //go:embed templates/for-dba/environment_no_slow_query.html- //go:embed templates/for-dba/header.html- //go:embed templates/for-dba/footer.html- //go:embed templates/for-dba/database_table_header.html- //go:embed templates/for-dba/database_table_item.html- //go:embed templates/for-dba/database_table_footer.html- //go:embed templates/for-dba/instance_header.html- //go:embed templates/for-dba/instance_footer.html- //go:embed templates/for-project-owner/header.html- //go:embed templates/for-project-owner/footer.html- //go:embed templates/for-project-owner/environment_header.html- //go:embed templates/for-project-owner/environment_footer.html- //go:embed templates/for-project-owner/table_item.html- emailTemplates embed.FS-)--// NewSender creates a new slow query weekly mail sender.-func NewSender(store *store.Store, stateCfg *state.State, iamManager *iam.Manager) *SlowQueryWeeklyMailSender {- return &SlowQueryWeeklyMailSender{- store: store,- stateCfg: stateCfg,- iamManager: iamManager,- }-}--// SlowQueryWeeklyMailSender is the slow query weekly mail sender.-type SlowQueryWeeklyMailSender struct {- store *store.Store- stateCfg *state.State- iamManager *iam.Manager-}--// Run will run the slow query weekly mail sender.-func (s *SlowQueryWeeklyMailSender) Run(ctx context.Context, wg *sync.WaitGroup) {- ticker := time.NewTicker(1 * time.Hour)- defer ticker.Stop()- defer wg.Done()- slog.Debug("Slow query weekly mail sender started")- for {- select {- case <-ctx.Done():- slog.Debug("Slow query weekly mail sender received context cancellation")- return- case <-ticker.C:- slog.Debug("Slow query weekly mail sender received tick")- now := time.Now()- // Send email every Saturday in 00:00 ~ 00:59.- if now.Weekday() == time.Saturday && now.Hour() == 0 {- s.sendEmail(ctx, now)- }- }- }-}--func (s *SlowQueryWeeklyMailSender) sendEmail(ctx context.Context, now time.Time) {- mailSetting, err := s.store.GetSettingV2(ctx, api.SettingWorkspaceMailDelivery)- if err != nil {- slog.Error("Failed to get mail setting", log.BBError(err))- return- }-- if mailSetting == nil {- return- }-- storeValue := &storepb.SMTPMailDeliverySetting{}- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(mailSetting.Value), storeValue); err != nil {- slog.Error("Failed to unmarshal setting value", log.BBError(err))- return- }-- consoleRedirectURL := "www.bytebase.com"- setting, err := s.store.GetWorkspaceGeneralSetting(ctx)- if err != nil {- slog.Error("Failed to get workspace profile setting", log.BBError(err))- return- }- if setting.ExternalUrl != "" {- consoleRedirectURL = setting.ExternalUrl- }-- slowQueryPolicyType := api.PolicyTypeSlowQuery- instanceResourceType := api.PolicyResourceTypeInstance- policies, err := s.store.ListPoliciesV2(ctx, &store.FindPolicyMessage{- Type: &slowQueryPolicyType,- ResourceType: &instanceResourceType,- })- if err != nil {- slog.Error("Failed to list slow query policies", log.BBError(err))- return- }- workspaceIAMPolicy, err := s.store.GetWorkspaceIamPolicy(ctx)- if err != nil {- slog.Error("Failed to get workspace IAM policy", log.BBError(err))- return- }-- var activePolicies []*store.PolicyMessage- for _, policy := range policies {- payload := &storepb.SlowQueryPolicy{}- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(policy.Payload), payload); err != nil {- slog.Error("Failed to unmarshal slow query policy payload", log.BBError(err))- return- }- if payload.Active {- activePolicies = append(activePolicies, policy)- }- }-- if len(activePolicies) == 0 {- emailList := s.getEmailListByRoles(ctx, workspaceIAMPolicy.Policy, api.WorkspaceDBA, api.WorkspaceAdmin)- for _, email := range emailList {- if err := s.sendNeedConfigSlowQueryPolicyEmail(storeValue, email, consoleRedirectURL); err != nil {- slog.Error("Failed to send need config slow query policy email", slog.String("email", email), log.BBError(err))- }- }- return- }-- if body, err := s.generateWeeklyEmailForDBA(ctx, activePolicies, now, consoleRedirectURL); err == nil {- s.sendEmailToUsersByPolicy(- ctx,- api.WorkspaceDBA,- workspaceIAMPolicy.Policy,- storeValue,- fmt.Sprintf("Database slow query weekly report %s", generateDateRange(now)),- body,- )- } else {- slog.Error("Failed to generate weekly email for dba", log.BBError(err))- }-- projects, err := s.store.ListProjectV2(ctx, &store.FindProjectMessage{})- if err != nil {- slog.Error("Failed to list projects", log.BBError(err))- return- }- for _, project := range projects {- body, err := s.generateWeeklyEmailForProject(ctx, project, activePolicies, now, consoleRedirectURL)- if err != nil {- slog.Error("Failed to generate weekly email for project", log.BBError(err))- continue- }- if len(body) == 0 {- slog.Debug("No slow query found for project", slog.String("project", project.Title))- continue- }-- policyMessage, err := s.store.GetProjectIamPolicy(ctx, project.ResourceID)- if err != nil {- slog.Error("Failed to get project policy", log.BBError(err))- continue- }-- s.sendEmailToUsersByPolicy(- ctx,- api.ProjectOwner,- policyMessage.Policy,- storeValue,- fmt.Sprintf("%s database slow query weekly report %s", project.Title, generateDateRange(now)),- body,- )- }-}--func (s *SlowQueryWeeklyMailSender) getEmailListByRoles(- ctx context.Context,- policy *storepb.IamPolicy,- roles ...api.Role,-) []string {- usersMap := make(map[string]bool)- for _, role := range roles {- users := utils.GetUsersByRoleInIAMPolicy(ctx, s.store, role, policy)- for _, user := range users {- if user.Type != api.EndUser {- continue- }- if _, ok := usersMap[user.Email]; ok {- continue- }- usersMap[user.Email] = true- }- }- return slices.Collect(maps.Keys(usersMap))-}--func (s *SlowQueryWeeklyMailSender) sendEmailToUsersByPolicy(- ctx context.Context,- role api.Role,- policy *storepb.IamPolicy,- deliverySetting *storepb.SMTPMailDeliverySetting,- subject,- body string,-) {- emailList := s.getEmailListByRoles(ctx, policy, role)- for _, email := range emailList {- if err := send(deliverySetting, email, subject, body); err != nil {- slog.Error("Failed to send need config slow query policy email", slog.String("email", email), log.BBError(err))- }- }-}--func (s *SlowQueryWeeklyMailSender) generateWeeklyEmailForProject(ctx context.Context, project *store.ProjectMessage, policies []*store.PolicyMessage, now time.Time, visitURL string) (body string, err error) {- header, err := emailTemplates.ReadFile("templates/for-project-owner/header.html")- if err != nil {- return "", err- }- footer, err := emailTemplates.ReadFile("templates/for-project-owner/footer.html")- if err != nil {- return "", err- }- environmentHeader, err := emailTemplates.ReadFile("templates/for-project-owner/environment_header.html")- if err != nil {- return "", err- }- environmentFooter, err := emailTemplates.ReadFile("templates/for-project-owner/environment_footer.html")- if err != nil {- return "", err- }- tableItem, err := emailTemplates.ReadFile("templates/for-project-owner/table_item.html")- if err != nil {- return "", err- }-- beginDate := now.AddDate(0, 0, -7)- endDate := now.AddDate(0, 0, -1)- var buf bytes.Buffer- headerString := strings.ReplaceAll(string(header), "{{PROJECT_NAME}}", project.Title)- headerString = strings.ReplaceAll(headerString, "{{BEGIN_DATE}}", beginDate.UTC().Format("2006.01.02"))- headerString = strings.ReplaceAll(headerString, "{{END_DATE}}", endDate.UTC().Format("2006.01.02"))- beginUnix := beginDate.Truncate(24 * time.Hour).Unix()- endUnix := now.Truncate(24 * time.Hour).Add(-1 * time.Second).Unix()- projectURL := fmt.Sprintf("%s/%s/slow-queries?fromTime=%d&toTime=%d", strings.TrimSuffix(visitURL, "/"), common.FormatProject(project.ResourceID), beginUnix, endUnix)- headerString = strings.ReplaceAll(headerString, "{{PROJECT_LINK}}", projectURL)- if _, err := buf.WriteString(headerString); err != nil {- return "", err- }- hasSlowQueryInProject := false- defer func() {- if err == nil {- _, err = buf.Write(footer)- }- if !hasSlowQueryInProject {- body = ""- }- }()-- instanceMap := make(map[string]*store.InstanceMessage)- for _, policy := range policies {- instanceID, err := common.GetInstanceID(policy.Resource)- if err != nil {- return "", err- }- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &instanceID})- if err != nil {- slog.Warn("Failed to get instance", log.BBError(err))- continue- }- instanceMap[instance.ResourceID] = instance- }-- databases, err := s.store.ListDatabases(ctx, &store.FindDatabaseMessage{ProjectID: &project.ResourceID})- if err != nil {- return "", err- }-- databaseMap := make(map[string][]*store.DatabaseMessage)- for _, database := range databases {- if _, exists := instanceMap[database.InstanceID]; !exists {- continue- }- if list, exists := databaseMap[database.EffectiveEnvironmentID]; exists {- databaseMap[database.EffectiveEnvironmentID] = append(list, database)- } else {- databaseMap[database.EffectiveEnvironmentID] = []*store.DatabaseMessage{database}- }- }-- environments, err := s.store.ListEnvironmentV2(ctx, &store.FindEnvironmentMessage{})- if err != nil {- return "", err- }- // Sort environments by order DESC.- sort.Slice(environments, func(i, j int) bool {- return environments[i].Order > environments[j].Order- })-- for _, environment := range environments {- databases, exists := databaseMap[environment.ResourceID]- if !exists || len(databases) == 0 {- continue- }-- hasSlowQuery := false- sort.Slice(databases, func(i, j int) bool {- lEngine := engineOrder(instanceMap[databases[i].InstanceID].Metadata.GetEngine())- rEngine := engineOrder(instanceMap[databases[j].InstanceID].Metadata.GetEngine())- if lEngine != rEngine {- return lEngine < rEngine- }- return databases[i].DatabaseName < databases[j].DatabaseName- })-- for _, database := range databases {- instance := instanceMap[database.InstanceID]- listSlowQuery := &store.ListSlowQueryMessage{- InstanceID: &instance.ResourceID,- DatabaseName: &database.DatabaseName,- StartLogDate: &beginDate,- EndLogDate: &endDate,- }-- logs, err := s.store.ListSlowQuery(ctx, listSlowQuery)- if err != nil {- return "", err- }-- if len(logs) == 0 {- continue- }-- if !hasSlowQuery {- hasSlowQuery = true- if _, err := buf.WriteString(strings.ReplaceAll(string(environmentHeader), "{{ENVIRONMENT_NAME}}", environment.Title)); err != nil {- return "", err- }- }-- sort.Slice(logs, func(i, j int) bool {- return logs[i].Statistics.MaximumQueryTime.AsDuration() > logs[j].Statistics.MaximumQueryTime.AsDuration()- })-- total := totalValue{- totalCount: 0,- totalQueryTime: 0,- }-- for _, log := range logs {- total.totalCount += log.Statistics.Count- total.totalQueryTime += log.Statistics.AverageQueryTime.AsDuration() * time.Duration(log.Statistics.Count)- }-- if len(logs) > 5 {- logs = logs[:5]- }-- for i, log := range logs {- var item string- if i == 0 {- item = strings.ReplaceAll(string(tableItem), "{{DB_TYPE}}", engineTypeString(instance.Metadata.GetEngine()))- item = strings.ReplaceAll(item, "{{DB_NAME}}", database.DatabaseName)- } else {- item = strings.ReplaceAll(string(tableItem), "{{DB_TYPE}}", "")- item = strings.ReplaceAll(item, "{{DB_NAME}}", "")- }- item = strings.ReplaceAll(item, "{{SLOW_QUERY}}", log.Statistics.SqlFingerprint)- item = strings.ReplaceAll(item, "{{TOTAL_QUERY_COUNT}}", fmt.Sprintf("%d", log.Statistics.Count))- item = strings.ReplaceAll(item, "{{QUERY_COUNT}}", fmt.Sprintf("%.2f%%", (float64(log.Statistics.Count)/float64(total.totalCount))*100))- item = strings.ReplaceAll(item, "{{MAX_QUERY_TIME}}", durationText(log.Statistics.MaximumQueryTime))- item = strings.ReplaceAll(item, "{{AVG_QUERY_TIME}}", durationText(log.Statistics.AverageQueryTime))- item = strings.ReplaceAll(item, "{{QUERY_TIME}}", fmt.Sprintf("%.2f%%", (float64(log.Statistics.AverageQueryTime.AsDuration()*time.Duration(log.Statistics.Count))/float64(total.totalQueryTime))*100))- if _, err := buf.WriteString(item); err != nil {- return "", err- }- }- }-- if hasSlowQuery {- if _, err := buf.Write(environmentFooter); err != nil {- return "", err- }- }-- hasSlowQueryInProject = hasSlowQueryInProject || hasSlowQuery- }-- return buf.String(), nil-}--type totalValue struct {- totalQueryTime time.Duration- totalCount int64-}--func durationText(duration *durationpb.Duration) string {- if duration == nil {- return "-"- }- secs := duration.Seconds- nanos := duration.Nanos- total := float64(secs) + float64(nanos/1e9)- return fmt.Sprintf("%.2fs", total)-}--func engineTypeString(engine storepb.Engine) string {- switch engine {- case storepb.Engine_MYSQL:- return "MySQL"- case storepb.Engine_POSTGRES:- return "Postgres"- }- return ""-}--func send(mailSetting *storepb.SMTPMailDeliverySetting, to, subject, body string) error {- email := mail.NewEmailMsg()-- email.SetFrom(fmt.Sprintf("Bytebase <%s>", mailSetting.From)).- AddTo(to).- SetSubject(subject).- SetBody(body)- client := mail.NewSMTPClient(mailSetting.Server, int(mailSetting.Port))- client.SetAuthType(convertToMailSMTPAuthType(mailSetting.Authentication)).- SetAuthCredentials(mailSetting.Username, mailSetting.Password).- SetEncryptionType(convertToMailSMTPEncryptionType(mailSetting.Encryption))-- if err := client.SendMail(email); err != nil {- return err- }- slog.Debug("Successfully sent need configure slow query policy email", slog.String("to", to), slog.String("subject", subject))- return nil-}--func (s *SlowQueryWeeklyMailSender) generateWeeklyEmailForDBA(ctx context.Context, policies []*store.PolicyMessage, now time.Time, visitURL string) (string, error) {- beginDate := now.AddDate(0, 0, -7)- endDate := now.AddDate(0, 0, -1)- var buf bytes.Buffer- header, err := emailTemplates.ReadFile("templates/for-dba/header.html")- if err != nil {- return "", err- }- headerString := strings.ReplaceAll(string(header), "{{VISIT_URL}}", visitURL)- headerString = strings.ReplaceAll(headerString, "{{BEGIN_DATE}}", beginDate.Format("2006.01.02"))- headerString = strings.ReplaceAll(headerString, "{{END_DATE}}", endDate.Format("2006.01.02"))- if _, err := buf.WriteString(headerString); err != nil {- return "", err- }-- databaseTableHeader, err := emailTemplates.ReadFile("templates/for-dba/database_table_header.html")- if err != nil {- return "", err- }- databaseTableItem, err := emailTemplates.ReadFile("templates/for-dba/database_table_item.html")- if err != nil {- return "", err- }- databaseTableFooter, err := emailTemplates.ReadFile("templates/for-dba/database_table_footer.html")- if err != nil {- return "", err- }- environmentHeader, err := emailTemplates.ReadFile("templates/for-dba/environment_header.html")- if err != nil {- return "", err- }- environmentFooter, err := emailTemplates.ReadFile("templates/for-dba/environment_footer.html")- if err != nil {- return "", err- }- environmentNoInstanceConfigured, err := emailTemplates.ReadFile("templates/for-dba/environment_no_instance_configured.html")- if err != nil {- return "", err- }- environmentNoSlowQuery, err := emailTemplates.ReadFile("templates/for-dba/environment_no_slow_query.html")- if err != nil {- return "", err- }- instanceHeader, err := emailTemplates.ReadFile("templates/for-dba/instance_header.html")- if err != nil {- return "", err- }- instanceFooter, err := emailTemplates.ReadFile("templates/for-dba/instance_footer.html")- if err != nil {- return "", err- }-- environments, err := s.store.ListEnvironmentV2(ctx, &store.FindEnvironmentMessage{})- if err != nil {- return "", err- }- // Sort environments by order DESC.- sort.Slice(environments, func(i, j int) bool {- return environments[i].Order > environments[j].Order- })-- instanceMap := make(map[string][]*store.InstanceMessage)-- for _, policy := range policies {- instanceID, err := common.GetInstanceID(policy.Resource)- if err != nil {- return "", err- }- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &instanceID})- if err != nil {- slog.Warn("Failed to get instance", log.BBError(err))- continue- }-- if list, exists := instanceMap[instance.EnvironmentID]; exists {- instanceMap[instance.EnvironmentID] = append(list, instance)- } else {- instanceMap[instance.EnvironmentID] = []*store.InstanceMessage{instance}- }- }-- for _, environment := range environments {- instances, exists := instanceMap[environment.ResourceID]- if !exists {- instances = nil- }- if err := s.generateEnvironmentContent(- ctx,- &buf,- environment,- instances,- environmentHeader,- environmentFooter,- environmentNoInstanceConfigured,- environmentNoSlowQuery,- databaseTableHeader,- databaseTableItem,- databaseTableFooter,- instanceHeader,- instanceFooter,- visitURL,- beginDate,- now,- ); err != nil {- return "", err- }- }-- footer, err := emailTemplates.ReadFile("templates/for-dba/footer.html")- if err != nil {- return "", err- }- if _, err := buf.Write(footer); err != nil {- return "", err- }-- return buf.String(), nil-}--func (s *SlowQueryWeeklyMailSender) generateEnvironmentContent(- ctx context.Context,- buf *bytes.Buffer,- environment *store.EnvironmentMessage,- instances []*store.InstanceMessage,- environmentHeader []byte,- environmentFooter []byte,- environmentNoInstanceConfigured []byte,- environmentNoSlowQuery []byte,- databaseTableHeader []byte,- databaseTableItem []byte,- databaseTableFooter []byte,- instanceHeader []byte,- instanceFooter []byte,- visitURL string,- beginDate time.Time,- endDate time.Time,-) (err error) {- if _, err := buf.WriteString(strings.ReplaceAll(string(environmentHeader), "{{ENV_NAME}}", environment.Title)); err != nil {- return err- }- defer func() {- if err == nil {- _, err = buf.Write(environmentFooter)- }- }()- if len(instances) == 0 {- if _, err := buf.Write(environmentNoInstanceConfigured); err != nil {- return err- }- return nil- }-- sort.Slice(instances, func(i, j int) bool {- return engineOrder(instances[i].Metadata.GetEngine()) < engineOrder(instances[j].Metadata.GetEngine())- })-- hasSlowQueryInEnvironment := false- for _, instance := range instances {- databases, err := s.store.ListDatabases(ctx, &store.FindDatabaseMessage{InstanceID: &instance.ResourceID})- if err != nil {- return err- }-- sort.Slice(databases, func(i, j int) bool {- return databases[i].DatabaseName < databases[j].DatabaseName- })-- hasSlowQueryInInstance := false- for _, database := range databases {- listSlowQuery := &store.ListSlowQueryMessage{- InstanceID: &instance.ResourceID,- DatabaseName: &database.DatabaseName,- StartLogDate: &beginDate,- EndLogDate: &endDate,- }-- logs, err := s.store.ListSlowQuery(ctx, listSlowQuery)- if err != nil {- return err- }-- if len(logs) == 0 {- continue- }-- if !hasSlowQueryInInstance {- hasSlowQueryInInstance = true- beginUnix := beginDate.Truncate(24 * time.Hour).UTC().Unix()- endUnix := endDate.Truncate(24 * time.Hour).Add(-1 * time.Second).UTC().Unix()- instanceURL := fmt.Sprintf("%s/slow-query?instance=%s&fromTime=%d&toTime=%d", strings.TrimSuffix(visitURL, "/"), instance.ResourceID, beginUnix, endUnix)- instanceHeaderString := strings.ReplaceAll(string(instanceHeader), "{{INSTANCE_LINK}}", instanceURL)- instanceHeaderString = strings.ReplaceAll(instanceHeaderString, "{{INSTANCE_NAME}}", instance.Metadata.GetTitle())- if _, err := buf.WriteString(instanceHeaderString); err != nil {- return err- }- if _, err := buf.Write(databaseTableHeader); err != nil {- return err- }- }- sort.Slice(logs, func(i, j int) bool {- return logs[i].Statistics.MaximumQueryTime.AsDuration() > logs[j].Statistics.MaximumQueryTime.AsDuration()- })-- total := totalValue{- totalCount: 0,- totalQueryTime: 0,- }-- for _, log := range logs {- total.totalCount += log.Statistics.Count- total.totalQueryTime += log.Statistics.AverageQueryTime.AsDuration() * time.Duration(log.Statistics.Count)- }-- if len(logs) > 5 {- logs = logs[:5]- }-- for i, log := range logs {- var item string- if i == 0 {- item = strings.ReplaceAll(string(databaseTableItem), "{{DB_NAME}}", database.DatabaseName)- } else {- item = strings.ReplaceAll(string(databaseTableItem), "{{DB_NAME}}", "")- }- item = strings.ReplaceAll(item, "{{SLOW_QUERY}}", log.Statistics.SqlFingerprint)- item = strings.ReplaceAll(item, "{{TOTAL_QUERY_COUNT}}", fmt.Sprintf("%d", log.Statistics.Count))- item = strings.ReplaceAll(item, "{{QUERY_COUNT}}", fmt.Sprintf("%.2f%%", (float64(log.Statistics.Count)/float64(total.totalCount))*100))- item = strings.ReplaceAll(item, "{{MAX_QUERY_TIME}}", durationText(log.Statistics.MaximumQueryTime))- item = strings.ReplaceAll(item, "{{AVG_QUERY_TIME}}", durationText(log.Statistics.AverageQueryTime))- item = strings.ReplaceAll(item, "{{QUERY_TIME}}", fmt.Sprintf("%.2f%%", (float64(log.Statistics.AverageQueryTime.AsDuration()*time.Duration(log.Statistics.Count))/float64(total.totalQueryTime))*100))- if _, err := buf.WriteString(item); err != nil {- return err- }- }- }-- if hasSlowQueryInInstance {- if _, err := buf.Write(databaseTableFooter); err != nil {- return err- }- if _, err := buf.Write(instanceFooter); err != nil {- return err- }- }-- hasSlowQueryInEnvironment = hasSlowQueryInEnvironment || hasSlowQueryInInstance- }-- if !hasSlowQueryInEnvironment {- if _, err := buf.Write(environmentNoSlowQuery); err != nil {- return err- }- }-- return nil-}--func engineOrder(engine storepb.Engine) int {- switch engine {- case storepb.Engine_MYSQL:- return 1- case storepb.Engine_POSTGRES:- return 2- default:- return 100- }-}--func (*SlowQueryWeeklyMailSender) sendNeedConfigSlowQueryPolicyEmail(mailSetting *storepb.SMTPMailDeliverySetting, to, visitURL string) error {- email := mail.NewEmailMsg()-- needConfigureTemplate, err := emailTemplates.ReadFile("templates/for-dba/need_configure.html")- if err != nil {- return err- }-- body := strings.ReplaceAll(string(needConfigureTemplate), "{{VISIT_URL}}", visitURL)- body = strings.ReplaceAll(body, "{{DOC_LINK}}", `https://www.bytebase.com/docs/slow-query/overview`)-- email.SetFrom(fmt.Sprintf("Bytebase <%s>", mailSetting.From)).- AddTo(to).- SetSubject("Configure your database slow query report").- SetBody(body)- client := mail.NewSMTPClient(mailSetting.Server, int(mailSetting.Port))- client.SetAuthType(convertToMailSMTPAuthType(mailSetting.Authentication)).- SetAuthCredentials(mailSetting.Username, mailSetting.Password).- SetEncryptionType(convertToMailSMTPEncryptionType(mailSetting.Encryption))-- if err := client.SendMail(email); err != nil {- return err- }- slog.Debug("Successfully sent need configure slow query policy email", slog.String("to", to))- return nil-}--func convertToMailSMTPEncryptionType(encryption storepb.SMTPMailDeliverySetting_Encryption) mail.SMTPEncryptionType {- switch encryption {- case storepb.SMTPMailDeliverySetting_ENCRYPTION_NONE:- return mail.SMTPEncryptionTypeNone- case storepb.SMTPMailDeliverySetting_ENCRYPTION_SSL_TLS:- return mail.SMTPEncryptionTypeSSLTLS- case storepb.SMTPMailDeliverySetting_ENCRYPTION_STARTTLS:- return mail.SMTPEncryptionTypeSTARTTLS- }- return mail.SMTPAuthTypeNone-}--func convertToMailSMTPAuthType(auth storepb.SMTPMailDeliverySetting_Authentication) mail.SMTPAuthType {- switch auth {- case storepb.SMTPMailDeliverySetting_AUTHENTICATION_NONE:- return mail.SMTPAuthTypeNone- case storepb.SMTPMailDeliverySetting_AUTHENTICATION_PLAIN:- return mail.SMTPAuthTypePlain- case storepb.SMTPMailDeliverySetting_AUTHENTICATION_CRAM_MD5:- return mail.SMTPAuthTypeCRAMMD5- case storepb.SMTPMailDeliverySetting_AUTHENTICATION_LOGIN:- return mail.SMTPAuthTypeLogin- }- return mail.SMTPAuthTypeNone-}--func generateDateRange(now time.Time) string {- endDate := now.AddDate(0, 0, -1)- startDate := endDate.AddDate(0, 0, -6)- return fmt.Sprintf("%s ~ %s", startDate.Format("2006.01.02"), endDate.Format("2006.01.02"))-}diff --git a/backend/runner/mail/templates/for-dba/database_table_footer.html b/backend/runner/mail/templates/for-dba/database_table_footer.htmldeleted file mode 100644index 94eb82e7ad..0000000000--- a/backend/runner/mail/templates/for-dba/database_table_footer.html+++ /dev/null@@ -1 +0,0 @@-</table>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/database_table_header.html b/backend/runner/mail/templates/for-dba/database_table_header.htmldeleted file mode 100644index 54502460d2..0000000000--- a/backend/runner/mail/templates/for-dba/database_table_header.html+++ /dev/null@@ -1,10 +0,0 @@-<table id="slow-query-table" style="margin:auto;">- <tr>- <th>DB</th>- <th>Slow Query</th>- <th>Total Query Count</th>- <th>Query Count %</th>- <th>Max Query Time</th>- <th>Avg Query Time</th>- <th>Query Time %</th>- </tr>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/database_table_item.html b/backend/runner/mail/templates/for-dba/database_table_item.htmldeleted file mode 100644index 4c8951671c..0000000000--- a/backend/runner/mail/templates/for-dba/database_table_item.html+++ /dev/null@@ -1,9 +0,0 @@- <tr>- <td>{{DB_NAME}}</td>- <td><span class="sql-text">{{SLOW_QUERY}}</span></td>- <td><span class="sql-text">{{TOTAL_QUERY_COUNT}}</span></td>- <td><span class="sql-text">{{QUERY_COUNT}}</span></td>- <td><span class="sql-text">{{MAX_QUERY_TIME}}</span></td>- <td><span class="sql-text">{{AVG_QUERY_TIME}}</span></td>- <td><span class="sql-text">{{QUERY_TIME}}</span></td>- </tr>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/environment_footer.html b/backend/runner/mail/templates/for-dba/environment_footer.htmldeleted file mode 100644index 8489fa2959..0000000000--- a/backend/runner/mail/templates/for-dba/environment_footer.html+++ /dev/null@@ -1 +0,0 @@- </div>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/environment_header.html b/backend/runner/mail/templates/for-dba/environment_header.htmldeleted file mode 100644index 12ba013a5c..0000000000--- a/backend/runner/mail/templates/for-dba/environment_header.html+++ /dev/null@@ -1,2 +0,0 @@- <div style="margin-top: 32px;">- <h2 class="env-title text-center"> {{ENV_NAME}} </h2>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/environment_no_instance_configured.html b/backend/runner/mail/templates/for-dba/environment_no_instance_configured.htmldeleted file mode 100644index ecb546aa26..0000000000--- a/backend/runner/mail/templates/for-dba/environment_no_instance_configured.html+++ /dev/null@@ -1,3 +0,0 @@- <div style="margin-top: 24px;">- <p class="hint-text text-center">💤 No instance has configured slow query collection</p>- </div>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/environment_no_slow_query.html b/backend/runner/mail/templates/for-dba/environment_no_slow_query.htmldeleted file mode 100644index c312157f3e..0000000000--- a/backend/runner/mail/templates/for-dba/environment_no_slow_query.html+++ /dev/null@@ -1,3 +0,0 @@- <div style="margin-top: 24px;">- <p class="hint-text text-center">🎉 No slow query found in all configured instances</p>- </div>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/footer.html b/backend/runner/mail/templates/for-dba/footer.htmldeleted file mode 100644index b317cc2a91..0000000000--- a/backend/runner/mail/templates/for-dba/footer.html+++ /dev/null@@ -1,2 +0,0 @@- </body>-</html>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/header.html b/backend/runner/mail/templates/for-dba/header.htmldeleted file mode 100644index 10c2de89fb..0000000000--- a/backend/runner/mail/templates/for-dba/header.html+++ /dev/null@@ -1,72 +0,0 @@-<!DOCTYPE html>-<meta content="text/html; charset=UTF-8" />-<html lang="en">- <head>- <style type="text/css">- .mail-heading {- font-size: 40px;- line-height: 1.3;- font-weight: 700;- text-align: center;- letter-spacing:-1px;- }- .mail-text {- font-size: 16px;- line-height: 20px;- margin-top: 16px;- margin-left:0;- margin-right:0;- word-wrap: normal;- }- .env-title {- font-size: 32px;- line-height: 20px;- word-wrap: normal;- }- .instance-title {- font-size: 24px;- line-height: 20px;- word-wrap: normal;- }- .hint-text {- font-size: 20px;- line-height: 20px;- word-wrap: normal;- }- .text-center {- text-align: center;- }-- .sql-text {- font-size: 16px;- line-height: 20px;- word-wrap: normal;- font-family: monospace;- }-- #slow-query-table td, #slow-query-table th {- white-space: pre-wrap;- border: 1px solid #ddd;- padding: 8px;- }-- #slow-query-table tr:nth-child(even){background-color: #f2f2f2;}-- #slow-query-table tr:hover {background-color: #ddd;}-- #slow-query-table th {- padding-top: 12px;- padding-bottom: 12px;- text-align: left;- background-color: #4f46e5;- color: white;- }- </style>- </head>- <body style="background-color: #ffffff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",monospace,sans-serif">- <h1 data-id="mail-heading" class="mail-heading">Database slow query weekly report {{BEGIN_DATE}} ~ {{END_DATE}}</h1>- <p data-id="mail-first-graph" class="mail-text" style="text-align: center;">- Below is the slow query for {{BEGIN_DATE}} ~ {{END_DATE}}, each database lists at most 5 slow queries.- You can visit <a href="{{VISIT_URL}}"><span class="mail-text">{{VISIT_URL}}</span></a> to enable/disable slow query collection.- <br>- </p>diff --git a/backend/runner/mail/templates/for-dba/instance_footer.html b/backend/runner/mail/templates/for-dba/instance_footer.htmldeleted file mode 100644index 138214560d..0000000000--- a/backend/runner/mail/templates/for-dba/instance_footer.html+++ /dev/null@@ -1 +0,0 @@- </div>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/instance_header.html b/backend/runner/mail/templates/for-dba/instance_header.htmldeleted file mode 100644index 954b0c51cd..0000000000--- a/backend/runner/mail/templates/for-dba/instance_header.html+++ /dev/null@@ -1,2 +0,0 @@- <div style="margin-top: 24px;">- <h2 class="instance-tile text-center"><a href="{{INSTANCE_LINK}}">{{INSTANCE_NAME}}</a></h2>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/need_configure.html b/backend/runner/mail/templates/for-dba/need_configure.htmldeleted file mode 100644index ac357c6e9a..0000000000--- a/backend/runner/mail/templates/for-dba/need_configure.html+++ /dev/null@@ -1,44 +0,0 @@-<!DOCTYPE html>-<meta content="text/html; charset=UTF-8" />-<html lang="en">- <head>- <style type="text/css">- .mail-heading {- font-size: 32px;- line-height: 1.3;- font-weight: 700;- text-align: center;- letter-spacing:-1px;- }- .mail-text {- font-size: 16px;- line-height: 20px;- margin-top: 16px;- margin-left:0;- margin-right:0;- word-wrap: normal;- }- </style>- </head>- <body style="background-color: #ffffff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif">- <h1 data-id="mail-heading" class="mail-heading">Configure your database slow query report</h1>- <p data-id="mail-first-graph" class="mail-text">- You have successfully configured the mail server in Bytebase.- <br>- </p>- <p class="mail-text">- Next, you can visit- <a href="{{VISIT_URL}}"><span class="mail-text">{{VISIT_URL}}</span></a>- to enable slow query log collection.- <br>- </p>- <p class="mail-text">- Once configured, Bytebase will send you slow query report every week, and the email will list the slow queries collected on the enabled instances.- <br>- </p>- <p class="mail-text">- Please read our doc <a href="{{DOC_LINK}}"><span class="mail-text">{{DOC_LINK}}</span></a> for detailed instructions.- <br>- </p>- </body>-</html>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-dba/table.html b/backend/runner/mail/templates/for-dba/table.htmldeleted file mode 100644index d75de6e44a..0000000000--- a/backend/runner/mail/templates/for-dba/table.html+++ /dev/null@@ -1,73 +0,0 @@-<table id="slow-query-table" style="margin:auto;">- <tr>- <th>DB</th>- <th>Slow Query</th>- </tr>- <!-- TODO(junyi) For loop this tr block to generate all slow query entry in table element.-->- <tr>- <td>Employee</td>- <td><span class="sql-text"> -- create a dummy table with 10 rows-CREATE TABLE dummy_table (id INT NOT NULL PRIMARY KEY);-INSERT INTO dummy_table VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);--- create the table if it doesn't exist-CREATE TABLE my_table (-id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,-name VARCHAR(50),-age INT,-salary INT-);---- insert 1,000,000 rows into the table-INSERT INTO my_table (name, age, salary)-SELECT CONCAT('Name', t1.id), FLOOR(RAND() * 47) + 18, FLOOR(RAND() * 40000) + 10000-FROM dummy_table t1, dummy_table t2, dummy_table t3, dummy_table t4, dummy_table t5, dummy_table t6, dummy_table t7, dummy_table t8;---- run a complex query that takes more than 10 seconds to execute-SELECT t1.name, AVG(t1.salary)-FROM my_table t1-JOIN my_table t2 ON t1.id = t2.id-WHERE t1.age > 30-GROUP BY t1.name-HAVING COUNT(*) > 1000;-</span></td>- </tr>- <tr>- <td>Employee</td>- <td><span class="sql-text"> -- create a dummy table with 10 rows-CREATE TABLE dummy_table (id INT NOT NULL PRIMARY KEY);-INSERT INTO dummy_table VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);--- create the table if it doesn't exist-CREATE TABLE my_table (-id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,-name VARCHAR(50),-age INT,-salary INT-);---- insert 1,000,000 rows into the table-INSERT INTO my_table (name, age, salary)-SELECT CONCAT('Name', t1.id), FLOOR(RAND() * 47) + 18, FLOOR(RAND() * 40000) + 10000-FROM dummy_table t1, dummy_table t2, dummy_table t3, dummy_table t4, dummy_table t5, dummy_table t6, dummy_table t7, dummy_table t8;---- run a complex query that takes more than 10 seconds to execute-SELECT t1.name, AVG(t1.salary)-FROM my_table t1-JOIN my_table t2 ON t1.id = t2.id-WHERE t1.age > 30-GROUP BY t1.name-HAVING COUNT(*) > 1000;-</span></td>- </tr>- <tr>- <td>Salary</td>- <td><span class="sql-text">--- run a complex query that takes more than 10 seconds to execute-SELECT t1.name, AVG(t1.salary)-FROM my_table t1-JOIN my_table t2 ON t1.id = t2.id-WHERE t1.age > 30-GROUP BY t1.name-HAVING COUNT(*) > 1000;-</span></td>- </tr>-</table>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-project-owner/environment_footer.html b/backend/runner/mail/templates/for-project-owner/environment_footer.htmldeleted file mode 100644index 4f6a20a4e7..0000000000--- a/backend/runner/mail/templates/for-project-owner/environment_footer.html+++ /dev/null@@ -1,2 +0,0 @@- </table>- </div>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-project-owner/environment_header.html b/backend/runner/mail/templates/for-project-owner/environment_header.htmldeleted file mode 100644index db8257fa34..0000000000--- a/backend/runner/mail/templates/for-project-owner/environment_header.html+++ /dev/null@@ -1,13 +0,0 @@- <div style="margin-top: 24px;">- <h2 class="environment-tile text-center">{{ENVIRONMENT_NAME}}</a></h2>- <table id="slow-query" style="margin: auto">- <tr>- <th>Type</th>- <th>DB</th>- <th>Slow Query</th>- <th>Total Query Count</th>- <th>Query Count</th>- <th>Max Query Time</th>- <th>Avg Query Time</th>- <th>Query Time</th>- </tr>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-project-owner/footer.html b/backend/runner/mail/templates/for-project-owner/footer.htmldeleted file mode 100644index 0f7d808eac..0000000000--- a/backend/runner/mail/templates/for-project-owner/footer.html+++ /dev/null@@ -1,3 +0,0 @@- </div>- </body>-</html>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-project-owner/header.html b/backend/runner/mail/templates/for-project-owner/header.htmldeleted file mode 100644index 414e4329ea..0000000000--- a/backend/runner/mail/templates/for-project-owner/header.html+++ /dev/null@@ -1,71 +0,0 @@-<!DOCTYPE html>-<meta content="text/html; charset=UTF-8" />-<html lang="en">- <head>- <style type="text/css">- .mail-heading {- font-size: 40px;- line-height: 1.3;- font-weight: 700;- text-align: center;- letter-spacing:-1px;- }- .mail-text {- font-size: 16px;- line-height: 20px;- margin-top: 16px;- margin-left:0;- margin-right:0;- word-wrap: normal;- }- .project-title {- font-size: 32px;- line-height: 20px;- word-wrap: normal;- }- .environment-title {- font-size: 24px;- line-height: 20px;- word-wrap: normal;- }- .hint-text {- font-size: 20px;- line-height: 20px;- word-wrap: normal;- }- .text-center {- text-align: center;- }- .sql-text {- font-size: 16px;- line-height: 20px;- word-wrap: normal;- font-family: monospace;- }-- #slow-query td, #slow-query th {- border: 1px solid #ddd;- padding: 8px;- }-- #slow-query tr:nth-child(even){background-color: #f2f2f2;}-- #slow-query tr:hover {background-color: #ddd;}-- #slow-query th {- padding-top: 12px;- padding-bottom: 12px;- text-align: left;- background-color: #4f46e5;- color: white;- }- </style>- </head>- <body style="background-color: #ffffff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",monospace,sans-serif">- <h1 data-id="mail-heading" class="mail-heading">{{PROJECT_NAME}} database slow query weekly report {{BEGIN_DATE}} ~ {{END_DATE}}</h1>- <p data-id="mail-first-graph" class="mail-text" style="text-align: center;">- Below is the {{PROJECT_NAME}} slow query for {{BEGIN_DATE}} ~ {{END_DATE}}, each database lists at most 5 slow queries.- <br>- </p>- <div style="margin-top: 32px;">- <h2 class="project-title text-center"><a href="{{PROJECT_LINK}}">{{PROJECT_NAME}}</a> </h2>\ No newline at end of filediff --git a/backend/runner/mail/templates/for-project-owner/table_item.html b/backend/runner/mail/templates/for-project-owner/table_item.htmldeleted file mode 100644index 6f6f2097c2..0000000000--- a/backend/runner/mail/templates/for-project-owner/table_item.html+++ /dev/null@@ -1,10 +0,0 @@- <tr>- <td>{{DB_TYPE}}</td>- <td>{{DB_NAME}}</td>- <td><span class="sql-text">{{SLOW_QUERY}}</span></td>- <td><span class="sql-text">{{TOTAL_QUERY_COUNT}}</span></td>- <td><span class="sql-text">{{QUERY_COUNT}}</span></td>- <td><span class="sql-text">{{MAX_QUERY_TIME}}</span></td>- <td><span class="sql-text">{{AVG_QUERY_TIME}}</span></td>- <td><span class="sql-text">{{QUERY_TIME}}</span></td>- </tr>\ No newline at end of filediff --git a/backend/runner/slowquerysync/syncer.go b/backend/runner/slowquerysync/syncer.godeleted file mode 100644index 8fd4e065c3..0000000000--- a/backend/runner/slowquerysync/syncer.go+++ /dev/null@@ -1,322 +0,0 @@-// Package slowquerysync is a runner that synchronize slow query logs.-package slowquerysync--import (- "context"- "fmt"- "log/slog"- "sync"- "time"-- "github.com/pkg/errors"- "google.golang.org/protobuf/types/known/durationpb"-- "github.com/bytebase/bytebase/backend/common/log"- "github.com/bytebase/bytebase/backend/component/config"- "github.com/bytebase/bytebase/backend/component/dbfactory"- "github.com/bytebase/bytebase/backend/component/state"- "github.com/bytebase/bytebase/backend/plugin/db"- pgparser "github.com/bytebase/bytebase/backend/plugin/parser/pg"- "github.com/bytebase/bytebase/backend/store"- storepb "github.com/bytebase/bytebase/proto/generated-go/store"- v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"-)--const (- slowQuerySyncInterval = 12 * time.Hour- // retentionCycle is the number of days to keep slow query logs.- retentionCycle = 30-)--// NewSyncer creates a new slow query syncer.-func NewSyncer(store *store.Store, dbFactory *dbfactory.DBFactory, stateCfg *state.State, profile *config.Profile) *Syncer {- return &Syncer{- store: store,- dbFactory: dbFactory,- stateCfg: stateCfg,- profile: profile,- }-}--// Syncer is the slow query syncer.-type Syncer struct {- store *store.Store- dbFactory *dbfactory.DBFactory- stateCfg *state.State- profile *config.Profile-}--// Run will run the slow query syncer.-func (s *Syncer) Run(ctx context.Context, wg *sync.WaitGroup) {- ticker := time.NewTicker(slowQuerySyncInterval)- defer ticker.Stop()- defer wg.Done()- slog.Debug(fmt.Sprintf("Slow query syncer started and will run every %s", slowQuerySyncInterval.String()))- for {- select {- case <-ctx.Done():- slog.Debug("Slow query syncer received context cancellation")- return- case message := <-s.stateCfg.InstanceSlowQuerySyncChan:- slog.Debug("Slow query syncer received instance slow query sync request", slog.String("instance", message.InstanceID), slog.String("project", message.ProjectID))- s.syncSlowQuery(ctx, message)- case <-ticker.C:- slog.Debug("Slow query syncer received tick")- s.syncSlowQuery(ctx, nil)- }- }-}--func (s *Syncer) syncSlowQuery(ctx context.Context, message *state.InstanceSlowQuerySyncMessage) {- defer func() {- if r := recover(); r != nil {- err, ok := r.(error)- if !ok {- err = errors.Errorf("%v", r)- }- slog.Error("slow query syncer PANIC RECOVER", log.BBError(err), log.BBStack("panic-stack"))- }- }()-- find := &store.FindInstanceMessage{}- if message != nil {- find.ResourceID = &message.InstanceID- }- instances, err := s.store.ListInstancesV2(ctx, find)- if err != nil {- slog.Error("Failed to list instances", log.BBError(err))- return- }-- var instanceWG sync.WaitGroup- for _, instance := range instances {- if instance.Deleted {- continue- }- instanceWG.Add(1)- go func(instance *store.InstanceMessage) {- defer instanceWG.Done()- if err := s.syncInstanceSlowQuery(ctx, instance); err != nil {- slog.Debug("Failed to sync instance slow query",- slog.String("instance", instance.ResourceID),- log.BBError(err))- }- }(instance)- }- instanceWG.Wait()-}--func (s *Syncer) syncInstanceSlowQuery(ctx context.Context, instance *store.InstanceMessage) error {- slowQueryPolicy, err := s.store.GetSlowQueryPolicy(ctx, instance.ResourceID)- if err != nil {- return err- }- if slowQueryPolicy == nil || !slowQueryPolicy.Active {- return nil- }-- switch instance.Metadata.GetEngine() {- case storepb.Engine_MYSQL:- return s.syncMySQLSlowQuery(ctx, instance)- case storepb.Engine_POSTGRES:- return s.syncPostgreSQLSlowQuery(ctx, instance)- default:- return errors.Errorf("unsupported database engine: %s", instance.Metadata.GetEngine())- }-}--func (s *Syncer) syncPostgreSQLSlowQuery(ctx context.Context, instance *store.InstanceMessage) error {- today := time.Now().UTC().Truncate(24 * time.Hour)-- earliestDate := today.AddDate(0, 0, -retentionCycle)-- if err := s.store.DeleteOutdatedSlowLog(ctx, instance.ResourceID, earliestDate); err != nil {- return err- }-- findDatabases := &store.FindDatabaseMessage{- InstanceID: &instance.ResourceID,- }- databases, err := s.store.ListDatabases(ctx, findDatabases)- if err != nil {- return err- }-- var enabledDatabase *store.DatabaseMessage- for _, database := range databases {- if database.Deleted {- continue- }- if pgparser.IsSystemDatabase(database.DatabaseName) {- continue- }- if err := func() error {- driver, err := s.dbFactory.GetAdminDatabaseDriver(ctx, instance, database, db.ConnectionContext{})- if err != nil {- return err- }- defer driver.Close(ctx)- return driver.CheckSlowQueryLogEnabled(ctx)- }(); err != nil {- slog.Warn("pg_stat_statements is not enabled",- slog.String("database", database.String()),- log.BBError(err))- continue- }-- enabledDatabase = database- break- }-- if enabledDatabase == nil {- return errors.Errorf("no database is available for slow query sync in instance %s", instance.ResourceID)- }-- driver, err := s.dbFactory.GetAdminDatabaseDriver(ctx, instance, enabledDatabase, db.ConnectionContext{})- if err != nil {- return err- }- defer driver.Close(ctx)-- logMap, err := driver.SyncSlowQuery(ctx, time.Now() /* logDateTs is not used for postgresql */)- if err != nil {- return err- }-- latestLogDate := getLatestLogTime(logMap)- if latestLogDate.IsZero() {- // Empty log, no need to sync.- return nil- }- latestLogDate = latestLogDate.Truncate(24 * time.Hour)- nextLogDate := latestLogDate.AddDate(0, 0, 1)-- for _, database := range databases {- statistics, exists := logMap[database.DatabaseName]- if !exists {- continue- }-- logs, err := s.store.ListSlowQuery(ctx, &store.ListSlowQueryMessage{- InstanceID: &database.InstanceID,- DatabaseName: &database.DatabaseName,- StartLogDate: &latestLogDate,- EndLogDate: &nextLogDate,- })- if err != nil {- slog.Warn("Failed to list slow query logs",- slog.String("database", database.String()),- log.BBError(err))- logs = nil- }-- if len(logs) != 0 {- statistics = pgMergeSlowQueryLog(statistics, logs)- }- if err := s.store.UpsertSlowLog(ctx, &store.UpsertSlowLogMessage{- InstanceID: instance.ResourceID,- DatabaseName: database.DatabaseName,- LogDate: latestLogDate,- SlowLog: statistics,- }); err != nil {- slog.Warn("Failed to upsert slow query log",- slog.String("database", database.String()),- log.BBError(err))- }- }-- return nil-}--func pgMergeSlowQueryLog(statistics *storepb.SlowQueryStatistics, logs []*v1pb.SlowQueryLog) *storepb.SlowQueryStatistics {- status := make(map[string]*storepb.SlowQueryStatisticsItem)-- for _, item := range statistics.Items {- status[item.SqlFingerprint] = item- }-- for _, log := range logs {- value, exists := status[log.Statistics.SqlFingerprint]- if !exists {- status[log.Statistics.SqlFingerprint] = &storepb.SlowQueryStatisticsItem{- SqlFingerprint: log.Statistics.SqlFingerprint,- Count: log.Statistics.Count,- LatestLogTime: log.Statistics.LatestLogTime,- TotalQueryTime: durationpb.New(log.Statistics.AverageQueryTime.AsDuration() * time.Duration(log.Statistics.Count)),- MaximumQueryTime: log.Statistics.MaximumQueryTime,- TotalRowsSent: log.Statistics.AverageRowsSent * log.Statistics.Count,- }- } else {- value.Count += log.Statistics.Count- totalQueryTime := log.Statistics.AverageQueryTime.AsDuration() * time.Duration(log.Statistics.Count)- value.TotalQueryTime = durationpb.New(value.TotalQueryTime.AsDuration() + totalQueryTime)- if value.MaximumQueryTime.AsDuration() < log.Statistics.MaximumQueryTime.AsDuration() {- value.MaximumQueryTime = log.Statistics.MaximumQueryTime- }- value.TotalRowsSent += log.Statistics.AverageRowsSent * log.Statistics.Count- }- }-- var result []*storepb.SlowQueryStatisticsItem- for _, item := range status {- result = append(result, item)- }- return &storepb.SlowQueryStatistics{Items: result}-}--func getLatestLogTime(logMap map[string]*storepb.SlowQueryStatistics) time.Time {- for _, log := range logMap {- for _, item := range log.Items {- return item.LatestLogTime.AsTime()- }- }- return time.Time{}-}--func (s *Syncer) syncMySQLSlowQuery(ctx context.Context, instance *store.InstanceMessage) error {- today := time.Now().UTC().Truncate(24 * time.Hour)-- earliestDate := today.AddDate(0, 0, -retentionCycle)-- if err := s.store.DeleteOutdatedSlowLog(ctx, instance.ResourceID, earliestDate); err != nil {- return err- }-- latestSlowLogDate, err := s.store.GetLatestSlowLogDate(ctx, instance.ResourceID)- if err != nil {- return err- }-- if latestSlowLogDate == nil || latestSlowLogDate.AddDate(0, 0, retentionCycle).Before(today) {- latestSlowLogDate = &earliestDate- }-- driver, err := s.dbFactory.GetAdminDatabaseDriver(ctx, instance, nil /* database */, db.ConnectionContext{})- if err != nil {- return err- }- defer driver.Close(ctx)- if err := driver.CheckSlowQueryLogEnabled(ctx); err != nil {- return err- }-- for date := latestSlowLogDate.Truncate(24 * time.Hour); !date.After(today); date = date.AddDate(0, 0, 1) {- logs, err := driver.SyncSlowQuery(ctx, date)- if err != nil {- return err- }-- for dbName, slowLog := range logs {- if err := s.store.UpsertSlowLog(ctx, &store.UpsertSlowLogMessage{- InstanceID: instance.ResourceID,- DatabaseName: dbName,- LogDate: date,- SlowLog: slowLog,- }); err != nil {- return err- }- }- }-- return nil-}diff --git a/backend/server/server.go b/backend/server/server.goindex 09cb855fb7..613b35f7f8 100644--- a/backend/server/server.go+++ b/backend/server/server.go@@ -44,11 +44,9 @@ import ("github.com/bytebase/bytebase/backend/resources/mongoutil""github.com/bytebase/bytebase/backend/resources/postgres""github.com/bytebase/bytebase/backend/runner/approval"- "github.com/bytebase/bytebase/backend/runner/mail""github.com/bytebase/bytebase/backend/runner/metricreport""github.com/bytebase/bytebase/backend/runner/plancheck""github.com/bytebase/bytebase/backend/runner/schemasync"- "github.com/bytebase/bytebase/backend/runner/slowquerysync""github.com/bytebase/bytebase/backend/runner/taskrun""github.com/bytebase/bytebase/backend/store")@@ -70,8 +68,6 @@ type Server struct {planCheckScheduler *plancheck.SchedulermetricReporter *metricreport.ReporterschemaSyncer *schemasync.Syncer- slowQuerySyncer *slowquerysync.Syncer- mailSender *mail.SlowQueryWeeklyMailSenderapprovalRunner *approval.RunnerrunnerWG sync.WaitGroup@@ -261,8 +257,6 @@ func NewServer(ctx context.Context, profile *config.Profile) (*Server, error) {s.metricReporter = metricreport.NewReporter(s.store, s.licenseService, s.profile, false)s.schemaSyncer = schemasync.NewSyncer(storeInstance, s.dbFactory, s.stateCfg, profile, s.licenseService)if !profile.Readonly {- s.slowQuerySyncer = slowquerysync.NewSyncer(storeInstance, s.dbFactory, s.stateCfg, profile)- s.mailSender = mail.NewSender(s.store, s.stateCfg, s.iamManager)s.approvalRunner = approval.NewRunner(storeInstance, s.sheetManager, s.dbFactory, s.stateCfg, s.webhookManager, s.licenseService)s.taskSchedulerV2 = taskrun.NewSchedulerV2(storeInstance, s.stateCfg, s.webhookManager, profile, s.licenseService)@@ -368,10 +362,6 @@ func (s *Server) Run(ctx context.Context, port int) error {s.runnerWG.Add(1)go s.schemaSyncer.Run(ctx, &s.runnerWG)s.runnerWG.Add(1)- go s.slowQuerySyncer.Run(ctx, &s.runnerWG)- s.runnerWG.Add(1)- go s.mailSender.Run(ctx, &s.runnerWG)- s.runnerWG.Add(1)go s.approvalRunner.Run(ctx, &s.runnerWG)s.runnerWG.Add(1)diff --git a/backend/store/policy.go b/backend/store/policy.goindex 93a547f471..23e0eab43e 100644--- a/backend/store/policy.go+++ b/backend/store/policy.go@@ -280,32 +280,6 @@ func (s *Store) getReviewConfigByResource(ctx context.Context, resourceType api.return reviewConfig.Payload, nil}-// GetSlowQueryPolicy will get the slow query policy for instance ID.-func (s *Store) GetSlowQueryPolicy(ctx context.Context, instanceID string) (*storepb.SlowQueryPolicy, error) {- resourceType := api.PolicyResourceTypeInstance- resource := common.FormatInstance(instanceID)- pType := api.PolicyTypeSlowQuery- policy, err := s.GetPolicyV2(ctx, &FindPolicyMessage{- ResourceType: &resourceType,- Resource: &resource,- Type: &pType,- })- if err != nil {- return nil, err- }-- if policy == nil {- return &storepb.SlowQueryPolicy{Active: false}, nil- }-- payload := &storepb.SlowQueryPolicy{}- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(policy.Payload), payload); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal slow query policy payload")- }-- return payload, nil-}-// GetMaskingRulePolicy will get the masking rule policy.func (s *Store) GetMaskingRulePolicy(ctx context.Context) (*storepb.MaskingRulePolicy, error) {pType := api.PolicyTypeMaskingRulediff --git a/backend/store/slow_query.go b/backend/store/slow_query.godeleted file mode 100644index e29b4fddf4..0000000000--- a/backend/store/slow_query.go+++ /dev/null@@ -1,338 +0,0 @@-package store--import (- "context"- "database/sql"- "fmt"- "math/rand"- "strconv"- "strings"- "time"-- "google.golang.org/protobuf/encoding/protojson"- "google.golang.org/protobuf/types/known/durationpb"-- "github.com/pkg/errors"-- "github.com/bytebase/bytebase/backend/common"- "github.com/bytebase/bytebase/backend/plugin/db"- storepb "github.com/bytebase/bytebase/proto/generated-go/store"- v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"-)--// ListSlowQueryMessage is the message to list slow query logs.-type ListSlowQueryMessage struct {- InstanceID *string- DatabaseName *string- // List slow query logs in [StartLogDate, EndLogDate).- StartLogDate *time.Time- EndLogDate *time.Time-}--// ListSlowQuery lists slow query logs.-func (s *Store) ListSlowQuery(ctx context.Context, list *ListSlowQueryMessage) ([]*v1pb.SlowQueryLog, error) {- tx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})- if err != nil {- return nil, errors.Wrapf(err, "failed to begin transaction")- }- defer tx.Rollback()-- slowQueryLog, err := s.listSlowQueryImpl(ctx, tx, list)- if err != nil {- return nil, err- }-- if err := tx.Commit(); err != nil {- return nil, errors.Wrapf(err, "failed to commit transaction")- }-- return slowQueryLog, nil-}--type slowQueryLogValue struct {- log *v1pb.SlowQueryLog- totalQueryTime time.Duration- totalRowsSent int64- totalRowsExamined int64-}--func (*Store) listSlowQueryImpl(ctx context.Context, tx *Tx, list *ListSlowQueryMessage) ([]*v1pb.SlowQueryLog, error) {- where, args := []string{"TRUE"}, []any{}- if v := list.InstanceID; v != nil {- where, args = append(where, fmt.Sprintf("instance = $%d", len(args)+1)), append(args, *v)- }- if v := list.DatabaseName; v != nil {- where, args = append(where, fmt.Sprintf("db_name = $%d", len(args)+1)), append(args, *v)- }- if v := list.StartLogDate; v != nil {- where, args = append(where, fmt.Sprintf("log_date_ts >= $%d", len(args)+1)), append(args, v.Format("20060102"))- }- if v := list.EndLogDate; v != nil {- where, args = append(where, fmt.Sprintf("log_date_ts < $%d", len(args)+1)), append(args, v.Format("20060102"))- }-- query := fmt.Sprintf(`- SELECT- log_date_ts,- slow_query_statistics- FROM slow_query- WHERE (%s)- `, strings.Join(where, " AND "))-- rows, err := tx.QueryContext(ctx, query, args...)- if err != nil {- return nil, err- }- defer rows.Close()-- logMap := make(map[string]*slowQueryLogValue)- for rows.Next() {- var logDate int- var logBytes []byte- if err := rows.Scan(- &logDate,- &logBytes,- ); err != nil {- return nil, err- }-- var slowLog storepb.SlowQueryStatistics- if err := common.ProtojsonUnmarshaler.Unmarshal(logBytes, &slowLog); err != nil {- return nil, err- }-- for _, item := range slowLog.Items {- if value, exists := logMap[item.SqlFingerprint]; exists {- value.log.Statistics.Count += item.Count- value.totalQueryTime += item.TotalQueryTime.AsDuration()- value.totalRowsSent += item.TotalRowsSent- value.totalRowsExamined += item.TotalRowsExamined- if value.log.Statistics.LatestLogTime.AsTime().Before(item.LatestLogTime.AsTime()) {- value.log.Statistics.LatestLogTime = item.LatestLogTime- }- for _, sample := range item.Samples {- details := &v1pb.SlowQueryDetails{- StartTime: sample.StartTime,- QueryTime: sample.QueryTime,- LockTime: sample.LockTime,- RowsSent: sample.RowsSent,- RowsExamined: sample.RowsExamined,- SqlText: sample.SqlText,- }-- if len(value.log.Statistics.Samples) < db.SlowQueryMaxSamplePerFingerprint {- value.log.Statistics.Samples = append(value.log.Statistics.Samples, details)- } else {- // Use Reservoir Sampling to sample slow logs.- pos := rand.Intn(len(value.log.Statistics.Samples))- value.log.Statistics.Samples[pos] = details- }- }- } else {- logMap[item.SqlFingerprint] = &slowQueryLogValue{- log: &v1pb.SlowQueryLog{- Statistics: &v1pb.SlowQueryStatistics{- SqlFingerprint: item.SqlFingerprint,- Count: item.Count,- LatestLogTime: item.LatestLogTime,- MaximumQueryTime: item.MaximumQueryTime,- MaximumRowsSent: item.MaximumRowsSent,- MaximumRowsExamined: item.MaximumRowsExamined,- Samples: func() []*v1pb.SlowQueryDetails {- var details []*v1pb.SlowQueryDetails- for _, sample := range item.Samples {- details = append(details, &v1pb.SlowQueryDetails{- StartTime: sample.StartTime,- QueryTime: sample.QueryTime,- LockTime: sample.LockTime,- RowsSent: sample.RowsSent,- RowsExamined: sample.RowsExamined,- SqlText: sample.SqlText,- })- }- return details- }(),- },- },- totalQueryTime: item.TotalQueryTime.AsDuration(),- totalRowsSent: item.TotalRowsSent,- totalRowsExamined: item.TotalRowsExamined,- }- }- }- }-- if err := rows.Err(); err != nil {- return nil, err- }-- var result []*v1pb.SlowQueryLog- for key := range logMap {- result = append(result, calculateStatistics(logMap[key]))- }-- return result, nil-}--func calculateStatistics(value *slowQueryLogValue) *v1pb.SlowQueryLog {- result := value.log- result.Statistics.AverageQueryTime = durationpb.New(value.totalQueryTime / time.Duration(result.Statistics.Count))- result.Statistics.AverageRowsSent = value.totalRowsSent / result.Statistics.Count- result.Statistics.AverageRowsExamined = value.totalRowsExamined / result.Statistics.Count- return result-}--// UpsertSlowLogMessage is the message to upsert slow query logs.-type UpsertSlowLogMessage struct {- InstanceID string- // DatabaseName can be empty.- DatabaseName string-- LogDate time.Time- SlowLog *storepb.SlowQueryStatistics-}--// UpsertSlowLog upserts slow query logs.-func (s *Store) UpsertSlowLog(ctx context.Context, upsert *UpsertSlowLogMessage) error {- var databaseName *string- if upsert.DatabaseName != "" {- instance, err := s.GetInstanceV2(ctx, &FindInstanceMessage{ResourceID: &upsert.InstanceID})- if err != nil {- return err- }- database, err := s.GetDatabaseV2(ctx, &FindDatabaseMessage{- InstanceID: &upsert.InstanceID,- DatabaseName: &upsert.DatabaseName,- IsCaseSensitive: IsObjectCaseSensitive(instance),- })- if err != nil {- return err- }- if database != nil {- databaseName = &upsert.DatabaseName- }- }-- logDate, err := strconv.Atoi(upsert.LogDate.UTC().Format("20060102"))- if err != nil {- return err- }-- logBytes, err := protojson.Marshal(upsert.SlowLog)- if err != nil {- return err- }-- query := `- INSERT INTO slow_query (- instance,- db_name,- log_date_ts,- slow_query_statistics- ) VALUES ($1, $2, $3, $4)- ON CONFLICT (instance, db_name, log_date_ts) DO UPDATE SET- slow_query_statistics = EXCLUDED.slow_query_statistics- `-- tx, err := s.db.BeginTx(ctx, nil)- if err != nil {- return err- }- defer tx.Rollback()-- if _, err := tx.ExecContext(ctx, query,- upsert.InstanceID,- databaseName,- logDate,- logBytes,- ); err != nil {- return err- }-- return tx.Commit()-}--// DeleteOutdatedSlowLog deletes outdated slow query logs.-func (s *Store) DeleteOutdatedSlowLog(ctx context.Context, instanceID string, earliestDate time.Time) error {- tx, err := s.db.BeginTx(ctx, nil)- if err != nil {- return err- }- defer tx.Rollback()-- if err := s.deleteSlowLogImpl(ctx, tx, instanceID, earliestDate); err != nil {- return err- }-- return tx.Commit()-}--func (*Store) deleteSlowLogImpl(ctx context.Context, tx *Tx, instanceID string, earliestDate time.Time) error {- if _, err := tx.ExecContext(ctx, `- DELETE FROM- slow_query- WHERE- instance = $1- AND log_date_ts < $2`,- instanceID,- earliestDate.Format("20060102"),- ); err != nil {- return err- }- return nil-}--// GetLatestSlowLogDate returns the latest slow query log date.-func (s *Store) GetLatestSlowLogDate(ctx context.Context, instanceID string) (*time.Time, error) {- tx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})- if err != nil {- return nil, err- }- defer tx.Rollback()-- result, err := s.getLatestSlowLogDateImpl(ctx, tx, instanceID)- if err != nil {- return nil, err- }-- if err := tx.Commit(); err != nil {- return nil, err- }- return result, nil-}--func (*Store) getLatestSlowLogDateImpl(ctx context.Context, tx *Tx, instanceID string) (*time.Time, error) {- rows, err := tx.QueryContext(ctx, `- SELECT- MAX(log_date_ts)- FROM- slow_query- WHERE- instance = $1`,- instanceID,- )- if err != nil {- return nil, err- }- defer rows.Close()- var result *time.Time- for rows.Next() {- var logDate sql.NullInt32- if err := rows.Scan(&logDate); err != nil {- return nil, err- }- if logDate.Valid {- t, err := time.Parse("20060102", strconv.Itoa(int(logDate.Int32)))- if err != nil {- return nil, err- }- result = &t- } else {- result = nil- }- }- if err := rows.Err(); err != nil {- return nil, err- }- return result, nil-}diff --git a/frontend/src/components/Project/useProjectSidebar.ts b/frontend/src/components/Project/useProjectSidebar.tsindex b20bdb5d2a..bdffdb0016 100644--- a/frontend/src/components/Project/useProjectSidebar.ts+++ b/frontend/src/components/Project/useProjectSidebar.ts@@ -1,4 +1,3 @@-import { startCase } from "lodash-es";import {Database,CircleDot,@@ -142,10 +141,6 @@ export const useProjectSidebar = (type: "div",hide: databaseChangeMode.value === DatabaseChangeMode.EDITOR,},- {- title: startCase(t("slow-query.slow-queries")),- type: "div",- },{title: t("common.anomalies"),path: PROJECT_V1_ROUTE_ANOMALIES,diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex f6b3cc3a21..3a235bc080 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2322,13 +2322,6 @@"issue-creators-cannot-approve-their-own-issue": "Issue creators cannot approve their own issue"}},- "slow-query": {- "slow-queries": "Slow queries",- "advise-index": {- },- "no-log-placeholder": {- }- },"schema-template": {"self": "Schema Template","field-template": {diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 68ad6524f0..34a84177f2 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2321,13 +2321,6 @@"issue-creators-cannot-approve-their-own-issue": "El creador del problema no puede aprobar su propio problema."}},- "slow-query": {- "slow-queries": "Consultas lentas",- "advise-index": {- },- "no-log-placeholder": {- }- },"schema-template": {"self": "Plantilla de esquema","field-template": {@@ -2586,4 +2579,4 @@"last-visit": "Última visita","changelog-for-version": "Registro de cambios para {version}"}-}\ No newline at end of file+}diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 2b71e2e82a..d7c1ec4a9f 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2321,13 +2321,6 @@"issue-creators-cannot-approve-their-own-issue": "イシュー作成者は自分の問題を承認できません"}},- "slow-query": {- "slow-queries": "遅いクエリ",- "advise-index": {- },- "no-log-placeholder": {- }- },"schema-template": {"self": "スキーマテンプレート","field-template": {@@ -2586,4 +2579,4 @@"last-visit": "最終訪問","changelog-for-version": "{version} の変更履歴"}-}\ No newline at end of file+}diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex b2c79fb666..af24423e08 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2321,13 +2321,6 @@"issue-creators-cannot-approve-their-own-issue": "Người tạo vấn đề không thể phê duyệt vấn đề của chính họ"}},- "slow-query": {- "slow-queries": "Truy vấn chậm",- "advise-index": {- },- "no-log-placeholder": {- }- },"schema-template": {"self": "Mẫu lược đồ","field-template": {@@ -2586,4 +2579,4 @@"last-visit": "Lần truy cập cuối","changelog-for-version": "Nhật ký thay đổi cho phiên bản {version}"}-}\ No newline at end of file+}diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 21f939d0be..b676475798 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2321,13 +2321,6 @@"issue-creators-cannot-approve-their-own-issue": "工单创建者不能审批自己的工单"}},- "slow-query": {- "slow-queries": "慢查询",- "advise-index": {- },- "no-log-placeholder": {- }- },"schema-template": {"self": "Schema 模板","field-template": {@@ -2586,4 +2579,4 @@"last-visit": "上次访问","changelog-for-version": "{version} 的更新日志"}-}\ No newline at end of file+}diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.tsindex 0f2cebba2a..6fbb499d61 100644--- a/frontend/src/types/proto/store/policy.ts+++ b/frontend/src/types/proto/store/policy.ts@@ -280,11 +280,6 @@ export function environmentTierPolicy_EnvironmentTierToNumber(object: Environmen}}-/** SlowQueryPolicy is the policy configuration for slow query. */-export interface SlowQueryPolicy {- active: boolean;-}-/** DisableCopyDataPolicy is the policy configuration for disabling copying data. */export interface DisableCopyDataPolicy {active: boolean;@@ -1301,64 +1296,6 @@ export const EnvironmentTierPolicy: MessageFns<EnvironmentTierPolicy> = {},};-function createBaseSlowQueryPolicy(): SlowQueryPolicy {- return { active: false };-}--export const SlowQueryPolicy: MessageFns<SlowQueryPolicy> = {- encode(message: SlowQueryPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.active !== false) {- writer.uint32(8).bool(message.active);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): SlowQueryPolicy {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSlowQueryPolicy();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 8) {- break;- }-- message.active = reader.bool();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): SlowQueryPolicy {- return { active: isSet(object.active) ? globalThis.Boolean(object.active) : false };- },-- toJSON(message: SlowQueryPolicy): unknown {- const obj: any = {};- if (message.active !== false) {- obj.active = message.active;- }- return obj;- },-- create(base?: DeepPartial<SlowQueryPolicy>): SlowQueryPolicy {- return SlowQueryPolicy.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SlowQueryPolicy>): SlowQueryPolicy {- const message = createBaseSlowQueryPolicy();- message.active = object.active ?? false;- return message;- },-};-function createBaseDisableCopyDataPolicy(): DisableCopyDataPolicy {return { active: false };}diff --git a/frontend/src/types/proto/store/slow_query.ts b/frontend/src/types/proto/store/slow_query.tsdeleted file mode 100644index f852eb9162..0000000000--- a/frontend/src/types/proto/store/slow_query.ts+++ /dev/null@@ -1,568 +0,0 @@-// Code generated by protoc-gen-ts_proto. DO NOT EDIT.-// versions:-// protoc-gen-ts_proto v2.3.0-// protoc unknown-// source: store/slow_query.proto--/* eslint-disable */-import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";-import Long from "long";-import { Duration } from "../google/protobuf/duration";-import { Timestamp } from "../google/protobuf/timestamp";--export const protobufPackage = "bytebase.store";--/** SlowQueryStatistics is the slow query statistics. */-export interface SlowQueryStatistics {- /** Items is the list of slow query statistics. */- items: SlowQueryStatisticsItem[];-}--/** SlowQueryStatisticsItem is the item of slow query statistics. */-export interface SlowQueryStatisticsItem {- /** sql_fingerprint is the fingerprint of the slow query. */- sqlFingerprint: string;- /** count is the number of slow queries with the same fingerprint. */- count: Long;- /** latest_log_time is the time of the latest slow query with the same fingerprint. */- latestLogTime:- | Timestamp- | undefined;- /** The total query time of the slow query log. */- totalQueryTime:- | Duration- | undefined;- /** The maximum query time of the slow query log. */- maximumQueryTime:- | Duration- | undefined;- /** The total rows sent of the slow query log. */- totalRowsSent: Long;- /** The maximum rows sent of the slow query log. */- maximumRowsSent: Long;- /** The total rows examined of the slow query log. */- totalRowsExamined: Long;- /** The maximum rows examined of the slow query log. */- maximumRowsExamined: Long;- /** samples are the details of the sample slow queries with the same fingerprint. */- samples: SlowQueryDetails[];-}--/** SlowQueryDetails is the details of a slow query. */-export interface SlowQueryDetails {- /** start_time is the start time of the slow query. */- startTime:- | Timestamp- | undefined;- /** query_time is the query time of the slow query. */- queryTime:- | Duration- | undefined;- /** lock_time is the lock time of the slow query. */- lockTime:- | Duration- | undefined;- /** rows_sent is the number of rows sent by the slow query. */- rowsSent: Long;- /** rows_examined is the number of rows examined by the slow query. */- rowsExamined: Long;- /** sql_text is the SQL text of the slow query. */- sqlText: string;-}--function createBaseSlowQueryStatistics(): SlowQueryStatistics {- return { items: [] };-}--export const SlowQueryStatistics: MessageFns<SlowQueryStatistics> = {- encode(message: SlowQueryStatistics, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- for (const v of message.items) {- SlowQueryStatisticsItem.encode(v!, writer.uint32(10).fork()).join();- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): SlowQueryStatistics {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSlowQueryStatistics();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.items.push(SlowQueryStatisticsItem.decode(reader, reader.uint32()));- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): SlowQueryStatistics {- return {- items: globalThis.Array.isArray(object?.items)- ? object.items.map((e: any) => SlowQueryStatisticsItem.fromJSON(e))- : [],- };- },-- toJSON(message: SlowQueryStatistics): unknown {- const obj: any = {};- if (message.items?.length) {- obj.items = message.items.map((e) => SlowQueryStatisticsItem.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<SlowQueryStatistics>): SlowQueryStatistics {- return SlowQueryStatistics.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SlowQueryStatistics>): SlowQueryStatistics {- const message = createBaseSlowQueryStatistics();- message.items = object.items?.map((e) => SlowQueryStatisticsItem.fromPartial(e)) || [];- return message;- },-};--function createBaseSlowQueryStatisticsItem(): SlowQueryStatisticsItem {- return {- sqlFingerprint: "",- count: Long.ZERO,- latestLogTime: undefined,- totalQueryTime: undefined,- maximumQueryTime: undefined,- totalRowsSent: Long.ZERO,- maximumRowsSent: Long.ZERO,- totalRowsExamined: Long.ZERO,- maximumRowsExamined: Long.ZERO,- samples: [],- };-}--export const SlowQueryStatisticsItem: MessageFns<SlowQueryStatisticsItem> = {- encode(message: SlowQueryStatisticsItem, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.sqlFingerprint !== "") {- writer.uint32(10).string(message.sqlFingerprint);- }- if (!message.count.equals(Long.ZERO)) {- writer.uint32(16).int64(message.count.toString());- }- if (message.latestLogTime !== undefined) {- Timestamp.encode(message.latestLogTime, writer.uint32(26).fork()).join();- }- if (message.totalQueryTime !== undefined) {- Duration.encode(message.totalQueryTime, writer.uint32(34).fork()).join();- }- if (message.maximumQueryTime !== undefined) {- Duration.encode(message.maximumQueryTime, writer.uint32(42).fork()).join();- }- if (!message.totalRowsSent.equals(Long.ZERO)) {- writer.uint32(48).int64(message.totalRowsSent.toString());- }- if (!message.maximumRowsSent.equals(Long.ZERO)) {- writer.uint32(56).int64(message.maximumRowsSent.toString());- }- if (!message.totalRowsExamined.equals(Long.ZERO)) {- writer.uint32(64).int64(message.totalRowsExamined.toString());- }- if (!message.maximumRowsExamined.equals(Long.ZERO)) {- writer.uint32(72).int64(message.maximumRowsExamined.toString());- }- for (const v of message.samples) {- SlowQueryDetails.encode(v!, writer.uint32(82).fork()).join();- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): SlowQueryStatisticsItem {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSlowQueryStatisticsItem();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.sqlFingerprint = reader.string();- continue;- }- case 2: {- if (tag !== 16) {- break;- }-- message.count = Long.fromString(reader.int64().toString());- continue;- }- case 3: {- if (tag !== 26) {- break;- }-- message.latestLogTime = Timestamp.decode(reader, reader.uint32());- continue;- }- case 4: {- if (tag !== 34) {- break;- }-- message.totalQueryTime = Duration.decode(reader, reader.uint32());- continue;- }- case 5: {- if (tag !== 42) {- break;- }-- message.maximumQueryTime = Duration.decode(reader, reader.uint32());- continue;- }- case 6: {- if (tag !== 48) {- break;- }-- message.totalRowsSent = Long.fromString(reader.int64().toString());- continue;- }- case 7: {- if (tag !== 56) {- break;- }-- message.maximumRowsSent = Long.fromString(reader.int64().toString());- continue;- }- case 8: {- if (tag !== 64) {- break;- }-- message.totalRowsExamined = Long.fromString(reader.int64().toString());- continue;- }- case 9: {- if (tag !== 72) {- break;- }-- message.maximumRowsExamined = Long.fromString(reader.int64().toString());- continue;- }- case 10: {- if (tag !== 82) {- break;- }-- message.samples.push(SlowQueryDetails.decode(reader, reader.uint32()));- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): SlowQueryStatisticsItem {- return {- sqlFingerprint: isSet(object.sqlFingerprint) ? globalThis.String(object.sqlFingerprint) : "",- count: isSet(object.count) ? Long.fromValue(object.count) : Long.ZERO,- latestLogTime: isSet(object.latestLogTime) ? fromJsonTimestamp(object.latestLogTime) : undefined,- totalQueryTime: isSet(object.totalQueryTime) ? Duration.fromJSON(object.totalQueryTime) : undefined,- maximumQueryTime: isSet(object.maximumQueryTime) ? Duration.fromJSON(object.maximumQueryTime) : undefined,- totalRowsSent: isSet(object.totalRowsSent) ? Long.fromValue(object.totalRowsSent) : Long.ZERO,- maximumRowsSent: isSet(object.maximumRowsSent) ? Long.fromValue(object.maximumRowsSent) : Long.ZERO,- totalRowsExamined: isSet(object.totalRowsExamined) ? Long.fromValue(object.totalRowsExamined) : Long.ZERO,- maximumRowsExamined: isSet(object.maximumRowsExamined) ? Long.fromValue(object.maximumRowsExamined) : Long.ZERO,- samples: globalThis.Array.isArray(object?.samples)- ? object.samples.map((e: any) => SlowQueryDetails.fromJSON(e))- : [],- };- },-- toJSON(message: SlowQueryStatisticsItem): unknown {- const obj: any = {};- if (message.sqlFingerprint !== "") {- obj.sqlFingerprint = message.sqlFingerprint;- }- if (!message.count.equals(Long.ZERO)) {- obj.count = (message.count || Long.ZERO).toString();- }- if (message.latestLogTime !== undefined) {- obj.latestLogTime = fromTimestamp(message.latestLogTime).toISOString();- }- if (message.totalQueryTime !== undefined) {- obj.totalQueryTime = Duration.toJSON(message.totalQueryTime);- }- if (message.maximumQueryTime !== undefined) {- obj.maximumQueryTime = Duration.toJSON(message.maximumQueryTime);- }- if (!message.totalRowsSent.equals(Long.ZERO)) {- obj.totalRowsSent = (message.totalRowsSent || Long.ZERO).toString();- }- if (!message.maximumRowsSent.equals(Long.ZERO)) {- obj.maximumRowsSent = (message.maximumRowsSent || Long.ZERO).toString();- }- if (!message.totalRowsExamined.equals(Long.ZERO)) {- obj.totalRowsExamined = (message.totalRowsExamined || Long.ZERO).toString();- }- if (!message.maximumRowsExamined.equals(Long.ZERO)) {- obj.maximumRowsExamined = (message.maximumRowsExamined || Long.ZERO).toString();- }- if (message.samples?.length) {- obj.samples = message.samples.map((e) => SlowQueryDetails.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<SlowQueryStatisticsItem>): SlowQueryStatisticsItem {- return SlowQueryStatisticsItem.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SlowQueryStatisticsItem>): SlowQueryStatisticsItem {- const message = createBaseSlowQueryStatisticsItem();- message.sqlFingerprint = object.sqlFingerprint ?? "";- message.count = (object.count !== undefined && object.count !== null) ? Long.fromValue(object.count) : Long.ZERO;- message.latestLogTime = (object.latestLogTime !== undefined && object.latestLogTime !== null)- ? Timestamp.fromPartial(object.latestLogTime)- : undefined;- message.totalQueryTime = (object.totalQueryTime !== undefined && object.totalQueryTime !== null)- ? Duration.fromPartial(object.totalQueryTime)- : undefined;- message.maximumQueryTime = (object.maximumQueryTime !== undefined && object.maximumQueryTime !== null)- ? Duration.fromPartial(object.maximumQueryTime)- : undefined;- message.totalRowsSent = (object.totalRowsSent !== undefined && object.totalRowsSent !== null)- ? Long.fromValue(object.totalRowsSent)- : Long.ZERO;- message.maximumRowsSent = (object.maximumRowsSent !== undefined && object.maximumRowsSent !== null)- ? Long.fromValue(object.maximumRowsSent)- : Long.ZERO;- message.totalRowsExamined = (object.totalRowsExamined !== undefined && object.totalRowsExamined !== null)- ? Long.fromValue(object.totalRowsExamined)- : Long.ZERO;- message.maximumRowsExamined = (object.maximumRowsExamined !== undefined && object.maximumRowsExamined !== null)- ? Long.fromValue(object.maximumRowsExamined)- : Long.ZERO;- message.samples = object.samples?.map((e) => SlowQueryDetails.fromPartial(e)) || [];- return message;- },-};--function createBaseSlowQueryDetails(): SlowQueryDetails {- return {- startTime: undefined,- queryTime: undefined,- lockTime: undefined,- rowsSent: Long.ZERO,- rowsExamined: Long.ZERO,- sqlText: "",- };-}--export const SlowQueryDetails: MessageFns<SlowQueryDetails> = {- encode(message: SlowQueryDetails, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.startTime !== undefined) {- Timestamp.encode(message.startTime, writer.uint32(10).fork()).join();- }- if (message.queryTime !== undefined) {- Duration.encode(message.queryTime, writer.uint32(18).fork()).join();- }- if (message.lockTime !== undefined) {- Duration.encode(message.lockTime, writer.uint32(26).fork()).join();- }- if (!message.rowsSent.equals(Long.ZERO)) {- writer.uint32(32).int64(message.rowsSent.toString());- }- if (!message.rowsExamined.equals(Long.ZERO)) {- writer.uint32(40).int64(message.rowsExamined.toString());- }- if (message.sqlText !== "") {- writer.uint32(50).string(message.sqlText);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): SlowQueryDetails {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSlowQueryDetails();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.startTime = Timestamp.decode(reader, reader.uint32());- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.queryTime = Duration.decode(reader, reader.uint32());- continue;- }- case 3: {- if (tag !== 26) {- break;- }-- message.lockTime = Duration.decode(reader, reader.uint32());- continue;- }- case 4: {- if (tag !== 32) {- break;- }-- message.rowsSent = Long.fromString(reader.int64().toString());- continue;- }- case 5: {- if (tag !== 40) {- break;- }-- message.rowsExamined = Long.fromString(reader.int64().toString());- continue;- }- case 6: {- if (tag !== 50) {- break;- }-- message.sqlText = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): SlowQueryDetails {- return {- startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : undefined,- queryTime: isSet(object.queryTime) ? Duration.fromJSON(object.queryTime) : undefined,- lockTime: isSet(object.lockTime) ? Duration.fromJSON(object.lockTime) : undefined,- rowsSent: isSet(object.rowsSent) ? Long.fromValue(object.rowsSent) : Long.ZERO,- rowsExamined: isSet(object.rowsExamined) ? Long.fromValue(object.rowsExamined) : Long.ZERO,- sqlText: isSet(object.sqlText) ? globalThis.String(object.sqlText) : "",- };- },-- toJSON(message: SlowQueryDetails): unknown {- const obj: any = {};- if (message.startTime !== undefined) {- obj.startTime = fromTimestamp(message.startTime).toISOString();- }- if (message.queryTime !== undefined) {- obj.queryTime = Duration.toJSON(message.queryTime);- }- if (message.lockTime !== undefined) {- obj.lockTime = Duration.toJSON(message.lockTime);- }- if (!message.rowsSent.equals(Long.ZERO)) {- obj.rowsSent = (message.rowsSent || Long.ZERO).toString();- }- if (!message.rowsExamined.equals(Long.ZERO)) {- obj.rowsExamined = (message.rowsExamined || Long.ZERO).toString();- }- if (message.sqlText !== "") {- obj.sqlText = message.sqlText;- }- return obj;- },-- create(base?: DeepPartial<SlowQueryDetails>): SlowQueryDetails {- return SlowQueryDetails.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SlowQueryDetails>): SlowQueryDetails {- const message = createBaseSlowQueryDetails();- message.startTime = (object.startTime !== undefined && object.startTime !== null)- ? Timestamp.fromPartial(object.startTime)- : undefined;- message.queryTime = (object.queryTime !== undefined && object.queryTime !== null)- ? Duration.fromPartial(object.queryTime)- : undefined;- message.lockTime = (object.lockTime !== undefined && object.lockTime !== null)- ? Duration.fromPartial(object.lockTime)- : undefined;- message.rowsSent = (object.rowsSent !== undefined && object.rowsSent !== null)- ? Long.fromValue(object.rowsSent)- : Long.ZERO;- message.rowsExamined = (object.rowsExamined !== undefined && object.rowsExamined !== null)- ? Long.fromValue(object.rowsExamined)- : Long.ZERO;- message.sqlText = object.sqlText ?? "";- return message;- },-};--type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;--export type DeepPartial<T> = T extends Builtin ? T- : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }- : Partial<T>;--function toTimestamp(date: Date): Timestamp {- const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));- const nanos = (date.getTime() % 1_000) * 1_000_000;- return { seconds, nanos };-}--function fromTimestamp(t: Timestamp): Date {- let millis = (t.seconds.toNumber() || 0) * 1_000;- millis += (t.nanos || 0) / 1_000_000;- return new globalThis.Date(millis);-}--function fromJsonTimestamp(o: any): Timestamp {- if (o instanceof globalThis.Date) {- return toTimestamp(o);- } else if (typeof o === "string") {- return toTimestamp(new globalThis.Date(o));- } else {- return Timestamp.fromJSON(o);- }-}--function numberToLong(number: number) {- return Long.fromNumber(number);-}--function isSet(value: any): boolean {- return value !== null && value !== undefined;-}--export interface MessageFns<T> {- encode(message: T, writer?: BinaryWriter): BinaryWriter;- decode(input: BinaryReader | Uint8Array, length?: number): T;- fromJSON(object: any): T;- toJSON(message: T): unknown;- create(base?: DeepPartial<T>): T;- fromPartial(object: DeepPartial<T>): T;-}diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.tsindex 982cc8ee71..d2edc871db 100644--- a/frontend/src/types/proto/v1/database_service.ts+++ b/frontend/src/types/proto/v1/database_service.ts@@ -7,7 +7,6 @@/* eslint-disable */import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";import Long from "long";-import { Duration } from "../google/protobuf/duration";import { Empty } from "../google/protobuf/empty";import { FieldMask } from "../google/protobuf/field_mask";import { Timestamp } from "../google/protobuf/timestamp";@@ -1246,117 +1245,6 @@ export interface DatabaseSchema {schema: string;}-/** ListSlowQueriesRequest is the request of listing slow query. */-export interface ListSlowQueriesRequest {- /** Format: projects/{project} */- parent: string;- /**- * The filter of the slow query log.- * follow the- * [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form)- * syntax. Support filter by database and start_time in SlowQueryDetails for- * now. For example: Search the slow query log of the specific database:- * - the specific database: database =- * "instances/{instance}/databases/{database}"- * Search the slow query log that start_time after 2022-01-01T12:00:00.000Z:- * - start_time > "2022-01-01T12:00:00.000Z"- * - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339).- * - Currently we only support filtering down to date granularity.- */- filter: string;- /**- * The order by of the slow query log.- * Support order by count, latest_log_time, average_query_time,- * maximum_query_time, average_rows_sent, maximum_rows_sent,- * average_rows_examined, maximum_rows_examined for now. For example:- * - order by count: order_by = "count"- * - order by latest_log_time desc: order_by = "latest_log_time desc"- * Default: order by average_query_time desc.- */- orderBy: string;-}--/** ListSlowQueriesResponse is the response of listing slow query. */-export interface ListSlowQueriesResponse {- /** The slow query logs. */- slowQueryLogs: SlowQueryLog[];-}--/** SlowQueryLog is the slow query log. */-export interface SlowQueryLog {- /**- * The resource of the slow query log.- * The format is "instances/{instance}/databases/{database}".- */- resource: string;- /**- * The project of the slow query log.- * The format is "projects/{project}".- */- project: string;- /** The statistics of the slow query log. */- statistics: SlowQueryStatistics | undefined;-}--/** SlowQueryStatistics is the statistics of the slow query log. */-export interface SlowQueryStatistics {- /** The fingerprint of the slow query log. */- sqlFingerprint: string;- /** The count of the slow query log. */- count: Long;- /** The latest log time of the slow query log. */- latestLogTime:- | Timestamp- | undefined;- /** The average query time of the slow query log. */- averageQueryTime:- | Duration- | undefined;- /** The maximum query time of the slow query log. */- maximumQueryTime:- | Duration- | undefined;- /** The average rows sent of the slow query log. */- averageRowsSent: Long;- /** The maximum rows sent of the slow query log. */- maximumRowsSent: Long;- /** The average rows examined of the slow query log. */- averageRowsExamined: Long;- /** The maximum rows examined of the slow query log. */- maximumRowsExamined: Long;- /** The percentage of the query time. */- queryTimePercent: number;- /** The percentage of the count. */- countPercent: number;- /**- * Samples are details of the sample slow query logs with the same- * fingerprint.- */- samples: SlowQueryDetails[];-}--/** SlowQueryDetails is the details of the slow query log. */-export interface SlowQueryDetails {- /** The start time of the slow query log. */- startTime:- | Timestamp- | undefined;- /** The query time of the slow query log. */- queryTime:- | Duration- | undefined;- /** The lock time of the slow query log. */- lockTime:- | Duration- | undefined;- /** The rows sent of the slow query log. */- rowsSent: Long;- /** The rows examined of the slow query log. */- rowsExamined: Long;- /** The sql text of the slow query log. */- sqlText: string;-}-export interface ListSecretsRequest {/*** The parent of the secret.@@ -1436,24 +1324,6 @@ export interface Secret {description: string;}-/** AdviseIndexRequest is the request of advising index. */-export interface AdviseIndexRequest {- /** Format: instances/{instance}/databases/{database} */- parent: string;- /** The statement to be advised. */- statement: string;-}--/** AdviseIndexResponse is the response of advising index. */-export interface AdviseIndexResponse {- /** The current index of the statement used. */- currentIndex: string;- /** The suggested index of the statement. */- suggestion: string;- /** The create index statement of the suggested index. */- createIndexStatement: string;-}-export interface ChangedResources {databases: ChangedResourceDatabase[];}@@ -7539,28 +7409,28 @@ export const DatabaseSchema: MessageFns<DatabaseSchema> = {},};-function createBaseListSlowQueriesRequest(): ListSlowQueriesRequest {- return { parent: "", filter: "", orderBy: "" };+function createBaseListSecretsRequest(): ListSecretsRequest {+ return { parent: "", pageSize: 0, pageToken: "" };}-export const ListSlowQueriesRequest: MessageFns<ListSlowQueriesRequest> = {- encode(message: ListSlowQueriesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+export const ListSecretsRequest: MessageFns<ListSecretsRequest> = {+ encode(message: ListSecretsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {if (message.parent !== "") {writer.uint32(10).string(message.parent);}- if (message.filter !== "") {- writer.uint32(18).string(message.filter);+ if (message.pageSize !== 0) {+ writer.uint32(16).int32(message.pageSize);}- if (message.orderBy !== "") {- writer.uint32(26).string(message.orderBy);+ if (message.pageToken !== "") {+ writer.uint32(26).string(message.pageToken);}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ListSlowQueriesRequest {+ decode(input: BinaryReader | Uint8Array, length?: number): ListSecretsRequest {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListSlowQueriesRequest();+ const message = createBaseListSecretsRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -7573,11 +7443,11 @@ export const ListSlowQueriesRequest: MessageFns<ListSlowQueriesRequest> = {continue;}case 2: {- if (tag !== 18) {+ if (tag !== 16) {break;}- message.filter = reader.string();+ message.pageSize = reader.int32();continue;}case 3: {@@ -7585,7 +7455,7 @@ export const ListSlowQueriesRequest: MessageFns<ListSlowQueriesRequest> = {break;}- message.orderBy = reader.string();+ message.pageToken = reader.string();continue;}}@@ -7597,56 +7467,59 @@ export const ListSlowQueriesRequest: MessageFns<ListSlowQueriesRequest> = {return message;},- fromJSON(object: any): ListSlowQueriesRequest {+ fromJSON(object: any): ListSecretsRequest {return {parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- filter: isSet(object.filter) ? globalThis.String(object.filter) : "",- orderBy: isSet(object.orderBy) ? globalThis.String(object.orderBy) : "",+ pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,+ pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",};},- toJSON(message: ListSlowQueriesRequest): unknown {+ toJSON(message: ListSecretsRequest): unknown {const obj: any = {};if (message.parent !== "") {obj.parent = message.parent;}- if (message.filter !== "") {- obj.filter = message.filter;+ if (message.pageSize !== 0) {+ obj.pageSize = Math.round(message.pageSize);}- if (message.orderBy !== "") {- obj.orderBy = message.orderBy;+ if (message.pageToken !== "") {+ obj.pageToken = message.pageToken;}return obj;},- create(base?: DeepPartial<ListSlowQueriesRequest>): ListSlowQueriesRequest {- return ListSlowQueriesRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<ListSecretsRequest>): ListSecretsRequest {+ return ListSecretsRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListSlowQueriesRequest>): ListSlowQueriesRequest {- const message = createBaseListSlowQueriesRequest();+ fromPartial(object: DeepPartial<ListSecretsRequest>): ListSecretsRequest {+ const message = createBaseListSecretsRequest();message.parent = object.parent ?? "";- message.filter = object.filter ?? "";- message.orderBy = object.orderBy ?? "";+ message.pageSize = object.pageSize ?? 0;+ message.pageToken = object.pageToken ?? "";return message;},};-function createBaseListSlowQueriesResponse(): ListSlowQueriesResponse {- return { slowQueryLogs: [] };+function createBaseListSecretsResponse(): ListSecretsResponse {+ return { secrets: [], nextPageToken: "" };}-export const ListSlowQueriesResponse: MessageFns<ListSlowQueriesResponse> = {- encode(message: ListSlowQueriesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- for (const v of message.slowQueryLogs) {- SlowQueryLog.encode(v!, writer.uint32(10).fork()).join();+export const ListSecretsResponse: MessageFns<ListSecretsResponse> = {+ encode(message: ListSecretsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ for (const v of message.secrets) {+ Secret.encode(v!, writer.uint32(10).fork()).join();+ }+ if (message.nextPageToken !== "") {+ writer.uint32(18).string(message.nextPageToken);}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ListSlowQueriesResponse {+ decode(input: BinaryReader | Uint8Array, length?: number): ListSecretsResponse {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListSlowQueriesResponse();+ const message = createBaseListSecretsResponse();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -7655,7 +7528,15 @@ export const ListSlowQueriesResponse: MessageFns<ListSlowQueriesResponse> = {break;}- message.slowQueryLogs.push(SlowQueryLog.decode(reader, reader.uint32()));+ message.secrets.push(Secret.decode(reader, reader.uint32()));+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.nextPageToken = reader.string();continue;}}@@ -7667,54 +7548,57 @@ export const ListSlowQueriesResponse: MessageFns<ListSlowQueriesResponse> = {return message;},- fromJSON(object: any): ListSlowQueriesResponse {+ fromJSON(object: any): ListSecretsResponse {return {- slowQueryLogs: globalThis.Array.isArray(object?.slowQueryLogs)- ? object.slowQueryLogs.map((e: any) => SlowQueryLog.fromJSON(e))- : [],+ secrets: globalThis.Array.isArray(object?.secrets) ? object.secrets.map((e: any) => Secret.fromJSON(e)) : [],+ nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",};},- toJSON(message: ListSlowQueriesResponse): unknown {+ toJSON(message: ListSecretsResponse): unknown {const obj: any = {};- if (message.slowQueryLogs?.length) {- obj.slowQueryLogs = message.slowQueryLogs.map((e) => SlowQueryLog.toJSON(e));+ if (message.secrets?.length) {+ obj.secrets = message.secrets.map((e) => Secret.toJSON(e));+ }+ if (message.nextPageToken !== "") {+ obj.nextPageToken = message.nextPageToken;}return obj;},- create(base?: DeepPartial<ListSlowQueriesResponse>): ListSlowQueriesResponse {- return ListSlowQueriesResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<ListSecretsResponse>): ListSecretsResponse {+ return ListSecretsResponse.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListSlowQueriesResponse>): ListSlowQueriesResponse {- const message = createBaseListSlowQueriesResponse();- message.slowQueryLogs = object.slowQueryLogs?.map((e) => SlowQueryLog.fromPartial(e)) || [];+ fromPartial(object: DeepPartial<ListSecretsResponse>): ListSecretsResponse {+ const message = createBaseListSecretsResponse();+ message.secrets = object.secrets?.map((e) => Secret.fromPartial(e)) || [];+ message.nextPageToken = object.nextPageToken ?? "";return message;},};-function createBaseSlowQueryLog(): SlowQueryLog {- return { resource: "", project: "", statistics: undefined };+function createBaseUpdateSecretRequest(): UpdateSecretRequest {+ return { secret: undefined, updateMask: undefined, allowMissing: false };}-export const SlowQueryLog: MessageFns<SlowQueryLog> = {- encode(message: SlowQueryLog, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.resource !== "") {- writer.uint32(10).string(message.resource);+export const UpdateSecretRequest: MessageFns<UpdateSecretRequest> = {+ encode(message: UpdateSecretRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.secret !== undefined) {+ Secret.encode(message.secret, writer.uint32(10).fork()).join();}- if (message.project !== "") {- writer.uint32(18).string(message.project);+ if (message.updateMask !== undefined) {+ FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).join();}- if (message.statistics !== undefined) {- SlowQueryStatistics.encode(message.statistics, writer.uint32(26).fork()).join();+ if (message.allowMissing !== false) {+ writer.uint32(24).bool(message.allowMissing);}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): SlowQueryLog {+ decode(input: BinaryReader | Uint8Array, length?: number): UpdateSecretRequest {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSlowQueryLog();+ const message = createBaseUpdateSecretRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -7723,7 +7607,7 @@ export const SlowQueryLog: MessageFns<SlowQueryLog> = {break;}- message.resource = reader.string();+ message.secret = Secret.decode(reader, reader.uint32());continue;}case 2: {@@ -7731,15 +7615,15 @@ export const SlowQueryLog: MessageFns<SlowQueryLog> = {break;}- message.project = reader.string();+ message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));continue;}case 3: {- if (tag !== 26) {+ if (tag !== 24) {break;}- message.statistics = SlowQueryStatistics.decode(reader, reader.uint32());+ message.allowMissing = reader.bool();continue;}}@@ -7751,104 +7635,128 @@ export const SlowQueryLog: MessageFns<SlowQueryLog> = {return message;},- fromJSON(object: any): SlowQueryLog {+ fromJSON(object: any): UpdateSecretRequest {return {- resource: isSet(object.resource) ? globalThis.String(object.resource) : "",- project: isSet(object.project) ? globalThis.String(object.project) : "",- statistics: isSet(object.statistics) ? SlowQueryStatistics.fromJSON(object.statistics) : undefined,+ secret: isSet(object.secret) ? Secret.fromJSON(object.secret) : undefined,+ updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,+ allowMissing: isSet(object.allowMissing) ? globalThis.Boolean(object.allowMissing) : false,};},- toJSON(message: SlowQueryLog): unknown {+ toJSON(message: UpdateSecretRequest): unknown {const obj: any = {};- if (message.resource !== "") {- obj.resource = message.resource;+ if (message.secret !== undefined) {+ obj.secret = Secret.toJSON(message.secret);}- if (message.project !== "") {- obj.project = message.project;+ if (message.updateMask !== undefined) {+ obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask));}- if (message.statistics !== undefined) {- obj.statistics = SlowQueryStatistics.toJSON(message.statistics);+ if (message.allowMissing !== false) {+ obj.allowMissing = message.allowMissing;}return obj;},- create(base?: DeepPartial<SlowQueryLog>): SlowQueryLog {- return SlowQueryLog.fromPartial(base ?? {});+ create(base?: DeepPartial<UpdateSecretRequest>): UpdateSecretRequest {+ return UpdateSecretRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<SlowQueryLog>): SlowQueryLog {- const message = createBaseSlowQueryLog();- message.resource = object.resource ?? "";- message.project = object.project ?? "";- message.statistics = (object.statistics !== undefined && object.statistics !== null)- ? SlowQueryStatistics.fromPartial(object.statistics)+ fromPartial(object: DeepPartial<UpdateSecretRequest>): UpdateSecretRequest {+ const message = createBaseUpdateSecretRequest();+ message.secret = (object.secret !== undefined && object.secret !== null)+ ? Secret.fromPartial(object.secret): undefined;+ message.updateMask = object.updateMask ?? undefined;+ message.allowMissing = object.allowMissing ?? false;return message;},};-function createBaseSlowQueryStatistics(): SlowQueryStatistics {- return {- sqlFingerprint: "",- count: Long.ZERO,- latestLogTime: undefined,- averageQueryTime: undefined,- maximumQueryTime: undefined,- averageRowsSent: Long.ZERO,- maximumRowsSent: Long.ZERO,- averageRowsExamined: Long.ZERO,- maximumRowsExamined: Long.ZERO,- queryTimePercent: 0,- countPercent: 0,- samples: [],- };+function createBaseDeleteSecretRequest(): DeleteSecretRequest {+ return { name: "" };}-export const SlowQueryStatistics: MessageFns<SlowQueryStatistics> = {- encode(message: SlowQueryStatistics, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.sqlFingerprint !== "") {- writer.uint32(10).string(message.sqlFingerprint);- }- if (!message.count.equals(Long.ZERO)) {- writer.uint32(16).int64(message.count.toString());- }- if (message.latestLogTime !== undefined) {- Timestamp.encode(message.latestLogTime, writer.uint32(26).fork()).join();- }- if (message.averageQueryTime !== undefined) {- Duration.encode(message.averageQueryTime, writer.uint32(34).fork()).join();- }- if (message.maximumQueryTime !== undefined) {- Duration.encode(message.maximumQueryTime, writer.uint32(42).fork()).join();+export const DeleteSecretRequest: MessageFns<DeleteSecretRequest> = {+ encode(message: DeleteSecretRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (!message.averageRowsSent.equals(Long.ZERO)) {- writer.uint32(48).int64(message.averageRowsSent.toString());+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): DeleteSecretRequest {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDeleteSecretRequest();+ 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.skip(tag & 7);}- if (!message.maximumRowsSent.equals(Long.ZERO)) {- writer.uint32(56).int64(message.maximumRowsSent.toString());+ return message;+ },++ fromJSON(object: any): DeleteSecretRequest {+ return { name: isSet(object.name) ? globalThis.String(object.name) : "" };+ },++ toJSON(message: DeleteSecretRequest): unknown {+ const obj: any = {};+ if (message.name !== "") {+ obj.name = message.name;}- if (!message.averageRowsExamined.equals(Long.ZERO)) {- writer.uint32(64).int64(message.averageRowsExamined.toString());+ return obj;+ },++ create(base?: DeepPartial<DeleteSecretRequest>): DeleteSecretRequest {+ return DeleteSecretRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<DeleteSecretRequest>): DeleteSecretRequest {+ const message = createBaseDeleteSecretRequest();+ message.name = object.name ?? "";+ return message;+ },+};++function createBaseSecret(): Secret {+ return { name: "", createdTime: undefined, updatedTime: undefined, value: "", description: "" };+}++export const Secret: MessageFns<Secret> = {+ encode(message: Secret, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (!message.maximumRowsExamined.equals(Long.ZERO)) {- writer.uint32(72).int64(message.maximumRowsExamined.toString());+ if (message.createdTime !== undefined) {+ Timestamp.encode(message.createdTime, writer.uint32(18).fork()).join();}- if (message.queryTimePercent !== 0) {- writer.uint32(81).double(message.queryTimePercent);+ if (message.updatedTime !== undefined) {+ Timestamp.encode(message.updatedTime, writer.uint32(26).fork()).join();}- if (message.countPercent !== 0) {- writer.uint32(89).double(message.countPercent);+ if (message.value !== "") {+ writer.uint32(34).string(message.value);}- for (const v of message.samples) {- SlowQueryDetails.encode(v!, writer.uint32(98).fork()).join();+ if (message.description !== "") {+ writer.uint32(42).string(message.description);}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): SlowQueryStatistics {+ decode(input: BinaryReader | Uint8Array, length?: number): Secret {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSlowQueryStatistics();+ const message = createBaseSecret();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -7857,15 +7765,15 @@ export const SlowQueryStatistics: MessageFns<SlowQueryStatistics> = {break;}- message.sqlFingerprint = reader.string();+ message.name = reader.string();continue;}case 2: {- if (tag !== 16) {+ if (tag !== 18) {break;}- message.count = Long.fromString(reader.int64().toString());+ message.createdTime = Timestamp.decode(reader, reader.uint32());continue;}case 3: {@@ -7873,7 +7781,7 @@ export const SlowQueryStatistics: MessageFns<SlowQueryStatistics> = {break;}- message.latestLogTime = Timestamp.decode(reader, reader.uint32());+ message.updatedTime = Timestamp.decode(reader, reader.uint32());continue;}case 4: {@@ -7881,7 +7789,7 @@ export const SlowQueryStatistics: MessageFns<SlowQueryStatistics> = {break;}- message.averageQueryTime = Duration.decode(reader, reader.uint32());+ message.value = reader.string();continue;}case 5: {@@ -7889,938 +7797,62 @@ export const SlowQueryStatistics: MessageFns<SlowQueryStatistics> = {break;}- message.maximumQueryTime = Duration.decode(reader, reader.uint32());- continue;- }- case 6: {- if (tag !== 48) {- break;- }-- message.averageRowsSent = Long.fromString(reader.int64().toString());+ message.description = reader.string();continue;}- case 7: {- if (tag !== 56) {- break;- }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },- message.maximumRowsSent = Long.fromString(reader.int64().toString());- continue;- }- case 8: {- if (tag !== 64) {- break;- }-- message.averageRowsExamined = Long.fromString(reader.int64().toString());- continue;- }- case 9: {- if (tag !== 72) {- break;- }-- message.maximumRowsExamined = Long.fromString(reader.int64().toString());- continue;- }- case 10: {- if (tag !== 81) {- break;- }-- message.queryTimePercent = reader.double();- continue;- }- case 11: {- if (tag !== 89) {- break;- }-- message.countPercent = reader.double();- continue;- }- case 12: {- if (tag !== 98) {- break;- }-- message.samples.push(SlowQueryDetails.decode(reader, reader.uint32()));- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): SlowQueryStatistics {- return {- sqlFingerprint: isSet(object.sqlFingerprint) ? globalThis.String(object.sqlFingerprint) : "",- count: isSet(object.count) ? Long.fromValue(object.count) : Long.ZERO,- latestLogTime: isSet(object.latestLogTime) ? fromJsonTimestamp(object.latestLogTime) : undefined,- averageQueryTime: isSet(object.averageQueryTime) ? Duration.fromJSON(object.averageQueryTime) : undefined,- maximumQueryTime: isSet(object.maximumQueryTime) ? Duration.fromJSON(object.maximumQueryTime) : undefined,- averageRowsSent: isSet(object.averageRowsSent) ? Long.fromValue(object.averageRowsSent) : Long.ZERO,- maximumRowsSent: isSet(object.maximumRowsSent) ? Long.fromValue(object.maximumRowsSent) : Long.ZERO,- averageRowsExamined: isSet(object.averageRowsExamined) ? Long.fromValue(object.averageRowsExamined) : Long.ZERO,- maximumRowsExamined: isSet(object.maximumRowsExamined) ? Long.fromValue(object.maximumRowsExamined) : Long.ZERO,- queryTimePercent: isSet(object.queryTimePercent) ? globalThis.Number(object.queryTimePercent) : 0,- countPercent: isSet(object.countPercent) ? globalThis.Number(object.countPercent) : 0,- samples: globalThis.Array.isArray(object?.samples)- ? object.samples.map((e: any) => SlowQueryDetails.fromJSON(e))- : [],- };- },-- toJSON(message: SlowQueryStatistics): unknown {- const obj: any = {};- if (message.sqlFingerprint !== "") {- obj.sqlFingerprint = message.sqlFingerprint;- }- if (!message.count.equals(Long.ZERO)) {- obj.count = (message.count || Long.ZERO).toString();- }- if (message.latestLogTime !== undefined) {- obj.latestLogTime = fromTimestamp(message.latestLogTime).toISOString();- }- if (message.averageQueryTime !== undefined) {- obj.averageQueryTime = Duration.toJSON(message.averageQueryTime);- }- if (message.maximumQueryTime !== undefined) {- obj.maximumQueryTime = Duration.toJSON(message.maximumQueryTime);- }- if (!message.averageRowsSent.equals(Long.ZERO)) {- obj.averageRowsSent = (message.averageRowsSent || Long.ZERO).toString();- }- if (!message.maximumRowsSent.equals(Long.ZERO)) {- obj.maximumRowsSent = (message.maximumRowsSent || Long.ZERO).toString();- }- if (!message.averageRowsExamined.equals(Long.ZERO)) {- obj.averageRowsExamined = (message.averageRowsExamined || Long.ZERO).toString();- }- if (!message.maximumRowsExamined.equals(Long.ZERO)) {- obj.maximumRowsExamined = (message.maximumRowsExamined || Long.ZERO).toString();- }- if (message.queryTimePercent !== 0) {- obj.queryTimePercent = message.queryTimePercent;- }- if (message.countPercent !== 0) {- obj.countPercent = message.countPercent;- }- if (message.samples?.length) {- obj.samples = message.samples.map((e) => SlowQueryDetails.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<SlowQueryStatistics>): SlowQueryStatistics {- return SlowQueryStatistics.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SlowQueryStatistics>): SlowQueryStatistics {- const message = createBaseSlowQueryStatistics();- message.sqlFingerprint = object.sqlFingerprint ?? "";- message.count = (object.count !== undefined && object.count !== null) ? Long.fromValue(object.count) : Long.ZERO;- message.latestLogTime = (object.latestLogTime !== undefined && object.latestLogTime !== null)- ? Timestamp.fromPartial(object.latestLogTime)- : undefined;- message.averageQueryTime = (object.averageQueryTime !== undefined && object.averageQueryTime !== null)- ? Duration.fromPartial(object.averageQueryTime)- : undefined;- message.maximumQueryTime = (object.maximumQueryTime !== undefined && object.maximumQueryTime !== null)- ? Duration.fromPartial(object.maximumQueryTime)- : undefined;- message.averageRowsSent = (object.averageRowsSent !== undefined && object.averageRowsSent !== null)- ? Long.fromValue(object.averageRowsSent)- : Long.ZERO;- message.maximumRowsSent = (object.maximumRowsSent !== undefined && object.maximumRowsSent !== null)- ? Long.fromValue(object.maximumRowsSent)- : Long.ZERO;- message.averageRowsExamined = (object.averageRowsExamined !== undefined && object.averageRowsExamined !== null)- ? Long.fromValue(object.averageRowsExamined)- : Long.ZERO;- message.maximumRowsExamined = (object.maximumRowsExamined !== undefined && object.maximumRowsExamined !== null)- ? Long.fromValue(object.maximumRowsExamined)- : Long.ZERO;- message.queryTimePercent = object.queryTimePercent ?? 0;- message.countPercent = object.countPercent ?? 0;- message.samples = object.samples?.map((e) => SlowQueryDetails.fromPartial(e)) || [];- return message;- },-};--function createBaseSlowQueryDetails(): SlowQueryDetails {- return {- startTime: undefined,- queryTime: undefined,- lockTime: undefined,- rowsSent: Long.ZERO,- rowsExamined: Long.ZERO,- sqlText: "",- };-}--export const SlowQueryDetails: MessageFns<SlowQueryDetails> = {- encode(message: SlowQueryDetails, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.startTime !== undefined) {- Timestamp.encode(message.startTime, writer.uint32(10).fork()).join();- }- if (message.queryTime !== undefined) {- Duration.encode(message.queryTime, writer.uint32(18).fork()).join();- }- if (message.lockTime !== undefined) {- Duration.encode(message.lockTime, writer.uint32(26).fork()).join();- }- if (!message.rowsSent.equals(Long.ZERO)) {- writer.uint32(32).int64(message.rowsSent.toString());- }- if (!message.rowsExamined.equals(Long.ZERO)) {- writer.uint32(40).int64(message.rowsExamined.toString());- }- if (message.sqlText !== "") {- writer.uint32(50).string(message.sqlText);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): SlowQueryDetails {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSlowQueryDetails();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.startTime = Timestamp.decode(reader, reader.uint32());- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.queryTime = Duration.decode(reader, reader.uint32());- continue;- }- case 3: {- if (tag !== 26) {- break;- }-- message.lockTime = Duration.decode(reader, reader.uint32());- continue;- }- case 4: {- if (tag !== 32) {- break;- }-- message.rowsSent = Long.fromString(reader.int64().toString());- continue;- }- case 5: {- if (tag !== 40) {- break;- }-- message.rowsExamined = Long.fromString(reader.int64().toString());- continue;- }- case 6: {- if (tag !== 50) {- break;- }-- message.sqlText = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): SlowQueryDetails {- return {- startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : undefined,- queryTime: isSet(object.queryTime) ? Duration.fromJSON(object.queryTime) : undefined,- lockTime: isSet(object.lockTime) ? Duration.fromJSON(object.lockTime) : undefined,- rowsSent: isSet(object.rowsSent) ? Long.fromValue(object.rowsSent) : Long.ZERO,- rowsExamined: isSet(object.rowsExamined) ? Long.fromValue(object.rowsExamined) : Long.ZERO,- sqlText: isSet(object.sqlText) ? globalThis.String(object.sqlText) : "",- };- },-- toJSON(message: SlowQueryDetails): unknown {- const obj: any = {};- if (message.startTime !== undefined) {- obj.startTime = fromTimestamp(message.startTime).toISOString();- }- if (message.queryTime !== undefined) {- obj.queryTime = Duration.toJSON(message.queryTime);- }- if (message.lockTime !== undefined) {- obj.lockTime = Duration.toJSON(message.lockTime);- }- if (!message.rowsSent.equals(Long.ZERO)) {- obj.rowsSent = (message.rowsSent || Long.ZERO).toString();- }- if (!message.rowsExamined.equals(Long.ZERO)) {- obj.rowsExamined = (message.rowsExamined || Long.ZERO).toString();- }- if (message.sqlText !== "") {- obj.sqlText = message.sqlText;- }- return obj;- },-- create(base?: DeepPartial<SlowQueryDetails>): SlowQueryDetails {- return SlowQueryDetails.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SlowQueryDetails>): SlowQueryDetails {- const message = createBaseSlowQueryDetails();- message.startTime = (object.startTime !== undefined && object.startTime !== null)- ? Timestamp.fromPartial(object.startTime)- : undefined;- message.queryTime = (object.queryTime !== undefined && object.queryTime !== null)- ? Duration.fromPartial(object.queryTime)- : undefined;- message.lockTime = (object.lockTime !== undefined && object.lockTime !== null)- ? Duration.fromPartial(object.lockTime)- : undefined;- message.rowsSent = (object.rowsSent !== undefined && object.rowsSent !== null)- ? Long.fromValue(object.rowsSent)- : Long.ZERO;- message.rowsExamined = (object.rowsExamined !== undefined && object.rowsExamined !== null)- ? Long.fromValue(object.rowsExamined)- : Long.ZERO;- message.sqlText = object.sqlText ?? "";- return message;- },-};--function createBaseListSecretsRequest(): ListSecretsRequest {- return { parent: "", pageSize: 0, pageToken: "" };-}--export const ListSecretsRequest: MessageFns<ListSecretsRequest> = {- encode(message: ListSecretsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.pageSize !== 0) {- writer.uint32(16).int32(message.pageSize);- }- if (message.pageToken !== "") {- writer.uint32(26).string(message.pageToken);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): ListSecretsRequest {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListSecretsRequest();- 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.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): ListSecretsRequest {- 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: ListSecretsRequest): 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<ListSecretsRequest>): ListSecretsRequest {- return ListSecretsRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ListSecretsRequest>): ListSecretsRequest {- const message = createBaseListSecretsRequest();- message.parent = object.parent ?? "";- message.pageSize = object.pageSize ?? 0;- message.pageToken = object.pageToken ?? "";- return message;- },-};--function createBaseListSecretsResponse(): ListSecretsResponse {- return { secrets: [], nextPageToken: "" };-}--export const ListSecretsResponse: MessageFns<ListSecretsResponse> = {- encode(message: ListSecretsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- for (const v of message.secrets) {- Secret.encode(v!, writer.uint32(10).fork()).join();- }- if (message.nextPageToken !== "") {- writer.uint32(18).string(message.nextPageToken);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): ListSecretsResponse {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListSecretsResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.secrets.push(Secret.decode(reader, reader.uint32()));- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.nextPageToken = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): ListSecretsResponse {- return {- secrets: globalThis.Array.isArray(object?.secrets) ? object.secrets.map((e: any) => Secret.fromJSON(e)) : [],- nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",- };- },-- toJSON(message: ListSecretsResponse): unknown {- const obj: any = {};- if (message.secrets?.length) {- obj.secrets = message.secrets.map((e) => Secret.toJSON(e));- }- if (message.nextPageToken !== "") {- obj.nextPageToken = message.nextPageToken;- }- return obj;- },-- create(base?: DeepPartial<ListSecretsResponse>): ListSecretsResponse {- return ListSecretsResponse.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ListSecretsResponse>): ListSecretsResponse {- const message = createBaseListSecretsResponse();- message.secrets = object.secrets?.map((e) => Secret.fromPartial(e)) || [];- message.nextPageToken = object.nextPageToken ?? "";- return message;- },-};--function createBaseUpdateSecretRequest(): UpdateSecretRequest {- return { secret: undefined, updateMask: undefined, allowMissing: false };-}--export const UpdateSecretRequest: MessageFns<UpdateSecretRequest> = {- encode(message: UpdateSecretRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.secret !== undefined) {- Secret.encode(message.secret, writer.uint32(10).fork()).join();- }- if (message.updateMask !== undefined) {- FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).join();- }- if (message.allowMissing !== false) {- writer.uint32(24).bool(message.allowMissing);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): UpdateSecretRequest {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdateSecretRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.secret = Secret.decode(reader, reader.uint32());- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));- continue;- }- case 3: {- if (tag !== 24) {- break;- }-- message.allowMissing = reader.bool();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): UpdateSecretRequest {- return {- secret: isSet(object.secret) ? Secret.fromJSON(object.secret) : undefined,- updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,- allowMissing: isSet(object.allowMissing) ? globalThis.Boolean(object.allowMissing) : false,- };- },-- toJSON(message: UpdateSecretRequest): unknown {- const obj: any = {};- if (message.secret !== undefined) {- obj.secret = Secret.toJSON(message.secret);- }- if (message.updateMask !== undefined) {- obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask));- }- if (message.allowMissing !== false) {- obj.allowMissing = message.allowMissing;- }- return obj;- },-- create(base?: DeepPartial<UpdateSecretRequest>): UpdateSecretRequest {- return UpdateSecretRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<UpdateSecretRequest>): UpdateSecretRequest {- const message = createBaseUpdateSecretRequest();- message.secret = (object.secret !== undefined && object.secret !== null)- ? Secret.fromPartial(object.secret)- : undefined;- message.updateMask = object.updateMask ?? undefined;- message.allowMissing = object.allowMissing ?? false;- return message;- },-};--function createBaseDeleteSecretRequest(): DeleteSecretRequest {- return { name: "" };-}--export const DeleteSecretRequest: MessageFns<DeleteSecretRequest> = {- encode(message: DeleteSecretRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): DeleteSecretRequest {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDeleteSecretRequest();- 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.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): DeleteSecretRequest {- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };- },-- toJSON(message: DeleteSecretRequest): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- return obj;- },-- create(base?: DeepPartial<DeleteSecretRequest>): DeleteSecretRequest {- return DeleteSecretRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<DeleteSecretRequest>): DeleteSecretRequest {- const message = createBaseDeleteSecretRequest();- message.name = object.name ?? "";- return message;- },-};--function createBaseSecret(): Secret {- return { name: "", createdTime: undefined, updatedTime: undefined, value: "", description: "" };-}--export const Secret: MessageFns<Secret> = {- encode(message: Secret, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.createdTime !== undefined) {- Timestamp.encode(message.createdTime, writer.uint32(18).fork()).join();- }- if (message.updatedTime !== undefined) {- Timestamp.encode(message.updatedTime, writer.uint32(26).fork()).join();- }- if (message.value !== "") {- writer.uint32(34).string(message.value);- }- if (message.description !== "") {- writer.uint32(42).string(message.description);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): Secret {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSecret();- 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.createdTime = Timestamp.decode(reader, reader.uint32());- continue;- }- case 3: {- if (tag !== 26) {- break;- }-- message.updatedTime = Timestamp.decode(reader, reader.uint32());- continue;- }- case 4: {- if (tag !== 34) {- break;- }-- message.value = reader.string();- continue;- }- case 5: {- if (tag !== 42) {- break;- }-- message.description = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): Secret {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- createdTime: isSet(object.createdTime) ? fromJsonTimestamp(object.createdTime) : undefined,- updatedTime: isSet(object.updatedTime) ? fromJsonTimestamp(object.updatedTime) : undefined,- value: isSet(object.value) ? globalThis.String(object.value) : "",- description: isSet(object.description) ? globalThis.String(object.description) : "",- };- },-- toJSON(message: Secret): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.createdTime !== undefined) {- obj.createdTime = fromTimestamp(message.createdTime).toISOString();- }- if (message.updatedTime !== undefined) {- obj.updatedTime = fromTimestamp(message.updatedTime).toISOString();- }- if (message.value !== "") {- obj.value = message.value;- }- if (message.description !== "") {- obj.description = message.description;- }- return obj;- },-- create(base?: DeepPartial<Secret>): Secret {- return Secret.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Secret>): Secret {- const message = createBaseSecret();- message.name = object.name ?? "";- message.createdTime = (object.createdTime !== undefined && object.createdTime !== null)- ? Timestamp.fromPartial(object.createdTime)- : undefined;- message.updatedTime = (object.updatedTime !== undefined && object.updatedTime !== null)- ? Timestamp.fromPartial(object.updatedTime)- : undefined;- message.value = object.value ?? "";- message.description = object.description ?? "";- return message;- },-};--function createBaseAdviseIndexRequest(): AdviseIndexRequest {- return { parent: "", statement: "" };-}--export const AdviseIndexRequest: MessageFns<AdviseIndexRequest> = {- encode(message: AdviseIndexRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.statement !== "") {- writer.uint32(18).string(message.statement);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): AdviseIndexRequest {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseAdviseIndexRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.parent = reader.string();- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.statement = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): AdviseIndexRequest {+ fromJSON(object: any): Secret {return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- statement: isSet(object.statement) ? globalThis.String(object.statement) : "",+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ createdTime: isSet(object.createdTime) ? fromJsonTimestamp(object.createdTime) : undefined,+ updatedTime: isSet(object.updatedTime) ? fromJsonTimestamp(object.updatedTime) : undefined,+ value: isSet(object.value) ? globalThis.String(object.value) : "",+ description: isSet(object.description) ? globalThis.String(object.description) : "",};},- toJSON(message: AdviseIndexRequest): unknown {+ toJSON(message: Secret): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.statement !== "") {- obj.statement = message.statement;- }- return obj;- },-- create(base?: DeepPartial<AdviseIndexRequest>): AdviseIndexRequest {- return AdviseIndexRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<AdviseIndexRequest>): AdviseIndexRequest {- const message = createBaseAdviseIndexRequest();- message.parent = object.parent ?? "";- message.statement = object.statement ?? "";- return message;- },-};--function createBaseAdviseIndexResponse(): AdviseIndexResponse {- return { currentIndex: "", suggestion: "", createIndexStatement: "" };-}--export const AdviseIndexResponse: MessageFns<AdviseIndexResponse> = {- encode(message: AdviseIndexResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.currentIndex !== "") {- writer.uint32(10).string(message.currentIndex);- }- if (message.suggestion !== "") {- writer.uint32(18).string(message.suggestion);- }- if (message.createIndexStatement !== "") {- writer.uint32(26).string(message.createIndexStatement);+ if (message.name !== "") {+ obj.name = message.name;}- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): AdviseIndexResponse {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseAdviseIndexResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.currentIndex = reader.string();- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.suggestion = reader.string();- continue;- }- case 3: {- if (tag !== 26) {- break;- }-- message.createIndexStatement = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);+ if (message.createdTime !== undefined) {+ obj.createdTime = fromTimestamp(message.createdTime).toISOString();}- return message;- },-- fromJSON(object: any): AdviseIndexResponse {- return {- currentIndex: isSet(object.currentIndex) ? globalThis.String(object.currentIndex) : "",- suggestion: isSet(object.suggestion) ? globalThis.String(object.suggestion) : "",- createIndexStatement: isSet(object.createIndexStatement) ? globalThis.String(object.createIndexStatement) : "",- };- },-- toJSON(message: AdviseIndexResponse): unknown {- const obj: any = {};- if (message.currentIndex !== "") {- obj.currentIndex = message.currentIndex;+ if (message.updatedTime !== undefined) {+ obj.updatedTime = fromTimestamp(message.updatedTime).toISOString();}- if (message.suggestion !== "") {- obj.suggestion = message.suggestion;+ if (message.value !== "") {+ obj.value = message.value;}- if (message.createIndexStatement !== "") {- obj.createIndexStatement = message.createIndexStatement;+ if (message.description !== "") {+ obj.description = message.description;}return obj;},- create(base?: DeepPartial<AdviseIndexResponse>): AdviseIndexResponse {- return AdviseIndexResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<Secret>): Secret {+ return Secret.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<AdviseIndexResponse>): AdviseIndexResponse {- const message = createBaseAdviseIndexResponse();- message.currentIndex = object.currentIndex ?? "";- message.suggestion = object.suggestion ?? "";- message.createIndexStatement = object.createIndexStatement ?? "";+ fromPartial(object: DeepPartial<Secret>): Secret {+ const message = createBaseSecret();+ message.name = object.name ?? "";+ message.createdTime = (object.createdTime !== undefined && object.createdTime !== null)+ ? Timestamp.fromPartial(object.createdTime)+ : undefined;+ message.updatedTime = (object.updatedTime !== undefined && object.updatedTime !== null)+ ? Timestamp.fromPartial(object.updatedTime)+ : undefined;+ message.value = object.value ?? "";+ message.description = object.description ?? "";return message;},};@@ -11577,85 +10609,6 @@ export const DatabaseServiceDefinition = {},},},- listSlowQueries: {- name: "ListSlowQueries",- requestType: ListSlowQueriesRequest,- requestStream: false,- responseType: ListSlowQueriesResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],- 800010: [- new Uint8Array([- 19,- 98,- 98,- 46,- 115,- 108,- 111,- 119,- 81,- 117,- 101,- 114,- 105,- 101,- 115,- 46,- 108,- 105,- 115,- 116,- ]),- ],- 800016: [new Uint8Array([1])],- 578365826: [- new Uint8Array([- 37,- 18,- 35,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- 47,- 115,- 108,- 111,- 119,- 81,- 117,- 101,- 114,- 105,- 101,- 115,- ]),- ],- },- },- },listSecrets: {name: "ListSecrets",requestType: ListSecretsRequest,@@ -11951,103 +10904,6 @@ export const DatabaseServiceDefinition = {},},},- adviseIndex: {- name: "AdviseIndex",- requestType: AdviseIndexRequest,- requestStream: false,- responseType: AdviseIndexResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],- 800010: [- new Uint8Array([- 24,- 98,- 98,- 46,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 115,- 46,- 97,- 100,- 118,- 105,- 115,- 101,- 73,- 110,- 100,- 101,- 120,- ]),- ],- 800016: [new Uint8Array([1])],- 578365826: [- new Uint8Array([- 50,- 34,- 48,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 105,- 110,- 115,- 116,- 97,- 110,- 99,- 101,- 115,- 47,- 42,- 47,- 100,- 97,- 116,- 97,- 98,- 97,- 115,- 101,- 115,- 47,- 42,- 125,- 58,- 97,- 100,- 118,- 105,- 115,- 101,- 73,- 110,- 100,- 101,- 120,- ]),- ],- },- },- },listRevisions: {name: "ListRevisions",requestType: ListRevisionsRequest,diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.tsindex 9a5a81ab1f..25078c4787 100644--- a/frontend/src/types/proto/v1/org_policy_service.ts+++ b/frontend/src/types/proto/v1/org_policy_service.ts@@ -18,7 +18,6 @@ export const protobufPackage = "bytebase.v1";export enum PolicyType {POLICY_TYPE_UNSPECIFIED = "POLICY_TYPE_UNSPECIFIED",ROLLOUT_POLICY = "ROLLOUT_POLICY",- SLOW_QUERY = "SLOW_QUERY",DISABLE_COPY_DATA = "DISABLE_COPY_DATA",MASKING_RULE = "MASKING_RULE",MASKING_EXCEPTION = "MASKING_EXCEPTION",@@ -38,9 +37,6 @@ export function policyTypeFromJSON(object: any): PolicyType {case 11:case "ROLLOUT_POLICY":return PolicyType.ROLLOUT_POLICY;- case 7:- case "SLOW_QUERY":- return PolicyType.SLOW_QUERY;case 8:case "DISABLE_COPY_DATA":return PolicyType.DISABLE_COPY_DATA;@@ -78,8 +74,6 @@ export function policyTypeToJSON(object: PolicyType): string {return "POLICY_TYPE_UNSPECIFIED";case PolicyType.ROLLOUT_POLICY:return "ROLLOUT_POLICY";- case PolicyType.SLOW_QUERY:- return "SLOW_QUERY";case PolicyType.DISABLE_COPY_DATA:return "DISABLE_COPY_DATA";case PolicyType.MASKING_RULE:@@ -108,8 +102,6 @@ export function policyTypeToNumber(object: PolicyType): number {return 0;case PolicyType.ROLLOUT_POLICY:return 11;- case PolicyType.SLOW_QUERY:- return 7;case PolicyType.DISABLE_COPY_DATA:return 8;case PolicyType.MASKING_RULE:@@ -382,7 +374,6 @@ export interface Policy {inheritFromParent: boolean;type: PolicyType;rolloutPolicy?: RolloutPolicy | undefined;- slowQueryPolicy?: SlowQueryPolicy | undefined;disableCopyDataPolicy?: DisableCopyDataPolicy | undefined;maskingRulePolicy?: MaskingRulePolicy | undefined;maskingExceptionPolicy?: MaskingExceptionPolicy | undefined;@@ -406,10 +397,6 @@ export interface RolloutPolicy {issueRoles: string[];}-export interface SlowQueryPolicy {- active: boolean;-}-export interface DisableCopyDataPolicy {active: boolean;}@@ -1112,7 +1099,6 @@ function createBasePolicy(): Policy {inheritFromParent: false,type: PolicyType.POLICY_TYPE_UNSPECIFIED,rolloutPolicy: undefined,- slowQueryPolicy: undefined,disableCopyDataPolicy: undefined,maskingRulePolicy: undefined,maskingExceptionPolicy: undefined,@@ -1140,9 +1126,6 @@ export const Policy: MessageFns<Policy> = {if (message.rolloutPolicy !== undefined) {RolloutPolicy.encode(message.rolloutPolicy, writer.uint32(154).fork()).join();}- if (message.slowQueryPolicy !== undefined) {- SlowQueryPolicy.encode(message.slowQueryPolicy, writer.uint32(98).fork()).join();- }if (message.disableCopyDataPolicy !== undefined) {DisableCopyDataPolicy.encode(message.disableCopyDataPolicy, writer.uint32(130).fork()).join();}@@ -1218,14 +1201,6 @@ export const Policy: MessageFns<Policy> = {message.rolloutPolicy = RolloutPolicy.decode(reader, reader.uint32());continue;}- case 12: {- if (tag !== 98) {- break;- }-- message.slowQueryPolicy = SlowQueryPolicy.decode(reader, reader.uint32());- continue;- }case 16: {if (tag !== 130) {break;@@ -1324,7 +1299,6 @@ export const Policy: MessageFns<Policy> = {inheritFromParent: isSet(object.inheritFromParent) ? globalThis.Boolean(object.inheritFromParent) : false,type: isSet(object.type) ? policyTypeFromJSON(object.type) : PolicyType.POLICY_TYPE_UNSPECIFIED,rolloutPolicy: isSet(object.rolloutPolicy) ? RolloutPolicy.fromJSON(object.rolloutPolicy) : undefined,- slowQueryPolicy: isSet(object.slowQueryPolicy) ? SlowQueryPolicy.fromJSON(object.slowQueryPolicy) : undefined,disableCopyDataPolicy: isSet(object.disableCopyDataPolicy)? DisableCopyDataPolicy.fromJSON(object.disableCopyDataPolicy): undefined,@@ -1364,9 +1338,6 @@ export const Policy: MessageFns<Policy> = {if (message.rolloutPolicy !== undefined) {obj.rolloutPolicy = RolloutPolicy.toJSON(message.rolloutPolicy);}- if (message.slowQueryPolicy !== undefined) {- obj.slowQueryPolicy = SlowQueryPolicy.toJSON(message.slowQueryPolicy);- }if (message.disableCopyDataPolicy !== undefined) {obj.disableCopyDataPolicy = DisableCopyDataPolicy.toJSON(message.disableCopyDataPolicy);}@@ -1413,9 +1384,6 @@ export const Policy: MessageFns<Policy> = {message.rolloutPolicy = (object.rolloutPolicy !== undefined && object.rolloutPolicy !== null)? RolloutPolicy.fromPartial(object.rolloutPolicy): undefined;- message.slowQueryPolicy = (object.slowQueryPolicy !== undefined && object.slowQueryPolicy !== null)- ? SlowQueryPolicy.fromPartial(object.slowQueryPolicy)- : undefined;message.disableCopyDataPolicy =(object.disableCopyDataPolicy !== undefined && object.disableCopyDataPolicy !== null)? DisableCopyDataPolicy.fromPartial(object.disableCopyDataPolicy)@@ -1545,64 +1513,6 @@ export const RolloutPolicy: MessageFns<RolloutPolicy> = {},};-function createBaseSlowQueryPolicy(): SlowQueryPolicy {- return { active: false };-}--export const SlowQueryPolicy: MessageFns<SlowQueryPolicy> = {- encode(message: SlowQueryPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.active !== false) {- writer.uint32(8).bool(message.active);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): SlowQueryPolicy {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSlowQueryPolicy();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 8) {- break;- }-- message.active = reader.bool();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): SlowQueryPolicy {- return { active: isSet(object.active) ? globalThis.Boolean(object.active) : false };- },-- toJSON(message: SlowQueryPolicy): unknown {- const obj: any = {};- if (message.active !== false) {- obj.active = message.active;- }- return obj;- },-- create(base?: DeepPartial<SlowQueryPolicy>): SlowQueryPolicy {- return SlowQueryPolicy.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SlowQueryPolicy>): SlowQueryPolicy {- const message = createBaseSlowQueryPolicy();- message.active = object.active ?? false;- return message;- },-};-function createBaseDisableCopyDataPolicy(): DisableCopyDataPolicy {return { active: false };}diff --git a/frontend/src/utils/useDashboardSidebar.ts b/frontend/src/utils/useDashboardSidebar.tsindex 651f4a6692..370aa21cd6 100644--- a/frontend/src/utils/useDashboardSidebar.ts+++ b/frontend/src/utils/useDashboardSidebar.ts@@ -289,6 +289,7 @@ export const useDashboardSidebar = () => {title: t("settings.sidebar.mail-delivery"),name: WORKSPACE_ROUTE_MAIL_DELIVERY,type: "route",+ hide: true, // TODO: show it until we have a mail delivery requirement.},],},diff --git a/go.mod b/go.modindex 89736abdba..b23317331f 100644--- a/go.mod+++ b/go.mod@@ -73,7 +73,6 @@ require (github.com/pingcap/tidb/pkg/parser v0.0.0-20241125141335-ec8b81b98edcgithub.com/pkg/errors v0.9.1github.com/redis/go-redis/v9 v9.7.1- github.com/sashabaranov/go-openai v1.38.0github.com/segmentio/analytics-go v3.1.0+incompatiblegithub.com/shopspring/decimal v1.4.0github.com/sijms/go-ora/v2 v2.8.24diff --git a/go.sum b/go.sumindex 785aec7924..aefc0e800f 100644--- a/go.sum+++ b/go.sum@@ -1862,8 +1862,6 @@ github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHgithub.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0=github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM=-github.com/sashabaranov/go-openai v1.38.0 h1:hNN5uolKwdbpiqOn7l+Z2alch/0n0rSFyg4n+GZxR5k=-github.com/sashabaranov/go-openai v1.38.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g=github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw=diff --git a/proto/gen/grpc-doc/favicon.png b/proto/gen/grpc-doc/favicon.pngdeleted file mode 100644index d7e08acf4b..0000000000Binary files a/proto/gen/grpc-doc/favicon.png and /dev/null differdiff --git a/proto/gen/grpc-doc/index.html b/proto/gen/grpc-doc/index.htmldeleted file mode 100644index d85386bde1..0000000000--- a/proto/gen/grpc-doc/index.html+++ /dev/null@@ -1,33 +0,0 @@-<!doctype html>-<html>- <head>- <title>Bytebase API Reference</title>- <link rel="icon" href="favicon.png" type="image/x-icon">- <meta charset="utf-8" />- <meta- name="viewport"- content="width=device-width, initial-scale=1" />- </head>- <body>- <script- id="api-reference"- data-url="https://raw.githubusercontent.com/bytebase/bytebase/main/proto/gen/grpc-doc/openapi.yaml"></script>- <script>- var configuration = {- theme: 'moon',- metaData: {- title: 'Bytebase API Reference',- description: 'Bytebase API Reference',- ogDescription: 'Bytebase API Reference',- ogTitle: 'Bytebase API Reference',- ogImage: 'https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/banner.webp',- twitterCard: 'summary_large_image',- }- }-- var apiReference = document.getElementById('api-reference')- apiReference.dataset.configuration = JSON.stringify(configuration)- </script>- <script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>- </body>-</html>\ No newline at end of filediff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex c2b449c991..7ef032e2f6 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -440,7 +440,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -508,7 +507,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -1730,7 +1728,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -1804,7 +1801,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -2351,42 +2347,6 @@ paths:application/json:schema:$ref: '#/components/schemas/Status'- /v1/instances/{instance}/databases/{database}:adviseIndex:- post:- tags:- - DatabaseService- operationId: DatabaseService_AdviseIndex- parameters:- - name: instance- in: path- description: The instance id.- required: true- schema:- type: string- - name: database- in: path- description: The database id.- required: true- schema:- type: string- - name: statement- in: query- description: The statement to be advised.- schema:- type: string- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: '#/components/schemas/AdviseIndexResponse'- default:- description: Default error response- content:- application/json:- schema:- $ref: '#/components/schemas/Status'/v1/instances/{instance}/databases/{database}:diffSchema:post:tags:@@ -2584,7 +2544,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -2652,7 +2611,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -3191,7 +3149,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -3263,7 +3220,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -4951,7 +4907,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -5019,7 +4974,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -6080,59 +6034,6 @@ paths:application/json:schema:$ref: '#/components/schemas/Status'- /v1/projects/{project}/slowQueries:- get:- tags:- - DatabaseService- operationId: DatabaseService_ListSlowQueries- parameters:- - name: project- in: path- description: The project id.- required: true- schema:- type: string- - name: filter- in: query- description: |-- The filter of the slow query log.- follow the- [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form)- syntax. Support filter by database and start_time in SlowQueryDetails for- now. For example: Search the slow query log of the specific database:- - the specific database: database =- "instances/{instance}/databases/{database}"- Search the slow query log that start_time after 2022-01-01T12:00:00.000Z:- - start_time > "2022-01-01T12:00:00.000Z"- - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339).- - Currently we only support filtering down to date granularity.- schema:- type: string- - name: orderBy- in: query- description: |-- The order by of the slow query log.- Support order by count, latest_log_time, average_query_time,- maximum_query_time, average_rows_sent, maximum_rows_sent,- average_rows_examined, maximum_rows_examined for now. For example:- - order by count: order_by = "count"- - order by latest_log_time desc: order_by = "latest_log_time desc"- Default: order by average_query_time desc.- schema:- type: string- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: '#/components/schemas/ListSlowQueriesResponse'- default:- description: Default error response- content:- application/json:- schema:- $ref: '#/components/schemas/Status'/v1/projects/{project}/webhooks/{webhook}:removeWebhook:post:tags:@@ -7966,19 +7867,6 @@ components:description: 1-based positions of the sql statment.endPosition:$ref: '#/components/schemas/Position'- AdviseIndexResponse:- type: object- properties:- currentIndex:- type: string- description: The current index of the statement used.- suggestion:- type: string- description: The suggested index of the statement.- createIndexStatement:- type: string- description: The create index statement of the suggested index.- description: AdviseIndexResponse is the response of advising index.AgentPluginSetting:type: objectproperties:@@ -10697,15 +10585,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.- ListSlowQueriesResponse:- type: object- properties:- slowQueryLogs:- type: array- items:- $ref: '#/components/schemas/SlowQueryLog'- description: The slow query logs.- description: ListSlowQueriesResponse is the response of listing slow query.ListTaskRunsResponse:type: objectproperties:@@ -11272,7 +11151,6 @@ components:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SLOW_QUERY- DISABLE_COPY_DATA- MASKING_RULE- MASKING_EXCEPTION@@ -11285,8 +11163,6 @@ components:format: enumrolloutPolicy:$ref: '#/components/schemas/RolloutPolicy'- slowQueryPolicy:- $ref: '#/components/schemas/SlowQueryPolicy'disableCopyDataPolicy:$ref: '#/components/schemas/DisableCopyDataPolicy'maskingRulePolicy:@@ -12973,105 +12849,6 @@ components:items:$ref: '#/components/schemas/SheetCommand'description: The start and end position of each command in the sheet statement.- SlowQueryDetails:- type: object- properties:- startTime:- type: string- description: The start time of the slow query log.- format: date-time- queryTime:- pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$- type: string- description: The query time of the slow query log.- lockTime:- pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$- type: string- description: The lock time of the slow query log.- rowsSent:- type: string- description: The rows sent of the slow query log.- rowsExamined:- type: string- description: The rows examined of the slow query log.- sqlText:- type: string- description: The sql text of the slow query log.- description: SlowQueryDetails is the details of the slow query log.- SlowQueryLog:- required:- - resource- type: object- properties:- resource:- type: string- description: |-- The resource of the slow query log.- The format is "instances/{instance}/databases/{database}".- project:- type: string- description: |-- The project of the slow query log.- The format is "projects/{project}".- statistics:- allOf:- - $ref: '#/components/schemas/SlowQueryStatistics'- description: The statistics of the slow query log.- description: SlowQueryLog is the slow query log.- SlowQueryPolicy:- type: object- properties:- active:- type: boolean- SlowQueryStatistics:- type: object- properties:- sqlFingerprint:- type: string- description: The fingerprint of the slow query log.- count:- type: string- description: The count of the slow query log.- latestLogTime:- type: string- description: The latest log time of the slow query log.- format: date-time- averageQueryTime:- pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$- type: string- description: The average query time of the slow query log.- maximumQueryTime:- pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$- type: string- description: The maximum query time of the slow query log.- averageRowsSent:- type: string- description: The average rows sent of the slow query log.- maximumRowsSent:- type: string- description: The maximum rows sent of the slow query log.- averageRowsExamined:- type: string- description: The average rows examined of the slow query log.- maximumRowsExamined:- type: string- description: The maximum rows examined of the slow query log.- queryTimePercent:- type: number- description: The percentage of the query time.- format: double- countPercent:- type: number- description: The percentage of the count.- format: double- samples:- type: array- items:- $ref: '#/components/schemas/SlowQueryDetails'- description: |-- Samples are details of the sample slow query logs with the same- fingerprint.- description: SlowQueryStatistics is the statistics of the slow query log.Stage:type: objectproperties:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex dd3c40d848..8a5cf91ea0 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -225,7 +225,6 @@- [RestrictIssueCreationForSQLReviewPolicy](#bytebase-store-RestrictIssueCreationForSQLReviewPolicy)- [RolloutPolicy](#bytebase-store-RolloutPolicy)- [SQLReviewRule](#bytebase-store-SQLReviewRule)- - [SlowQueryPolicy](#bytebase-store-SlowQueryPolicy)- [TagPolicy](#bytebase-store-TagPolicy)- [TagPolicy.TagsEntry](#bytebase-store-TagPolicy-TagsEntry)@@ -304,11 +303,6 @@- [SheetCommand](#bytebase-store-SheetCommand)- [SheetPayload](#bytebase-store-SheetPayload)-- [store/slow_query.proto](#store_slow_query-proto)- - [SlowQueryDetails](#bytebase-store-SlowQueryDetails)- - [SlowQueryStatistics](#bytebase-store-SlowQueryStatistics)- - [SlowQueryStatisticsItem](#bytebase-store-SlowQueryStatisticsItem)-- [store/task.proto](#store_task-proto)- [TaskPayload](#bytebase-store-TaskPayload)- [TaskPayload.FlagsEntry](#bytebase-store-TaskPayload-FlagsEntry)@@ -3670,21 +3664,6 @@ RestrictIssueCreationForSQLReviewPolicy is the policy configuration for restrict-<a name="bytebase-store-SlowQueryPolicy"></a>--### SlowQueryPolicy-SlowQueryPolicy is the policy configuration for slow query.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| active | [bool](#bool) | | |------<a name="bytebase-store-TagPolicy"></a>### TagPolicy@@ -4763,81 +4742,6 @@ We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.-<a name="store_slow_query-proto"></a>-<p align="right"><a href="#top">Top</a></p>--## store/slow_query.proto----<a name="bytebase-store-SlowQueryDetails"></a>--### SlowQueryDetails-SlowQueryDetails is the details of a slow query.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | start_time is the start time of the slow query. |-| query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | query_time is the query time of the slow query. |-| lock_time | [google.protobuf.Duration](#google-protobuf-Duration) | | lock_time is the lock time of the slow query. |-| rows_sent | [int64](#int64) | | rows_sent is the number of rows sent by the slow query. |-| rows_examined | [int64](#int64) | | rows_examined is the number of rows examined by the slow query. |-| sql_text | [string](#string) | | sql_text is the SQL text of the slow query. |-------<a name="bytebase-store-SlowQueryStatistics"></a>--### SlowQueryStatistics-SlowQueryStatistics is the slow query statistics.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| items | [SlowQueryStatisticsItem](#bytebase-store-SlowQueryStatisticsItem) | repeated | Items is the list of slow query statistics. |-------<a name="bytebase-store-SlowQueryStatisticsItem"></a>--### SlowQueryStatisticsItem-SlowQueryStatisticsItem is the item of slow query statistics.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| sql_fingerprint | [string](#string) | | sql_fingerprint is the fingerprint of the slow query. |-| count | [int64](#int64) | | count is the number of slow queries with the same fingerprint. |-| latest_log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | latest_log_time is the time of the latest slow query with the same fingerprint. |-| total_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The total query time of the slow query log. |-| maximum_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The maximum query time of the slow query log. |-| total_rows_sent | [int64](#int64) | | The total rows sent of the slow query log. |-| maximum_rows_sent | [int64](#int64) | | The maximum rows sent of the slow query log. |-| total_rows_examined | [int64](#int64) | | The total rows examined of the slow query log. |-| maximum_rows_examined | [int64](#int64) | | The maximum rows examined of the slow query log. |-| samples | [SlowQueryDetails](#bytebase-store-SlowQueryDetails) | repeated | samples are the details of the sample slow queries with the same fingerprint. |---------------<a name="store_task-proto"></a><p align="right"><a href="#top">Top</a></p>diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 61e4bee583..2e80a2fd8e 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -1077,10 +1077,6 @@<a href="#bytebase.store.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a></li>- <li>- <a href="#bytebase.store.SlowQueryPolicy"><span class="badge">M</span>SlowQueryPolicy</a>- </li>-<li><a href="#bytebase.store.TagPolicy"><span class="badge">M</span>TagPolicy</a></li>@@ -1407,29 +1403,6 @@- </ul>- </li>--- <li>- <a href="#store%2fslow_query.proto">store/slow_query.proto</a>- <ul>-- <li>- <a href="#bytebase.store.SlowQueryDetails"><span class="badge">M</span>SlowQueryDetails</a>- </li>-- <li>- <a href="#bytebase.store.SlowQueryStatistics"><span class="badge">M</span>SlowQueryStatistics</a>- </li>-- <li>- <a href="#bytebase.store.SlowQueryStatisticsItem"><span class="badge">M</span>SlowQueryStatisticsItem</a>- </li>----</ul></li>@@ -9734,30 +9707,6 @@ roles/CREATOR </p></td>- <h3 id="bytebase.store.SlowQueryPolicy">SlowQueryPolicy</h3>- <p>SlowQueryPolicy is the policy configuration for slow query.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>active</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.store.TagPolicy">TagPolicy</h3><p></p>@@ -12047,190 +11996,6 @@ Default to this mode.</p></td>- <div class="file-heading">- <h2 id="store/slow_query.proto">store/slow_query.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.store.SlowQueryDetails">SlowQueryDetails</h3>- <p>SlowQueryDetails is the details of a slow query.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>start_time is the start time of the slow query. </p></td>- </tr>-- <tr>- <td>query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>query_time is the query time of the slow query. </p></td>- </tr>-- <tr>- <td>lock_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>lock_time is the lock time of the slow query. </p></td>- </tr>-- <tr>- <td>rows_sent</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>rows_sent is the number of rows sent by the slow query. </p></td>- </tr>-- <tr>- <td>rows_examined</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>rows_examined is the number of rows examined by the slow query. </p></td>- </tr>-- <tr>- <td>sql_text</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>sql_text is the SQL text of the slow query. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SlowQueryStatistics">SlowQueryStatistics</h3>- <p>SlowQueryStatistics is the slow query statistics.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>items</td>- <td><a href="#bytebase.store.SlowQueryStatisticsItem">SlowQueryStatisticsItem</a></td>- <td>repeated</td>- <td><p>Items is the list of slow query statistics. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SlowQueryStatisticsItem">SlowQueryStatisticsItem</h3>- <p>SlowQueryStatisticsItem is the item of slow query statistics.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>sql_fingerprint</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>sql_fingerprint is the fingerprint of the slow query. </p></td>- </tr>-- <tr>- <td>count</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>count is the number of slow queries with the same fingerprint. </p></td>- </tr>-- <tr>- <td>latest_log_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>latest_log_time is the time of the latest slow query with the same fingerprint. </p></td>- </tr>-- <tr>- <td>total_query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The total query time of the slow query log. </p></td>- </tr>-- <tr>- <td>maximum_query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The maximum query time of the slow query log. </p></td>- </tr>-- <tr>- <td>total_rows_sent</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The total rows sent of the slow query log. </p></td>- </tr>-- <tr>- <td>maximum_rows_sent</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The maximum rows sent of the slow query log. </p></td>- </tr>-- <tr>- <td>total_rows_examined</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The total rows examined of the slow query log. </p></td>- </tr>-- <tr>- <td>maximum_rows_examined</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The maximum rows examined of the slow query log. </p></td>- </tr>-- <tr>- <td>samples</td>- <td><a href="#bytebase.store.SlowQueryDetails">SlowQueryDetails</a></td>- <td>repeated</td>- <td><p>samples are the details of the sample slow queries with the same fingerprint. </p></td>- </tr>-- </tbody>- </table>-------------<div class="file-heading"><h2 id="store/task.proto">store/task.proto</h2><a href="#title">Top</a></div>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 0f374d1f8a..d04eaa3c8d 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -85,8 +85,6 @@- [InstanceService](#bytebase-v1-InstanceService)- [v1/database_service.proto](#v1_database_service-proto)- - [AdviseIndexRequest](#bytebase-v1-AdviseIndexRequest)- - [AdviseIndexResponse](#bytebase-v1-AdviseIndexResponse)- [BatchUpdateDatabasesRequest](#bytebase-v1-BatchUpdateDatabasesRequest)- [BatchUpdateDatabasesResponse](#bytebase-v1-BatchUpdateDatabasesResponse)- [ChangedResourceDatabase](#bytebase-v1-ChangedResourceDatabase)@@ -133,8 +131,6 @@- [ListRevisionsResponse](#bytebase-v1-ListRevisionsResponse)- [ListSecretsRequest](#bytebase-v1-ListSecretsRequest)- [ListSecretsResponse](#bytebase-v1-ListSecretsResponse)- - [ListSlowQueriesRequest](#bytebase-v1-ListSlowQueriesRequest)- - [ListSlowQueriesResponse](#bytebase-v1-ListSlowQueriesResponse)- [MaterializedViewMetadata](#bytebase-v1-MaterializedViewMetadata)- [PackageMetadata](#bytebase-v1-PackageMetadata)- [ProcedureMetadata](#bytebase-v1-ProcedureMetadata)@@ -142,9 +138,6 @@- [SchemaMetadata](#bytebase-v1-SchemaMetadata)- [Secret](#bytebase-v1-Secret)- [SequenceMetadata](#bytebase-v1-SequenceMetadata)- - [SlowQueryDetails](#bytebase-v1-SlowQueryDetails)- - [SlowQueryLog](#bytebase-v1-SlowQueryLog)- - [SlowQueryStatistics](#bytebase-v1-SlowQueryStatistics)- [StreamMetadata](#bytebase-v1-StreamMetadata)- [SyncDatabaseRequest](#bytebase-v1-SyncDatabaseRequest)- [SyncDatabaseResponse](#bytebase-v1-SyncDatabaseResponse)@@ -449,7 +442,6 @@- [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy)- [RolloutPolicy](#bytebase-v1-RolloutPolicy)- [SQLReviewRule](#bytebase-v1-SQLReviewRule)- - [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy)- [TagPolicy](#bytebase-v1-TagPolicy)- [TagPolicy.TagsEntry](#bytebase-v1-TagPolicy-TagsEntry)- [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest)@@ -1844,39 +1836,6 @@ The instance's `name` field is used to identify the instance to update. Form-<a name="bytebase-v1-AdviseIndexRequest"></a>--### AdviseIndexRequest-AdviseIndexRequest is the request of advising index.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |-| statement | [string](#string) | | The statement to be advised. |-------<a name="bytebase-v1-AdviseIndexResponse"></a>--### AdviseIndexResponse-AdviseIndexResponse is the response of advising index.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| current_index | [string](#string) | | The current index of the statement used. |-| suggestion | [string](#string) | | The suggested index of the statement. |-| create_index_statement | [string](#string) | | The create index statement of the suggested index. |------<a name="bytebase-v1-BatchUpdateDatabasesRequest"></a>### BatchUpdateDatabasesRequest@@ -2716,38 +2675,6 @@ When paginating, all other parameters provided to `ListSecrets` must match the c-<a name="bytebase-v1-ListSlowQueriesRequest"></a>--### ListSlowQueriesRequest-ListSlowQueriesRequest is the request of listing slow query.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project} |-| filter | [string](#string) | | The filter of the slow query log. follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Support filter by database and start_time in SlowQueryDetails for now. For example: Search the slow query log of the specific database: - the specific database: database = "instances/{instance}/databases/{database}" Search the slow query log that start_time after 2022-01-01T12:00:00.000Z: - start_time > "2022-01-01T12:00:00.000Z" - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339). - Currently we only support filtering down to date granularity. |-| order_by | [string](#string) | | The order by of the slow query log. Support order by count, latest_log_time, average_query_time, maximum_query_time, average_rows_sent, maximum_rows_sent, average_rows_examined, maximum_rows_examined for now. For example: - order by count: order_by = "count" - order by latest_log_time desc: order_by = "latest_log_time desc" Default: order by average_query_time desc. |-------<a name="bytebase-v1-ListSlowQueriesResponse"></a>--### ListSlowQueriesResponse-ListSlowQueriesResponse is the response of listing slow query.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| slow_query_logs | [SlowQueryLog](#bytebase-v1-SlowQueryLog) | repeated | The slow query logs. |------<a name="bytebase-v1-MaterializedViewMetadata"></a>### MaterializedViewMetadata@@ -2910,69 +2837,6 @@ Secret is the secret of the database now.-<a name="bytebase-v1-SlowQueryDetails"></a>--### SlowQueryDetails-SlowQueryDetails is the details of the slow query log.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The start time of the slow query log. |-| query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The query time of the slow query log. |-| lock_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The lock time of the slow query log. |-| rows_sent | [int64](#int64) | | The rows sent of the slow query log. |-| rows_examined | [int64](#int64) | | The rows examined of the slow query log. |-| sql_text | [string](#string) | | The sql text of the slow query log. |-------<a name="bytebase-v1-SlowQueryLog"></a>--### SlowQueryLog-SlowQueryLog is the slow query log.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| resource | [string](#string) | | The resource of the slow query log. The format is "instances/{instance}/databases/{database}". |-| project | [string](#string) | | The project of the slow query log. The format is "projects/{project}". |-| statistics | [SlowQueryStatistics](#bytebase-v1-SlowQueryStatistics) | | The statistics of the slow query log. |-------<a name="bytebase-v1-SlowQueryStatistics"></a>--### SlowQueryStatistics-SlowQueryStatistics is the statistics of the slow query log.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| sql_fingerprint | [string](#string) | | The fingerprint of the slow query log. |-| count | [int64](#int64) | | The count of the slow query log. |-| latest_log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest log time of the slow query log. |-| average_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The average query time of the slow query log. |-| maximum_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The maximum query time of the slow query log. |-| average_rows_sent | [int64](#int64) | | The average rows sent of the slow query log. |-| maximum_rows_sent | [int64](#int64) | | The maximum rows sent of the slow query log. |-| average_rows_examined | [int64](#int64) | | The average rows examined of the slow query log. |-| maximum_rows_examined | [int64](#int64) | | The maximum rows examined of the slow query log. |-| query_time_percent | [double](#double) | | The percentage of the query time. |-| count_percent | [double](#double) | | The percentage of the count. |-| samples | [SlowQueryDetails](#bytebase-v1-SlowQueryDetails) | repeated | Samples are details of the sample slow query logs with the same fingerprint. |------<a name="bytebase-v1-StreamMetadata"></a>### StreamMetadata@@ -3364,11 +3228,9 @@ LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)| GetDatabaseMetadata | [GetDatabaseMetadataRequest](#bytebase-v1-GetDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | || GetDatabaseSchema | [GetDatabaseSchemaRequest](#bytebase-v1-GetDatabaseSchemaRequest) | [DatabaseSchema](#bytebase-v1-DatabaseSchema) | || DiffSchema | [DiffSchemaRequest](#bytebase-v1-DiffSchemaRequest) | [DiffSchemaResponse](#bytebase-v1-DiffSchemaResponse) | |-| ListSlowQueries | [ListSlowQueriesRequest](#bytebase-v1-ListSlowQueriesRequest) | [ListSlowQueriesResponse](#bytebase-v1-ListSlowQueriesResponse) | || ListSecrets | [ListSecretsRequest](#bytebase-v1-ListSecretsRequest) | [ListSecretsResponse](#bytebase-v1-ListSecretsResponse) | || UpdateSecret | [UpdateSecretRequest](#bytebase-v1-UpdateSecretRequest) | [Secret](#bytebase-v1-Secret) | || DeleteSecret | [DeleteSecretRequest](#bytebase-v1-DeleteSecretRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| AdviseIndex | [AdviseIndexRequest](#bytebase-v1-AdviseIndexRequest) | [AdviseIndexResponse](#bytebase-v1-AdviseIndexResponse) | || ListRevisions | [ListRevisionsRequest](#bytebase-v1-ListRevisionsRequest) | [ListRevisionsResponse](#bytebase-v1-ListRevisionsResponse) | || GetRevision | [GetRevisionRequest](#bytebase-v1-GetRevisionRequest) | [Revision](#bytebase-v1-Revision) | || CreateRevision | [CreateRevisionRequest](#bytebase-v1-CreateRevisionRequest) | [Revision](#bytebase-v1-Revision) | |@@ -7266,7 +7128,6 @@ MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| inherit_from_parent | [bool](#bool) | | || type | [PolicyType](#bytebase-v1-PolicyType) | | || rollout_policy | [RolloutPolicy](#bytebase-v1-RolloutPolicy) | | |-| slow_query_policy | [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy) | | || disable_copy_data_policy | [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy) | | || masking_rule_policy | [MaskingRulePolicy](#bytebase-v1-MaskingRulePolicy) | | || masking_exception_policy | [MaskingExceptionPolicy](#bytebase-v1-MaskingExceptionPolicy) | | |@@ -7349,21 +7210,6 @@ QueryDataPolicy is the policy configuration for querying data.-<a name="bytebase-v1-SlowQueryPolicy"></a>--### SlowQueryPolicy----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| active | [bool](#bool) | | |------<a name="bytebase-v1-TagPolicy"></a>### TagPolicy@@ -7467,7 +7313,6 @@ The policy's `name` field is used to identify the instance to update. Format| ---- | ------ | ----------- || POLICY_TYPE_UNSPECIFIED | 0 | || ROLLOUT_POLICY | 11 | |-| SLOW_QUERY | 7 | || DISABLE_COPY_DATA | 8 | || MASKING_RULE | 9 | || MASKING_EXCEPTION | 10 | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex a06853dc89..69ec3d39da 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -489,14 +489,6 @@<a href="#v1%2fdatabase_service.proto">v1/database_service.proto</a><ul>- <li>- <a href="#bytebase.v1.AdviseIndexRequest"><span class="badge">M</span>AdviseIndexRequest</a>- </li>-- <li>- <a href="#bytebase.v1.AdviseIndexResponse"><span class="badge">M</span>AdviseIndexResponse</a>- </li>-<li><a href="#bytebase.v1.BatchUpdateDatabasesRequest"><span class="badge">M</span>BatchUpdateDatabasesRequest</a></li>@@ -681,14 +673,6 @@<a href="#bytebase.v1.ListSecretsResponse"><span class="badge">M</span>ListSecretsResponse</a></li>- <li>- <a href="#bytebase.v1.ListSlowQueriesRequest"><span class="badge">M</span>ListSlowQueriesRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListSlowQueriesResponse"><span class="badge">M</span>ListSlowQueriesResponse</a>- </li>-<li><a href="#bytebase.v1.MaterializedViewMetadata"><span class="badge">M</span>MaterializedViewMetadata</a></li>@@ -717,18 +701,6 @@<a href="#bytebase.v1.SequenceMetadata"><span class="badge">M</span>SequenceMetadata</a></li>- <li>- <a href="#bytebase.v1.SlowQueryDetails"><span class="badge">M</span>SlowQueryDetails</a>- </li>-- <li>- <a href="#bytebase.v1.SlowQueryLog"><span class="badge">M</span>SlowQueryLog</a>- </li>-- <li>- <a href="#bytebase.v1.SlowQueryStatistics"><span class="badge">M</span>SlowQueryStatistics</a>- </li>-<li><a href="#bytebase.v1.StreamMetadata"><span class="badge">M</span>StreamMetadata</a></li>@@ -1885,10 +1857,6 @@<a href="#bytebase.v1.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a></li>- <li>- <a href="#bytebase.v1.SlowQueryPolicy"><span class="badge">M</span>SlowQueryPolicy</a>- </li>-<li><a href="#bytebase.v1.TagPolicy"><span class="badge">M</span>TagPolicy</a></li>@@ -5884,75 +5852,6 @@ Format: instances/{instance} </p></td><p></p>- <h3 id="bytebase.v1.AdviseIndexRequest">AdviseIndexRequest</h3>- <p>AdviseIndexRequest is the request of advising index.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>statement</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The statement to be advised. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.AdviseIndexResponse">AdviseIndexResponse</h3>- <p>AdviseIndexResponse is the response of advising index.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>current_index</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The current index of the statement used. </p></td>- </tr>-- <tr>- <td>suggestion</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The suggested index of the statement. </p></td>- </tr>-- <tr>- <td>create_index_statement</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The create index statement of the suggested index. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.BatchUpdateDatabasesRequest">BatchUpdateDatabasesRequest</h3><p></p>@@ -8103,84 +8002,6 @@ page. If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListSlowQueriesRequest">ListSlowQueriesRequest</h3>- <p>ListSlowQueriesRequest is the request of listing slow query.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project} </p></td>- </tr>-- <tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The filter of the slow query log.-follow the-[ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form)-syntax. Support filter by database and start_time in SlowQueryDetails for-now. For example: Search the slow query log of the specific database:- - the specific database: database =- "instances/{instance}/databases/{database}"-Search the slow query log that start_time after 2022-01-01T12:00:00.000Z:- - start_time > "2022-01-01T12:00:00.000Z"- - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339).- - Currently we only support filtering down to date granularity. </p></td>- </tr>-- <tr>- <td>order_by</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The order by of the slow query log.-Support order by count, latest_log_time, average_query_time,-maximum_query_time, average_rows_sent, maximum_rows_sent,-average_rows_examined, maximum_rows_examined for now. For example:- - order by count: order_by = "count"- - order by latest_log_time desc: order_by = "latest_log_time desc"-Default: order by average_query_time desc. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListSlowQueriesResponse">ListSlowQueriesResponse</h3>- <p>ListSlowQueriesResponse is the response of listing slow query.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>slow_query_logs</td>- <td><a href="#bytebase.v1.SlowQueryLog">SlowQueryLog</a></td>- <td>repeated</td>- <td><p>The slow query logs. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.MaterializedViewMetadata">MaterializedViewMetadata</h3><p>MaterializedViewMetadata is the metadata for materialized views.</p>@@ -8757,207 +8578,6 @@ instances/{instance}/databases/{database}/secrets/{secret} </p></td>- <h3 id="bytebase.v1.SlowQueryDetails">SlowQueryDetails</h3>- <p>SlowQueryDetails is the details of the slow query log.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The start time of the slow query log. </p></td>- </tr>-- <tr>- <td>query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The query time of the slow query log. </p></td>- </tr>-- <tr>- <td>lock_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The lock time of the slow query log. </p></td>- </tr>-- <tr>- <td>rows_sent</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The rows sent of the slow query log. </p></td>- </tr>-- <tr>- <td>rows_examined</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The rows examined of the slow query log. </p></td>- </tr>-- <tr>- <td>sql_text</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The sql text of the slow query log. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SlowQueryLog">SlowQueryLog</h3>- <p>SlowQueryLog is the slow query log.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>resource</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource of the slow query log.-The format is "instances/{instance}/databases/{database}". </p></td>- </tr>-- <tr>- <td>project</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The project of the slow query log.-The format is "projects/{project}". </p></td>- </tr>-- <tr>- <td>statistics</td>- <td><a href="#bytebase.v1.SlowQueryStatistics">SlowQueryStatistics</a></td>- <td></td>- <td><p>The statistics of the slow query log. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SlowQueryStatistics">SlowQueryStatistics</h3>- <p>SlowQueryStatistics is the statistics of the slow query log.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>sql_fingerprint</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The fingerprint of the slow query log. </p></td>- </tr>-- <tr>- <td>count</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The count of the slow query log. </p></td>- </tr>-- <tr>- <td>latest_log_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The latest log time of the slow query log. </p></td>- </tr>-- <tr>- <td>average_query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The average query time of the slow query log. </p></td>- </tr>-- <tr>- <td>maximum_query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The maximum query time of the slow query log. </p></td>- </tr>-- <tr>- <td>average_rows_sent</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The average rows sent of the slow query log. </p></td>- </tr>-- <tr>- <td>maximum_rows_sent</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The maximum rows sent of the slow query log. </p></td>- </tr>-- <tr>- <td>average_rows_examined</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The average rows examined of the slow query log. </p></td>- </tr>-- <tr>- <td>maximum_rows_examined</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The maximum rows examined of the slow query log. </p></td>- </tr>-- <tr>- <td>query_time_percent</td>- <td><a href="#double">double</a></td>- <td></td>- <td><p>The percentage of the query time. </p></td>- </tr>-- <tr>- <td>count_percent</td>- <td><a href="#double">double</a></td>- <td></td>- <td><p>The percentage of the count. </p></td>- </tr>-- <tr>- <td>samples</td>- <td><a href="#bytebase.v1.SlowQueryDetails">SlowQueryDetails</a></td>- <td>repeated</td>- <td><p>Samples are details of the sample slow query logs with the same-fingerprint. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.StreamMetadata">StreamMetadata</h3><p></p>@@ -10102,13 +9722,6 @@ view, function names.</p></td><td><p></p></td></tr>- <tr>- <td>ListSlowQueries</td>- <td><a href="#bytebase.v1.ListSlowQueriesRequest">ListSlowQueriesRequest</a></td>- <td><a href="#bytebase.v1.ListSlowQueriesResponse">ListSlowQueriesResponse</a></td>- <td><p></p></td>- </tr>-<tr><td>ListSecrets</td><td><a href="#bytebase.v1.ListSecretsRequest">ListSecretsRequest</a></td>@@ -10130,13 +9743,6 @@ view, function names.</p></td><td><p></p></td></tr>- <tr>- <td>AdviseIndex</td>- <td><a href="#bytebase.v1.AdviseIndexRequest">AdviseIndexRequest</a></td>- <td><a href="#bytebase.v1.AdviseIndexResponse">AdviseIndexResponse</a></td>- <td><p></p></td>- </tr>-<tr><td>ListRevisions</td><td><a href="#bytebase.v1.ListRevisionsRequest">ListRevisionsRequest</a></td>@@ -10307,16 +9913,6 @@ view, function names.</p></td>- <tr>- <td>ListSlowQueries</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/slowQueries</td>- <td></td>- </tr>----<tr><td>ListSecrets</td><td>GET</td>@@ -10347,16 +9943,6 @@ view, function names.</p></td>- <tr>- <td>AdviseIndex</td>- <td>POST</td>- <td>/v1/{parent=instances/*/databases/*}:adviseIndex</td>- <td></td>- </tr>----<tr><td>ListRevisions</td><td>GET</td>@@ -20169,13 +19755,6 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><td><p> </p></td></tr>- <tr>- <td>slow_query_policy</td>- <td><a href="#bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>disable_copy_data_policy</td><td><a href="#bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</a></td>@@ -20392,30 +19971,6 @@ roles/CREATOR </p></td>- <h3 id="bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>active</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.TagPolicy">TagPolicy</h3><p></p>@@ -20645,12 +20200,6 @@ In this situation, `update_mask` is ignored. </p></td><td><p></p></td></tr>- <tr>- <td>SLOW_QUERY</td>- <td>7</td>- <td><p></p></td>- </tr>-<tr><td>DISABLE_COPY_DATA</td><td>8</td>diff --git a/proto/generated-go/store/branch.pb.go b/proto/generated-go/store/branch.pb.godeleted file mode 100644index 4a51dd0754..0000000000--- a/proto/generated-go/store/branch.pb.go+++ /dev/null@@ -1,213 +0,0 @@-// Code generated by protoc-gen-go. DO NOT EDIT.-// versions:-// protoc-gen-go v1.36.3-// protoc (unknown)-// source: store/branch.proto--package store--import (- protoreflect "google.golang.org/protobuf/reflect/protoreflect"- protoimpl "google.golang.org/protobuf/runtime/protoimpl"- reflect "reflect"- sync "sync"-)--const (- // Verify that this generated code is sufficiently up-to-date.- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)- // Verify that runtime/protoimpl is sufficiently up-to-date.- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)-)--type BranchSnapshot struct {- state protoimpl.MessageState `protogen:"open.v1"`- Metadata *DatabaseSchemaMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`- DatabaseConfig *DatabaseConfig `protobuf:"bytes,2,opt,name=database_config,json=databaseConfig,proto3" json:"database_config,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *BranchSnapshot) Reset() {- *x = BranchSnapshot{}- mi := &file_store_branch_proto_msgTypes[0]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *BranchSnapshot) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*BranchSnapshot) ProtoMessage() {}--func (x *BranchSnapshot) ProtoReflect() protoreflect.Message {- mi := &file_store_branch_proto_msgTypes[0]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use BranchSnapshot.ProtoReflect.Descriptor instead.-func (*BranchSnapshot) Descriptor() ([]byte, []int) {- return file_store_branch_proto_rawDescGZIP(), []int{0}-}--func (x *BranchSnapshot) GetMetadata() *DatabaseSchemaMetadata {- if x != nil {- return x.Metadata- }- return nil-}--func (x *BranchSnapshot) GetDatabaseConfig() *DatabaseConfig {- if x != nil {- return x.DatabaseConfig- }- return nil-}--type BranchConfig struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The name of source database.- // Optional.- // Example: instances/instance-id/databases/database-name.- SourceDatabase string `protobuf:"bytes,1,opt,name=source_database,json=sourceDatabase,proto3" json:"source_database,omitempty"`- // The name of the source branch.- // Optional.- // Example: projects/project-id/branches/branch-id.- SourceBranch string `protobuf:"bytes,2,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *BranchConfig) Reset() {- *x = BranchConfig{}- mi := &file_store_branch_proto_msgTypes[1]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *BranchConfig) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*BranchConfig) ProtoMessage() {}--func (x *BranchConfig) ProtoReflect() protoreflect.Message {- mi := &file_store_branch_proto_msgTypes[1]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use BranchConfig.ProtoReflect.Descriptor instead.-func (*BranchConfig) Descriptor() ([]byte, []int) {- return file_store_branch_proto_rawDescGZIP(), []int{1}-}--func (x *BranchConfig) GetSourceDatabase() string {- if x != nil {- return x.SourceDatabase- }- return ""-}--func (x *BranchConfig) GetSourceBranch() string {- if x != nil {- return x.SourceBranch- }- return ""-}--var File_store_branch_proto protoreflect.FileDescriptor--var file_store_branch_proto_rawDesc = []byte{- 0x0a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,- 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0e, 0x42,- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x42, 0x0a,- 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d,- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,- 0x61, 0x12, 0x47, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a, 0x0c, 0x42, 0x72,- 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72,- 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,-}--var (- file_store_branch_proto_rawDescOnce sync.Once- file_store_branch_proto_rawDescData = file_store_branch_proto_rawDesc-)--func file_store_branch_proto_rawDescGZIP() []byte {- file_store_branch_proto_rawDescOnce.Do(func() {- file_store_branch_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_branch_proto_rawDescData)- })- return file_store_branch_proto_rawDescData-}--var file_store_branch_proto_msgTypes = make([]protoimpl.MessageInfo, 2)-var file_store_branch_proto_goTypes = []any{- (*BranchSnapshot)(nil), // 0: bytebase.store.BranchSnapshot- (*BranchConfig)(nil), // 1: bytebase.store.BranchConfig- (*DatabaseSchemaMetadata)(nil), // 2: bytebase.store.DatabaseSchemaMetadata- (*DatabaseConfig)(nil), // 3: bytebase.store.DatabaseConfig-}-var file_store_branch_proto_depIdxs = []int32{- 2, // 0: bytebase.store.BranchSnapshot.metadata:type_name -> bytebase.store.DatabaseSchemaMetadata- 3, // 1: bytebase.store.BranchSnapshot.database_config:type_name -> bytebase.store.DatabaseConfig- 2, // [2:2] is the sub-list for method output_type- 2, // [2:2] is the sub-list for method input_type- 2, // [2:2] is the sub-list for extension type_name- 2, // [2:2] is the sub-list for extension extendee- 0, // [0:2] is the sub-list for field type_name-}--func init() { file_store_branch_proto_init() }-func file_store_branch_proto_init() {- if File_store_branch_proto != nil {- return- }- file_store_database_proto_init()- type x struct{}- out := protoimpl.TypeBuilder{- File: protoimpl.DescBuilder{- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),- RawDescriptor: file_store_branch_proto_rawDesc,- NumEnums: 0,- NumMessages: 2,- NumExtensions: 0,- NumServices: 0,- },- GoTypes: file_store_branch_proto_goTypes,- DependencyIndexes: file_store_branch_proto_depIdxs,- MessageInfos: file_store_branch_proto_msgTypes,- }.Build()- File_store_branch_proto = out.File- file_store_branch_proto_rawDesc = nil- file_store_branch_proto_goTypes = nil- file_store_branch_proto_depIdxs = nil-}diff --git a/proto/generated-go/store/policy.pb.go b/proto/generated-go/store/policy.pb.goindex 2cbd173d74..2623f324a1 100644--- a/proto/generated-go/store/policy.pb.go+++ b/proto/generated-go/store/policy.pb.go@@ -221,7 +221,7 @@ func (x DataSourceQueryPolicy_Restriction) Number() protoreflect.EnumNumber {// Deprecated: Use DataSourceQueryPolicy_Restriction.Descriptor instead.func (DataSourceQueryPolicy_Restriction) EnumDescriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{13, 0}+ return file_store_policy_proto_rawDescGZIP(), []int{12, 0}}type RolloutPolicy struct {@@ -664,51 +664,6 @@ func (x *EnvironmentTierPolicy) GetColor() string {return ""}-// SlowQueryPolicy is the policy configuration for slow query.-type SlowQueryPolicy struct {- state protoimpl.MessageState `protogen:"open.v1"`- Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SlowQueryPolicy) Reset() {- *x = SlowQueryPolicy{}- mi := &file_store_policy_proto_msgTypes[8]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SlowQueryPolicy) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SlowQueryPolicy) ProtoMessage() {}--func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[8]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SlowQueryPolicy.ProtoReflect.Descriptor instead.-func (*SlowQueryPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{8}-}--func (x *SlowQueryPolicy) GetActive() bool {- if x != nil {- return x.Active- }- return false-}-// DisableCopyDataPolicy is the policy configuration for disabling copying data.type DisableCopyDataPolicy struct {state protoimpl.MessageState `protogen:"open.v1"`@@ -719,7 +674,7 @@ type DisableCopyDataPolicy struct {func (x *DisableCopyDataPolicy) Reset() {*x = DisableCopyDataPolicy{}- mi := &file_store_policy_proto_msgTypes[9]+ mi := &file_store_policy_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -731,7 +686,7 @@ func (x *DisableCopyDataPolicy) String() string {func (*DisableCopyDataPolicy) ProtoMessage() {}func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[9]+ mi := &file_store_policy_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -744,7 +699,7 @@ func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use DisableCopyDataPolicy.ProtoReflect.Descriptor instead.func (*DisableCopyDataPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{9}+ return file_store_policy_proto_rawDescGZIP(), []int{8}}func (x *DisableCopyDataPolicy) GetActive() bool {@@ -764,7 +719,7 @@ type ExportDataPolicy struct {func (x *ExportDataPolicy) Reset() {*x = ExportDataPolicy{}- mi := &file_store_policy_proto_msgTypes[10]+ mi := &file_store_policy_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -776,7 +731,7 @@ func (x *ExportDataPolicy) String() string {func (*ExportDataPolicy) ProtoMessage() {}func (x *ExportDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[10]+ mi := &file_store_policy_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -789,7 +744,7 @@ func (x *ExportDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use ExportDataPolicy.ProtoReflect.Descriptor instead.func (*ExportDataPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{10}+ return file_store_policy_proto_rawDescGZIP(), []int{9}}func (x *ExportDataPolicy) GetDisable() bool {@@ -810,7 +765,7 @@ type QueryDataPolicy struct {func (x *QueryDataPolicy) Reset() {*x = QueryDataPolicy{}- mi := &file_store_policy_proto_msgTypes[11]+ mi := &file_store_policy_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -822,7 +777,7 @@ func (x *QueryDataPolicy) String() string {func (*QueryDataPolicy) ProtoMessage() {}func (x *QueryDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[11]+ mi := &file_store_policy_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -835,7 +790,7 @@ func (x *QueryDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use QueryDataPolicy.ProtoReflect.Descriptor instead.func (*QueryDataPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{11}+ return file_store_policy_proto_rawDescGZIP(), []int{10}}func (x *QueryDataPolicy) GetTimeout() *durationpb.Duration {@@ -855,7 +810,7 @@ type RestrictIssueCreationForSQLReviewPolicy struct {func (x *RestrictIssueCreationForSQLReviewPolicy) Reset() {*x = RestrictIssueCreationForSQLReviewPolicy{}- mi := &file_store_policy_proto_msgTypes[12]+ mi := &file_store_policy_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -867,7 +822,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) String() string {func (*RestrictIssueCreationForSQLReviewPolicy) ProtoMessage() {}func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[12]+ mi := &file_store_policy_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -880,7 +835,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Me// Deprecated: Use RestrictIssueCreationForSQLReviewPolicy.ProtoReflect.Descriptor instead.func (*RestrictIssueCreationForSQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{12}+ return file_store_policy_proto_rawDescGZIP(), []int{11}}func (x *RestrictIssueCreationForSQLReviewPolicy) GetDisallow() bool {@@ -904,7 +859,7 @@ type DataSourceQueryPolicy struct {func (x *DataSourceQueryPolicy) Reset() {*x = DataSourceQueryPolicy{}- mi := &file_store_policy_proto_msgTypes[13]+ mi := &file_store_policy_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -916,7 +871,7 @@ func (x *DataSourceQueryPolicy) String() string {func (*DataSourceQueryPolicy) ProtoMessage() {}func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[13]+ mi := &file_store_policy_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -929,7 +884,7 @@ func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use DataSourceQueryPolicy.ProtoReflect.Descriptor instead.func (*DataSourceQueryPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{13}+ return file_store_policy_proto_rawDescGZIP(), []int{12}}func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restriction {@@ -969,7 +924,7 @@ type MaskingExceptionPolicy_MaskingException struct {func (x *MaskingExceptionPolicy_MaskingException) Reset() {*x = MaskingExceptionPolicy_MaskingException{}- mi := &file_store_policy_proto_msgTypes[14]+ mi := &file_store_policy_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -981,7 +936,7 @@ func (x *MaskingExceptionPolicy_MaskingException) String() string {func (*MaskingExceptionPolicy_MaskingException) ProtoMessage() {}func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[14]+ mi := &file_store_policy_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1030,7 +985,7 @@ type MaskingRulePolicy_MaskingRule struct {func (x *MaskingRulePolicy_MaskingRule) Reset() {*x = MaskingRulePolicy_MaskingRule{}- mi := &file_store_policy_proto_msgTypes[15]+ mi := &file_store_policy_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1042,7 +997,7 @@ func (x *MaskingRulePolicy_MaskingRule) String() string {func (*MaskingRulePolicy_MaskingRule) ProtoMessage() {}func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[15]+ mi := &file_store_policy_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1176,50 +1131,47 @@ var file_store_policy_proto_rawDesc = string([]byte{0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x49, 0x45, 0x52,0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d,0x0a, 0x09, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a,- 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x29,- 0x0a, 0x0f, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44, 0x69, 0x73,- 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2c, 0x0a, 0x10, 0x45, 0x78,- 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18,- 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x46, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x72,- 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x07, 0x74,- 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67,- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44,- 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,- 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75,- 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x51, 0x4c, 0x52,- 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64,- 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64,- 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x22, 0x9b, 0x02, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61,- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x74, 0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f,- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69,- 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,- 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d,- 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74,- 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c,- 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64,- 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69,- 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,- 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 0x22, 0x46, 0x0a,- 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17,- 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50,- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41, 0x4c,- 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x4c,- 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69,- 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11, 0x4c,- 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a,- 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49,- 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x2f,+ 0x0a, 0x15, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74,+ 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22,+ 0x2c, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x46, 0x0a,+ 0x0f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69,+ 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,+ 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f,+ 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x22, 0x9b, 0x02, 0x0a,+ 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x74, 0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f,+ 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74,+ 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44,+ 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c,+ 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x64, 0x6c, 0x12,+ 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6d, 0x6c, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44,+ 0x6d, 0x6c, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f,+ 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c,+ 0x0a, 0x08, 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,+ 0x44, 0x49, 0x53, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51,+ 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c,+ 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52,+ 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12,+ 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x42, 0x14, 0x5a,+ 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74,+ 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,})var (@@ -1235,7 +1187,7 @@ func file_store_policy_proto_rawDescGZIP() []byte {}var file_store_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 4)-var file_store_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 17)+var file_store_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 16)var file_store_policy_proto_goTypes = []any{(SQLReviewRuleLevel)(0), // 0: bytebase.store.SQLReviewRuleLevel(MaskingExceptionPolicy_MaskingException_Action)(0), // 1: bytebase.store.MaskingExceptionPolicy.MaskingException.Action@@ -1249,33 +1201,32 @@ var file_store_policy_proto_goTypes = []any{(*Binding)(nil), // 9: bytebase.store.Binding(*IamPolicy)(nil), // 10: bytebase.store.IamPolicy(*EnvironmentTierPolicy)(nil), // 11: bytebase.store.EnvironmentTierPolicy- (*SlowQueryPolicy)(nil), // 12: bytebase.store.SlowQueryPolicy- (*DisableCopyDataPolicy)(nil), // 13: bytebase.store.DisableCopyDataPolicy- (*ExportDataPolicy)(nil), // 14: bytebase.store.ExportDataPolicy- (*QueryDataPolicy)(nil), // 15: bytebase.store.QueryDataPolicy- (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 16: bytebase.store.RestrictIssueCreationForSQLReviewPolicy- (*DataSourceQueryPolicy)(nil), // 17: bytebase.store.DataSourceQueryPolicy- (*MaskingExceptionPolicy_MaskingException)(nil), // 18: bytebase.store.MaskingExceptionPolicy.MaskingException- (*MaskingRulePolicy_MaskingRule)(nil), // 19: bytebase.store.MaskingRulePolicy.MaskingRule- nil, // 20: bytebase.store.TagPolicy.TagsEntry- (Engine)(0), // 21: bytebase.store.Engine- (*expr.Expr)(nil), // 22: google.type.Expr- (*durationpb.Duration)(nil), // 23: google.protobuf.Duration+ (*DisableCopyDataPolicy)(nil), // 12: bytebase.store.DisableCopyDataPolicy+ (*ExportDataPolicy)(nil), // 13: bytebase.store.ExportDataPolicy+ (*QueryDataPolicy)(nil), // 14: bytebase.store.QueryDataPolicy+ (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 15: bytebase.store.RestrictIssueCreationForSQLReviewPolicy+ (*DataSourceQueryPolicy)(nil), // 16: bytebase.store.DataSourceQueryPolicy+ (*MaskingExceptionPolicy_MaskingException)(nil), // 17: bytebase.store.MaskingExceptionPolicy.MaskingException+ (*MaskingRulePolicy_MaskingRule)(nil), // 18: bytebase.store.MaskingRulePolicy.MaskingRule+ nil, // 19: bytebase.store.TagPolicy.TagsEntry+ (Engine)(0), // 20: bytebase.store.Engine+ (*expr.Expr)(nil), // 21: google.type.Expr+ (*durationpb.Duration)(nil), // 22: google.protobuf.Duration}var file_store_policy_proto_depIdxs = []int32{- 18, // 0: bytebase.store.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException- 19, // 1: bytebase.store.MaskingRulePolicy.rules:type_name -> bytebase.store.MaskingRulePolicy.MaskingRule+ 17, // 0: bytebase.store.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException+ 18, // 1: bytebase.store.MaskingRulePolicy.rules:type_name -> bytebase.store.MaskingRulePolicy.MaskingRule0, // 2: bytebase.store.SQLReviewRule.level:type_name -> bytebase.store.SQLReviewRuleLevel- 21, // 3: bytebase.store.SQLReviewRule.engine:type_name -> bytebase.store.Engine- 20, // 4: bytebase.store.TagPolicy.tags:type_name -> bytebase.store.TagPolicy.TagsEntry- 22, // 5: bytebase.store.Binding.condition:type_name -> google.type.Expr+ 20, // 3: bytebase.store.SQLReviewRule.engine:type_name -> bytebase.store.Engine+ 19, // 4: bytebase.store.TagPolicy.tags:type_name -> bytebase.store.TagPolicy.TagsEntry+ 21, // 5: bytebase.store.Binding.condition:type_name -> google.type.Expr9, // 6: bytebase.store.IamPolicy.bindings:type_name -> bytebase.store.Binding2, // 7: bytebase.store.EnvironmentTierPolicy.environment_tier:type_name -> bytebase.store.EnvironmentTierPolicy.EnvironmentTier- 23, // 8: bytebase.store.QueryDataPolicy.timeout:type_name -> google.protobuf.Duration+ 22, // 8: bytebase.store.QueryDataPolicy.timeout:type_name -> google.protobuf.Duration3, // 9: bytebase.store.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.store.DataSourceQueryPolicy.Restriction1, // 10: bytebase.store.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException.Action- 22, // 11: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 22, // 12: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 21, // 11: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 21, // 12: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr13, // [13:13] is the sub-list for method output_type13, // [13:13] is the sub-list for method input_type13, // [13:13] is the sub-list for extension type_name@@ -1295,7 +1246,7 @@ func file_store_policy_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_policy_proto_rawDesc), len(file_store_policy_proto_rawDesc)),NumEnums: 4,- NumMessages: 17,+ NumMessages: 16,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/store/slow_query.pb.go b/proto/generated-go/store/slow_query.pb.godeleted file mode 100644index a69efb17f6..0000000000--- a/proto/generated-go/store/slow_query.pb.go+++ /dev/null@@ -1,419 +0,0 @@-// Code generated by protoc-gen-go. DO NOT EDIT.-// versions:-// protoc-gen-go v1.36.5-// protoc (unknown)-// source: store/slow_query.proto--package store--import (- protoreflect "google.golang.org/protobuf/reflect/protoreflect"- protoimpl "google.golang.org/protobuf/runtime/protoimpl"- durationpb "google.golang.org/protobuf/types/known/durationpb"- timestamppb "google.golang.org/protobuf/types/known/timestamppb"- reflect "reflect"- sync "sync"- unsafe "unsafe"-)--const (- // Verify that this generated code is sufficiently up-to-date.- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)- // Verify that runtime/protoimpl is sufficiently up-to-date.- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)-)--// SlowQueryStatistics is the slow query statistics.-type SlowQueryStatistics struct {- state protoimpl.MessageState `protogen:"open.v1"`- // Items is the list of slow query statistics.- Items []*SlowQueryStatisticsItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SlowQueryStatistics) Reset() {- *x = SlowQueryStatistics{}- mi := &file_store_slow_query_proto_msgTypes[0]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SlowQueryStatistics) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SlowQueryStatistics) ProtoMessage() {}--func (x *SlowQueryStatistics) ProtoReflect() protoreflect.Message {- mi := &file_store_slow_query_proto_msgTypes[0]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SlowQueryStatistics.ProtoReflect.Descriptor instead.-func (*SlowQueryStatistics) Descriptor() ([]byte, []int) {- return file_store_slow_query_proto_rawDescGZIP(), []int{0}-}--func (x *SlowQueryStatistics) GetItems() []*SlowQueryStatisticsItem {- if x != nil {- return x.Items- }- return nil-}--// SlowQueryStatisticsItem is the item of slow query statistics.-type SlowQueryStatisticsItem struct {- state protoimpl.MessageState `protogen:"open.v1"`- // sql_fingerprint is the fingerprint of the slow query.- SqlFingerprint string `protobuf:"bytes,1,opt,name=sql_fingerprint,json=sqlFingerprint,proto3" json:"sql_fingerprint,omitempty"`- // count is the number of slow queries with the same fingerprint.- Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`- // latest_log_time is the time of the latest slow query with the same fingerprint.- LatestLogTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=latest_log_time,json=latestLogTime,proto3" json:"latest_log_time,omitempty"`- // The total query time of the slow query log.- TotalQueryTime *durationpb.Duration `protobuf:"bytes,4,opt,name=total_query_time,json=totalQueryTime,proto3" json:"total_query_time,omitempty"`- // The maximum query time of the slow query log.- MaximumQueryTime *durationpb.Duration `protobuf:"bytes,5,opt,name=maximum_query_time,json=maximumQueryTime,proto3" json:"maximum_query_time,omitempty"`- // The total rows sent of the slow query log.- TotalRowsSent int64 `protobuf:"varint,6,opt,name=total_rows_sent,json=totalRowsSent,proto3" json:"total_rows_sent,omitempty"`- // The maximum rows sent of the slow query log.- MaximumRowsSent int64 `protobuf:"varint,7,opt,name=maximum_rows_sent,json=maximumRowsSent,proto3" json:"maximum_rows_sent,omitempty"`- // The total rows examined of the slow query log.- TotalRowsExamined int64 `protobuf:"varint,8,opt,name=total_rows_examined,json=totalRowsExamined,proto3" json:"total_rows_examined,omitempty"`- // The maximum rows examined of the slow query log.- MaximumRowsExamined int64 `protobuf:"varint,9,opt,name=maximum_rows_examined,json=maximumRowsExamined,proto3" json:"maximum_rows_examined,omitempty"`- // samples are the details of the sample slow queries with the same fingerprint.- Samples []*SlowQueryDetails `protobuf:"bytes,10,rep,name=samples,proto3" json:"samples,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SlowQueryStatisticsItem) Reset() {- *x = SlowQueryStatisticsItem{}- mi := &file_store_slow_query_proto_msgTypes[1]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SlowQueryStatisticsItem) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SlowQueryStatisticsItem) ProtoMessage() {}--func (x *SlowQueryStatisticsItem) ProtoReflect() protoreflect.Message {- mi := &file_store_slow_query_proto_msgTypes[1]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SlowQueryStatisticsItem.ProtoReflect.Descriptor instead.-func (*SlowQueryStatisticsItem) Descriptor() ([]byte, []int) {- return file_store_slow_query_proto_rawDescGZIP(), []int{1}-}--func (x *SlowQueryStatisticsItem) GetSqlFingerprint() string {- if x != nil {- return x.SqlFingerprint- }- return ""-}--func (x *SlowQueryStatisticsItem) GetCount() int64 {- if x != nil {- return x.Count- }- return 0-}--func (x *SlowQueryStatisticsItem) GetLatestLogTime() *timestamppb.Timestamp {- if x != nil {- return x.LatestLogTime- }- return nil-}--func (x *SlowQueryStatisticsItem) GetTotalQueryTime() *durationpb.Duration {- if x != nil {- return x.TotalQueryTime- }- return nil-}--func (x *SlowQueryStatisticsItem) GetMaximumQueryTime() *durationpb.Duration {- if x != nil {- return x.MaximumQueryTime- }- return nil-}--func (x *SlowQueryStatisticsItem) GetTotalRowsSent() int64 {- if x != nil {- return x.TotalRowsSent- }- return 0-}--func (x *SlowQueryStatisticsItem) GetMaximumRowsSent() int64 {- if x != nil {- return x.MaximumRowsSent- }- return 0-}--func (x *SlowQueryStatisticsItem) GetTotalRowsExamined() int64 {- if x != nil {- return x.TotalRowsExamined- }- return 0-}--func (x *SlowQueryStatisticsItem) GetMaximumRowsExamined() int64 {- if x != nil {- return x.MaximumRowsExamined- }- return 0-}--func (x *SlowQueryStatisticsItem) GetSamples() []*SlowQueryDetails {- if x != nil {- return x.Samples- }- return nil-}--// SlowQueryDetails is the details of a slow query.-type SlowQueryDetails struct {- state protoimpl.MessageState `protogen:"open.v1"`- // start_time is the start time of the slow query.- StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`- // query_time is the query time of the slow query.- QueryTime *durationpb.Duration `protobuf:"bytes,2,opt,name=query_time,json=queryTime,proto3" json:"query_time,omitempty"`- // lock_time is the lock time of the slow query.- LockTime *durationpb.Duration `protobuf:"bytes,3,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`- // rows_sent is the number of rows sent by the slow query.- RowsSent int64 `protobuf:"varint,4,opt,name=rows_sent,json=rowsSent,proto3" json:"rows_sent,omitempty"`- // rows_examined is the number of rows examined by the slow query.- RowsExamined int64 `protobuf:"varint,5,opt,name=rows_examined,json=rowsExamined,proto3" json:"rows_examined,omitempty"`- // sql_text is the SQL text of the slow query.- SqlText string `protobuf:"bytes,6,opt,name=sql_text,json=sqlText,proto3" json:"sql_text,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SlowQueryDetails) Reset() {- *x = SlowQueryDetails{}- mi := &file_store_slow_query_proto_msgTypes[2]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SlowQueryDetails) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SlowQueryDetails) ProtoMessage() {}--func (x *SlowQueryDetails) ProtoReflect() protoreflect.Message {- mi := &file_store_slow_query_proto_msgTypes[2]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SlowQueryDetails.ProtoReflect.Descriptor instead.-func (*SlowQueryDetails) Descriptor() ([]byte, []int) {- return file_store_slow_query_proto_rawDescGZIP(), []int{2}-}--func (x *SlowQueryDetails) GetStartTime() *timestamppb.Timestamp {- if x != nil {- return x.StartTime- }- return nil-}--func (x *SlowQueryDetails) GetQueryTime() *durationpb.Duration {- if x != nil {- return x.QueryTime- }- return nil-}--func (x *SlowQueryDetails) GetLockTime() *durationpb.Duration {- if x != nil {- return x.LockTime- }- return nil-}--func (x *SlowQueryDetails) GetRowsSent() int64 {- if x != nil {- return x.RowsSent- }- return 0-}--func (x *SlowQueryDetails) GetRowsExamined() int64 {- if x != nil {- return x.RowsExamined- }- return 0-}--func (x *SlowQueryDetails) GetSqlText() string {- if x != nil {- return x.SqlText- }- return ""-}--var File_store_slow_query_proto protoreflect.FileDescriptor--var file_store_slow_query_proto_rawDesc = string([]byte{- 0x0a, 0x16, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65,- 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,- 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,- 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x13, 0x53, 0x6c, 0x6f,- 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,- 0x12, 0x3d, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,- 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73,- 0x74, 0x69, 0x63, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22,- 0x9e, 0x04, 0x0a, 0x17, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61,- 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x73,- 0x71, 0x6c, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x71, 0x6c, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70,- 0x72, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x6c, 0x61,- 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,- 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43,- 0x0a, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69,- 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74,- 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54,- 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x71,- 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,- 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x69,- 0x6d, 0x75, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f,- 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18,- 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x6f, 0x77, 0x73,- 0x53, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f,- 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52,- 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74,- 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65,- 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x74,- 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64,- 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73,- 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52,- 0x13, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d,- 0x69, 0x6e, 0x65, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18,- 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79,- 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73,- 0x22, 0x9c, 0x02, 0x0a, 0x10, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65,- 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74,- 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,- 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65,- 0x12, 0x38, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,- 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f,- 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,- 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69,- 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18,- 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12,- 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64,- 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d,- 0x69, 0x6e, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74,- 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x71, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x42,- 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f,- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,-})--var (- file_store_slow_query_proto_rawDescOnce sync.Once- file_store_slow_query_proto_rawDescData []byte-)--func file_store_slow_query_proto_rawDescGZIP() []byte {- file_store_slow_query_proto_rawDescOnce.Do(func() {- file_store_slow_query_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_slow_query_proto_rawDesc), len(file_store_slow_query_proto_rawDesc)))- })- return file_store_slow_query_proto_rawDescData-}--var file_store_slow_query_proto_msgTypes = make([]protoimpl.MessageInfo, 3)-var file_store_slow_query_proto_goTypes = []any{- (*SlowQueryStatistics)(nil), // 0: bytebase.store.SlowQueryStatistics- (*SlowQueryStatisticsItem)(nil), // 1: bytebase.store.SlowQueryStatisticsItem- (*SlowQueryDetails)(nil), // 2: bytebase.store.SlowQueryDetails- (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp- (*durationpb.Duration)(nil), // 4: google.protobuf.Duration-}-var file_store_slow_query_proto_depIdxs = []int32{- 1, // 0: bytebase.store.SlowQueryStatistics.items:type_name -> bytebase.store.SlowQueryStatisticsItem- 3, // 1: bytebase.store.SlowQueryStatisticsItem.latest_log_time:type_name -> google.protobuf.Timestamp- 4, // 2: bytebase.store.SlowQueryStatisticsItem.total_query_time:type_name -> google.protobuf.Duration- 4, // 3: bytebase.store.SlowQueryStatisticsItem.maximum_query_time:type_name -> google.protobuf.Duration- 2, // 4: bytebase.store.SlowQueryStatisticsItem.samples:type_name -> bytebase.store.SlowQueryDetails- 3, // 5: bytebase.store.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp- 4, // 6: bytebase.store.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration- 4, // 7: bytebase.store.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration- 8, // [8:8] is the sub-list for method output_type- 8, // [8:8] is the sub-list for method input_type- 8, // [8:8] is the sub-list for extension type_name- 8, // [8:8] is the sub-list for extension extendee- 0, // [0:8] is the sub-list for field type_name-}--func init() { file_store_slow_query_proto_init() }-func file_store_slow_query_proto_init() {- if File_store_slow_query_proto != nil {- return- }- type x struct{}- out := protoimpl.TypeBuilder{- File: protoimpl.DescBuilder{- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),- RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_slow_query_proto_rawDesc), len(file_store_slow_query_proto_rawDesc)),- NumEnums: 0,- NumMessages: 3,- NumExtensions: 0,- NumServices: 0,- },- GoTypes: file_store_slow_query_proto_goTypes,- DependencyIndexes: file_store_slow_query_proto_depIdxs,- MessageInfos: file_store_slow_query_proto_msgTypes,- }.Build()- File_store_slow_query_proto = out.File- file_store_slow_query_proto_goTypes = nil- file_store_slow_query_proto_depIdxs = nil-}diff --git a/proto/generated-go/v1/database_service.pb.go b/proto/generated-go/v1/database_service.pb.goindex 71b1d3f966..60229d0b5e 100644--- a/proto/generated-go/v1/database_service.pb.go+++ b/proto/generated-go/v1/database_service.pb.go@@ -10,7 +10,6 @@ import (_ "google.golang.org/genproto/googleapis/api/annotations"protoreflect "google.golang.org/protobuf/reflect/protoreflect"protoimpl "google.golang.org/protobuf/runtime/protoimpl"- durationpb "google.golang.org/protobuf/types/known/durationpb"emptypb "google.golang.org/protobuf/types/known/emptypb"fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"timestamppb "google.golang.org/protobuf/types/known/timestamppb"@@ -499,7 +498,7 @@ func (x Changelog_Status) Number() protoreflect.EnumNumber {// Deprecated: Use Changelog_Status.Descriptor instead.func (Changelog_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{66, 0}+ return file_v1_database_service_proto_rawDescGZIP(), []int{59, 0}}type Changelog_Type int32@@ -557,7 +556,7 @@ func (x Changelog_Type) Number() protoreflect.EnumNumber {// Deprecated: Use Changelog_Type.Descriptor instead.func (Changelog_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{66, 1}+ return file_v1_database_service_proto_rawDescGZIP(), []int{59, 1}}type GetSchemaStringRequest_ObjectType int32@@ -624,7 +623,7 @@ func (x GetSchemaStringRequest_ObjectType) Number() protoreflect.EnumNumber {// Deprecated: Use GetSchemaStringRequest_ObjectType.Descriptor instead.func (GetSchemaStringRequest_ObjectType) EnumDescriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{67, 0}+ return file_v1_database_service_proto_rawDescGZIP(), []int{60, 0}}type GetDatabaseRequest struct {@@ -4130,437 +4129,6 @@ func (x *DatabaseSchema) GetSchema() string {return ""}-// ListSlowQueriesRequest is the request of listing slow query.-type ListSlowQueriesRequest struct {- state protoimpl.MessageState `protogen:"open.v1"`- // Format: projects/{project}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The filter of the slow query log.- // follow the- // [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form)- // syntax. Support filter by database and start_time in SlowQueryDetails for- // now. For example: Search the slow query log of the specific database:- // - the specific database: database =- // "instances/{instance}/databases/{database}"- //- // Search the slow query log that start_time after 2022-01-01T12:00:00.000Z:- // - start_time > "2022-01-01T12:00:00.000Z"- // - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339).- // - Currently we only support filtering down to date granularity.- Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`- // The order by of the slow query log.- // Support order by count, latest_log_time, average_query_time,- // maximum_query_time, average_rows_sent, maximum_rows_sent,- // average_rows_examined, maximum_rows_examined for now. For example:- // - order by count: order_by = "count"- // - order by latest_log_time desc: order_by = "latest_log_time desc"- //- // Default: order by average_query_time desc.- OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *ListSlowQueriesRequest) Reset() {- *x = ListSlowQueriesRequest{}- mi := &file_v1_database_service_proto_msgTypes[38]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *ListSlowQueriesRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListSlowQueriesRequest) ProtoMessage() {}--func (x *ListSlowQueriesRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[38]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ListSlowQueriesRequest.ProtoReflect.Descriptor instead.-func (*ListSlowQueriesRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{38}-}--func (x *ListSlowQueriesRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *ListSlowQueriesRequest) GetFilter() string {- if x != nil {- return x.Filter- }- return ""-}--func (x *ListSlowQueriesRequest) GetOrderBy() string {- if x != nil {- return x.OrderBy- }- return ""-}--// ListSlowQueriesResponse is the response of listing slow query.-type ListSlowQueriesResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The slow query logs.- SlowQueryLogs []*SlowQueryLog `protobuf:"bytes,1,rep,name=slow_query_logs,json=slowQueryLogs,proto3" json:"slow_query_logs,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *ListSlowQueriesResponse) Reset() {- *x = ListSlowQueriesResponse{}- mi := &file_v1_database_service_proto_msgTypes[39]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *ListSlowQueriesResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListSlowQueriesResponse) ProtoMessage() {}--func (x *ListSlowQueriesResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[39]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ListSlowQueriesResponse.ProtoReflect.Descriptor instead.-func (*ListSlowQueriesResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{39}-}--func (x *ListSlowQueriesResponse) GetSlowQueryLogs() []*SlowQueryLog {- if x != nil {- return x.SlowQueryLogs- }- return nil-}--// SlowQueryLog is the slow query log.-type SlowQueryLog struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The resource of the slow query log.- // The format is "instances/{instance}/databases/{database}".- Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`- // The project of the slow query log.- // The format is "projects/{project}".- Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`- // The statistics of the slow query log.- Statistics *SlowQueryStatistics `protobuf:"bytes,3,opt,name=statistics,proto3" json:"statistics,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SlowQueryLog) Reset() {- *x = SlowQueryLog{}- mi := &file_v1_database_service_proto_msgTypes[40]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SlowQueryLog) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SlowQueryLog) ProtoMessage() {}--func (x *SlowQueryLog) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[40]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SlowQueryLog.ProtoReflect.Descriptor instead.-func (*SlowQueryLog) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{40}-}--func (x *SlowQueryLog) GetResource() string {- if x != nil {- return x.Resource- }- return ""-}--func (x *SlowQueryLog) GetProject() string {- if x != nil {- return x.Project- }- return ""-}--func (x *SlowQueryLog) GetStatistics() *SlowQueryStatistics {- if x != nil {- return x.Statistics- }- return nil-}--// SlowQueryStatistics is the statistics of the slow query log.-type SlowQueryStatistics struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The fingerprint of the slow query log.- SqlFingerprint string `protobuf:"bytes,1,opt,name=sql_fingerprint,json=sqlFingerprint,proto3" json:"sql_fingerprint,omitempty"`- // The count of the slow query log.- Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`- // The latest log time of the slow query log.- LatestLogTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=latest_log_time,json=latestLogTime,proto3" json:"latest_log_time,omitempty"`- // The average query time of the slow query log.- AverageQueryTime *durationpb.Duration `protobuf:"bytes,4,opt,name=average_query_time,json=averageQueryTime,proto3" json:"average_query_time,omitempty"`- // The maximum query time of the slow query log.- MaximumQueryTime *durationpb.Duration `protobuf:"bytes,5,opt,name=maximum_query_time,json=maximumQueryTime,proto3" json:"maximum_query_time,omitempty"`- // The average rows sent of the slow query log.- AverageRowsSent int64 `protobuf:"varint,6,opt,name=average_rows_sent,json=averageRowsSent,proto3" json:"average_rows_sent,omitempty"`- // The maximum rows sent of the slow query log.- MaximumRowsSent int64 `protobuf:"varint,7,opt,name=maximum_rows_sent,json=maximumRowsSent,proto3" json:"maximum_rows_sent,omitempty"`- // The average rows examined of the slow query log.- AverageRowsExamined int64 `protobuf:"varint,8,opt,name=average_rows_examined,json=averageRowsExamined,proto3" json:"average_rows_examined,omitempty"`- // The maximum rows examined of the slow query log.- MaximumRowsExamined int64 `protobuf:"varint,9,opt,name=maximum_rows_examined,json=maximumRowsExamined,proto3" json:"maximum_rows_examined,omitempty"`- // The percentage of the query time.- QueryTimePercent float64 `protobuf:"fixed64,10,opt,name=query_time_percent,json=queryTimePercent,proto3" json:"query_time_percent,omitempty"`- // The percentage of the count.- CountPercent float64 `protobuf:"fixed64,11,opt,name=count_percent,json=countPercent,proto3" json:"count_percent,omitempty"`- // Samples are details of the sample slow query logs with the same- // fingerprint.- Samples []*SlowQueryDetails `protobuf:"bytes,12,rep,name=samples,proto3" json:"samples,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SlowQueryStatistics) Reset() {- *x = SlowQueryStatistics{}- mi := &file_v1_database_service_proto_msgTypes[41]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SlowQueryStatistics) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SlowQueryStatistics) ProtoMessage() {}--func (x *SlowQueryStatistics) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[41]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SlowQueryStatistics.ProtoReflect.Descriptor instead.-func (*SlowQueryStatistics) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{41}-}--func (x *SlowQueryStatistics) GetSqlFingerprint() string {- if x != nil {- return x.SqlFingerprint- }- return ""-}--func (x *SlowQueryStatistics) GetCount() int64 {- if x != nil {- return x.Count- }- return 0-}--func (x *SlowQueryStatistics) GetLatestLogTime() *timestamppb.Timestamp {- if x != nil {- return x.LatestLogTime- }- return nil-}--func (x *SlowQueryStatistics) GetAverageQueryTime() *durationpb.Duration {- if x != nil {- return x.AverageQueryTime- }- return nil-}--func (x *SlowQueryStatistics) GetMaximumQueryTime() *durationpb.Duration {- if x != nil {- return x.MaximumQueryTime- }- return nil-}--func (x *SlowQueryStatistics) GetAverageRowsSent() int64 {- if x != nil {- return x.AverageRowsSent- }- return 0-}--func (x *SlowQueryStatistics) GetMaximumRowsSent() int64 {- if x != nil {- return x.MaximumRowsSent- }- return 0-}--func (x *SlowQueryStatistics) GetAverageRowsExamined() int64 {- if x != nil {- return x.AverageRowsExamined- }- return 0-}--func (x *SlowQueryStatistics) GetMaximumRowsExamined() int64 {- if x != nil {- return x.MaximumRowsExamined- }- return 0-}--func (x *SlowQueryStatistics) GetQueryTimePercent() float64 {- if x != nil {- return x.QueryTimePercent- }- return 0-}--func (x *SlowQueryStatistics) GetCountPercent() float64 {- if x != nil {- return x.CountPercent- }- return 0-}--func (x *SlowQueryStatistics) GetSamples() []*SlowQueryDetails {- if x != nil {- return x.Samples- }- return nil-}--// SlowQueryDetails is the details of the slow query log.-type SlowQueryDetails struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The start time of the slow query log.- StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`- // The query time of the slow query log.- QueryTime *durationpb.Duration `protobuf:"bytes,2,opt,name=query_time,json=queryTime,proto3" json:"query_time,omitempty"`- // The lock time of the slow query log.- LockTime *durationpb.Duration `protobuf:"bytes,3,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`- // The rows sent of the slow query log.- RowsSent int64 `protobuf:"varint,4,opt,name=rows_sent,json=rowsSent,proto3" json:"rows_sent,omitempty"`- // The rows examined of the slow query log.- RowsExamined int64 `protobuf:"varint,5,opt,name=rows_examined,json=rowsExamined,proto3" json:"rows_examined,omitempty"`- // The sql text of the slow query log.- SqlText string `protobuf:"bytes,6,opt,name=sql_text,json=sqlText,proto3" json:"sql_text,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SlowQueryDetails) Reset() {- *x = SlowQueryDetails{}- mi := &file_v1_database_service_proto_msgTypes[42]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SlowQueryDetails) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SlowQueryDetails) ProtoMessage() {}--func (x *SlowQueryDetails) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[42]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SlowQueryDetails.ProtoReflect.Descriptor instead.-func (*SlowQueryDetails) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{42}-}--func (x *SlowQueryDetails) GetStartTime() *timestamppb.Timestamp {- if x != nil {- return x.StartTime- }- return nil-}--func (x *SlowQueryDetails) GetQueryTime() *durationpb.Duration {- if x != nil {- return x.QueryTime- }- return nil-}--func (x *SlowQueryDetails) GetLockTime() *durationpb.Duration {- if x != nil {- return x.LockTime- }- return nil-}--func (x *SlowQueryDetails) GetRowsSent() int64 {- if x != nil {- return x.RowsSent- }- return 0-}--func (x *SlowQueryDetails) GetRowsExamined() int64 {- if x != nil {- return x.RowsExamined- }- return 0-}--func (x *SlowQueryDetails) GetSqlText() string {- if x != nil {- return x.SqlText- }- return ""-}-type ListSecretsRequest struct {state protoimpl.MessageState `protogen:"open.v1"`// The parent of the secret.@@ -4585,7 +4153,7 @@ type ListSecretsRequest struct {func (x *ListSecretsRequest) Reset() {*x = ListSecretsRequest{}- mi := &file_v1_database_service_proto_msgTypes[43]+ mi := &file_v1_database_service_proto_msgTypes[38]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4597,7 +4165,7 @@ func (x *ListSecretsRequest) String() string {func (*ListSecretsRequest) ProtoMessage() {}func (x *ListSecretsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[43]+ mi := &file_v1_database_service_proto_msgTypes[38]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4610,7 +4178,7 @@ func (x *ListSecretsRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ListSecretsRequest.ProtoReflect.Descriptor instead.func (*ListSecretsRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{43}+ return file_v1_database_service_proto_rawDescGZIP(), []int{38}}func (x *ListSecretsRequest) GetParent() string {@@ -4647,7 +4215,7 @@ type ListSecretsResponse struct {func (x *ListSecretsResponse) Reset() {*x = ListSecretsResponse{}- mi := &file_v1_database_service_proto_msgTypes[44]+ mi := &file_v1_database_service_proto_msgTypes[39]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4659,7 +4227,7 @@ func (x *ListSecretsResponse) String() string {func (*ListSecretsResponse) ProtoMessage() {}func (x *ListSecretsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[44]+ mi := &file_v1_database_service_proto_msgTypes[39]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4672,7 +4240,7 @@ func (x *ListSecretsResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ListSecretsResponse.ProtoReflect.Descriptor instead.func (*ListSecretsResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{44}+ return file_v1_database_service_proto_rawDescGZIP(), []int{39}}func (x *ListSecretsResponse) GetSecrets() []*Secret {@@ -4703,7 +4271,7 @@ type UpdateSecretRequest struct {func (x *UpdateSecretRequest) Reset() {*x = UpdateSecretRequest{}- mi := &file_v1_database_service_proto_msgTypes[45]+ mi := &file_v1_database_service_proto_msgTypes[40]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4715,7 +4283,7 @@ func (x *UpdateSecretRequest) String() string {func (*UpdateSecretRequest) ProtoMessage() {}func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[45]+ mi := &file_v1_database_service_proto_msgTypes[40]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4728,7 +4296,7 @@ func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use UpdateSecretRequest.ProtoReflect.Descriptor instead.func (*UpdateSecretRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{45}+ return file_v1_database_service_proto_rawDescGZIP(), []int{40}}func (x *UpdateSecretRequest) GetSecret() *Secret {@@ -4764,7 +4332,7 @@ type DeleteSecretRequest struct {func (x *DeleteSecretRequest) Reset() {*x = DeleteSecretRequest{}- mi := &file_v1_database_service_proto_msgTypes[46]+ mi := &file_v1_database_service_proto_msgTypes[41]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4776,7 +4344,7 @@ func (x *DeleteSecretRequest) String() string {func (*DeleteSecretRequest) ProtoMessage() {}func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[46]+ mi := &file_v1_database_service_proto_msgTypes[41]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4789,7 +4357,7 @@ func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use DeleteSecretRequest.ProtoReflect.Descriptor instead.func (*DeleteSecretRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{46}+ return file_v1_database_service_proto_rawDescGZIP(), []int{41}}func (x *DeleteSecretRequest) GetName() string {@@ -4820,7 +4388,7 @@ type Secret struct {func (x *Secret) Reset() {*x = Secret{}- mi := &file_v1_database_service_proto_msgTypes[47]+ mi := &file_v1_database_service_proto_msgTypes[42]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4832,7 +4400,7 @@ func (x *Secret) String() string {func (*Secret) ProtoMessage() {}func (x *Secret) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[47]+ mi := &file_v1_database_service_proto_msgTypes[42]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4845,7 +4413,7 @@ func (x *Secret) ProtoReflect() protoreflect.Message {// Deprecated: Use Secret.ProtoReflect.Descriptor instead.func (*Secret) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{47}+ return file_v1_database_service_proto_rawDescGZIP(), []int{42}}func (x *Secret) GetName() string {@@ -4883,125 +4451,6 @@ func (x *Secret) GetDescription() string {return ""}-// AdviseIndexRequest is the request of advising index.-type AdviseIndexRequest struct {- state protoimpl.MessageState `protogen:"open.v1"`- // Format: instances/{instance}/databases/{database}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The statement to be advised.- Statement string `protobuf:"bytes,2,opt,name=statement,proto3" json:"statement,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *AdviseIndexRequest) Reset() {- *x = AdviseIndexRequest{}- mi := &file_v1_database_service_proto_msgTypes[48]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *AdviseIndexRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*AdviseIndexRequest) ProtoMessage() {}--func (x *AdviseIndexRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[48]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use AdviseIndexRequest.ProtoReflect.Descriptor instead.-func (*AdviseIndexRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{48}-}--func (x *AdviseIndexRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *AdviseIndexRequest) GetStatement() string {- if x != nil {- return x.Statement- }- return ""-}--// AdviseIndexResponse is the response of advising index.-type AdviseIndexResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The current index of the statement used.- CurrentIndex string `protobuf:"bytes,1,opt,name=current_index,json=currentIndex,proto3" json:"current_index,omitempty"`- // The suggested index of the statement.- Suggestion string `protobuf:"bytes,2,opt,name=suggestion,proto3" json:"suggestion,omitempty"`- // The create index statement of the suggested index.- CreateIndexStatement string `protobuf:"bytes,3,opt,name=create_index_statement,json=createIndexStatement,proto3" json:"create_index_statement,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *AdviseIndexResponse) Reset() {- *x = AdviseIndexResponse{}- mi := &file_v1_database_service_proto_msgTypes[49]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *AdviseIndexResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*AdviseIndexResponse) ProtoMessage() {}--func (x *AdviseIndexResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[49]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use AdviseIndexResponse.ProtoReflect.Descriptor instead.-func (*AdviseIndexResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{49}-}--func (x *AdviseIndexResponse) GetCurrentIndex() string {- if x != nil {- return x.CurrentIndex- }- return ""-}--func (x *AdviseIndexResponse) GetSuggestion() string {- if x != nil {- return x.Suggestion- }- return ""-}--func (x *AdviseIndexResponse) GetCreateIndexStatement() string {- if x != nil {- return x.CreateIndexStatement- }- return ""-}-type ChangedResources struct {state protoimpl.MessageState `protogen:"open.v1"`Databases []*ChangedResourceDatabase `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`@@ -5011,7 +4460,7 @@ type ChangedResources struct {func (x *ChangedResources) Reset() {*x = ChangedResources{}- mi := &file_v1_database_service_proto_msgTypes[50]+ mi := &file_v1_database_service_proto_msgTypes[43]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5023,7 +4472,7 @@ func (x *ChangedResources) String() string {func (*ChangedResources) ProtoMessage() {}func (x *ChangedResources) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[50]+ mi := &file_v1_database_service_proto_msgTypes[43]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5036,7 +4485,7 @@ func (x *ChangedResources) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResources.ProtoReflect.Descriptor instead.func (*ChangedResources) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{50}+ return file_v1_database_service_proto_rawDescGZIP(), []int{43}}func (x *ChangedResources) GetDatabases() []*ChangedResourceDatabase {@@ -5056,7 +4505,7 @@ type ChangedResourceDatabase struct {func (x *ChangedResourceDatabase) Reset() {*x = ChangedResourceDatabase{}- mi := &file_v1_database_service_proto_msgTypes[51]+ mi := &file_v1_database_service_proto_msgTypes[44]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5068,7 +4517,7 @@ func (x *ChangedResourceDatabase) String() string {func (*ChangedResourceDatabase) ProtoMessage() {}func (x *ChangedResourceDatabase) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[51]+ mi := &file_v1_database_service_proto_msgTypes[44]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5081,7 +4530,7 @@ func (x *ChangedResourceDatabase) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceDatabase.ProtoReflect.Descriptor instead.func (*ChangedResourceDatabase) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{51}+ return file_v1_database_service_proto_rawDescGZIP(), []int{44}}func (x *ChangedResourceDatabase) GetName() string {@@ -5111,7 +4560,7 @@ type ChangedResourceSchema struct {func (x *ChangedResourceSchema) Reset() {*x = ChangedResourceSchema{}- mi := &file_v1_database_service_proto_msgTypes[52]+ mi := &file_v1_database_service_proto_msgTypes[45]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5123,7 +4572,7 @@ func (x *ChangedResourceSchema) String() string {func (*ChangedResourceSchema) ProtoMessage() {}func (x *ChangedResourceSchema) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[52]+ mi := &file_v1_database_service_proto_msgTypes[45]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5136,7 +4585,7 @@ func (x *ChangedResourceSchema) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceSchema.ProtoReflect.Descriptor instead.func (*ChangedResourceSchema) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{52}+ return file_v1_database_service_proto_rawDescGZIP(), []int{45}}func (x *ChangedResourceSchema) GetName() string {@@ -5185,7 +4634,7 @@ type ChangedResourceTable struct {func (x *ChangedResourceTable) Reset() {*x = ChangedResourceTable{}- mi := &file_v1_database_service_proto_msgTypes[53]+ mi := &file_v1_database_service_proto_msgTypes[46]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5197,7 +4646,7 @@ func (x *ChangedResourceTable) String() string {func (*ChangedResourceTable) ProtoMessage() {}func (x *ChangedResourceTable) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[53]+ mi := &file_v1_database_service_proto_msgTypes[46]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5210,7 +4659,7 @@ func (x *ChangedResourceTable) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceTable.ProtoReflect.Descriptor instead.func (*ChangedResourceTable) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{53}+ return file_v1_database_service_proto_rawDescGZIP(), []int{46}}func (x *ChangedResourceTable) GetName() string {@@ -5238,7 +4687,7 @@ type ChangedResourceView struct {func (x *ChangedResourceView) Reset() {*x = ChangedResourceView{}- mi := &file_v1_database_service_proto_msgTypes[54]+ mi := &file_v1_database_service_proto_msgTypes[47]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5250,7 +4699,7 @@ func (x *ChangedResourceView) String() string {func (*ChangedResourceView) ProtoMessage() {}func (x *ChangedResourceView) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[54]+ mi := &file_v1_database_service_proto_msgTypes[47]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5263,7 +4712,7 @@ func (x *ChangedResourceView) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceView.ProtoReflect.Descriptor instead.func (*ChangedResourceView) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{54}+ return file_v1_database_service_proto_rawDescGZIP(), []int{47}}func (x *ChangedResourceView) GetName() string {@@ -5291,7 +4740,7 @@ type ChangedResourceFunction struct {func (x *ChangedResourceFunction) Reset() {*x = ChangedResourceFunction{}- mi := &file_v1_database_service_proto_msgTypes[55]+ mi := &file_v1_database_service_proto_msgTypes[48]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5303,7 +4752,7 @@ func (x *ChangedResourceFunction) String() string {func (*ChangedResourceFunction) ProtoMessage() {}func (x *ChangedResourceFunction) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[55]+ mi := &file_v1_database_service_proto_msgTypes[48]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5316,7 +4765,7 @@ func (x *ChangedResourceFunction) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceFunction.ProtoReflect.Descriptor instead.func (*ChangedResourceFunction) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{55}+ return file_v1_database_service_proto_rawDescGZIP(), []int{48}}func (x *ChangedResourceFunction) GetName() string {@@ -5344,7 +4793,7 @@ type ChangedResourceProcedure struct {func (x *ChangedResourceProcedure) Reset() {*x = ChangedResourceProcedure{}- mi := &file_v1_database_service_proto_msgTypes[56]+ mi := &file_v1_database_service_proto_msgTypes[49]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5356,7 +4805,7 @@ func (x *ChangedResourceProcedure) String() string {func (*ChangedResourceProcedure) ProtoMessage() {}func (x *ChangedResourceProcedure) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[56]+ mi := &file_v1_database_service_proto_msgTypes[49]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5369,7 +4818,7 @@ func (x *ChangedResourceProcedure) ProtoReflect() protoreflect.Message {// Deprecated: Use ChangedResourceProcedure.ProtoReflect.Descriptor instead.func (*ChangedResourceProcedure) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{56}+ return file_v1_database_service_proto_rawDescGZIP(), []int{49}}func (x *ChangedResourceProcedure) GetName() string {@@ -5408,7 +4857,7 @@ type ListRevisionsRequest struct {func (x *ListRevisionsRequest) Reset() {*x = ListRevisionsRequest{}- mi := &file_v1_database_service_proto_msgTypes[57]+ mi := &file_v1_database_service_proto_msgTypes[50]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5420,7 +4869,7 @@ func (x *ListRevisionsRequest) String() string {func (*ListRevisionsRequest) ProtoMessage() {}func (x *ListRevisionsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[57]+ mi := &file_v1_database_service_proto_msgTypes[50]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5433,7 +4882,7 @@ func (x *ListRevisionsRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ListRevisionsRequest.ProtoReflect.Descriptor instead.func (*ListRevisionsRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{57}+ return file_v1_database_service_proto_rawDescGZIP(), []int{50}}func (x *ListRevisionsRequest) GetParent() string {@@ -5476,7 +4925,7 @@ type ListRevisionsResponse struct {func (x *ListRevisionsResponse) Reset() {*x = ListRevisionsResponse{}- mi := &file_v1_database_service_proto_msgTypes[58]+ mi := &file_v1_database_service_proto_msgTypes[51]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5488,7 +4937,7 @@ func (x *ListRevisionsResponse) String() string {func (*ListRevisionsResponse) ProtoMessage() {}func (x *ListRevisionsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[58]+ mi := &file_v1_database_service_proto_msgTypes[51]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5501,7 +4950,7 @@ func (x *ListRevisionsResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ListRevisionsResponse.ProtoReflect.Descriptor instead.func (*ListRevisionsResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{58}+ return file_v1_database_service_proto_rawDescGZIP(), []int{51}}func (x *ListRevisionsResponse) GetRevisions() []*Revision {@@ -5530,7 +4979,7 @@ type CreateRevisionRequest struct {func (x *CreateRevisionRequest) Reset() {*x = CreateRevisionRequest{}- mi := &file_v1_database_service_proto_msgTypes[59]+ mi := &file_v1_database_service_proto_msgTypes[52]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5542,7 +4991,7 @@ func (x *CreateRevisionRequest) String() string {func (*CreateRevisionRequest) ProtoMessage() {}func (x *CreateRevisionRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[59]+ mi := &file_v1_database_service_proto_msgTypes[52]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5555,7 +5004,7 @@ func (x *CreateRevisionRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use CreateRevisionRequest.ProtoReflect.Descriptor instead.func (*CreateRevisionRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{59}+ return file_v1_database_service_proto_rawDescGZIP(), []int{52}}func (x *CreateRevisionRequest) GetParent() string {@@ -5583,7 +5032,7 @@ type GetRevisionRequest struct {func (x *GetRevisionRequest) Reset() {*x = GetRevisionRequest{}- mi := &file_v1_database_service_proto_msgTypes[60]+ mi := &file_v1_database_service_proto_msgTypes[53]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5595,7 +5044,7 @@ func (x *GetRevisionRequest) String() string {func (*GetRevisionRequest) ProtoMessage() {}func (x *GetRevisionRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[60]+ mi := &file_v1_database_service_proto_msgTypes[53]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5608,7 +5057,7 @@ func (x *GetRevisionRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use GetRevisionRequest.ProtoReflect.Descriptor instead.func (*GetRevisionRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{60}+ return file_v1_database_service_proto_rawDescGZIP(), []int{53}}func (x *GetRevisionRequest) GetName() string {@@ -5629,7 +5078,7 @@ type DeleteRevisionRequest struct {func (x *DeleteRevisionRequest) Reset() {*x = DeleteRevisionRequest{}- mi := &file_v1_database_service_proto_msgTypes[61]+ mi := &file_v1_database_service_proto_msgTypes[54]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5641,7 +5090,7 @@ func (x *DeleteRevisionRequest) String() string {func (*DeleteRevisionRequest) ProtoMessage() {}func (x *DeleteRevisionRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[61]+ mi := &file_v1_database_service_proto_msgTypes[54]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5654,7 +5103,7 @@ func (x *DeleteRevisionRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use DeleteRevisionRequest.ProtoReflect.Descriptor instead.func (*DeleteRevisionRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{61}+ return file_v1_database_service_proto_rawDescGZIP(), []int{54}}func (x *DeleteRevisionRequest) GetName() string {@@ -5704,7 +5153,7 @@ type Revision struct {func (x *Revision) Reset() {*x = Revision{}- mi := &file_v1_database_service_proto_msgTypes[62]+ mi := &file_v1_database_service_proto_msgTypes[55]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5716,7 +5165,7 @@ func (x *Revision) String() string {func (*Revision) ProtoMessage() {}func (x *Revision) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[62]+ mi := &file_v1_database_service_proto_msgTypes[55]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5729,7 +5178,7 @@ func (x *Revision) ProtoReflect() protoreflect.Message {// Deprecated: Use Revision.ProtoReflect.Descriptor instead.func (*Revision) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{62}+ return file_v1_database_service_proto_rawDescGZIP(), []int{55}}func (x *Revision) GetName() string {@@ -5882,7 +5331,7 @@ type ListChangelogsRequest struct {func (x *ListChangelogsRequest) Reset() {*x = ListChangelogsRequest{}- mi := &file_v1_database_service_proto_msgTypes[63]+ mi := &file_v1_database_service_proto_msgTypes[56]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5894,7 +5343,7 @@ func (x *ListChangelogsRequest) String() string {func (*ListChangelogsRequest) ProtoMessage() {}func (x *ListChangelogsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[63]+ mi := &file_v1_database_service_proto_msgTypes[56]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5907,7 +5356,7 @@ func (x *ListChangelogsRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ListChangelogsRequest.ProtoReflect.Descriptor instead.func (*ListChangelogsRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{63}+ return file_v1_database_service_proto_rawDescGZIP(), []int{56}}func (x *ListChangelogsRequest) GetParent() string {@@ -5958,7 +5407,7 @@ type ListChangelogsResponse struct {func (x *ListChangelogsResponse) Reset() {*x = ListChangelogsResponse{}- mi := &file_v1_database_service_proto_msgTypes[64]+ mi := &file_v1_database_service_proto_msgTypes[57]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -5970,7 +5419,7 @@ func (x *ListChangelogsResponse) String() string {func (*ListChangelogsResponse) ProtoMessage() {}func (x *ListChangelogsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[64]+ mi := &file_v1_database_service_proto_msgTypes[57]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -5983,7 +5432,7 @@ func (x *ListChangelogsResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ListChangelogsResponse.ProtoReflect.Descriptor instead.func (*ListChangelogsResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{64}+ return file_v1_database_service_proto_rawDescGZIP(), []int{57}}func (x *ListChangelogsResponse) GetChangelogs() []*Changelog {@@ -6014,7 +5463,7 @@ type GetChangelogRequest struct {func (x *GetChangelogRequest) Reset() {*x = GetChangelogRequest{}- mi := &file_v1_database_service_proto_msgTypes[65]+ mi := &file_v1_database_service_proto_msgTypes[58]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -6026,7 +5475,7 @@ func (x *GetChangelogRequest) String() string {func (*GetChangelogRequest) ProtoMessage() {}func (x *GetChangelogRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[65]+ mi := &file_v1_database_service_proto_msgTypes[58]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -6039,7 +5488,7 @@ func (x *GetChangelogRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use GetChangelogRequest.ProtoReflect.Descriptor instead.func (*GetChangelogRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{65}+ return file_v1_database_service_proto_rawDescGZIP(), []int{58}}func (x *GetChangelogRequest) GetName() string {@@ -6096,7 +5545,7 @@ type Changelog struct {func (x *Changelog) Reset() {*x = Changelog{}- mi := &file_v1_database_service_proto_msgTypes[66]+ mi := &file_v1_database_service_proto_msgTypes[59]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -6108,7 +5557,7 @@ func (x *Changelog) String() string {func (*Changelog) ProtoMessage() {}func (x *Changelog) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[66]+ mi := &file_v1_database_service_proto_msgTypes[59]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -6121,7 +5570,7 @@ func (x *Changelog) ProtoReflect() protoreflect.Message {// Deprecated: Use Changelog.ProtoReflect.Descriptor instead.func (*Changelog) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{66}+ return file_v1_database_service_proto_rawDescGZIP(), []int{59}}func (x *Changelog) GetName() string {@@ -6252,7 +5701,7 @@ type GetSchemaStringRequest struct {func (x *GetSchemaStringRequest) Reset() {*x = GetSchemaStringRequest{}- mi := &file_v1_database_service_proto_msgTypes[67]+ mi := &file_v1_database_service_proto_msgTypes[60]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -6264,7 +5713,7 @@ func (x *GetSchemaStringRequest) String() string {func (*GetSchemaStringRequest) ProtoMessage() {}func (x *GetSchemaStringRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[67]+ mi := &file_v1_database_service_proto_msgTypes[60]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -6277,7 +5726,7 @@ func (x *GetSchemaStringRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use GetSchemaStringRequest.ProtoReflect.Descriptor instead.func (*GetSchemaStringRequest) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{67}+ return file_v1_database_service_proto_rawDescGZIP(), []int{60}}func (x *GetSchemaStringRequest) GetName() string {@@ -6317,7 +5766,7 @@ type GetSchemaStringResponse struct {func (x *GetSchemaStringResponse) Reset() {*x = GetSchemaStringResponse{}- mi := &file_v1_database_service_proto_msgTypes[68]+ mi := &file_v1_database_service_proto_msgTypes[61]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -6329,7 +5778,7 @@ func (x *GetSchemaStringResponse) String() string {func (*GetSchemaStringResponse) ProtoMessage() {}func (x *GetSchemaStringResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_database_service_proto_msgTypes[68]+ mi := &file_v1_database_service_proto_msgTypes[61]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -6342,7 +5791,7 @@ func (x *GetSchemaStringResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use GetSchemaStringResponse.ProtoReflect.Descriptor instead.func (*GetSchemaStringResponse) Descriptor() ([]byte, []int) {- return file_v1_database_service_proto_rawDescGZIP(), []int{68}+ return file_v1_database_service_proto_rawDescGZIP(), []int{61}}func (x *GetSchemaStringResponse) GetSchemaString() string {@@ -6364,9 +5813,7 @@ var file_v1_database_service_proto_rawDesc = string([]byte{0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,- 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f,0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70,0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,@@ -6996,287 +6443,113 @@ var file_v1_database_service_proto_rawDesc = string([]byte{0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x22, 0x28, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61,0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63,0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x22, 0x82, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51,- 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2,- 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08,- 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,- 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x5c, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53,- 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79,- 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,- 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x0d, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72,- 0x79, 0x4c, 0x6f, 0x67, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x0c, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,- 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x12, 0x20, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x08,- 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74,- 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73,- 0x74, 0x69, 0x63, 0x73, 0x22, 0xf6, 0x04, 0x0a, 0x13, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65,- 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x27, 0x0a, 0x0f,- 0x73, 0x71, 0x6c, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x71, 0x6c, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72,- 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x6c,- 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,- 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12,- 0x47, 0x0a, 0x12, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79,- 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f,- 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75,- 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x51,- 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x69,- 0x6d, 0x75, 0x6d, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,- 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d,- 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x77,- 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x76,- 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a,- 0x11, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65,- 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,- 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x76, 0x65,- 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e,- 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67,- 0x65, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x32, 0x0a,- 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78,- 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6d, 0x61,- 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65,- 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f,- 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x52, 0x10, 0x71,- 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12,- 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74,- 0x18, 0x0b, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72,- 0x63, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18,- 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74,- 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x9c, 0x02,- 0x0a, 0x10, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,- 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a,- 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x71, 0x75,- 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f,- 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,- 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12,- 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,- 0x28, 0x03, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d,- 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x05, 0x20,- 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65,- 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x71, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x22, 0x88, 0x01, 0x0a,- 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70,- 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,- 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,- 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,- 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53,- 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d,- 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,- 0x63, 0x72, 0x65, 0x74, 0x52, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x26, 0x0a,- 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,- 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xaa, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a,- 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72,- 0x65, 0x74, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,- 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73,- 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a,- 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69,- 0x6e, 0x67, 0x22, 0x49, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72,- 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17,- 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc8, 0x02,- 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 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, 0x43, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69,- 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,- 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61,- 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,- 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,- 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x05,- 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,- 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,- 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x5c, 0xea, 0x41, 0x59, 0x0a,- 0x1b, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3a, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,- 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f,- 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x7d, 0x22, 0x6a, 0x0a, 0x12, 0x41, 0x64, 0x76, 0x69,- 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36,- 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e,- 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,- 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65,- 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49,- 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d,- 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65,- 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f,- 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65,- 0x78, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x74,- 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x56, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67,- 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,- 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x22,- 0x6b, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c,- 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68,- 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, 0xa9, 0x02, 0x0a,- 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x74, 0x61,- 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64,- 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x74,- 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x03,- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x56, 0x69, 0x65, 0x77, 0x52, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, 0x42, 0x0a,- 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,- 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x75,- 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,- 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x18,- 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x6d, 0x61, 0x22, 0x88, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65,+ 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa,+ 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d,+ 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,+ 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a,+ 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18,+ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x07, 0x73, 0x65, 0x63, 0x72,+ 0x65, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,+ 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,+ 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xaa, 0x01, 0x0a, 0x13,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06,+ 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69,+ 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,+ 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73,+ 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f,+ 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65,+ 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,+ 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2,+ 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x22, 0xc8, 0x02, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 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, 0x43, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,+ 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43, 0x0a,+ 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69,+ 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20,+ 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,+ 0x3a, 0x5c, 0xea, 0x41, 0x59, 0x0a, 0x1b, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72,+ 0x65, 0x74, 0x12, 0x3a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x73, 0x65,+ 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x7d, 0x22, 0x56,+ 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18,+ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x52, 0x0a, 0x70, 0x72,- 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x22, 0x56, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e,- 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x03,- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73,- 0x22, 0x55, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x09, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x22, 0x6b, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73,+ 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x73, 0x22, 0xa9, 0x02, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52,+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x12, 0x39, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,+ 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54,+ 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x05,+ 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x69, 0x65, 0x77, 0x52, 0x05, 0x76,+ 0x69, 0x65, 0x77, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x66,+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63,+ 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64,+ 0x75, 0x72, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x22,+ 0x56, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x72,- 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79,+ 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52,- 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x59, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67,- 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69,- 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73,- 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67,- 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x12, 0x12,+ 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x55, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12,0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0xad,- 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17,- 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,- 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,- 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73,- 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x74,- 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73,- 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,- 0x6e, 0x52, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f,- 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54,- 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x88, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52,- 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36,- 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e,- 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69,- 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x42,- 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22,- 0x48, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x76, 0x69, 0x73,- 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4b, 0x0a, 0x15, 0x44, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8b, 0x05, 0x0a, 0x08, 0x52, 0x65, 0x76, 0x69, 0x73,- 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61,- 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x19, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65,- 0x61, 0x73, 0x65, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0b,- 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2,- 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12,- 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x64, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,- 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,- 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04,- 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65,- 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x68,- 0x65, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x68, 0x65,- 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x68, 0x65,- 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42,- 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x32,- 0x35, 0x36, 0x12, 0x22, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18,- 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61,- 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,- 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53,- 0x69, 0x7a, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x49, 0x73, 0x73, 0x75, 0x65, 0x52, 0x05, 0x69, 0x73, 0x73,- 0x75, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x0e,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x19, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52,- 0x07, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x3a, 0x5a, 0xea, 0x41, 0x57, 0x0a, 0x15, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x76, 0x69,- 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f,- 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x76, 0x69, 0x73,- 0x69, 0x6f, 0x6e, 0x7d, 0x22, 0xd3, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61,- 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36,+ 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x59,+ 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a,+ 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x6e, 0x67,+ 0x65, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x18, 0x43, 0x68, 0x61,+ 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x63,+ 0x65, 0x64, 0x75, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x72, 0x61, 0x6e,+ 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x72,+ 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0xad, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36,0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e,0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x06,@@ -7284,354 +6557,409 @@ var file_v1_database_service_proto_rawDesc = string([]byte{0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,- 0x65, 0x6e, 0x12, 0x2e, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,- 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69,- 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x78, 0x0a, 0x16, 0x4c, 0x69,- 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70,- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f,- 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67,- 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 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, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e,- 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe2, 0x41, 0x01, 0x02,- 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f,- 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,- 0x6c, 0x6f, 0x67, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x76, 0x69, 0x65,- 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74,+ 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65,+ 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x74, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76,+ 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33,+ 0x0a, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,+ 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69,+ 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,+ 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,+ 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x88, 0x01, 0x0a, 0x15,+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a,+ 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x08, 0x72, 0x65,+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76,+ 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02,+ 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f,+ 0x6d, 0x2f, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x22, 0x4b, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69,+ 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17,+ 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52,+ 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8b, 0x05,+ 0x0a, 0x08, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33,+ 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x19, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,+ 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,+ 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,+ 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72,+ 0x12, 0x41, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,+ 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54,+ 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,+ 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,+ 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,+ 0x42, 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74,+ 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36,+ 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x73, 0x68,+ 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x32, 0x35, 0x36, 0x12, 0x22, 0x0a, 0x09, 0x73, 0x74, 0x61,+ 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41,+ 0x01, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a,+ 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,+ 0x0c, 0x20, 0x01, 0x28, 0x03, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61,+ 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x69, 0x73,+ 0x73, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x49, 0x73, 0x73,+ 0x75, 0x65, 0x52, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x73,+ 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x19, 0xfa, 0x41, 0x16,+ 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54,+ 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x3a,+ 0x5a, 0xea, 0x41, 0x57, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,+ 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x69, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73,+ 0x2f, 0x7b, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x22, 0xd3, 0x01, 0x0a, 0x15,+ 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a,+ 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,+ 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61,+ 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,+ 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2e, 0x0a, 0x04, 0x76, 0x69, 0x65,+ 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x56,- 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x64, 0x6c,- 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73,- 0x64, 0x6c, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0xfc, 0x06, 0x0a, 0x09, 0x43, 0x68, 0x61,- 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,- 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x2e,- 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c,- 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e,- 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06,- 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53,- 0x69, 0x7a, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74,- 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74,- 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73,- 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x76,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x73,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03,- 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x69, 0x7a, 0x65,- 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72,- 0x75, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72,- 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72,- 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67,- 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,- 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,- 0x74, 0x79, 0x70, 0x65, 0x22, 0x43, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,- 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e,- 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a,- 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, 0x65, 0x0a, 0x04, 0x54, 0x79, 0x70,- 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x53, 0x45, 0x4c,- 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45,- 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44,- 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47,- 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x06,- 0x3a, 0x65, 0xea, 0x41, 0x62, 0x0a, 0x1e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e,- 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x40, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d,- 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x63, 0x68, 0x61,- 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x7d, 0x22, 0xdd, 0x02, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69,- 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,- 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x9a, 0x01, 0x0a, 0x0a, 0x4f,- 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x42, 0x4a,- 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,- 0x53, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x10, 0x02,- 0x12, 0x09, 0x0a, 0x05, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x56,- 0x49, 0x45, 0x57, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x4d, 0x41, 0x54, 0x45, 0x52, 0x49, 0x41,- 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08,- 0x46, 0x55, 0x4e, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52,- 0x4f, 0x43, 0x45, 0x44, 0x55, 0x52, 0x45, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x51,- 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x08, 0x22, 0x3e, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x74, 0x72,- 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2a, 0x81, 0x01, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x56, 0x69, 0x65, 0x77,- 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54,- 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x41, 0x54, 0x41,- 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49,- 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x41,- 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f,- 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x62, 0x0a, 0x0d, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1e, 0x0a, 0x1a,- 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55,- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14,- 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42,- 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45,- 0x4c, 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32,- 0xb0, 0x1c, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76,- 0x69, 0x63, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x49, 0xda, 0x41, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xeb, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0x92, 0x01, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x70, 0x5a, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x5a, 0x25, 0x12, 0x23, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70,- 0x61, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x73, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x12, 0xc0, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,+ 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c,+ 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,+ 0x72, 0x22, 0x78, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c,+ 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x63,+ 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68,+ 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c,+ 0x6f, 0x67, 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, 0xa1, 0x01, 0x0a, 0x13,+ 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x27, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x12, 0x2e, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,+ 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77,+ 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x64, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x64, 0x6c, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22,+ 0xfc, 0x06, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,+ 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35,+ 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,+ 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73,+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65,+ 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,+ 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74,+ 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61,+ 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74,+ 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x07, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x68,+ 0x65, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x08, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03,+ 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b,+ 0x70, 0x72, 0x65, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x28, 0x0a,+ 0x10, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x69, 0x7a,+ 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65,+ 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12, 0x19, 0x0a,+ 0x08, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x07, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,+ 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,+ 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0f,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4a,+ 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52,+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79,+ 0x70, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67,+ 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x43, 0x0a, 0x06, 0x53,+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a,+ 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f,+ 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03,+ 0x22, 0x65, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c,+ 0x0a, 0x08, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,+ 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47,+ 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49,+ 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x08, 0x0a,+ 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x06, 0x3a, 0x65, 0xea, 0x41, 0x62, 0x0a, 0x1e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x40, 0x69, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f,+ 0x67, 0x73, 0x2f, 0x7b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x7d, 0x22, 0xdd,+ 0x02, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69,+ 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x17,+ 0x0a, 0x15, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a,+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x62, 0x6a,+ 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63,+ 0x74, 0x22, 0x9a, 0x01, 0x0a, 0x0a, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65,+ 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a,+ 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53,+ 0x43, 0x48, 0x45, 0x4d, 0x41, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x41, 0x42, 0x4c, 0x45,+ 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x56, 0x49, 0x45, 0x57, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11,+ 0x4d, 0x41, 0x54, 0x45, 0x52, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x5f, 0x56, 0x49, 0x45,+ 0x57, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x55, 0x4e, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10,+ 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x44, 0x55, 0x52, 0x45, 0x10, 0x07,+ 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x08, 0x22, 0x3e,+ 0x0a, 0x17, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e,+ 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2a, 0x81,+ 0x01, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64,+ 0x61, 0x74, 0x61, 0x56, 0x69, 0x65, 0x77, 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41, 0x54, 0x41, 0x42,+ 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45,+ 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x20, 0x0a, 0x1c, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41,+ 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10,+ 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45,+ 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c,+ 0x10, 0x02, 0x2a, 0x62, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x56,+ 0x69, 0x65, 0x77, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x4f, 0x47,+ 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,+ 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x4f, 0x47,+ 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x17, 0x0a,+ 0x13, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f,+ 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0xca, 0x19, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x0b, 0x47,+ 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x22, 0x73, 0xda, 0x41, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x13, 0x62,- 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37,- 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc5, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63,- 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,- 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42,- 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea,- 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22,- 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12,- 0xa0, 0x01, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,- 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x90, 0xea, 0x30, 0x01,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79,- 0x6e, 0x63, 0x12, 0xb0, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,- 0x74, 0x61, 0x22, 0x51, 0x8a, 0xea, 0x30, 0x16, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x90, 0xea,- 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61,- 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22,- 0x4f, 0x8a, 0xea, 0x30, 0x16, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x73, 0x2e, 0x67, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x90, 0xea, 0x30, 0x01, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d,- 0x12, 0xe1, 0x01, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,- 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69,- 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69,- 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x22, 0x91, 0x01, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x73, 0x3a, 0x01, 0x2a, 0x5a, 0x3f, 0x3a, 0x01, 0x2a, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61,- 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x12, 0xad, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f,- 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51,- 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,- 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x22, 0x4f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea,- 0x30, 0x13, 0x62, 0x62, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73,- 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12,- 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65,- 0x72, 0x69, 0x65, 0x73, 0x12, 0xae, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63,- 0x72, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x17, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30,- 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65,- 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0xaf, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65,- 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x68, 0x8a,- 0xea, 0x30, 0x19, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65,- 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01,- 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x06, 0x73, 0x65, 0x63, 0x72,- 0x65, 0x74, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e,+ 0x73, 0x65, 0x22, 0x49, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x10, 0x62,+ 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90,+ 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b,0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63,- 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa3, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63,- 0x72, 0x65, 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, 0x59, 0x8a, 0xea, 0x30, 0x19, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74,- 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x2a,- 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xeb, 0x01,+ 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12,+ 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,+ 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x01, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x11,+ 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x73,+ 0x74, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x70, 0x5a, 0x24, 0x12, 0x22, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x5a, 0x25, 0x12, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,+ 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0xc0, 0x01, 0x0a, 0x0e,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x22,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x73, 0xda, 0x41, 0x14, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,+ 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30,+ 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc5,+ 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x8a, 0xea,+ 0x30, 0x13, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x75,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x8a, 0xea,+ 0x30, 0x11, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x73,+ 0x79, 0x6e, 0x63, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a,+ 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x12, 0xb0, 0x01, 0x0a, 0x13, 0x47, 0x65,+ 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,+ 0x61, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64,+ 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x51, 0x8a, 0xea, 0x30, 0x16, 0x62,+ 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12,+ 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,- 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb3, 0x01,- 0x0a, 0x0b, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69,- 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76,- 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x22, 0x61, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x18, 0x62,- 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x61, 0x64, 0x76, 0x69,- 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x32, 0x22, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,+ 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0xa8, 0x01, 0x0a,+ 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x4f, 0x8a, 0xea, 0x30, 0x16, 0x62, 0x62, 0x2e, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0xe1, 0x01, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x91, 0x01, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62,+ 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea,+ 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x73, 0x3a, 0x01, 0x2a, 0x5a, 0x3f, 0x3a, 0x01, 0x2a,+ 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a,+ 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2d, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0xae, 0x01, 0x0a, 0x0b,+ 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65,+ 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53,+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c,+ 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x17, 0x62, 0x62, 0x2e,+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e,+ 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0xaf, 0x01, 0x0a,+ 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,+ 0x63, 0x72, 0x65, 0x74, 0x22, 0x68, 0x8a, 0xea, 0x30, 0x19, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x3d, 0x3a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa3,+ 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,+ 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,+ 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 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, 0x59, 0x8a, 0xea, 0x30, 0x19, 0x62,+ 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,+ 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x2a, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb0, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76,+ 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,+ 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69,+ 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0xda,+ 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e, 0x72,+ 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30,+ 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65,+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52,+ 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,+ 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22,+ 0x55, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x72,+ 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69,+ 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74,+ 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65,+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69,+ 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5b, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e, 0x72, 0x65, 0x76,+ 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30,+ 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,+ 0x6e, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e,- 0x64, 0x65, 0x78, 0x12, 0xb0, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69,- 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73,- 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0xda, 0x41,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e, 0x72, 0x65,- 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x76,- 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65,- 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x55,- 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x72, 0x65,- 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,+ 0x73, 0x12, 0xa6, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69,+ 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,+ 0x6e, 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, 0x58, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e,+ 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x2a, 0x2e, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65,+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb5, 0x01, 0x0a, 0x0e, 0x4c,+ 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f,+ 0x67, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f,+ 0x67, 0x73, 0x12, 0xa1, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x6c, 0x6f, 0x67, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x22, 0x57, 0xda,+ 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e, 0x63, 0x68, 0x61,+ 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,- 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76,- 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x73,- 0x69, 0x6f, 0x6e, 0x22, 0x5b, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e, 0x72, 0x65, 0x76, 0x69,- 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,- 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73,- 0x12, 0xa6, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73,- 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,- 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,- 0x58, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e, 0x72,- 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90,- 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x2a, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76,- 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb5, 0x01, 0x0a, 0x0e, 0x4c, 0x69,- 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,- 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67,- 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31,- 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c,+ 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xba, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea,+ 0x30, 0x16, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67,+ 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67,- 0x73, 0x12, 0xa1, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c,- 0x6f, 0x67, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x22, 0x57, 0xda, 0x41,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e, 0x63, 0x68, 0x61, 0x6e,- 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f,- 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xba, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70,- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30,- 0x16, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65,- 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e,- 0x67, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,- 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69,+ 0x6e, 0x67, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,+ 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,})var (@@ -7647,7 +6975,7 @@ func file_v1_database_service_proto_rawDescGZIP() []byte {}var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 11)-var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 70)+var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 63)var file_v1_database_service_proto_goTypes = []any{(DatabaseMetadataView)(0), // 0: bytebase.v1.DatabaseMetadataView(ChangelogView)(0), // 1: bytebase.v1.ChangelogView@@ -7698,175 +7026,154 @@ var file_v1_database_service_proto_goTypes = []any{(*ExtensionMetadata)(nil), // 46: bytebase.v1.ExtensionMetadata(*ForeignKeyMetadata)(nil), // 47: bytebase.v1.ForeignKeyMetadata(*DatabaseSchema)(nil), // 48: bytebase.v1.DatabaseSchema- (*ListSlowQueriesRequest)(nil), // 49: bytebase.v1.ListSlowQueriesRequest- (*ListSlowQueriesResponse)(nil), // 50: bytebase.v1.ListSlowQueriesResponse- (*SlowQueryLog)(nil), // 51: bytebase.v1.SlowQueryLog- (*SlowQueryStatistics)(nil), // 52: bytebase.v1.SlowQueryStatistics- (*SlowQueryDetails)(nil), // 53: bytebase.v1.SlowQueryDetails- (*ListSecretsRequest)(nil), // 54: bytebase.v1.ListSecretsRequest- (*ListSecretsResponse)(nil), // 55: bytebase.v1.ListSecretsResponse- (*UpdateSecretRequest)(nil), // 56: bytebase.v1.UpdateSecretRequest- (*DeleteSecretRequest)(nil), // 57: bytebase.v1.DeleteSecretRequest- (*Secret)(nil), // 58: bytebase.v1.Secret- (*AdviseIndexRequest)(nil), // 59: bytebase.v1.AdviseIndexRequest- (*AdviseIndexResponse)(nil), // 60: bytebase.v1.AdviseIndexResponse- (*ChangedResources)(nil), // 61: bytebase.v1.ChangedResources- (*ChangedResourceDatabase)(nil), // 62: bytebase.v1.ChangedResourceDatabase- (*ChangedResourceSchema)(nil), // 63: bytebase.v1.ChangedResourceSchema- (*ChangedResourceTable)(nil), // 64: bytebase.v1.ChangedResourceTable- (*ChangedResourceView)(nil), // 65: bytebase.v1.ChangedResourceView- (*ChangedResourceFunction)(nil), // 66: bytebase.v1.ChangedResourceFunction- (*ChangedResourceProcedure)(nil), // 67: bytebase.v1.ChangedResourceProcedure- (*ListRevisionsRequest)(nil), // 68: bytebase.v1.ListRevisionsRequest- (*ListRevisionsResponse)(nil), // 69: bytebase.v1.ListRevisionsResponse- (*CreateRevisionRequest)(nil), // 70: bytebase.v1.CreateRevisionRequest- (*GetRevisionRequest)(nil), // 71: bytebase.v1.GetRevisionRequest- (*DeleteRevisionRequest)(nil), // 72: bytebase.v1.DeleteRevisionRequest- (*Revision)(nil), // 73: bytebase.v1.Revision- (*ListChangelogsRequest)(nil), // 74: bytebase.v1.ListChangelogsRequest- (*ListChangelogsResponse)(nil), // 75: bytebase.v1.ListChangelogsResponse- (*GetChangelogRequest)(nil), // 76: bytebase.v1.GetChangelogRequest- (*Changelog)(nil), // 77: bytebase.v1.Changelog- (*GetSchemaStringRequest)(nil), // 78: bytebase.v1.GetSchemaStringRequest- (*GetSchemaStringResponse)(nil), // 79: bytebase.v1.GetSchemaStringResponse- nil, // 80: bytebase.v1.Database.LabelsEntry- (*fieldmaskpb.FieldMask)(nil), // 81: google.protobuf.FieldMask- (State)(0), // 82: bytebase.v1.State- (*timestamppb.Timestamp)(nil), // 83: google.protobuf.Timestamp- (*InstanceResource)(nil), // 84: bytebase.v1.InstanceResource- (*durationpb.Duration)(nil), // 85: google.protobuf.Duration- (*Range)(nil), // 86: bytebase.v1.Range- (*emptypb.Empty)(nil), // 87: google.protobuf.Empty+ (*ListSecretsRequest)(nil), // 49: bytebase.v1.ListSecretsRequest+ (*ListSecretsResponse)(nil), // 50: bytebase.v1.ListSecretsResponse+ (*UpdateSecretRequest)(nil), // 51: bytebase.v1.UpdateSecretRequest+ (*DeleteSecretRequest)(nil), // 52: bytebase.v1.DeleteSecretRequest+ (*Secret)(nil), // 53: bytebase.v1.Secret+ (*ChangedResources)(nil), // 54: bytebase.v1.ChangedResources+ (*ChangedResourceDatabase)(nil), // 55: bytebase.v1.ChangedResourceDatabase+ (*ChangedResourceSchema)(nil), // 56: bytebase.v1.ChangedResourceSchema+ (*ChangedResourceTable)(nil), // 57: bytebase.v1.ChangedResourceTable+ (*ChangedResourceView)(nil), // 58: bytebase.v1.ChangedResourceView+ (*ChangedResourceFunction)(nil), // 59: bytebase.v1.ChangedResourceFunction+ (*ChangedResourceProcedure)(nil), // 60: bytebase.v1.ChangedResourceProcedure+ (*ListRevisionsRequest)(nil), // 61: bytebase.v1.ListRevisionsRequest+ (*ListRevisionsResponse)(nil), // 62: bytebase.v1.ListRevisionsResponse+ (*CreateRevisionRequest)(nil), // 63: bytebase.v1.CreateRevisionRequest+ (*GetRevisionRequest)(nil), // 64: bytebase.v1.GetRevisionRequest+ (*DeleteRevisionRequest)(nil), // 65: bytebase.v1.DeleteRevisionRequest+ (*Revision)(nil), // 66: bytebase.v1.Revision+ (*ListChangelogsRequest)(nil), // 67: bytebase.v1.ListChangelogsRequest+ (*ListChangelogsResponse)(nil), // 68: bytebase.v1.ListChangelogsResponse+ (*GetChangelogRequest)(nil), // 69: bytebase.v1.GetChangelogRequest+ (*Changelog)(nil), // 70: bytebase.v1.Changelog+ (*GetSchemaStringRequest)(nil), // 71: bytebase.v1.GetSchemaStringRequest+ (*GetSchemaStringResponse)(nil), // 72: bytebase.v1.GetSchemaStringResponse+ nil, // 73: bytebase.v1.Database.LabelsEntry+ (*fieldmaskpb.FieldMask)(nil), // 74: google.protobuf.FieldMask+ (State)(0), // 75: bytebase.v1.State+ (*timestamppb.Timestamp)(nil), // 76: google.protobuf.Timestamp+ (*InstanceResource)(nil), // 77: bytebase.v1.InstanceResource+ (*Range)(nil), // 78: bytebase.v1.Range+ (*emptypb.Empty)(nil), // 79: google.protobuf.Empty}var file_v1_database_service_proto_depIdxs = []int32{- 23, // 0: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database- 23, // 1: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database- 81, // 2: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask- 14, // 3: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest- 23, // 4: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database- 0, // 5: bytebase.v1.GetDatabaseMetadataRequest.view:type_name -> bytebase.v1.DatabaseMetadataView- 82, // 6: bytebase.v1.Database.state:type_name -> bytebase.v1.State- 83, // 7: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp- 80, // 8: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry- 84, // 9: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource- 25, // 10: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata- 46, // 11: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata- 31, // 12: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata- 30, // 13: bytebase.v1.SchemaMetadata.external_tables:type_name -> bytebase.v1.ExternalTableMetadata- 36, // 14: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata- 40, // 15: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata- 41, // 16: bytebase.v1.SchemaMetadata.procedures:type_name -> bytebase.v1.ProcedureMetadata- 44, // 17: bytebase.v1.SchemaMetadata.streams:type_name -> bytebase.v1.StreamMetadata- 43, // 18: bytebase.v1.SchemaMetadata.tasks:type_name -> bytebase.v1.TaskMetadata- 38, // 19: bytebase.v1.SchemaMetadata.materialized_views:type_name -> bytebase.v1.MaterializedViewMetadata- 42, // 20: bytebase.v1.SchemaMetadata.packages:type_name -> bytebase.v1.PackageMetadata- 28, // 21: bytebase.v1.SchemaMetadata.sequences:type_name -> bytebase.v1.SequenceMetadata- 27, // 22: bytebase.v1.SchemaMetadata.events:type_name -> bytebase.v1.EventMetadata- 26, // 23: bytebase.v1.SchemaMetadata.enum_types:type_name -> bytebase.v1.EnumTypeMetadata- 34, // 24: bytebase.v1.ExternalTableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata- 34, // 25: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata- 45, // 26: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata- 47, // 27: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata- 33, // 28: bytebase.v1.TableMetadata.partitions:type_name -> bytebase.v1.TablePartitionMetadata- 32, // 29: bytebase.v1.TableMetadata.check_constraints:type_name -> bytebase.v1.CheckConstraintMetadata- 29, // 30: bytebase.v1.TableMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata- 2, // 31: bytebase.v1.TablePartitionMetadata.type:type_name -> bytebase.v1.TablePartitionMetadata.Type- 33, // 32: bytebase.v1.TablePartitionMetadata.subpartitions:type_name -> bytebase.v1.TablePartitionMetadata- 45, // 33: bytebase.v1.TablePartitionMetadata.indexes:type_name -> bytebase.v1.IndexMetadata- 35, // 34: bytebase.v1.ColumnMetadata.generation:type_name -> bytebase.v1.GenerationMetadata- 3, // 35: bytebase.v1.ColumnMetadata.identity_generation:type_name -> bytebase.v1.ColumnMetadata.IdentityGeneration- 4, // 36: bytebase.v1.GenerationMetadata.type:type_name -> bytebase.v1.GenerationMetadata.Type- 37, // 37: bytebase.v1.ViewMetadata.dependency_columns:type_name -> bytebase.v1.DependencyColumn- 34, // 38: bytebase.v1.ViewMetadata.columns:type_name -> bytebase.v1.ColumnMetadata- 29, // 39: bytebase.v1.ViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata- 37, // 40: bytebase.v1.MaterializedViewMetadata.dependency_columns:type_name -> bytebase.v1.DependencyColumn- 29, // 41: bytebase.v1.MaterializedViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata- 45, // 42: bytebase.v1.MaterializedViewMetadata.indexes:type_name -> bytebase.v1.IndexMetadata- 39, // 43: bytebase.v1.FunctionMetadata.dependency_tables:type_name -> bytebase.v1.DependencyTable- 5, // 44: bytebase.v1.TaskMetadata.state:type_name -> bytebase.v1.TaskMetadata.State- 6, // 45: bytebase.v1.StreamMetadata.type:type_name -> bytebase.v1.StreamMetadata.Type- 7, // 46: bytebase.v1.StreamMetadata.mode:type_name -> bytebase.v1.StreamMetadata.Mode- 51, // 47: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog- 52, // 48: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics- 83, // 49: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp- 85, // 50: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration- 85, // 51: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration- 53, // 52: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails- 83, // 53: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp- 85, // 54: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration- 85, // 55: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration- 58, // 56: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret- 58, // 57: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret- 81, // 58: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask- 83, // 59: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp- 83, // 60: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp- 62, // 61: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase- 63, // 62: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema- 64, // 63: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable- 65, // 64: bytebase.v1.ChangedResourceSchema.views:type_name -> bytebase.v1.ChangedResourceView- 66, // 65: bytebase.v1.ChangedResourceSchema.functions:type_name -> bytebase.v1.ChangedResourceFunction- 67, // 66: bytebase.v1.ChangedResourceSchema.procedures:type_name -> bytebase.v1.ChangedResourceProcedure- 86, // 67: bytebase.v1.ChangedResourceTable.ranges:type_name -> bytebase.v1.Range- 86, // 68: bytebase.v1.ChangedResourceView.ranges:type_name -> bytebase.v1.Range- 86, // 69: bytebase.v1.ChangedResourceFunction.ranges:type_name -> bytebase.v1.Range- 86, // 70: bytebase.v1.ChangedResourceProcedure.ranges:type_name -> bytebase.v1.Range- 73, // 71: bytebase.v1.ListRevisionsResponse.revisions:type_name -> bytebase.v1.Revision- 73, // 72: bytebase.v1.CreateRevisionRequest.revision:type_name -> bytebase.v1.Revision- 83, // 73: bytebase.v1.Revision.create_time:type_name -> google.protobuf.Timestamp- 83, // 74: bytebase.v1.Revision.delete_time:type_name -> google.protobuf.Timestamp- 1, // 75: bytebase.v1.ListChangelogsRequest.view:type_name -> bytebase.v1.ChangelogView- 77, // 76: bytebase.v1.ListChangelogsResponse.changelogs:type_name -> bytebase.v1.Changelog- 1, // 77: bytebase.v1.GetChangelogRequest.view:type_name -> bytebase.v1.ChangelogView- 83, // 78: bytebase.v1.Changelog.create_time:type_name -> google.protobuf.Timestamp- 8, // 79: bytebase.v1.Changelog.status:type_name -> bytebase.v1.Changelog.Status- 61, // 80: bytebase.v1.Changelog.changed_resources:type_name -> bytebase.v1.ChangedResources- 9, // 81: bytebase.v1.Changelog.type:type_name -> bytebase.v1.Changelog.Type- 10, // 82: bytebase.v1.GetSchemaStringRequest.type:type_name -> bytebase.v1.GetSchemaStringRequest.ObjectType- 11, // 83: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest- 12, // 84: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest- 14, // 85: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest- 15, // 86: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest- 17, // 87: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest- 19, // 88: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest- 20, // 89: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest- 21, // 90: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest- 49, // 91: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest- 54, // 92: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest- 56, // 93: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest- 57, // 94: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest- 59, // 95: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest- 68, // 96: bytebase.v1.DatabaseService.ListRevisions:input_type -> bytebase.v1.ListRevisionsRequest- 71, // 97: bytebase.v1.DatabaseService.GetRevision:input_type -> bytebase.v1.GetRevisionRequest- 70, // 98: bytebase.v1.DatabaseService.CreateRevision:input_type -> bytebase.v1.CreateRevisionRequest- 72, // 99: bytebase.v1.DatabaseService.DeleteRevision:input_type -> bytebase.v1.DeleteRevisionRequest- 74, // 100: bytebase.v1.DatabaseService.ListChangelogs:input_type -> bytebase.v1.ListChangelogsRequest- 76, // 101: bytebase.v1.DatabaseService.GetChangelog:input_type -> bytebase.v1.GetChangelogRequest- 78, // 102: bytebase.v1.DatabaseService.GetSchemaString:input_type -> bytebase.v1.GetSchemaStringRequest- 23, // 103: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database- 13, // 104: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse- 23, // 105: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database- 16, // 106: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse- 18, // 107: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse- 24, // 108: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata- 48, // 109: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema- 22, // 110: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse- 50, // 111: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse- 55, // 112: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse- 58, // 113: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret- 87, // 114: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty- 60, // 115: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse- 69, // 116: bytebase.v1.DatabaseService.ListRevisions:output_type -> bytebase.v1.ListRevisionsResponse- 73, // 117: bytebase.v1.DatabaseService.GetRevision:output_type -> bytebase.v1.Revision- 73, // 118: bytebase.v1.DatabaseService.CreateRevision:output_type -> bytebase.v1.Revision- 87, // 119: bytebase.v1.DatabaseService.DeleteRevision:output_type -> google.protobuf.Empty- 75, // 120: bytebase.v1.DatabaseService.ListChangelogs:output_type -> bytebase.v1.ListChangelogsResponse- 77, // 121: bytebase.v1.DatabaseService.GetChangelog:output_type -> bytebase.v1.Changelog- 79, // 122: bytebase.v1.DatabaseService.GetSchemaString:output_type -> bytebase.v1.GetSchemaStringResponse- 103, // [103:123] is the sub-list for method output_type- 83, // [83:103] is the sub-list for method input_type- 83, // [83:83] is the sub-list for extension type_name- 83, // [83:83] is the sub-list for extension extendee- 0, // [0:83] is the sub-list for field type_name+ 23, // 0: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database+ 23, // 1: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database+ 74, // 2: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask+ 14, // 3: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest+ 23, // 4: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database+ 0, // 5: bytebase.v1.GetDatabaseMetadataRequest.view:type_name -> bytebase.v1.DatabaseMetadataView+ 75, // 6: bytebase.v1.Database.state:type_name -> bytebase.v1.State+ 76, // 7: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp+ 73, // 8: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry+ 77, // 9: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource+ 25, // 10: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata+ 46, // 11: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata+ 31, // 12: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata+ 30, // 13: bytebase.v1.SchemaMetadata.external_tables:type_name -> bytebase.v1.ExternalTableMetadata+ 36, // 14: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata+ 40, // 15: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata+ 41, // 16: bytebase.v1.SchemaMetadata.procedures:type_name -> bytebase.v1.ProcedureMetadata+ 44, // 17: bytebase.v1.SchemaMetadata.streams:type_name -> bytebase.v1.StreamMetadata+ 43, // 18: bytebase.v1.SchemaMetadata.tasks:type_name -> bytebase.v1.TaskMetadata+ 38, // 19: bytebase.v1.SchemaMetadata.materialized_views:type_name -> bytebase.v1.MaterializedViewMetadata+ 42, // 20: bytebase.v1.SchemaMetadata.packages:type_name -> bytebase.v1.PackageMetadata+ 28, // 21: bytebase.v1.SchemaMetadata.sequences:type_name -> bytebase.v1.SequenceMetadata+ 27, // 22: bytebase.v1.SchemaMetadata.events:type_name -> bytebase.v1.EventMetadata+ 26, // 23: bytebase.v1.SchemaMetadata.enum_types:type_name -> bytebase.v1.EnumTypeMetadata+ 34, // 24: bytebase.v1.ExternalTableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata+ 34, // 25: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata+ 45, // 26: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata+ 47, // 27: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata+ 33, // 28: bytebase.v1.TableMetadata.partitions:type_name -> bytebase.v1.TablePartitionMetadata+ 32, // 29: bytebase.v1.TableMetadata.check_constraints:type_name -> bytebase.v1.CheckConstraintMetadata+ 29, // 30: bytebase.v1.TableMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata+ 2, // 31: bytebase.v1.TablePartitionMetadata.type:type_name -> bytebase.v1.TablePartitionMetadata.Type+ 33, // 32: bytebase.v1.TablePartitionMetadata.subpartitions:type_name -> bytebase.v1.TablePartitionMetadata+ 45, // 33: bytebase.v1.TablePartitionMetadata.indexes:type_name -> bytebase.v1.IndexMetadata+ 35, // 34: bytebase.v1.ColumnMetadata.generation:type_name -> bytebase.v1.GenerationMetadata+ 3, // 35: bytebase.v1.ColumnMetadata.identity_generation:type_name -> bytebase.v1.ColumnMetadata.IdentityGeneration+ 4, // 36: bytebase.v1.GenerationMetadata.type:type_name -> bytebase.v1.GenerationMetadata.Type+ 37, // 37: bytebase.v1.ViewMetadata.dependency_columns:type_name -> bytebase.v1.DependencyColumn+ 34, // 38: bytebase.v1.ViewMetadata.columns:type_name -> bytebase.v1.ColumnMetadata+ 29, // 39: bytebase.v1.ViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata+ 37, // 40: bytebase.v1.MaterializedViewMetadata.dependency_columns:type_name -> bytebase.v1.DependencyColumn+ 29, // 41: bytebase.v1.MaterializedViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata+ 45, // 42: bytebase.v1.MaterializedViewMetadata.indexes:type_name -> bytebase.v1.IndexMetadata+ 39, // 43: bytebase.v1.FunctionMetadata.dependency_tables:type_name -> bytebase.v1.DependencyTable+ 5, // 44: bytebase.v1.TaskMetadata.state:type_name -> bytebase.v1.TaskMetadata.State+ 6, // 45: bytebase.v1.StreamMetadata.type:type_name -> bytebase.v1.StreamMetadata.Type+ 7, // 46: bytebase.v1.StreamMetadata.mode:type_name -> bytebase.v1.StreamMetadata.Mode+ 53, // 47: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret+ 53, // 48: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret+ 74, // 49: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask+ 76, // 50: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp+ 76, // 51: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp+ 55, // 52: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase+ 56, // 53: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema+ 57, // 54: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable+ 58, // 55: bytebase.v1.ChangedResourceSchema.views:type_name -> bytebase.v1.ChangedResourceView+ 59, // 56: bytebase.v1.ChangedResourceSchema.functions:type_name -> bytebase.v1.ChangedResourceFunction+ 60, // 57: bytebase.v1.ChangedResourceSchema.procedures:type_name -> bytebase.v1.ChangedResourceProcedure+ 78, // 58: bytebase.v1.ChangedResourceTable.ranges:type_name -> bytebase.v1.Range+ 78, // 59: bytebase.v1.ChangedResourceView.ranges:type_name -> bytebase.v1.Range+ 78, // 60: bytebase.v1.ChangedResourceFunction.ranges:type_name -> bytebase.v1.Range+ 78, // 61: bytebase.v1.ChangedResourceProcedure.ranges:type_name -> bytebase.v1.Range+ 66, // 62: bytebase.v1.ListRevisionsResponse.revisions:type_name -> bytebase.v1.Revision+ 66, // 63: bytebase.v1.CreateRevisionRequest.revision:type_name -> bytebase.v1.Revision+ 76, // 64: bytebase.v1.Revision.create_time:type_name -> google.protobuf.Timestamp+ 76, // 65: bytebase.v1.Revision.delete_time:type_name -> google.protobuf.Timestamp+ 1, // 66: bytebase.v1.ListChangelogsRequest.view:type_name -> bytebase.v1.ChangelogView+ 70, // 67: bytebase.v1.ListChangelogsResponse.changelogs:type_name -> bytebase.v1.Changelog+ 1, // 68: bytebase.v1.GetChangelogRequest.view:type_name -> bytebase.v1.ChangelogView+ 76, // 69: bytebase.v1.Changelog.create_time:type_name -> google.protobuf.Timestamp+ 8, // 70: bytebase.v1.Changelog.status:type_name -> bytebase.v1.Changelog.Status+ 54, // 71: bytebase.v1.Changelog.changed_resources:type_name -> bytebase.v1.ChangedResources+ 9, // 72: bytebase.v1.Changelog.type:type_name -> bytebase.v1.Changelog.Type+ 10, // 73: bytebase.v1.GetSchemaStringRequest.type:type_name -> bytebase.v1.GetSchemaStringRequest.ObjectType+ 11, // 74: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest+ 12, // 75: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest+ 14, // 76: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest+ 15, // 77: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest+ 17, // 78: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest+ 19, // 79: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest+ 20, // 80: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest+ 21, // 81: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest+ 49, // 82: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest+ 51, // 83: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest+ 52, // 84: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest+ 61, // 85: bytebase.v1.DatabaseService.ListRevisions:input_type -> bytebase.v1.ListRevisionsRequest+ 64, // 86: bytebase.v1.DatabaseService.GetRevision:input_type -> bytebase.v1.GetRevisionRequest+ 63, // 87: bytebase.v1.DatabaseService.CreateRevision:input_type -> bytebase.v1.CreateRevisionRequest+ 65, // 88: bytebase.v1.DatabaseService.DeleteRevision:input_type -> bytebase.v1.DeleteRevisionRequest+ 67, // 89: bytebase.v1.DatabaseService.ListChangelogs:input_type -> bytebase.v1.ListChangelogsRequest+ 69, // 90: bytebase.v1.DatabaseService.GetChangelog:input_type -> bytebase.v1.GetChangelogRequest+ 71, // 91: bytebase.v1.DatabaseService.GetSchemaString:input_type -> bytebase.v1.GetSchemaStringRequest+ 23, // 92: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database+ 13, // 93: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse+ 23, // 94: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database+ 16, // 95: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse+ 18, // 96: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse+ 24, // 97: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata+ 48, // 98: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema+ 22, // 99: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse+ 50, // 100: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse+ 53, // 101: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret+ 79, // 102: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty+ 62, // 103: bytebase.v1.DatabaseService.ListRevisions:output_type -> bytebase.v1.ListRevisionsResponse+ 66, // 104: bytebase.v1.DatabaseService.GetRevision:output_type -> bytebase.v1.Revision+ 66, // 105: bytebase.v1.DatabaseService.CreateRevision:output_type -> bytebase.v1.Revision+ 79, // 106: bytebase.v1.DatabaseService.DeleteRevision:output_type -> google.protobuf.Empty+ 68, // 107: bytebase.v1.DatabaseService.ListChangelogs:output_type -> bytebase.v1.ListChangelogsResponse+ 70, // 108: bytebase.v1.DatabaseService.GetChangelog:output_type -> bytebase.v1.Changelog+ 72, // 109: bytebase.v1.DatabaseService.GetSchemaString:output_type -> bytebase.v1.GetSchemaStringResponse+ 92, // [92:110] is the sub-list for method output_type+ 74, // [74:92] is the sub-list for method input_type+ 74, // [74:74] is the sub-list for extension type_name+ 74, // [74:74] is the sub-list for extension extendee+ 0, // [0:74] is the sub-list for field type_name}func init() { file_v1_database_service_proto_init() }@@ -7892,7 +7199,7 @@ func file_v1_database_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_database_service_proto_rawDesc), len(file_v1_database_service_proto_rawDesc)),NumEnums: 11,- NumMessages: 70,+ NumMessages: 63,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/database_service.pb.gw.go b/proto/generated-go/v1/database_service.pb.gw.goindex f0e867d957..66ba58f3d5 100644--- a/proto/generated-go/v1/database_service.pb.gw.go+++ b/proto/generated-go/v1/database_service.pb.gw.go@@ -573,57 +573,6 @@ func local_request_DatabaseService_DiffSchema_1(ctx context.Context, marshaler rreturn msg, metadata, err}-var filter_DatabaseService_ListSlowQueries_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}--func request_DatabaseService_ListSlowQueries_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var (- protoReq ListSlowQueriesRequest- metadata runtime.ServerMetadata- err error- )- io.Copy(io.Discard, req.Body)- val, ok := pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DatabaseService_ListSlowQueries_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- msg, err := client.ListSlowQueries(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err-}--func local_request_DatabaseService_ListSlowQueries_0(ctx context.Context, marshaler runtime.Marshaler, server DatabaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var (- protoReq ListSlowQueriesRequest- metadata runtime.ServerMetadata- err error- )- val, ok := pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DatabaseService_ListSlowQueries_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- msg, err := server.ListSlowQueries(ctx, &protoReq)- return msg, metadata, err-}-var filter_DatabaseService_ListSecrets_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}func request_DatabaseService_ListSecrets_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {@@ -790,57 +739,6 @@ func local_request_DatabaseService_DeleteSecret_0(ctx context.Context, marshalerreturn msg, metadata, err}-var filter_DatabaseService_AdviseIndex_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}--func request_DatabaseService_AdviseIndex_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var (- protoReq AdviseIndexRequest- metadata runtime.ServerMetadata- err error- )- io.Copy(io.Discard, req.Body)- val, ok := pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DatabaseService_AdviseIndex_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- msg, err := client.AdviseIndex(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err-}--func local_request_DatabaseService_AdviseIndex_0(ctx context.Context, marshaler runtime.Marshaler, server DatabaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var (- protoReq AdviseIndexRequest- metadata runtime.ServerMetadata- err error- )- val, ok := pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DatabaseService_AdviseIndex_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- msg, err := server.AdviseIndex(ctx, &protoReq)- return msg, metadata, err-}-var filter_DatabaseService_ListRevisions_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}func request_DatabaseService_ListRevisions_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {@@ -1387,26 +1285,6 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv}forward_DatabaseService_DiffSchema_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle(http.MethodGet, pattern_DatabaseService_ListSlowQueries_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)- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSlowQueries", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/slowQueries"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_DatabaseService_ListSlowQueries_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }- forward_DatabaseService_ListSlowQueries_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)- })mux.Handle(http.MethodGet, pattern_DatabaseService_ListSecrets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -1467,26 +1345,6 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv}forward_DatabaseService_DeleteSecret_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle(http.MethodPost, pattern_DatabaseService_AdviseIndex_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)- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/AdviseIndex", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}:adviseIndex"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_DatabaseService_AdviseIndex_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }- forward_DatabaseService_AdviseIndex_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)- })mux.Handle(http.MethodGet, pattern_DatabaseService_ListRevisions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -1854,23 +1712,6 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv}forward_DatabaseService_DiffSchema_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle(http.MethodGet, pattern_DatabaseService_ListSlowQueries_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)- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSlowQueries", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/slowQueries"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_DatabaseService_ListSlowQueries_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }- forward_DatabaseService_ListSlowQueries_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)- })mux.Handle(http.MethodGet, pattern_DatabaseService_ListSecrets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -1922,23 +1763,6 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv}forward_DatabaseService_DeleteSecret_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle(http.MethodPost, pattern_DatabaseService_AdviseIndex_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)- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/AdviseIndex", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}:adviseIndex"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_DatabaseService_AdviseIndex_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }- forward_DatabaseService_AdviseIndex_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)- })mux.Handle(http.MethodGet, pattern_DatabaseService_ListRevisions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -2073,11 +1897,9 @@ var (pattern_DatabaseService_GetDatabaseSchema_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 4, 5, 5, 4}, []string{"v1", "instances", "databases", "schema", "name"}, ""))pattern_DatabaseService_DiffSchema_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "databases", "name"}, "diffSchema"))pattern_DatabaseService_DiffSchema_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "changelogs", "name"}, "diffSchema"))- pattern_DatabaseService_ListSlowQueries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "slowQueries"}, ""))pattern_DatabaseService_ListSecrets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "secrets"}, ""))pattern_DatabaseService_UpdateSecret_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", "instances", "databases", "secrets", "secret.name"}, ""))pattern_DatabaseService_DeleteSecret_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", "instances", "databases", "secrets", "name"}, ""))- pattern_DatabaseService_AdviseIndex_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "databases", "parent"}, "adviseIndex"))pattern_DatabaseService_ListRevisions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "revisions"}, ""))pattern_DatabaseService_GetRevision_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", "instances", "databases", "revisions", "name"}, ""))pattern_DatabaseService_CreateRevision_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "revisions"}, ""))@@ -2099,11 +1921,9 @@ var (forward_DatabaseService_GetDatabaseSchema_0 = runtime.ForwardResponseMessageforward_DatabaseService_DiffSchema_0 = runtime.ForwardResponseMessageforward_DatabaseService_DiffSchema_1 = runtime.ForwardResponseMessage- forward_DatabaseService_ListSlowQueries_0 = runtime.ForwardResponseMessageforward_DatabaseService_ListSecrets_0 = runtime.ForwardResponseMessageforward_DatabaseService_UpdateSecret_0 = runtime.ForwardResponseMessageforward_DatabaseService_DeleteSecret_0 = runtime.ForwardResponseMessage- forward_DatabaseService_AdviseIndex_0 = runtime.ForwardResponseMessageforward_DatabaseService_ListRevisions_0 = runtime.ForwardResponseMessageforward_DatabaseService_GetRevision_0 = runtime.ForwardResponseMessageforward_DatabaseService_CreateRevision_0 = runtime.ForwardResponseMessagediff --git a/proto/generated-go/v1/database_service_grpc.pb.go b/proto/generated-go/v1/database_service_grpc.pb.goindex 2cd80bb4f8..671a407bc1 100644--- a/proto/generated-go/v1/database_service_grpc.pb.go+++ b/proto/generated-go/v1/database_service_grpc.pb.go@@ -28,11 +28,9 @@ const (DatabaseService_GetDatabaseMetadata_FullMethodName = "/bytebase.v1.DatabaseService/GetDatabaseMetadata"DatabaseService_GetDatabaseSchema_FullMethodName = "/bytebase.v1.DatabaseService/GetDatabaseSchema"DatabaseService_DiffSchema_FullMethodName = "/bytebase.v1.DatabaseService/DiffSchema"- DatabaseService_ListSlowQueries_FullMethodName = "/bytebase.v1.DatabaseService/ListSlowQueries"DatabaseService_ListSecrets_FullMethodName = "/bytebase.v1.DatabaseService/ListSecrets"DatabaseService_UpdateSecret_FullMethodName = "/bytebase.v1.DatabaseService/UpdateSecret"DatabaseService_DeleteSecret_FullMethodName = "/bytebase.v1.DatabaseService/DeleteSecret"- DatabaseService_AdviseIndex_FullMethodName = "/bytebase.v1.DatabaseService/AdviseIndex"DatabaseService_ListRevisions_FullMethodName = "/bytebase.v1.DatabaseService/ListRevisions"DatabaseService_GetRevision_FullMethodName = "/bytebase.v1.DatabaseService/GetRevision"DatabaseService_CreateRevision_FullMethodName = "/bytebase.v1.DatabaseService/CreateRevision"@@ -54,11 +52,9 @@ type DatabaseServiceClient interface {GetDatabaseMetadata(ctx context.Context, in *GetDatabaseMetadataRequest, opts ...grpc.CallOption) (*DatabaseMetadata, error)GetDatabaseSchema(ctx context.Context, in *GetDatabaseSchemaRequest, opts ...grpc.CallOption) (*DatabaseSchema, error)DiffSchema(ctx context.Context, in *DiffSchemaRequest, opts ...grpc.CallOption) (*DiffSchemaResponse, error)- ListSlowQueries(ctx context.Context, in *ListSlowQueriesRequest, opts ...grpc.CallOption) (*ListSlowQueriesResponse, error)ListSecrets(ctx context.Context, in *ListSecretsRequest, opts ...grpc.CallOption) (*ListSecretsResponse, error)UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*Secret, error)DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)- AdviseIndex(ctx context.Context, in *AdviseIndexRequest, opts ...grpc.CallOption) (*AdviseIndexResponse, error)ListRevisions(ctx context.Context, in *ListRevisionsRequest, opts ...grpc.CallOption) (*ListRevisionsResponse, error)GetRevision(ctx context.Context, in *GetRevisionRequest, opts ...grpc.CallOption) (*Revision, error)CreateRevision(ctx context.Context, in *CreateRevisionRequest, opts ...grpc.CallOption) (*Revision, error)@@ -156,16 +152,6 @@ func (c *databaseServiceClient) DiffSchema(ctx context.Context, in *DiffSchemaRereturn out, nil}-func (c *databaseServiceClient) ListSlowQueries(ctx context.Context, in *ListSlowQueriesRequest, opts ...grpc.CallOption) (*ListSlowQueriesResponse, error) {- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)- out := new(ListSlowQueriesResponse)- err := c.cc.Invoke(ctx, DatabaseService_ListSlowQueries_FullMethodName, in, out, cOpts...)- if err != nil {- return nil, err- }- return out, nil-}-func (c *databaseServiceClient) ListSecrets(ctx context.Context, in *ListSecretsRequest, opts ...grpc.CallOption) (*ListSecretsResponse, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(ListSecretsResponse)@@ -196,16 +182,6 @@ func (c *databaseServiceClient) DeleteSecret(ctx context.Context, in *DeleteSecrreturn out, nil}-func (c *databaseServiceClient) AdviseIndex(ctx context.Context, in *AdviseIndexRequest, opts ...grpc.CallOption) (*AdviseIndexResponse, error) {- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)- out := new(AdviseIndexResponse)- err := c.cc.Invoke(ctx, DatabaseService_AdviseIndex_FullMethodName, in, out, cOpts...)- if err != nil {- return nil, err- }- return out, nil-}-func (c *databaseServiceClient) ListRevisions(ctx context.Context, in *ListRevisionsRequest, opts ...grpc.CallOption) (*ListRevisionsResponse, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(ListRevisionsResponse)@@ -288,11 +264,9 @@ type DatabaseServiceServer interface {GetDatabaseMetadata(context.Context, *GetDatabaseMetadataRequest) (*DatabaseMetadata, error)GetDatabaseSchema(context.Context, *GetDatabaseSchemaRequest) (*DatabaseSchema, error)DiffSchema(context.Context, *DiffSchemaRequest) (*DiffSchemaResponse, error)- ListSlowQueries(context.Context, *ListSlowQueriesRequest) (*ListSlowQueriesResponse, error)ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error)UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error)DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error)- AdviseIndex(context.Context, *AdviseIndexRequest) (*AdviseIndexResponse, error)ListRevisions(context.Context, *ListRevisionsRequest) (*ListRevisionsResponse, error)GetRevision(context.Context, *GetRevisionRequest) (*Revision, error)CreateRevision(context.Context, *CreateRevisionRequest) (*Revision, error)@@ -334,9 +308,6 @@ func (UnimplementedDatabaseServiceServer) GetDatabaseSchema(context.Context, *Gefunc (UnimplementedDatabaseServiceServer) DiffSchema(context.Context, *DiffSchemaRequest) (*DiffSchemaResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method DiffSchema not implemented")}-func (UnimplementedDatabaseServiceServer) ListSlowQueries(context.Context, *ListSlowQueriesRequest) (*ListSlowQueriesResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListSlowQueries not implemented")-}func (UnimplementedDatabaseServiceServer) ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method ListSecrets not implemented")}@@ -346,9 +317,6 @@ func (UnimplementedDatabaseServiceServer) UpdateSecret(context.Context, *UpdateSfunc (UnimplementedDatabaseServiceServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) {return nil, status.Errorf(codes.Unimplemented, "method DeleteSecret not implemented")}-func (UnimplementedDatabaseServiceServer) AdviseIndex(context.Context, *AdviseIndexRequest) (*AdviseIndexResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method AdviseIndex not implemented")-}func (UnimplementedDatabaseServiceServer) ListRevisions(context.Context, *ListRevisionsRequest) (*ListRevisionsResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method ListRevisions not implemented")}@@ -535,24 +503,6 @@ func _DatabaseService_DiffSchema_Handler(srv interface{}, ctx context.Context, dreturn interceptor(ctx, in, info, handler)}-func _DatabaseService_ListSlowQueries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListSlowQueriesRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(DatabaseServiceServer).ListSlowQueries(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: DatabaseService_ListSlowQueries_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(DatabaseServiceServer).ListSlowQueries(ctx, req.(*ListSlowQueriesRequest))- }- return interceptor(ctx, in, info, handler)-}-func _DatabaseService_ListSecrets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(ListSecretsRequest)if err := dec(in); err != nil {@@ -607,24 +557,6 @@ func _DatabaseService_DeleteSecret_Handler(srv interface{}, ctx context.Context,return interceptor(ctx, in, info, handler)}-func _DatabaseService_AdviseIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(AdviseIndexRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(DatabaseServiceServer).AdviseIndex(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: DatabaseService_AdviseIndex_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(DatabaseServiceServer).AdviseIndex(ctx, req.(*AdviseIndexRequest))- }- return interceptor(ctx, in, info, handler)-}-func _DatabaseService_ListRevisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(ListRevisionsRequest)if err := dec(in); err != nil {@@ -790,10 +722,6 @@ var DatabaseService_ServiceDesc = grpc.ServiceDesc{MethodName: "DiffSchema",Handler: _DatabaseService_DiffSchema_Handler,},- {- MethodName: "ListSlowQueries",- Handler: _DatabaseService_ListSlowQueries_Handler,- },{MethodName: "ListSecrets",Handler: _DatabaseService_ListSecrets_Handler,@@ -806,10 +734,6 @@ var DatabaseService_ServiceDesc = grpc.ServiceDesc{MethodName: "DeleteSecret",Handler: _DatabaseService_DeleteSecret_Handler,},- {- MethodName: "AdviseIndex",- Handler: _DatabaseService_AdviseIndex_Handler,- },{MethodName: "ListRevisions",Handler: _DatabaseService_ListRevisions_Handler,diff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.goindex 03b2a085a3..bf0549e234 100644--- a/proto/generated-go/v1/org_policy_service.pb.go+++ b/proto/generated-go/v1/org_policy_service.pb.go@@ -31,7 +31,6 @@ type PolicyType int32const (PolicyType_POLICY_TYPE_UNSPECIFIED PolicyType = 0PolicyType_ROLLOUT_POLICY PolicyType = 11- PolicyType_SLOW_QUERY PolicyType = 7PolicyType_DISABLE_COPY_DATA PolicyType = 8PolicyType_MASKING_RULE PolicyType = 9PolicyType_MASKING_EXCEPTION PolicyType = 10@@ -47,7 +46,6 @@ var (PolicyType_name = map[int32]string{0: "POLICY_TYPE_UNSPECIFIED",11: "ROLLOUT_POLICY",- 7: "SLOW_QUERY",8: "DISABLE_COPY_DATA",9: "MASKING_RULE",10: "MASKING_EXCEPTION",@@ -60,7 +58,6 @@ var (PolicyType_value = map[string]int32{"POLICY_TYPE_UNSPECIFIED": 0,"ROLLOUT_POLICY": 11,- "SLOW_QUERY": 7,"DISABLE_COPY_DATA": 8,"MASKING_RULE": 9,"MASKING_EXCEPTION": 10,@@ -255,7 +252,7 @@ func (x MaskingExceptionPolicy_MaskingException_Action) Number() protoreflect.En// Deprecated: Use MaskingExceptionPolicy_MaskingException_Action.Descriptor instead.func (MaskingExceptionPolicy_MaskingException_Action) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13, 0, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12, 0, 0}}type DataSourceQueryPolicy_Restriction int32@@ -306,7 +303,7 @@ func (x DataSourceQueryPolicy_Restriction) Number() protoreflect.EnumNumber {// Deprecated: Use DataSourceQueryPolicy_Restriction.Descriptor instead.func (DataSourceQueryPolicy_Restriction) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16, 0}}type CreatePolicyRequest struct {@@ -701,7 +698,6 @@ type Policy struct {// Types that are valid to be assigned to Policy://// *Policy_RolloutPolicy- // *Policy_SlowQueryPolicy// *Policy_DisableCopyDataPolicy// *Policy_MaskingRulePolicy// *Policy_MaskingExceptionPolicy@@ -785,15 +781,6 @@ func (x *Policy) GetRolloutPolicy() *RolloutPolicy {return nil}-func (x *Policy) GetSlowQueryPolicy() *SlowQueryPolicy {- if x != nil {- if x, ok := x.Policy.(*Policy_SlowQueryPolicy); ok {- return x.SlowQueryPolicy- }- }- return nil-}-func (x *Policy) GetDisableCopyDataPolicy() *DisableCopyDataPolicy {if x != nil {if x, ok := x.Policy.(*Policy_DisableCopyDataPolicy); ok {@@ -888,10 +875,6 @@ type Policy_RolloutPolicy struct {RolloutPolicy *RolloutPolicy `protobuf:"bytes,19,opt,name=rollout_policy,json=rolloutPolicy,proto3,oneof"`}-type Policy_SlowQueryPolicy struct {- SlowQueryPolicy *SlowQueryPolicy `protobuf:"bytes,12,opt,name=slow_query_policy,json=slowQueryPolicy,proto3,oneof"`-}-type Policy_DisableCopyDataPolicy struct {DisableCopyDataPolicy *DisableCopyDataPolicy `protobuf:"bytes,16,opt,name=disable_copy_data_policy,json=disableCopyDataPolicy,proto3,oneof"`}@@ -926,8 +909,6 @@ type Policy_QueryDataPolicy struct {func (*Policy_RolloutPolicy) isPolicy_Policy() {}-func (*Policy_SlowQueryPolicy) isPolicy_Policy() {}-func (*Policy_DisableCopyDataPolicy) isPolicy_Policy() {}func (*Policy_MaskingRulePolicy) isPolicy_Policy() {}@@ -1006,50 +987,6 @@ func (x *RolloutPolicy) GetIssueRoles() []string {return nil}-type SlowQueryPolicy struct {- state protoimpl.MessageState `protogen:"open.v1"`- Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *SlowQueryPolicy) Reset() {- *x = SlowQueryPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[8]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *SlowQueryPolicy) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SlowQueryPolicy) ProtoMessage() {}--func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[8]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SlowQueryPolicy.ProtoReflect.Descriptor instead.-func (*SlowQueryPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{8}-}--func (x *SlowQueryPolicy) GetActive() bool {- if x != nil {- return x.Active- }- return false-}-type DisableCopyDataPolicy struct {state protoimpl.MessageState `protogen:"open.v1"`Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`@@ -1059,7 +996,7 @@ type DisableCopyDataPolicy struct {func (x *DisableCopyDataPolicy) Reset() {*x = DisableCopyDataPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[9]+ mi := &file_v1_org_policy_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1071,7 +1008,7 @@ func (x *DisableCopyDataPolicy) String() string {func (*DisableCopyDataPolicy) ProtoMessage() {}func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[9]+ mi := &file_v1_org_policy_service_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1084,7 +1021,7 @@ func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use DisableCopyDataPolicy.ProtoReflect.Descriptor instead.func (*DisableCopyDataPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{9}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{8}}func (x *DisableCopyDataPolicy) GetActive() bool {@@ -1103,7 +1040,7 @@ type ExportDataPolicy struct {func (x *ExportDataPolicy) Reset() {*x = ExportDataPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1115,7 +1052,7 @@ func (x *ExportDataPolicy) String() string {func (*ExportDataPolicy) ProtoMessage() {}func (x *ExportDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1128,7 +1065,7 @@ func (x *ExportDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use ExportDataPolicy.ProtoReflect.Descriptor instead.func (*ExportDataPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{9}}func (x *ExportDataPolicy) GetDisable() bool {@@ -1149,7 +1086,7 @@ type QueryDataPolicy struct {func (x *QueryDataPolicy) Reset() {*x = QueryDataPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1161,7 +1098,7 @@ func (x *QueryDataPolicy) String() string {func (*QueryDataPolicy) ProtoMessage() {}func (x *QueryDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1174,7 +1111,7 @@ func (x *QueryDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use QueryDataPolicy.ProtoReflect.Descriptor instead.func (*QueryDataPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}}func (x *QueryDataPolicy) GetTimeout() *durationpb.Duration {@@ -1197,7 +1134,7 @@ type SQLReviewRule struct {func (x *SQLReviewRule) Reset() {*x = SQLReviewRule{}- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1209,7 +1146,7 @@ func (x *SQLReviewRule) String() string {func (*SQLReviewRule) ProtoMessage() {}func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1222,7 +1159,7 @@ func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {// Deprecated: Use SQLReviewRule.ProtoReflect.Descriptor instead.func (*SQLReviewRule) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}}func (x *SQLReviewRule) GetType() string {@@ -1270,7 +1207,7 @@ type MaskingExceptionPolicy struct {func (x *MaskingExceptionPolicy) Reset() {*x = MaskingExceptionPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1282,7 +1219,7 @@ func (x *MaskingExceptionPolicy) String() string {func (*MaskingExceptionPolicy) ProtoMessage() {}func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1295,7 +1232,7 @@ func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingExceptionPolicy.ProtoReflect.Descriptor instead.func (*MaskingExceptionPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}}func (x *MaskingExceptionPolicy) GetMaskingExceptions() []*MaskingExceptionPolicy_MaskingException {@@ -1314,7 +1251,7 @@ type MaskingRulePolicy struct {func (x *MaskingRulePolicy) Reset() {*x = MaskingRulePolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1326,7 +1263,7 @@ func (x *MaskingRulePolicy) String() string {func (*MaskingRulePolicy) ProtoMessage() {}func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1339,7 +1276,7 @@ func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingRulePolicy.ProtoReflect.Descriptor instead.func (*MaskingRulePolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}}func (x *MaskingRulePolicy) GetRules() []*MaskingRulePolicy_MaskingRule {@@ -1358,7 +1295,7 @@ type RestrictIssueCreationForSQLReviewPolicy struct {func (x *RestrictIssueCreationForSQLReviewPolicy) Reset() {*x = RestrictIssueCreationForSQLReviewPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1370,7 +1307,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) String() string {func (*RestrictIssueCreationForSQLReviewPolicy) ProtoMessage() {}func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1383,7 +1320,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Me// Deprecated: Use RestrictIssueCreationForSQLReviewPolicy.ProtoReflect.Descriptor instead.func (*RestrictIssueCreationForSQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}}func (x *RestrictIssueCreationForSQLReviewPolicy) GetDisallow() bool {@@ -1404,7 +1341,7 @@ type TagPolicy struct {func (x *TagPolicy) Reset() {*x = TagPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1416,7 +1353,7 @@ func (x *TagPolicy) String() string {func (*TagPolicy) ProtoMessage() {}func (x *TagPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1429,7 +1366,7 @@ func (x *TagPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use TagPolicy.ProtoReflect.Descriptor instead.func (*TagPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}}func (x *TagPolicy) GetTags() map[string]string {@@ -1453,7 +1390,7 @@ type DataSourceQueryPolicy struct {func (x *DataSourceQueryPolicy) Reset() {*x = DataSourceQueryPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1465,7 +1402,7 @@ func (x *DataSourceQueryPolicy) String() string {func (*DataSourceQueryPolicy) ProtoMessage() {}func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1478,7 +1415,7 @@ func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use DataSourceQueryPolicy.ProtoReflect.Descriptor instead.func (*DataSourceQueryPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}}func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restriction {@@ -1519,7 +1456,7 @@ type MaskingExceptionPolicy_MaskingException struct {func (x *MaskingExceptionPolicy_MaskingException) Reset() {*x = MaskingExceptionPolicy_MaskingException{}- mi := &file_v1_org_policy_service_proto_msgTypes[18]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1531,7 +1468,7 @@ func (x *MaskingExceptionPolicy_MaskingException) String() string {func (*MaskingExceptionPolicy_MaskingException) ProtoMessage() {}func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[18]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1544,7 +1481,7 @@ func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Me// Deprecated: Use MaskingExceptionPolicy_MaskingException.ProtoReflect.Descriptor instead.func (*MaskingExceptionPolicy_MaskingException) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12, 0}}func (x *MaskingExceptionPolicy_MaskingException) GetAction() MaskingExceptionPolicy_MaskingException_Action {@@ -1580,7 +1517,7 @@ type MaskingRulePolicy_MaskingRule struct {func (x *MaskingRulePolicy_MaskingRule) Reset() {*x = MaskingRulePolicy_MaskingRule{}- mi := &file_v1_org_policy_service_proto_msgTypes[19]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1592,7 +1529,7 @@ func (x *MaskingRulePolicy_MaskingRule) String() string {func (*MaskingRulePolicy_MaskingRule) ProtoMessage() {}func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[19]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1605,7 +1542,7 @@ func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingRulePolicy_MaskingRule.ProtoReflect.Descriptor instead.func (*MaskingRulePolicy_MaskingRule) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13, 0}}func (x *MaskingRulePolicy_MaskingRule) GetId() string {@@ -1705,7 +1642,7 @@ var file_v1_org_policy_service_proto_rawDesc = string([]byte{0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78,0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,- 0x6e, 0x22, 0xc6, 0x0a, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04,+ 0x6e, 0x22, 0xfa, 0x09, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04,0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x5f, 0x66, 0x72, 0x6f, 0x6d,0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69,@@ -1717,311 +1654,303 @@ var file_v1_org_policy_service_proto_rawDesc = string([]byte{0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,0x79, 0x48, 0x00, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79,- 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77,- 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73,- 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x5d,- 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x5f, 0x64,- 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,- 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43,- 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x50, 0x0a,- 0x13, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,- 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x11, 0x6d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,- 0x5f, 0x0a, 0x18, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70,- 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x16, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e,- 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x96, 0x01, 0x0a, 0x2d, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x69, 0x73,- 0x73, 0x75, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72,- 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49,- 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53,- 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00,- 0x52, 0x27, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43,- 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76,- 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x37, 0x0a, 0x0a, 0x74, 0x61, 0x67,- 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x09, 0x74, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x5d, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x16,+ 0x63, 0x79, 0x12, 0x5d, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f,+ 0x70, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x10,0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65,- 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x15, 0x64, 0x61, 0x74, 0x61,- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x4d, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61,- 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f,- 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x10,- 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x4a, 0x0a, 0x11, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44,- 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x71, 0x75, 0x65,- 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07,- 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65,- 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79,- 0x70, 0x65, 0x3a, 0xe5, 0x01, 0xea, 0x41, 0xe1, 0x01, 0x0a, 0x13, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x11,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x7d, 0x12, 0x24, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x2c, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,- 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,- 0x6e, 0x74, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x26, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,- 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x3b, 0x69,- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,- 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x64, 0x0a, 0x0d, 0x52, 0x6f,- 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x61,- 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09,- 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c,- 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12,- 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03,- 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73,- 0x22, 0x29, 0x0a, 0x0f, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44,- 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2c, 0x0a, 0x10,- 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x46, 0x0a, 0x0f, 0x51, 0x75,- 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a,- 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,- 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,- 0x75, 0x74, 0x22, 0xbb, 0x01, 0x0a, 0x0d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,- 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65,- 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52,- 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12,- 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67,- 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06,- 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,- 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,- 0x22, 0xe9, 0x02, 0x0a, 0x16, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65,- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x63, 0x0a, 0x12, 0x6d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e,- 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63,- 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73,- 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,- 0x1a, 0xe9, 0x01, 0x0a, 0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65,- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61,+ 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61,+ 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x50, 0x0a, 0x13, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c,+ 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73,+ 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00,+ 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x5f, 0x0a, 0x18, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65,+ 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18,+ 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70,- 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,- 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69,- 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65,- 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62,- 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18,- 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74,- 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,- 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a,- 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,- 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x01,- 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x22, 0xca, 0x01, 0x0a,- 0x11, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x40, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72,- 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x73, 0x0a, 0x0b, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52,- 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69,- 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,- 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x6d,- 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65, 0x73,- 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69,- 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,- 0x22, 0x7a, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x34, 0x0a,- 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74,- 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,- 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,- 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x98, 0x02, 0x0a,- 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x71, 0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f,- 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74,- 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61,- 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65,- 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73,- 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c,- 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 0x22,- 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b,- 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46,- 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53,- 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a, 0x92, 0x02, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f, 0x50,- 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x4c, 0x4f, 0x57, 0x5f,- 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x07, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x53, 0x41, 0x42,- 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x50, 0x59, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x08, 0x12, 0x10,- 0x0a, 0x0c, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x10, 0x09,- 0x12, 0x15, 0x0a, 0x11, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x58, 0x43, 0x45,- 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x53, 0x54, 0x52,- 0x49, 0x43, 0x54, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49,- 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45,- 0x57, 0x10, 0x0c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x0d, 0x12, 0x15, 0x0a, 0x11,- 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x51, 0x55, 0x45, 0x52,- 0x59, 0x10, 0x0e, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f,- 0x52, 0x54, 0x10, 0x0f, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x51, 0x55, 0x45,- 0x52, 0x59, 0x10, 0x10, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22, 0x04, 0x08, 0x04, 0x10, 0x04,- 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x22, 0x04, 0x08, 0x05, 0x10, 0x05, 0x2a, 0x7c, 0x0a, 0x12,+ 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x16, 0x6d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x96, 0x01, 0x0a, 0x2d, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,+ 0x74, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e,+ 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72,+ 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e,+ 0x46, 0x6f, 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x48, 0x00, 0x52, 0x27, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73,+ 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x71,+ 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x37, 0x0a,+ 0x0a, 0x74, 0x61, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x09, 0x74, 0x61, 0x67,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x5d, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x15,+ 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4d, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f,+ 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x17, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x61,+ 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75,+ 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52,+ 0x0f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x07, 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x72, 0x65,+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79,- 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,- 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01,- 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10,- 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c,- 0x0a, 0x08, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08,- 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x05, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51,- 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c,- 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52,- 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12,- 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xf4, 0x0c,- 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69,- 0x63, 0x65, 0x12, 0xa0, 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,- 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x22, 0xde, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea,- 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x67, 0x65,- 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x12, 0x20,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,- 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x12,- 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,- 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa8, 0x02, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd2, 0x01, 0xda, 0x41,- 0x00, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb0, 0x01,- 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,- 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x23, 0x12, 0x21,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x12, 0xd5, 0x02, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x8d, 0x02, 0xda, 0x41, 0x0d, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x8a, 0xea, 0x30, 0x12, 0x62,- 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd8, 0x01,- 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69,- 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2b, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x21,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x5a, 0x37, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,- 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x86, 0x03, 0x0a, 0x0c, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x22, 0xbe, 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea,- 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x84, 0x02, 0x3a, 0x06, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32,- 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a,- 0x32, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x34, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0xb0, 0x02, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xe5, 0x01, 0xda,- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01,- 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x2a, 0x20, 0x2f,+ 0x70, 0x65, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x3a, 0xe5, 0x01, 0xea, 0x41, 0xe1, 0x01, 0x0a, 0x13, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x11, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x24, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x2c, 0x65, 0x6e, 0x76,+ 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x65, 0x6e, 0x76, 0x69, 0x72,+ 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x26, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x7d, 0x12, 0x3b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x42, 0x08,+ 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x64,+ 0x0a, 0x0d, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,+ 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x08, 0x52, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x12, 0x14, 0x0a,+ 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f,+ 0x6c, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x72, 0x6f, 0x6c,+ 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x52,+ 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x2f, 0x0a, 0x15, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43,+ 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a,+ 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61,+ 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2c, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44,+ 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73,+ 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61,+ 0x62, 0x6c, 0x65, 0x22, 0x46, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0xbb, 0x01, 0x0a, 0x0d,+ 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a,+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65,+ 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,+ 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,+ 0x61, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12,+ 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xe9, 0x02, 0x0a, 0x16, 0x4d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x63, 0x0a, 0x12, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f,+ 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d,+ 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63,+ 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45,+ 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xe9, 0x01, 0x0a, 0x10, 0x4d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53,+ 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73,+ 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70,+ 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74,+ 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63,+ 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70,+ 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x06,+ 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09,+ 0x0a, 0x05, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50,+ 0x4f, 0x52, 0x54, 0x10, 0x02, 0x22, 0xca, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,+ 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x05, 0x72,+ 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,+ 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x73, 0x0a,+ 0x0b, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02,+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09,+ 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78,+ 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a,+ 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79,+ 0x70, 0x65, 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73,+ 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x51,+ 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a,+ 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,+ 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x22, 0x7a, 0x0a, 0x09, 0x54, 0x61, 0x67,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67,+ 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09,+ 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,+ 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x98, 0x02, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,+ 0x71, 0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51,+ 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72,+ 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74,+ 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69,+ 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64,+ 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c,+ 0x6f, 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,+ 0x77, 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73,+ 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74,+ 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52,+ 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b,+ 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02,+ 0x2a, 0x88, 0x02, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12,+ 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e,+ 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b,+ 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x50, 0x59,+ 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x41, 0x53, 0x4b, 0x49,+ 0x4e, 0x47, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x10, 0x09, 0x12, 0x15, 0x0a, 0x11, 0x4d, 0x41, 0x53,+ 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0a,+ 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x5f, 0x49, 0x53, 0x53,+ 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x5f,+ 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x0c, 0x12, 0x07, 0x0a, 0x03,+ 0x54, 0x41, 0x47, 0x10, 0x0d, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f,+ 0x55, 0x52, 0x43, 0x45, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x0e, 0x12, 0x0f, 0x0a, 0x0b,+ 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x0f, 0x12, 0x0e, 0x0a,+ 0x0a, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x10, 0x22, 0x04, 0x08,+ 0x02, 0x10, 0x02, 0x22, 0x04, 0x08, 0x04, 0x10, 0x04, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x22,+ 0x04, 0x08, 0x05, 0x10, 0x05, 0x22, 0x04, 0x08, 0x07, 0x10, 0x07, 0x2a, 0x7c, 0x0a, 0x12, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,+ 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12,+ 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02,+ 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c, 0x0a,+ 0x08, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44,+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x05, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c,+ 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,+ 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10,+ 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c,+ 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xf4, 0x0c, 0x0a,+ 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,+ 0x65, 0x12, 0xa0, 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,+ 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,+ 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x22, 0xde, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30,+ 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74,+ 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f,0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a,- 0x26, 0x2a, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76,+ 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76,0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x2a, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b,0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x2a, 0x2d,+ 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x12, 0x2d,0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,- 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f,+ 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15, 0x2f,0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,- 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa8, 0x02, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd2, 0x01, 0xda, 0x41, 0x00,+ 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e,+ 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb0, 0x01, 0x5a,+ 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x23, 0x12, 0x21, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12,+ 0xd5, 0x02, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x8d, 0x02, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62,+ 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,+ 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd8, 0x01, 0x3a,+ 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,+ 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x5a, 0x2b, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x21, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x5a, 0x37, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x86, 0x03, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,+ 0xbe, 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30,+ 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x84, 0x02, 0x3a, 0x06, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x27,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e,+ 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x32,+ 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f,+ 0x2a, 0x7d, 0x5a, 0x3e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x34, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f,+ 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x12, 0xb0, 0x02, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xe5, 0x01, 0xda, 0x41,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x69, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98,+ 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x2a, 0x20, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26,+ 0x2a, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69,+ 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x2a, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,+ 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x2a, 0x2d, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,+ 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,+ 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,})var (@@ -2037,7 +1966,7 @@ func file_v1_org_policy_service_proto_rawDescGZIP() []byte {}var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)-var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 21)+var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 20)var file_v1_org_policy_service_proto_goTypes = []any{(PolicyType)(0), // 0: bytebase.v1.PolicyType(PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType@@ -2052,69 +1981,67 @@ var file_v1_org_policy_service_proto_goTypes = []any{(*ListPoliciesResponse)(nil), // 10: bytebase.v1.ListPoliciesResponse(*Policy)(nil), // 11: bytebase.v1.Policy(*RolloutPolicy)(nil), // 12: bytebase.v1.RolloutPolicy- (*SlowQueryPolicy)(nil), // 13: bytebase.v1.SlowQueryPolicy- (*DisableCopyDataPolicy)(nil), // 14: bytebase.v1.DisableCopyDataPolicy- (*ExportDataPolicy)(nil), // 15: bytebase.v1.ExportDataPolicy- (*QueryDataPolicy)(nil), // 16: bytebase.v1.QueryDataPolicy- (*SQLReviewRule)(nil), // 17: bytebase.v1.SQLReviewRule- (*MaskingExceptionPolicy)(nil), // 18: bytebase.v1.MaskingExceptionPolicy- (*MaskingRulePolicy)(nil), // 19: bytebase.v1.MaskingRulePolicy- (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 20: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- (*TagPolicy)(nil), // 21: bytebase.v1.TagPolicy- (*DataSourceQueryPolicy)(nil), // 22: bytebase.v1.DataSourceQueryPolicy- (*MaskingExceptionPolicy_MaskingException)(nil), // 23: bytebase.v1.MaskingExceptionPolicy.MaskingException- (*MaskingRulePolicy_MaskingRule)(nil), // 24: bytebase.v1.MaskingRulePolicy.MaskingRule- nil, // 25: bytebase.v1.TagPolicy.TagsEntry- (*fieldmaskpb.FieldMask)(nil), // 26: google.protobuf.FieldMask- (*durationpb.Duration)(nil), // 27: google.protobuf.Duration- (Engine)(0), // 28: bytebase.v1.Engine- (*expr.Expr)(nil), // 29: google.type.Expr- (*emptypb.Empty)(nil), // 30: google.protobuf.Empty+ (*DisableCopyDataPolicy)(nil), // 13: bytebase.v1.DisableCopyDataPolicy+ (*ExportDataPolicy)(nil), // 14: bytebase.v1.ExportDataPolicy+ (*QueryDataPolicy)(nil), // 15: bytebase.v1.QueryDataPolicy+ (*SQLReviewRule)(nil), // 16: bytebase.v1.SQLReviewRule+ (*MaskingExceptionPolicy)(nil), // 17: bytebase.v1.MaskingExceptionPolicy+ (*MaskingRulePolicy)(nil), // 18: bytebase.v1.MaskingRulePolicy+ (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 19: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ (*TagPolicy)(nil), // 20: bytebase.v1.TagPolicy+ (*DataSourceQueryPolicy)(nil), // 21: bytebase.v1.DataSourceQueryPolicy+ (*MaskingExceptionPolicy_MaskingException)(nil), // 22: bytebase.v1.MaskingExceptionPolicy.MaskingException+ (*MaskingRulePolicy_MaskingRule)(nil), // 23: bytebase.v1.MaskingRulePolicy.MaskingRule+ nil, // 24: bytebase.v1.TagPolicy.TagsEntry+ (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask+ (*durationpb.Duration)(nil), // 26: google.protobuf.Duration+ (Engine)(0), // 27: bytebase.v1.Engine+ (*expr.Expr)(nil), // 28: google.type.Expr+ (*emptypb.Empty)(nil), // 29: google.protobuf.Empty}var file_v1_org_policy_service_proto_depIdxs = []int32{11, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy0, // 1: bytebase.v1.CreatePolicyRequest.type:type_name -> bytebase.v1.PolicyType11, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy- 26, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask+ 25, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask0, // 4: bytebase.v1.ListPoliciesRequest.policy_type:type_name -> bytebase.v1.PolicyType11, // 5: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy0, // 6: bytebase.v1.Policy.type:type_name -> bytebase.v1.PolicyType12, // 7: bytebase.v1.Policy.rollout_policy:type_name -> bytebase.v1.RolloutPolicy- 13, // 8: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy- 14, // 9: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy- 19, // 10: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy- 18, // 11: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy- 20, // 12: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- 21, // 13: bytebase.v1.Policy.tag_policy:type_name -> bytebase.v1.TagPolicy- 22, // 14: bytebase.v1.Policy.data_source_query_policy:type_name -> bytebase.v1.DataSourceQueryPolicy- 15, // 15: bytebase.v1.Policy.export_data_policy:type_name -> bytebase.v1.ExportDataPolicy- 16, // 16: bytebase.v1.Policy.query_data_policy:type_name -> bytebase.v1.QueryDataPolicy- 1, // 17: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType- 27, // 18: bytebase.v1.QueryDataPolicy.timeout:type_name -> google.protobuf.Duration- 2, // 19: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel- 28, // 20: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine- 23, // 21: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException- 24, // 22: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule- 25, // 23: bytebase.v1.TagPolicy.tags:type_name -> bytebase.v1.TagPolicy.TagsEntry- 4, // 24: bytebase.v1.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.v1.DataSourceQueryPolicy.Restriction- 3, // 25: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- 29, // 26: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 29, // 27: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 8, // 28: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest- 9, // 29: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest- 5, // 30: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest- 6, // 31: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest- 7, // 32: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest- 11, // 33: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy- 10, // 34: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse- 11, // 35: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy- 11, // 36: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy- 30, // 37: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty- 33, // [33:38] is the sub-list for method output_type- 28, // [28:33] is the sub-list for method input_type- 28, // [28:28] is the sub-list for extension type_name- 28, // [28:28] is the sub-list for extension extendee- 0, // [0:28] is the sub-list for field type_name+ 13, // 8: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy+ 18, // 9: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy+ 17, // 10: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy+ 19, // 11: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ 20, // 12: bytebase.v1.Policy.tag_policy:type_name -> bytebase.v1.TagPolicy+ 21, // 13: bytebase.v1.Policy.data_source_query_policy:type_name -> bytebase.v1.DataSourceQueryPolicy+ 14, // 14: bytebase.v1.Policy.export_data_policy:type_name -> bytebase.v1.ExportDataPolicy+ 15, // 15: bytebase.v1.Policy.query_data_policy:type_name -> bytebase.v1.QueryDataPolicy+ 1, // 16: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType+ 26, // 17: bytebase.v1.QueryDataPolicy.timeout:type_name -> google.protobuf.Duration+ 2, // 18: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel+ 27, // 19: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine+ 22, // 20: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException+ 23, // 21: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule+ 24, // 22: bytebase.v1.TagPolicy.tags:type_name -> bytebase.v1.TagPolicy.TagsEntry+ 4, // 23: bytebase.v1.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.v1.DataSourceQueryPolicy.Restriction+ 3, // 24: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action+ 28, // 25: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 28, // 26: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 8, // 27: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest+ 9, // 28: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest+ 5, // 29: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest+ 6, // 30: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest+ 7, // 31: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest+ 11, // 32: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy+ 10, // 33: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse+ 11, // 34: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy+ 11, // 35: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy+ 29, // 36: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty+ 32, // [32:37] is the sub-list for method output_type+ 27, // [27:32] is the sub-list for method input_type+ 27, // [27:27] is the sub-list for extension type_name+ 27, // [27:27] is the sub-list for extension extendee+ 0, // [0:27] is the sub-list for field type_name}func init() { file_v1_org_policy_service_proto_init() }@@ -2127,7 +2054,6 @@ func file_v1_org_policy_service_proto_init() {file_v1_org_policy_service_proto_msgTypes[4].OneofWrappers = []any{}file_v1_org_policy_service_proto_msgTypes[6].OneofWrappers = []any{(*Policy_RolloutPolicy)(nil),- (*Policy_SlowQueryPolicy)(nil),(*Policy_DisableCopyDataPolicy)(nil),(*Policy_MaskingRulePolicy)(nil),(*Policy_MaskingExceptionPolicy)(nil),@@ -2143,7 +2069,7 @@ func file_v1_org_policy_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_org_policy_service_proto_rawDesc), len(file_v1_org_policy_service_proto_rawDesc)),NumEnums: 5,- NumMessages: 21,+ NumMessages: 20,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/policy.proto b/proto/store/policy.protoindex 98a0b991b8..9fe5702114 100644--- a/proto/store/policy.proto+++ b/proto/store/policy.proto@@ -106,11 +106,6 @@ message EnvironmentTierPolicy {string color = 2;}-// SlowQueryPolicy is the policy configuration for slow query.-message SlowQueryPolicy {- bool active = 1;-}-// DisableCopyDataPolicy is the policy configuration for disabling copying data.message DisableCopyDataPolicy {bool active = 1;diff --git a/proto/store/slow_query.proto b/proto/store/slow_query.protodeleted file mode 100644index 4792c0d255..0000000000--- a/proto/store/slow_query.proto+++ /dev/null@@ -1,68 +0,0 @@-syntax = "proto3";--package bytebase.store;--import "google/protobuf/duration.proto";-import "google/protobuf/timestamp.proto";--option go_package = "generated-go/store";--// SlowQueryStatistics is the slow query statistics.-message SlowQueryStatistics {- // Items is the list of slow query statistics.- repeated SlowQueryStatisticsItem items = 1;-}--// SlowQueryStatisticsItem is the item of slow query statistics.-message SlowQueryStatisticsItem {- // sql_fingerprint is the fingerprint of the slow query.- string sql_fingerprint = 1;-- // count is the number of slow queries with the same fingerprint.- int64 count = 2;-- // latest_log_time is the time of the latest slow query with the same fingerprint.- google.protobuf.Timestamp latest_log_time = 3;-- // The total query time of the slow query log.- google.protobuf.Duration total_query_time = 4;-- // The maximum query time of the slow query log.- google.protobuf.Duration maximum_query_time = 5;-- // The total rows sent of the slow query log.- int64 total_rows_sent = 6;-- // The maximum rows sent of the slow query log.- int64 maximum_rows_sent = 7;-- // The total rows examined of the slow query log.- int64 total_rows_examined = 8;-- // The maximum rows examined of the slow query log.- int64 maximum_rows_examined = 9;-- // samples are the details of the sample slow queries with the same fingerprint.- repeated SlowQueryDetails samples = 10;-}--// SlowQueryDetails is the details of a slow query.-message SlowQueryDetails {- // start_time is the start time of the slow query.- google.protobuf.Timestamp start_time = 1;-- // query_time is the query time of the slow query.- google.protobuf.Duration query_time = 2;-- // lock_time is the lock time of the slow query.- google.protobuf.Duration lock_time = 3;-- // rows_sent is the number of rows sent by the slow query.- int64 rows_sent = 4;-- // rows_examined is the number of rows examined by the slow query.- int64 rows_examined = 5;-- // sql_text is the SQL text of the slow query.- string sql_text = 6;-}diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.protoindex 97de73ddc2..08ae6c3bc5 100644--- a/proto/v1/database_service.proto+++ b/proto/v1/database_service.proto@@ -6,7 +6,6 @@ import "google/api/annotations.proto";import "google/api/client.proto";import "google/api/field_behavior.proto";import "google/api/resource.proto";-import "google/protobuf/duration.proto";import "google/protobuf/empty.proto";import "google/protobuf/field_mask.proto";import "google/protobuf/timestamp.proto";@@ -94,13 +93,6 @@ service DatabaseService {option (bytebase.v1.auth_method) = IAM;}- rpc ListSlowQueries(ListSlowQueriesRequest) returns (ListSlowQueriesResponse) {- option (google.api.http) = {get: "/v1/{parent=projects/*}/slowQueries"};- option (google.api.method_signature) = "parent";- option (bytebase.v1.permission) = "bb.slowQueries.list";- option (bytebase.v1.auth_method) = IAM;- }-rpc ListSecrets(ListSecretsRequest) returns (ListSecretsResponse) {option (google.api.http) = {get: "/v1/{parent=instances/*/databases/*}/secrets"};option (google.api.method_signature) = "parent";@@ -125,13 +117,6 @@ service DatabaseService {option (bytebase.v1.audit) = true;}- rpc AdviseIndex(AdviseIndexRequest) returns (AdviseIndexResponse) {- option (google.api.http) = {post: "/v1/{parent=instances/*/databases/*}:adviseIndex"};- option (google.api.method_signature) = "parent";- option (bytebase.v1.permission) = "bb.databases.adviseIndex";- option (bytebase.v1.auth_method) = IAM;- }-rpc ListRevisions(ListRevisionsRequest) returns (ListRevisionsResponse) {option (google.api.http) = {get: "/v1/{parent=instances/*/databases/*}/revisions"};option (google.api.method_signature) = "parent";@@ -1086,118 +1071,6 @@ message DatabaseSchema {string schema = 1;}-// ListSlowQueriesRequest is the request of listing slow query.-message ListSlowQueriesRequest {- // Format: projects/{project}- string parent = 1 [- (google.api.field_behavior) = REQUIRED,- (google.api.resource_reference) = {type: "bytebase.com/Project"}- ];-- // The filter of the slow query log.- // follow the- // [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form)- // syntax. Support filter by database and start_time in SlowQueryDetails for- // now. For example: Search the slow query log of the specific database:- // - the specific database: database =- // "instances/{instance}/databases/{database}"- // Search the slow query log that start_time after 2022-01-01T12:00:00.000Z:- // - start_time > "2022-01-01T12:00:00.000Z"- // - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339).- // - Currently we only support filtering down to date granularity.- string filter = 2;-- // The order by of the slow query log.- // Support order by count, latest_log_time, average_query_time,- // maximum_query_time, average_rows_sent, maximum_rows_sent,- // average_rows_examined, maximum_rows_examined for now. For example:- // - order by count: order_by = "count"- // - order by latest_log_time desc: order_by = "latest_log_time desc"- // Default: order by average_query_time desc.- string order_by = 3;-}--// ListSlowQueriesResponse is the response of listing slow query.-message ListSlowQueriesResponse {- // The slow query logs.- repeated SlowQueryLog slow_query_logs = 1;-}--// SlowQueryLog is the slow query log.-message SlowQueryLog {- // The resource of the slow query log.- // The format is "instances/{instance}/databases/{database}".- string resource = 1 [(google.api.field_behavior) = REQUIRED];-- // The project of the slow query log.- // The format is "projects/{project}".- string project = 2;-- // The statistics of the slow query log.- SlowQueryStatistics statistics = 3;-}--// SlowQueryStatistics is the statistics of the slow query log.-message SlowQueryStatistics {- // The fingerprint of the slow query log.- string sql_fingerprint = 1;-- // The count of the slow query log.- int64 count = 2;-- // The latest log time of the slow query log.- google.protobuf.Timestamp latest_log_time = 3;-- // The average query time of the slow query log.- google.protobuf.Duration average_query_time = 4;-- // The maximum query time of the slow query log.- google.protobuf.Duration maximum_query_time = 5;-- // The average rows sent of the slow query log.- int64 average_rows_sent = 6;-- // The maximum rows sent of the slow query log.- int64 maximum_rows_sent = 7;-- // The average rows examined of the slow query log.- int64 average_rows_examined = 8;-- // The maximum rows examined of the slow query log.- int64 maximum_rows_examined = 9;-- // The percentage of the query time.- double query_time_percent = 10;-- // The percentage of the count.- double count_percent = 11;-- // Samples are details of the sample slow query logs with the same- // fingerprint.- repeated SlowQueryDetails samples = 12;-}--// SlowQueryDetails is the details of the slow query log.-message SlowQueryDetails {- // The start time of the slow query log.- google.protobuf.Timestamp start_time = 1;-- // The query time of the slow query log.- google.protobuf.Duration query_time = 2;-- // The lock time of the slow query log.- google.protobuf.Duration lock_time = 3;-- // The rows sent of the slow query log.- int64 rows_sent = 4;-- // The rows examined of the slow query log.- int64 rows_examined = 5;-- // The sql text of the slow query log.- string sql_text = 6;-}-message ListSecretsRequest {// The parent of the secret.// Format: instances/{instance}/databases/{database}@@ -1277,30 +1150,6 @@ message Secret {string description = 5;}-// AdviseIndexRequest is the request of advising index.-message AdviseIndexRequest {- // Format: instances/{instance}/databases/{database}- string parent = 1 [- (google.api.field_behavior) = REQUIRED,- (google.api.resource_reference) = {type: "bytebase.com/Database"}- ];-- // The statement to be advised.- string statement = 2;-}--// AdviseIndexResponse is the response of advising index.-message AdviseIndexResponse {- // The current index of the statement used.- string current_index = 1;-- // The suggested index of the statement.- string suggestion = 2;-- // The create index statement of the suggested index.- string create_index_statement = 3;-}-message ChangedResources {repeated ChangedResourceDatabase databases = 1;}diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex 31654dbb06..413caf5739 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -238,7 +238,6 @@ message Policy {oneof policy {RolloutPolicy rollout_policy = 19;- SlowQueryPolicy slow_query_policy = 12;DisableCopyDataPolicy disable_copy_data_policy = 16;MaskingRulePolicy masking_rule_policy = 17;MaskingExceptionPolicy masking_exception_policy = 18;@@ -256,11 +255,10 @@ message Policy {}enum PolicyType {- reserved 2, 4, 6, 5;+ reserved 2, 4, 6, 5, 7;POLICY_TYPE_UNSPECIFIED = 0;ROLLOUT_POLICY = 11;- SLOW_QUERY = 7;DISABLE_COPY_DATA = 8;MASKING_RULE = 9;MASKING_EXCEPTION = 10;@@ -288,10 +286,6 @@ message RolloutPolicy {repeated string issue_roles = 3;}-message SlowQueryPolicy {- bool active = 1;-}-message DisableCopyDataPolicy {bool active = 1;}